/* Extra — design tokens v1.5 (20 octobre 2026) */
@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Neutres */
  --color-ink: #1D1D1F;
  --color-graphite: #424245;
  --color-slate: #4A4A4F;
  --color-muted: #6E6E73;
  --color-placeholder: #8A8A8F;
  --color-line: #E6E6EB;
  --color-line-soft: #EFEFF2;
  --color-stone: #F5F5F7;
  --color-stone-strong: #EFEFF2;
  --color-paper: #FFFFFF;

  /* Encre : surfaces fortes (menu, étiquette du héros, bandeau d'outils, appel final, pied de page) */
  --on-ink: #FFFFFF;
  --on-ink-muted: rgba(255, 255, 255, 0.72);
  --on-ink-faint: rgba(255, 255, 255, 0.6);
  --on-ink-line: rgba(255, 255, 255, 0.12);
  --on-ink-glass: rgba(255, 255, 255, 0.1);

  /* Accent et nuit */
  --color-accent: #4B3BD9;
  --color-accent-soft: #ECEAFB;
  --color-night: #12143F;
  --color-night-button: #14164A;

  /* Éclats */
  --spark-blue: #2E5BFF;
  --spark-indigo: #4B3BD9;
  --spark-violet: #8A3FFC;
  --spark-magenta: #C23CB0;
  --spark-rose: #E0457B;
  --spark-coral: #FF6A55;
  --spark-amber: #FF9F45;
  --spark-teal: #1FB5A8;

  /* Statuts */
  --status-pending-bg: #FFF1DD;  --status-pending-fg: #8A5300;
  --status-done-bg: #DDF3E3;     --status-done-fg: #1F6B45;
  --status-idle-bg: #EFEFF2;     --status-idle-fg: #4A4A4F;
  --status-error-bg: #FBE3DF;    --status-error-fg: #A32A1F;

  /* Agents : teinte / encre */
  --agent-marketing-tint: #DDF3E3;           --agent-marketing-ink: #1F6B45;
  --agent-seo-geo-tint: #DAF1F2;             --agent-seo-geo-ink: #13617A;
  --agent-website-builder-tint: #D9E8FC;     --agent-website-builder-ink: #2648A3;
  --agent-phone-support-tint: #E3E2FC;       --agent-phone-support-ink: #46359E;
  --agent-executive-assistant-tint: #EDE2FC; --agent-executive-assistant-ink: #71308F;
  --agent-finance-tint: #FCEBD3;             --agent-finance-ink: #8A5300;
  --agent-legal-tint: #FBDDD5;               --agent-legal-ink: #963A1C;
  --agent-reputation-tint: #FADDE7;          --agent-reputation-ink: #8E2443;

  /* Dégradés */
  /* Aurore immobile : la nappe de lave au repos, rapportée à la surface (pour un fond qui ne bouge pas). */
  --gradient-aurora:
    radial-gradient(80% 88% at 4% 4%, rgba(46, 91, 255, 0.95) 0%, rgba(46, 91, 255, 0.6) 30%, rgba(46, 91, 255, 0.2) 62%, rgba(46, 91, 255, 0) 100%),
    radial-gradient(80% 88% at 96% 4%, rgba(138, 63, 252, 0.9) 0%, rgba(138, 63, 252, 0.56) 30%, rgba(138, 63, 252, 0.18) 62%, rgba(138, 63, 252, 0) 100%),
    radial-gradient(80% 88% at 96% 96%, rgba(224, 69, 123, 0.85) 0%, rgba(224, 69, 123, 0.52) 30%, rgba(224, 69, 123, 0.17) 62%, rgba(224, 69, 123, 0) 100%),
    radial-gradient(80% 88% at 4% 96%, rgba(255, 128, 72, 0.7) 0%, rgba(255, 128, 72, 0.42) 30%, rgba(255, 128, 72, 0.14) 62%, rgba(255, 128, 72, 0) 100%),
    #12143F;
  /* Lampe à lave (v1.4) : une seule nappe où les quatre lueurs se fondent les unes dans les autres. Elle est peinte
     sur un calque deux fois plus grand que sa surface (inset: -50 %) : la surface en voit le milieu, les lueurs
     tombent sur ses coins et se mêlent le long de ses bords, le centre reste nuit. */
  --gradient-lava:
    radial-gradient(40% 44% at 27% 27%, rgba(46, 91, 255, 0.95) 0%, rgba(46, 91, 255, 0.6) 30%, rgba(46, 91, 255, 0.2) 62%, rgba(46, 91, 255, 0) 100%),
    radial-gradient(40% 44% at 73% 27%, rgba(138, 63, 252, 0.9) 0%, rgba(138, 63, 252, 0.56) 30%, rgba(138, 63, 252, 0.18) 62%, rgba(138, 63, 252, 0) 100%),
    radial-gradient(40% 44% at 73% 73%, rgba(224, 69, 123, 0.85) 0%, rgba(224, 69, 123, 0.52) 30%, rgba(224, 69, 123, 0.17) 62%, rgba(224, 69, 123, 0) 100%),
    radial-gradient(40% 44% at 27% 73%, rgba(255, 128, 72, 0.7) 0%, rgba(255, 128, 72, 0.42) 30%, rgba(255, 128, 72, 0.14) 62%, rgba(255, 128, 72, 0) 100%);
  --gradient-text: linear-gradient(100deg, #2E5BFF 0%, #8A3FFC 55%, #E0457B 100%);
  /* En mouvement (v1.3) : deux fois plus large que le mot, il glisse d'un bout à l'autre. */
  --gradient-text-flow: linear-gradient(100deg, #2E5BFF 0%, #8A3FFC 27%, #E0457B 50%, #FF6A55 75%, #8A3FFC 100%);
  --gradient-flow: linear-gradient(90deg, #2E5BFF, #8A3FFC, #E0457B, #FF6A55, #8A3FFC, #2E5BFF);
  /* Icône d'app (design/brand/app-icon) : anneau conique bleu, violet, rose, orange, cœur bleu nuit. */
  --gradient-icon:
    radial-gradient(64% 64% at 50% 50%, #12143F 0%, #12143F 20%, rgba(18, 20, 63, 0.55) 64%, rgba(18, 20, 63, 0.26) 100%),
    conic-gradient(from 315deg, #2E5BFF, #8A3FFC 25%, #E0457B 50%, #F27A4C 75%, #2E5BFF);

  /* Typographie */
  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text-display: clamp(42px, 6.6vw, 96px);
  --text-closing: clamp(46px, 6.4vw, 96px);
  --text-h2: clamp(42px, 5.6vw, 80px);
  --text-h3-lg: 30px;
  --text-h3: 22px;
  --text-lead: clamp(19px, 1.8vw, 24px);
  --text-eyebrow: 19px;
  --text-body: 17px;
  --text-ui: 15px;
  --text-caption: 12.5px;
  --tracking-display: -0.05em;
  --tracking-h2: -0.048em;
  --tracking-h3: -0.04em;

  /* Espacement */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 32px; --space-8: 40px;
  --space-9: 56px; --space-10: 64px;
  --space-section: clamp(88px, 10vw, 140px);
  --space-hero: clamp(64px, 8vw, 112px);
  --gutter: clamp(12px, 2vw, 22px);
  --container-text: 1100px;
  --container-nav: 1180px;
  --container-wide: 1320px;

  /* Rayons */
  --radius-pill: 999px;
  --radius-stage: 44px;
  --radius-tile: 32px;
  --radius-window: 24px;
  --radius-card: 16px;
  --radius-field: 14px;
  --radius-bubble: 20px;
  --radius-portrait: 31%;

  /* Ombres */
  --shadow-nav: 0 1px 2px rgba(0, 0, 0, 0.03), 0 12px 32px -16px rgba(20, 22, 60, 0.18);
  --shadow-card: 0 18px 40px -24px rgba(20, 22, 60, 0.25);
  --shadow-portrait: 0 16px 28px -16px rgba(30, 30, 60, 0.45);
  --shadow-window: 0 40px 100px -30px rgba(8, 8, 40, 0.6);
  --shadow-button: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 18px -10px rgba(20, 22, 74, 0.5);

  /* Mouvement */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --duration-fast: 200ms;
  --duration-base: 240ms;
  --duration-reveal: 480ms;
  --ease-lava: cubic-bezier(0.45, 0, 0.55, 1);
  /* La même dérive partout (boutons, surfaces Aurore, lueurs) : la nappe glisse, monte et gonfle d'un bloc, sur
     trois rythmes qui ne s'arrêtent jamais ensemble. Seules des transformations bougent : c'est léger. */
  --animation-lava:
    lava-sway 13s var(--ease-lava) infinite alternate,
    lava-rise 9s var(--ease-lava) infinite alternate,
    lava-swell 17s var(--ease-lava) infinite alternate;
  --focus-ring: 0 0 0 3px var(--color-paper), 0 0 0 5px var(--color-accent);
}

/* Utilitaires de base */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 28px; border: 0; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-button);
  color: #fff; font: 600 17px/1 var(--font-sans); text-decoration: none;
  transition: transform var(--duration-fast) var(--ease), filter var(--duration-fast) var(--ease);
}
/* Lampe à lave : boutons d'action et surfaces Aurore portent la même nappe, sur un calque derrière leur contenu.
   Avec « réduire les animations », elle reste immobile à sa position de départ. */
.btn-primary, .lava { position: relative; isolation: isolate; overflow: hidden; background: var(--color-night-button); }
.btn-primary::before, .lava::before, .surface-aurora::before {
  content: ""; position: absolute; inset: -50%; z-index: -1; pointer-events: none;
  background: var(--gradient-lava);
  animation: var(--animation-lava);
}
@keyframes lava-sway { from { translate: -8% 0; } to { translate: 8% 0; } }
@keyframes lava-rise { from { transform: translateY(-6%); } to { transform: translateY(6%); } }
@keyframes lava-swell { from { rotate: -4deg; scale: 0.96; } to { rotate: 4deg; scale: 1.12; } }
/* Lave calme (v1.5, 20 octobre 2026) : sur les boutons, la nappe ne bouge pas et ne montre que la moitié de sa force ;
   le survol la ravive. Les surfaces Aurore gardent la dérive. */
.btn-primary::before, .lava::before { animation: none; opacity: 0.5; transition: opacity var(--duration-base) var(--ease); }
.btn-primary:hover::before, .lava:hover::before { opacity: 0.7; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.text-aurora {
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .text-aurora { color: var(--color-accent); background: none; }
}
.surface-aurora { position: relative; isolation: isolate; overflow: hidden; background: var(--color-night); color: #fff; }
.surface-aurora > .grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.22; mix-blend-mode: overlay; pointer-events: none; }
.field { display: grid; gap: var(--space-2); }
.field label { font: 500 var(--text-ui)/1.3 var(--font-sans); color: var(--color-ink); }
.field input, .field select {
  height: 52px; padding: 0 var(--space-4); border: 1px solid transparent; border-radius: var(--radius-field);
  background: var(--color-stone); color: var(--color-ink); font: 400 16px/1.2 var(--font-sans);
  transition: background var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
}
.field input::placeholder { color: var(--color-placeholder); }
.field input:focus-visible, .field select:focus-visible {
  outline: none; background: var(--color-paper); border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(75, 59, 217, 0.15);
}
.field [aria-invalid="true"] { border-color: var(--status-error-fg); }
.field .field-error { font: 400 14px/1.4 var(--font-sans); color: var(--status-error-fg); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* Extra Entreprise — site styles. The Extra design system in its dark, monochrome variant (design/DESIGN-SYSTEM.md,
   « Extra Entreprise »): near-black grounds, white type, hairlines, sharp corners, Geist for words and Geist Mono for
   labels, indexes and logs. White leads; the prism's four colours mark the brand lightly (logo, solid prism, agents in
   the map, the three steps, section indexes, system dots, hairlines and faint glows); green and amber only say
   « live » and « to approve ».
   design/tokens.css is prepended at build time; only its font, spacing and motion values are used here. */

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --bg-1: #0e0e10;
  --surface: #111113;
  --surface-2: #161618;
  --surface-3: #1c1c1f;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --line-3: rgba(255, 255, 255, 0.32);
  --text: #f2f2f3; /* 17.7:1 on --bg */
  --text-2: #a1a1a6; /* 7.7:1 on --bg, 6.6:1 on --surface-3 */
  --text-3: #8e8e94; /* 6.1:1 on --bg, 5.2:1 on --surface-3: labels and captions */
  --live: #5fe0a0;
  --live-text: #8be8b5;
  --pending: #ffb547;
  --pending-text: #ffc98a;
  /* The prism's four colours (design/brand), and the line they draw together. */
  --prism-blue: #2e5bff;
  --prism-violet: #8a3ffc;
  --prism-rose: #e0457b;
  --prism-orange: #ff8048;
  --prism-line: linear-gradient(90deg, #2e5bff, #8a3ffc 36%, #e0457b 68%, #ff8048);
  /* Light tints of the four colours, readable as small text on every dark surface (6.1:1 at least). */
  --tint-blue: #7b95ff;
  --tint-violet: #b08aff;
  --tint-rose: #f284ac;
  --tint-orange: #ffa57d;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 12px;
  --nav-space: 72px; /* the menu's 12 px offset and 60 px height */
  --wrap: 1360px;
  --pad: clamp(16px, 3.4vw, 40px);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* No visible scrollbar anywhere (decision of Rayan, 19 October 2026): every area still scrolls. */
* {
  scrollbar-width: none;
}
*::-webkit-scrollbar {
  display: none;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px / 1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
::selection {
  background: var(--text);
  color: var(--bg);
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
  text-wrap: balance;
}
ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
main:focus {
  outline: none;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-s);
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}
.nowrap {
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap-text {
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section {
  padding-block: clamp(88px, 11vw, 160px);
}
.section + .section {
  border-top: 1px solid var(--line);
}
.section-tight {
  padding-block: clamp(56px, 7vw, 96px);
}
.band {
  background: var(--bg-1);
}
/* A light section, as on Palantir's site (Rayan, 20 October 2026): a few sections turn off-white with ink type.
   The tokens are redefined locally, so every component inside follows; the prism's colours stay saturated and the
   small tinted text takes darker shades (4.5:1 at least on #F4F4F1). */
.light {
  color-scheme: light;
  --bg: #f4f4f1;
  --bg-1: #f4f4f1;
  --surface: #ffffff;
  --surface-2: #ebebe7;
  --surface-3: #e2e2de;
  --line: rgba(10, 10, 11, 0.12);
  --line-2: rgba(10, 10, 11, 0.2);
  --line-3: rgba(10, 10, 11, 0.38);
  --text: #0a0a0b;
  --text-2: #45454b;
  --text-3: #5d5d64;
  --live-text: #13703f;
  --pending-text: #8a5300;
  --tint-blue: #2e5bff;
  --tint-violet: #7a33e6;
  --tint-rose: #c2305f;
  --tint-orange: #b44a16;
  background: var(--bg);
  color: var(--text);
}
.light .btn:hover {
  border-color: #000;
  background: #000;
}
.light .link:hover {
  color: #000;
}

/* ---------- Type ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font: 500 12px / 1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.display {
  max-width: 14em;
  font-size: clamp(44px, 6.6vw, 96px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.048em;
}
.h1 {
  max-width: 14em;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.045em;
}
.h2 {
  max-width: 16em;
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.038em;
}
.h3 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.h3-lg {
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.dim {
  color: var(--text-3);
}
/* A second sentence on its own line (the hero title). */
.line {
  display: block;
}
.lead {
  max-width: 36em;
  color: var(--text-2);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.muted {
  color: var(--text-2);
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid var(--text);
  border-radius: var(--radius-s);
  background: var(--text);
  color: var(--bg);
  font: 500 15px / 1 var(--font-sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease);
}
.btn:hover {
  border-color: #fff;
  background: #fff;
}
.btn-l {
  height: 52px;
  padding: 0 26px;
  font-size: 16px;
}
.btn-s {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
.btn-ghost {
  border-color: var(--line-2);
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.04);
}
.arrow {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease);
}
a:hover .arrow,
.cell:hover .arrow,
.post-row:hover .arrow {
  transform: translateX(3px);
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.link:hover {
  color: #fff;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.icon-button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.icon-button:hover {
  border-color: var(--line-3);
}

/* ---------- Floating menu ---------- */
.nav-wrap {
  position: sticky;
  top: 12px;
  z-index: 30;
  max-width: calc(var(--wrap) - 2 * var(--pad) + 24px);
  margin: 12px auto 0;
  padding-inline: 12px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 60px;
  padding: 0 10px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(17, 17, 19, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.8);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.225em;
  min-height: 44px;
  color: var(--text);
  font-size: 20px;
  text-decoration: none;
  white-space: nowrap;
}
.logo-mark {
  flex: none;
  width: 1em;
  height: 1em;
}
.wordmark {
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}
.wordmark-sub {
  margin-left: 0.12em;
  color: var(--text-3);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}
.nav-links {
  display: flex;
  gap: 4px;
  font-size: 14px;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-s);
  color: var(--text-2);
  text-decoration: none;
  transition:
    color var(--duration-fast) var(--ease),
    background var(--duration-fast) var(--ease);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a[aria-current="page"] {
  color: var(--text);
  background:
    var(--prism-line) center bottom 5px / calc(100% - 24px) 1.5px no-repeat,
    rgba(255, 255, 255, 0.08);
}
.nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--text-2);
  font: 500 12px / 1 var(--font-mono);
  letter-spacing: 0.08em;
  text-decoration: none;
}
.nav-lang:hover {
  color: var(--text);
}
.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-fallback {
  display: none;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
.menu-panel {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 12px 12px 28px;
  border: 0;
  background: var(--bg);
  color: var(--text);
}
.menu-panel[open] {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: panel-in var(--duration-base) var(--ease);
}
.menu-panel::backdrop {
  background: transparent;
}
.menu-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 10px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.menu-panel-links {
  display: flex;
  flex-direction: column;
  padding-inline: 6px;
}
.menu-panel-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.menu-panel-links a[aria-current="page"]::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
}
.menu-panel-cta {
  margin-top: auto;
  margin-inline: 6px;
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- Heroes ---------- */
/* They slide under the floating menu. */
.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-space));
  border-bottom: 1px solid var(--line);
}
.hero {
  padding: calc(var(--nav-space) + clamp(72px, 10vw, 152px)) 0 0;
}
.grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
  pointer-events: none;
}
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.hero .lead {
  max-width: 38em;
}
.hero .actions {
  margin-top: 8px;
}
.hero-map {
  position: relative;
  margin-top: clamp(64px, 8vw, 112px);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  background: linear-gradient(to bottom, rgba(17, 17, 19, 0.8), rgba(10, 10, 11, 0.96) 92%);
  overflow: hidden;
}
/* A faint glow in the prism's colours rises behind the map's window. */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: 78%;
  background:
    radial-gradient(28% 34% at 22% 30%, rgba(46, 91, 255, 0.16), transparent 70%),
    radial-gradient(26% 32% at 44% 22%, rgba(138, 63, 252, 0.14), transparent 70%),
    radial-gradient(26% 32% at 64% 30%, rgba(224, 69, 123, 0.11), transparent 70%),
    radial-gradient(24% 30% at 82% 26%, rgba(255, 128, 72, 0.09), transparent 70%);
  pointer-events: none;
}
/* The map's window opens on a thin line in the prism's colours. */
.hero-map::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--prism-line);
  opacity: 0.9;
}
.map {
  padding: clamp(16px, 3vw, 36px) clamp(8px, 2vw, 28px) clamp(28px, 4vw, 48px);
}
.map svg {
  width: 100%;
  height: auto;
}
.map-tall {
  display: none;
}
/* The map's own drawing: hairline nodes, edges that carry data, the agents in the middle. */
.map text {
  fill: var(--text-2);
  font: 500 12px var(--font-mono);
  letter-spacing: 0.06em;
}
.map .t-title {
  fill: var(--text);
  font: 500 14px var(--font-sans);
  letter-spacing: -0.01em;
}
.map .t-col {
  fill: var(--text-3);
  font-size: 11px;
}
.map .node {
  fill: var(--surface-2);
  stroke: var(--line-2);
  stroke-width: 1;
}
.map .node-agent {
  fill: var(--surface-3);
  stroke: var(--line-3);
}
.map .edge {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
}
.map .flow {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.2;
  stroke-dasharray: 2 18;
  animation: flow 2.6s linear infinite;
}
.map .flow-slow {
  animation-duration: 3.8s;
}
.map .flow-blue {
  stroke: #5b7fff;
}
.map .flow-violet {
  stroke: #a46bff;
}
.map .flow-rose {
  stroke: #ec6a97;
}
.map .bar-blue {
  fill: var(--prism-blue);
}
.map .bar-violet {
  fill: var(--prism-violet);
}
.map .bar-rose {
  fill: var(--prism-rose);
}
@keyframes flow {
  to {
    stroke-dashoffset: -40;
  }
}
.map .dot-live {
  fill: var(--live);
}
.map .dot-pending {
  fill: var(--pending);
}
.map .pulse {
  fill: none;
  stroke: var(--live);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  from {
    opacity: 0.8;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(3.2);
  }
}

/* Inner page hero, with a faint glow of the prism's colours in its top right corner. */
.page-hero {
  padding: calc(var(--nav-space) + clamp(72px, 9vw, 136px)) 0 clamp(56px, 7vw, 96px);
}
.page-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  width: min(70%, 900px);
  height: 100%;
  background:
    radial-gradient(40% 46% at 62% 30%, rgba(46, 91, 255, 0.13), transparent 70%),
    radial-gradient(36% 42% at 82% 44%, rgba(138, 63, 252, 0.11), transparent 70%),
    radial-gradient(30% 36% at 94% 70%, rgba(224, 69, 123, 0.08), transparent 70%);
  pointer-events: none;
}
.page-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}
.page-hero .label a {
  color: inherit;
  text-decoration: none;
}
.page-hero .label a:hover {
  color: var(--text);
}

/* ---------- Section heads ---------- */
.head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px clamp(32px, 6vw, 96px);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.head-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.head-single {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- Rows (capabilities) ---------- */
.rows {
  border-top: 1px solid var(--line);
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px clamp(24px, 4vw, 64px);
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}
.row-name {
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}
.row p {
  max-width: 30em;
  color: var(--text-2);
  font-size: 17px;
}
.row > .label {
  justify-self: end;
}
.row-body .tags-s {
  margin-top: 18px;
}
.tags-s .tag {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}
.row .row-when {
  margin-top: 18px;
  color: var(--text-3);
  font-size: 15px;
}
.row-when .label {
  display: block;
  margin-bottom: 6px;
}

/* ---------- Hairline grids (method, functions, security, principles) ---------- */
.cells {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--line);
  overflow: hidden;
}
.cells-2 {
  --cols: 2;
}
.cells-4 {
  --cols: 4;
}
.cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: clamp(24px, 2.8vw, 36px);
  background: var(--bg);
  transition: background var(--duration-fast) var(--ease);
}
.band .cell {
  background: var(--bg-1);
}
.cell p {
  color: var(--text-2);
  font-size: 16px;
}
.cell p.label {
  color: var(--text-3);
  font-size: 12px;
}
.cell p.h3-lg {
  color: var(--text);
  font-size: clamp(24px, 2.4vw, 30px);
}
.cell .h3,
.cell .h3-lg {
  margin-top: 18px;
}
.cell-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}
.cell:has(.card-link):hover {
  background: var(--surface);
}
/* A line in the prism's colours: on top of a step (--c), or across a linked cell on hover. */
.cell-accent::before,
.cell:has(.card-link)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c, var(--prism-line));
}
.cell:has(.card-link)::before {
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease);
}
.cell:has(.card-link):hover::before,
.cell:has(.card-link:focus-visible)::before {
  opacity: 1;
}
.card-link {
  color: inherit;
  text-decoration: none;
}
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card-link:focus-visible {
  outline: none;
}
.card-link:focus-visible::after {
  outline: 2px solid var(--text);
  outline-offset: -2px;
}
.cell .icon {
  color: var(--text);
}
.cell ul:not([class]) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.cell ul:not([class]) li {
  position: relative;
  padding-left: 18px;
  color: var(--text-2);
  font-size: 15.5px;
}
.cell ul:not([class]) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 1px;
  background: var(--text-3);
}
.note {
  margin-top: 28px;
  color: var(--text-2);
  font-size: 16px;
}
.note a {
  color: var(--text);
}

/* ---------- Split ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}
.split-center {
  align-items: center;
}
.split-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.split-text p {
  max-width: 34em;
  color: var(--text-2);
}
.sticky-col {
  position: sticky;
  top: 112px;
}

/* ---------- Console: an agent's run, a mission log ---------- */
.console {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.console::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  height: 1px;
  background: var(--prism-line);
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.console-dots {
  display: flex;
  gap: 6px;
}
.console-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.console-bar .label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  font: 500 11px / 1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-live {
  border-color: rgba(95, 224, 160, 0.32);
  color: var(--live-text);
}
.status-pending {
  border-color: rgba(255, 181, 71, 0.34);
  color: var(--pending-text);
}
.console-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
}
.console-log {
  padding: 6px 0;
  font: 400 13px / 1.5 var(--font-mono);
}
.console-log li {
  display: grid;
  grid-template-columns: var(--tcol, 64px) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 14px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
}
.console-log li:last-child {
  border-bottom: 0;
}
.console-log .t {
  color: var(--text-3);
}
.console-log .msg {
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14.5px;
}
.console-log .src {
  color: var(--text-3);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.console-side {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.stat:last-child {
  border-bottom: 0;
}
.stat b {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat span {
  color: var(--text-3);
  font: 500 11px / 1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.console-gate {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 181, 71, 0.06);
}
.console-gate p {
  flex: 1;
  color: var(--pending-text);
  font-size: 14.5px;
  line-height: 1.45;
}
.console-gate-actions {
  display: flex;
  gap: 8px;
}
.fake-btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.fake-btn-main {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}
/* A run plays once in view: each line lands, then the point where a person decides. */
.io .console[data-play] .console-log li,
.io .console[data-play] .console-gate {
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 360ms var(--ease),
    transform 360ms var(--ease);
  transition-delay: calc(var(--i, 0) * 320ms + 150ms);
}
.io .console[data-play].is-visible .console-log li,
.io .console[data-play].is-visible .console-gate {
  opacity: 1;
  transform: none;
}

/* ---------- Invoice story (home example) and programme board (method) ----------
   Built like the product screens they stand for: a window bar with a path, tabular figures, status pills in the
   prism's tints. Fictitious; hidden from screen readers, which get the figure's caption instead. */
.story,
.board {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.story::before,
.board::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  height: 1px;
  background: var(--prism-line);
}
.run-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.run-path {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.run-path b {
  margin: 0 6px;
  color: var(--line-3);
  font-weight: 400;
}
/* The story: five steps over one invoice, the batch below. The page ships the final state (classes is-s1…is-s5 and
   every step done); site.js rewinds it and plays it in a loop once in view. Shown states carry the delays, hidden
   states none, so a rewind is instant. */
.story-toggle {
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: 500 11px / 1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.story.is-paused *,
.story.is-paused *::before,
.story.is-paused *::after {
  animation-play-state: paused !important;
}
.story-toggle:hover {
  border-color: var(--line-3);
  color: var(--text);
}
.story-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.story-steps li {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 18px;
}
.story-steps li + li {
  border-left: 1px solid var(--line);
}
.story-steps b {
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
  transition: color 300ms var(--ease);
}
.story-steps i {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--c);
}
.story-steps .is-done b,
.story-steps .is-now b {
  color: var(--text);
}
.story-steps .is-done i {
  width: 100%;
}
.story-steps .is-now i {
  animation: step-fill var(--dur, 2.6s) linear forwards;
}
@keyframes step-fill {
  to {
    width: 100%;
  }
}
.story-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
}
.story-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  min-height: 430px;
  padding: 22px;
  background: var(--surface);
  transition: background 500ms var(--ease);
}
.story[data-at="1"] .pane-doc,
.story[data-at="2"] .pane-match,
.story[data-at="3"] .pane-decide,
.story[data-at="4"] .pane-decide,
.story[data-at="5"] .pane-decide {
  background: var(--surface-2);
}

/* 1 · Reading: the invoice arrives on its stack, a beam passes over it, each field it reads lights up. */
.doc-stack {
  position: relative;
  display: grid;
  flex: 1;
  place-items: center;
}
.doc-under {
  position: absolute;
  width: 78%;
  max-width: 270px;
  height: 74%;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--surface-3);
  transform: rotate(-5deg) translate(-12px, 10px);
}
.doc-under + .doc-under {
  background: #2a2a2e;
  transform: rotate(3deg) translate(8px, 4px);
}
.doc {
  position: relative;
  display: grid;
  gap: 10px;
  width: 88%;
  max-width: 300px;
  padding: 16px 16px 14px;
  border-radius: 4px;
  background: #f4f4f1;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.9);
  color: #0a0a0b;
  font: 400 11.5px / 1.4 var(--font-sans);
  overflow: hidden;
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}
.story:not(.is-s1) .doc {
  opacity: 0;
  transform: translateX(-36px) rotate(-3deg);
  transition-duration: 0s;
}
.doc-top,
.doc-meta,
.doc-total {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
}
.doc-top b {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.doc-meta {
  color: #5d5d64;
}
.doc-row {
  display: grid;
  grid-template-columns: 1.7fr 0.45fr 0.9fr 1fr;
  white-space: nowrap;
  gap: 6px;
  padding: 6px 0;
  border-top: 1px solid rgba(10, 10, 11, 0.12);
}
.doc-row span:nth-child(n + 2) {
  text-align: right;
}
.doc-row-h {
  color: #5d5d64;
  font: 500 9.5px / 1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.doc-ghost {
  height: 7px;
  border-radius: 3px;
  background: rgba(10, 10, 11, 0.08);
}
.doc-ghost.short {
  width: 58%;
}
.doc-total {
  padding-top: 8px;
  border-top: 1px solid rgba(10, 10, 11, 0.32);
  font-weight: 600;
}
.doc .f {
  border-radius: 2px;
  transition:
    background 400ms var(--ease),
    box-shadow 400ms var(--ease);
  transition-delay: calc(var(--i, 0) * 340ms + 400ms);
}
.story.is-s1 .doc .f {
  background: rgba(46, 91, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(46, 91, 255, 0.55);
}
.story:not(.is-s1) .doc .f {
  transition-delay: 0s;
}
.scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -60px;
  height: 56px;
  border-bottom: 1px solid #8a3ffc;
  background: linear-gradient(to bottom, transparent, rgba(46, 91, 255, 0.12) 60%, rgba(138, 63, 252, 0.32));
  opacity: 0;
  pointer-events: none;
}
.story.is-s1:not(.is-s2) .scan {
  animation: scan 2200ms var(--ease) 300ms both;
}
@keyframes scan {
  0% {
    top: -60px;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* 2 · Matching: order, receipt and invoice side by side; each row is swept, filled, then judged. */
.match {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  font-size: 12.5px;
  overflow: hidden;
}
.match-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) repeat(3, minmax(0, 1fr)) 82px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  transition: background 500ms var(--ease);
}
.match-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-head {
  border-top: 0;
  background: var(--surface-2);
  color: var(--text-3);
  font: 500 10.5px / 1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.match-head em {
  display: block;
  color: var(--text-2);
  font-style: normal;
}
.match-row > span:first-child {
  color: var(--text-3);
  font-size: 12.5px;
}
.match-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(138, 63, 252, 0.16), transparent);
  opacity: 0;
  pointer-events: none;
}
.story.is-s2:not(.is-s3) .match-row:not(.match-head)::before {
  animation: sweep 800ms var(--ease) both;
  animation-delay: calc(var(--r, 0) * 380ms + 100ms);
}
@keyframes sweep {
  from {
    opacity: 1;
    transform: translateX(-100%);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}
.mc {
  font-variant-numeric: tabular-nums;
  transition:
    opacity 400ms var(--ease),
    transform 400ms var(--ease);
  transition-delay: calc(var(--r, 0) * 380ms + var(--c, 0) * 90ms + 250ms);
}
.mc:nth-child(3) {
  --c: 1;
}
.mc:nth-child(4) {
  --c: 2;
}
.mc-gap {
  color: var(--tint-rose);
}
.verdict {
  display: flex;
  justify-content: flex-end;
}
.verdict > * {
  transition:
    opacity 400ms var(--ease),
    scale 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(var(--r, 0) * 380ms + 560ms);
}
.verdict em {
  padding: 2px 7px;
  border: 1px solid rgba(242, 132, 172, 0.4);
  border-radius: 999px;
  color: var(--tint-rose);
  font: 500 11px / 1.3 var(--font-mono);
  font-style: normal;
}
.tick {
  width: 13px;
  height: 7px;
  margin-right: 6px;
  border-bottom: 2px solid var(--live);
  border-left: 2px solid var(--live);
  transform: rotate(-45deg) translate(1px, -2px);
}
.story.is-s2 .is-gap {
  background: rgba(224, 69, 123, 0.07);
  transition-delay: calc(var(--r, 0) * 380ms + 560ms);
}
.story:not(.is-s2) :is(.mc, .verdict > *) {
  opacity: 0;
  transform: translateY(4px);
  transition-delay: 0s;
}
.story:not(.is-s2) .verdict > * {
  scale: 0.4;
  transform: none;
}
.story:not(.is-s2) .tick {
  transform: rotate(-45deg) translate(1px, -2px);
}

/* 3 · Check: the gap against the threshold. 4 · Decision: a person is asked. 5 · Audit trail: every step written. */
.rule {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--bg);
  transition: opacity 500ms var(--ease);
}
.rule-figures {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.rule-figures b {
  color: var(--tint-rose);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.rule-figures span {
  color: var(--text-3);
  font: 500 11px / 1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rule-bar {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-3);
}
.rule-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 85%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--prism-blue), var(--prism-violet) 40%, var(--prism-rose));
  transition: width 1300ms var(--ease) 200ms;
}
.rule-mark {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: 25%;
  width: 2px;
  background: var(--text);
}
.rule-verdict {
  color: var(--pending-text);
  font: 500 11.5px / 1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 500ms var(--ease) 1300ms;
}
.story:not(.is-s3) .rule {
  opacity: 0.35;
}
.story:not(.is-s3) .rule-fill {
  width: 0;
  transition-delay: 0s;
  transition-duration: 0s;
}
.story:not(.is-s3) .rule-verdict {
  opacity: 0;
  transition-delay: 0s;
}
.approve {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 181, 71, 0.26);
  border-radius: var(--radius-m);
  background: rgba(255, 181, 71, 0.06);
  transition:
    opacity 600ms var(--ease) 200ms,
    transform 600ms var(--ease) 200ms;
}
.approve .console-gate-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}
.approve-who {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text);
  font: 600 12px / 1 var(--font-mono);
}
.approve-who::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--pending);
  border-radius: 50%;
  opacity: 0;
}
.story.is-s4 .approve-who::after {
  animation: ping 1800ms var(--ease) infinite;
}
@keyframes ping {
  from {
    opacity: 0.9;
    transform: scale(0.9);
  }
  to {
    opacity: 0;
    transform: scale(1.5);
  }
}
.approve-text b {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.approve-text span {
  color: var(--pending-text);
  font-size: 12.5px;
}
.story:not(.is-s4) .approve {
  opacity: 0.2;
  transform: translateY(8px);
  transition-delay: 0s;
}
.journal {
  margin-top: auto;
  border-top: 1px solid var(--line);
  font: 400 11.5px / 1.4 var(--font-mono);
}
.journal li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  transition:
    opacity 400ms var(--ease) var(--d, 0ms),
    transform 400ms var(--ease) var(--d, 0ms);
}
.journal .t,
.journal .src {
  color: var(--text-3);
}
.journal .src {
  font-size: 10.5px;
  text-transform: uppercase;
}
.story:not(.is-s1) .j1,
.story:not(.is-s2) .j2,
.story:not(.is-s3) .j3,
.story:not(.is-s4) .j4,
.story:not(.is-s5) .j5 {
  opacity: 0;
  transform: translateY(4px);
  transition-delay: 0s;
}
.story.is-s5 .j5 {
  color: var(--text);
}

/* The batch: 312 invoices stream from left to right and sort themselves; the dots are drawn by site.js. */
.story-flow {
  padding: 16px 22px 20px;
  border-top: 1px solid var(--line);
}
.flow-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.flow-head b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.flow-body {
  position: relative;
  height: 112px;
}
.flow-body svg,
.flow-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.lane {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.flow-bins {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 77.5%;
}
.bin {
  position: absolute;
  left: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  transform: translateY(-50%);
}
.bin b {
  min-width: 2.4em;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.bin span {
  color: var(--text-3);
  font: 500 11px / 1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.bin-ok b,
.flow-legend .bin-ok::before {
  color: var(--tint-blue);
}
.bin-explained b,
.flow-legend .bin-explained::before {
  color: var(--tint-violet);
}
.bin-hold b,
.flow-legend .bin-hold::before {
  color: var(--tint-rose);
}
.flow-legend {
  display: none;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
  color: var(--text-3);
  font: 500 10.5px / 1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.flow-legend span::before {
  content: "●";
  margin-right: 6px;
}

/* The board's rows land one by one once in view. */
.io .board[data-play] .board-row:not(.board-head) {
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 360ms var(--ease),
    transform 360ms var(--ease);
  transition-delay: calc(var(--i, 0) * 140ms + 300ms);
}
.io .board[data-play].is-visible .board-row {
  opacity: 1;
  transform: none;
}

.board-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.board-row:not(.board-head)::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 2px;
  background: var(--c);
}
.board-head {
  padding-block: 10px;
  background: var(--surface-2);
  color: var(--text-3);
  font: 500 11px / 1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.board-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.board-name b {
  font-size: 15.5px;
  font-weight: 500;
}
.board-steps {
  display: flex;
  align-items: center;
  gap: 4px;
}
.board-steps i {
  width: 22px;
  height: 6px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
}
.board-steps i.on {
  border-color: transparent;
  background: var(--c);
  opacity: 0.5;
}
.board-steps i.now {
  opacity: 1;
}
.board-steps .label {
  margin-left: 8px;
}
.board-auto {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 13.5px;
}
.meter {
  display: flex;
  gap: 3px;
}
.meter i {
  width: 12px;
  height: 12px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
}
.meter i.on {
  border-color: var(--text-2);
  background: var(--text-2);
}
.board-state {
  justify-self: end;
}
.board-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 20px;
  background: var(--surface-2);
}
.status-build {
  border-color: rgba(176, 138, 255, 0.34);
  color: var(--tint-violet);
}
.status-muted {
  color: var(--text-3);
}

/* ---------- Team: spec cells ---------- */
.spec {
  border-top: 1px solid var(--line);
}
.spec li {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.spec li > :last-child {
  color: var(--text);
}
.spec a,
.spec-value a {
  color: var(--text);
}
.cell .spec-value {
  color: var(--text);
}

/* The solid prism (apps/landing/src/components/gem.mjs, as on the back-office sign-in): it rolls onto a new tip
   every few seconds, in a dark stage with a dashed ring and its colours glowing softly behind. */
.gem-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1 / 0.9;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  container-type: size;
}
.gem-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(30% 30% at 38% 40%, rgba(46, 91, 255, 0.22), transparent 70%),
    radial-gradient(30% 30% at 62% 40%, rgba(138, 63, 252, 0.2), transparent 70%),
    radial-gradient(30% 30% at 60% 62%, rgba(224, 69, 123, 0.18), transparent 70%),
    radial-gradient(30% 30% at 40% 62%, rgba(255, 128, 72, 0.14), transparent 70%);
}
.gem-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78cqmin;
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  animation: ring 120s linear infinite;
}
.diag-intro {
  margin-bottom: clamp(48px, 6vw, 80px);
}
/* At the top of the home page the prism floats in its dark section, without a box: only its ring and its glow. */
.diag-intro .gem-stage {
  justify-self: end;
  width: 100%;
  max-width: 560px;
  border: 0;
  background: transparent;
}
@keyframes ring {
  to {
    rotate: 1turn;
  }
}
.proof-gem {
  --gem-r: 26cqmin;
  --gem-light: rgba(255, 255, 255, 0.07);
  --gem-dark: rgba(18, 20, 63, 0.12);
  position: absolute;
  top: 50%;
  left: 50%;
  perspective: calc(var(--gem-r) * 5.7);
}
.gem {
  position: absolute;
  transform-style: preserve-3d;
}
.gem-face,
.gem-face i {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--gem-r);
  height: var(--gem-r);
  transform-origin: 0 0;
  background:
    linear-gradient(var(--shade), var(--shade)), radial-gradient(145% 145% at 80% 80%, var(--glow)), var(--color-night);
}
.gem-face {
  clip-path: polygon(0 0, 100% 0, 0 100%);
  backface-visibility: hidden;
}
.gem-face i {
  opacity: 0;
  transition: opacity 1500ms cubic-bezier(0.65, 0, 0.2, 1);
}
.gem.is-x .gem-face [data-tip="x"],
.gem.is-y .gem-face [data-tip="y"] {
  opacity: 1;
}
.gem-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.map-prism,
.label-prism {
  flex: none;
}
.label-prism {
  width: 14px;
  height: 14px;
}

/* ---------- Systems (tags) ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  color: var(--text-2);
  font: 500 13px / 1 var(--font-mono);
  letter-spacing: 0.02em;
}
/* Each system is preceded by a dot in one of the prism's colours, as the tools are on hello-extra.com. */
.tag::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--prism-blue);
}
.tag:nth-child(4n + 2)::before {
  background: var(--prism-violet);
}
.tag:nth-child(4n + 3)::before {
  background: var(--prism-rose);
}
.tag:nth-child(4n + 4)::before {
  background: var(--prism-orange);
}
/* Section indexes (« /03 ») take the tints of the prism's colours, in turn. */
.idx-1 {
  color: var(--tint-blue);
}
.idx-2 {
  color: var(--tint-violet);
}
.idx-3 {
  color: var(--tint-rose);
}
.idx-4 {
  color: var(--tint-orange);
}

/* ---------- Lists with a leading index ---------- */
.ilist {
  border-top: 1px solid var(--line);
}
.ilist li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.ilist .label {
  padding-top: 4px;
}
.ilist .icon {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--text-3);
}

/* ---------- Closing call ---------- */
.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.closing::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--prism-line);
}
.closing::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% 35%;
  z-index: -1;
  height: 90%;
  background:
    radial-gradient(32% 40% at 30% 50%, rgba(46, 91, 255, 0.16), transparent),
    radial-gradient(30% 38% at 52% 46%, rgba(138, 63, 252, 0.14), transparent),
    radial-gradient(30% 40% at 72% 54%, rgba(224, 69, 123, 0.12), transparent),
    radial-gradient(26% 34% at 88% 50%, rgba(255, 128, 72, 0.1), transparent);
  pointer-events: none;
}
.closing-inner {
  padding-block: clamp(96px, 14vw, 200px);
}
.closing-title {
  font-size: clamp(56px, 11vw, 168px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.06em;
}
.closing-title a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  color: var(--text);
  text-decoration: none;
}
.closing-title .arrow {
  color: var(--text-3);
  font-weight: 400;
  transition:
    transform var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease);
}
.closing-title a:hover .arrow {
  color: var(--text);
  transform: translateX(0.12em);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--text-3);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-block: 72px 48px;
}
.footer-brand p {
  max-width: 24em;
  margin-top: 14px;
  color: var(--text-2);
  font-size: 14.5px;
}
.footer-title {
  margin-bottom: 14px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--text-2);
  font-size: 14.5px;
  text-decoration: none;
}
.footer-link:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 32px;
  border-top: 1px solid var(--line);
}
.footer-bottom .footer-link {
  min-height: 44px;
}

/* ---------- Booking dialog ---------- */
.dialog {
  width: min(780px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-l);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.dialog[open] {
  display: flex;
  flex-direction: column;
  animation: dialog-in var(--duration-base) var(--ease);
}
.dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 20px 18px 24px;
  border-bottom: 1px solid var(--line);
}
.dialog-titles {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.dialog-titles h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.dialog-titles p {
  color: var(--text-2);
  font-size: 15px;
}
.book-frame {
  position: relative;
  flex: 1;
  min-height: 560px;
  height: 66vh;
  background: #fff;
}
.book-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease);
}
.book-frame.ready iframe {
  opacity: 1;
}
.book-status {
  position: absolute;
  inset: 0;
  padding: 20px 24px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 15px;
}
.book-status a {
  color: var(--text);
}
.book-status::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, transparent, var(--text), transparent);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: loading-line 1.2s var(--ease) infinite;
}
.book-status.stuck::after {
  display: none;
}
@keyframes loading-line {
  from {
    background-position: -40% 0;
  }
  to {
    background-position: 140% 0;
  }
}
.dialog-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  padding: 12px 24px 14px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
}
.dialog-foot a {
  color: var(--text);
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}
body.dialog-open {
  overflow: hidden;
}

/* ---------- Heroes arrive: the title, its second line, the lead, the actions, then the map ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}
.hero .display,
.hero .display .line,
.hero .lead,
.hero .actions,
.hero-map,
.page-hero-inner > *,
.contact-wrap > .h1 {
  animation: rise 800ms var(--ease) both;
}
.hero .display .line {
  animation-delay: 100ms;
}
.hero .lead,
.page-hero-inner > :nth-child(2) {
  animation-delay: 180ms;
}
.hero .actions,
.page-hero-inner > :nth-child(3) {
  animation-delay: 260ms;
}
.page-hero-inner > :nth-child(n + 4) {
  animation-delay: 320ms;
}
.hero-map {
  animation-duration: 1100ms;
  animation-delay: 360ms;
}

/* ---------- Section titles rise out of their own line, then the label and the lead appear ---------- */
.io .reveal.reveal-title {
  opacity: 1;
  transform: none;
}
.io .reveal-title .h2 {
  clip-path: inset(-0.3em -0.3em 100% -0.3em);
  transform: translateY(0.4em);
  transition:
    clip-path 950ms var(--ease),
    transform 950ms var(--ease);
}
.io .reveal-title > .label,
.io .reveal-title .head-text > .label,
.io .reveal-title > .lead,
.io .reveal-title > p,
.io .reveal-title > .link {
  opacity: 0;
  transition: opacity 800ms var(--ease) 300ms;
}
.io .reveal-title.is-visible .h2 {
  clip-path: inset(-0.3em -0.3em -0.3em -0.3em);
  transform: none;
}
.io .reveal-title.is-visible > .label,
.io .reveal-title.is-visible .head-text > .label,
.io .reveal-title.is-visible > .lead,
.io .reveal-title.is-visible > p,
.io .reveal-title.is-visible > .link {
  opacity: 1;
}

/* ---------- The diagnostic's phases draw their line, the autonomy bars fill, a row lights up on hover ---------- */
.io .phase::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease);
  transition-delay: calc(var(--i, 0) * 160ms + 200ms);
}
.io .phase.is-visible::before {
  transform: none;
}
.io .phase .phase-dot {
  scale: 0;
  transition: scale 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(var(--i, 0) * 160ms + 120ms);
}
.io .phase.is-visible .phase-dot {
  scale: 1;
}
.io .level .level-bar i.on {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--ease);
}
.io .level.is-visible .level-bar i.on {
  transform: none;
}
.io .level.is-visible .level-bar i.on:nth-child(1) {
  transition-delay: calc(var(--i, 0) * 120ms + 300ms);
}
.io .level.is-visible .level-bar i.on:nth-child(2) {
  transition-delay: calc(var(--i, 0) * 120ms + 500ms);
}
.io .level.is-visible .level-bar i.on:nth-child(3) {
  transition-delay: calc(var(--i, 0) * 120ms + 700ms);
}
.row {
  position: relative;
}
.row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--prism-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease);
}
.row-name {
  transition: transform 500ms var(--ease);
}
.row > .label {
  transition: color 300ms var(--ease);
}
.row:hover::after {
  transform: none;
}
.row:hover .row-name {
  transform: translateX(10px);
}
.row:hover > .label {
  color: var(--tint-violet);
}

/* ---------- Reveal on scroll (added by site.js only; content is visible without JS) ---------- */
.io .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 600ms var(--ease),
    transform 600ms var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.io .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- About ---------- */
.founder-id {
  display: flex;
  align-items: center;
  gap: 18px;
}
.founder-id img {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-m);
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.founder-id h3 {
  font-size: 26px;
  letter-spacing: -0.03em;
}
.founder-id p {
  margin-top: 4px;
}
.cell .founder-hl {
  color: var(--text);
  font-size: 17px;
}
.founder-schools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
/* School logos (official files), shown in white like the rest of the page. */
.school-logo {
  width: auto;
  max-width: 150px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.66;
}
.school-logo.school-hec {
  height: 26px;
}
.school-logo.school-spo {
  height: 16px;
}
.school-logo.school-bk {
  height: 24px;
}
.school-logo.school-ucl {
  height: 30px;
  max-width: 160px;
}

/* ---------- Prose (articles, privacy) ---------- */
.prose {
  max-width: 720px;
}
.prose h1 {
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.prose h2 {
  margin-top: 56px;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.prose h3 {
  margin-top: 30px;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.prose p,
.prose ul,
.prose ol {
  margin-top: 16px;
  color: var(--text-2);
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose li + li {
  margin-top: 8px;
}
.prose strong {
  color: var(--text);
  font-weight: 500;
}
.prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 3px;
}
.prose a:hover {
  text-decoration-color: var(--text);
}
.prose .answer {
  margin-top: 0;
  padding: 24px 0 28px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.prose .date {
  margin-top: 14px;
  color: var(--text-3);
  font: 500 12px / 1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prose .scope {
  margin-top: 24px;
}
.privacy {
  padding-top: clamp(64px, 8vw, 112px);
}
.table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.prose table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}
.prose th,
.prose td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose thead th {
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
}
.prose tbody th {
  color: var(--text);
  font-weight: 500;
}
.prose td {
  color: var(--text-2);
}
.prose tbody tr:last-child > * {
  border-bottom: 0;
}
.toc {
  margin-top: 32px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.toc p {
  margin: 0;
  color: var(--text-3);
  font: 500 12px / 1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc ol {
  columns: 2;
  margin-top: 10px;
}
.toc a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: var(--text-2);
  text-decoration: none;
}
.toc a:hover {
  color: var(--text);
}

/* ---------- Insights ---------- */
.posts {
  border-top: 1px solid var(--line);
}
.post-row {
  position: relative;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  gap: 12px 40px;
  align-items: baseline;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.post-row p {
  max-width: 40em;
  margin-top: 10px;
  color: var(--text-2);
}
.post-row:hover .card-link {
  color: #fff;
}

/* ---------- 404 ---------- */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-block: clamp(96px, 14vw, 200px);
}

/* ---------- Method: step index, diagnostic phases, autonomy levels ---------- */
.steps-index {
  padding-bottom: clamp(24px, 4vw, 48px);
}
.steps-index .arrow {
  display: inline-block;
}
.steps-index .cell:hover .arrow {
  transform: translateY(3px);
}
.phases {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.phase {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 28px;
}
/* The phases sit on one line, a dot in the prism's colours for each. */
.phase::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: -24px;
  height: 1px;
  background: var(--line-2);
}
.phase:last-child::before {
  right: 0;
}
.phase-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--prism-blue);
  box-shadow: 0 0 0 4px var(--bg);
}
.band .phase-dot {
  box-shadow: 0 0 0 4px var(--surface);
}
.phase:nth-child(2) .phase-dot {
  background: var(--prism-violet);
}
.phase:nth-child(3) .phase-dot {
  background: var(--prism-rose);
}
.phase:nth-child(4) .phase-dot {
  background: var(--prism-orange);
}
.phase:nth-child(5) .phase-dot {
  background: var(--text);
}
.phase p:not(.label) {
  color: var(--text-2);
  font-size: 15px;
}
.sub-title {
  margin-bottom: 20px;
}
.level {
  gap: 18px;
}
.level-bar {
  display: flex;
  gap: 4px;
}
.level-bar i {
  flex: 1;
  height: 6px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
}
.level-bar i.on {
  border-color: transparent;
  background: var(--prism-line);
  background-size: 300% 100%;
}
.level-bar i.on:nth-child(2) {
  background-position: 50% 0;
}
.level-bar i.on:nth-child(3) {
  background-position: 100% 0;
}
.level-roles {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}
.level-roles dt {
  margin-bottom: 4px;
}
.level-roles dd {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

/* ---------- Contact form ---------- */
.page-hero.contact {
  padding-bottom: clamp(72px, 9vw, 128px);
}
.contact-wrap {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  max-width: 820px;
}
.contact-wrap .h1 {
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
html:not(.js) .contact-form {
  display: none;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field-wide,
.form-foot {
  grid-column: 1 / -1;
}
.field label {
  color: var(--text-2);
  font: 500 12px / 1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.optional {
  color: var(--text-3);
  font-weight: 400;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: 400 18px / 1.4 var(--font-sans);
  transition: border-color var(--duration-fast) var(--ease);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:hover,
.field textarea:hover {
  border-bottom-color: var(--line-3);
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--text);
  background: transparent;
  box-shadow: 0 1px 0 0 var(--text);
}
.field [aria-invalid="true"] {
  border-bottom-color: var(--tint-rose);
}
.field .field-error {
  color: var(--tint-rose);
  font-size: 14px;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 12px;
}
.form-foot .btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.form-status {
  flex: 1;
  min-width: 14em;
  color: var(--text-2);
  font-size: 15px;
}
.form-status:empty {
  display: none;
}
.form-status[data-kind="error"] {
  color: var(--tint-rose);
}
.form-status a {
  color: var(--text);
}
.form-note {
  margin-left: auto;
  color: var(--text-3);
  font-size: 14px;
  text-decoration: none;
}
.form-note:hover {
  color: var(--text-2);
}
.contact-done {
  display: grid;
  justify-items: start;
  gap: 16px;
}
.contact-done:focus {
  outline: none;
}
.contact-noscript {
  color: var(--text-2);
}
.contact-noscript a {
  color: var(--text);
}

/* ---------- Breakpoints ---------- */
@media (max-width: 1100px) {
  .nav-links a {
    padding: 0 9px;
  }
  .console-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .console-side {
    flex-direction: row;
    flex-wrap: wrap;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .stat {
    flex: 1 1 25%;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .stat:last-child {
    border-right: 0;
  }
}
@media (max-width: 1024px) {
  .head,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .sticky-col {
    position: static;
  }
  .cells-4 {
    --cols: 2;
  }
  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .row-body {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
@media (max-width: 860px) {
  html {
    scroll-padding-top: 88px;
  }
  .nav-links,
  .nav-cta {
    display: none;
  }
  .js .menu-button {
    display: inline-flex;
  }
  html:not(.js) .menu-fallback {
    display: inline-flex;
  }
  .cells {
    --cols: 1;
  }
  .cells-4 {
    --cols: 2;
  }
  .map-wide {
    display: none;
  }
  .map-tall {
    display: block;
  }
  .post-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .post-row > .label:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 1100px) {
  .story-stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  }
  .pane-decide {
    grid-column: 1 / -1;
    min-height: 0;
  }
}
@media (max-width: 720px) {
  .story-stage {
    grid-template-columns: minmax(0, 1fr);
  }
  .story-pane {
    min-height: 0;
    padding: 18px 16px;
  }
  .doc-stack {
    min-height: 300px;
  }
  .story-steps li {
    padding: 12px 10px;
  }
  .story-steps b {
    display: none;
  }
  .match {
    font-size: 12px;
  }
  .match-row {
    grid-template-columns: minmax(0, 0.9fr) repeat(2, minmax(0, 1fr)) 64px;
    gap: 8px;
    padding: 10px;
  }
  /* On a phone the receipt column goes: order against invoice is enough to see the gap. */
  .match-row > :nth-child(3) {
    display: none;
  }
  .match-head {
    font-size: 9.5px;
  }
  .story-flow {
    padding: 14px 16px 16px;
  }
  .flow-bins {
    left: 79%;
  }
  .bin b {
    min-width: 0;
    font-size: 16px;
  }
  .bin span {
    display: none;
  }
  .flow-legend {
    display: flex;
  }
  .run-bar .run-path {
    display: none;
  }
}
@media (max-width: 960px) {
  .phases {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .phase {
    padding: 0 0 28px 32px;
  }
  .phase::before {
    top: 0;
    bottom: 0;
    left: 5px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .phase:last-child::before {
    display: none;
  }
  .io .phase::before {
    transform: scaleY(0);
    transform-origin: top;
  }
  .diag-intro .gem-stage {
    justify-self: stretch;
    max-width: none;
  }
  .board-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name state"
      "steps auto";
    row-gap: 12px;
  }
  .board-head {
    display: none;
  }
  .board-name {
    grid-area: name;
  }
  .board-steps {
    grid-area: steps;
  }
  .board-auto {
    grid-area: auto;
    justify-self: end;
  }
  .board-state {
    grid-area: state;
  }
}
@media (max-width: 640px) {
  .contact-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .board-row {
    grid-template-areas:
      "name state"
      "steps steps"
      "auto auto";
  }
  .board-auto {
    justify-self: start;
  }
  .logo {
    font-size: 18px;
  }
  .nav {
    padding: 0 8px 0 14px;
  }
  .cells-4 {
    --cols: 1;
  }
  .actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .actions .btn {
    width: 100%;
  }
  .hero-map {
    margin-inline: calc(-1 * var(--pad) + 8px);
  }
  .console-log li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding: 12px 14px;
  }
  .console-log .msg {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .stat {
    flex: 1 1 50%;
    padding: 12px 14px;
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .stat b {
    font-size: 22px;
  }
  .console-gate {
    flex-wrap: wrap;
  }
  .spec li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .post-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .post-row > .arrow {
    display: none;
  }
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .book-frame {
    min-height: 0;
    height: auto;
  }
  .toc ol {
    columns: 1;
  }
}
@media (max-width: 340px) {
  .wordmark-sub {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .io .reveal,
  .io .console[data-play] .console-log li,
  .io .console[data-play] .console-gate,
  .io .board[data-play] .board-row,
  .io .phase::before,
  .io .level .level-bar i.on,
  .io .reveal-title .h2 {
    opacity: 1;
    transform: none;
  }
  .io .reveal-title .h2 {
    clip-path: none;
  }
  .io .reveal-title :is(.label, .lead, p, .link) {
    opacity: 1;
  }
  .io .phase .phase-dot {
    scale: 1;
  }

  .map .flow,
  .map .pulse {
    display: none;
  }
}
