/* cadänce — public site */

@font-face { font-family: 'Sora'; src: url('fonts/sora-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('fonts/sora-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('fonts/sora-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

/* ---------- Tokens ---------- */

:root {
  --bg: #fbfbfa;
  --bg-elev: #ffffff;
  --bg-veil: rgba(251, 251, 250, .78);
  --ink: #0b1526;
  --ink-2: #465163;
  --ink-3: #6f7888;
  --line: #e2e5ea;
  --map-bar: #c3c9d3;
  --map-bar-done: #dce0e6;
  --map-bar-strong: #8e97a6;
  --map-grid: #eceef1;
  --map-track: #e6e9ee;
  --hot: #9f3241;
  --hot-ink: #ffffff;
  --hot-glow: rgba(159, 50, 65, .28);
  --action: #1d3a6b;
  --action-ink: #ffffff;
  --dim: .26;
  --font-brand: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-voice: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: max(16px, 3vw);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #06080c; --bg-elev: #10141b; --bg-veil: rgba(6, 8, 12, .72);
    --ink: #eef1f6; --ink-2: #a9b2c1; --ink-3: #7f8898; --line: #232a36;
    --map-bar: #3b4351; --map-bar-done: #272d38; --map-bar-strong: #667082;
    --map-grid: #141922; --map-track: #1c222c;
    --hot: #e0707f; --hot-ink: #1a0508; --hot-glow: rgba(224, 112, 127, .35);
    --action: #9dbcf0; --action-ink: #06080c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #06080c; --bg-elev: #10141b; --bg-veil: rgba(6, 8, 12, .72);
  --ink: #eef1f6; --ink-2: #a9b2c1; --ink-3: #7f8898; --line: #232a36;
  --map-bar: #3b4351; --map-bar-done: #272d38; --map-bar-strong: #667082;
  --map-grid: #141922; --map-track: #1c222c;
  --hot: #e0707f; --hot-ink: #1a0508; --hot-glow: rgba(224, 112, 127, .35);
  --action: #9dbcf0; --action-ink: #06080c;
  color-scheme: dark;
}

/* Enhanced contrast: darker inks, stronger lines, dimmed marks stay readable. */
:root[data-contrast="high"] {
  --ink: #000000; --ink-2: #1b2433; --ink-3: #343d4c; --line: #737c8c;
  --map-bar: #8f98a8; --map-bar-done: #b7bec9; --map-bar-strong: #4c5566;
  --map-grid: #d5d9df; --map-track: #cdd2da;
  --hot: #86202f; --action: #102a55; --dim: .45;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-contrast="high"] {
    --ink: #ffffff; --ink-2: #e3e8f0; --ink-3: #c1c9d6; --line: #6b7485;
    --map-bar: #7d8799; --map-bar-done: #4a5262; --map-bar-strong: #b8c0cc;
    --map-grid: #2a313d; --map-track: #2f3643;
    --hot: #ff8f9d; --action: #c4d8fa; --dim: .45;
  }
}
:root[data-theme="dark"][data-contrast="high"] {
  --ink: #ffffff; --ink-2: #e3e8f0; --ink-3: #c1c9d6; --line: #6b7485;
  --map-bar: #7d8799; --map-bar-done: #4a5262; --map-bar-strong: #b8c0cc;
  --map-grid: #2a313d; --map-track: #2f3643;
  --hot: #ff8f9d; --action: #c4d8fa; --dim: .45;
}

html { font-size: 100%; overflow-x: clip; }
html[data-size="l"] { font-size: 115%; }
html[data-size="xl"] { font-size: 130%; }

html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
  animation: none !important;
  transition-duration: .01ms !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-brand);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

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

/* Always there, above everything. At the very top it melts into the page; once the
   page moves, it takes its veil, a hairline and a soft shadow, to stay legible over
   whatever passes under it. */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: 56px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), -webkit-backdrop-filter .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-header.is-scrolled {
  background: var(--bg-veil);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .28);
}

.brand {
  display: flex; align-items: center; gap: .55rem;
  color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em;
}
.brand svg { width: 34px; height: 23px; }

.header-actions { display: flex; align-items: center; gap: .5rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: .55rem 1.05rem;
  font: 500 .875rem/1 var(--font-brand);
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .2s var(--ease), opacity .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--action); color: var(--action-ink); }
.btn-quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); min-width: 2.4rem; }
.btn-large { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ---------- Display preferences ---------- */

.prefs-wrap { position: relative; }
.prefs {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: min(320px, calc(100vw - 32px)); box-sizing: border-box;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px;
  padding: 1rem; box-shadow: 0 18px 50px rgba(0, 0, 0, .16);
}
.prefs[hidden] { display: none; }
.pref-group + .pref-group { margin-top: .9rem; }
.pref-title {
  margin: 0 0 .45rem;
  font: 500 .68rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
}
.seg { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg > * {
  flex: 1; padding: .55rem .35rem;
  background: none; border: 0; color: var(--ink-2);
  font: 400 .8rem/1.15 var(--font-brand); text-align: center; text-decoration: none; cursor: pointer;
}
.seg > * + * { border-left: 1px solid var(--line); }
.seg > [aria-pressed="true"], .seg > [aria-current="true"] { background: var(--ink); color: var(--bg); font-weight: 500; }

/* ---------- Story: one map, five readings ---------- */

.story { position: relative; }

.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh; box-sizing: border-box;
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding: 76px var(--gutter) 18px;
  overflow: hidden;
}
.steps { position: relative; margin-top: -100vh; margin-top: -100svh; pointer-events: none; }
.step { height: 100vh; height: 100svh; }

.stage-copy {
  display: grid; align-items: center; text-align: center;
  min-height: clamp(10rem, 29svh, 16.5rem);
}
.copy {
  grid-area: 1 / 1;
  max-width: 54rem; margin: 0 auto;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
.copy.is-active { opacity: 1; transform: none; pointer-events: auto; }

.kicker {
  margin: 0 0 .9rem;
  font: 500 .72rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3);
}
.headline {
  margin: 0;
  font-weight: 600; font-size: clamp(1.7rem, 4vw, 3.4rem);
  line-height: 1.06; letter-spacing: -.028em;
}
.muted { color: var(--ink-3); }
.voice {
  max-width: 38rem; margin: 1rem auto 0;
  font-family: var(--font-voice); font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.5;
  color: var(--ink-2);
}

.hero-mark { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin: 0; }
.hero-mark svg { width: clamp(84px, 11vw, 140px); height: auto; animation: rise 1.1s var(--ease) both; }
.hero-mark span {
  font-weight: 600; font-size: clamp(2.6rem, 7vw, 5.4rem);
  letter-spacing: -.045em; line-height: 1;
  animation: rise 1.1s var(--ease) .15s both;
}
/* the category the buyer searches, between the wordmark and the hook */
.hero-category { margin: 1.1rem 0 0; animation: rise 1.1s var(--ease) .3s both; }
.hero-line .muted { display: block; }
.hero-line {
  margin: 1rem auto 0; max-width: 30ch;
  font-weight: 500; font-size: clamp(1.25rem, 2.5vw, 2rem); line-height: 1.2; letter-spacing: -.02em;
  color: var(--ink);
  animation: rise 1.1s var(--ease) .4s both;
}
.hero-sub { margin: 1rem auto 0; max-width: 34rem; }
/* How it works, three short steps told over the still map. */
.how-steps { list-style: none; counter-reset: how; margin: 1.2rem auto 0; padding: 0; max-width: 40rem; display: grid; gap: .9rem; text-align: left; }
.how-steps li { counter-increment: how; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; font-family: var(--font-voice); font-size: 1.02rem; line-height: 1.45; color: var(--ink-2); }
.how-steps li::before { content: counter(how); grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); font: 600 .8rem var(--font-brand); color: var(--ink-2); }
.how-steps b { display: block; font: 600 1.05rem var(--font-brand); color: var(--ink); letter-spacing: -.01em; }
/* the trade, chosen before the map is read: words like the rail, never pills */
.hero-trades {
  display: flex; justify-content: center; flex-wrap: wrap; gap: .2rem 1.1rem;
  margin: 1.4rem auto 0; max-width: 40rem;
  animation: rise 1.1s var(--ease) .55s both;
}
.hero-trades button {
  position: relative; padding: .45rem .1rem;
  background: none; border: 0; cursor: pointer;
  font: 500 .92rem/1 var(--font-brand); color: var(--ink-3);
  transition: color .3s;
}
.hero-trades button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--ink); transform: scaleX(0); transition: transform .4s var(--ease);
}
.hero-trades button:hover { color: var(--ink-2); }
.hero-trades button[aria-pressed="true"] { color: var(--ink); }
.hero-trades button[aria-pressed="true"]::after { transform: scaleX(1); }
.hero-trades button:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font: 500 .68rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0; transition: opacity .5s;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 28px; background: var(--ink-3);
  transform-origin: top; animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.story[data-step="hero"] .scroll-cue { opacity: 1; }

.rail {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(.4rem, 1.6vw, 1.4rem);
  margin: .3rem 0 .5rem;
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.story:not([data-step="hero"]):not([data-step="hook"]) .rail { opacity: 1; transform: none; pointer-events: auto; }
.rail button {
  position: relative; padding: .5rem .15rem;
  background: none; border: 0; cursor: pointer;
  font: 500 .86rem/1 var(--font-brand); color: var(--ink-3);
  transition: color .3s;
}
.rail button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--ink); transform: scaleX(0); transition: transform .4s var(--ease);
}
.rail button:hover { color: var(--ink-2); }
.rail button[aria-pressed="true"] { color: var(--ink); }
.rail button[aria-pressed="true"]::after { transform: scaleX(1); }
.rail-sep { width: 1px; align-self: stretch; margin: .3rem .3rem; background: var(--line); }

.stage-map {
  grid-row: 3;
  min-height: 0; display: flex; align-items: stretch; justify-content: center;
  transition: opacity .9s var(--ease);
}
.story[data-step="hero"] .stage-map { opacity: .3; }

/* ---------- The map ---------- */

/* Lens colors are the cartography's own (docs/palette-cadance.md): red for the balance,
   violet for propagation. Nothing else on the site may take them. */
:root {
  --lens-shoko-crit: #d7191c;
  --lens-shoko-warn: #e8801a;
  --lens-prop-crit: #5e3c9e;
  --lens-prop-warn: #8163bf;
  --pin-bg: #ffffff;
  --pin-line: #c9ced6;
  --pin-icon: #4a5566;
  --map-band: #f1f2f4;
  --phase: #c3c9d2;
  --phase-done: #dde0e5;
  --link: #a7afbc;
  --label-w: 150px;
  --lvl-ok: #669981;
  --lvl-watch: #b0864f;
  --lvl-over: #c2788c;
  --lvl-beyond: #9f3241;
  --warn-text: #a8570a;
  --money-out: #c97f1f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lens-shoko-crit: #ff4d50; --lvl-ok: #74b096; --lvl-watch: #d2a262; --lvl-over: #de93a6; --lvl-beyond: #f07a8c; --warn-text: #ff9d45; --lens-shoko-warn: #ff9d45; --money-out: #e5a24d;
    --lens-prop-crit: #a383ec; --lens-prop-warn: #bba4f3;
    --pin-bg: #121720; --pin-line: #3a4250; --pin-icon: #b3bccb;
    --map-band: #0d1118; --phase: #3d4553; --phase-done: #262c36; --link: #5a6477;
  }
}
:root[data-theme="dark"] {
  --lens-shoko-crit: #ff4d50; --lvl-ok: #74b096; --lvl-watch: #d2a262; --lvl-over: #de93a6; --lvl-beyond: #f07a8c; --warn-text: #ff9d45; --lens-shoko-warn: #ff9d45; --money-out: #e5a24d;
  --lens-prop-crit: #a383ec; --lens-prop-warn: #bba4f3;
  --pin-bg: #121720; --pin-line: #3a4250; --pin-icon: #b3bccb;
  --map-band: #0d1118; --phase: #3d4553; --phase-done: #262c36; --link: #5a6477;
}
:root[data-contrast="high"] { --money-out: #9a5a0c; --pin-line: #5d6676; --pin-icon: #1b2433; --phase: #7d8697; --phase-done: #a9b0bc; --link: #5d6676; --lens-shoko-warn: #b8640d; --warn-text: #8f4a07; }
:root[data-theme="dark"][data-contrast="high"] { --money-out: #ffb45e; --pin-line: #aab3c2; --pin-icon: #eef1f6; --phase: #9aa3b2; --phase-done: #5b6474; --link: #aab3c2; --lens-shoko-warn: #ff9d45; --warn-text: #ff9d45; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-contrast="high"] { --money-out: #ffb45e; --pin-line: #aab3c2; --pin-icon: #eef1f6; --phase: #9aa3b2; --phase-done: #5b6474; --link: #aab3c2; --lens-shoko-warn: #ff9d45; --warn-text: #ff9d45; }
}

@font-face {
  font-family: 'Material Symbols Outlined';
  src: url('fonts/material-symbols-outlined.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: block;
}
.ms {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal; line-height: 1;
  letter-spacing: normal; text-transform: none; white-space: nowrap;
  direction: ltr; -webkit-font-smoothing: antialiased;
}

.map-wrap {
  position: relative; width: 100%; height: 100%; max-width: 1400px;
  display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr);
}
.map-labels { position: relative; overflow: hidden; }
.map-label {
  position: absolute; left: 0; right: 10px; top: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity .3s;
}
.map-label.is-project { font-weight: 600; font-size: .82rem; color: var(--ink); }
.map-label.is-phase { padding-left: .9rem; font: 400 .7rem/1.2 var(--font-mono); color: var(--ink-3); }
.map-label.is-hidden { opacity: 0; }
.map-canvas { position: relative; min-width: 0; overflow: hidden; }
.map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.map text { font-family: var(--font-mono); fill: var(--ink-3); }
.map .band { fill: var(--map-band); }
.map .row-rule { stroke: var(--line); stroke-width: .6; opacity: .6; }
.map .axis-bg { fill: var(--bg); opacity: .92; }
.map .month { font-size: calc(10.5px * var(--z, 1)); letter-spacing: .08em; text-transform: uppercase; }
.map .today-label { font-size: calc(10.5px * var(--z, 1)); fill: var(--ink-2); font-weight: 600; }
.map .month-line { stroke: var(--map-grid); stroke-width: 1; }
.map .today-line { stroke: var(--lens-prop-warn); stroke-width: 1.2; opacity: .8; }

.phase-line { stroke: var(--phase); stroke-width: 5; stroke-linecap: round; transition: stroke .3s; }
.phase.is-done .phase-line { stroke: var(--phase-done); }
.phase.is-waiting .phase-line { stroke-dasharray: .5 7; stroke-width: 4; }
.phase-stretch { stroke-width: 6; }
.phase-ghost { stroke: var(--phase); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: 0; transition: opacity .3s; }
.phase.is-moved .phase-ghost { opacity: 1; }
.phase.is-moved .phase-line { stroke: var(--action); opacity: .55; }

.link { fill: none; stroke: var(--link); stroke-width: 1; transition: stroke .4s, stroke-width .4s, opacity .4s; }
.link-anchor { stroke-dasharray: 3 3; }
.link-block { stroke-width: 1.2; }
.link.is-lit { stroke: var(--lens-shoko-crit); stroke-width: 1.6; }
.map.has-focus .link:not(.is-lit) { opacity: .45; }

.flow {
  fill: none; stroke: var(--lens-prop-crit); stroke-width: 1.8;
  stroke-dasharray: 4 7; animation: flow 1.1s linear infinite; opacity: .9;
}
@keyframes flow { to { stroke-dashoffset: -22; } }

.cloud {
  transform-box: fill-box; transform-origin: center;
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease);
}
.cloud.is-out { opacity: 0; transform: scale(.55); }
.cloud-body { transform-box: fill-box; transform-origin: center; animation: breath 6s ease-in-out infinite; }
@keyframes breath { 50% { transform: scale(1.07); } }
.cloud.is-pulse .cloud-body { animation: cloud-pulse 2.6s ease-in-out infinite; }
@keyframes cloud-pulse { 0%, 100% { transform: scale(.9); opacity: .65; } 50% { transform: scale(1.15); opacity: 1; } }

.pin {
  cursor: pointer; outline: none;
  transform-box: fill-box; transform-origin: center;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.pin .disc { fill: var(--pin-bg); stroke: var(--pin-line); stroke-width: 1; transition: stroke .3s, fill .3s; }
.pin .icon {
  font-family: 'Material Symbols Outlined'; font-size: 13px;
  fill: var(--pin-icon); text-anchor: middle; dominant-baseline: central; pointer-events: none;
}
.pin .ring { fill: none; stroke: transparent; stroke-width: 1.8; transition: stroke .4s; }
.pin.is-done .disc { fill: var(--map-band); }
.pin.is-done .icon { opacity: .6; }
.pin.is-missing .disc { fill: transparent; stroke-dasharray: 2.6 2; stroke-width: 1.2; }
.pin:hover .disc, .pin:focus-visible .disc { stroke: var(--ink-2); stroke-width: 1.4; }
.pin:focus-visible .ring { stroke: var(--action); }
.map.has-focus .pin:not(.is-lit) { opacity: .5; }
.pin.is-lit { transform: scale(1.14); }
.map[data-lens="shoko"] .pin.lvl-crit .ring { stroke: var(--lens-shoko-crit); }
.map[data-lens="shoko"] .pin.lvl-warn .ring { stroke: var(--lens-shoko-warn); }
.map[data-lens="prop"] .pin.lvl-crit .ring { stroke: var(--lens-prop-crit); }
.map[data-lens="prop"] .pin.lvl-warn .ring { stroke: var(--lens-prop-warn); }
.pin.is-moved .disc { stroke: var(--action); stroke-width: 1.6; }

.map.is-drawing .pin { animation: pin-in .6s var(--ease) both; animation-delay: calc(var(--i) * 1.3s + .4s); }
.map.is-drawing .phase { animation: phase-in .9s var(--ease) both; animation-delay: .2s; }
@keyframes pin-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes phase-in { from { opacity: 0; } }

/* A map at work: what someone just did shows for a moment. */
.pin.is-new { animation: pin-in .7s var(--ease) both; }
.pin.is-gone { opacity: 0; transform: scale(.4); }
.pin.is-touched .ring { animation: touched 2.4s var(--ease) both; }
@keyframes touched { 0%, 55% { stroke: var(--action); } 100% { stroke: transparent; } }
.peer { pointer-events: none; }
.peer-arrow { fill: var(--action); stroke: var(--bg); stroke-width: 1.2; }
.peer-tag rect { fill: var(--action); }
.peer-tag text { font-family: var(--font-brand); font-size: 9px; font-weight: 600; fill: var(--action-ink); }

/* The answer to the reading's question, as the calendar menu names it. */
.map-anchor {
  position: absolute; right: 8px; top: 44px; margin: 0;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  max-width: calc(100% - 16px); box-sizing: border-box;
  padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-veil); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: .8rem; color: var(--ink);
  opacity: 0; transform: translateY(6px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.map-anchor.is-on { opacity: 1; transform: none; }
.map-anchor .ms { font-size: 1.05rem; color: var(--ink-2); }
.map-anchor .anchor-label { font-weight: 500; }
.map-anchor .anchor-detail { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3); }

.tip {
  position: fixed; z-index: 40; left: 0; top: 0;
  width: max-content; max-width: min(300px, calc(100vw - 24px)); box-sizing: border-box;
  padding: .75rem .9rem .8rem;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .18);
  pointer-events: none;
  opacity: 0; transform: translateY(4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.tip.is-on { opacity: 1; transform: none; }
/* the label of a classic planning tool: square, grey, system type, no story */
.tip.is-plain { max-width: none; padding: 3px 7px; border-radius: 0; border: 1px solid #b9bdc4; background: #f4f4f4; box-shadow: none;
  font: 400 12px/1.3 -apple-system, system-ui, 'Segoe UI', sans-serif; color: #222; white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tip.is-plain { background: #2a2a2a; color: #ddd; border-color: #555; } }
:root[data-theme="dark"] .tip.is-plain { background: #2a2a2a; color: #ddd; border-color: #555; }
.tip p { margin: 0; }
.tip-kind {
  display: flex; align-items: center; gap: .35rem;
  font: 500 .66rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.tip-kind .ms { font-size: .95rem; letter-spacing: 0; }
.tip-title { margin-top: .4rem !important; font-weight: 600; font-size: .95rem; line-height: 1.25; color: var(--ink); }
.tip-meta { margin-top: .15rem !important; font-size: .76rem; color: var(--ink-3); }
.tip-note { margin-top: .45rem !important; font-family: var(--font-voice); font-size: .9rem; line-height: 1.4; color: var(--ink-2); }
.tip-links { margin: .55rem 0 0; padding: .5rem 0 0; list-style: none; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-2); }
.tip-links li + li { margin-top: .2rem; }
.tip-rel { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.tip-level { margin-top: .5rem !important; font: 600 .68rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.tip-level.lens-shoko.lvl-crit { color: var(--lens-shoko-crit); }
.tip-level.lens-shoko.lvl-warn { color: var(--warn-text); }
.tip-level.lens-prop.lvl-crit { color: var(--lens-prop-crit); }
.tip-level.lens-prop.lvl-warn { color: var(--lens-prop-warn); }

/* ---------- Sections ---------- */

.section {
  min-height: 100vh; min-height: 100svh; box-sizing: border-box;
  display: grid; place-items: center; text-align: center;
  padding: 104px var(--gutter);
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-2 { transition-delay: .35s; }
.reveal-3 { transition-delay: .7s; }
.is-in .reveal { opacity: 1; transform: none; }

.statement {
  margin: 0;
  font-weight: 600; font-size: clamp(2.1rem, 5.6vw, 5rem);
  line-height: 1.04; letter-spacing: -.038em;
}
/* Only the first beat of a title is bold; the answer under it reads in regular weight. */
.statement .muted, .headline .muted { display: block; font-weight: 400; }
/* A footnote under a statement, as small as a legend. */
.statement-note { margin: 1rem 0 0; font-size: .8rem; color: var(--ink-3); }
.statement-sub {
  margin: 1.6rem auto 0; max-width: 34rem;
  font-family: var(--font-voice); font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--ink-2);
}

/* ---------- AI: it proposes, a person decides ---------- */

/* Told once, on arrival: a dashed ring (the trial the AI prepares) turns, then a person's
   solid ring closes over it and the check is drawn. Reduced motion lands on the end state. */
.ai-section { min-height: 80vh; min-height: 80svh; }
.ai-card {
  width: 100%; max-width: 62rem; box-sizing: border-box;
  padding: clamp(56px, 9vw, 112px) clamp(20px, 7vw, 120px);
  border-radius: 8px;
  background: color-mix(in srgb, var(--ink) 4%, var(--bg));
}
.ai-mark { width: 64px; height: 64px; display: block; margin: 0 auto 2.2rem; overflow: visible;
  opacity: 0; transform: scale(.9); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.ai-mark circle, .ai-mark path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ai-proposed { stroke: var(--action); stroke-width: 2; stroke-dasharray: 3 6;
  transform-origin: 36px 36px; transform: rotate(-90deg);
  transition: transform 1.6s var(--ease), opacity .6s var(--ease) 1.9s; }
.ai-integrated { stroke: var(--ink); stroke-width: 3; stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset 1s var(--ease) 1.1s; }
.ai-check { stroke: var(--ink); stroke-width: 3.4; stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset .5s var(--ease) 2.05s; }
.is-in .ai-mark { opacity: 1; transform: none; }
.is-in .ai-proposed { transform: none; opacity: 0; }
.is-in .ai-integrated, .is-in .ai-check { stroke-dashoffset: 0; }
.ai-title { margin: 0; font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.12; letter-spacing: -.03em; }
.ai-text { margin: 1.4rem auto 0; max-width: 42rem;
  font-family: var(--font-voice); font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.55; color: var(--ink-2); }

/* The principles page opens on its thinkers, under the bar. */
.principles-head { padding: 120px var(--gutter) 0; text-align: center; }

/* ---------- Home: a promise, then what it is made of ---------- */

.hm-hero { padding-top: 120px; padding-bottom: clamp(120px, 14vw, 200px); }
.hm-hero { min-height: 100vh; min-height: 100svh; }
/* The first screen, as Apple orders it: the name is the only bold title, the promise follows in
   regular weight, the category is the small grey detail; then the picture. */
.hm-name {
  display: inline-flex; align-items: center; gap: .18em; margin: 0;
  font: 600 clamp(3rem, 6.5vw, 5.4rem) var(--font-brand); letter-spacing: -.045em; color: var(--ink);
  animation: rise 1.1s var(--ease) .1s both;
}
.hm-name svg { width: 1.05em; height: 1.05em; }
.hm-title {
  margin: 1rem auto 0; max-width: 34ch;
  font: 400 clamp(1.35rem, 2.4vw, 2rem) var(--font-brand); line-height: 1.3; letter-spacing: -.02em; color: var(--ink);
  animation: rise 1.1s var(--ease) .3s both; text-wrap: balance;
}
.hm-title .muted { display: block; color: var(--ink-3); font-weight: 400; }
/* « aussi »: cadänce sees what happened too, said in a whisper */
.hm-also { font-size: .55em; letter-spacing: .02em; vertical-align: .15em; }
.hm-detail { margin: 1.2rem 0 0; font: 400 1rem var(--font-brand); color: var(--ink-3); animation: rise 1.1s var(--ease) .45s both; }
.hm-tour-wrap { min-height: auto; padding-top: 40px; }
.hm-tour-wrap > div { width: 100%; }
.hm-intro-line { margin: 1.6rem auto 1.2rem; max-width: 36rem; font-family: var(--font-voice); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--ink-2); text-wrap: balance; }
.hm-tour-intro { margin: 3.4rem auto 0; font: 600 clamp(1.15rem, 2vw, 1.5rem) var(--font-brand); letter-spacing: -.015em; color: var(--ink); }
.hm-tour-intro .chapter-link { margin-left: .6rem; font-size: .9rem; vertical-align: middle; }
.hm-hero > div { width: 100%; }
.hm-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1.4rem; margin: 2rem 0 0; }
.hm-map { margin-top: .8rem; }
.hm-tour { min-height: 3.4em; margin: 1.8rem auto 0; max-width: 40rem; opacity: 0; transition: opacity .6s var(--ease); }
.hm-tour.is-on { opacity: 1; }
.hm-tour .kicker { display: block; margin-bottom: .3rem; }
.hm-tour b { font: 600 clamp(1.05rem, 1.8vw, 1.3rem) var(--font-brand); letter-spacing: -.01em; color: var(--ink); }
.hm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 62rem; margin: 2.6rem auto 0; text-align: left; }
@media (max-width: 860px) { .hm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hm-tile {
  display: grid; align-content: start; gap: .35rem; padding: 22px 20px; border-radius: 8px; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--ink) 4%, var(--bg)); transition-delay: calc(var(--d, 0) * .06s);
}
.hm-tile .ms { font-size: 1.5rem; color: var(--ink-2); }
.hm-tile b { font: 600 1.05rem var(--font-brand); letter-spacing: -.01em; margin-top: .4rem; }
.hm-tile > span:last-child { font-family: var(--font-voice); font-size: .95rem; line-height: 1.4; color: var(--ink-2); }
.hm-tile:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hm-grid-wrap, .hm-trades-wrap { min-height: auto; }
.hm-old { min-height: 80vh; min-height: 80svh; }
.hm-rest { min-height: 70vh; min-height: 70svh; }
/* The trial is introduced in one screen before its scene plays. */
.hm-intro { min-height: 70vh; min-height: 70svh; }

/* The home's first picture: the map, what an ERP sees behind today, what runs hot now and
   what will (the lens « hero » in trades.js, played once by data-map-play). */
.hm-hero .hm-hero-map { margin-top: 8rem; }
.hm-wave-caption { margin: 2rem auto 0; font: 500 clamp(1rem, 1.4vw, 1.15rem) var(--font-brand); color: var(--ink-2); }
.past-zone { fill: var(--ink); opacity: 0; transition: opacity .8s var(--ease); }
.has-past .past-zone { opacity: .07; }
.past-label { font: 600 17px var(--font-brand); fill: var(--ink-2); text-anchor: end; opacity: 0; transition: opacity .8s var(--ease); letter-spacing: .04em; }
.has-past .past-label { opacity: 1; }

/* ---------- Home: one rhythm for every part ----------
   Each part breathes the same way; parts alternate a plain and a lightly grey ground so one can
   tell where a part ends; text-only parts are as tall as their content, not a screen. */
.hm-band { background: color-mix(in srgb, var(--ink) 3%, var(--bg)); }
.hm-intro { min-height: auto; padding: clamp(140px, 18vw, 240px) var(--gutter) 40px; }
.hm-why, .hm-end { min-height: auto; padding: clamp(140px, 18vw, 240px) var(--gutter); }
.hm-trades-wrap { padding: clamp(140px, 18vw, 240px) var(--gutter); }
.hm-trades-wrap > div { width: 100%; }
.hm-trades { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: 66rem; margin: 4.5rem auto 0; }
@media (max-width: 860px) { .hm-trades { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hm-trade {
  display: flex; flex-direction: column; gap: .7rem; min-height: 230px; padding: 32px 30px; box-sizing: border-box;
  border-radius: 16px; background: var(--bg-elev); color: var(--ink); text-decoration: none; text-align: left;
  transition: transform .4s var(--ease); transition-delay: calc(var(--d, 0) * .06s);
}
.hm-trade:hover { transform: scale(1.015); }
.hm-trade b { font: 600 1.2rem var(--font-brand); letter-spacing: -.015em; }
.hm-trade > span:not(.hc-arrow) { font-family: var(--font-voice); font-size: 1rem; line-height: 1.45; color: var(--ink-2); }

/* A part named by its subject, as Apple names a product: the subject in bold, the line under it regular. */
.hm-subject { margin: 0; font: 600 clamp(2.6rem, 5.6vw, 4.6rem) var(--font-brand); letter-spacing: -.04em; color: var(--ink); }
.hm-subject-line { margin: 1rem auto 0; max-width: 30ch; font: 400 clamp(1.3rem, 2.3vw, 1.9rem) var(--font-brand); line-height: 1.3; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.hm-subject-line .muted { display: block; color: var(--ink-3); }

/* The one link of the home: « Découvrir … › », the same in every part and on every card. */
.hm-more { display: inline-flex; align-items: center; gap: .15rem; margin-top: 2rem; font: 500 1rem var(--font-brand); color: var(--action); text-decoration: none; }
.hm-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
a.hm-more:hover svg, a:hover > .hm-more svg { transform: translateX(3px); }
.hc-card .hm-more, .hm-trade .hm-more { margin-top: 1rem; font-size: .95rem; }
.hm-trade .hm-more { margin-top: auto; }

/* ---------- Home: what plugs in, cards that slide sideways ---------- */

.hm-carousel { padding: clamp(140px, 18vw, 240px) 0 clamp(120px, 14vw, 200px); }
.hc-head { max-width: 62rem; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.hc-head .statement { text-wrap: balance; }
.hc-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4.5rem max(var(--gutter), calc((100vw - 62rem) / 2)) 1.2rem; scrollbar-width: none;
  scroll-padding-inline: max(var(--gutter), calc((100vw - 62rem) / 2));
}
.hc-track::-webkit-scrollbar { display: none; }
.hc-card {
  flex: 0 0 clamp(270px, 30vw, 340px); height: clamp(420px, 50vw, 480px); scroll-snap-align: start; box-sizing: border-box;
  display: flex; flex-direction: column; gap: .8rem; padding: 34px 30px; border-radius: 16px; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--ink) 4%, var(--bg)); transition: transform .4s var(--ease);
}
.hc-card:hover { transform: scale(1.015); }
.hc-card .kicker { margin: 0; }
/* the subject is the card's title; what it does reads under it, in regular weight */
.hc-card b { font: 600 clamp(1.5rem, 2.4vw, 1.9rem) var(--font-brand); line-height: 1.15; letter-spacing: -.025em; }
.hc-card .hc-line { font: 400 clamp(1.02rem, 1.4vw, 1.15rem) var(--font-brand); line-height: 1.35; color: var(--ink-2); text-wrap: balance; }
.hc-all b { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.hc-all { justify-content: center; align-items: center; text-align: center; background: none; border: 1px solid var(--line); }
.hc-arrow svg, .hc-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hc-nav { display: flex; justify-content: flex-end; gap: 12px; max-width: 62rem; margin: 1.2rem auto 0; padding: 0 var(--gutter); }
.hc-nav button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--ink) 7%, var(--bg)); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.hc-nav button:disabled { opacity: .35; cursor: default; }
.hc-prev svg { transform: rotate(180deg); }
/* the small pictures: drawn in their end state, played once when the section comes in */
.hc-pic { position: relative; margin-top: auto; height: 160px; }
.hc-trial .hc-bar { position: absolute; left: 10%; top: 40%; width: 46%; height: 12px; border-radius: 6px; background: var(--map-bar); }
.hc-trial .hc-ghost { opacity: 0; }
.hc-trial .hc-moved { left: 34%; background: var(--action); }
.hc-trial .hc-glass { position: absolute; inset: 14% 4%; border: 1.5px dashed var(--action); border-radius: 10px; background: color-mix(in srgb, var(--action) 6%, transparent); }
.is-in .hc-trial .hc-moved { animation: hc-move 1.2s var(--ease) .8s both; }
.is-in .hc-trial .hc-glass { animation: hc-fade .8s var(--ease) .3s both; }
@keyframes hc-move { from { left: 10%; } }
.hc-load { display: flex; align-items: flex-end; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.hc-load i { flex: 1; height: calc(var(--h) * .65); border-radius: 3px; background: var(--lvl-ok); transform-origin: bottom; }
.hc-load i.hc-over { background: var(--lvl-beyond); }
/* the dashed line is the capacity: bars above it are over */
.hc-load .hc-cap { position: absolute; left: 0; right: 0; bottom: calc(65% + 6px); height: 0; border-top: 1.5px dashed var(--ink-3); }
.is-in .hc-load i { animation: hc-grow .7s var(--ease) calc(.4s + var(--d) * .1s) both; }
@keyframes hc-grow { from { transform: scaleY(0); } }
.hc-team p { display: flex; gap: 8px; margin: 0 0 12px; }
.hc-team i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--ink-3) 55%, transparent); }
.hc-team i.is-on { background: var(--ink); border-color: var(--ink); }
.hc-lock { position: absolute; right: 6px; top: 0; font-size: 1.6rem; color: var(--ink-3); }
.is-in .hc-team i.is-on { animation: hc-fill .3s var(--ease) calc(.4s + var(--d) * .05s) both; }
@keyframes hc-fill { from { background: transparent; border-color: color-mix(in srgb, var(--ink-3) 55%, transparent); } }
.hc-talk { display: flex; flex-direction: column; gap: 9px; }
.hc-talk i { display: block; width: 62%; height: 26px; border-radius: 13px; background: color-mix(in srgb, var(--ink) 9%, var(--bg)); }
.hc-talk i.is-me { margin-left: auto; width: 48%; background: var(--action); }
.is-in .hc-talk i { animation: hc-pop .45s var(--ease) calc(.4s + var(--d) * .35s) both; }
@keyframes hc-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.hc-links .hc-core { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; display: grid; place-items: center; background: var(--action); color: var(--action-ink); font: 600 1.2rem var(--font-brand); }
.hc-links .hc-node { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-elev); border: 1px solid var(--line); color: var(--ink-2); font-size: 1.2rem; transform: rotate(var(--a)) translate(62px) rotate(calc(-1 * var(--a))); }
.is-in .hc-links .hc-node { animation: hc-orbit .7s var(--ease) calc(.4s + var(--d) * .15s) both; }
@keyframes hc-orbit { from { opacity: 0; transform: rotate(var(--a)) translate(0) rotate(calc(-1 * var(--a))); } }
.hc-docs .ms { font-size: 2.2rem; color: var(--ink-3); }
.hc-docs i { display: block; height: 10px; width: var(--w); margin: 12px 0 0; border-radius: 5px; background: var(--action); opacity: .7; transform-origin: left; }
.is-in .hc-docs i { animation: hc-write .6s var(--ease) calc(.5s + var(--d) * .3s) both; }
@keyframes hc-write { from { transform: scaleX(0); } }
@keyframes hc-fade { from { opacity: 0; } }

/* ---------- Home: the map, lightened ----------
   The cartography without the weight of a planning: the phases are a breath of a line, the
   taïkos stand on their rows, today and what an ERP sees, and the clouds (founder 15/10: the
   relief view « fait circuit imprimé »; « sans la durée des phases, ou alors excessivement léger »). */
.hm-map-light .phase-line, .hm-map-light .phase-stretch, .hm-map-light .phase-ghost { stroke-opacity: .22; }
.hm-map-light .band { opacity: .45; }
.hm-map-light .row-rule, .hm-map-light .month-line { opacity: .5; }
.hm-map-light .map-label.is-phase { opacity: .55; }
/* behind today, what an ERP keeps: the classic Gantt milestone, a dark diamond, no icon, no glow */
.pin .diamond { display: none; }
.past-plain .pin.is-past .ring, .past-plain .pin.is-past .disc, .past-plain .pin.is-past .icon, .past-plain .pin.is-past .badge { display: none; }
.past-plain .pin.is-past .diamond { display: inline; fill: var(--ink-2); }
.past-plain .pin.is-past { cursor: default; }
/* the two spans above the map: the ERP's, up to today; cadänce's, all of it */
.hm-map { position: relative; }
.hm-brackets { position: absolute; top: -66px; height: 60px; pointer-events: none; }
.hm-bracket { position: absolute; left: 0; height: 9px; border: 1.5px solid; border-bottom: 0; box-sizing: border-box; }
.hm-bracket span { position: absolute; left: 50%; bottom: 13px; transform: translateX(-50%); white-space: nowrap; font: 500 .9rem var(--font-brand); }
.hm-bracket.is-erp { bottom: 0; border-color: var(--ink-3); color: var(--ink-2); }
.hm-bracket.is-all { bottom: 30px; right: 0; border-color: var(--action); color: var(--action); }
/* cadänce's span answers the hand: pointed at, it shows what it sees behind today too */
.hm-bracket.is-all { pointer-events: auto; cursor: default; }
.hm-bracket.is-all::before { content: ''; position: absolute; left: 0; right: 0; top: -34px; bottom: -8px; }
.hm-bracket.is-all.is-on { border-width: 2.5px; }
.hm-bracket.is-all.is-on span { font-weight: 600; }

/* ---------- Tabs of a page (Taïko: the object, the map): words on a line, as the trades ---------- */

.page-tabs-wrap { padding: 92px var(--gutter) 0; text-align: center; }
.page-tabs-wrap .hero-trades { margin-top: 0; animation: none; }

/* ---------- Team: four tiles, one idea and one picture each ---------- */

.tm-hero { min-height: 70vh; min-height: 70svh; }
.tm-how-wrap { max-width: 62rem; margin: 0 auto; padding: 0 var(--gutter) clamp(64px, 9vw, 120px); box-sizing: border-box; text-align: center; }
.tm-how { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); text-align: left; }
@media (max-width: 720px) { .tm-how { grid-template-columns: 1fr; } }
/* The same columns on the trials page: the critical path, its levers, their trials. */
.levers-section { padding-top: clamp(64px, 9vw, 120px); }
.tm-how li { transition-delay: calc(var(--d, 0) * .12s); }
.tm-step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); font: 600 .85rem var(--font-brand); color: var(--ink-2); }
.tm-how h3 { margin: .9rem 0 .4rem; font-weight: 600; font-size: 1.15rem; letter-spacing: -.015em; }
.tm-how p { margin: 0; font-family: var(--font-voice); font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.tm-tiles { max-width: 62rem; margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box; display: grid; gap: 16px; }
.tm-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 64px); align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: 8px; background: color-mix(in srgb, var(--ink) 4%, var(--bg));
}
.tm-row.is-flip .tm-row-text { order: 2; }
.tm-row:has(.tm-plan) { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); }
@media (max-width: 760px) { .tm-row, .tm-row:has(.tm-plan) { grid-template-columns: 1fr; } .tm-row.is-flip .tm-row-text { order: 0; } }
.tm-title { margin: 0; font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.tm-text { margin: .9rem 0 0; font-family: var(--font-voice); font-size: 1.05rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
/* The mocks: the real screens, simplified; numbers in the mono face, as in the application. */
.tm-mock { padding: 16px 18px; border-radius: 8px; background: var(--bg-elev); border: 1px solid var(--line); font-size: .82rem; color: var(--ink); }
.tm-mock-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 .7rem; font: 600 .86rem var(--font-brand); }
.tm-badge { font: 500 .7rem var(--font-mono); color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.tm-list, .tm-grid, .tm-props { list-style: none; margin: 0; padding: 0; }
.tm-list li { display: flex; justify-content: space-between; align-items: center; padding: .4rem 0; border-top: 1px solid var(--line); }
.tm-scale { display: inline-flex; gap: 5px; }
.tm-scale i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--ink-3) 55%, transparent); }
.tm-scale i.is-on { background: var(--ink); border-color: var(--ink); }
.tm-note { margin: .7rem 0 0; padding: .55rem .7rem; border-radius: 6px; background: color-mix(in srgb, var(--ink) 4%, var(--bg-elev)); font-family: var(--font-voice); }
.tm-note span { display: block; font: 500 .68rem var(--font-mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .15rem; }
.tm-foot { margin: .6rem 0 0; color: var(--ink-3); font-size: .76rem; }
.tm-pair { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); column-gap: 14px; }
/* Both sides share the rows: titles, captions and curves line up whatever wraps. */
.tm-side { display: grid; grid-row: span 5; grid-template-rows: subgrid; align-content: start; }
.tm-caption { margin: -.4rem 0 .3rem; color: var(--ink-3); font-size: .72rem; }
.tm-spark { display: block; width: 100%; height: auto; }
.tm-spark polyline { fill: none; stroke: var(--action); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tm-axis-labels { display: flex; justify-content: space-between; margin: .1rem 0 0; font: .68rem var(--font-mono); color: var(--ink-3); }
.tm-grid li, .tm-grid-head { display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr; gap: 6px; padding: .42rem 0; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .76rem; }
.tm-grid-head { margin: 0; border-top: 0; color: var(--ink-3); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
.tm-grid b { font: 600 .78rem var(--font-brand); }
.tm-grid .is-ok b { color: var(--lvl-ok); }
.tm-grid .is-watch b { color: var(--lvl-watch); }
.tm-grid .is-crit b { color: var(--lvl-beyond); }
.tm-grid .is-crit { background: color-mix(in srgb, var(--lvl-beyond) 8%, transparent); }
.tm-advice { color: var(--ink-2); font-family: var(--font-voice); font-size: .82rem; }
.tm-props li { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) auto; white-space: normal; gap: 6px; padding: .42rem 0; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .76rem; }
.tm-props b { font: 600 .78rem var(--font-brand); }
.tm-props .is-no b { color: var(--hot); }
.tm-props .is-yes b { color: var(--lvl-ok); }
.tm-props span:first-child { white-space: nowrap; }
.tm-props span:nth-child(2) { font-family: var(--font-voice); font-size: .8rem; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: .2rem 0 .6rem; }
.tm-chip { padding: .15rem .5rem; border-radius: 6px; border: 1px solid var(--line); font: 500 .68rem var(--font-brand); color: var(--ink-2); }
.tm-chip:last-child { border-color: var(--lvl-beyond); color: var(--lvl-beyond); }
.tm-plan { list-style: none; margin: 0; padding: 0; }
.tm-plan li, .tm-plan-head { display: grid; grid-template-columns: 3.4em repeat(3, minmax(0, 1fr)) 5.6em; gap: 6px; align-items: center; padding: .42rem 0; border-top: 1px solid var(--line); }
.tm-plan-head { margin: 0; border-top: 0; font: .66rem var(--font-mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.tm-who { font: 600 .76rem var(--font-brand); }
.tm-cell { display: grid; row-gap: 3px; font-family: var(--font-mono); font-size: .7rem; }
.tm-cell em { font-style: normal; }
.tm-cell small { color: var(--ink-2); font-size: .66rem; }
.tm-cell small::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--lvl-ok); vertical-align: 0; }
.tm-cell small.is-watch::before { background: var(--lvl-watch); }
.tm-cell small.is-crit::before { background: var(--lvl-beyond); }
.tm-bar { grid-column: 1 / -1; display: block; height: 6px; width: var(--w); border-radius: 3px; background: var(--lvl-ok); }
.tm-bar.is-watch { background: var(--lvl-watch); }
.tm-bar.is-crit { background: var(--lvl-beyond); }
.tm-risk { font: 600 .7rem var(--font-brand); text-align: right; }
.tm-plan .is-ok .tm-risk { color: var(--lvl-ok); }
.tm-plan .is-watch .tm-risk { color: var(--lvl-watch); }
.tm-plan .is-crit .tm-risk { color: var(--lvl-beyond); }
/* The proof of the tile: Sofia in October, under 100 % and critical. */
.tm-plan li:nth-child(3) .tm-cell:nth-of-type(2) { outline: 2px solid var(--lvl-beyond); outline-offset: 3px; border-radius: 4px; }
.tm-plan li.is-crit { background: color-mix(in srgb, var(--lvl-beyond) 7%, transparent); }
.tm-button { display: inline-block; margin: .7rem 0 0; padding: .4rem .85rem; border-radius: 6px; background: var(--action); color: var(--action-ink); font: 500 .76rem var(--font-brand); }

/* ---------- Trial: move it before committing ---------- */

.hypo { position: relative; height: 200vh; }
.hypo-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh; box-sizing: border-box;
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding: 76px var(--gutter) 22px; text-align: center;
}
.hypo-copy .headline { font-size: clamp(1.6rem, 3.6vw, 3rem); text-wrap: balance; }
.trial-bar {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: .5rem 1rem; margin: 1rem 0 .4rem;
}
.trial-banner {
  font: 500 .72rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--action); border: 1px dashed var(--action); border-radius: 8px; padding: .5rem .8rem;
}
.trial-hint { font-family: var(--font-voice); font-size: .98rem; color: var(--ink-2); margin: 0; }
.hypo-map { min-height: 0; display: flex; align-items: stretch; justify-content: center; padding-bottom: .8rem; }
.readouts {
  display: grid; grid-template-columns: 1fr 1fr 2.2fr; gap: 1.4rem;
  width: 100%; max-width: 68rem; margin: 0 auto;
  border-top: 1px solid var(--line); padding-top: .9rem; text-align: left;
}
.readout .label {
  font: 500 .68rem/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
}
.readout .value {
  margin-top: .3rem;
  font-weight: 500; font-size: clamp(1.05rem, 1.9vw, 1.5rem); letter-spacing: -.01em;
  transition: color .3s;
}
.readout .value.is-bad { color: var(--hot); }
.hypo-end {
  grid-column: 1 / -1; margin: .2rem 0 0; text-align: center;
  font-family: var(--font-voice); font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--ink);
  opacity: 0; transition: opacity .6s var(--ease);
}
.hypo-end.is-on { opacity: 1; }

/* ---------- Page not found: the trial plays on its own ---------- */

.lost { max-width: 72rem; margin: 0 auto; padding: 110px var(--gutter) 40px; box-sizing: border-box; text-align: center; }
.lost .statement { font-size: clamp(1.9rem, 4.4vw, 3.6rem); }
.lost-map { height: clamp(280px, 54svh, 540px); margin: 2rem 0 0; }
.lost-map .map-wrap { width: 100%; height: 100%; }
.lost .back-link { margin: 1.6rem 0 0; }

/* ---------- Profitability, as the Rentabilité tab draws it ----------
   Two signals and nothing else: what comes in (the action blue), what goes out
   (the cost amber). Amounts on the axis only; phrases are never set in mono. */

.money-wrap { width: 100%; max-width: 62rem; margin: 0 auto; }
.money-view { margin: 2.6rem auto 0; text-align: left; }
.money-wrap { max-width: 72rem; }
.money-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; margin: 0 0 .6rem; }
.money-head .money-date { flex-basis: 100%; }
.money-name { font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.money-amount { font: 500 .9rem/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.money-voice { margin: 0 0 .5rem; max-width: 62ch; font-family: var(--font-voice); font-size: 1.02rem; line-height: 1.55; color: var(--ink-2); }
.money-voice strong { color: var(--ink); font-weight: 600; }
.money-none { margin: 2.2rem auto 0; max-width: 46ch; text-align: center; font-family: var(--font-voice); font-size: 1.05rem; color: var(--ink-2); }

.money-state {
  display: grid; grid-template-columns: 7.5rem 1fr; column-gap: 1.4rem; row-gap: .6rem;
  align-items: center; margin: 1.4rem 0 .4rem;
}
.ms-label.is-top { grid-area: 1 / 1; }
.ms-track.is-top { grid-area: 1 / 2; }
.ms-label.is-bottom { grid-area: 2 / 1; }
.ms-track.is-bottom { grid-area: 2 / 2; }
.ms-label { font: 500 .66rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ms-track { position: relative; height: 18px; background: var(--map-band); border-radius: 2px; }
.ms-seg { position: absolute; top: 0; height: 100%; display: block; box-sizing: border-box; outline: none; cursor: default; }
.ms-seg.is-billed { background: var(--action); opacity: .82; }
.ms-seg.is-done { background: var(--action); opacity: .34; }
.ms-seg.is-rest { background: transparent; }
.ms-seg.is-cost { background: var(--money-out); opacity: .72; box-shadow: inset -1px 0 0 var(--bg); }
.ms-seg.is-hole {
  background: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--money-out) 42%, transparent) 4px 5px);
  border: 1px dashed var(--money-out); overflow: hidden;
}
.ms-seg.is-hole span { position: absolute; left: .45rem; top: 50%; transform: translateY(-50%); font-size: .7rem; color: var(--money-out); white-space: nowrap; }
.ms-seg:focus-visible { box-shadow: 0 0 0 2px var(--action); }
.ms-mark { position: absolute; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; transform: translateX(-50%); pointer-events: none; }
.ms-mark.is-progress { top: -7px; border-top: 6px solid var(--ink); }
.ms-mark.is-elapsed { bottom: -7px; border-bottom: 6px solid var(--ink-3); }
.ms-bounds { grid-area: 1 / 2 / 3 / 3; position: relative; align-self: stretch; pointer-events: none; }
.ms-bound { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 1px solid var(--ink); opacity: .55; }
.ms-axis { grid-area: 3 / 2; position: relative; height: 1.15rem; border-top: 1px solid var(--line); }
.ms-tick { position: absolute; top: 3px; transform: translateX(-50%); font: 400 .68rem/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); white-space: nowrap; }
.ms-tick::before { content: ""; position: absolute; top: -4px; left: 50%; height: 3px; border-left: 1px solid var(--line); }
.ms-tick.is-zero { transform: none; }
.ms-tick.is-zero::before { left: 0; }
.ms-tick.is-end { transform: translateX(-100%); }
.ms-tick.is-end::before { left: auto; right: 0; }
.ms-tick.is-billable { color: var(--ink); font-weight: 600; }
.ms-tick.is-billable::before { border-left-color: var(--ink); }
.ms-tick.is-cost { color: var(--money-out); }
.ms-tick.is-cost::before { border-left-color: var(--money-out); }
.ms-legend { grid-area: 4 / 2; margin: .2rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .74rem; color: var(--ink-2); }
.ms-key::before { content: ""; display: inline-block; width: .7rem; height: .55rem; margin-right: .35rem; vertical-align: -1px; box-sizing: border-box; }
.ms-key.is-billed::before { background: var(--action); opacity: .82; }
.ms-key.is-done::before { background: var(--action); opacity: .34; }
.ms-key.is-cost::before { background: var(--money-out); opacity: .72; }
.ms-key.is-hole::before { background: repeating-linear-gradient(135deg, transparent 0 3px, color-mix(in srgb, var(--money-out) 42%, transparent) 3px 4px); border: 1px dashed var(--money-out); }
.ms-key.is-progress::before, .ms-key.is-elapsed::before { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; background: none; }
.ms-key.is-progress::before { border-top: 6px solid var(--ink); }
.ms-key.is-elapsed::before { border-bottom: 6px solid var(--ink-3); }

.money-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.8rem; align-items: start; }
.money-date { font: 500 .7rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--action); }

/* The journal, in the form of the budget's « Journal de suivi ». */
.money-journal { border-right: 1px solid var(--line); padding-right: 1.6rem; }
.mj-title { margin: 0 0 .8rem; font: 500 .7rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.mj-list { position: relative; list-style: none; margin: 0; padding: 0; max-height: 36rem; overflow-y: auto; }
.mj-item { transition: opacity .3s var(--ease); }
.mj-item.is-after, .mj-marker.is-after { opacity: .38; }
.mj-event {
  display: grid; grid-template-columns: 3.4rem 1.7rem minmax(0, 1fr); gap: .6rem; align-items: start; width: 100%;
  padding: .65rem .6rem; border: 0; border-left: 2px solid transparent; border-radius: 0 8px 8px 0;
  background: none; text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.mj-event:hover { background: var(--map-band); }
.mj-event[aria-pressed="true"] { background: var(--map-band); border-left-color: var(--action); }
.mj-event:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; }
.mj-date { font: 500 .74rem/1.5 var(--font-mono); color: var(--ink-2); white-space: nowrap; }
.mj-origin {
  display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  border: 1px solid var(--line); font-size: .72rem; font-weight: 600; color: var(--ink-2); background: var(--bg);
}
.mj-origin.is-map { font-size: .95rem; color: var(--ink-2); }
.mj-main { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.mj-what { font-size: .9rem; font-weight: 600; color: var(--ink); }
.mj-meta { font-size: .74rem; color: var(--ink-3); }
.mj-event.is-negative .mj-meta { color: var(--warn-text); }
.mj-by { font-size: .74rem; color: var(--ink-2); }
.mj-change { font: 500 .74rem/1.4 var(--font-mono); color: var(--ink); }
.mj-note { margin-top: .15rem; font-family: var(--font-voice); font-size: .86rem; line-height: 1.4; color: var(--ink-2); }
.mj-marker { display: flex; align-items: center; gap: .45rem; padding: .35rem .6rem .35rem calc(3.4rem + 1.2rem); font-size: .74rem; color: var(--ink-3); }
.mj-marker .ms { font-size: .95rem; }
.mj-marker strong { font-weight: 600; color: var(--ink-2); }
.mj-where::before { content: "· "; }

/* The table by phase. */
.money-panel, .money-journal { min-width: 0; }
.money-table-wrap { margin-top: 1.4rem; overflow-x: auto; }
.money-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.money-table th { padding: .4rem .5rem; text-align: left; font: 500 .66rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.money-table td { padding: .45rem .5rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.money-table .is-num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.money-table tr.is-link { cursor: pointer; }
.money-table tr.is-link:hover td, .money-table tr.is-link:focus-visible td { background: var(--map-band); }
.money-table tr.is-link:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; }
.money-table tr.is-whole td { font-weight: 600; border-top: 1px solid var(--ink-3); }
.money-table td.is-over { color: var(--warn-text); }
.money-table td.is-silent { color: var(--money-out); font-family: var(--font-brand); }
.ms-seg { cursor: pointer; }

/* ---------- Landing pages: a trade, the ERP question, the self-consumption loop ---------- */

.landing { max-width: 72rem; margin: 0 auto; padding: 120px var(--gutter) 20px; box-sizing: border-box; }
.landing .rest-head .voice { max-width: 62ch; margin-left: auto; margin-right: auto; }
.landing .final-map { margin: 1rem auto 0; }
.landing-readings .chapter h3 { display: block; margin: 0; font-size: 1.05rem; line-height: 1.3; }
.landing-readings h3 .muted { display: block; font-weight: 500; }
.landing-readings p.kicker { margin: 0 0 .5rem; font: 500 .66rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.landing-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem 3.2rem; margin-top: 1rem; }
.landing-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.landing-list li { display: flex; align-items: baseline; gap: .6rem; font-family: var(--font-voice); font-size: 1rem; line-height: 1.45; color: var(--ink-2); }
.landing-list .ms { flex: none; font-size: 1.05rem; color: var(--ink-3); transform: translateY(.15em); }
.landing-list.is-more li { color: var(--ink); }
.landing-list.is-more .ms { color: var(--action); }
.landing-step { flex: none; width: 1.5rem; font: 500 .78rem/1.6 var(--font-mono); color: var(--ink-3); }
.rest-title.landing-gap { margin-top: 2.2rem; }
.landing-proof { margin: 0; font: 400 .82rem/1.6 var(--font-mono); color: var(--ink-2); }
.landing-map { margin-top: 3rem; }
.landing-doc { display: flex; align-items: flex-start; justify-content: center; }
.landing .doc-card { position: static; opacity: 1; transform: none; pointer-events: auto; width: 100%; max-width: 380px; }
/* On a landing page the note is shown filled: the questions answered as each block asked them. */
.landing .doc-value i { opacity: 0; transition: opacity .45s var(--ease) calc(var(--d) * .5s + .6s); }
.landing .doc-value b { opacity: 0; transition: opacity .45s var(--ease) calc(var(--d) * .5s + .75s); }
.landing.is-in .doc-value i { opacity: 0; }
.landing.is-in .doc-value b { opacity: 1; }
.landing .statement { font-size: clamp(1.9rem, 4.2vw, 3.3rem); }

/* ---------- Builders, final ---------- */

.builders { max-width: 44rem; }
.builders .headline { font-size: clamp(1.9rem, 4.4vw, 3.6rem); }

.final { gap: 0; }
.final .statement { font-size: clamp(2rem, 5vw, 4.4rem); }
.final-map { width: 100%; max-width: 1100px; height: clamp(220px, 40svh, 420px); margin: 2.2rem auto; text-align: left; }
.final-note { margin: 0 0 1.6rem; font-family: var(--font-voice); font-size: 1.1rem; color: var(--ink-2); }

/* The footer: brand and line, then one column per kind of link, each with its title. */
.site-footer {
  padding: 48px var(--gutter) 32px; border-top: 1px solid var(--line);
  font-size: .86rem; color: var(--ink-3);
}
.footer-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 2rem 2.4rem; max-width: 72rem; margin: 0 auto; }
.footer-brand .brand { font-size: 1.02rem; }
.footer-brand p { margin: .7rem 0 0; max-width: 24ch; font-family: var(--font-voice); font-size: .92rem; line-height: 1.45; color: var(--ink-2); }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--ink); }
.footer-title { margin: 0 0 .25rem; font: 500 .68rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
a.footer-title { color: var(--ink-3); }
a.footer-title:hover { color: var(--ink); }
/* What the examples are: one line for every page, instead of a mark on every scene. */
.footer-note { max-width: 72rem; margin: 2.4rem auto 0; font-size: .74rem; line-height: 1.5; color: var(--ink-3); }
.footer-note + .footer-copy { margin-top: 1rem; }
.footer-copy { max-width: 72rem; margin: 2.4rem auto 0; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-3); }


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

.site-nav { display: flex; gap: 1.3rem; margin-right: .6rem; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: .86rem; font-weight: 400; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.inline-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
.inline-link:hover { text-decoration-color: var(--ink); }

/* ---------- Trial: the banner leads to the trials page ---------- */

a.trial-banner {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
a.trial-banner .trial-go { font-family: var(--font-brand); letter-spacing: 0; text-transform: none; font-size: .82rem; }
a.trial-banner .trial-go::after { content: " →"; display: inline-block; transition: transform .25s var(--ease); }
a.trial-banner:hover { background: var(--action); color: var(--action-ink); transform: translateY(-1px); }
a.trial-banner:hover .trial-go::after { transform: translateX(3px); }

/* ---------- Invoicing by month, at each phase's ratio ---------- */

.ratios { grid-column: span 1; }
.ratio-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: .45rem; }
.rm-name { font: 500 .66rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.rm-total { margin-top: .3rem; font-weight: 500; font-size: clamp(1rem, 1.6vw, 1.3rem); }
.rm-delta { min-height: 1.1em; font: 500 .72rem/1.2 var(--font-mono); color: var(--ink-2); }
.rm-delta.is-bad { color: var(--hot); }
.rm-parts { list-style: none; margin: .3rem 0 0; padding: 0; font: 400 .7rem/1.5 var(--font-mono); color: var(--ink-2); }
.rm-parts li.is-new { color: var(--action); animation: part-in .5s var(--ease); }
.rm-phase { color: var(--ink-3); }
.rm-parts li.is-new .rm-phase { color: inherit; }
@keyframes part-in { from { opacity: 0; transform: translateY(4px); } }

/* ---------- Transmission: the project remembers ---------- */

.memory-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem);
  align-items: center; max-width: 72rem; width: 100%; text-align: left;
}
.memory-copy .voice { margin-left: 0; }
.journal { list-style: none; margin: 0; padding: 0 0 0 1.4rem; position: relative; }
.journal::before { content: ""; position: absolute; left: .3rem; top: .4rem; bottom: .4rem; width: 1px; background: var(--line); }
.journal li { position: relative; padding: 0 0 1.3rem; }
.journal li::before {
  content: ""; position: absolute; left: -1.38rem; top: .38rem; width: .6rem; height: .6rem; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--ink-3);
}
.journal li.is-map::before { border-color: var(--lens-shoko-crit); background: var(--lens-shoko-crit); }
.journal time { display: block; font: 500 .7rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.journal p { margin: .35rem 0 .2rem; font-family: var(--font-voice); font-size: 1.02rem; line-height: 1.4; color: var(--ink); }
.journal .who { font: 400 .72rem/1 var(--font-mono); color: var(--ink-3); }
.journal li.reveal { transition-delay: calc(var(--d, 0) * .18s + .35s); }

/* ---------- Pages: kinds of taïko ---------- */

.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem 2rem; max-width: 64rem; margin: 2.4rem auto 0; text-align: left; }
.kind .ms {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid var(--pin-line); background: var(--pin-bg); color: var(--pin-icon); font-size: 1.15rem;
}
.kind h3 { margin: .7rem 0 .2rem; font-size: .98rem; font-weight: 600; }
.kind p { margin: 0; font-family: var(--font-voice); font-size: .92rem; color: var(--ink-2); line-height: 1.4; }

.doc-card {
  position: absolute; left: var(--gutter); bottom: 28px; z-index: 2;
  width: min(330px, calc(100% - 32px)); box-sizing: border-box; padding: .85rem 1rem .8rem;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .16);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.story[data-step="tk-doc"] .doc-card { opacity: 1; transform: none; }
.doc-title { display: flex; align-items: center; gap: .4rem; margin: 0 0 .5rem; font-weight: 600; font-size: .9rem; }
.doc-title .ms { font-size: 1.05rem; color: var(--ink-2); }
.doc-card ul { list-style: none; margin: 0; padding: 0; }
.doc-card li { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; padding: .4rem 0; border-top: 1px solid var(--line); font-size: .8rem; }
.doc-field { color: var(--ink-2); }
.doc-value { position: relative; text-align: right; font: 500 .78rem/1.3 var(--font-mono); min-width: 7.5rem; }
.doc-value i, .doc-value b { font-style: normal; font-weight: 500; transition: opacity .45s var(--ease); }
.doc-value i { position: absolute; right: 0; color: var(--ink-3); }
.doc-value b { opacity: 0; color: var(--ink); }
.doc-card li.is-open .doc-value b { color: var(--ink-3); }
.story[data-step="tk-doc"] .doc-value i { opacity: 0; transition-delay: calc(var(--d) * .5s + .6s); }
.story[data-step="tk-doc"] .doc-value b { opacity: 1; transition-delay: calc(var(--d) * .5s + .75s); }
.doc-source { grid-column: 1 / -1; font: 400 .66rem/1.3 var(--font-mono); color: var(--ink-3); }
.doc-source::before { content: "↳ "; }
.doc-foot { margin: .55rem 0 0; font-family: var(--font-voice); font-size: .85rem; color: var(--ink-2); }

/* ---------- Trades, conversations, trials on the map ---------- */

.trade-pick {
  position: relative; display: inline-flex; align-items: center; gap: .35rem;
  margin-right: .6rem; padding: .3rem .55rem .3rem .5rem;
  border: 1px solid var(--line); border-radius: 9px; color: var(--ink);
}
.trade-pick .ms { font-size: 1rem; color: var(--ink-2); }
.trade-pick select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit;
  font: 500 .84rem/1.2 var(--font-brand); padding-right: 1.1rem; cursor: pointer;
}
.trade-pick::after { content: "\e5cf"; font-family: 'Material Symbols Outlined'; position: absolute; right: .35rem; pointer-events: none; color: var(--ink-3); }
.trade-pick select:focus-visible { outline: none; }
.trade-pick:focus-within { outline: 2px solid var(--action); outline-offset: 2px; }
.rail { align-items: center; }

.map-wrap .map-canvas, .map-wrap .map-labels { transition: opacity .3s var(--ease); }
.map-wrap.is-switching .map-canvas, .map-wrap.is-switching .map-labels { opacity: 0; }

.pin .badge circle { fill: var(--ink-2); }
.pin .badge text { font-family: var(--font-brand); font-size: 7.5px; font-weight: 600; fill: var(--bg); text-anchor: middle; dominant-baseline: central; }
.pin.is-trial .disc { stroke: var(--action); stroke-dasharray: 2.4 2; stroke-width: 1.3; }
.pin.is-trial .icon { fill: var(--action); }

.tip-thread { display: flex; align-items: center; gap: .35rem; margin-top: .45rem !important; font-size: .78rem; color: var(--ink-2); }
.tip-thread .ms { font-size: .95rem; color: var(--ink-3); }
.tip-trial { margin-top: .45rem !important; font: 600 .68rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--action); }

.text-page {
  max-width: 44rem; margin: 0 auto; box-sizing: border-box;
  padding: 120px var(--gutter) 80px;
}
.text-page .headline { margin-bottom: 2.4rem; }
.text-page section + section { margin-top: 1.8rem; }
.text-page h2 { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 600; }
.text-page p { margin: 0 0 .5rem; font-family: var(--font-voice); font-size: 1.02rem; line-height: 1.55; color: var(--ink-2); }
.text-page a { color: var(--ink); }
.text-page .text-page-foot { margin-top: 2.6rem; font-family: var(--font-mono); font-size: .75rem; color: var(--ink-3); }

/* ---------- Cards that accompany a step ---------- */

.story-card {
  position: absolute; left: var(--gutter); bottom: 28px; z-index: 2;
  width: min(340px, calc(100% - 32px)); box-sizing: border-box; padding: .85rem 1rem .85rem;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .16); text-align: left;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.story-card.is-shown { opacity: 1; transform: none; }
.story-card .card-title { display: flex; align-items: center; gap: .4rem; margin: 0 0 .55rem; font-weight: 600; font-size: .9rem; }
.story-card .card-title .ms { font-size: 1.05rem; color: var(--ink-2); }
.story-card ul { list-style: none; margin: 0; padding: 0; }
.story-card li { padding: .42rem 0; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-2); }
.story-card .who { display: block; font: 500 .68rem/1.3 var(--font-mono); color: var(--ink-3); }
.story-card .said { font-family: var(--font-voice); font-size: .9rem; color: var(--ink); }
.story-card .row { display: flex; justify-content: space-between; gap: 1rem; }
.story-card .row b { font: 500 .74rem/1.4 var(--font-mono); color: var(--ink); text-align: right; }
.story-card li.is-done { color: var(--ink-3); }
.story-card li.is-due b { color: var(--warn-text); }
.story-card .card-foot { margin: .6rem 0 0; font-family: var(--font-voice); font-size: .85rem; color: var(--ink-2); }
.story-card .attach { display: inline-flex; align-items: center; gap: .3rem; margin-top: .5rem; padding: .3rem .5rem; border: 1px solid var(--line); border-radius: 7px; font-size: .74rem; }
.story-card .attach .ms { font-size: .95rem; color: var(--ink-3); }
.story-card .reply { display: inline-block; margin-top: .6rem; padding: .4rem .8rem; border-radius: 999px; background: var(--action); color: var(--action-ink); font-size: .78rem; font-weight: 500; }
.story-card .letterhead { display: flex; align-items: center; gap: .5rem; padding-bottom: .5rem; margin-bottom: .5rem; border-bottom: 2px solid var(--action); font-size: .78rem; font-weight: 600; }
.story-card .letterhead i { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 5px; background: var(--action); color: var(--action-ink); font-style: normal; font-size: .7rem; }
/* The partner's home (Communication, 21/10/2026): one thing raised, the rest one line each. */
.partner-card .partner-next { display: grid; gap: .25rem; margin: 0 0 .5rem; padding: .65rem .75rem .75rem; border-radius: 9px; background: var(--bg); box-shadow: 0 6px 18px rgba(0, 0, 0, .10); }
.partner-card .partner-late { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 600; color: var(--hot); }
.partner-card .partner-late .ms { font-size: .95rem; }
.partner-card .partner-next b { font-size: .92rem; font-weight: 600; color: var(--ink); }
.partner-card .partner-next .reply { justify-self: start; margin-top: .3rem; }
.partner-card .row b { flex: 1; text-align: left; font-family: inherit; font-weight: 500; font-size: .8rem; line-height: 1.35; }
.partner-card .row em { font-style: normal; font-size: .76rem; white-space: nowrap; }
.partner-card .row em.is-act { font-weight: 600; color: var(--action); }
.partner-card .row em.is-quiet { color: var(--ink-3); }

/* ---------- Load band ---------- */

.load-band { grid-row: 4; width: 100%; max-width: 64rem; margin: .6rem auto 0; text-align: left; }
.lb-title { margin: 0 0 .4rem; font: 500 .66rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.lb-grid { display: grid; grid-template-columns: 3.4rem 1fr; gap: .25rem .6rem; align-items: end; }
.lb-name { font-size: .8rem; font-weight: 500; color: var(--ink-2); padding-bottom: .1rem; }
.lb-row { display: grid; grid-template-columns: repeat(13, 1fr); gap: 3px; height: clamp(26px, 4.6svh, 44px); align-items: end; }
.lb-col { position: relative; height: 100%; display: flex; align-items: flex-end; }
.lb-row::before { content: none; }
.lb-bar { width: 100%; border-radius: 3px 3px 1px 1px; transition: height .7s var(--ease), background-color .4s; }
.lb-bar.is-ok { background: var(--lvl-ok); }
.lb-bar.is-watch { background: var(--lvl-watch); }
.lb-bar.is-over { background: var(--lvl-over); }
.lb-bar.is-beyond { background: repeating-linear-gradient(45deg, var(--lvl-beyond) 0 3px, color-mix(in srgb, var(--lvl-beyond) 45%, transparent) 3px 6px); }
.lb-axis { height: auto; }
.lb-axis .lb-col { font: 400 .62rem/1.2 var(--font-mono); color: var(--ink-3); white-space: nowrap; }
.lb-legend { display: flex; flex-wrap: wrap; gap: .9rem; margin: .5rem 0 0; font-size: .74rem; color: var(--ink-2); }
.lb-key i { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; margin-right: .3rem; vertical-align: -1px; }
.lb-key.is-ok i { background: var(--lvl-ok); }
.lb-key.is-watch i { background: var(--lvl-watch); }
.lb-key.is-over i { background: var(--lvl-over); }
.lb-key.is-beyond i { background: repeating-linear-gradient(45deg, var(--lvl-beyond) 0 3px, color-mix(in srgb, var(--lvl-beyond) 45%, transparent) 3px 6px); }
.lb-peak { margin: .35rem 0 0; font: 500 .78rem/1.3 var(--font-mono); color: var(--ink-2); }
.lb-peak.is-beyond { color: var(--hot); }
.lb-bar.is-nocap { outline: 1.5px solid var(--lvl-beyond); outline-offset: -1.5px; }

/* ---------- The product: three tiers, by what sets cadänce apart ---------- */

.product-page { max-width: 72rem; margin: 0 auto; padding: 120px var(--gutter) 40px; box-sizing: border-box; }
.back-link { display: inline-block; margin-bottom: 1.6rem; font-size: .86rem; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.back-link::before { content: "← "; }
.back-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.rest-head { text-align: center; margin-bottom: 4.4rem; }
.rest-head .voice { margin-top: 1.2rem; }

/* Tier 1: the core — map, taïko, trials — the name large, one line of proof. */
.leads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem; }
.lead { border-top: 2px solid var(--ink); padding-top: 1.4rem; }
/* On every tier, the icon sits on the name's line, one shade lighter than the name:
   it goes with the name, it does not compete. No colour: colour belongs to states. */
.lead h2, .second h2, .chapter h3 { display: flex; align-items: center; gap: .45rem; }
.lead h2 .ms { font-size: .72em; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
.lead h2 { margin: 0; font-size: clamp(1.8rem, 2.9vw, 2.4rem); font-weight: 600; line-height: 1.05; letter-spacing: -.03em; }
.lead-claim { margin: .5rem 0 .9rem; font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 500; line-height: 1.25; letter-spacing: -.015em; color: var(--ink-2); }
.lead-line { margin: 0; font-family: var(--font-voice); font-size: 1.08rem; line-height: 1.5; color: var(--ink-2); }
.lead-proof { margin: .8rem 0 0; font: 400 .8rem/1.5 var(--font-mono); color: var(--ink-2); }

/* Three columns need room: below that, the core stacks. */
@media (max-width: 1000px) { .leads { grid-template-columns: 1fr; gap: 2.8rem; } }

/* Tier 2: what plugs into the core and has its own page. */
.seconds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.2rem; margin-top: 4.4rem; }
.second { border-top: 1px solid var(--line); padding-top: 1.2rem; transition-delay: calc(var(--d, 0) * .15s); }
.second h2 .ms { font-size: .95em; font-weight: 400; color: var(--ink-3); }
.second h2 { margin: 0 0 .4rem; font-size: 1.35rem; font-weight: 600; letter-spacing: -.015em; }
.second .lead-proof { margin-top: .6rem; font: 400 .76rem/1.5 var(--font-mono); }
.second p { margin: 0; font-family: var(--font-voice); font-size: 1.02rem; line-height: 1.5; color: var(--ink-2); }

/* Tier 3: the rest, briefly. */
.rest-block { margin-top: 5rem; }
.rest-title { margin: 0 0 1.8rem; font-size: 1.35rem; font-weight: 600; letter-spacing: -.015em; }
.chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem 2.6rem; }
.chapter { border-top: 1px solid var(--line); padding-top: 1.1rem; transition-delay: calc(var(--d, 0) * .12s); }
.chapter h3 .ms { font-size: 1.05em; font-weight: 400; color: var(--ink-3); }
.chapter h3 { margin: 0 0 .3rem; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.chapter p { margin: 0; font-family: var(--font-voice); font-size: .92rem; line-height: 1.45; color: var(--ink-2); }
.chapter .proof { margin-top: .45rem; font: 400 .74rem/1.4 var(--font-mono); color: var(--ink-3); }
.chapter-link { display: inline-block; margin-top: .6rem; font-size: .86rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.chapter-link::after { content: " →"; }
.chapter-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.next-page { display: inline-block; margin-top: 2.2rem; font-size: 1rem; }

.story-card.is-right { left: auto; right: var(--gutter); }
.conseq li { opacity: 0; transform: translateY(6px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.conseq.is-shown li { opacity: 1; transform: none; transition-delay: calc(var(--d, 0) * .45s + .3s); }
.conseq li b { display: block; font: 500 .8rem/1.35 var(--font-mono); color: var(--ink); }
.conseq .cause { display: block; font-size: .72rem; color: var(--ink-3); }
.conseq .cause::before { content: "↳ "; }
.story-card .acts { margin: .6rem 0 .2rem; }
.story-card .acts li { padding: .35rem 0; }
.story-card .drop { display: inline-block; margin-top: .4rem; font-size: .78rem; color: var(--hot); }
.story-card .buttons { display: flex; gap: .4rem; flex-wrap: wrap; margin: .4rem 0 0; }
.story-card .reply.is-quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }

.conseq .acts-block {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .6s var(--ease), opacity .5s var(--ease), margin .5s var(--ease), padding .5s var(--ease);
}
.story[data-step="tr-decide"] .conseq .acts-block {
  max-height: 16rem; opacity: 1; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line);
}
.acts-block .acts-menu { display: flex; align-items: center; gap: .35rem; margin: .55rem 0 0; font-size: .78rem; color: var(--ink-2); }
.acts-block .acts-menu .ms { font-size: .95rem; color: var(--ink-3); }

.conseq { max-height: calc(100svh - 110px); overflow: auto; }
.mini { display: block; width: 100%; height: auto; margin: .35rem 0 .15rem; overflow: visible; }
.mini text { font-family: var(--font-mono); font-size: 8px; fill: var(--ink-3); }
.mini .base { stroke: var(--line); stroke-width: 1; }
.mini .deadline { stroke: var(--ink); stroke-width: 1.2; }
.mini .anim {
  fill: var(--c0);
  transform-box: fill-box; transform-origin: left center;
  transition: transform 1.3s var(--ease), fill .8s var(--ease);
  transition-delay: calc(var(--d, 0) * .45s + .9s);
}
.mini .anim.grow { transform-origin: center bottom; }
.conseq.is-shown .mini .anim { transform: var(--to); fill: var(--c1); }

/* ---------- Trials: the map and its glass ---------- */

.glass-scene { width: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.glass-scene svg { width: 100%; height: 100%; max-height: 100%; display: block; overflow: visible; }
@media (min-width: 1100px) { .glass-scene { padding-right: 360px; box-sizing: border-box; } }
/* On a phone the panel sits under the scene: it gives the scene the upper part of the screen. */
@media (max-width: 700px) { .stage .story-card.conseq { max-height: 34svh; } }
.gl-plate { fill: var(--bg-elev); stroke: var(--line); stroke-width: 1; }
.gl-edge { fill: var(--map-track); }
.gl-edge.is-side { opacity: .7; }
.gl-month-line { stroke: var(--map-grid); stroke-width: 1; }
.gl-month { font: 500 13px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; fill: var(--ink-3); }
.gl-lane { font: 600 17px var(--font-brand); fill: var(--ink); }
.gl-ph { stroke: var(--phase); stroke-width: 6; stroke-linecap: round; }
.gl-ph.is-gesture { stroke: var(--action); }
.gl-ph.is-follow { stroke: var(--map-bar-strong); }
.gl-ph-name { font: 400 13px var(--font-mono); fill: var(--ink-3); }
.gl-pin { fill: var(--pin-bg); stroke: var(--pin-line); stroke-width: 1.2; transition: fill .5s, stroke .5s; }
.gl-pin.is-hot { fill: var(--hot); stroke: var(--hot); }
.gl-pin.is-ok { fill: var(--lvl-ok); stroke: var(--lvl-ok); }
.gl-pin-name { font: 500 15px var(--font-brand); fill: var(--ink-2); transition: fill .5s; }
.gl-pin-name.is-hot { fill: var(--hot); }
.gl-pin-name.is-ok { fill: var(--lvl-ok); }
.gl-clash { stroke: var(--hot); stroke-width: 1.2; stroke-dasharray: 3 3; transition: opacity .5s var(--ease); }
.gl-glass-plate { fill: var(--action); fill-opacity: .04; stroke: var(--action); stroke-width: 1.2; stroke-dasharray: 5 4; }
.gl-drop { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 3; }
.gl-who { font: 500 13px var(--font-brand); letter-spacing: .12em; text-transform: uppercase; fill: var(--ink-3); }
.gl-fx, .gl-slide { transition: opacity .5s var(--ease), transform 1s var(--ease); transform-box: view-box; transform-origin: 0 0; }
.gl-fx.is-gone, .gl-slide.is-gone { opacity: 0; }
html[data-motion="reduced"] .gl-fx, html[data-motion="reduced"] .gl-slide { transition: none; }
/* Marc's side of the panel: who sent it, and his answer. */
.conseq .recv, .conseq .answer { display: none; }
.story[data-step="tr-send"] .conseq .recv, .story[data-step="tr-pass"] .conseq .recv { display: block; margin: .6rem 0 0; font-size: .78rem; color: var(--ink-2); }
.story[data-step="tr-send"] .conseq .answer, .story[data-step="tr-pass"] .conseq .answer { display: flex; }
/* An AI's proposal: who it is for, and the two gestures only a person makes. */
.conseq .recv-ai, .conseq .ai-acts { display: none; }
.story[data-step="tr-ai"] .conseq .recv-ai { display: block; margin: .6rem 0 0; font-size: .78rem; color: var(--ink-2); }
.story[data-step="tr-ai"] .conseq .ai-acts { display: flex; }
.conseq .answer .is-pressed { background: var(--action); color: var(--action-ink); border-color: var(--action); }

/* ---------- Demo request ---------- */

.demo-dialog {
  width: min(460px, calc(100vw - 32px)); max-height: calc(100svh - 32px); box-sizing: border-box;
  padding: 1.4rem 1.5rem 1.2rem; border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg-elev); color: var(--ink); box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}
.demo-dialog::backdrop { background: rgba(6, 8, 12, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.demo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.demo-head h2 { margin: 0; font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.demo-x { border: 0; background: none; color: var(--ink-3); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 .2rem; }
.demo-intro { margin: .4rem 0 1rem; font-family: var(--font-voice); color: var(--ink-2); }
.demo-field { margin: 0 0 .75rem; }
.demo-field label { display: block; margin-bottom: .3rem; font-size: .8rem; font-weight: 500; color: var(--ink-2); }
.demo-field input, .demo-field select, .demo-field textarea {
  width: 100%; box-sizing: border-box; padding: .6rem .7rem;
  border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink);
  font: 400 .95rem/1.3 var(--font-brand);
}
.demo-field textarea { resize: vertical; }
.demo-field input:focus-visible, .demo-field select:focus-visible, .demo-field textarea:focus-visible { outline: 2px solid var(--action); outline-offset: 1px; }
.demo-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.demo-status { min-height: 1.3em; margin: .3rem 0 .6rem; font-size: .85rem; color: var(--ink-2); }
.demo-status.is-bad { color: var(--hot); }
.demo-status a { color: var(--ink); font-weight: 500; }
.demo-status.is-good { color: var(--ink); font-weight: 500; }
.demo-foot { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.demo-note { margin: 0; font-size: .75rem; color: var(--ink-3); }
.demo-note a { color: var(--ink-2); }
.demo-form.is-sent .demo-field, .demo-form.is-sent .demo-foot, .demo-form.is-sent .demo-intro { display: none; }

/* ---------- Header on small screens ---------- */

.cta-short { display: none; }
.header-actions { position: relative; }

/* ---------- Narrow screens ---------- */

@media (max-width: 700px) {
  :root { --label-w: 84px; }
  .map-label.is-project { font-size: .72rem; }
  .map-label.is-phase { padding-left: .4rem; font-size: .62rem; }
  .map-anchor { font-size: .7rem; right: 4px; top: auto; bottom: 4px; padding: .35rem .55rem; flex-wrap: nowrap; }
  .map-anchor .anchor-detail { display: none; }
  .rail-sep { display: none; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .brand { font-size: .98rem; }
  .brand svg { width: 28px; height: 19px; }
  .header-actions { gap: .4rem; }
  .site-nav { margin-right: .2rem; }
  .site-nav a { font-size: .84rem; white-space: nowrap; }
  .scroll-cue { display: none; }
  .lb-grid { grid-template-columns: 2.6rem minmax(0, 1fr); gap: .25rem .4rem; }
  .lb-row { gap: 2px; }
  .lb-axis .lb-col { font-size: .52rem; overflow: visible; }
  .lb-axis .lb-col:nth-child(4n+3) { visibility: hidden; }
  .lb-name { font-size: .72rem; }
  .lb-legend { gap: .6rem; font-size: .7rem; }
  .story-card, .story-card.is-right, .doc-card {
    left: 8px; right: 8px; bottom: 8px; width: auto;
    max-height: 48svh; overflow: auto; padding: .7rem .8rem;
  }
  .story-card .card-title { font-size: .85rem; }
  .trade-pick { flex-basis: 100%; justify-content: center; margin: 0 0 .2rem; border: 0; }
  .memory-grid { grid-template-columns: 1fr; }
  .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leads, .seconds { grid-template-columns: 1fr; gap: 2.8rem; }
  .seconds { margin-top: 3.2rem; }
  .rest-block { margin-top: 3.6rem; }
  .chapters { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 1.4rem; }
  .footer-brand { grid-column: 1 / -1; }
  .landing-lists { grid-template-columns: 1fr; }
  .money-state { grid-template-columns: 1fr; row-gap: .35rem; }
  .ms-label.is-top { grid-area: 1 / 1; }
  .ms-track.is-top { grid-area: 2 / 1; margin-bottom: .5rem; }
  .ms-label.is-bottom { grid-area: 3 / 1; }
  .ms-track.is-bottom { grid-area: 4 / 1; }
  .ms-bounds { display: none; }
  .ms-axis { grid-area: 5 / 1; }
  .ms-legend { grid-area: 6 / 1; }
  .money-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .money-journal { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
  .mj-list { max-height: 19rem; }
  .money-table { font-size: .74rem; }
  .money-table th, .money-table td { padding: .4rem .3rem; }
  .ratio-months { gap: .5rem; }
  .readouts .ratios { display: block; }
  .stage { padding-top: 68px; }
  .stage-copy { min-height: clamp(11rem, 36svh, 15rem); }
  .headline { font-size: clamp(1.45rem, 6.6vw, 2rem); }
  .voice { font-size: .98rem; margin-top: .7rem; }
  .kicker { margin-bottom: .6rem; }
  .rail { gap: .35rem .9rem; }
  .rail button { font-size: .8rem; }
  .header-actions .btn-primary { padding: .5rem .8rem; font-size: .8rem; }
  .readouts { grid-template-columns: 1fr; gap: .35rem; }
  .readout { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
  .readout .value { margin: 0; font-size: 1rem; text-align: right; }
  .trial-hint { font-size: .9rem; }
}

/* ---------- Principles (fr/principes) ---------- */
.principles .principle { max-width: 46rem; margin: 0 auto 4.6rem; text-align: left; }
.principles .principle .rest-title { margin-bottom: 1rem; }
.principle-answer { margin: 0; font-family: var(--font-voice); font-size: clamp(1.02rem, 1.25vw, 1.14rem); line-height: 1.6; color: var(--ink-2); }
.principle-scene { margin: 2.2rem -6rem 0; }
.principle-scene svg { display: block; width: 100%; height: auto; }
.principle-scene figcaption { margin: 1rem 6rem 0; font-family: var(--font-voice); font-size: .98rem; line-height: 1.5; color: var(--ink-3); text-align: center; }
.principle-scene figcaption span { transition: color .6s var(--ease); }
.principle-scene figcaption span.is-now { color: var(--ink); }
.principle-conclusion .rest-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.principle-refs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 2.6rem; margin-top: 1.6rem; }
.principle-ref h3 { margin: 0 0 .45rem; font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; }
.principle-ref p { margin: 0; font-family: var(--font-voice); font-size: .98rem; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 860px) {
  .principle-scene { margin-left: 0; margin-right: 0; }
  .principle-scene figcaption { margin-left: 0; margin-right: 0; }
  .principle-refs { grid-template-columns: 1fr; }
}
.principle-link { margin: 2.4rem auto 0; text-align: center; }
.principle-link a { color: var(--action); }

/* Connections (12/10/2026): a row per connection — its words on the left, its drawing on the right.
   cadänce in its colour with its symbol; every outside party neutral, with its icon; the means on the arrow. */
.connections .cx-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3.2rem; align-items: center; margin: 0 0 4.2rem; }
.connections .cx-row .rest-title { margin-bottom: .8rem; }
.connections .cx-fig { margin: 0; }
.cx-mini { display: block; width: 100%; height: auto; overflow: visible; }
.cx-mini .cx-loop, .cx-mini .cx-way { fill: none; stroke-width: 2; stroke: var(--ink-3); }
.cx-mini .cx-way { stroke-dasharray: 5 5; }
.cx-mini .cx-tip-loop, .cx-mini .cx-tip-way { fill: var(--ink-3); }
.cx-mini .cx-us { fill: var(--bg-elev); stroke: var(--action); stroke-width: 2.5; }
.cx-mini .cx-us-mark { color: var(--ink); }
.cx-mini .cx-them { fill: var(--bg-elev); stroke: var(--line); stroke-width: 1.5; }
.cx-mini .cx-icon { font-family: 'Material Symbols Outlined'; font-size: 26px; fill: var(--ink-2); }
.cx-mini .cx-name { font-family: var(--font-brand); font-size: 19px; font-weight: 600; fill: var(--ink-2); }
.cx-mini .cx-name.is-us { fill: var(--action); }
.cx-mini .cx-say { font-family: var(--font-voice); font-size: 17px; fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round; }
.connections .principle-answer strong { font-weight: 600; color: var(--ink); }
.cx-mini .cx-sub { font-family: var(--font-voice); font-size: 15px; fill: var(--ink-3); }
@media (max-width: 640px) { .connections .cx-row { grid-template-columns: 1fr; } }
