/* ============================================================================
   Ztakora — Society Engine Protocol
   Editorial visual system: Georgia display type, Manrope body copy, IBM Plex
   Mono data labels, warm ivory paper, forest-green bands and restrained brass
   accents. Locally hosted fonts and imagery keep the page self-contained.
   ========================================================================== */

/* ---------------------------------------------------------------- fonts
   Sora (display) + Manrope (text) + IBM Plex Mono (data/labels), all SIL OFL,
   latin subsets self-hosted by tools/getfonts.mjs. Nothing is fetched at
   runtime, so the page keeps working from file:// with zero remote requests. */
@font-face {
  font-family: 'Sora';
  src: url('./assets/fonts/sora-var.woff2') format('woff2-variations');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('./assets/fonts/manrope-var.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('./assets/fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('./assets/fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
/* Display face: Archivo carries a width axis, which is what lets the hero
   lockup be set as a flush block instead of three unrelated line lengths. */
@font-face {
  font-family: 'Archivo';
  src: url('./assets/fonts/archivo-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #d1ad78;
  --green-2: #c29b65;
  --green-soft: #e3c89c;
  --indigo: #29493d;
  --indigo-2: #355b4b;
  --indigo-3: #203c32;
  --violet: #826448;
  --magenta: #b16f58;

  /* Brass is reserved for fills and dark grounds; readable accents resolve to
     a deeper forest ink on paper and a lifted brass on dark bands. */
  --green-ink: #315b48;
  --magenta-ink: #89513f;
  /* Lifted accents keep labels legible against the dark green bands. */
  --green-lift: #e4d0a8;
  --magenta-lift: #e9c5b3;
  --ink-green: var(--green);
  --ink-magenta: var(--magenta);
  /* secondary and running copy on a dark ground, resolved per band */
  --fg-body: rgba(255, 255, 255, .86);
  --fg-muted: rgba(255, 255, 255, .66);
  --fg-faint: rgba(255, 255, 255, .58);
  /* diagram ink: a stroke or a fill is a graphic, so it needs 3:1 against the
     ground rather than the 4.5:1 that words do — but it still has to change
     when the ground does. */
  --d-ink: var(--grey-2);
  --d-ink-2: var(--ink);
  --d-line: rgba(32, 33, 36, .17);
  --d-plate: rgba(32, 33, 36, .05);

  --ink: #242923;
  --ink-2: #383d36;
  /* #777 measured 4.48:1 on white — just under AA. The muted ramp is a shade
     darker now so body copy clears it with margin. */
  --grey: #686b63;
  --grey-2: #6b6e66;
  --grey-3: #aaa99f;
  --line: #e6e1d7;

  --white: #fbfaf6;
  --paper: #f2efe7;
  --paper-2: #f7f4ec;
  --night: #17211c;
  --night-2: #222d26;

  --radius: 16px;
  --radius-2: 10px;
  --container: 1280px;

  --title: Georgia, 'Times New Roman', serif;
  --display: Georgia, 'Times New Roman', serif;
  --body: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'Consolas', monospace;

  /* ---- texture plates ----------------------------------------------------
     Four seamless tiles, each ~0.5 KB of markup, rasterised once by the
     browser and repeated. They sit over imagery *and* type so the two share
     one surface — which is the whole difference between text on a picture
     and text in one.                                                            */
  /* fine silver grain, for the dark bands */
  --tex-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='4' stitchTiles='stitch' seed='11'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)'/%3E%3C/svg%3E");
  /* coarser paper tooth, for the white bands */
  --tex-tooth: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='t' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='3' stitchTiles='stitch' seed='5'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23t)'/%3E%3C/svg%3E");
  /* dust: sparse bright specks over a clear field, for the render bands */
  --tex-dust: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='d' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.085' numOctaves='2' stitchTiles='stitch' seed='21'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.5 0 0 0 -0.74'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23d)'/%3E%3C/svg%3E");
  /* halftone screen, for the type bed and the caption plates */
  --tex-halftone: radial-gradient(rgba(255, 255, 255, .55) 1px, transparent 1.5px);
  /* engineering grid — image and size kept as separate tokens: a position or
     size inside a var() cannot be assigned through background-image */
  --tex-grid:
    linear-gradient(rgba(255, 255, 255, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .075) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  --tex-grid-size: 72px 72px, 72px 72px, 18px 18px, 18px 18px;
  /* scanline screen */
  --tex-scan: repeating-linear-gradient(180deg, rgba(4, 4, 12, .26) 0 1px, transparent 1px 4px);
  /* diagonal hatch */
  --tex-hatch: repeating-linear-gradient(135deg, rgba(255, 255, 255, .085) 0 1px, transparent 1px 7px);
  /* ink screen for the solid brand fills — dots, not a gradient, so a flat
     green pill reads as printed rather than as a CSS default */
  --tex-ink: radial-gradient(rgba(4, 4, 12, .1) 1px, transparent 1.3px);
  --tex-ink-size: 6px 6px;
  /* uncoated stock for the cards and panels that sit on the paper bands.
     Two mismatched pitches, so it breaks into fibre instead of reading as a
     regular polka-dot pattern fill. */
  --tex-stock: radial-gradient(rgba(32, 33, 36, .05) .8px, transparent 1.15px),
    radial-gradient(rgba(32, 33, 36, .04) .8px, transparent 1.15px);
  --tex-stock-size: 4px 4px, 7px 7px;
  /* woven top bar */
  --tex-weave: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(45deg, rgba(4, 4, 12, .035) 0 1px, transparent 1px 5px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 18px 44px rgba(32, 33, 36, .08);
  --shadow-lift: 0 26px 60px rgba(32, 33, 36, .14);
  --shadow-dark: 0 22px 60px rgba(0, 0, 0, .38);
  --edge: clamp(20px, 4.4vw, 44px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 450;
  font-size: 16.5px;
  line-height: 1.74;
  letter-spacing: .001em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--title);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -.025em;
  line-height: 1.04;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}
p { margin: 0 0 1.15em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
mark { background: none; color: var(--ink-green); }

::-webkit-scrollbar { width: 11px; height: 9px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--indigo); border-radius: 9px; border: 3px solid var(--paper); }

/* ------------------------------------------------------------------ header */
.topbar {
  background-color: var(--night);
  /* a woven bar, so the strip above the fold is not the flattest thing on the
     page */
  background-image: var(--tex-weave);
  color: var(--white);
  padding: 16px var(--edge);
}
.topbar__in {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand { display: flex; align-items: center; gap: 13px; color: inherit; }
.brand__mark { width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.brand__mark svg { width: 26px; height: 26px; }
.brand__mark img {
  width: 44px; height: 44px; display: block; border-radius: 50%;
  transition: transform .55s var(--ease);
}
.brand:hover { color: inherit; }
.brand:hover .brand__mark img { transform: scale(1.08) rotate(-7deg); }
.brand__txt { line-height: 1.05; }
.brand__name {
  font-family: var(--title); font-weight: 700; font-size: 22px; letter-spacing: .1em;
  letter-spacing: .12em; text-transform: uppercase; transition: color .25s;
}
.brand:hover .brand__name { color: var(--green-soft); }
.brand__sub {
  font-family: var(--mono); font-size: 8.7px; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase; color: rgba(255, 255, 255, .92);
}
.topbar__spacer { flex: 1; }
.topbar__acts { display: flex; align-items: center; gap: 26px; font-family: var(--title); font-size: 12px; font-weight: 700; }
.topbar__acts a { display: inline-flex; align-items: center; gap: 8px; transition: color .25s; }
.topbar__acts a:hover { color: var(--green-soft); }
.topbar__acts svg { width: 15px; height: 15px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(251, 250, 246, .97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .35s var(--ease);
}
.nav[data-stuck='true'] { box-shadow: 0 8px 26px rgba(32, 33, 36, .09); }
.nav__bar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--edge);
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.1vw, 16px);
}
.nav__brand {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  /* parked off to the left and invisible until the topbar has actually left the
     viewport — app.js flips data-stuck at 40px, so the two never double up */
  opacity: 0;
  transform: translateX(-12px) scale(.86);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .55s var(--ease);
}
.nav[data-stuck='true'] .nav__brand { opacity: 1; transform: none; pointer-events: auto; }
.nav__brand img { width: 29px; height: 29px; display: block; border-radius: 50%; }
.nav__brand span {
  font-family: var(--title); font-weight: 700; font-size: 14.5px;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink);
  transition: color .25s;
}
.nav__brand:hover span { color: var(--indigo); }
@media (max-width: 760px) { .nav__brand span { display: none; } }
.nav__in {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.05vw, 13px);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__in::-webkit-scrollbar { display: none; }
.nav::after {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0; width: 60px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--white));
  pointer-events: none;
  opacity: 0; transition: opacity .3s;
}
@media (max-width: 1180px) { .nav::after { opacity: 1; } }
.nav__in a {
  position: relative;
  flex: none;
  font-family: var(--body);
  font-size: 11.6px;
  font-weight: 500;
  letter-spacing: .07em;
  color: var(--ink);
  padding: 19px 0 17px;
  white-space: nowrap;
  transition: color .28s;
}
.nav__in a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 12px;
  height: 2px;
  background: var(--green);
  transition: right .35s var(--ease);
}
.nav__in a:hover { color: var(--indigo); }
.nav__in a:hover::after, .nav__in a[data-on='true']::after { right: 0; }
.nav__in a[data-on='true'] { color: var(--indigo); font-weight: 700; }
.nav__cta {
  margin-left: auto;
  flex: none;
  font-family: var(--title);
  font-size: 11.6px;
  font-weight: 700;
  letter-spacing: .07em;
  /* white on brand green is 2.04:1. The CTA is a green field, so the label
     goes dark — the same rule the green pills already follow. */
  color: var(--night) !important;
  background-color: var(--green);
  background-image: var(--tex-ink);
  background-size: var(--tex-ink-size);
  border-radius: var(--radius);
  padding: 11px 22px !important;
  transition: background-color .3s, transform .3s var(--ease);
}
.nav__cta::after { display: none; }
.nav__cta:hover { background-color: var(--indigo-2); transform: translateY(-2px); color: var(--white) !important; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; background: transparent; }
.progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--green), var(--magenta)); }

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  /* One screen, minus the 146px of header above it at scroll 0. Anything
     taller pushes the slide dots and the live-3D toggle below the fold, where
     they read as "the hero does nothing". */
  min-height: min(calc(100vh - 146px), 880px);
  min-height: min(calc(100svh - 146px), 880px);
  background: var(--night);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}
.hero__stage { position: absolute; inset: 0; z-index: -2; }
.hero__slides {
  position: absolute; inset: 0;
  /* opacity only: the group is aria-hidden and holds no focusable content, so
     it needs no visibility gate — and a delayed visibility transition would
     keep the art in the tree for as long as the compositor starves it. */
  transition: opacity 1.15s var(--ease);
}
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.5s var(--ease);
}
.hero__slide[data-on='true'] { opacity: 1; }
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
  transform: scale(1.04);
}
.hero__slide[data-on='true'] img { animation: kenburns 15s var(--ease) forwards; }
@keyframes kenburns { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.4%, -1%, 0); } }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  /* Two columns of dark for the two text blocks, with the skyline left clear
     through the middle. The right column carries the body copy, so it needs
     more than a suggestion of shade where the key art flares brightest. */
  background:
    linear-gradient(90deg, rgba(11, 11, 18, .93) 0%, rgba(11, 11, 18, .74) 40%,
      rgba(11, 11, 18, .3) 62%, rgba(11, 11, 18, .62) 84%, rgba(11, 11, 18, .74) 100%),
    linear-gradient(0deg, rgba(11, 11, 18, .82) 0%, transparent 42%);
}
.hero__in {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(96px, 13vh, 150px) var(--edge) clamp(70px, 9vh, 104px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: end;
  gap: clamp(28px, 5vw, 70px);
}
.hero__kick {
  font-family: var(--mono);
  font-size: clamp(10px, .92vw, 12.5px);
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  /* balanced so a narrow viewport breaks between the labels, not after a bullet */
  text-wrap: balance;
  color: rgba(255, 255, 255, .8);
  margin-bottom: clamp(16px, 2.3vw, 27px);
}
/* a rule the length of an em-dash, then the label: the standard way to stop a
   kicker reading as a stray sentence over a busy plate */
.hero__kick::before {
  content: ''; display: inline-block; vertical-align: .3em;
  width: clamp(26px, 3.2vw, 52px); height: 1px; margin-right: .95em;
  background: linear-gradient(90deg, var(--green), rgba(209, 173, 120, 0));
}
.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--white);
  font-size: clamp(48px, 8.2vw, 116px);
  line-height: .91;
  letter-spacing: -.055em;
  text-transform: none;
}
/* Each line is a flex row so a hairline can run out to the column edge:
   three different word lengths, one flush block. */
.hero h1 .mask-line > span {
  display: flex;
  align-items: center;
  /* cast, not glow: the lockup has to hold over a flare in the plate. The
     blur stays under ~.3em — past that the shadows of adjacent capitals
     merge into a slab the size of the word. */
  text-shadow: 0 10px 30px rgba(3, 3, 9, .55), 0 2px 8px rgba(3, 3, 9, .4);
}
.hero h1 .mask-line:not(:last-child) > span::after {
  content: '';
  flex: 1 1 auto;
  height: max(2px, .048em);
  transform: translateY(.14em);
  background: linear-gradient(90deg, rgba(255, 255, 255, .44) 0%,
    rgba(255, 255, 255, .15) 45%, rgba(255, 255, 255, 0) 100%);
}
/* The italic accent gives the title an editorial note without competing with
   the city image. */
.hero h1 em {
  color: var(--ink-green);
  /* Keep the shadow restrained so the word stays crisp over the photograph. */
  font-style: italic;
  font-weight: 400;
  text-shadow: 0 4px 18px rgba(3, 3, 9, .45);
}
.hero__body { text-align: right; font-size: clamp(15px, 1.2vw, 19px); color: rgba(255, 255, 255, .88); }
.hero__body p { margin-bottom: 1.6em; }
.hero__link {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--title); font-weight: 700; font-size: 15px;
  color: var(--white);
  padding-bottom: 9px;
  border-bottom: 2px solid var(--green);
  transition: gap .3s var(--ease), color .3s;
}
.hero__link:hover { gap: 20px; color: var(--green-soft); }
.hero__dots {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 26px;
  display: flex; gap: 11px;
  z-index: 3;
}
.hero__dots button {
  width: 34px; height: 4px; border: 0; border-radius: 4px; cursor: pointer;
  background: rgba(255, 255, 255, .3);
  padding: 0;
  transition: background .35s, width .35s var(--ease);
}
.hero__dots button[aria-selected='true'] { background: var(--green); width: 52px; }
.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(11, 11, 18, .3);
  color: var(--white);
  font-size: 17px;
  cursor: pointer;
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.hero__arrow:hover { background: var(--green); border-color: var(--green); color: var(--night); }
.hero__arrow.prev { left: clamp(10px, 2vw, 26px); }
.hero__arrow.next { right: clamp(10px, 2vw, 26px); }

/* ---------------------------------------------------------------- sections */
.sec { position: relative; padding: clamp(64px, 9vw, 128px) var(--edge); }
.sec__in { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; min-width: 0; }
.sec--white { background: var(--white); }
.sec--paper { background: var(--paper); }
/* Grounds decide the ink. Light bands take deep forest and clay inks; dark
   bands use lifted brass accents for contrast. */
.sec--white, .sec--paper, .nav { --ink-green: var(--green-ink); --ink-magenta: var(--magenta-ink); }
/* Three graded text tones stay readable on the dark photo bands. */
.sec--indigo, .sec--grad {
  --ink-green: var(--green-lift);
  --ink-magenta: var(--magenta-lift);
  --fg-body: rgba(255, 255, 255, .97);
  --fg-muted: rgba(255, 255, 255, .93);
  --fg-faint: rgba(255, 255, 255, .88);
}
.sec--indigo { background: var(--indigo); color: var(--white); }
.sec--night { background: var(--night); color: var(--white); }
/* diagrams on any dark ground — the same four tokens, taken up a step */
.sec--night, .sec--indigo, .sec--grad, .hero, .foot, .paneo {
  --d-ink: var(--fg-muted);
  --d-ink-2: var(--white);
  --d-line: rgba(255, 255, 255, .26);
  --d-plate: rgba(255, 255, 255, .09);
}
.sec--indigo h2, .sec--indigo h3, .sec--night h2, .sec--night h3 { color: var(--white); }
.sec--grad {
  /* deepened a step: the old first stop was light enough to eat a label */
  background: linear-gradient(135deg, var(--indigo-2) 0%, var(--indigo-3) 62%, #6a473b 100%);
  color: var(--white);
}

/* ------------------------------------------------------------- band texture
   Each band is printed on a surface: the dark ones on grain over an
   engineering grid, the indigo and gradient ones on a hatch, the light ones
   on paper tooth so a white section stops reading as a flat fill. Content
   sits on z-index 1 (.sec__in), so none of this can cover a word.          */
.sec::before, .sec::after, .foot::before, .foot::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.sec--night::before { background-image: var(--tex-grid); background-size: var(--tex-grid-size); opacity: .18; }
.sec--night::after {
  background-image: var(--tex-grain), var(--tex-dust);
  background-size: 140px 140px, 260px 260px;
  opacity: .2; mix-blend-mode: overlay;
}
.sec--indigo::before { background-image: var(--tex-hatch); opacity: .22; }
.sec--indigo::after {
  background-image: var(--tex-grain);
  background-size: 140px 140px;
  opacity: .08; mix-blend-mode: overlay;
}
.sec--grad::before {
  background-image: var(--tex-hatch), var(--tex-grid);
  background-size: auto, var(--tex-grid-size);
  opacity: .2;
}
.sec--grad::after {
  background-image: var(--tex-grain);
  background-size: 140px 140px;
  opacity: .08; mix-blend-mode: overlay;
}
.sec--white::after, .sec--paper::after {
  background-image: var(--tex-tooth);
  background-size: 180px 180px;
  opacity: .11; mix-blend-mode: multiply;
}
.sec--paper::after { opacity: .15; }

/* -------------------------------------------------------------- band plates
   Every dark band carries a photograph behind its texture. The plate is
   z-index -1 inside an isolated stacking context, which lands it above the
   flat band colour and below the grid, hatch and grain the band already prints
   on — so the photo is the ground, not a sticker on top of the type.
   Each plate ships with its darkening baked in by tools/grade-bands.mjs; the
   ::after scrim here is a second, direction-aware net for whichever column
   carries the heading, and it is what keeps the AA ratios honest on the bright
   half of a frame.
   The drift is a slow push-in plus a pan on background-position: panning the
   image inside its own box cannot expose an edge, so no band needs overflow
   hidden and no neighbour can be painted over.                              */
.sec, .foot { isolation: isolate; }
.sec__plate { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.sec__plate::before {
  content: ''; position: absolute; inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 46% 42%;
  animation: plateDrift 54s ease-in-out infinite alternate;
}
@keyframes plateDrift {
  from { transform: scale(1.05); background-position: 42% 38%; }
  to   { transform: scale(1.15); background-position: 58% 60%; }
}
.sec__plate::after { content: ''; position: absolute; inset: 0; }
.sec__plate--night { opacity: .9; }
.sec__plate--night::before { background-image: url('./assets/band/band-night.jpg'); }
.sec__plate--night::after {
  background: linear-gradient(100deg, rgba(11,11,18,.72) 0%, rgba(11,11,18,.34) 46%, rgba(11,11,18,.06) 74%, rgba(11,11,18,.4) 100%);
}
.sec__plate--deep { opacity: .82; }
.sec__plate--deep::before { background-image: url('./assets/band/band-city.jpg'); }
.sec__plate--deep::after {
  background: radial-gradient(120% 90% at 50% 44%, rgba(11,11,18,.2) 0%, rgba(11,11,18,.72) 78%);
}
.sec__plate--indigo { opacity: .88; }
.sec__plate--indigo::before { background-image: url('./assets/band/band-indigo.jpg'); }
.sec__plate--indigo::after {
  background: linear-gradient(104deg, rgba(11,11,18,.58) 0%, rgba(31,49,41,.3) 52%, rgba(11,11,18,.5) 100%);
}
.sec__plate--grad { opacity: .72; }
.sec__plate--grad::before { background-image: url('./assets/band/band-grad.jpg'); }
.sec__plate--grad::after {
  background: linear-gradient(180deg, rgba(11,11,18,.5) 0%, rgba(84,53,41,.24) 50%, rgba(11,11,18,.56) 100%);
}
.sec__plate--foot { opacity: .42; }
.sec__plate--foot::before { background-image: url('./assets/band/band-night.jpg'); }
.sec__plate--foot::after {
  background: linear-gradient(180deg, rgba(11,11,18,.34) 0%, rgba(11,11,18,.72) 62%, rgba(11,11,18,.86) 100%);
}
@media (max-width: 900px) {
  .sec__plate--night::before, .sec__plate--foot::before { background-image: url('./assets/band/band-night-sm.jpg'); }
  .sec__plate--deep::before { background-image: url('./assets/band/band-city-sm.jpg'); }
  .sec__plate--indigo::before { background-image: url('./assets/band/band-indigo-sm.jpg'); }
  .sec__plate--grad::before { background-image: url('./assets/band/band-grad-sm.jpg'); }
  /* a phone viewport is a slice of the frame; the push-in reads as a pan there,
     and the baked scrim is already tuned for the wide crop */
  .sec__plate::before { animation-duration: 40s; background-position: 50% 46%; }
  .sec__plate--night::after { background: linear-gradient(180deg, rgba(11,11,18,.66) 0%, rgba(11,11,18,.28) 55%, rgba(11,11,18,.5) 100%); }
  .sec__plate--indigo::after { background: linear-gradient(180deg, rgba(11,11,18,.5) 0%, rgba(31,49,41,.24) 52%, rgba(11,11,18,.52) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .sec__plate::before { animation: none; transform: scale(1.05); }
}

/* ---------------------------------------------------------------- interlude
   A full-bleed photographic break between two dense bands: background plate,
   one foreground frame that overlaps the edge it sits on, and a line of copy.
   This is the only place on the page an image is allowed in front of type.  */
.inter {
  position: relative; isolation: isolate;
  padding: clamp(76px, 10vw, 148px) var(--edge);
  background: var(--night) url('./assets/band/band-city.jpg') center 40% / cover no-repeat;
  overflow: hidden;
  color: var(--white);
}
@media (max-width: 900px) { .inter { background-image: url('./assets/band/band-city-sm.jpg'); } }
.inter::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--tex-grid); background-size: var(--tex-grid-size); opacity: .5;
}
.inter::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(96deg, rgba(11,11,18,.9) 0%, rgba(11,11,18,.62) 44%, rgba(24,16,58,.5) 72%, rgba(11,11,18,.82) 100%);
}
.inter__in {
  position: relative; z-index: 1;
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(26px, 4vw, 60px); align-items: center;
}
.inter__copy h2 {
  font-family: var(--title); font-weight: 700; color: var(--white);
  font-size: clamp(26px, 3.6vw, 46px); line-height: 1.14; letter-spacing: -.5px;
}
.inter__copy h2 em { font-style: normal; color: var(--green-soft); }
.inter__copy p { margin-top: 16px; max-width: 46ch; color: var(--fg-body); font-size: 1.03em; line-height: 1.66; }
.inter__stats { display: flex; flex-wrap: wrap; gap: 26px 40px; margin-top: 26px; }
.inter__stats b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(24px, 2.8vw, 34px); color: var(--white); line-height: 1;
}
.inter__stats span { display: block; margin-top: 7px; font-family: var(--mono); font-size: 9.6px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-muted); }
/* the foreground frame: a real render, lifted off the plate with a shadow and
   a slow float, cropped to the brand radius */
.inter__fg {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 34px 70px rgba(4,4,10,.6), 0 0 0 1px rgba(255,255,255,.14) inset;
  animation: interFloat 11s ease-in-out infinite alternate;
}
@keyframes interFloat { from { transform: translateY(-7px) } to { transform: translateY(9px) } }
.inter__fg img { width: 100%; height: auto; display: block; }
.inter__fg figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(11,11,18,0), rgba(11,11,18,.86));
  font-family: var(--mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--fg-muted);
}
@media (max-width: 900px) {
  .inter__in { grid-template-columns: minmax(0, 1fr); }
  .inter__fg { order: -1; }
}
@media (prefers-reduced-motion: reduce) { .inter__fg { animation: none; } }

.sec-head { margin-bottom: clamp(34px, 4.6vw, 62px); }
.kick {
  display: block;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-green);
  margin-bottom: 12px;
}
.kick--grey { color: var(--grey-2); }
.sec--night .kick--grey, .sec--indigo .kick--grey { color: var(--fg-muted); }
.sec-head h2 {
  font-size: clamp(30px, 5vw, 64px);
  letter-spacing: -.015em;
  max-width: 22ch;
}
/* one display face for everything at heading size, so the hero lockup and the
   band titles are clearly the same voice; Sora keeps the UI */
.sec-head h2, .render h2, .paneo__in h2, .wfeat h3 {
  font-family: var(--display);
  font-variation-settings: 'wght' 760, 'wdth' 104;
  letter-spacing: -.026em;
  line-height: .98;
}
.sec-head h2 em { font-style: normal; color: var(--ink-green); }
.sec-head--wide h2 { max-width: 34ch; }
.sec-head p { margin-top: 18px; max-width: 66ch; color: var(--grey); font-size: 1.03em; }
.sec--night .sec-head p, .sec--indigo .sec-head p { color: var(--fg-body); }
.sec-head__row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 26px; flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(30px, 4vw, 54px);
}
.sec--indigo .sec-head__row, .sec--night .sec-head__row { border-bottom-color: rgba(255, 255, 255, .2); }
.sec-head__row .num, .inter .num {
  font-family: var(--title); font-weight: 700;
  font-size: clamp(32px, 4.8vw, 62px);
  color: var(--ink-green); line-height: 1;
}
.sec-head__row .ttl { font-size: clamp(19px, 2.4vw, 30px); }
.sec-head__row .meta {
  font-family: var(--mono); font-weight: 500; font-size: 10.7px; letter-spacing: 0.09em;
  color: var(--grey-2); text-align: right; line-height: 2; text-transform: uppercase;
}
.sec--indigo .sec-head__row .meta, .sec--night .sec-head__row .meta { color: var(--fg-faint); }

/* ------------------------------------------------------------ card grids */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 2vw, 28px);
}
.card {
  background-color: var(--paper);
  background-image: var(--tex-stock);
  background-size: var(--tex-stock-size);
  border-radius: var(--radius);
  padding: clamp(24px, 2.4vw, 34px);
  min-width: 0;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .45s;
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lift); background-color: var(--white); }
.card__t {
  font-family: var(--body); font-weight: 700; font-size: 17px;
  color: var(--ink); margin-bottom: 18px; line-height: 1.4;
}
.card__t b { color: var(--ink-green); font-weight: 700; margin-right: 4px; }
.card ul li {
  position: relative;
  padding-left: 17px;
  color: var(--ink-2);
  font-size: .96em;
  line-height: 1.55;
  margin-bottom: 7px;
}
.card ul li::before { content: '–'; position: absolute; left: 0; color: var(--ink-2); }
.card p { color: var(--grey); font-size: .96em; }
.card--white { background-color: var(--white); box-shadow: var(--shadow); }
.card--white:hover { background: var(--white); }
.sec--paper .card { background-color: var(--white); }
.sec--indigo .card, .sec--night .card { background-color: rgba(255, 255, 255, .06); background-image: none; }
.sec--indigo .card:hover, .sec--night .card:hover { background-color: rgba(255, 255, 255, .12); box-shadow: none; }
.sec--indigo .card__t, .sec--night .card__t { color: var(--white); }
.sec--indigo .card ul li, .sec--night .card ul li { color: var(--fg-body); }
.sec--indigo .card ul li::before, .sec--night .card ul li::before { color: rgba(255, 255, 255, .6); }

/* ------------------------------------------- indigo feature columns (5-up) */
.feats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0;
}
.feat { padding: 4px clamp(18px, 2.2vw, 32px); border-left: 1px solid rgba(255, 255, 255, .22); min-width: 0; }
.feat:first-child { border-left: 0; padding-left: 0; }
.feat h4 { font-family: var(--body); font-weight: 700; font-size: 16px; color: var(--white); margin-bottom: 8px; line-height: 1.45; text-transform: none; }
.feat h4 b { color: var(--ink-green); font-weight: 700; margin-right: 3px; }
.feat p { color: var(--fg-body); font-size: .95em; margin: 0; }

/* ------------------------------------------------------------------ pills */
.pill {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--title); font-weight: 700; font-size: 13px;
  text-transform: uppercase;
  color: var(--white);
  background-color: var(--indigo);
  background-image: var(--tex-ink);
  background-size: var(--tex-ink-size);
  border: 0; border-radius: var(--radius);
  padding: 16px 30px;
  cursor: pointer;
  transition: background-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.pill:hover { background-color: var(--indigo-2); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(41, 73, 61, .24); }
.pill--green { background-color: var(--green); color: var(--night); }
.pill--green:hover { background-color: var(--green-soft); box-shadow: 0 16px 34px rgba(209, 173, 120, .24); }
.pill--ghost { background-image: none; background-color: transparent; border: 1px solid rgba(255, 255, 255, .4); }
.pill--ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: none; }
.pill i { font-style: normal; transition: transform .3s var(--ease); }
.pill:hover i { transform: translateX(5px); }

/* -------------------------------------------------- render split sections */
.render {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
}
.render--rev .render__art { order: -1; }
.render__art { position: relative; min-width: 0; }
.render__art img { width: 100%; height: auto; border-radius: var(--radius); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .5)); }
.render__art::after {
  content: '';
  position: absolute; inset: auto 8% 4% 8%; height: 40px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(193, 153, 95, .3), transparent 72%);
  filter: blur(14px);
  z-index: -1;
}
.render h2 { font-size: clamp(28px, 3.8vw, 52px); letter-spacing: -.024em; line-height: 1.04; }
.render h2 em { font-style: normal; color: var(--ink-green); }
.render__sub {
  font-family: var(--title); font-weight: 400; font-size: clamp(13px, 1.4vw, 18px);
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--grey-3); margin: 18px 0 14px;
}
.sec--night .render p { color: var(--fg-body); }
.render__acts { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ------------------------------------------------------------------ steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(16px, 2vw, 26px); }
.step {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.step:hover { transform: translateY(-7px); box-shadow: var(--shadow-lift); }
.step__n {
  font-family: var(--title); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -.03em;
  color: var(--ink-green); margin-bottom: 14px;
}
.step h4 { font-family: var(--body); font-size: 17px; text-transform: none; margin-bottom: 8px; }
.step p { color: var(--grey); font-size: .95em; margin: 0; }
.step__tag {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--mono); font-weight: 500; font-size: 9.2px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--indigo-3); background: rgba(41, 73, 61, .1);
  border-radius: var(--radius); padding: 5px 11px;
}
.step__tag--green { color: var(--ink-green); background: rgba(49, 91, 72, .1); }

/* ------------------------------------------------------------------ stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: clamp(18px, 2.4vw, 34px); }
.stat { text-align: center; padding: 8px 14px; border-left: 1px solid rgba(255, 255, 255, .2); }
.stat:first-child { border-left: 0; }
.stat b {
  display: block;
  font-family: var(--title); font-weight: 700;
  font-size: clamp(42px, 6.1vw, 82px); line-height: .96;
  color: var(--white);
}
.stat span { display: block; margin-top: 10px; font-size: .92em; color: var(--fg-muted); }

/* --------------------------------------------------------------- panels */
.panel {
  background-color: var(--white);
  background-image: var(--tex-stock);
  background-size: var(--tex-stock-size);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 2.6vw, 38px);
  min-width: 0;
}
.panel--paper { background-color: var(--paper); box-shadow: none; }
.panel__t {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding-bottom: 16px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.panel__t h3 { font-size: clamp(17px, 1.9vw, 24px); }
.panel__t span { font-family: var(--mono); font-size: 12px; color: var(--grey-2); white-space: nowrap; }
.sec--night .panel { background: rgba(255, 255, 255, .07); box-shadow: none; }
/* On a saturated indigo field a milky panel lifts the ground and eats the
   contrast of everything inside it, so the sheet goes smoky instead: a deep
   plate with a hairline rim, which reads as glass and drops the ground below
   the band so muted white copy can hold AA. */
.sec--indigo .panel, .sec--grad .panel {
  background-color: rgba(5, 5, 20, .34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.sec--night .panel__t, .sec--indigo .panel__t { border-bottom-color: rgba(255, 255, 255, .18); }
.sec--night .panel__t h3, .sec--indigo .panel__t h3 { color: var(--white); }
.sec--night .panel__t span { color: var(--fg-muted); }
.sec--indigo .panel__t span, .sec--grad .panel__t span { color: var(--fg-muted); }

.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(22px, 3.4vw, 46px); align-items: start; }
/* the summary pair is deliberately uneven — a statement on the left, a stack
   of instruments on the right — so the short side centres rather than leaving
   all of its air in one block under the quote */
.duo--wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
.duo--tight { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }

/* ----------------------------------------------------------------- tables */
.scroll-x { overflow-x: auto; min-width: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95em; }
.tbl th, .tbl td { text-align: left; padding: 15px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th {
  font-family: var(--mono); font-weight: 500; font-size: 11.2px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--white); background: var(--indigo);
  border-bottom: 0; white-space: nowrap;
}
.tbl thead th:first-child { border-radius: var(--radius-2) 0 0 var(--radius-2); }
.tbl thead th:last-child { border-radius: 0 var(--radius-2) var(--radius-2) 0; }
.tbl tbody tr { transition: background .3s; }
.tbl tbody tr:hover { background: var(--paper); }
.tbl td:first-child { font-weight: 700; color: var(--ink); }
.tbl .muted { color: var(--grey); }
.tbl .ok { color: var(--ink-green); font-weight: 600; }
.tbl .no { color: #e0455a; font-weight: 600; }
.tbl .cond { color: var(--indigo); }
.sec--night .tbl th, .sec--night .tbl td { border-bottom-color: rgba(255, 255, 255, .12); }
.sec--night .tbl td:first-child { color: var(--white); }
.sec--night .tbl .muted { color: var(--fg-muted); }
.sec--night .tbl tbody tr:hover { background: rgba(255, 255, 255, .05); }

/* --------------------------------------------------------------- lists */
.dash li { position: relative; padding-left: 17px; margin-bottom: 8px; font-size: .97em; }
.dash li::before { content: '–'; position: absolute; left: 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 11px; font-size: .97em; }
.ticks li::before {
  content: '✓'; position: absolute; left: 0; top: -1px;
  color: var(--ink-green); font-weight: 700;
}
.crosses li { position: relative; padding-left: 26px; margin-bottom: 11px; font-size: .97em; }
.crosses li::before { content: '✕'; position: absolute; left: 0; top: -1px; color: #e0455a; font-weight: 700; }
.sec--night .dash li, .sec--night .ticks li, .sec--night .crosses li { color: rgba(255, 255, 255, .8); }

dl.kv { margin: 0; }
dl.kv > div {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 2fr); gap: 18px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
dl.kv dt { font-family: var(--mono); font-weight: 500; font-size: 10.7px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--grey-2); }
dl.kv dd { margin: 0; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink); text-align: right; }
.sec--night dl.kv > div, .sec--indigo dl.kv > div { border-bottom-color: rgba(255, 255, 255, .14); }
.sec--night dl.kv dt, .sec--indigo dl.kv dt { color: var(--fg-faint); }
.sec--night dl.kv dd, .sec--indigo dl.kv dd { color: var(--white); }

/* ----------------------------------------------------------- chip rows */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: var(--mono); font-weight: 500; font-size: 10.2px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--indigo-3); background: rgba(41, 73, 61, .1);
  border-radius: var(--radius); padding: 8px 15px;
  transition: background .3s, color .3s;
}
.chip[data-on='true'] { background: var(--green); color: var(--night); }
.chip--green { color: var(--ink-green); background: rgba(49, 91, 72, .1); }
.sec--night .chip { color: var(--fg-body); background: rgba(255, 255, 255, .1); }
.sec--night .chip[data-on='true'], .chip--solid { background: var(--green); color: var(--night); }

/* ------------------------------------------------------- tab / nav rows */
.tabnav { display: flex; flex-wrap: wrap; gap: 9px; }
.tabnav button {
  font-family: var(--body); font-size: 13.5px; font-weight: 600;
  color: var(--grey); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 18px; cursor: pointer;
  transition: color .28s, background .28s, border-color .28s, transform .28s var(--ease);
}
.tabnav button:hover { color: var(--indigo); border-color: var(--indigo); transform: translateY(-2px); }
.tabnav button[aria-pressed='true'], .tabnav button[aria-selected='true'] {
  background: var(--indigo); border-color: var(--indigo); color: var(--white);
  /* same ink screen as the CTAs: every solid brand fill in the page is
     printed the same way */
  background-image: var(--tex-ink); background-size: var(--tex-ink-size);
}
.sec--night .tabnav button { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: var(--fg-muted); }
.sec--night .tabnav button[aria-pressed='true'], .sec--night .tabnav button[aria-selected='true'] { background: var(--green); border-color: var(--green); color: var(--night); background-image: var(--tex-ink); background-size: var(--tex-ink-size); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(24px, 3vw, 38px); }
.filters button {
  font-family: var(--mono); font-weight: 500; font-size: 11.2px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--grey); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 20px; cursor: pointer;
  transition: all .3s var(--ease);
}
.filters button:hover { border-color: var(--indigo); color: var(--indigo); }
.filters button[aria-pressed='true'] { background: var(--green); border-color: var(--green); color: var(--night); font-weight: 700; }

/* ------------------------------------------------------------ risk cards */
.risks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(16px, 1.8vw, 24px); }
.risk {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 2.2vw, 30px);
  display: grid; gap: 12px; align-content: start;
  min-width: 0;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .4s;
}
.risk:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.risk[data-dim='true'] { opacity: .3; }
.risk__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.risk__id { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--ink-green); letter-spacing: .06em; }
.risk__sev {
  font-family: var(--mono); font-weight: 500; font-size: 9.2px; letter-spacing: 0.09em; text-transform: uppercase;
  border-radius: var(--radius); padding: 5px 11px;
}
/* the badge is 9px, so the bright signal red has to come down to an ink that
   still clears AA on its own tint; the bar keeps the loud colour */
.risk__sev[data-sev='Critical'] { color: #a8102b; background: rgba(224, 69, 90, .13); }
.risk__sev[data-sev='High'] { color: #7a4a05; background: rgba(200, 129, 31, .16); }
.risk h4 { font-family: var(--body); font-size: 16.5px; text-transform: none; line-height: 1.4; }
.risk .why { color: var(--grey); font-size: .93em; margin: 0; }
.risk .meter { height: 5px; border-radius: 4px; background: var(--line); overflow: hidden; }
.risk .meter i { display: block; height: 100%; width: var(--v, 0%); border-radius: 4px; transition: width 1.3s var(--ease); }
.risk__sev[data-sev='Critical'] ~ .why ~ .meter i, .meter--high i { background: linear-gradient(90deg, #e0455a, #ff7a8a); }
.meter--mid i { background: linear-gradient(90deg, #c8811f, #e9b455); }
.risk .fix { font-size: .92em; color: var(--ink-2); margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.risk .fix b {
  display: block; font-family: var(--mono); font-weight: 500; font-size: 9.7px; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-green); margin-bottom: 5px;
}

/* --------------------------------------------------------------- the wipe */
.wipe {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night);
  touch-action: pan-y;
  cursor: ew-resize;
  aspect-ratio: 1400 / 860;
  max-height: 76vh;
  box-shadow: var(--shadow-dark);
}
.wipe img { width: 100%; height: 100%; object-fit: cover; }
.wipe__top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--w, 50%)) 0 0); }
.wipe__handle {
  position: absolute; top: 0; bottom: 0; left: var(--w, 50%);
  width: 2px; background: var(--green);
  transform: translateX(-1px);
  box-shadow: 0 0 26px rgba(209, 173, 120, .58);
}
.wipe__handle::after {
  content: '◄ ►';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 40px; border-radius: var(--radius);
  background: var(--green); color: var(--night);
  font-size: 10px; display: grid; place-items: center;
  font-family: var(--body); font-weight: 700; letter-spacing: .04em;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .4);
}
.wipe__legend {
  position: absolute; top: 18px;
  font-family: var(--mono); font-weight: 500; font-size: 10.2px; letter-spacing: 0.09em; text-transform: uppercase;
  background: rgba(11, 11, 18, .6); backdrop-filter: blur(8px);
  border-radius: var(--radius); padding: 9px 15px; color: var(--white);
}
.wipe__legend.l { left: 18px; }
.wipe__legend.r { right: 18px; color: var(--ink-green); }

/* ------------------------------------------------------------------ meters */
.meter { height: 6px; border-radius: 5px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--v, 0%); border-radius: 5px; background: linear-gradient(90deg, var(--green), var(--green-soft)); transition: width 1.4s var(--ease); }
.track { height: 6px; border-radius: 5px; background: rgba(255, 255, 255, .18); overflow: hidden; margin-bottom: 30px; }
.track i { display: block; height: 100%; width: var(--v, 0%); border-radius: 5px; background: linear-gradient(90deg, var(--green), var(--magenta)); transition: width 1.7s var(--ease); }
.sec--white .track, .sec--paper .track { background: var(--line); }

/* ------------------------------------------------------------------ phases */
.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.phase {
  background: rgba(255, 255, 255, .07);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: grid; gap: 11px; align-content: start;
  min-width: 0;
  transition: transform .45s var(--ease), background .45s;
}
.phase:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .13); }
.phase__k { font-family: var(--title); font-weight: 700; font-size: 34px; color: var(--ink-green); line-height: 1; letter-spacing: -.03em; }
.phase__d { font-family: var(--mono); font-size: 12px; color: var(--fg-faint); justify-self: end; }
.phase h4 { font-family: var(--body); font-size: 15.5px; text-transform: none; color: var(--white); line-height: 1.35; }
.phase__o { font-size: .92em; color: var(--fg-body); margin: 0; }
.phase__b { font-size: .86em; color: rgba(255, 255, 255, .6); border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 11px; margin: 0; }
.phase__b b { display: block; font-family: var(--mono); font-weight: 500; font-size: 9.2px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-green); margin-bottom: 5px; }
.phase[data-cond='true'] { background: transparent; border: 1px dashed rgba(255, 255, 255, .3); }
.phase[data-cond='true'] .phase__k { color: var(--ink-magenta); }
.phase[data-cond='true'] .phase__b b { color: var(--ink-magenta); }

/* --------------------------------------------------------------- the stack */
.stack { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(26px, 4vw, 60px); align-items: center; }
.stack svg { width: 100%; height: auto; overflow: visible; min-width: 0; }
.slab { cursor: pointer; }
.slab .lift { transition: transform .55s var(--ease); }
.slab polygon, .slab path, .slab circle { transition: fill .35s, stroke .35s, opacity .35s; }
.slab text { font-family: var(--mono); font-weight: 500; font-size: 10.2px; letter-spacing: 0.09em; fill: rgba(255, 255, 255, .62); }
.slab .slabnum { font-family: var(--title); font-weight: 700; font-size: 17px; fill: var(--green); letter-spacing: 0; }
.slab .slabmode { fill: var(--magenta); font-size: 8px; letter-spacing: .14em; }
.slab .slablab { font-size: 8.6px; letter-spacing: .1em; }
.slab:hover .face-t { fill: #2a2f5e; }
.slab[data-on='true'] .lift { transform: translateY(-10px); }
.slab[data-on='true'] .face-t { fill: var(--indigo-2); stroke: var(--green); stroke-width: 1.6; }
.slab[data-on='true'] .lead { stroke: var(--green); }
.slab[data-on='true'] .leaddot { fill: var(--green); }
.slab:focus-visible { outline: none; }
.slab:focus-visible .face-t { stroke: var(--green-soft); stroke-width: 2.2; }
.slabnum-in { display: none; font-family: var(--title); font-weight: 700; font-size: 26px; fill: var(--green); }
.stack--tight .slabnum, .stack--tight .slablab, .stack--tight .slabmode,
.stack--tight .lead, .stack--tight .leaddot, .stack--tight .axiscue { display: none; }
.stack--tight .slabnum-in { display: block; }
.layinfo__t { font-family: var(--title); font-weight: 700; font-size: clamp(19px, 2.2vw, 28px); line-height: 1.18; color: var(--white); text-transform: uppercase; margin: 14px 0 12px; }
.layinfo p { color: var(--fg-body); font-size: .98em; }

/* --------------------------------------------------------------- radar/hub */
.chart svg { width: 100%; height: auto; overflow: visible; }
#radar text, #hub text { font-family: var(--mono); font-weight: 500; font-size: 10.2px; letter-spacing: 0.09em; fill: var(--grey-2); }
.sec--night #radar text, .sec--night #hub text { fill: rgba(255, 255, 255, .66); }
#radar .rlabel, #hub .hlabel { font-family: var(--body); font-weight: 700; font-size: 12px; letter-spacing: .02em; fill: var(--ink); }
#hub .corelabel { font-family: var(--mono); font-weight: 700; font-size: 10.4px; letter-spacing: 0.08em; fill: var(--white); }
.sec--night #radar .rlabel, .sec--night #hub .hlabel { fill: var(--white); }
.sec--indigo #radar text { fill: rgba(255, 255, 255, .74); }
.sec--indigo #radar .rlabel { fill: var(--white); }
.sec--indigo #radar .ring { stroke: rgba(255, 255, 255, .22); }
.sec--indigo #radar .spoke { stroke: rgba(255, 255, 255, .24); }

/* the scripting-off notice: normally `hidden`, the noscript style above flips
   it on so a crawler or a locked-down browser still gets the one-paragraph
   abstract and knows which registers are script-rendered */
.noscript-note {
  display: none; margin: 0; padding: 18px var(--edge);
  background: var(--night); color: var(--fg-body);
  font-family: var(--body); font-size: 15px; line-height: 1.62;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.noscript-note b { color: var(--white); font-family: var(--title); }

/* ----------------------------------------------------------------- reveal
   Reveals are an enhancement, not a gate: with scripting off — or for a crawler
   that never runs it — every block has to already be on the page. The hidden
   state is therefore scoped to .js, which the inline head script sets. */
.js .rev, .js .rev-x { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .rev-x { transform: translateX(-34px); }
.rev.in, .rev-x.in { opacity: 1; transform: none; }
.mask-line { display: block; overflow: hidden; }
.mask-line > span { display: block; }
.js .mask-line > span { transform: translateY(104%); transition: transform 1.15s var(--ease); }
.mask-line.in > span, .loaded .mask-line > span { transform: none; }
.loaded .d1 > span { transition-delay: .12s; }
.loaded .d2 > span { transition-delay: .26s; }
.loaded .d3 > span { transition-delay: .4s; }

/* ----------------------------------------------------------------- footer */
/* The footer is a field, not a caption. It carries the night band's plates
   (the element itself has .sec--night, so the grid, grain and dust come from
   there) and a live seal diagram in the fourth column, so nothing on the page
   is a flat empty rectangle. */
.foot {
  position: relative;
  isolation: isolate;
  background: var(--night);
  color: rgba(255, 255, 255, .74);
  padding: clamp(56px, 7vw, 96px) var(--edge) 34px;
}
.foot__in { max-width: var(--container); margin: 0 auto; }
.foot__in, .classline, .foot__cred { position: relative; z-index: 1; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, .9fr)) minmax(0, .8fr); gap: clamp(28px, 4vw, 54px); }
.foot h4 { font-family: var(--title); font-size: clamp(28px, 3.7vw, 46px); color: var(--white); margin-bottom: 16px; }
.foot h4 em { font-style: normal; color: var(--ink-green); }
.foot__note { font-size: .95em; max-width: 40ch; }
.foot .lab { font-family: var(--mono); font-weight: 500; font-size: 10.7px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--white); display: block; margin-bottom: 14px; }
/* the document-control columns are narrow, and a value like
   "Mining-led concepts" is one unbreakable run of mono that used to slide
   left under its own label. Here the pair stacks instead. */
.foot dl.kv > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 11px 0; }
.foot dl.kv dd { text-align: left; font-size: 12.5px; }
.classline {
  max-width: var(--container); margin: clamp(34px, 5vw, 60px) auto 0;
  padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  font-family: var(--mono); font-weight: 500; font-size: 9.7px; letter-spacing: 0.09em; text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.classline b { color: var(--ink-green); font-weight: 400; }

/* the footer seal — a slow orbit, a counter-running tick ring, a sweep and a
   core that breathes. Four independent clocks, so it never looks looped. */
.foot__diag {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; min-width: 0;
}
.foot__diag svg { width: clamp(140px, 12vw, 196px); height: auto; overflow: visible; }
.foot__diag circle, .foot__diag polygon, .foot__diag line { fill: none; }
.dg-ring--a { stroke: rgba(255, 255, 255, .34); stroke-width: 1; stroke-dasharray: 2 7; }
.dg-ring--b { stroke: rgba(209, 173, 120, .48); stroke-width: 1; stroke-dasharray: 14 10; }
.dg-node { fill: var(--green-soft); stroke: none; }
.dg-orbit { animation: dgSpin 54s linear infinite; transform-origin: 50% 50%; }
.dg-ticks { animation: dgSpin 38s linear infinite reverse; transform-origin: 50% 50%; }
.dg-spoke { stroke: rgba(209, 173, 120, .42); stroke-width: 1; }
.dg-sweep { animation: dgSpin 17s linear infinite; transform-origin: 50% 50%; }
.dg-hex { stroke: rgba(255, 255, 255, .6); stroke-width: 1; }
.dg-core { fill: rgba(209, 173, 120, .16); stroke: var(--green); stroke-width: 1.4; }
.dg-pulse { stroke: rgba(209, 173, 120, .5); animation: dgPulse 3.6s var(--ease) infinite; transform-origin: 50% 50%; }
.dg-cross { stroke: rgba(255, 255, 255, .44); stroke-width: 1; }
/* a little light under the seal so it reads as an instrument, not a wireframe
   floating in a black rectangle */
.foot__diag svg { filter: drop-shadow(0 0 26px rgba(209, 173, 120, .13)); }
@keyframes dgSpin { to { transform: rotate(360deg); } }
@keyframes dgPulse {
  0% { transform: scale(1); opacity: .7; }
  70%, 100% { transform: scale(2.5); opacity: 0; }
}
.foot__diag-cap {
  font-family: var(--mono); font-weight: 500; font-size: 9.6px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255, 255, 255, .74);
  display: inline-flex; align-items: center; gap: 7px;
}
.foot__diag-cap b {
  width: 5px; height: 5px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(209, 173, 120, .5); animation: dgBeacon 3.6s var(--ease) infinite;
}
@keyframes dgBeacon {
  0% { box-shadow: 0 0 0 0 rgba(209, 173, 120, .5); }
  60%, 100% { box-shadow: 0 0 0 9px rgba(209, 173, 120, 0); }
}
@media (max-width: 1080px) {
  .foot__grid { grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); }
  .foot__diag { grid-column: 1 / -1; padding-top: 10px; }
}
@media (max-width: 640px) {
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
}

/* -------------------------------------------------- full-bleed image band */
.strip {
  position: relative;
  height: clamp(150px, 21vw, 270px);
  overflow: hidden;
  background: var(--night);
}
.strip img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 62%;
}
.strip::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 11, 18, .5), transparent 42%, rgba(41, 73, 61, .3));
  pointer-events: none;
}

/* --------------------------------------------- indigo / grad band contrast */
.sec--indigo .tbl th, .sec--indigo .tbl td { border-bottom-color: rgba(255, 255, 255, .2); }
.sec--indigo .tbl thead th { background: rgba(11, 11, 18, .22); color: var(--white); }
.sec--indigo .tbl td:first-child { color: var(--white); }
.sec--indigo .tbl .muted { color: var(--fg-muted); }
.sec--indigo .tbl .ok { color: var(--ink-green); }
.sec--indigo .tbl .no { color: #ffc0cb; }
.sec--indigo .tbl .cond { color: #ecd9b9; }
.sec--indigo .tbl tbody tr:hover { background: rgba(255, 255, 255, .07); }
.sec--indigo .scroll-x, .sec--grad .scroll-x {
  background:
    linear-gradient(to right, var(--indigo) 34%, rgba(41, 73, 61, 0)) left / 44px 100% no-repeat local,
    linear-gradient(to left, var(--indigo) 34%, rgba(41, 73, 61, 0)) right / 44px 100% no-repeat local;
}
.sec--indigo .chip { color: var(--white); background: rgba(255, 255, 255, .16); }
.sec--indigo .chip--green { color: var(--night); background: var(--green); }
.sec--indigo .kick { color: var(--ink-green); }
.sec--indigo .dash li, .sec--indigo .ticks li, .sec--indigo .crosses li { color: var(--fg-body); }
.sec--indigo .ticks li::before, .sec--grad .ticks li::before { color: var(--ink-green); }
.sec--indigo .crosses li::before { color: #ffc0cb; }
.sec--grad .dash li { color: var(--fg-body); }
.sec--grad .kick { color: var(--ink-green); }
.sec--grad .kick--grey { color: var(--fg-muted); }
.sec--grad .panel__t { border-bottom-color: rgba(255, 255, 255, .2); }
.sec--grad .panel__t h3 { color: var(--white); }
.sec--grad .panel__t span { color: var(--fg-muted); }

/* meters on light backgrounds */
.sec--white .meter, .sec--paper .meter { background: var(--line); }

/* risk severity is encoded in the bar, not only the badge */
.risk[data-sev='Critical'] .meter i { background: linear-gradient(90deg, #e0455a, #ff8a96); }
.risk[data-sev='High'] .meter i { background: linear-gradient(90deg, #c8811f, #e9b455); }

/* gradient band inherits the dark-band treatment */
.sec--grad h2, .sec--grad h3, .sec--grad h4 { color: var(--white); }
.sec--grad .sec-head__row .meta { color: var(--fg-faint); }
.sec--grad .sec-head__row { border-bottom-color: rgba(255, 255, 255, .24); }
.sec--grad dl.kv > div { border-bottom-color: rgba(255, 255, 255, .18); }
.sec--grad dl.kv dt { color: var(--fg-faint); }
.sec--grad dl.kv dd { color: var(--white); }
.sec--grad .num { color: var(--ink-green); }

/* status columns must stay readable on near-black */
.sec--night .tbl .ok { color: var(--green-soft); }
.sec--night .tbl .cond { color: #cfd3ff; }
.sec--night .tbl .no { color: #ffc0cb; }
.sec--night .tbl thead th { background: rgba(255, 255, 255, .12); }

/* the stop-marking inside dark panels */
.sec--night mark, .sec--indigo mark, .sec--grad mark {
  background: rgba(11, 11, 18, .4);
  color: var(--white);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.sec--indigo h2 em, .sec--grad h2 em { color: var(--ink-green); }

/* --------------------------------------------------------------- utilities */
.mono { font-family: var(--mono); font-size: 12.5px; color: var(--grey-2); letter-spacing: .01em; }
.sec--night .mono, .sec--indigo .mono, .sec--grad .mono { color: var(--fg-faint); }
.lead { font-size: clamp(17px, 1.7vw, 22px); line-height: 1.6; color: var(--ink-2); }
.sec--night .lead { color: var(--fg-body); }
.quote {
  font-family: var(--title); font-weight: 700; text-transform: uppercase;
  font-size: clamp(21px, 3vw, 40px); line-height: 1.24; letter-spacing: -.02em;
  color: var(--ink); margin: 0;
}
.quote em { font-style: normal; color: var(--ink-green); }
.sec--night .quote, .sec--indigo .quote { color: var(--white); }
.rule { height: 1px; background: var(--line); border: 0; margin: clamp(38px, 5vw, 66px) 0; }
.sec--night .rule, .sec--indigo .rule { background: rgba(255, 255, 255, .16); }
.mt-0 { margin-top: 0; }
.mt-l { margin-top: clamp(40px, 5vw, 70px); }
.mb-l { margin-bottom: clamp(28px, 3.4vw, 48px); }
.center { text-align: center; }
.center .sec-head h2 { margin-inline: auto; }
.nowrap { white-space: nowrap; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero__body { text-align: left; max-width: 52ch; }
  .render, .stack, .duo, .duo--wide, .duo--tight { grid-template-columns: minmax(0, 1fr); }
  .render--rev .render__art { order: 0; }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .topbar__acts a span { display: none; }
  .topbar__acts { gap: 16px; }
  .brand__sub { display: none; }
  .brand__name { font-size: 17px; letter-spacing: .1em; }
  .brand__mark, .brand__mark img { width: 34px; height: 34px; }
  .brand { gap: 10px; }
  .hero__arrow { display: none; }
  .feat { border-left: 0; padding-left: 0; padding-right: 0; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 18px; }
  .feat:first-child { border-top: 0; padding-top: 0; }
  .feats { gap: 20px; }
  .stat { border-left: 0; }
  .sec-head__row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sec-head__row .meta { text-align: left; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .quote { font-size: clamp(18px, 5.4vw, 26px); }
}
@media (max-width: 900px) {
  .scroll-x {
    scrollbar-width: thin;
    background:
      linear-gradient(to right, var(--white) 34%, rgba(255, 255, 255, 0)) left / 44px 100% no-repeat local,
      linear-gradient(to left, var(--white) 34%, rgba(255, 255, 255, 0)) right / 44px 100% no-repeat local;
  }
  .sec--night .scroll-x, .sec--indigo .scroll-x {
    background:
      linear-gradient(to right, var(--night) 34%, rgba(11, 11, 18, 0)) left / 44px 100% no-repeat local,
      linear-gradient(to left, var(--night) 34%, rgba(11, 11, 18, 0)) right / 44px 100% no-repeat local;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .rev, .js .rev-x { opacity: 1; transform: none; }
  .js .mask-line > span { transform: none; }
  .hero__slide[data-on='true'] img { animation: none; }
  /* grain that jitters every 1.1s is the one texture nobody asks for; the
     plates stay, only the movement goes */
  .tex--grain, .tex--leak { animation: none; }
  .tex--grain { transform: none; }
}


/* ══════════════════════════════════════════════════ world reference frames */
.wfeat {
  position: relative;
  margin-top: clamp(26px, 3.4vw, 46px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night);
  box-shadow: var(--shadow);
}
.wfeat img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 2 / 1; object-fit: cover;
  transform: scale(1.015);
  transition: transform 1.4s var(--ease);
}
.wfeat:hover img { transform: scale(1.055); }
/* the reference frames are photographs, so they get the same grain and the
   same screen the hero plate carries; the caption sits above both */
.wfeat::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: var(--tex-grain), var(--tex-scan);
  background-size: 140px 140px, auto;
  opacity: .46; mix-blend-mode: overlay;
}
.wfeat figcaption { z-index: 2; }
.wfeat figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(78px, 12vw, 170px) clamp(20px, 3.4vw, 46px) clamp(20px, 2.6vw, 34px);
  background: linear-gradient(0deg, rgba(11, 11, 18, .95) 30%, rgba(11, 11, 18, .8) 56%, rgba(11, 11, 18, 0));
  color: rgba(255, 255, 255, .8);
}
.wfeat figcaption .kick { color: var(--green-soft); }
.wfeat h3, .wfeat figcaption p, .wfeat .wcred { text-shadow: 0 2px 26px rgba(0, 0, 0, .6); }
.wfeat h3 {
  font-family: var(--display); font-weight: 760; color: var(--white);
  font-variation-settings: 'wght' 760, 'wdth' 104;
  text-transform: uppercase; letter-spacing: -.024em; line-height: 1.02;
  font-size: clamp(21px, 2.9vw, 40px);
  margin: 10px 0 12px; max-width: 30ch;
}
.wfeat figcaption p { max-width: 62ch; font-size: .97em; }
.wcred {
  display: block; margin-top: 14px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; color: rgba(255, 255, 255, .48);
}

.wgrid {
  display: grid; gap: clamp(12px, 1.5vw, 20px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: clamp(14px, 1.8vw, 22px);
}
.wtile {
  grid-column: span 2;
  position: relative; overflow: hidden; cursor: pointer;
  border: 0; padding: 0; color: inherit;
  border-radius: var(--radius); background: var(--night);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.wtile:nth-child(n+4) { grid-column: span 3; aspect-ratio: 16 / 9; }
.wtile img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  filter: saturate(.9) brightness(.86);
  transition: transform 1.1s var(--ease), filter .6s var(--ease);
}
.wtile:hover img, .wtile:focus-visible img { transform: scale(1.07); filter: none; }
.wtile__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(11, 11, 18, .9) 2%, rgba(11, 11, 18, .12) 56%, rgba(11, 11, 18, 0));
}
.wtile__cap { position: absolute; left: 20px; right: 20px; bottom: 17px; text-align: left; }
.wtile__band {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .17em;
  text-transform: uppercase; color: var(--green-soft);
}
.wtile__t {
  display: block; margin-top: 5px;
  font-family: var(--title); font-weight: 700; color: var(--white);
  text-transform: uppercase; letter-spacing: -.01em; line-height: 1.12;
  font-size: clamp(14px, 1.35vw, 20px);
}
.wtile__go {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--night); background: var(--green);
  padding: 7px 13px; border-radius: 999px;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.wtile:hover .wtile__go, .wtile:focus-visible .wtile__go { opacity: 1; transform: none; }
.wnote { margin-top: 15px; max-width: 74ch; color: var(--grey); font-size: .93em; }

/* ────────────────────────────────────────────────── full-bleed reference band */
.paneo {
  position: relative; overflow: hidden; background: var(--night);
  min-height: clamp(400px, 52vw, 600px);
  display: grid; align-items: center;
}
.paneo > img {
  position: absolute; inset: -8% 0; width: 100%; height: 116%;
  object-fit: cover; object-position: center 42%;
  will-change: transform;
}
.paneo__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 11, 18, .95) 0%, rgba(11, 11, 18, .74) 46%, rgba(41, 73, 61, .42) 100%);
}
.paneo__in {
  position: relative; z-index: 1; max-width: var(--container); margin: 0 auto;
  padding: clamp(46px, 8vw, 104px) var(--edge); color: rgba(255, 255, 255, .78);
}
/* the reference plate gets the same film as the hero, so the two never look
   like they came off different cameras */
.paneo::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--tex-grain), var(--tex-scan);
  background-size: 140px 140px, auto;
  opacity: .5; mix-blend-mode: overlay;
}
.paneo__vig {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(126% 108% at 50% 44%, transparent 36%,
    rgba(4, 4, 11, .46) 78%, rgba(4, 4, 11, .8) 100%);
}
.paneo__in h2 {
  font-family: var(--display); font-weight: 760; color: var(--white);
  font-variation-settings: 'wght' 760, 'wdth' 104;
  text-transform: uppercase; letter-spacing: -.026em; line-height: 1;
  font-size: clamp(25px, 3.9vw, 53px); max-width: 24ch;
  margin: 12px 0 14px;
}
.paneo__in h2 em { font-style: normal; color: var(--ink-green); }
.paneo__in p { max-width: 58ch; }

/* ──────────────────────────────────────────────────────────────── lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 140;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 54px);
  background: rgba(7, 7, 12, .9);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.lightbox[data-on='true'] { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0 auto; width: min(1180px, 92vw); }
.lightbox__fig img {
  display: block; margin: 0 auto; width: auto; max-width: 100%;
  max-height: 66vh; object-fit: contain;
  border-radius: var(--radius-2);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}
.lightbox__cap { margin: 18px auto 0; display: grid; gap: 7px; max-width: 760px; }
.lightbox__cap b {
  font-family: var(--title); font-weight: 700; color: var(--white);
  text-transform: uppercase; letter-spacing: .02em; font-size: clamp(14px, 1.5vw, 19px);
}
.lightbox__cap span { color: rgba(255, 255, 255, .74); font-size: .96em; max-width: 66ch; }
.lightbox__cap i { font-style: normal; color: var(--green-soft); font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; }
.lightbox__x, .lightbox__nav {
  position: absolute; border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(11, 11, 18, .55); color: var(--white);
  border-radius: 50%; cursor: pointer; line-height: 1;
  display: grid; place-items: center;
  transition: background .25s, color .25s, border-color .25s;
}
.lightbox__x { top: clamp(14px, 2.4vw, 26px); right: clamp(14px, 2.4vw, 26px); width: 44px; height: 44px; font-size: 22px; }
.lightbox__nav { top: 50%; margin-top: -26px; width: 52px; height: 52px; font-size: 19px; }
.lightbox__nav[data-dir='-1'] { left: clamp(10px, 2.2vw, 30px); }
.lightbox__nav[data-dir='1'] { right: clamp(10px, 2.2vw, 30px); }
.lightbox__x:hover, .lightbox__nav:hover { background: var(--green); border-color: var(--green); color: var(--night); }
.lightbox__x:focus-visible, .lightbox__nav:focus-visible { outline: 2px solid var(--green-soft); outline-offset: 3px; }
html.lb-on, html.lb-on body { overflow: hidden; }

/* ─────────────────────────────────────────────────────────── footer brand */
.foot__mark { display: block; width: 58px; height: 58px; margin-bottom: 18px; }
.foot__mark img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.foot__site {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 18px;
  font-family: var(--title); font-weight: 700; font-size: 12.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-green);
}
.foot__site i { font-style: normal; transition: transform .3s var(--ease); }
.foot__site:hover { color: var(--green-soft); }
.foot__site:hover i { transform: translate(3px, -3px); }
.foot__cred {
  max-width: var(--container); margin: 26px auto 0; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 11.5px; line-height: 1.65; color: rgba(255, 255, 255, .5);
}

@media (max-width: 900px) {
  .wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wtile, .wtile:nth-child(n+4) { grid-column: span 1; aspect-ratio: 4 / 3; }
  .wfeat img { aspect-ratio: 3 / 2; }
  .paneo > img { inset: 0; height: 100%; }
}
@media (max-width: 560px) {
  .wgrid { grid-template-columns: minmax(0, 1fr); }
  .wfeat figcaption { position: static; padding: 20px 20px 24px; background: var(--night); }
  .lightbox__nav { width: 42px; height: 42px; }
}

/* ------------------------------------------------------- hero layer order
   Both layers live in .hero__stage at z-index -2, under .hero__scrim. The key
   art is the default; data-world3d only decides which of the two is visible,
   so every state (unloaded, idle, degraded, no WebGL) still shows a composed
   hero. visibility:hidden also drops the canvas out of the a11y tree.        */
.hero__gl {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: -2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.15s var(--ease), visibility 0s linear 1.15s;
}
html[data-world3d='on'] .hero__gl {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
html[data-world3d='on'] .hero__slides { opacity: 0; }
html[data-world3d='on'] .hero__slide img { animation-play-state: paused; }

/* two dark columns so both text blocks stay legible over the live render,
   with the skyline left clear through the middle */
html[data-world3d='on'] .hero__scrim {
  background:
    linear-gradient(90deg, rgba(11, 11, 18, .93) 0%, rgba(11, 11, 18, .66) 33%,
      rgba(11, 11, 18, .08) 48%, rgba(11, 11, 18, .58) 62%, rgba(11, 11, 18, .88) 74%,
      rgba(11, 11, 18, .9) 100%),
    linear-gradient(0deg, rgba(11, 11, 18, .74) 0%, rgba(11, 11, 18, .16) 36%, transparent 60%);
}

/* ------------------------------------------------------- hero texture stack
   A light print treatment keeps the photography atmospheric without obscuring
   its detail or the editorial title. */
.hero__tex { position: absolute; inset: 0; pointer-events: none; }
/* Plate textures stay beneath the copy; only a trace of grain crosses over. */
.hero__tex--plate { z-index: 1; }
.hero__tex--film { z-index: 3; }
.hero__tex i { position: absolute; inset: 0; display: block; }

/* A faint grid, gathered toward the right where the plate is busiest. */
.tex--grid {
  background-image: var(--tex-grid);
  background-size: var(--tex-grid-size);
  opacity: .04;
  -webkit-mask-image: radial-gradient(72% 66% at 76% 42%, #000 0%, rgba(0, 0, 0, .4) 46%, transparent 76%);
  mask-image: radial-gradient(72% 66% at 76% 42%, #000 0%, rgba(0, 0, 0, .4) 46%, transparent 76%);
}
/* A barely visible halftone softens the dark edge beneath the title. */
.tex--screen {
  background-image: var(--tex-halftone);
  background-size: 6px 6px;
  opacity: .02;
  mix-blend-mode: soft-light;
  -webkit-mask-image: radial-gradient(58% 54% at 21% 60%, #000 0%, transparent 72%);
  mask-image: radial-gradient(58% 54% at 21% 60%, #000 0%, transparent 72%);
}
.tex--leak {
  mix-blend-mode: screen;
  opacity: .32;
  background:
    radial-gradient(38% 44% at 70% 26%, rgba(209, 173, 120, .13) 0%, transparent 62%),
    radial-gradient(34% 40% at 18% 84%, rgba(41, 73, 61, .2) 0%, transparent 64%),
    radial-gradient(26% 30% at 92% 68%, rgba(255, 176, 92, .1) 0%, transparent 60%);
  animation: leakDrift 38s var(--ease) infinite alternate;
}
/* A soft raking highlight across the corner. */
.tex--streak {
  mix-blend-mode: screen;
  background: linear-gradient(102deg, transparent 40%, rgba(255, 255, 255, .035) 48%,
    rgba(209, 173, 120, .04) 53%, transparent 63%);
}
.tex--scan { background-image: var(--tex-scan); opacity: .025; }
/* A sparse dust layer sits off the type column. */
.tex--dust {
  background-image: var(--tex-dust);
  background-size: 260px 260px;
  opacity: .08;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 46%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 46%, #000 100%);
}
/* Fine, slow-moving film grain keeps the image natural. */
.tex--grain {
  inset: -14%;
  background-image: var(--tex-grain);
  background-size: 140px 140px;
  opacity: .04;
  mix-blend-mode: overlay;
  animation: grainShift 6s steps(1) infinite;
}
.tex--vign {
  background: radial-gradient(124% 104% at 50% 40%, transparent 34%,
    rgba(4, 4, 11, .4) 74%, rgba(4, 4, 11, .74) 100%);
}
@keyframes leakDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2.6%, 1.8%, 0) scale(1.07); }
}
@keyframes grainShift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  16% { transform: translate3d(-3%, 2%, 0); }
  33% { transform: translate3d(2%, -3%, 0); }
  50% { transform: translate3d(-2%, -2%, 0); }
  66% { transform: translate3d(3%, 1%, 0); }
  83% { transform: translate3d(-1%, 3%, 0); }
}
/* The print plates — screen, hatch, scanline, dust — belong to the key art.
   Over the live district they would sit on top of a scene that already has
   its own light, so only the leak, the vignette and the film carry across. */
html[data-world3d='on'] .tex--grid,
html[data-world3d='on'] .tex--screen,
html[data-world3d='on'] .tex--scan,
html[data-world3d='on'] .tex--dust,
html[data-world3d='on'] .tex--streak {
  opacity: 0;
  transition: opacity .9s var(--ease);
}
/* The rendered district is lit by its own beams, so the print-grade versions
   of the leak and the vignette have to back off — at full strength they
   saturate the highlights and crush the corners, which flattens a scene that
   was just built to have range. */
html[data-world3d='on'] .tex--leak { opacity: .3; }
html[data-world3d='on'] .tex--vign {
  opacity: .42;
  background: radial-gradient(128% 108% at 50% 40%, transparent 46%,
    rgba(4, 4, 11, .3) 80%, rgba(4, 4, 11, .58) 100%);
}
html[data-world3d='on'] .tex--grain { opacity: .12; }

.hero__view {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 52px; z-index: 3;
  display: grid; gap: 3px; justify-items: center;
  text-align: center;
  pointer-events: none;
}
.hero__view b {
  font-family: var(--title); font-weight: 400;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--white);
  animation: viewIn .55s var(--ease) both;
}
.hero__view span {
  font-family: var(--mono); font-size: 10px; letter-spacing: .26em;
  color: var(--green-soft);
  animation: viewIn .55s .05s var(--ease) both;
}
.hero__view i {
  font-style: normal; font-size: 11.5px; letter-spacing: .03em;
  color: rgba(255, 255, 255, .5);
  animation: viewIn .55s .1s var(--ease) both;
}
@keyframes viewIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------- hero toggle
   The live district costs a 600 KB bundle and a GPU context, so it is a choice
   rather than a default — but the control has to read as a control, not as
   decoration. Monospace micro-label, glass pill, pulsing brass when running.  */
.hero__mode {
  position: absolute; z-index: 4;
  right: clamp(20px, 4.4vw, 44px); bottom: 20px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(11, 11, 18, .42);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  color: rgba(255, 255, 255, .84);
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  cursor: pointer;
  transition: border-color .3s, background .3s, color .3s, transform .3s var(--ease), opacity .3s;
}
.hero__mode:hover { border-color: rgba(209, 173, 120, .7); color: var(--white); transform: translateY(-2px); }
.hero__mode:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.hero__mode__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, .42);
  flex: none;
  transition: background .3s;
}
.hero__mode[data-state='on'] {
  border-color: rgba(209, 173, 120, .62);
  background: rgba(209, 173, 120, .14);
  color: var(--green-soft);
}
.hero__mode[data-state='on'] .hero__mode__dot {
  background: var(--green);
  animation: modePulse 2.4s var(--ease) infinite;
}
.hero__mode[data-state='loading'] { color: #ffd29a; border-color: rgba(255, 179, 71, .55); }
.hero__mode[data-state='loading'] .hero__mode__dot { background: #ffb347; animation: modePulse 1s linear infinite; }
.hero__mode[data-state='off'] { opacity: .45; cursor: not-allowed; }
.hero__mode[data-state='off']:hover { transform: none; border-color: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .84); }
@keyframes modePulse {
  0% { box-shadow: 0 0 0 0 rgba(209, 173, 120, .5); }
  70% { box-shadow: 0 0 0 10px rgba(209, 173, 120, 0); }
  100% { box-shadow: 0 0 0 0 rgba(209, 173, 120, 0); }
}

@media (max-width: 760px) {
  .hero__view { bottom: 62px; }
  .hero__view i { display: none; }
  /* stacked layout: the two-column scrim has nothing to separate any more, so
     the whole text block sits on a gradient that darkens as it descends */
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(11, 11, 18, .5) 0%, rgba(11, 11, 18, .34) 26%,
        rgba(11, 11, 18, .8) 58%, rgba(11, 11, 18, .93) 100%);
  }
  /* same rule, but it has to out-specify the desktop column scrim above when
     the live world is on. The render is brighter than the graded art, so the
     band the copy sits on is deeper. */
  html[data-world3d='on'] .hero__scrim {
    background:
      linear-gradient(180deg, rgba(11, 11, 18, .62) 0%, rgba(11, 11, 18, .46) 22%,
        rgba(11, 11, 18, .84) 52%, rgba(11, 11, 18, .94) 100%);
  }
  /* one row under the caption: dots on the left, the 3D toggle on the right.
     Centring the dots here puts them straight under the toggle's label. */
  .hero__dots { left: clamp(14px, 4vw, 20px); transform: none; bottom: 22px; gap: 8px; }
  .hero__dots button { width: 24px; }
  .hero__dots button[aria-selected='true'] { width: 40px; }
  .hero__mode {
    right: clamp(14px, 4vw, 20px); left: auto; bottom: 22px;
    padding: 7px 12px 7px 10px;
    font-size: 9.5px; letter-spacing: .1em;
  }
}

/* ============================================================================
   Field instruments
   ---------------------------------------------------------------------------
   Every band on this page either carries a photograph or carries one of these.
   They are not decoration: each draws something the copy in the same band only
   asserts, and each runs on its own clock so the page never pulses in
   lockstep. All of them read ink from --d-* and --ink-*, so the same markup
   holds on paper, on white, on indigo and on near-black.
   ========================================================================= */
.diag { margin: 0; min-width: 0; }
.diag__cap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 6px 18px; margin-bottom: 12px;
}
.diag__cap .lab {
  font-family: var(--mono); font-weight: 500; font-size: 10.4px; letter-spacing: .11em;
  text-transform: uppercase; color: var(--d-ink-2);
}
.diag__cap .mono { font-size: 10.4px; color: var(--d-ink); }
.diag__svg { display: block; width: 100%; height: auto; overflow: visible; }
.diag__svg text {
  font-family: var(--mono); font-weight: 500; font-size: 10.4px; letter-spacing: .075em;
  text-transform: uppercase; fill: var(--d-ink);
}

/* the plate variant sits on a light band, so it gets the same uncoated stock a
   panel gets: an instrument printed on the page, not a hole in the ground */
.diag--plate {
  background-color: var(--paper);
  background-image: var(--tex-stock);
  background-size: var(--tex-stock-size);
  border-radius: var(--radius);
  padding: clamp(18px, 2.1vw, 28px);
}
.colstack { display: grid; gap: clamp(18px, 2.2vw, 28px); min-width: 0; }
/* the flow rail closes the band, so it keeps its distance from the stats */
.diag--flow { margin-top: clamp(34px, 4.4vw, 62px); }

/* --------------------------------------------------- 1 · progression rail */
.pl-track line { stroke: var(--d-line); stroke-width: 2; stroke-linecap: round; }
.pl-live {
  stroke: var(--ink-green); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 5 13; animation: plFlow 2.2s linear infinite;
}
@keyframes plFlow { to { stroke-dashoffset: -18; } }
.pl-st circle { fill: var(--d-plate); stroke: var(--ink-green); stroke-width: 2; }
.pl-st text { fill: var(--d-ink-2); }
.pl-st .pl-sub { fill: var(--d-ink); font-size: 9.4px; }
.pl-gate {
  fill: var(--d-plate); stroke: var(--ink-magenta); stroke-width: 1.6;
  animation: plGate 11s linear infinite;
}
@keyframes plGate {
  0%, 62%, 84%, 100% { stroke-opacity: .45; }
  70%, 78% { stroke-opacity: 1; }
}
.pl-rev path {
  fill: none; stroke: var(--ink-magenta); stroke-width: 1.6; stroke-dasharray: 6 7;
  opacity: .8; animation: plFlow 2.6s linear infinite reverse;
}
.pl-rev polygon { fill: var(--ink-magenta); stroke: none; opacity: .8; }
.pl-rev .pl-tag { fill: var(--ink-magenta); font-size: 9.4px; letter-spacing: .13em; }
.pl-pkt circle { fill: var(--green); stroke: none; }
.pl-pkt { animation: plRun 11s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes plRun {
  0%, 3% { transform: translateX(0); }
  21%, 27% { transform: translateX(260px); }
  45%, 51% { transform: translateX(580px); }
  69%, 79% { transform: translateX(840px); }
  96%, 100% { transform: translateX(1080px); }
}

/* ------------------------------------------------- 2 · adoption comparison */
.ac-grid line { stroke: var(--d-line); stroke-width: 1; }
.ac-lab text { font-size: 9.2px; letter-spacing: .1em; }
.ac-thr { stroke: var(--ink-magenta); stroke-width: 1.4; stroke-dasharray: 5 6; }
.ac-thr-l { fill: var(--ink-magenta); font-size: 9.2px; letter-spacing: .12em; }
.ac-line { fill: none; stroke-width: 2.6; stroke-linecap: round; }
.ac-line--adopt { stroke: var(--ink-green); }
.ac-line--emit { stroke: var(--d-ink); stroke-width: 1.8; stroke-dasharray: 7 6; opacity: .85; }
.ac-area { fill: var(--ink-green); opacity: .07; stroke: none; }
.ac-ride circle { fill: var(--green); stroke: var(--white); stroke-width: 2; }
.ac-ride { animation: acRide 7s linear infinite; }
@keyframes acRide {
  0% { transform: translate(52px, 190px); }
  25% { transform: translate(198px, 161px); }
  50% { transform: translate(330px, 116px); }
  75% { transform: translate(438px, 75px); }
  100% { transform: translate(536px, 44px); }
}
.ac-key line { stroke: var(--ink-green); stroke-width: 2.6; stroke-linecap: round; }
.ac-key text { font-size: 9.4px; letter-spacing: .1em; }
.ac-key--emit { stroke: var(--d-ink); stroke-dasharray: 5 4; }

/* ------------------------------------------------------ 3 · revenue routing */
.rt-src circle { fill: var(--d-plate); stroke: var(--ink-green); stroke-width: 2; }
/* a soft ring behind the source so the node reads as an inlet, not a bullet */
.rt-src .rt-halo { fill: none; stroke: var(--ink-green); stroke-width: 1.2; animation: rtHalo 3.6s ease-in-out infinite; }
@keyframes rtHalo {
  0%, 100% { stroke-opacity: .14; r: 36; }
  50% { stroke-opacity: .42; r: 40; }
}
.rt-src text { fill: var(--d-ink-2); font-size: 9px; letter-spacing: .12em; }
.rt-branch path { fill: none; stroke: var(--d-ink); stroke-opacity: .55; stroke-width: 2; }
.rt-term circle { fill: var(--d-plate); stroke: var(--ink-green); stroke-width: 1.6; }.rt-run {
  fill: none; stroke: var(--ink-green); stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 22 318; animation: rtRun 3.6s linear infinite;
  animation-delay: calc(var(--i) * .9s);
}
@keyframes rtRun { from { stroke-dashoffset: 340; } to { stroke-dashoffset: 0; } }
.rt-dst text { fill: var(--d-ink-2); }
.rt-pct { fill: var(--ink-green); font-size: 12px; letter-spacing: .04em; }
.rt-bar { fill: var(--d-plate); stroke: none; }
.rt-fill { fill: var(--ink-green); stroke: none; }
.rt-note { fill: var(--d-ink); font-size: 9.4px; letter-spacing: .06em; text-transform: none; }

/* ------------------------------------------------------------ 4 · phase rail */
.diag--rail { margin-bottom: clamp(26px, 3.4vw, 44px); }
.rr-seg line { stroke: var(--ink-green); stroke-width: 3; stroke-linecap: round; }
.rr-seg--cond line { stroke: var(--d-ink); stroke-opacity: .42; stroke-width: 2; stroke-dasharray: 2 10; }
.rr-node circle { fill: var(--d-plate); stroke: var(--ink-green); stroke-width: 2; }
.rr-node--cond circle { stroke: var(--d-line); stroke-dasharray: 3 4; }
.rr-l { fill: var(--d-ink-2); font-family: var(--title); font-weight: 700; font-size: 13px; letter-spacing: 0; }
.rr-d { fill: var(--d-ink); font-size: 9.2px; letter-spacing: .12em; }
.rr-n { fill: var(--d-ink-2); font-size: 9.6px; letter-spacing: .08em; }
.rr-gate rect { fill: var(--d-plate); stroke: var(--ink-magenta); stroke-width: 1.6; animation: rrGate 15s linear infinite; }
.rr-gate text { fill: var(--ink-magenta); font-size: 9.2px; letter-spacing: .12em; animation: rrGateT 15s linear infinite; }
@keyframes rrGateT {
  0%, 42%, 76%, 100% { fill-opacity: .5; }
  50%, 66% { fill-opacity: 1; }
}
@keyframes rrGate {
  0%, 42%, 76%, 100% { stroke-opacity: .38; }
  50%, 66% { stroke-opacity: 1; }
}
.rr-pkt circle { fill: var(--green); stroke: none; }
.rr-pkt { animation: rrRun 15s cubic-bezier(.45, 0, .55, 1) infinite; }
/* the packet waits at the gate while the gate is lit, then only proceeds to D
   and E — the conditional part of the rail is never travelled as if it were funded */
@keyframes rrRun {
  0%, 4% { transform: translateX(0); opacity: 1; }
  20% { transform: translateX(284px); }
  34% { transform: translateX(568px); }
  46%, 66% { transform: translateX(710px); }
  78% { transform: translateX(852px); }
  90% { transform: translateX(1108px); }
  97%, 100% { transform: translateX(1108px); opacity: 0; }
}

/* ----------------------------------------------------------- 5 · risk dial */
.riskhead {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px);
  gap: clamp(26px, 4vw, 60px); align-items: center;
}
.riskhead .sec-head { margin-bottom: 0; }
.diag--dial { justify-self: center; width: min(100%, 330px); }
.rd-tick circle { fill: none; stroke: var(--d-line); stroke-width: 1; stroke-dasharray: 1 8; }
/* the ring is a circle, so spinning the group would sweep its own bounding box
   out to the diagonal; marching the dash instead keeps the same motion inside
   the plate — pathLength 828 is 92 whole 9-unit periods, so the loop is seamless */
.rd-tick circle { animation: rdMarch 90s linear infinite; }
@keyframes rdMarch { to { stroke-dashoffset: -828; } }
@keyframes rdSpin { to { transform: rotate(360deg); } }
.rd-a { fill: none; stroke-linecap: round; transform-origin: 50% 50%; transform: rotate(-90deg); }
.rd-a--crit { stroke: #a8102b; stroke-width: 9; stroke-dasharray: 362 679; }
.rd-a--high { stroke: #7a4a05; stroke-width: 7; stroke-dasharray: 270 579; }
.rd-sweep { transform-origin: 50% 50%; animation: rdSpin 9s linear infinite; }
.rd-sweep line { stroke: var(--ink-green); stroke-width: 1.6; opacity: .75; }
.rd-core circle { fill: var(--d-plate); stroke: var(--d-line); stroke-width: 1; stroke-dasharray: 2 5; }
.rd-n { fill: var(--d-ink-2); font-family: var(--title); font-weight: 700; font-size: 38px; letter-spacing: -.03em; }
.rd-s { font-size: 9px; letter-spacing: .14em; }
.rd-v text { fill: var(--ink-green); font-size: 9.6px; letter-spacing: .16em; }
.rd-node circle { fill: var(--green); stroke: none; animation: rdBeacon 3.2s var(--ease) infinite; }
@keyframes rdBeacon { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.rd-key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 0; }
.rd-key > div { display: flex; align-items: baseline; gap: 7px; }
.rd-key dt { font-family: var(--title); font-weight: 700; font-size: 17px; color: var(--d-ink-2); }
.rd-key dd {
  margin: 0; font-family: var(--mono); font-weight: 500; font-size: 9.6px;
  letter-spacing: .09em; text-transform: uppercase; color: var(--d-ink);
}

/* -------------------------------------------------------- 6 · the middle */
.sp-a { stroke: var(--d-line); stroke-width: 3; stroke-linecap: round; }
.sp-b { stroke: var(--d-line); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; }
.sp-live { stroke: var(--ink-green); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 4 26; animation: spFlow 3.4s linear infinite; }
@keyframes spFlow { to { stroke-dashoffset: -30; } }
.sp-mark circle { fill: var(--d-plate); stroke: var(--d-ink); stroke-width: 2; }
.sp-mark text { fill: var(--d-ink-2); }
.sp-sub { fill: var(--d-ink); font-size: 9.2px; letter-spacing: .06em; }
.sp-here circle { fill: var(--green); stroke: var(--d-ink-2); stroke-width: 2; }
.sp-here polygon { fill: var(--green); stroke: none; }
.sp-here .sp-h { fill: var(--ink-green); font-size: 10.6px; letter-spacing: .12em; }
.sp-here .sp-sub--h { fill: var(--ink-green); letter-spacing: .16em; }
.sp-end text { fill: var(--d-ink); font-size: 9.2px; letter-spacing: .14em; }

/* the ten-principle grid leaves two cells dead in its last row; the ninth and
   tenth principle are the long-horizon ones, so they take the width instead */
@media (min-width: 1180px) {
  .cards--ten > .card:nth-child(9), .cards--ten > .card:nth-child(10) { grid-column: span 2; }
}
@media (max-width: 900px) {
  .riskhead { grid-template-columns: minmax(0, 1fr); }
  .diag--dial { justify-self: start; }
}
