/* 00-tokens.css */
/* Design tokens: the only place colour, type, space, radius, motion and layering are defined.
   Restyle the site by editing this file. Themes remap the semantic tokens per section. */

@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
/* Youth: the original DeepQ wordmark face, used only for the logo lockup.
   Commercial typeface; DeepQ's licence covers this site (confirmed by the user, 2026-10-23). */
@font-face {
  font-family: 'Youth';
  src: url('/fonts/Youth-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: block;
}
@font-face {
  font-family: 'Youth';
  src: url('/fonts/Youth-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: block;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/geist-mono.woff2') format('woff2');
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Palette */
  --ink-0: #03050a;
  --ink-1: #05080f;
  --ink-2: #0a1120;
  --ink-3: #111a2c;
  --ink-4: #1a2539;
  --paper-0: #f2f4f7;
  --paper-1: #e7ebf0;
  --paper-2: #d7dee7;
  --paper-ink: #0a1222;
  --paper-ink-2: #46546a;
  --paper-ink-3: #5d6a80;
  --mist-0: #e9eef5;
  --mist-1: #a7b4c6;
  --mist-2: #7d8ca3;
  --ice: #8fc8ff;
  --ice-soft: rgb(143 200 255 / 0.14);
  --ice-deep: #1f5f9e;
  --amber: #f2c879;
  --amber-soft: rgb(242 200 121 / 0.16);
  --amber-deep: #8a5d0c;
  --hair-dark: rgb(190 212 240 / 0.11);
  --hair-dark-strong: rgb(190 212 240 / 0.22);
  --hair-light: rgb(10 22 44 / 0.11);
  --hair-light-strong: rgb(10 22 44 / 0.22);

  /* Type */
  --font-display: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-brand: 'Youth', var(--font-sans);

  /* Type scale: every step reaches its maximum at 1440px wide and stops there. */
  --step--2: 0.75rem; /* 12px: the floor for any text */
  --step--1: clamp(0.8125rem, 0.7893rem + 0.0952vw, 0.875rem); /* 13 to 14px */
  --step-0: clamp(1rem, 0.9768rem + 0.0952vw, 1.0625rem); /* 16 to 17px, body */
  --step-1: clamp(1.094rem, 1.059rem + 0.1429vw, 1.1875rem); /* 17.5 to 19px, lede */
  --step-2: clamp(1.1875rem, 1.095rem + 0.381vw, 1.4375rem); /* 19 to 23px */
  --step-3: clamp(1.375rem, 1.189rem + 0.7619vw, 1.875rem); /* 22 to 30px, H3 */
  --step-4: clamp(1.625rem, 1.3rem + 1.333vw, 2.5rem); /* 26 to 40px, system names */
  --step-5: clamp(2rem, 1.489rem + 2.095vw, 3.375rem); /* 32 to 54px, H2 */
  --step-6: clamp(2.625rem, 1.789rem + 3.429vw, 4.875rem); /* 42 to 78px, H1 */

  --leading-display: 0.98;
  --leading-tight: 1.08;
  --leading-body: 1.6;
  --track-eyebrow: 0.14em;
  --track-display: -0.015em;

  /* Space: same rule, capped at 1440px */
  --space-3xs: clamp(0.25rem, 0.2268rem + 0.0952vw, 0.3125rem);
  --space-2xs: clamp(0.5rem, 0.4536rem + 0.1905vw, 0.625rem);
  --space-xs: clamp(0.75rem, 0.6804rem + 0.2857vw, 0.9375rem);
  --space-s: clamp(1rem, 0.9071rem + 0.381vw, 1.25rem);
  --space-m: clamp(1.375rem, 1.189rem + 0.7619vw, 1.875rem);
  --space-l: clamp(1.75rem, 1.471rem + 1.143vw, 2.5rem);
  --space-xl: clamp(2.25rem, 1.786rem + 1.905vw, 3.5rem);
  --space-2xl: clamp(3rem, 2.257rem + 3.048vw, 5rem);
  --space-3xl: clamp(3.75rem, 2.543rem + 4.952vw, 7rem);
  --section: clamp(4.5rem, 3.571rem + 3.81vw, 7rem); /* 72 to 112px */

  --gutter: clamp(1.25rem, 0.6rem + 2.667vw, 3rem);
  --wrap: 78rem;
  --measure: 60ch;
  --read-wrap: 46rem; /* an article with no contents list: one centred reading column */
  --card-min: 17rem; /* narrowest a card gets before the row wraps */

  /* Shape */
  --radius-s: 0.5rem;
  --radius-m: 0.875rem;
  --radius-l: 1.5rem;
  --radius-xl: clamp(1.25rem, 1.064rem + 0.7619vw, 1.75rem);
  --radius-pill: 999px;
  --tap: 44px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-fast: 0.22s;
  --dur-base: 0.5s;
  --dur-slow: 0.95s;
  --dur-reveal: 0.8s;

  /* Layers */
  --z-raised: 1;
  --z-header: 50;
  --z-progress: 55;
  --z-menu: 60;
  --z-skip: 80;

  /* Header height, used for sticky offsets */
  --header-h: 4.5rem;
}

/* Semantic tokens per theme. Sections set data-theme; everything inside reads these. */
:root,
[data-theme='dark'] {
  --bg: var(--ink-1);
  --bg-raised: var(--ink-2);
  --bg-raised-2: var(--ink-3);
  --fg: var(--mist-0);
  --fg-2: var(--mist-1);
  --fg-3: var(--mist-2);
  --accent: var(--ice);
  --accent-soft: var(--ice-soft);
  --future: var(--amber);
  --future-soft: var(--amber-soft);
  --hair: var(--hair-dark);
  --hair-strong: var(--hair-dark-strong);
  --btn-bg: var(--mist-0);
  --btn-fg: var(--ink-1);
  --shell: rgb(255 255 255 / 0.035);
  --highlight: inset 0 1px 0 rgb(255 255 255 / 0.07);
}

[data-theme='light'] {
  --bg: var(--paper-0);
  --bg-raised: #fff;
  --bg-raised-2: var(--paper-1);
  --fg: var(--paper-ink);
  --fg-2: var(--paper-ink-2);
  --fg-3: var(--paper-ink-3);
  --accent: var(--ice-deep);
  --accent-soft: rgb(31 95 158 / 0.1);
  --future: var(--amber-deep);
  --future-soft: rgb(138 93 12 / 0.1);
  --hair: var(--hair-light);
  --hair-strong: var(--hair-light-strong);
  --btn-bg: var(--paper-ink);
  --btn-fg: var(--paper-0);
  --shell: rgb(10 22 44 / 0.035);
  --highlight: inset 0 1px 0 rgb(255 255 255 / 0.9);
}

/* 10-base.css */
/* Base: reset, typography, layout primitives and the components every page shares. */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-s));
  background: var(--ink-1);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--ink-1);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  top: var(--space-s);
  left: var(--space-s);
  z-index: var(--z-skip);
  padding: var(--space-2xs) var(--space-s);
  border-radius: var(--radius-s);
  background: var(--mist-0);
  color: var(--ink-1);
  transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip:focus-visible {
  transform: none;
}

/* ---- Layout -------------------------------------------------------------- */

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

[data-theme] {
  background: var(--bg);
  color: var(--fg);
}

section[data-theme] {
  position: relative;
  padding-block: var(--section);
}

/* Consecutive dark sections share one background: a hairline separates them instead of a second gap. */
section[data-theme='dark'] + section[data-theme='dark'] {
  border-top: 1px solid var(--hair);
}

/* Light sections arrive as a sheet laid over the dark page. */
[data-theme='dark'] + [data-theme='light'],
[data-theme='light'] + [data-theme='dark'] {
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: calc(-1 * var(--radius-xl));
  z-index: var(--z-raised);
}

/* ---- Type ---------------------------------------------------------------- */

.section-head {
  display: grid;
  gap: var(--space-s);
  max-width: 46rem;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-5);
  line-height: var(--leading-tight);
  letter-spacing: var(--track-display);
  text-wrap: balance;
}

.section-lede,
.body-l {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: var(--measure);
  text-wrap: pretty;
}

.fineprint {
  font-size: var(--step--1);
  color: var(--fg-3);
  line-height: 1.5;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: var(--tap);
  font-weight: 500;
  color: var(--fg);
  transition: color var(--dur-fast);
}
.text-link .arrow {
  transition: transform var(--dur-base) var(--ease-out);
}
.text-link:hover {
  color: var(--accent);
}
.text-link:hover .arrow {
  transform: translateX(3px);
}

/* ---- Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: var(--tap);
  padding: 0 1.3rem;
  border-radius: var(--radius-s);
  font-size: var(--step--1);
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.btn .arrow {
  transition: transform var(--dur-base) var(--ease-out);
}
.btn:hover .arrow {
  transform: translateX(2px);
}
.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}
.btn--primary:hover {
  background: var(--accent);
  color: var(--ink-1);
}
.btn--ghost {
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--hair-strong);
}
.btn--ghost:hover {
  box-shadow: inset 0 0 0 1px var(--fg-2);
}
.btn--sm {
  min-height: 2.5rem;
  padding: 0 1rem;
}

/* ---- Brand lockup ------------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--tap);
  color: var(--mist-0);
}
.brand__mark {
  width: 1.75rem;
}
.brand__mark svg {
  width: 100%;
  height: auto;
}
.brand__word {
  font-family: var(--font-brand);
  font-size: var(--step-1);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.brand__word span {
  font-weight: 300;
  color: var(--ice);
}

/* The header mark draws its learned route once on load. */
.js .mark.is-animated .mark__route {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: route-draw 1.4s var(--ease-out) 0.4s forwards;
}
.js .mark.is-animated .mark__lit {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: lit-in 0.6s var(--ease-spring) 1.3s forwards;
}
@keyframes route-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes lit-in {
  to {
    transform: scale(1);
  }
}

/* ---- Header -------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  transition: transform var(--dur-slow) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.site-header.is-solid {
  background: rgb(5 8 15 / 0.82);
  box-shadow: 0 1px 0 var(--hair-dark);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--space-l);
  width: min(100% - 2 * var(--gutter), var(--wrap));
  height: var(--header-h);
  margin-inline: auto;
  color: var(--mist-0);
}
.site-header .brand {
  margin-right: auto;
}

.site-nav ul {
  display: flex;
  gap: var(--space-m);
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-size: var(--step--1);
  color: var(--mist-1);
  transition: color var(--dur-fast);
}
.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--mist-0);
}
.site-header__cta {
  color: var(--mist-0);
}

.menu-toggle {
  display: none;
  width: var(--tap);
  height: var(--tap);
  margin-right: -0.6rem;
}
.menu-toggle__lines {
  position: relative;
  display: block;
  width: 1.2rem;
  height: 0.6rem;
  margin: auto;
}
.menu-toggle__lines i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-out), top var(--dur-base) var(--ease-out);
}
.menu-toggle__lines i:first-child {
  top: 0;
}
.menu-toggle__lines i:last-child {
  top: calc(100% - 1.5px);
}
.menu-open .menu-toggle__lines i:first-child {
  top: calc(50% - 0.75px);
  transform: rotate(45deg);
}
.menu-open .menu-toggle__lines i:last-child {
  top: calc(50% - 0.75px);
  transform: rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: grid;
  align-content: center;
  gap: var(--space-2xl);
  padding: calc(var(--header-h) + var(--space-l)) var(--gutter) var(--space-l);
  background: var(--ink-1);
  color: var(--mist-0);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.menu[hidden] {
  display: none;
}
.menu.is-open {
  opacity: 1;
}
.menu__list {
  display: grid;
  gap: var(--space-2xs);
}
.menu__list li {
  overflow: hidden;
}
.menu__list a {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-5);
  line-height: 1.15;
  transform: translateY(105%);
  transition: transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i) * 45ms + 60ms);
}
.menu.is-open .menu__list a {
  transform: none;
}
.menu__foot {
  display: grid;
  gap: var(--space-2xs);
  font-size: var(--step--1);
  color: var(--mist-1);
  white-space: nowrap;
}
.menu-open .site-header {
  z-index: calc(var(--z-menu) + 1);
}

@media (max-width: 60rem) {
  .site-nav,
  .site-header__cta {
    display: none;
  }
  .menu-toggle {
    display: grid;
  }
}

/* ---- Reveal ---------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 1rem, 0);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.w {
  display: inline-block;
  overflow: clip;
  overflow-clip-margin: 0.15em;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.w > span {
  display: inline-block;
}
.js [data-split] .w > span {
  transform: translate3d(0, 105%, 0);
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--wi, 0) * 40ms + 0.1s);
}
.js [data-split].is-in .w > span {
  transform: none;
}
.js [data-hero-in] {
  opacity: 0;
  transition: opacity 0.9s var(--ease-out) 0.45s;
}
.js.is-loaded [data-hero-in] {
  opacity: 1;
}

/* ---- Breadcrumbs ---------------------------------------------------------------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  /* Links grow to the tap height on touch screens; centring keeps every item on one line. */
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-l);
  font-size: var(--step--1);
  color: var(--fg-3);
}
.crumbs a:hover {
  color: var(--fg);
}

/* Touch screens: small inline links get a full-size hit area without looking bigger. */
@media (pointer: coarse) {
  .crumbs a,
  .post__toc a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
  }
  .crumbs {
    margin-block: calc((44px - 1.5em) / -2);
  }
}

/* ---- Q&A ------------------------------------------------------------------------ */

.faq-section__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: var(--space-l) var(--space-3xl);
  align-items: start;
}
.faq-section .section-head {
  margin-bottom: 0;
}
.faq-section--wide .section-head {
  margin-bottom: var(--space-l);
}
.faq-section--wide .faq__q {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.2;
}
.faq-section--wide .faq__a {
  max-width: 62ch;
}
.faq {
  border-top: 1px solid var(--hair-strong);
}
.faq__item {
  border-bottom: 1px solid var(--hair-strong);
}
.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-m);
  min-height: var(--tap);
  padding-block: var(--space-s);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__q {
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.35;
  transition: color var(--dur-fast);
}
.faq__item summary:hover .faq__q {
  color: var(--accent);
}
.faq__icon {
  position: relative;
  flex: none;
  width: 1rem;
  height: 1rem;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  translate: 0 -50%;
  transition: rotate var(--dur-base) var(--ease-out);
}
.faq__icon::after {
  rotate: 90deg;
}
.faq__item[open] .faq__icon::after {
  rotate: 0deg;
}
.faq__a {
  padding-bottom: var(--space-m);
  max-width: var(--measure);
  color: var(--fg-2);
}

/* ---- Footer ---------------------------------------------------------------------- */

.site-footer {
  padding-block: var(--space-xl) var(--space-l);
  border-top: 1px solid var(--hair);
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding-bottom: var(--space-l);
}
.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem var(--space-m);
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-size: var(--step--1);
  color: var(--fg-2);
}
.site-footer nav a:hover {
  color: var(--fg);
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-s) var(--space-xl);
  padding-top: var(--space-m);
  border-top: 1px solid var(--hair);
  font-size: var(--step--2);
  color: var(--fg-3);
}
.site-footer__legal p:last-child {
  max-width: 60ch;
}

/* ---- Reduced motion: keep every state, drop the travel ----------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal],
  .js [data-hero-in],
  .js [data-split] .w > span {
    opacity: 1;
    transform: none;
  }
}

/* 20-home.css */
/* Home page sections, in page order. */

/* ---- Hero -------------------------------------------------------------------- */

section.hero {
  --now-x: 56%;
  --hinge-gap: clamp(0.9rem, 0.6rem + 1.2vw, 1.75rem);
  /* The first screen belongs to the hero: at least one screen tall, taller if the copy needs it.
     Rows: field above, the hinge headline, the intro, field below, the way down. */
  display: grid;
  grid-template-columns: var(--now-x) 1fr;
  grid-template-rows: minmax(calc(var(--header-h) + var(--space-2xl)), 2.6fr) auto auto 0.3fr auto;
  min-height: 100svh;
  padding-block: 0;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(60% 55% at 60% 40%, rgb(46 92 160 / 0.16), transparent 70%), var(--ink-0);
}
.hero__field {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.8s var(--ease-out);
}
.hero__field.is-ready {
  opacity: 1;
}
/* A quiet band behind the type and a fade at the foot; the field stays open everywhere else. */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgb(3 5 10 / 0.75) 0, transparent calc(var(--header-h) + 3rem)),
    radial-gradient(75% 26% at var(--now-x) 72%, rgb(3 5 10 / 0.72), transparent 75%),
    linear-gradient(to top, var(--ink-0) 0%, rgb(3 5 10 / 0.75) 20%, transparent 48%);
  pointer-events: none;
}
.hero__now {
  position: absolute;
  z-index: -1;
  top: calc(var(--header-h) + var(--space-l));
  bottom: calc(var(--space-l) + 2.6rem);
  left: var(--now-x);
  border-left: 1px dashed rgb(233 238 245 / 0.32);
  transform-origin: top;
  pointer-events: none;
}
.hero__title {
  grid-row: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: end;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-6);
  line-height: var(--leading-display);
  letter-spacing: var(--track-display);
}
.hero__past {
  justify-self: end;
  padding: 0 var(--hinge-gap) 0 var(--gutter);
  text-align: right;
  text-wrap: balance;
}
.hero__future {
  justify-self: start;
  padding: 0 var(--gutter) 0 var(--hinge-gap);
  font-style: italic;
  color: var(--amber);
}
.hero__after {
  grid-row: 3;
  grid-column: 2;
  display: grid;
  gap: var(--space-m);
  justify-items: start;
  padding: var(--space-m) var(--gutter) 0 var(--hinge-gap);
}
.hero__lede {
  max-width: 34ch;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--fg-2);
  text-wrap: pretty;
}
.hero__down {
  grid-row: 5;
  grid-column: 1 / -1;
  justify-self: start;
  margin-left: var(--now-x);
  translate: -50% 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-height: var(--tap);
  padding-bottom: var(--space-l);
  font-size: var(--step--1);
  color: var(--fg-2);
  transition: color var(--dur-fast);
}
.hero__down:hover {
  color: var(--fg);
}
.hero__down .arrow {
  transition: transform var(--dur-base) var(--ease-out);
}
.hero__down:hover .arrow {
  transform: translateY(3px);
}

/* Entrance: the line draws down, the past wipes out from the line, then the future does. */
.js .hero__now {
  transform: scaleY(0);
  transition: transform 1.1s var(--ease-out) 0.2s;
}
.js .hero__past {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.1s var(--ease-out) 0.55s;
}
.js .hero__future {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease-out) 0.8s;
}
.js .hero__after,
.js .hero__down {
  opacity: 0;
  transition: opacity 0.9s var(--ease-out) 1.25s;
}
.js.is-loaded .hero__now {
  transform: none;
}
.js.is-loaded .hero__past,
.js.is-loaded .hero__future {
  clip-path: inset(0 -0.2em);
}
.js.is-loaded .hero__after,
.js.is-loaded .hero__down {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .js .hero__now,
  .js .hero__past,
  .js .hero__future {
    transform: none;
    clip-path: none;
  }
  .js .hero__after,
  .js .hero__down {
    opacity: 1;
  }
}

/* Phones: the field fills the top; the hinge sits below it, the intro runs full width. */
@media (max-width: 48rem) {
  section.hero {
    grid-template-rows: minmax(calc(var(--header-h) + 48vw), 1fr) auto auto auto;
  }
  .hero__veil {
    background: linear-gradient(to top, var(--ink-0) 0%, rgb(3 5 10 / 0.9) 40%, transparent 62%);
  }
  .hero__now {
    bottom: auto;
    height: calc(var(--header-h) + 48vw + 4.5rem);
  }
  .hero__after {
    grid-column: 1 / -1;
    padding: var(--space-m) var(--gutter) 0;
  }
  .hero__down {
    grid-row: 4;
    margin-left: var(--gutter);
    translate: none;
    flex-direction: row;
    padding-block: var(--space-m) var(--space-l);
  }
}

/* ---- What we build ---------------------------------------------------------------
   Default (phones, short screens, no JS): each chapter shows its figure above its text.
   Theatre (wide screens, JS): figures move into one full-screen stage; the text scrolls over it. */

.build {
  padding-bottom: var(--section);
}
.build .section-head {
  margin-bottom: var(--space-l);
}
.bstage,
.bchrome {
  display: none;
}
.bstep {
  display: grid;
  gap: var(--space-m);
  padding-block: var(--space-xl);
  border-top: 1px solid var(--hair);
  scroll-margin-top: var(--header-h);
}
.bstep__text {
  display: grid;
  gap: var(--space-xs);
  align-content: start;
}
.bstep__role {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: var(--step--1);
  color: var(--fg-2);
}
.bstep__num {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.bstep__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-5);
  line-height: var(--leading-tight);
}
.bstep__lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--fg);
  max-width: 44ch;
  text-wrap: pretty;
}
.bstep__body {
  color: var(--fg-2);
  max-width: 50ch;
  text-wrap: pretty;
}
.stage__panel {
  position: relative;
  aspect-ratio: 5 / 4;
}
.stage__panel > svg,
.scene,
.scene canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---- Theatre ---- */
/* Three layers share the screen: the stage (figures), the chapters scrolling over it, and the
   chrome (running head, note, index) above both. Stage and chrome are pinned for the theatre's length. */
.is-theatre .build__theatre {
  display: grid;
}
.is-theatre .bstage,
.is-theatre .bchrome,
.is-theatre .build__steps {
  grid-area: 1 / 1;
}
.is-theatre .bstage,
.is-theatre .bchrome {
  position: sticky;
  top: 0;
  display: block;
  height: 100svh;
  align-self: start;
}
.is-theatre .bstage {
  z-index: 0;
}
.is-theatre .bchrome {
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--ink-1) calc(var(--header-h) + var(--space-l)), transparent calc(var(--header-h) + var(--space-2xl) + 1rem)),
    linear-gradient(to top, var(--ink-1) calc(var(--space-l) + 3.25rem), transparent calc(var(--space-2xl) + 5rem));
}
.is-theatre .bchrome a {
  pointer-events: auto;
}
/* The figure takes the half opposite its chapter's text, so both are fully visible. */
.is-theatre .bstage__panels {
  position: absolute;
  inset: calc(var(--header-h) + var(--space-2xl)) max(var(--gutter), (100% - var(--wrap)) / 2) calc(var(--space-2xl) + 3rem);
}
.is-theatre .bstage__panels .stage__panel {
  position: absolute;
  inset: 0 0 0 46%;
  aspect-ratio: auto;
  opacity: 0;
  transform: scale(0.9);
  transform-origin: var(--ox, 50%) 110%;
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
}
.is-theatre .bstage__panels .stage__panel[data-side='left'] {
  inset: 0 46% 0 0;
}
.is-theatre .bstage__panels .stage__panel.is-active {
  opacity: 1;
  transform: none;
}
.bstage__head {
  position: absolute;
  top: calc(var(--header-h) + var(--space-s));
  left: max(var(--gutter), (100% - var(--wrap)) / 2);
  font-size: var(--step--1);
  color: var(--fg-3);
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.bstage__head span {
  margin-inline: 0.35em;
}
.bstage__head b {
  font-weight: 500;
  color: var(--fg);
}
.bstage__note {
  position: absolute;
  top: calc(var(--header-h) + var(--space-s));
  right: max(var(--gutter), (100% - var(--wrap)) / 2);
  font-size: var(--step--2);
  color: var(--fg-3);
}
.build.is-past-head .bstage__head {
  opacity: 1;
  transform: none;
}
.bstage__index {
  position: absolute;
  left: max(var(--gutter), (100% - var(--wrap)) / 2);
  right: max(var(--gutter), (100% - var(--wrap)) / 2);
  bottom: var(--space-l);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.build.is-systems .bstage__index {
  opacity: 1;
}
.bstage__index ol {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--hair-strong);
}
.bstage__index a {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: var(--tap);
  padding-top: var(--space-s);
  font-size: var(--step--1);
  color: var(--fg-3);
  transition: color var(--dur-fast);
}
.bstage__index a::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--ink-1);
  box-shadow: inset 0 0 0 1px var(--fg-3);
  transition: background-color var(--dur-base), box-shadow var(--dur-base);
}
.bstage__index a.is-past::before {
  background: var(--fg-3);
}
.bstage__index a[aria-current] {
  color: var(--fg);
}
.bstage__index a[aria-current]::before {
  background: var(--ice);
  box-shadow: 0 0 0 4px rgb(143 200 255 / 0.18);
}
.bstage__index a:hover {
  color: var(--fg);
}
.is-theatre .build__steps {
  position: relative;
  z-index: 1;
}
.is-theatre .bstep {
  display: flex;
  justify-content: flex-start;
  padding-block: 32svh;
  border-top: 0;
  pointer-events: none;
}
.is-theatre .bstep[data-align='end'] {
  justify-content: flex-end;
}
.is-theatre .bstep__text {
  max-width: min(30rem, 42%);
  pointer-events: auto;
}
/* The usual way: text and figure scroll in together and the text settles mid-screen beside it. */
/* ---- Compact theatre (phones): the figure is pinned under the header, text scrolls below it ---- */
.is-compact .bstage {
  top: var(--header-h);
  z-index: 3;
  height: 44svh;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--hair);
}
.is-compact .bchrome {
  display: none;
}
.is-compact .bstage__panels {
  inset: var(--space-s) var(--gutter);
}
.is-compact .bstage__panels .stage__panel,
.is-compact .bstage__panels .stage__panel[data-side='left'] {
  inset: 0;
}
.is-compact .bstep,
.is-compact .bstep[data-align='end'] {
  justify-content: flex-start;
  padding-block: 10svh 30svh;
}
.is-compact .bstep__text {
  max-width: none;
}
.is-compact .bstep__name {
  font-size: var(--step-4);
}

.is-theatre .bstep:first-child {
  padding-block: 30svh 40svh;
}

.is-theatre.is-compact .bstep:first-child {
  padding-block: calc(44svh + var(--space-xl)) 30svh;
}

/* The usual way: twelve teams stitched into an ensemble. */
.pods {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.pod__wire {
  fill: none;
  stroke: var(--hair-strong);
}
.pod__box {
  fill: var(--ink-3);
  stroke: var(--hair-strong);
}
.pod__people circle,
.pod__people rect {
  fill: var(--mist-2);
}
.pod__label {
  font-family: var(--font-sans);
  font-size: 11px;
  fill: var(--fg-3);
}
.pod__label--strong {
  font-size: 12px;
  fill: var(--fg);
}
.ensemble {
  fill: var(--ice);
}
.pod {
  cursor: default;
}
.pod__box,
.pod__wire,
.pod__label,
.pod__people circle,
.pod__people rect {
  transition: stroke var(--dur-base) var(--ease-out), fill var(--dur-base) var(--ease-out);
}
.pod.is-on .pod__box {
  stroke: var(--ice);
  fill: var(--ink-4);
}
.pod.is-on .pod__people circle,
.pod.is-on .pod__people rect {
  fill: var(--mist-0);
}
.pod.is-on .pod__wire {
  stroke: rgb(143 200 255 / 0.4);
}
.pod.is-on .pod__label {
  fill: var(--fg-2);
}
.pod:hover .pod__wire {
  stroke: var(--ice);
  stroke-width: 1.5;
}
.pod:hover .pod__label {
  fill: var(--fg);
}
.pod-pulse {
  fill: var(--ice);
}
.pods__count {
  font-family: var(--font-sans);
  font-size: 13px;
  fill: var(--fg-2);
}
.pods__count [data-teams] {
  font-family: var(--font-display);
  font-size: 22px;
  fill: var(--fg);
}

/* How the systems connect. */
.connect {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-3xl);
  align-items: center;
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--hair);
}
.connect__copy {
  display: grid;
  gap: var(--space-s);
  color: var(--fg-2);
  max-width: 50ch;
}
.connect__copy strong {
  color: var(--fg);
  font-weight: 500;
}
.connect__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-4);
  line-height: var(--leading-tight);
  color: var(--fg);
}
.connect__visual {
  max-width: 34rem;
  justify-self: center;
  width: 100%;
}
@media (max-width: 60rem) {
  .connect {
    grid-template-columns: minmax(0, 1fr);
  }
}
.loops {
  width: 100%;
  height: auto;
  overflow: visible;
}
.loops__orbit {
  fill: none;
  stroke-width: 1;
}
.loops__orbit--inner {
  stroke: rgb(143 200 255 / 0.45);
}
.loops__orbit--outer {
  stroke: rgb(233 238 245 / 0.22);
  stroke-dasharray: 3 7;
}
.loops__bridge {
  stroke: rgb(233 238 245 / 0.3);
  stroke-dasharray: 2 5;
}
.loop-node circle {
  fill: var(--ink-1);
  stroke: var(--ice);
  stroke-width: 1.5;
}
.loop-node--research circle,
.loop-node--gate rect {
  fill: var(--ink-1);
  stroke: var(--mist-0);
  stroke-width: 1.5;
}
.loop-node text {
  font-family: var(--font-sans);
}
.loop-node__name {
  font-size: 20px;
  fill: var(--fg);
}
.loop-node__note {
  font-size: 14px;
  fill: var(--fg-3);
}

/* ---- Bands: Build with us (home) and the platform closing call ----------------- */

.band {
  background: radial-gradient(60% 120% at 100% 0%, rgb(46 92 160 / 0.14), transparent 70%), var(--ink-0);
}
.band__inner {
  display: grid;
  gap: var(--space-m);
  justify-items: start;
  max-width: 46rem;
  margin-inline: max(var(--gutter), (100% - var(--wrap)) / 2);
}

/* ---- About and team (light) --------------------------------------------------------- */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: var(--spans, repeat(3, 1fr));
  gap: var(--space-l);
  padding-top: var(--space-l);
}
.timeline::before {
  /* the axis */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hair-strong);
}
.timeline__item {
  position: relative;
  display: grid;
  gap: var(--space-2xs);
  align-content: start;
  max-width: 34ch;
  color: var(--fg-2);
}
.timeline__item::before {
  /* the year's mark on the axis */
  content: '';
  position: absolute;
  top: calc(-1 * var(--space-l) - 4px);
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fg);
}
.timeline__when {
  font-family: var(--font-display);
  font-size: var(--step-5);
  line-height: 1;
  color: var(--fg);
  font-variant-numeric: lining-nums;
}
.timeline__title {
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.35;
  color: var(--fg);
}
@media (max-width: 52rem) {
  .timeline {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 0;
    padding-left: var(--space-l);
  }
  .timeline::before {
    top: 0;
    bottom: 0;
    right: auto;
    width: 1px;
    height: auto;
  }
  .timeline__item::before {
    top: 0.6em;
    left: calc(-1 * var(--space-l) - 4px);
  }
}
.about__name {
  margin-top: var(--space-l);
  font-size: var(--step--1);
  color: var(--fg-3);
}

.team {
  margin-top: var(--space-2xl);
  scroll-margin-top: calc(var(--header-h) + var(--space-l));
}
.team__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-4);
  margin-bottom: var(--space-l);
}
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--space-xl) var(--space-l);
}
/* Each card is a column as tall as the row; the LinkedIn link sits on the bottom edge,
   so the links line up across cards whatever the bio length. */
.person {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}
.person__photo {
  width: 100%;
  max-width: 16rem;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 100%;
  margin-bottom: var(--space-s);
  border-radius: var(--radius-m);
  background: var(--paper-1);
  filter: grayscale(1) contrast(1.04);
}
@media (max-width: 48rem) {
  /* Phones: each person is centred, portrait over name, title, background and link. */
  .person {
    align-items: center;
    text-align: center;
  }
  .person__photo {
    max-width: 10rem;
  }
  .person__bio {
    margin-inline: auto;
  }
  .person .person__link {
    align-self: center;
  }
  .team__title {
    text-align: center;
  }
}
.person__name {
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.25;
}
.person__title {
  font-size: var(--step--1);
  color: var(--accent);
}
.person__bio {
  margin-top: var(--space-2xs);
  font-size: var(--step--1);
  color: var(--fg-2);
  max-width: 38ch;
}
.person__link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: var(--space-xs);
  display: inline-flex;
  align-items: center;
  /* the tap floor plus a hair, so sub-pixel layout never lands under 44px */
  min-height: calc(var(--tap) + 2px);
  font-size: var(--step--1);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--hair-strong);
  text-underline-offset: 0.25em;
}
.person__link:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

/* ---- Strategy ------------------------------------------------------------------------ */

.strategy__label {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--fg-3);
  margin-bottom: var(--space-m);
}
.strategy__quote {
  max-width: 24ch;
  margin-bottom: var(--space-2xl);
  font-family: var(--font-display);
  font-size: var(--step-5);
  line-height: var(--leading-tight);
  letter-spacing: var(--track-display);
  text-wrap: balance;
}
.strategy__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: var(--space-l) var(--space-3xl);
  padding-top: var(--space-l);
  border-top: 1px solid var(--hair-strong);
}
.strategy__investors {
  display: grid;
  gap: var(--space-xs);
  justify-items: start;
  align-content: start;
  color: var(--fg-2);
}
.strategy__investors-title {
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--fg);
}

/* ---- Notes ------------------------------------------------------------------------- */

.notes__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-s);
  margin-bottom: var(--space-l);
}
.notes__head .section-head {
  margin-bottom: 0;
}
.post-list {
  border-top: 1px solid var(--hair-strong);
}
.post-row a {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--space-2xs) var(--space-l);
  align-items: baseline;
  padding-block: var(--space-m);
  border-bottom: 1px solid var(--hair-strong);
}
.post-row time {
  font-size: var(--step--1);
  color: var(--fg-3);
}
.post-row__title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.2;
  text-wrap: balance;
  transition: color var(--dur-fast);
}
.post-row__desc {
  font-size: var(--step--1);
  color: var(--fg-2);
}
.post-row a:hover .post-row__title {
  color: var(--accent);
}
@media (max-width: 56rem) {
  .post-row a {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Cards (Market notes on the home page): one row of --cards (set by the page from the collection's
   home limit, so a lone card keeps its width), fewer as the screen narrows. */
.entry-cards {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: repeat(
    auto-fill,
    minmax(max(var(--card-min), calc((100% - (var(--cards) - 1) * var(--space-m)) / var(--cards))), 1fr)
  );
}
.entry-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: var(--radius-m);
  background: var(--bg-raised);
  transition: border-color var(--dur-fast);
}
.entry-card a:hover {
  border-color: var(--hair-strong);
}
.entry-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}
.entry-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--space-2xs);
  padding: var(--space-s);
}
.entry-card time {
  font-size: var(--step--1);
  color: var(--fg-3);
}
.entry-card__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.2;
  text-wrap: balance;
  transition: color var(--dur-fast);
}
.entry-card__desc {
  font-size: var(--step--1);
  color: var(--fg-2);
}
.entry-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: auto;
  padding-top: var(--space-2xs);
  font-weight: 500;
}
.entry-card__more .arrow {
  transition: transform var(--dur-base) var(--ease-out);
}
.entry-card a:hover .entry-card__title {
  color: var(--accent);
}
.entry-card a:hover .entry-card__more .arrow {
  transform: translateX(3px);
}

/* ---- Contact -------------------------------------------------------------------- */

.contact__list {
  border-top: 1px solid var(--hair-strong);
}
.contact__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--space-2xs) var(--space-l);
  padding-block: var(--space-m);
  border-bottom: 1px solid var(--hair-strong);
}
.contact__label {
  color: var(--fg-2);
}
.contact__email {
  font-family: var(--font-display);
  font-size: min(var(--step-4), 7vw);
  line-height: 1.1;
  white-space: nowrap;
  transition: color var(--dur-fast);
}
.contact__row:hover .contact__email {
  color: var(--accent);
}
.contact__policy {
  margin-top: var(--space-m);
  max-width: var(--measure);
  font-size: var(--step--1);
  color: var(--fg-3);
}
@media (max-width: 48rem) {
  .contact__row {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact__email {
    font-size: min(var(--step-3), 7.4vw);
  }
}

/* 30-pages.css */
/* Platform page, Notes and Market notes (index and articles) and 404. */

.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-6);
  line-height: var(--leading-display);
  letter-spacing: var(--track-display);
  text-wrap: balance;
}

/* ---- Platform hero with the exploded stack ------------------------------------- */

section.p-hero {
  padding-top: calc(var(--header-h) + var(--space-2xl));
  overflow: hidden;
  background: radial-gradient(55% 60% at 80% 40%, rgb(46 92 160 / 0.16), transparent 70%), var(--ink-0);
}
.p-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--space-2xl);
  align-items: center;
}
.p-hero__copy {
  display: grid;
  gap: var(--space-m);
  justify-items: start;
}
.p-hero__copy .crumbs {
  margin-bottom: 0;
}
.p-hero .page-title {
  font-size: var(--step-5);
  max-width: 18ch;
}
@media (max-width: 60rem) {
  .p-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.stack3d {
  --plate-gap: clamp(1.8rem, 1.2rem + 2vw, 2.9rem);
  position: relative;
  width: min(100%, 28rem);
  aspect-ratio: 1;
  margin-inline: auto;
  perspective: 1600px;
}
.stack3d__plate,
.stack3d__base {
  position: absolute;
  left: 14%;
  top: 34%;
  width: 72%;
  aspect-ratio: 1.6;
  display: grid;
  align-content: start;
  gap: 0.15rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-s);
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-40deg) translateZ(calc(var(--i, 0) * var(--plate-gap) + var(--lift, 0px)));
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-base);
  transition-delay: calc(var(--i) * 70ms);
}
.stack3d__plate {
  background: rgb(14 22 38 / 0.94);
  box-shadow: inset 0 0 0 1px rgb(143 200 255 / 0.3);
}
.stack3d__plate:hover,
.stack3d__plate.is-lit {
  --lift: 0.7rem;
  box-shadow: inset 0 0 0 1px var(--ice);
}
.stack3d__base {
  --i: -1;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgb(233 238 245 / 0.35);
  color: var(--mist-1);
  font-size: var(--step--1);
}
.stack3d__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1;
  color: var(--mist-0);
}
.stack3d__role {
  font-size: 0.75rem;
  color: var(--mist-1);
}
.js .stack3d:not(.is-built) .stack3d__plate {
  --plate-gap: 0.25rem;
  opacity: 0;
}

/* ---- Audiences / capabilities ---------------------------------------------------- */

.audiences__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--space-l);
}
.audiences__grid li {
  display: grid;
  gap: var(--space-2xs);
  align-content: start;
  padding-top: var(--space-s);
  border-top: 1px solid var(--hair-strong);
  color: var(--fg-2);
}
.audiences__title {
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--fg);
}

.caps__list {
  border-top: 1px solid var(--hair-strong);
}
.cap {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--space-2xs) var(--space-l);
  padding-block: var(--space-l);
  border-bottom: 1px solid var(--hair-strong);
  scroll-margin-top: calc(var(--header-h) + var(--space-l));
}
.cap__num {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--accent);
  padding-top: 0.45rem;
}
.cap__head {
  display: grid;
  gap: var(--space-3xs);
  align-content: start;
}
.cap__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.15;
}
.cap__sys {
  justify-self: start;
  font-size: var(--step--1);
  color: var(--fg-3);
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}
.cap__sys:hover {
  color: var(--accent);
}
.cap__text {
  color: var(--fg-2);
  max-width: 56ch;
}
@media (max-width: 52rem) {
  .cap {
    grid-template-columns: 2.25rem minmax(0, 1fr);
  }
  .cap__text {
    grid-column: 2;
  }
}

/* ---- How it works (light) ---------------------------------------------------------- */

.process__track {
  position: relative;
}
.process__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0.45rem;
  height: 1px;
  background: var(--hair-strong);
}
.process__line i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(var(--progress, 1));
  transform-origin: left;
}
.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--space-l);
}
.step-card {
  position: relative;
  display: grid;
  gap: var(--space-2xs);
  align-content: start;
  padding-top: var(--space-l);
  color: var(--fg-2);
}
.step-card__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.step-card__num {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--accent);
}
.step-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-3);
  color: var(--fg);
}
@media (max-width: 60rem) {
  .process__line {
    display: none;
  }
}
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--space-l);
  margin-top: var(--space-2xl);
  padding-top: var(--space-l);
  border-top: 1px solid var(--hair-strong);
}
.principles li {
  display: grid;
  gap: var(--space-2xs);
  color: var(--fg-2);
}
.principles__title {
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--fg);
}

/* ---- Page hero (Notes index, 404) ----------------------------------------------------- */

section.page-hero {
  padding-top: calc(var(--header-h) + var(--space-2xl));
  padding-bottom: var(--space-l);
  background: var(--ink-0);
}
.page-hero .wrap {
  display: grid;
  gap: var(--space-m);
  justify-items: start;
}
.page-hero .crumbs {
  margin-bottom: 0;
}
.page-hero--404 {
  padding-bottom: var(--section);
}
.notes--index {
  padding-top: var(--space-l);
}
.notes__empty {
  padding-block: var(--space-m);
  border-top: 1px solid var(--hair-strong);
  color: var(--fg-2);
}

/* Rows with an image (Market notes): image first, then date, title and standfirst beside it. The
   columns are proportional, so the image shrinks with the screen instead of switching layout. */
.post-row--media a {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  /* The last row takes whatever height the image adds, so the text stays together at the top. */
  grid-template-rows: auto auto auto 1fr;
  align-items: start;
}
.post-row__img {
  grid-row: 1 / -1;
  width: 100%;
  height: auto;
  border-radius: var(--radius-s);
  background: var(--bg-raised);
}
.post-row--media time,
.post-row--media .post-row__title,
.post-row--media .post-row__desc {
  grid-column: 2;
}
/* Phones: the image goes full width above the text instead of shrinking to a thumbnail. */
@media (max-width: 40rem) {
  .post-row--media a {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }
  .post-row__img {
    grid-row: auto;
    margin-bottom: var(--space-2xs);
  }
  .post-row--media time,
  .post-row--media .post-row__title,
  .post-row--media .post-row__desc {
    grid-column: 1;
  }
}

/* ---- Post ------------------------------------------------------------------------------ */

.post {
  padding-top: calc(var(--header-h) + var(--space-2xl));
  padding-bottom: var(--section);
}
.post__head {
  display: grid;
  gap: var(--space-s);
  justify-items: start;
  padding-bottom: var(--space-xl);
}
.post__head .crumbs {
  margin-bottom: 0;
}
.post__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-5);
  line-height: var(--leading-tight);
  letter-spacing: var(--track-display);
  max-width: 24ch;
  text-wrap: balance;
}
.post__dek {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 52ch;
}
.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: var(--step--1);
  color: var(--fg-3);
}
.post__figure {
  width: 100%;
  margin-top: var(--space-l);
}
.post__figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-m);
  background: var(--bg-raised);
}
.post__byline {
  font-size: var(--step--1);
  color: var(--fg-3);
}
.post__layout {
  display: grid;
  grid-template-columns: minmax(11rem, 15rem) minmax(0, 42rem);
  gap: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--hair);
}
.post__layout--solo {
  grid-template-columns: minmax(0, 1fr);
}
/* No contents list: title, image and text share one centred column instead of hugging the left. */
.post--solo .wrap {
  --wrap: var(--read-wrap);
}
.post__toc {
  position: sticky;
  top: calc(var(--header-h) + var(--space-l));
  align-self: start;
  display: grid;
  gap: var(--space-xs);
}
.post__toc-title {
  font-size: var(--step--1);
  color: var(--fg-3);
}
.post__toc ol {
  display: grid;
  border-left: 1px solid var(--hair);
}
.post__toc a {
  display: block;
  padding: 0.35rem 0 0.35rem 1rem;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: var(--step--1);
  line-height: 1.35;
  color: var(--fg-3);
  transition: color var(--dur-fast), border-color var(--dur-base);
}
.post__toc a:hover,
.post__toc a.is-active {
  color: var(--fg);
  border-left-color: var(--accent);
}
@media (max-width: 62rem) {
  .post__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-l);
  }
  .post__toc {
    position: static;
  }
}

.prose {
  font-size: var(--step-1);
  line-height: 1.7;
  color: var(--fg-2);
}
.prose > * + * {
  margin-top: 1.2em;
}
.prose h2 {
  margin-top: 2em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.2;
  color: var(--fg);
  scroll-margin-top: calc(var(--header-h) + var(--space-l));
}
.prose a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}
.prose a:hover {
  color: var(--accent);
}
.prose .post__closing {
  margin-top: var(--space-xl);
  padding-top: var(--space-s);
  border-top: 1px solid var(--hair);
  font-size: var(--step--1);
  line-height: var(--leading-body);
  color: var(--fg-3);
}

.post__foot {
  display: grid;
  gap: var(--space-l);
  margin-top: var(--space-2xl);
}
.post__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding: var(--space-l);
  border-radius: var(--radius-m);
  box-shadow: inset 0 0 0 1px var(--hair-strong);
}
.post__cta-title {
  font-family: var(--font-display);
  font-size: var(--step-3);
}
.post__next a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3xs) var(--space-m);
  align-items: center;
  padding-block: var(--space-m);
  border-top: 1px solid var(--hair-strong);
  border-bottom: 1px solid var(--hair-strong);
}
.post__next-k {
  grid-column: 1 / -1;
  font-size: var(--step--1);
  color: var(--fg-3);
}
.post__next-title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.2;
  transition: color var(--dur-fast);
}
.post__next a:hover .post__next-title {
  color: var(--accent);
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-progress);
  height: 2px;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--ice);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
