/* ==========================================================================
   Archeon Cloud - "Strata" design system
   Light editorial canvas, dark chrome and dark "islands" (hero, console, ACE band, CTAs).
   Colours come from the logo: steel body, plate face, ice edge. Ember only in data.
   ========================================================================== */
/* Self-hosted Geist and Geist Mono (OFL, see assets/fonts/LICENSE): latin and latin-ext subsets,
   same unicode-range as Google Fonts. 'Geist Fallback' is Arial resized to Geist's metrics so the
   swap does not move text: size-adjust is the Geist/Arial width ratio measured on the site's own text
   per weight (400 and 500 on Arial, 600 on Arial Bold; 400 and 500 nudged to the first-screen h1 and
   lede), the overrides give Geist's 1005/295 ascent and descent, and its unicode-range is Geist's, so
   glyphs Geist lacks (the arrow) still come from the system font. A ch unit follows whichever font is
   showing, so the text measures that used ch are written in em at Geist's zero width (0.663em at 400,
   0.673em at 500): same width with Geist, no reflow on swap. */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/geist-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/geist-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/geist-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/geist-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Fallback';
  font-style: normal;
  font-weight: 400;
  src: local('Arial'), local('ArialMT');
  size-adjust: 102.37%;
  ascent-override: 98.17%;
  descent-override: 28.82%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Fallback';
  font-style: normal;
  font-weight: 500;
  src: local('Arial'), local('ArialMT');
  size-adjust: 103.93%;
  ascent-override: 96.70%;
  descent-override: 28.38%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Fallback';
  font-style: normal;
  font-weight: 600 700;
  src: local('Arial Bold'), local('Arial-BoldMT');
  size-adjust: 99.66%;
  ascent-override: 100.84%;
  descent-override: 29.60%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Breakpoints in use, measured 2026-10-18 (blocks = @media blocks naming the width, rules = style rules inside).
   A max-N block pairs with a min-(N+1) block at the same boundary. Main four: 540, 760, 1023/1024, 1280/1281
   (most rules; reveal.js and home-proof.js read 760 and 1024 through matchMedia).
     max 349               2 blocks    4 rules
     max 380               2 blocks    3 rules
     max 540               3 blocks   22 rules   main
     max 760 / min 761     8+1 blocks 120+1 rules main (min 761 only in 761-1360)
     max 980               3 blocks   11 rules
     max 1023 / min 1024   5+2 blocks 16+6 rules main
     max 1100              1 block     9 rules
     max 1199              1 block     3 rules   (only in 1024-1199)
     max 1280 / min 1281   1+2 blocks 16+3 rules main
     max 1360              1 block     1 rule    (only in 761-1360) */
:root {
  color-scheme: light;

  /* light canvas */
  --paper: #F3F5F8;
  --paper-2: #E8ECF2;
  --surface: #FFFFFF;
  --ink: #0B1018;
  --ink-2: #273140;
  --muted: #556173;
  --steel: #6E7D93;
  --accent: #2F5D9E;
  --accent-2: #234A82;
  --accent-wash: rgba(47, 93, 158, 0.08);
  --ok: #047857;
  --signal: #B45309;
  --rule: rgba(11, 16, 24, 0.10);
  --rule-2: rgba(11, 16, 24, 0.18);

  /* dark islands */
  --abyss: #06090F;
  --steel-1: #0C121C;
  --steel-2: #121B29;
  --steel-3: #1A2535;
  --plate: #EDF3FA;
  --plate-2: #C3CFDE;
  --plate-3: #93A3BA;
  --ice: #7FB6E4;
  --ember: #F2A65A;
  --ok-d: #5FD3A5;
  --line-d: rgba(195, 207, 222, 0.13);
  --line-d2: rgba(195, 207, 222, 0.24);

  /* legacy names still referenced by inline styles in the pages */
  --bg: var(--paper);
  --bg-2: var(--surface);
  --card: var(--surface);
  --line: var(--rule);
  --line-strong: var(--rule-2);
  --blue: var(--accent);
  --blue-2: var(--accent-2);
  --blue-light: var(--accent-wash);
  --silver: var(--muted);
  --green: var(--ok);
  --green-bg: rgba(4, 120, 87, 0.08);
  --amber: var(--signal);
  --amber-2: var(--signal);
  --amber-bg: rgba(180, 83, 9, 0.08);
  --dark-bg: var(--abyss);
  --dark-bg-2: var(--steel-1);
  --dark-card: var(--steel-2);
  --dark-line: var(--line-d);

  --font: 'Geist', 'Geist Fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 9vw, 128px);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* Dark contexts re-map the semantic tokens, so inline var() styles follow along */
.top-bar,
.site-header-shell,
.hero-island,
.console-band,
.dark-band,
.band,
.contact,
footer {
  --ink: var(--plate);
  --ink-2: var(--plate-2);
  --muted: var(--plate-3);
  --silver: var(--plate-3);
  --accent: var(--ice);
  --blue: var(--ice);
  --rule: var(--line-d);
  --rule-2: var(--line-d2);
  --line: var(--line-d);
  --line-strong: var(--line-d2);
  --accent-wash: rgba(127, 182, 228, 0.1);
  --blue-light: rgba(127, 182, 228, 0.1);
  --ok: var(--ok-d);
  --green: var(--ok-d);
  color: var(--plate);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr, 73px) + 8px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

/* anchors still land 96px down: the header offset comes from the html scroll-padding */
[id] {
  scroll-margin-top: calc(88px - var(--hdr, 73px));
}

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: clip;
  position: relative;
}

a {
  color: inherit;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background-color 0.15s var(--ease), text-decoration-color 0.15s var(--ease);
}

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

::selection {
  background: rgba(47, 93, 158, 0.22);
}

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

h1, h2, h3, h4, th {
  text-wrap: balance;
}

p, li, dd, figcaption {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

/* The old aurora / grid washes are retired; the canvas stays calm */
.aurora,
.grid-fade {
  display: none;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap--narrow {
  max-width: calc(820px + 2 * var(--gutter));
}

/* Top utility bar --------------------------------------------------------- */
.top-bar {
  position: relative;
  z-index: 30;
  background: var(--abyss);
  color: var(--plate-3);
  font-size: 0.75rem;
  border-bottom: 1px solid var(--line-d);
}

.top-bar__inner {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
}

.top-bar__left,
.top-bar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-bar__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--plate);
}

.top-bar__pill .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 0 3px rgba(127, 182, 228, 0.18);
}

.top-bar a {
  color: var(--plate-3);
  text-decoration: none;
}

.top-bar a:hover {
  color: var(--plate);
}

.top-bar__sep {
  color: rgba(195, 207, 222, 0.32);
}

/* Header, mega menus -------------------------------------------------------- */
.site-header-shell {
  position: sticky;
  top: 0;
  z-index: 25;
  background: rgba(6, 9, 15, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-d);
}

header.site {
  position: relative;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
}

.brand img {
  height: 40px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav > a,
.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 450;
  color: var(--plate-2);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.nav > a:hover,
.nav-item > a:hover {
  color: var(--plate);
  background: rgba(237, 243, 250, 0.06);
}

.nav > a.active,
.nav-item > a.active {
  color: var(--plate);
  background: rgba(237, 243, 250, 0.09);
}

.nav-item {
  position: relative;
}

.nav-caret {
  width: 11px;
  height: 11px;
  opacity: 0.6;
  transition: transform 0.25s var(--ease);
}

.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 360px;
  background: var(--steel-1);
  border: 1px solid var(--line-d2);
  border-radius: var(--r);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 40;
}

.nav-drop--wide {
  min-width: 600px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop {
  display: flex;
}

.nav-item:hover .nav-drop--wide,
.nav-item:focus-within .nav-drop--wide {
  display: grid;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.nav-drop__head {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ice);
  padding: 8px 12px 10px;
  border-bottom: 1px solid var(--line-d);
  margin-bottom: 6px;
}

.nav-drop a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
}

.nav-drop a:hover {
  background: rgba(237, 243, 250, 0.06);
}

.nav-drop a strong {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--plate);
}

.nav-drop a span {
  font-size: 0.8rem;
  color: var(--plate-3);
  line-height: 1.45;
  white-space: normal;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--abyss);
  text-decoration: none;
  border-radius: 999px;
  background: var(--plate);
  white-space: nowrap;
  flex-shrink: 0;
  order: 1;
}

.nav-cta:hover {
  background: #FFFFFF;
}

.nav-toggle {
  display: none;
}

.nav-burger {
  display: none;
}

/* Type -------------------------------------------------------------------- */
h1 {
  font-size: clamp(2.5rem, 1.55rem + 3.7vw, 4.5rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.9rem, 1.35rem + 2vw, 3rem);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.03em;
  max-width: 17.498em; /* 26ch of Geist */
  color: var(--ink);
}

h3 {
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.3;
  color: var(--ink);
}

/* Two-tone headlines: the second clause steps back in steel */
.grad,
.grad-amber {
  color: var(--steel);
}

.hero-island .grad,
.dark-band .grad,
.contact .grad {
  background: linear-gradient(180deg, #FFFFFF 10%, #C3CFDE 60%, #93A3BA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 41.106em; /* 62ch of Geist */
  margin: 0 0 28px;
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
}

.lede strong {
  color: var(--ink);
  font-weight: 500;
}

/* Eyebrow: mono label with the hexagon from the mark */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 10px;
  flex: none;
  background: currentColor;
  clip-path: var(--hex);
}

.sub {
  margin-top: 18px;
  max-width: 42.432em; /* 64ch of Geist */
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
}

.head-row > div:first-child {
  max-width: 820px;
}

.link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(47, 93, 158, 0.35);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.link:hover {
  color: var(--accent-2);
  text-decoration-color: currentColor;
}

/* Heroes (inner pages) -------------------------------------------------------- */
.hero,
.hero--left {
  position: relative;
  isolation: isolate;
  text-align: left;
  padding: clamp(64px, 8vw, 120px) 0 clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--rule);
}

/* static echo of the hero strata: dotted isometric plates on the right */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  top: clamp(40px, 6vw, 88px);
  width: min(30vw, 360px);
  aspect-ratio: 220 / 240;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 240' fill='none' stroke='%232F5D9E' stroke-width='2.2' stroke-linecap='round' stroke-dasharray='0.1 6'%3E%3Cpath d='M110 22 L196 62 L110 102 L24 62Z' opacity='.55'/%3E%3Cpath d='M110 62 L196 102 L110 142 L24 102Z' opacity='.42'/%3E%3Cpath d='M110 102 L196 142 L110 182 L24 142Z' opacity='.3'/%3E%3Cpath d='M110 142 L196 182 L110 222 L24 182Z' opacity='.2'/%3E%3Cpath d='M110 102 V222 M68 82 V202 M152 82 V202' stroke='%23B45309' opacity='.25'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}

.hero h1,
.hero--left h1 {
  max-width: 11.441em; /* 17ch of Geist */
}

.hero .lede,
.hero--left .lede {
  max-width: 42.432em; /* 64ch of Geist */
}

/* inline flow so long badges wrap like text instead of stranding the dot on its own line */
.badge {
  display: inline-block;
  line-height: 1.7;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 7px 14px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  margin-bottom: 28px;
}

.badge .sep {
  color: var(--steel);
  margin: 0 4px;
}

.badge .dot {
  display: inline-block;
  vertical-align: 0.1em;
  margin-right: 9px;
}

.dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}

.taglines {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  text-decoration: none;
}

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

/* jump links are parallel, not a sequence: the ordinal stays in the markup but is not shown */
.pill span {
  display: none;
}

/* Buttons ------------------------------------------------------------------- */
.cta-row {
  display: flex;
  gap: 12px 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--paper);
  cursor: pointer;
  text-decoration: none;
  background: var(--ink);
  white-space: nowrap;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease);
}

.btn:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-2);
}

.btn--ghost:hover {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

/* on dark islands the primary flips to the plate colour */
.hero-island .btn,
.dark-band .btn,
.band .btn,
.contact .btn {
  background: var(--plate);
  border-color: var(--plate);
  color: var(--abyss);
}

.hero-island .btn:hover,
.dark-band .btn:hover,
.band .btn:hover,
.contact .btn:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
}

.btn--dark,
.dark-band .btn--dark,
.contact .btn--ghost,
.band .btn--ghost {
  background: transparent;
  color: var(--plate);
  border: 1px solid var(--line-d2);
}

.btn--dark:hover,
.dark-band .btn--dark:hover,
.contact .btn--ghost:hover,
.band .btn--ghost:hover {
  background: rgba(237, 243, 250, 0.08);
  border-color: rgba(195, 207, 222, 0.5);
  color: var(--plate);
}

/* Home hero island: particle field + copy --------------------------------------- */
.hero-island {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: max(640px, calc(100svh - 110px));
  display: flex;
  background:
    radial-gradient(70% 60% at 74% 48%, #0B1422 0%, rgba(6, 9, 15, 0) 70%),
    radial-gradient(120% 80% at 50% 120%, #0A1322 0%, var(--abyss) 60%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.core-light {
  position: absolute;
  left: var(--mx, 74%);
  top: var(--my, 50%);
  width: var(--ms, 520px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(127, 182, 228, 0.16), rgba(127, 182, 228, 0.04) 55%, transparent 80%);
  opacity: 0;
  transition: opacity 2.2s var(--ease);
  pointer-events: none;
  z-index: 0;
}

.core-light.on {
  opacity: 1;
}

.hero-split {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 40px;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(72px, 8vw, 104px);
}

.hero-copy {
  max-width: 690px;
}

.hero-island .badge {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--plate-2);
  border-color: var(--line-d2);
  background: rgba(12, 18, 28, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-island .dot {
  background: var(--ice);
  box-shadow: none;
}

.hero-island h1 {
  margin: 0 0 24px;
  font-size: clamp(2.6rem, 1.4rem + 3.4vw, 4.4rem);
  max-width: 9.0855em; /* 13.5ch of Geist */
  color: var(--plate);
}

.hero-island .lede {
  margin: 0;
  max-width: 38.454em; /* 58ch of Geist */
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  line-height: 1.7;
  color: var(--plate-3);
}

.hero-island .lede strong {
  color: var(--plate);
}

/* one primary action; the two secondary CTAs read as links so the row never wraps */
.hero-island .cta-row {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: start;
  gap: 18px 30px;
  margin-top: 36px !important;
}

.hero-island .cta-row > .btn:first-child {
  grid-column: 1 / -1;
  justify-self: start;
}

.hero-island .cta-row .btn--ghost {
  min-height: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--plate);
  text-decoration: underline;
  text-decoration-color: rgba(127, 182, 228, 0.55);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.hero-island .cta-row .btn--ghost:hover {
  text-decoration-color: var(--ice);
}

.hero-island .tk-facts {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px 40px;
  margin-top: 36px !important;
  padding-top: 22px;
  border-top: 1px solid var(--line-d);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--plate-3);
}

.hero-island .tk-facts span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-island .tk-facts span::before {
  content: "";
  width: 7px;
  height: 8px;
  margin: 0;
  flex: none;
  background: var(--ice);
  opacity: 0.7;
  clip-path: var(--hex);
}

.mark-slot {
  justify-self: center;
  width: min(100%, 440px);
  aspect-ratio: 1;
}

/* the static drawing in the slot: shown without JS or WebGL. With JS the logo mark hides before first paint
   (html.js from the head script); the strata stack stays until the stars start to gather (.is-live, set by the
   engine on its host when the field starts), so the closing band is never blank */
.fallback-mark {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transition: opacity 0.7s var(--ease);
}

.fallback-mark--strata {
  opacity: 0.75;
}

.js .fallback-mark--mark {
  display: none;
}

.no-webgl .fallback-mark--mark {
  display: block;
}

.is-live .fallback-mark {
  opacity: 0;
}

/* Pedigree + ledger ------------------------------------------------------------ */
.pedigree-box {
  margin-top: var(--section);
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
}

.pedigree-logos {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 20px 48px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.pedigree-logos__label {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
}

.pedigree-logos__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: baseline;
}

.client-chip {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.client-chip small {
  font-family: var(--mono);
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
  font-size: 0.72rem;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.kpi-cell {
  padding: 28px 22px 30px;
  border-right: 1px solid var(--rule);
}

.kpi-cell:first-child {
  padding-left: 0;
}

.kpi-cell:last-child {
  border-right: 0;
  padding-right: 0;
}

.kpi-cell__num {
  font-family: var(--mono);
  font-size: clamp(1.65rem, 1.2rem + 1vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  margin-bottom: 12px;
}

.kpi-cell__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.kpi-cell__desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Sections ------------------------------------------------------------------- */
section.block {
  padding: var(--section) 0 0;
}

/* Grids & editorial "cards" (open columns with a top rule, no boxes) ------------ */
.grid {
  display: grid;
  gap: 48px 40px;
  margin-top: 48px;
}

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 0 0;
  border-top: 1px solid var(--rule-2);
  background: none;
}

a.card,
.card--link {
  text-decoration: none;
  color: inherit;
}

.card--link:hover {
  border-top-color: var(--accent);
}

.card--link:hover h3,
.card--link:hover h2 {
  color: var(--accent);
}

.card h3,
.post-card h2 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

/* card tag: one plain mono line above the title, no box */
.card .tag {
  order: -1;
  align-self: flex-start;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}

.card ul {
  margin-top: 16px;
  list-style: none;
  display: grid;
  gap: 9px;
}

.card ul li {
  font-size: 0.9rem;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}

.card ul li::before,
.practice-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 8px;
  background: var(--accent);
  opacity: 0.75;
  clip-path: var(--hex);
}

/* Practice / case panels (white panels: they hold multiple blocks) --------------- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.practice-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s var(--ease);
}

.practice-grid .practice-card:has(.practice-card__link):hover {
  border-color: rgba(47, 93, 158, 0.45);
}

.practice-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 22px;
}

.practice-card__num {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
}

.practice-card__persona {
  font-size: 0.8rem;
  color: var(--muted);
}

.practice-card h3,
.practice-card > div > h2 {
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.practice-card h2 {
  font-weight: 500;
  letter-spacing: -0.025em;
}

.practice-card__desc {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 22px;
}

.practice-card__list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.practice-card__list li {
  font-size: 0.9rem;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}

.practice-card__list li strong {
  color: var(--ink);
  font-weight: 600;
}

/* tech tags: one muted mono line, the dot between items is punctuation only */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  row-gap: 4px;
  margin-top: auto;
  padding-top: 16px;
}

.tech-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--muted);
}

.tech-tag:not(:last-child)::after {
  content: "\00B7";
  content: "\00B7" / "";
  margin: 0 0.6em;
}

.practice-card__foot {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
}

.practice-card__metric {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ok);
  font-variant-numeric: tabular-nums;
}

.practice-card__metric::before {
  content: "";
  width: 7px;
  height: 8px;
  flex: none;
  background: currentColor;
  clip-path: var(--hex);
}

/* home: short practice cards, proof line above the link so every card ends the same way */
#capabilities .practice-card__foot {
  margin-top: auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

#capabilities .practice-card {
  justify-content: flex-start;
  gap: 20px;
}

#capabilities .practice-card__metric {
  align-items: flex-start;
  line-height: 1.5;
}

#capabilities .practice-card__metric::before {
  margin-top: 0.42em;
}

/* home: one-line route for founders under the four practices */
.practice-route {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 20px clamp(24px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s var(--ease);
}

.practice-route:hover {
  border-color: rgba(47, 93, 158, 0.45);
}

.practice-route__title {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.practice-route .link {
  margin-left: auto;
}

/* Dark ACE band: full-bleed island inside the content column --------------------- */
.dark-band {
  position: relative;
  margin-top: var(--section);
  padding: var(--section) 0;
  background: var(--abyss);
  box-shadow: 0 0 0 100vmax var(--abyss);
  clip-path: inset(0 -100vmax);
}

.dark-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 60% at 80% 10%, rgba(127, 182, 228, 0.09), transparent 70%);
  pointer-events: none;
}

.dark-band > * {
  position: relative;
}

.dark-band .eyebrow {
  color: var(--ice);
}

.dark-band h2 {
  color: var(--plate);
}

.dark-band .sub {
  color: var(--plate-3);
}

/* Case cards -------------------------------------------------------------------- */
.case-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.case-metric b {
  display: block;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  margin-bottom: 4px;
}

.case-metric span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  display: block;
}

/* Industry cards & compliance --------------------------------------------------- */
.compliance-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-2);
  border: 1px solid var(--rule-2);
  padding: 3px 9px;
  border-radius: var(--r-sm);
}

/* Tables (one skin: matrix, tokener, article) ------------------------------------ */
.matrix-wrap,
.tk-table-wrap {
  margin-top: 40px;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow-x: auto;
}

.matrix-table,
.tk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.matrix-table th,
.matrix-table td,
.tk-table th,
.tk-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.matrix-table th,
.tk-table th {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom-color: var(--rule-2);
}

.matrix-table td,
.tk-table td {
  color: var(--muted);
  line-height: 1.6;
}

.matrix-table td b,
.matrix-table td strong,
.tk-table td b {
  color: var(--ink);
  font-weight: 600;
}

.matrix-table tr:last-child td,
.tk-table tr:last-child td {
  border-bottom: 0;
}

.tk-table .r {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink);
}

.tk-table th.r {
  color: var(--muted);
}

.tk-table tfoot td {
  background: var(--paper);
  color: var(--ink);
}

.tk-table tfoot .r {
  color: var(--accent);
  font-size: 1.06rem;
}

/* Manifesto / principles ------------------------------------------------------- */
.manifesto {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule-2);
}

.manifesto > div {
  padding: 36px 40px 36px 0;
  border-bottom: 1px solid var(--rule);
}

.manifesto > div:nth-child(even) {
  padding: 36px 0 36px 40px;
  border-left: 1px solid var(--rule);
}

.manifesto .num {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 14px;
}

.manifesto h3 {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.manifesto p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

.manifesto p strong {
  color: var(--ink);
  font-weight: 500;
}

/* Split & checks ----------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  margin-top: 8px;
}

.split .sub {
  margin-top: 18px;
}

.checks {
  list-style: none;
  display: grid;
  margin-top: 8px;
  border-top: 1px solid var(--rule-2);
}

.checks li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.checks li svg {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--accent);
}

.checks li b {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}

.checks li span {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Process steps -------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 28px;
  margin-top: 48px;
  counter-reset: step;
}

.steps--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.step {
  position: relative;
  padding-top: 24px;
  background: linear-gradient(var(--rule-2), var(--rule-2)) 0 0 / 100% 1px no-repeat;
  display: flex;
  flex-direction: column;
}

.step::before {
  counter-increment: step;
  content: "Phase 0" counter(step);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}

.step::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 10px;
  background: var(--accent);
  clip-path: var(--hex);
}

.step h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--muted);
  flex: 1;
}

.step em {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-2);
}

/* Blog cards -------------------------------------------------------------------------- */
.post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.post-card .kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
}

.post-card h3,
.post-card h2 {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.post-card p {
  flex: 1;
}

.post-card .more {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  margin-top: 8px;
  text-decoration: underline;
  text-decoration-color: var(--rule-2);
  text-underline-offset: 5px;
}

.post-card:hover .more {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.shared {
  font-size: 0.85rem;
  color: var(--muted);
}

.shared b {
  color: var(--ink);
  font-weight: 500;
}

/* Locations ----------------------------------------------------------------------------- */
.loc {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loc h3 {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.loc .tz {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}

.loc p {
  font-size: 0.9rem;
}

.loc-band {
  margin-top: 32px;
  padding: 18px 24px;
  border-radius: var(--r);
  font-size: 0.9rem;
  color: var(--ink-2);
  background: var(--paper-2);
}

/* Callout bands & final CTA (dark islands) ------------------------------------------------ */
.band {
  margin-top: var(--section);
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(127, 182, 228, 0.12), transparent 60%),
    var(--steel-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
  flex-wrap: wrap;
}

.band h3 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--plate);
}

.band p {
  font-size: 0.98rem;
  color: var(--plate-3);
  max-width: 41.106em; /* 62ch of Geist */
  line-height: 1.65;
}

.contact {
  position: relative;
  overflow: hidden;
  margin-top: var(--section);
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 72px);
  border-radius: var(--r-lg);
  text-align: left;
  background:
    radial-gradient(55% 90% at 85% 0%, rgba(127, 182, 228, 0.14), transparent 65%),
    var(--abyss);
}

.contact::after {
  content: "";
  position: absolute;
  right: clamp(-60px, -2vw, 0px);
  bottom: -40px;
  width: min(36vw, 380px);
  aspect-ratio: 220 / 240;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 240' fill='none' stroke='%237FB6E4' stroke-width='2.2' stroke-linecap='round' stroke-dasharray='0.1 6'%3E%3Cpath d='M110 22 L196 62 L110 102 L24 62Z' opacity='.6'/%3E%3Cpath d='M110 62 L196 102 L110 142 L24 102Z' opacity='.45'/%3E%3Cpath d='M110 102 L196 142 L110 182 L24 142Z' opacity='.32'/%3E%3Cpath d='M110 142 L196 182 L110 222 L24 182Z' opacity='.2'/%3E%3Cpath d='M110 102 V222 M68 82 V202 M152 82 V202' stroke='%23F2A65A' opacity='.35'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.55;
  pointer-events: none;
}

.contact > * {
  position: relative;
  z-index: 1;
}

.contact .eyebrow {
  justify-content: flex-start !important;
  color: var(--ice);
}

.contact h2 {
  margin: 0 0 18px;
  max-width: 14.806em; /* 22ch of Geist */
  color: var(--plate);
}

.contact .sub {
  margin: 0 0 36px;
  color: var(--plate-3);
}

.contact .cta-row {
  justify-content: flex-start;
}

.contact-mail {
  display: block;
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--plate-3);
}

.contact-mail a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contact-mail a:hover {
  text-decoration: underline;
}

/* Footer (dark) -------------------------------------------------------------------------- */
footer {
  position: relative;
  z-index: 1;
  margin-top: var(--section);
  padding: 72px 0 48px;
  background: var(--abyss);
  border-top: 1px solid var(--line-d);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
  font-size: 0.875rem;
  color: var(--plate-3);
}

.foot-grid img {
  height: 40px;
  width: auto;
  margin-bottom: 18px;
}

.foot-grid .foot-title {
  max-width: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--plate);
  margin-bottom: 16px;
  text-wrap: balance;
}

.foot-grid ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.foot-grid a {
  color: var(--plate-3);
  text-decoration: none;
}

.foot-grid a:hover {
  color: var(--plate);
}

.foot-grid p {
  line-height: 1.65;
  max-width: 23.868em; /* 36ch of Geist */
}

.foot-grid p strong {
  font-weight: 500;
  color: var(--plate-2);
}

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-d);
  font-size: 0.8rem;
  color: var(--plate-3);
}

.foot-bottom a {
  color: var(--plate-2);
  text-decoration: none;
}

.foot-bottom a:hover {
  color: var(--plate);
}

/* Article layout ---------------------------------------------------------------------------- */
.article-head {
  padding: clamp(56px, 7vw, 104px) 0 40px;
}

.article-head h1 {
  font-size: clamp(2.2rem, 1.45rem + 2.6vw, 3.6rem);
}

.article-head .lede {
  margin-left: 0;
  text-align: left;
  color: var(--ink-2);
}

.crumbs {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--accent);
}

.article-shell {
  padding: 40px 0 0;
  border-top: 1px solid var(--rule-2);
}

.article {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 45.084em; /* 68ch of Geist */
}

.article h2 {
  font-size: clamp(1.55rem, 1.3rem + 0.9vw, 2rem);
  margin: 56px 0 16px;
  max-width: none;
  color: var(--ink);
}

.article h2:first-child {
  margin-top: 0;
}

.article h3 {
  font-size: 1.25rem;
  margin: 36px 0 10px;
}

.article p {
  margin-bottom: 20px;
}

.article p strong,
.article li strong {
  color: var(--ink);
  font-weight: 600;
}

.article ul,
.article ol {
  margin: 0 0 22px 22px;
  display: grid;
  gap: 8px;
}

.article li::marker {
  color: var(--accent);
}

.article a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.article blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--accent);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.article pre,
.tk-pre {
  margin: 22px 0 28px;
  padding: 22px 24px;
  border-radius: var(--r);
  overflow-x: auto;
  border: 1px solid var(--steel-3);
  background: var(--abyss);
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--plate-2);
}

.article code,
.tk-code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--accent-2);
  background: var(--accent-wash);
  padding: 2px 6px;
  border-radius: 5px;
}

.tk-code {
  white-space: nowrap;
}

.article pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 0.94rem;
  border-top: 1px solid var(--rule-2);
}

.article th,
.article td {
  text-align: left;
  padding: 13px 14px 13px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.article td {
  color: var(--ink-2);
}

.article th {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom-color: var(--rule-2);
}

.article .callout {
  margin: 32px 0;
  padding: 24px 26px;
  border-radius: var(--r);
  background: var(--paper-2);
}

.article .callout h3 {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: inherit;
  letter-spacing: normal;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 12px;
}

.article .callout ul {
  margin-bottom: 0;
}

.article-foot {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-2);
}

.article-foot .shared {
  font-size: 0.9rem;
}

.related {
  margin-top: 48px;
}

.related > h3 {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Product: tokener ------------------------------------------------------------------------- */
.tk-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 56px;
  align-items: center;
  text-align: left;
}

.tk-hero h1 {
  font-size: clamp(2.2rem, 1.45rem + 2.6vw, 3.6rem);
}

.tk-hero .lede {
  margin-left: 0;
}

.tk-hero .cta-row {
  justify-content: flex-start;
  margin-top: 32px;
}

.tk-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
}

.tk-facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tk-facts span::before {
  content: "";
  width: 7px;
  height: 8px;
  flex: none;
  background: var(--ok);
  clip-path: var(--hex);
}

.tk-console {
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  font-size: 0.84rem;
}

.tk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.tk-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.8rem;
}

.tk-meta {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.75rem;
  margin-left: 6px;
}

.tk-note {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}

.tk-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.tk-kpis > div {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 14px;
}

.tk-kpis span,
.tk-kpis em {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-style: normal;
}

.tk-kpis b {
  display: block;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 4px 0 2px;
  font-variant-numeric: tabular-nums;
}

.tk-kpis b.ok {
  color: var(--ok);
}

.tk-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 16px;
}

.tk-panel {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px;
}

.tk-panel .tk-label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-wrap: balance;
}

.tk-row {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.78rem;
}

.tk-row span {
  color: var(--muted);
}

.tk-row i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
  min-width: 4px;
}

.tk-row i.warn {
  background: var(--signal);
}

.tk-row b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.tk-stat {
  font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tk-h3 {
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.tk-pre .c { color: var(--steel); }
.tk-pre .s { color: var(--ember); }

.tk-arch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 48px;
}

.tk-node {
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--surface);
  padding: 22px 20px;
}

.tk-node small {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 8px;
}

.tk-node b {
  display: block;
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.tk-node span {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

.tk-node--main {
  background: var(--steel-1);
  border-color: var(--steel-3);
  color: var(--plate);
}

.tk-node--main small { color: var(--ice); }
.tk-node--main b { color: var(--plate); }
.tk-node--main span { color: var(--plate-3); }

.tk-node ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  counter-reset: tk;
}

.tk-node ol li {
  counter-increment: tk;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--plate);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-d2);
}

.tk-node ol li::before {
  content: counter(tk) " · ";
  color: var(--ice);
}

.tk-arrow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 64px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-align: center;
  line-height: 1.6;
  white-space: nowrap;
}

.tk-arch-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.tk-arch-foot span {
  font-size: 0.8rem;
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px dashed var(--rule-2);
}

.tk-fine {
  margin-top: 16px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 820px;
}

.tk-shot {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}

.tk-shot--wide {
  margin-top: 40px;
}

.tk-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--rule);
}

.tk-shot figcaption {
  padding: 16px 20px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.tk-shot figcaption b {
  color: var(--ink);
  font-weight: 500;
}

/* Overflow guards -------------------------------------------------------------------------------- */
.hero-split > *,
.practice-grid > *,
.ip-grid > *,
.ip-card--featured > *,
.case-grid > *,
.grid > *,
.steps > *,
.kpi-strip > *,
.manifesto > *,
.foot-grid > *,
.split > *,
.arch-console__body > *,
.arch-console__kpis > *,
.arch-console__layers > *,
.case-metrics > *,
.tk-hero > *,
.tk-arch > *,
.tk-kpis > *,
.tk-panels > * {
  min-width: 0;
  max-width: 100%;
}

.ip-card__badge,
.practice-card__num,
.practice-card__persona,
.compliance-badge,
.case-card__client,
.practice-card__metric,
.client-chip {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
}

/* Responsive ---------------------------------------------------------------------------------------- */
/* Nav collapses below 1280px: seven items + CTA do not fit the header below that width. */
/* the utility bar keeps one line: below 1360px the left-hand facts give way to the links */
@media (min-width: 761px) and (max-width: 1360px) {
  .top-bar__left > span:not(.top-bar__pill) {
    display: none;
  }
}

@media (max-width: 1280px) {
  .nav-toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }
  .nav-toggle:focus-visible + .nav-burger {
    outline: 2px solid var(--ice);
    outline-offset: 2px;
  }
  header.site { flex-wrap: wrap; }
  .nav-burger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--line-d2);
    background: transparent;
    cursor: pointer;
    order: 3;
    margin-left: 4px;
  }
  .nav-burger span,
  .nav-burger span::before,
  .nav-burger span::after {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--plate);
    border-radius: 2px;
  }
  .nav-burger span {
    position: relative;
  }
  .nav-burger span::before,
  .nav-burger span::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .nav-burger span::before { top: -5px; }
  .nav-burger span::after { top: 5px; }
  header.site .nav-cta {
    order: 2;
    margin-left: auto;
  }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100svh - 120px);
    overflow-y: auto;
    background: var(--steel-1);
    border-bottom: 1px solid var(--line-d2);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    padding: 8px var(--gutter) 16px;
  }
  .nav > a,
  .nav-item > a {
    display: flex;
    padding: 15px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line-d);
    font-size: 1rem;
    justify-content: space-between;
  }
  .nav > a:hover,
  .nav-item > a:hover,
  .nav > a.active,
  .nav-item > a.active {
    background: none;
  }
  .nav-drop,
  .nav-drop--wide {
    position: static;
    box-shadow: none;
    border: 0;
    border-bottom: 1px solid var(--line-d);
    border-radius: 0;
    background: transparent;
    padding: 6px 0 12px;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }
  .nav-drop__head {
    border-bottom: 0;
    padding-left: 4px;
  }
  .nav-toggle:checked ~ .nav {
    display: flex;
  }
}

@media (max-width: 1100px) {
  .kpi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-cell { border-bottom: 1px solid var(--rule); }
  .kpi-cell:nth-child(3n) { border-right: 0; padding-right: 0; }
  .kpi-cell:nth-child(3n + 1) { padding-left: 0; }
  .kpi-cell:nth-last-child(-n+3) { border-bottom: 0; }
  .tk-hero, .ip-card--featured { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .hero::after { opacity: 0.5; }
}

@media (max-width: 1023px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 24px; }
  .mark-slot { order: -1; width: min(70vw, 340px); }
  .hero::after { display: none; }
  .pedigree-logos { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .grid-3, .grid-4, .steps, .steps--5, .case-grid, .practice-grid, .ip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split, .tk-arch {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .tk-arrow { flex-direction: row; justify-content: center; gap: 32px; min-width: 0; padding: 2px 0; }
}

@media (max-width: 760px) {
  .top-bar__right { display: none; }
  .grid-3, .grid-2, .grid-4, .steps, .steps--5, .foot-grid, .case-grid, .practice-grid, .ip-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid { gap: 36px; }
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-cell,
  .kpi-cell:nth-child(3n),
  .kpi-cell:nth-child(3n + 1) { padding: 22px 16px 22px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .kpi-cell:nth-child(odd) { border-right: 1px solid var(--rule); }
  .kpi-cell:nth-child(even) { padding-left: 16px; padding-right: 0; }
  .kpi-cell:nth-last-child(-n+2) { border-bottom: 0; }
  .manifesto { grid-template-columns: minmax(0, 1fr); }
  .manifesto > div,
  .manifesto > div:nth-child(even) { padding: 28px 0; border-left: 0; }
  .hero-island .cta-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hero-island .cta-row > .btn:first-child { justify-self: stretch; }
  .hero-island .cta-row .btn--ghost { justify-self: start; }
  .hero-island .tk-facts { grid-template-columns: minmax(0, 1fr); }
  .mark-slot { width: min(64vw, 260px); }
  .cta-row { width: 100%; }
  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }
  .brand img { height: 32px; }
  .article { font-size: 1rem; }
  .article pre,
  .tk-pre {
    font-size: 0.75rem;
    padding: 14px;
    white-space: pre;
    overflow-x: auto;
    overflow-wrap: normal;
    word-break: normal;
  }
  /* wide multi-column tables become stacked rows */
  .matrix-table,
  .matrix-table tbody,
  .matrix-table tfoot,
  .tk-table,
  .tk-table tbody,
  .tk-table tfoot,
  .article table,
  .article table tbody {
    display: block;
    width: 100%;
  }
  .matrix-table thead,
  .tk-table thead,
  .article table thead {
    display: none;
  }
  .matrix-table tr,
  .tk-table tr,
  .article table tr {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid var(--rule);
  }
  .article table tr {
    padding: 14px 0;
  }
  .matrix-table tr:last-child,
  .tk-table tr:last-child,
  .article table tr:last-child {
    border-bottom: 0;
  }
  .matrix-table td,
  .tk-table td,
  .article table td {
    display: block;
    padding: 3px 0;
    border: 0;
    text-align: left !important;
    white-space: normal !important;
  }
  .matrix-table td:first-child,
  .tk-table td:first-child,
  .article table td:first-child {
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
  }
  .tk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-panels { grid-template-columns: minmax(0, 1fr); }
  .tk-meta { display: none; }
}

@media (max-width: 540px) {
  .top-bar__left span:not(.top-bar__pill) {
    display: none;
  }
  header.site {
    flex-wrap: nowrap;
    gap: 8px;
    min-height: 64px;
  }
  .brand img {
    height: 28px;
  }
  header.site .nav-cta {
    height: 38px;
    padding: 0 14px;
    font-size: 0.78rem;
  }
  header.site .nav-cta svg {
    display: none;
  }
  .nav-burger {
    width: 40px;
    height: 40px;
    margin-left: 0;
    flex-shrink: 0;
  }
  .cta-row > .btn {
    width: 100%;
  }
  .btn {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  .badge {
    font-size: 0.72rem;
    border-radius: 14px;
  }
}

/* smallest phones: the header CTA drops to its own full-width row */
/* narrow phones keep the header on one row (65px instead of 91px of covered screen); only the very
   narrowest wrap the CTA onto its own row */
@media (max-width: 380px) {
  .brand img {
    height: 24px;
  }
  header.site .nav-cta {
    height: 38px;
    padding: 0 11px;
    font-size: 0.72rem;
  }
}

@media (max-width: 349px) {
  header.site {
    flex-wrap: wrap;
    row-gap: 0;
  }
  .nav-burger {
    margin-left: auto;
  }
  header.site .nav-cta {
    order: 4;
    width: 100%;
    justify-content: center;
    margin: 0 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}

/* hero island internals */
.hero-island > .hero-split {
  width: 100%;
}

[data-formation="strata"] .fallback-mark--mark,
[data-formation="mark"] .fallback-mark--strata {
  display: none !important;
}

/* product heroes carry their own console on the right */
.tk-hero::after {
  display: none;
}

/* home closing band: copy on the left, the Strata particle formation on the right */
.contact--field {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px 48px;
  min-height: 540px;
}

.contact--field::after {
  display: none;
}

.contact > .hero-canvas,
.contact > .core-light {
  position: absolute;
  z-index: 0;
}

.contact--field .mark-slot {
  width: min(100%, 380px);
}

@media (max-width: 1023px) {
  .contact--field {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .contact--field .mark-slot {
    width: min(60vw, 260px);
  }
}

/* ==========================================================================
   Home: proof without display numbers. Who it was done with comes first,
   verified in production, measured quietly. Hidden-until-revealed states only
   apply under html.motion-ok (set in <head> when motion is allowed) and
   no-preference, so the page ships readable and complete.
   ========================================================================== */

/* hero: claim, proof, ask */
.hero-proof {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 26px;
  padding: 8px 20px 8px 8px;
  max-width: 100%;
  border-radius: 999px;
  background: rgba(95, 211, 165, 0.07);
  box-shadow: inset 0 0 0 1px rgba(95, 211, 165, 0.22);
  color: var(--plate-2);
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  transition: box-shadow 0.2s var(--ease);
}

.hero-proof > span {
  text-wrap: balance;
}

.hero-proof__status {
  font-weight: 600;
  color: var(--ok-d);
}

.hero-proof__brands {
  font-weight: 500;
  color: var(--plate);
}

.hero-proof:hover {
  background: rgba(95, 211, 165, 0.12);
  box-shadow: inset 0 0 0 1px rgba(95, 211, 165, 0.5);
}

.hero-proof:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

.hero-proof__seal {
  width: 26px;
  height: 29px;
  flex: none;
  fill: none;
  stroke: var(--ok-d);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* reel: one frame per named engagement */
.reel {
  padding-top: var(--section);
}

.reel__head h2 {
  max-width: 14.806em; /* 22ch of Geist */
}

.reel__body {
  display: grid;
  grid-template-columns: minmax(200px, 0.3fr) minmax(0, 1fr);
  gap: 0 clamp(40px, 5vw, 80px);
  margin-top: 56px;
}

.reel__rail {
  position: sticky;
  top: calc(var(--hdr, 73px) + 40px);
  align-self: start;
  padding-top: 40px;
}

.reel__rail-label {
  max-width: 19.89em; /* 30ch of Geist */
  margin-bottom: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.reel__rail-label--more {
  margin: 20px 0 4px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  color: var(--muted);
}

.reel__names {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.reel__names a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.reel__names a::before,
.reel__names a::after {
  content: "";
  width: 8px;
  height: 9px;
  flex: none;
  clip-path: var(--hex);
  background: var(--rule-2);
  transition: transform 360ms var(--ease);
}

.reel__names a::after {
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -4.5px;
  background: var(--ok);
  transform: scale(0);
}

.reel__names a.is-sealed::after {
  transform: scale(1);
}

.reel__names a.is-current::before {
  transform: scale(1.45);
  background: var(--ink-2);
}

.reel__names a.is-sealed.is-current::after {
  transform: scale(1.45);
}

.reel__names a[aria-current] {
  color: var(--accent);
  font-weight: 600;
}

.reel__others {
  list-style: none;
  margin: 0 0 20px;
  padding: 0 0 0 20px;
}

.reel__others a {
  display: block;
  padding: 4px 0;
  font-size: 0.95rem;
  color: var(--ink-2);
  text-decoration: none;
}

.reel__others a:hover,
.reel__names a:hover {
  color: var(--accent);
}

.reel__all {
  font-size: 0.92rem;
}

.reel__frame {
  min-height: min(54vh, 520px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 16px;
}

.reel__frame:last-child {
  border-bottom: 1px solid var(--rule);
}

.reel__sector {
  order: -1;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
}

.reel__name {
  margin-bottom: 28px;
  font-size: clamp(2rem, 0.95rem + 2.9vw, 3.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.reel__name--pair {
  font-size: clamp(1.6rem, 0.8rem + 2vw, 2.4rem);
  line-height: 1.04;
}

.reel__link {
  display: inline-grid;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.reel__link:hover .reel__ghost,
.reel__link:hover .reel__ink {
  color: var(--accent);
}

.reel__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 4px;
}

.reel__ghost,
.reel__ink {
  grid-area: 1 / 1;
}

.reel__ink {
  display: none;
  position: relative;
  color: var(--ink);
  -webkit-user-select: none;
  user-select: none;
}

/* a pair of brands sets one per line, so the box (and the scan) ends at the text */
.reel__brand {
  display: block;
}

.reel__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.reel__scan::after {
  content: "";
  position: absolute;
  right: 0;
  top: 4%;
  bottom: 4%;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 18px 3px rgba(127, 182, 228, 0.7);
}

.reel__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas: "line proof";
  align-items: start;
  gap: 16px clamp(28px, 4vw, 56px);
}

.reel__line {
  grid-area: line;
  max-width: 23.868em; /* 36ch of Geist */
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.reel__proof {
  grid-area: proof;
}

/* the seal: a hex that draws itself, a tick, then the words */
.seal {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 5px 14px 5px 5px;
  isolation: isolate;
}

.seal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 999px;
  background: rgba(4, 120, 87, 0.07);
  box-shadow: inset 0 0 0 1px rgba(4, 120, 87, 0.22);
}

.seal__mark {
  width: 30px;
  height: 33px;
  flex: none;
  overflow: visible;
}

.seal__hex,
.seal__tick {
  fill: none;
  stroke: var(--ok);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.seal__hex {
  stroke-width: 2.4;
}

.seal__tick {
  stroke-width: 3;
}

.seal__text {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: #036B4E;
}

.seal::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 30px;
  height: 33px;
  margin-top: -16.5px;
  clip-path: var(--hex);
  background: rgba(4, 120, 87, 0.28);
  opacity: 0;
  pointer-events: none;
}

/* measured values: body size, tabular, beside what they mean */
.ledger {
  margin: 0;
}

.ledger__row {
  position: relative;
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
}

.ledger__row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--rule-2);
  transform-origin: left;
}

.ledger dt {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}

.ledger dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

@keyframes seal-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes seal-ring {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.9); }
}

/* practice cards: when the title is a link, the whole card is the target (home practices, industries) */
.practice-card {
  position: relative;
}

.practice-card__link {
  color: inherit;
  text-decoration: none;
}

.practice-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.practice-card:hover .practice-card__link {
  color: var(--accent);
}

/* home practices: persona above the title */
#capabilities .practice-card__persona {
  order: -1;
}

@supports selector(:has(*)) {
  .practice-card__link:focus-visible {
    outline: none;
  }

  .practice-card:has(.practice-card__link:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }
}

#capabilities .practice-card__desc {
  margin-bottom: 0;
}

/* ACE: the four modules on the stack they serve, Loop Engineering across it */
.ace {
  margin: 56px 0 0;
}

.ace__cap {
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ice);
}

.ace__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
}

.ace__stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ace__layer {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 8px 24px;
  align-items: center;
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--steel-1);
  box-shadow: inset 0 0 0 1px var(--line-d), inset 2px 0 0 var(--ice);
}

.ace__layer--base {
  box-shadow: inset 0 0 0 1px var(--line-d2), inset 2px 0 0 var(--plate-3);
}

.ace__tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ice);
}

.ace__name {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--plate);
}

.ace__name small {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--plate-3);
}

.ace__module {
  display: grid;
  gap: 6px;
}

.ace__badge {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--plate-3);
  overflow-wrap: anywhere;
}

.ace__title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--plate);
}

.ace__loop {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 22px 30px;
  border-radius: 12px;
  background: var(--steel-1);
  box-shadow: inset 0 0 0 1px var(--line-d);
}

.ace__loop::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, var(--ice), rgba(127, 182, 228, 0.15));
  transform-origin: bottom;
}

.ace__measure {
  margin: auto 0 0;
  padding-top: 16px;
  font-size: 0.9rem;
  color: var(--plate-2);
}

.ace__measure b {
  font-family: var(--mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--plate);
}

/* Archeon's own benchmark: a quieter tag than the green production seal */
.ace__measured {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 7px;
  border: 1px solid rgba(127, 182, 228, 0.45);
  border-radius: 4px;
  font: 500 0.6875rem var(--mono);
  letter-spacing: 0.04em;
  color: var(--ice);
  vertical-align: 1px;
}

/* doctrine: plain tags, two phrases get a marker */
#doctrine .manifesto .num {
  font-family: var(--font);
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
}

#doctrine .manifesto p {
  isolation: isolate;
}

.sweep {
  position: relative;
  font-weight: inherit;
  color: var(--ink);
  white-space: nowrap;
}

.sweep::before {
  content: "";
  position: absolute;
  inset: 0.08em -0.12em;
  z-index: -1;
  border-radius: 3px;
  background: rgba(127, 182, 228, 0.32);
  transform-origin: left;
}

/* motion: hidden states only when the page asked for motion and the visitor allows it */
@media (prefers-reduced-motion: no-preference) {
  .motion-ok .reel__ghost { color: rgba(11, 16, 24, 0.12); }
  .motion-ok .reel__ink { display: block; clip-path: inset(0 100% 0 0); }
  .motion-ok .reel__scan { transform: translateX(-100%); }
  .motion-ok .reel__sector,
  .motion-ok .reel__line { opacity: 0; transform: translateY(10px); }
  .motion-ok .ledger__row::before { transform: scaleX(0); }
  .motion-ok .ledger dt,
  .motion-ok .ledger dd { opacity: 0; }
  .motion-ok .seal__hex,
  .motion-ok .seal__tick { stroke-dashoffset: 1; }
  .motion-ok .seal::before { opacity: 0; }
  .motion-ok .seal__text { clip-path: inset(0 100% 0 0); }

  .motion-ok .is-verified .reel__sector { opacity: 1; transform: none; transition: opacity 300ms linear, transform 500ms var(--ease); }
  .motion-ok .is-verified .reel__ink { clip-path: inset(0); transition: clip-path 850ms cubic-bezier(0.65, 0, 0.35, 1) 150ms; }
  .motion-ok .is-verified .reel__scan { transform: none; opacity: 0; transition: transform 850ms cubic-bezier(0.65, 0, 0.35, 1) 150ms, opacity 220ms linear 1000ms; }
  .motion-ok .is-verified .reel__line { opacity: 1; transform: none; transition: opacity 450ms linear 650ms, transform 600ms var(--ease) 650ms; }
  .motion-ok .reel__proof.is-in .seal__hex { animation: seal-draw 600ms cubic-bezier(0.33, 1, 0.68, 1) 100ms forwards; }
  .motion-ok .reel__proof.is-in .seal__tick { animation: seal-draw 300ms ease-out 650ms forwards; }
  .motion-ok .reel__proof.is-in .seal::before { opacity: 1; transition: opacity 300ms linear 800ms; }
  .motion-ok .reel__proof.is-in .seal__text { clip-path: inset(0); transition: clip-path 420ms var(--ease) 800ms; }
  .motion-ok .reel__proof.is-in .seal::after { animation: seal-ring 800ms ease-out 950ms 1 forwards; }
  .motion-ok .reel__proof.is-in .ledger__row::before { transform: scaleX(1); transition: transform 600ms var(--ease) calc(350ms + var(--r) * 120ms); }
  .motion-ok .reel__proof.is-in .ledger dt,
  .motion-ok .reel__proof.is-in .ledger dd { opacity: 1; transition: opacity 400ms linear calc(500ms + var(--r) * 120ms); }

  /* hero: the small seal draws once the page has settled */
  .motion-ok .hero-proof__seal path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: seal-draw 650ms cubic-bezier(0.33, 1, 0.68, 1) 900ms forwards; }
  .motion-ok .hero-proof__seal path + path { animation-duration: 300ms; animation-delay: 1450ms; }

  /* frames already scrolled past (anchor jump, reload mid-page): final state, no show */
  .motion-ok .is-instant,
  .motion-ok .is-instant *,
  .motion-ok .is-instant *::before,
  .motion-ok .is-instant *::after,
  .motion-ok .is-instant > * { transition: none !important; animation-duration: 0s !important; animation-delay: 0s !important; }
  .motion-ok .is-instant .seal::after { animation: none !important; }

  /* practices: staggered rise */
  .motion-ok #capabilities .practice-grid > * { opacity: 0; transform: translateY(18px); }
  .motion-ok #capabilities .practice-grid.is-in > * { opacity: 1; transform: none; transition: opacity 500ms linear, transform 650ms var(--ease), border-color 0.2s var(--ease); }
  .motion-ok #capabilities .practice-grid.is-in > :nth-child(2) { transition-delay: 80ms, 80ms, 0s; }
  .motion-ok #capabilities .practice-grid.is-in > :nth-child(3) { transition-delay: 160ms, 160ms, 0s; }
  .motion-ok #capabilities .practice-grid.is-in > :nth-child(4) { transition-delay: 240ms, 240ms, 0s; }
  .motion-ok #capabilities .practice-grid.is-in > :nth-child(5) { transition-delay: 320ms, 320ms, 0s; }

  /* ACE: the plates settle, L1 first, then the loop draws up beside them */
  .motion-ok .ace__layer { opacity: 0; transform: translateY(-22px); }
  .motion-ok .ace.is-in .ace__layer { opacity: 1; transform: none; transition: opacity 450ms linear calc(var(--i) * 120ms), transform 700ms var(--ease) calc(var(--i) * 120ms); }
  .motion-ok .ace__loop { opacity: 0; }
  .motion-ok .ace.is-in .ace__loop { opacity: 1; transition: opacity 400ms linear 250ms; }
  .motion-ok .ace__loop::before { transform: scaleY(0); }
  .motion-ok .ace__loop > * { opacity: 0; }
  .motion-ok .ace.is-in .ace__loop::before { transform: scaleY(1); transition: transform 900ms var(--ease) 450ms; }
  .motion-ok .ace.is-in .ace__loop > * { opacity: 1; transition: opacity 450ms linear 950ms; }

  /* doctrine: the marker sweeps under the two phrases */
  .motion-ok .sweep::before { transform: scaleX(0); }
  .motion-ok #doctrine .manifesto.is-in .sweep::before { transform: scaleX(1); transition: transform 750ms var(--ease) 250ms; }
  .motion-ok #doctrine .manifesto.is-in > div:nth-child(2) .sweep::before { transition-delay: 650ms; }
}

/* phones: the stack is read top-down, so the plates settle from the top */
@media (prefers-reduced-motion: no-preference) and (max-width: 1023px) {
  .motion-ok .ace.is-in .ace__layer { transition-delay: calc((3 - var(--i)) * 120ms), calc((3 - var(--i)) * 120ms); }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .reel__body { grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr); gap: 0 40px; }
  .reel__names a { font-size: 0.95rem; }
  .reel__others a { font-size: 0.88rem; }
}

@media (forced-colors: active) {
  .reel__names a::before,
  .reel__names a::after { forced-color-adjust: none; background: CanvasText; }
  .reel__names a.is-current::before,
  .reel__names a.is-sealed.is-current::after { background: Highlight; }
  .ace__layer,
  .ace__loop { border: 1px solid CanvasText; }
  .sweep { background: Mark; color: MarkText; }
  .sweep::before { display: none; }
}

@media (max-width: 1023px) {
  .reel__body { grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
  .reel__rail { position: static; padding: 0 0 32px; }
  .reel__names,
  .reel__others { display: flex; flex-wrap: wrap; gap: 2px 20px; }
  .reel__names a { font-size: 0.98rem; }
  .reel__others { padding-left: 0; }
  .reel__frame { min-height: 0; padding: 48px 0; }
  .ace__body { grid-template-columns: minmax(0, 1fr); }
  .ace__layer { grid-template-columns: minmax(0, 1fr); padding: 18px 20px; }
}

@media (max-width: 760px) {
  .hero-proof { margin: 2px 0 22px; border-radius: 16px; font-size: 0.92rem; }
  .reel__name { margin-bottom: 24px; font-size: clamp(1.75rem, 7.4vw, 2.1rem); }
  .reel__name--pair { font-size: clamp(1.4rem, 6.1vw, 1.7rem); }
  .reel__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "line" "proof"; gap: 20px; }
  .ledger__row { grid-template-columns: 8.25rem minmax(0, 1fr); gap: 12px; }
  .ledger dt { font-size: 0.88rem; white-space: normal; }
  #capabilities .practice-route .link { margin-left: 0; }
}

/* ==========================================================================
   Home on phones: the proof leads, the practices read as one panel, reveals
   trigger per item and finish while they are on screen.
   ========================================================================== */
.reel__more--phone {
  display: none;
}

@media (max-width: 760px) {
  /* reel: the intro line, then the frames; the rest of the list closes the reel */
  .reel__body { margin-top: 16px; }
  .reel__rail { padding: 0 0 4px; }
  .reel__rail > .reel__rail-label:first-child { max-width: 22.542em; margin: 0; }
  .reel__names,
  .reel__rail .reel__more { display: none; }
  .reel__more--phone { display: block; padding-top: 24px; }
  .reel__more--phone .reel__rail-label--more { margin: 0 0 6px; padding-top: 0; border-top: 0; }
  .reel__others { gap: 0 20px; margin-bottom: 8px; }
  .reel__others a { padding: 10px 0; }
  .reel__all { display: inline-block; padding: 11px 0; }

  .reel__frame { padding: 32px 0 36px; }
  .reel__sector { margin-bottom: 8px; }
  .reel__name { margin-bottom: 16px; }
  .reel__brk { display: block; }
  .reel__grid { gap: 16px; }
  .seal { margin-bottom: 6px; }
  .ledger__row { grid-template-columns: 8rem minmax(0, 1fr); gap: 12px; padding: 10px 0; }
  .ledger dd { font-size: 0.875rem; line-height: 1.45; }

  /* practices: one panel with hairline rows instead of five floating boxes */
  #capabilities .head-row { gap: 12px; }
  #capabilities .head-row > .link { display: inline-block; padding: 10px 0; margin: -10px 0; }
  #capabilities .practice-grid { gap: 0; margin-top: 28px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
  #capabilities .practice-card,
  #capabilities .practice-route { border: 0; border-radius: 0; background: transparent; }
  #capabilities .practice-grid > * + * { border-top: 1px solid var(--rule); }
  #capabilities .practice-card { gap: 8px; padding: 22px 20px 24px; }
  #capabilities .practice-card h3 { margin-bottom: 0; font-size: 1.2rem; line-height: 1.3; }
  #capabilities .practice-card__desc { font-size: 0.95rem; line-height: 1.6; }
  #capabilities .practice-route { gap: 2px 12px; padding: 18px 20px 20px; }
  #capabilities .practice-route__title { font-size: 1rem; }
  #capabilities .practice-card:has(.practice-card__link:focus-visible) { outline-offset: -3px; }

  /* ACE: tighter plates, the measured tag on its own line */
  .ace { margin-top: 36px; }
  .ace__cap { margin-bottom: 12px; }
  .ace__stack { gap: 8px; }
  .ace__layer { gap: 2px; padding: 14px 18px 16px; }
  .ace__name { margin-bottom: 8px; }
  .ace__name small { margin-top: 2px; }
  .ace__module { gap: 2px; }
  .ace__badge { font-size: 0.72rem; letter-spacing: 0; }
  .ace__loop { gap: 6px; padding: 18px 18px 18px 28px; }
  .ace__measure { padding-top: 6px; }
  .ace__measured { display: table; margin: 0 0 8px; }

  /* contact island sits in an even light frame above the footer */
  .contact--field { padding: 40px 20px 44px; }
  main:has(.contact) + footer,
  .wrap:has(> main .contact) + footer { margin-top: var(--gutter); }

  /* text links reach a 44px touch target without moving the layout */
  .hero-island .cta-row .btn--ghost { padding: 14px 0; margin: -10px 0; }
}

@media (max-width: 380px) {
  .contact .btn svg { display: none; }
}

/* phone reveals: per item, so each card, plate and phrase plays when it is the one on screen */
@media (prefers-reduced-motion: no-preference) {
  .motion-ok #capabilities .practice-grid > .is-in { opacity: 1; transform: none; transition: opacity 420ms linear, transform 520ms var(--ease), border-color 0.2s var(--ease); }
  .motion-ok .ace .ace__layer.is-in { opacity: 1; transform: none; transition: opacity 380ms linear, transform 520ms var(--ease); }
  .motion-ok .ace__loop.is-in { opacity: 1; transition: opacity 300ms linear; }
  .motion-ok .ace__loop.is-in::before { transform: scaleY(1); transition: transform 600ms var(--ease) 120ms; }
  .motion-ok .ace__loop.is-in > * { opacity: 1; transition: opacity 360ms linear 300ms; }
  .motion-ok #doctrine .sweep.is-in::before { transform: scaleX(1); transition: transform 600ms var(--ease) 120ms; }
  .motion-ok .is-instant::before,
  .motion-ok .is-instant::after { transition: none !important; animation-duration: 0s !important; animation-delay: 0s !important; }
}

/* phone timing: the reel sequence fits a thumb flick (about 0.75 s instead of 1.75 s) */
@media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
  .motion-ok .is-verified .reel__sector { transition: opacity 240ms linear, transform 360ms var(--ease); }
  .motion-ok .is-verified .reel__ink { transition: clip-path 560ms cubic-bezier(0.65, 0, 0.35, 1); }
  .motion-ok .is-verified .reel__scan { transition: transform 560ms cubic-bezier(0.65, 0, 0.35, 1), opacity 180ms linear 560ms; }
  .motion-ok .is-verified .reel__line { transition: opacity 320ms linear 180ms, transform 420ms var(--ease) 180ms; }
  .motion-ok .reel__proof.is-in .seal__hex { animation-duration: 420ms; animation-delay: 0ms; }
  .motion-ok .reel__proof.is-in .seal__tick { animation-duration: 220ms; animation-delay: 380ms; }
  .motion-ok .reel__proof.is-in .seal::before { transition: opacity 240ms linear 380ms; }
  .motion-ok .reel__proof.is-in .seal__text { transition: clip-path 320ms var(--ease) 420ms; }
  .motion-ok .reel__proof.is-in .seal::after { animation-duration: 600ms; animation-delay: 560ms; }
  .motion-ok .reel__proof.is-in .ledger__row::before { transition: transform 420ms var(--ease) calc(200ms + var(--r) * 80ms); }
  .motion-ok .reel__proof.is-in .ledger dt,
  .motion-ok .reel__proof.is-in .ledger dd { transition: opacity 300ms linear calc(300ms + var(--r) * 80ms); }
  .motion-ok #capabilities .practice-grid > * { transform: translateY(12px); }
  .motion-ok .ace__layer { transform: translateY(-12px); }
}

/* ==========================================================================
   Home, scrolling back up (desktop): position, not replay. The rail shows how
   far through the reel you are, a seal you return to nods once, and the ACE
   plates open and close with the scroll. Nothing long plays again.
   ========================================================================== */
.reel__names {
  position: relative;
  isolation: isolate;
}

.reel__names::before,
.reel__names::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 3.5px;
  top: 19px;
  bottom: 19px;
  width: 1px;
  background: var(--rule);
  pointer-events: none;
}

/* accent, not green: reading position is never read as "verified" */
.reel__names::after {
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(var(--rail-p, 0));
}

@media (prefers-reduced-motion: no-preference) {
  .reel__names::after { transition: transform 600ms var(--ease); }
}

@keyframes rail-read {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes ace-breathe {
  0% { translate: 0 var(--sp); }
  42%, 58% { translate: 0 0; }
  100% { translate: 0 calc(var(--sp) * 0.6); }
}

.ace__layer {
  --sp: calc((var(--i) - 1.5) * -12px);
}

@supports (animation-timeline: view()) and (timeline-scope: --a) {
  .reel__body { timeline-scope: --reel; }
  .reel__frames { view-timeline: --reel block; }
  .ace__stack { view-timeline: --ace block; }
  @media (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
    .motion-ok .reel__names::after { transition: none; animation: rail-read linear both; animation-timeline: --reel; animation-range: cover calc(50vh) cover calc(100% - 50vh); }
    .motion-ok .ace__layer { animation: ace-breathe linear both; animation-timeline: --ace; animation-range: cover 0% cover 100%; }
    /* a jump that settles the stack must not zero the scroll-linked breathing */
    .motion-ok .ace.is-instant .ace__layer { animation-duration: auto !important; }
  }
}

@media (max-width: 1023px), (forced-colors: active) {
  .reel__names::before,
  .reel__names::after { display: none; }
}

/* ==========================================================================
   Inner pages, Tur 7: phone proof readability. Claim and numbers reach the first phone screens.
   ========================================================================== */

/* inner hero badges read as an eyebrow line on every width, not a bordered pill that wraps */
.hero .badge {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--accent);
}

.hero .badge .dot {
  display: none;
}

/* case study headlines (moved out of seven inline styles): the result line under the brand */
article.practice-card > h2 {
  font-size: 1.3rem;
  line-height: 1.35;
}

/* tokener screenshots open full size; the link is only a wrapper */
.tk-shot > a {
  display: block;
}

/* hyphenated compounds in headings never split at the hyphen */
.nobr {
  white-space: nowrap;
}

@media (max-width: 760px) {
  /* stacked table rows keep their column heading on every cell but the first */
  .matrix-table td[data-label]::before,
  .tk-table td[data-label]::before,
  .article table td[data-label]::before { content: attr(data-label); display: block; font: 500 0.7rem/1.5 var(--mono); color: var(--muted); }

  /* small text links reach a 44px touch target without moving the layout */
  .practice-card .link { padding: 10px 0; margin: -10px 0; }
  .crumbs a,
  .shared a { padding: 14px 0; }

  /* tokener hero: one primary button, the two secondary actions read as text links (as on the home hero) */
  .tk-hero .cta-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tk-hero .cta-row > .btn:first-child { justify-self: stretch; }
  .tk-hero .cta-row .btn--ghost { justify-self: start; width: auto; min-height: 0; padding: 14px 0; margin: -10px 0; border: 0; border-radius: 0; background: none; color: var(--accent); text-decoration: underline; text-decoration-color: rgba(47, 93, 158, 0.35); text-underline-offset: 5px; text-decoration-thickness: 1px; }
}

@media (max-width: 540px) {
  /* inner hero: a smaller h1, and the jump links as one swipeable row with a fading edge */
  main > section.hero h1 { font-size: 2.15rem; line-height: 1.04; }
  .hero .taglines { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
  .hero .taglines::-webkit-scrollbar { display: none; }
  .hero .pill { flex: 0 0 auto; min-height: 44px; white-space: nowrap; scroll-snap-align: start; }

  /* case studies: the numbers follow the intro */
  article.practice-card > h2 { font-size: 1.15rem; }
  article.practice-card .split > :nth-child(2) { order: -1; }

  /* practice cards drop the floating box for one hairline row; no double rule under the hero */
  .practice-card { background: none; border: 0; border-top: 1px solid var(--rule-2); border-radius: 0; padding: 28px 0 0; }
  main > .hero + section > .practice-card:first-child,
  main > .hero + section > .practice-grid:first-child > .practice-card:first-child { border-top: 0; padding-top: 0; }

  /* footer: link groups in two columns, the brand and the company group (long e-mail) span both */
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .foot-grid > :first-child,
  .foot-grid > :nth-child(4),
  .foot-grid > :last-child { grid-column: 1 / -1; }
  .foot-grid ul { gap: 2px; }
  .foot-grid a { display: inline-block; padding: 7px 0; margin: -1px 0; }
}

/* ==========================================================================
   Inner pages, Tur 7: conversion and trust. Contact steps, Proof Lab terms by the hero CTA, targets out of proof green.
   ========================================================================== */

/* Proof Lab: a target is not a verified result, so it leaves the proof green */
#blueprints .practice-card__metric {
  color: var(--ink-2);
}

#blueprints .practice-card__metric::before {
  background: var(--steel);
}

/* Proof Lab: commercial terms sit under the hero CTA row */
.hero > .card {
  max-width: 42.432em; /* 64ch of Geist */
  margin-top: 36px;
}

/* contact: what happens after you write, as one hairline row under the hero CTA */
.contact-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
  max-width: 42.432em; /* 64ch of Geist */
  margin-top: 32px;
}

.contact-steps li {
  padding-top: 14px;
  border-top: 1px solid var(--rule-2);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.contact-steps__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}

/* contact: the address never breaks mid-word and scales down on narrow phones */
.card .contact-email {
  font-size: clamp(1rem, 5.4vw, 1.5rem);
}

.contact-email a {
  white-space: nowrap;
}

@media (max-width: 540px) {
  .contact-steps { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Inner pages, Tur 7: hygiene. Skip link, a one-line top bar on desktop, re-levelled headings that keep their old look.
   ========================================================================== */

/* skip link: off screen until it takes keyboard focus, then a pill over the top bar */
.skip-link {
  position: absolute;
  top: 8px;
  left: var(--gutter);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--abyss);
  text-decoration: none;
  border-radius: 999px;
  background: var(--plate);
  transform: translateY(calc(-100% - 16px));
}

.skip-link:focus {
  transform: none;
}

/* top bar: one line (36px with its rule) at desktop widths, so a late web font cannot push the page down */
@media (min-width: 1281px) {
  .top-bar__inner { flex-wrap: nowrap; block-size: calc(0.75rem * 1.6 + 16px); overflow: hidden; white-space: nowrap; }
  .top-bar__left,
  .top-bar__right { flex-wrap: nowrap; }
}

/* section headings that sit one level under the h1 keep the look they had as h3 */
.practice-card > div > h2 {
  line-height: 1.3;
  max-width: none;
}

.post-card h2 {
  max-width: none;
}

/* ==========================================================================
   Inner pages, Tur 7: template chrome. Plain section labels, one stretched link per linked practice card.
   ========================================================================== */

/* section labels inside the page read as a plain sans line, without the mono type and the hexagon */
section.block .eyebrow {
  font-family: var(--font);
  font-size: 0.85rem;
  letter-spacing: 0;
}

section.block .eyebrow::before {
  display: none;
}

/* a second link inside a linked practice card stays its own target above the stretched title link */
.practice-card__foot a {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Inner pages, Tur 8: reveal infrastructure. Quiet reveals for [data-reveal] (assets/reveal.js), header keyboard state (assets/nav.js).
   ========================================================================== */

/* the CTA comes before the burger in the DOM, so phones tab in the order they show; on wide screens it stays
   after the menu, and where reading-flow is supported Tab follows that visual order too */
@media (min-width: 1281px) {
  header.site { reading-flow: flex-visual; }
}

/* Escape closed this dropdown; it opens again once the pointer and focus have left it */
.nav-item.is-closed .nav-drop {
  display: none;
}

.nav-item.is-closed .nav-caret {
  transform: none;
  opacity: 0.6;
}

/* revealed is the HTML default; under html.motion-ok, reveal.js marks what starts below the screen (.is-out) and
   only that waits for view. Wide screens reveal a group at once with a 120 ms stagger (--i from reveal.js);
   phones reveal each child on its own */
@media (prefers-reduced-motion: no-preference) {
  .motion-ok [data-reveal="group"].is-out:not(.is-in) > *,
  .motion-ok [data-reveal="group"] > .is-out:not(.is-in),
  .motion-ok [data-reveal="item"].is-out:not(.is-in) { opacity: 0; transform: translateY(16px); }
  /* anchor targets (#retail, #track-04) only fade, so a deep link or dropdown click lands where it did without motion */
  .motion-ok [data-reveal="group"].is-out:not(.is-in) > [id],
  .motion-ok [data-reveal="group"] > [id].is-out:not(.is-in),
  .motion-ok [data-reveal="item"][id].is-out:not(.is-in) { transform: none; }
  .motion-ok [data-reveal="group"].is-in > * { transition: opacity 500ms linear calc(var(--i, 0) * 120ms), transform 650ms var(--ease) calc(var(--i, 0) * 120ms), border-color 0.2s var(--ease); }
  .motion-ok [data-reveal="group"] > .is-in,
  .motion-ok [data-reveal="item"].is-in { transition: opacity 500ms linear, transform 650ms var(--ease), border-color 0.2s var(--ease); }
}

/* ==========================================================================
   Inner pages, Tur 8: case studies proof page. Seven cases as open ledger entries in the home proof language.
   ========================================================================== */

/* case studies: the former inline styles, one rule each */
section.block.case-study {
  padding-top: 28px;
}

.hero + section.block.case-study {
  padding-top: 24px;
}

.case-study .case-study__title {
  max-width: none;
  margin-bottom: 12px;
}

.case-study .case-study__split {
  margin-top: 18px;
  gap: 32px;
}

.case-study .case-study__subhead {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.case-study .case-study__list,
.case-study .case-study__metrics {
  border-top: 0;
  padding-top: 0;
}

.case-study .case-study__tags {
  margin-top: 16px;
}

/* case studies: open entries on the page, a hairline on top instead of a white panel */
.case-study > .practice-card {
  padding: clamp(28px, 3vw, 36px) 0 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--rule-2);
  border-radius: 0;
}

/* the hero already ends on a rule, so the first case carries none (as on phones) */
.hero + section.block.case-study > .practice-card {
  padding-top: 0;
  border-top: 0;
}

/* the brand is the visual title, under its sector line and above the result (the h2) */
.case-study .practice-card__top {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.case-study .practice-card__persona {
  font-size: clamp(1.5rem, 1rem + 1.25vw, 2rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}

/* metrics: ledger rows as on the home proof, value in mono beside what it means */
.case-study .case-study__metrics {
  display: block;
  margin-top: 0;
}

.case-study .case-metric {
  position: relative;
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
}

.case-study .case-metric::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--rule-2);
  transform-origin: left;
}

.case-study .case-metric b {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}

.case-study .case-metric span {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

/* one text link to the next step closes each case */
.case-study__next {
  margin-top: 22px;
}

@media (max-width: 760px) {
  .case-study .case-metric { grid-template-columns: 8rem minmax(0, 1fr); gap: 12px; padding: 10px 0; }
  .case-study .case-metric b { font-size: 0.88rem; white-space: normal; }
  .case-study .case-metric span { font-size: 0.875rem; line-height: 1.45; }
}

/* below the screen, each case draws its metric hairlines once, left to right, 120 ms apart; nothing else moves */
@media (prefers-reduced-motion: no-preference) {
  .motion-ok .case-study__metrics[data-reveal].is-out:not(.is-in) { opacity: 1; transform: none; }
  .motion-ok .case-study__metrics.is-out:not(.is-in) .case-metric::before { transform: scaleX(0); }
  .motion-ok .case-study__metrics.is-in .case-metric::before { transition: transform 600ms var(--ease); }
  .motion-ok .case-study__metrics.is-in .case-metric:nth-child(2)::before { transition-delay: 120ms; }
  .motion-ok .case-study__metrics.is-in .case-metric:nth-child(3)::before { transition-delay: 240ms; }
  .motion-ok .case-study__metrics.is-in .case-metric:nth-child(4)::before { transition-delay: 360ms; }
}

/* ==========================================================================
   Inner pages, Tur 8: peaks and repetition. One drawn moment each on PoC (#how steps), tokener (request path) and consultancy (two marker sweeps).
   ========================================================================== */

/* tokener request path: each direction is its own label over a drawn line with a head; wide screens run left to right */
.tk-arrow__out,
.tk-arrow__back {
  position: relative;
  display: block;
}

.tk-arrow__out {
  padding-bottom: 8px;
}

.tk-arrow__back {
  padding-top: 8px;
}

.tk-arrow__out::before,
.tk-arrow__back::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
}

.tk-arrow__out::before {
  bottom: 3px;
  transform-origin: left;
}

.tk-arrow__back::before {
  top: 3px;
  transform-origin: right;
}

.tk-arrow__out::after,
.tk-arrow__back::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 7px;
  background: currentColor;
}

.tk-arrow__out::after {
  right: -1px;
  bottom: 0;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.tk-arrow__back::after {
  left: -1px;
  top: 0;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

/* stacked (980 and below): the lines run down (request) and up (response) beside their labels */
@media (max-width: 980px) {
  .tk-arrow__out, .tk-arrow__back { padding: 8px 0 8px 14px; }
  .tk-arrow__out::before, .tk-arrow__back::before { top: 0; bottom: 0; left: 3px; right: auto; width: 1px; height: auto; }
  .tk-arrow__out::before { transform-origin: top; }
  .tk-arrow__back::before { transform-origin: bottom; }
  .tk-arrow__out::after, .tk-arrow__back::after { left: 0; right: auto; width: 7px; height: 6px; }
  .tk-arrow__out::after { top: auto; bottom: -1px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
  .tk-arrow__back::after { top: -1px; bottom: auto; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
}

/* consultancy: the home doctrine marker under two phrases; each phrase is two unbreakable halves, so it can wrap on a phone */
.sweep-mark > span {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.sweep-mark > span::before {
  content: "";
  position: absolute;
  inset: 0.08em -0.12em;
  z-index: -1;
  border-radius: 3px;
  background: rgba(127, 182, 228, 0.32);
  transform-origin: left;
}

@media (forced-colors: active) {
  .sweep-mark { background: Mark; color: MarkText; }
  .sweep-mark > span::before { display: none; }
  .tk-arrow__out::before, .tk-arrow__back::before, .tk-arrow__out::after, .tk-arrow__back::after { forced-color-adjust: none; background: CanvasText; }
  .step { border-top: 1px solid CanvasText; }
}

/* below the screen only: the step hairlines draw left to right, 180 ms apart (one by one on phones), the hex and the
   date line follow; the tokener path draws in request order, the five chips enter 120 ms apart, Bedrock fades in with the SigV4 line;
   the consultancy markers sweep once the phrase is in view. Text never waits */
@media (prefers-reduced-motion: no-preference) {
  .motion-ok .steps--draw[data-reveal].is-out:not(.is-in) > .step,
  .motion-ok .steps--draw[data-reveal] > .step.is-out:not(.is-in) { opacity: 1; transform: none; background-size: 0 1px; }
  .motion-ok .steps--draw.is-out:not(.is-in) > .step::after,
  .motion-ok .steps--draw > .step.is-out:not(.is-in)::after { opacity: 0; transform: scale(0.3); }
  .motion-ok .steps--draw.is-out:not(.is-in) > .step em,
  .motion-ok .steps--draw > .step.is-out:not(.is-in) em { opacity: 0; transform: translateY(6px); }
  .motion-ok .steps--draw.is-in > .step { --d: calc(var(--i, 0) * 180ms); }
  .motion-ok .steps--draw.is-in > .step,
  .motion-ok .steps--draw > .step.is-in { transition: background-size 500ms var(--ease) var(--d, 0ms); }
  .motion-ok .steps--draw.is-in > .step::after,
  .motion-ok .steps--draw > .step.is-in::after { transition: opacity 200ms linear calc(var(--d, 0ms) + 350ms), transform 400ms var(--ease) calc(var(--d, 0ms) + 350ms); }
  .motion-ok .steps--draw.is-in > .step em,
  .motion-ok .steps--draw > .step.is-in em { transition: opacity 400ms linear calc(var(--d, 0ms) + 450ms), transform 500ms var(--ease) calc(var(--d, 0ms) + 450ms); }

  .tk-arrow { --tk-off: scaleX(0); }
  .tk-node ol li:nth-child(2) { --k: 1; }
  .tk-node ol li:nth-child(3) { --k: 2; }
  .tk-node ol li:nth-child(4) { --k: 3; }
  .tk-node ol li:nth-child(5) { --k: 4; }
  .motion-ok .tk-arch[data-reveal].is-out:not(.is-in) > *,
  .motion-ok .tk-arch[data-reveal] > .is-out:not(.is-in) { opacity: 1; transform: none; }
  .motion-ok .tk-arch.is-out:not(.is-in) .tk-arrow > span::before,
  .motion-ok .tk-arch > .tk-arrow.is-out:not(.is-in) > span::before { transform: var(--tk-off); }
  .motion-ok .tk-arch.is-out:not(.is-in) .tk-arrow > span::after,
  .motion-ok .tk-arch > .tk-arrow.is-out:not(.is-in) > span::after { opacity: 0; }
  .motion-ok .tk-arch.is-out:not(.is-in) .tk-node ol li,
  .motion-ok .tk-arch > .tk-node.is-out:not(.is-in) ol li { opacity: 0; transform: translateY(6px); }
  .motion-ok .tk-arch[data-reveal].is-out:not(.is-in) > .tk-node:last-child,
  .motion-ok .tk-arch[data-reveal] > .tk-node:last-child.is-out:not(.is-in) { opacity: 0; }
  .motion-ok .tk-arch.is-in > .tk-arrow:nth-child(4) { --tk-d: 900ms; }
  .motion-ok .tk-arch.is-in .tk-arrow__back { --tk-d: 1100ms; }
  .motion-ok .tk-arch > .tk-arrow.is-in .tk-arrow__back { --tk-d: 450ms; }
  .motion-ok .tk-arch.is-in .tk-arrow > span::before,
  .motion-ok .tk-arch > .tk-arrow.is-in > span::before { transition: transform 400ms var(--ease) var(--tk-d, 0ms); }
  .motion-ok .tk-arch.is-in .tk-arrow > span::after,
  .motion-ok .tk-arch > .tk-arrow.is-in > span::after { transition: opacity 150ms linear calc(var(--tk-d, 0ms) + 350ms); }
  .motion-ok .tk-arch.is-in .tk-node ol li { transition: opacity 400ms linear calc(300ms + var(--k, 0) * 120ms), transform 500ms var(--ease) calc(300ms + var(--k, 0) * 120ms); }
  .motion-ok .tk-arch > .tk-node.is-in ol li { transition: opacity 400ms linear calc(150ms + var(--k, 0) * 120ms), transform 500ms var(--ease) calc(150ms + var(--k, 0) * 120ms); }
  .motion-ok .tk-arch.is-in > .tk-node:last-child { transition: opacity 500ms linear 900ms; }
  .motion-ok .tk-arch > .tk-node:last-child.is-in { transition: opacity 500ms linear; }

  .motion-ok .sweep-mark[data-reveal].is-out:not(.is-in) { opacity: 1; transform: none; }
  .motion-ok .sweep-mark.is-out:not(.is-in) > span::before { transform: scaleX(0); }
  .motion-ok .sweep-mark.is-in > span::before { transition: transform 500ms var(--ease) 300ms; }
  .motion-ok .sweep-mark.is-in > span + span::before { transition-delay: 700ms; }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 980px) {
  .tk-arrow { --tk-off: scaleY(0); }
}

/* ==========================================================================
   Inner pages, Tur 8: Fonts and leftovers. Article titles read in one tone instead of breaking mid-sentence.
   ========================================================================== */

/* the steel .grad split a single sentence in two; inside an article title it takes the title's ink */
.article-head h1 .grad {
  color: inherit;
}

/* Tur 9: the four cases the home page seals carry the same seal here. A seal on the first screen ships drawn
   (only .is-out, what reveal.js found below the screen, starts undrawn); one below the screen draws once as it comes in */
.case-study .practice-card__top .seal {
  margin: 4px 0 0;
}

@media (prefers-reduced-motion: no-preference) {
  .motion-ok .seal--case:not(.is-out) .seal__hex,
  .motion-ok .seal--case:not(.is-out) .seal__tick { stroke-dashoffset: 0; }
  .motion-ok .seal--case:not(.is-out)::before { opacity: 1; }
  .motion-ok .seal--case:not(.is-out) .seal__text { clip-path: inset(0); }
  .motion-ok .seal--case[data-reveal].is-out:not(.is-in) { opacity: 1; transform: none; }
  .motion-ok .seal--case.is-out.is-in .seal__hex { animation: seal-draw 600ms cubic-bezier(0.33, 1, 0.68, 1) 100ms forwards; }
  .motion-ok .seal--case.is-out.is-in .seal__tick { animation: seal-draw 300ms ease-out 650ms forwards; }
  .motion-ok .seal--case.is-out.is-in::before { opacity: 1; transition: opacity 300ms linear 800ms; }
  .motion-ok .seal--case.is-out.is-in .seal__text { clip-path: inset(0); transition: clip-path 420ms var(--ease) 800ms; }
  .motion-ok .seal--case.is-out.is-in::after { animation: seal-ring 800ms ease-out 950ms 1 forwards; }
  .motion-ok .seal--case.is-instant::before { transition: none !important; }
  .motion-ok .seal--case.is-instant::after { animation: none !important; }
}

/* phones: the same shorter timing as the home page seal */
@media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
  .motion-ok .seal--case.is-out.is-in .seal__hex { animation-duration: 420ms; animation-delay: 0ms; }
  .motion-ok .seal--case.is-out.is-in .seal__tick { animation-duration: 220ms; animation-delay: 380ms; }
  .motion-ok .seal--case.is-out.is-in::before { transition: opacity 240ms linear 380ms; }
  .motion-ok .seal--case.is-out.is-in .seal__text { transition: clip-path 320ms var(--ease) 420ms; }
  .motion-ok .seal--case.is-out.is-in::after { animation-duration: 600ms; animation-delay: 560ms; }
}

/* ==========================================================================
   Phones, Tur 10: touch targets. Small links and the header controls reach a 44px hit area; nothing drawn moves.
   ========================================================================== */
@media (max-width: 760px) {
  /* header: a transparent 44px hit area around the brand, the CTA and the burger; their drawn size and the header height stay */
  .brand,
  header.site .nav-cta,
  .nav-burger { position: relative; }
  .brand::before,
  header.site .nav-cta::before,
  .nav-burger::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 44px; margin-top: -22px; }
  .nav-burger::before { left: 50%; right: auto; width: 44px; margin-left: -22px; }

  /* text links: padding grows the hit box and an equal negative margin keeps the layout; inline links take the padding
     alone and sit above the text of a wrapped line; the mail and LinkedIn lines take a transparent hit area instead, so their ring stays text-sized */
  .head-row > .link { padding: 10px 0; margin: -10px 0; }
  .card > .link { padding-bottom: 8px; margin-bottom: -8px; }
  .crumbs a,
  .foot-bottom a,
  .contact-mail a,
  .card .contact-email a,
  .card .contact-email + p a { position: relative; }
  .foot-bottom a { padding: 14px 0; }
  .contact-mail a::after,
  .card .contact-email + p a::after { content: ""; position: absolute; left: 0; right: 0; top: -13px; bottom: -13px; }
  .card .contact-email a::after { content: ""; position: absolute; left: 0; right: 0; top: -9px; bottom: -9px; }

  /* hero ghost pairs: 14px apart, so the first reaches up to the button above and the second down into the free space below */
  .hero-island .cta-row .btn--ghost:has(+ .btn--ghost),
  .tk-hero .cta-row .btn--ghost:has(+ .btn--ghost) { padding: 18px 0 11px; margin: -14px 0 -7px; }
  .hero-island .cta-row .btn--ghost + .btn--ghost,
  .tk-hero .cta-row .btn--ghost + .btn--ghost { padding: 11px 0 16px; margin: -7px 0 -12px; }

  /* home reel: the case name keeps its focus ring; the hit area reaches into the space above the line below */
  .reel__link { position: relative; }
  .reel__link::after { content: ""; position: absolute; left: 0; right: 0; top: -6px; bottom: -10px; }
}

/* the narrowest phones (349px and below) wrap the CTA onto its own row right under the burger, so its hit area grows down into its own
   12px margin; the brand and the burger stay at their 39px row there, 44px holds from 350px up */
@media (max-width: 349px) {
  header.site .nav-cta::before { top: 0; margin-top: 0; }
}

/* ==========================================================================
   Articles, Tur 10: a reading line. One accent hairline on the sticky header's bottom edge, driven by the article's
   own view timeline (no script); it is full width when the article's end reaches the bottom of the screen.
   Without scroll-driven animations, without JS or under reduced motion it is not drawn at all.
   ========================================================================== */
@supports (animation-timeline: view()) {
  @keyframes read-line {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }

  @media (prefers-reduced-motion: no-preference) {
    html.motion-ok body:has(article.article) { timeline-scope: --article; }
    html.motion-ok article.article { view-timeline: --article block; view-timeline-inset: var(--hdr, 73px) 0px; }
    html.motion-ok body:has(article.article) .site-header-shell::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: -1px;
      height: 1px;
      background: var(--accent);
      transform: scaleX(0);
      transform-origin: left;
      pointer-events: none;
      animation: read-line auto linear both;
      animation-timeline: --article;
      animation-range: contain 0% contain 100%;
    }
    @media (forced-colors: active) {
      html.motion-ok body:has(article.article) .site-header-shell::after { display: none; }
    }
  }
}

/* Formations (inner pages): formations.js draws a per-page SVG in the box of the static ::after and hides the ::after;
   with JS off the ::after stays. Hero: accent on paper; band: ice on abyss, mirrored and smaller in the SVG itself;
   mid: one element of the shape in the free right gutter of a mid-page section, no static fallback */
.hero.has-formation::after,
.contact.has-formation::after,
.motion-ok .hero[data-formation]::after,
.motion-ok .contact[data-formation]::after { display: none; }
.contact[data-formation]::after { opacity: 0.75; }
.formation { position: absolute; aspect-ratio: 220 / 240; height: auto; overflow: hidden; pointer-events: none; }
.hero > .formation { z-index: -1; right: 0; top: clamp(40px, 6vw, 88px); width: min(30vw, 360px); color: var(--accent); --f-em: var(--signal); }
.contact > .formation { position: absolute; z-index: 0; right: clamp(-60px, -2vw, 0px); bottom: -40px; width: min(36vw, 380px); opacity: 0.75; color: var(--ice); --f-em: var(--ember); }
.motion-ok .contact[data-reveal].is-out > .formation { opacity: 0.75; transform: none; transition: none; }
@media (min-width: 1024px) { [data-formation-state="mid"].has-formation { position: relative; isolation: isolate; } }
[data-formation-state="mid"] > .formation { z-index: -1; right: 0; top: calc(var(--section) + 8px); width: clamp(150px, 13vw, 190px); color: var(--accent); --f-em: var(--signal); }
.case-study[data-formation-state="mid"] > .formation { top: 58px; }
.case-study[data-formation-state="mid"] > .formation .fk { stroke-width: 2.2; }
.formation .fe { stroke: var(--f-em); }
.formation .fk { stroke: var(--f-em); stroke-dasharray: none; stroke-width: 1.8; stroke-linejoin: round; }
.formation .fdot { fill: var(--f-em); stroke: none; }
.formation .fscan { stroke-dasharray: none; stroke-width: 0.6; }
.formation .ff { stroke-dasharray: 0.1 2.4; }
.formation .fx { fill: currentColor; stroke: none; }
.formation--line .fk { stroke: currentColor; }
.formation .fn,
.formation .fr { transform-box: fill-box; transform-origin: center; }
.formation.f-pre .fn { opacity: 0; }
.formation .fp { transition: transform 600ms cubic-bezier(0.33, 1, 0.68, 1); }
.formation.is-idle .fd { animation: f-drift var(--dur, 11s) ease-in-out var(--del, 0s) infinite; }
.formation.is-idle .fe { animation: f-ember 11s ease-in-out var(--edel, 0s) infinite; }
.formation.is-held .fd,
.formation.is-held .fe { animation-play-state: paused; }
.formation.is-static .fd,
.formation.is-static .fe { animation: none; }
.formation.is-static .fp { transition: none; transform: none; }
@keyframes f-drift { 0%, 100% { transform: none; } 50% { transform: translate(var(--dx, 0px), var(--dy, 0px)); } }
@keyframes f-ember { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.45; } }
@media (max-width: 1239px) { .hero > .formation { display: none; } }
@media (max-width: 1023px) { [data-formation-state="mid"] > .formation { display: none; } }
@media (max-width: 1180px) { .contact > .formation { width: min(26vw, 270px); right: -48px; } }
@media (max-width: 1023px) { .contact > .formation { width: min(20vw, 200px); } }
/* the reading line is tall: in the narrow article bands it sits smaller, below the copy */
@media (min-width: 1024px) { .contact > .formation--line { width: min(16vw, 230px); right: -40px; bottom: 8px; } }
/* on phones the band drawing would be a cropped corner fragment */
@media (max-width: 760px) { .contact > .formation { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .formation .fd, .formation .fe { animation: none !important; }
  .formation .fp { transition: none !important; transform: none !important; }
}
@media print {
  .formation .fd, .formation .fe { animation: none !important; }
  .formation .fp { transform: none !important; }
}
