/* Quant8. One sans, the brand's purple ink on its lavender white, blue for a link and one orange for the one action.
   Small type, hairlines, rounded cards. Light and dark from the same tokens. No request leaves the site. */

@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
}
@property --t { syntax: "<number>"; inherits: true; initial-value: 86; }

:root {
  color-scheme: light dark;
  --bg: light-dark(#f9f8fd, #0c0226);
  --card: light-dark(#ffffff, #1a0f40);
  --wash: light-dark(#f0eef8, #140935);
  --fg: light-dark(#100231, #f2f1fa);
  --mut: light-dark(rgb(16 2 49 / 0.68), rgb(242 241 250 / 0.7));
  --faint: light-dark(rgb(16 2 49 / 0.56), rgb(242 241 250 / 0.54));
  --line: light-dark(rgb(16 2 49 / 0.11), rgb(242 241 250 / 0.14));
  --dot: light-dark(rgb(16 2 49 / 0.13), rgb(242 241 250 / 0.11));
  --blue: light-dark(#03509e, #7cc4fa);
  --ok: light-dark(#1d7a4c, #5fd39a);
  --act: #fa9a03;
  --act-over: #ffb13b;
  --act-ink: #100231;
  --deep: #0a0830;
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --frame: 1100px;
  --pad: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; scrollbar-gutter: stable both-edges; }
body {
  margin: 0; background: var(--bg); color: var(--fg); overflow-x: clip;
  font: 400 0.92rem/1.5 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
b, strong { font-weight: 560; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 0; z-index: 60; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; top: 8px; }
.glyph { width: 20px; height: 20px; flex: none; }

/* ── Buttons ── */
.button {
  display: inline-flex; align-items: center; gap: 0.5em; white-space: nowrap; cursor: pointer;
  font: 500 0.94rem/1 var(--sans); letter-spacing: -0.005em; color: var(--fg); text-decoration: none;
  padding: 0.72em 1.2em; border-radius: 8px; border: 1px solid var(--line); background: var(--card);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.button:hover { border-color: var(--faint); }
.button:active { transform: translateY(1px); }
.button-solid { background: var(--act); color: var(--act-ink); border-color: rgb(16 2 49 / 0.14); }
.button-solid:hover { background: var(--act-over); border-color: rgb(16 2 49 / 0.2); }
.button span[aria-hidden] { transition: translate 0.2s var(--ease); }
.button:hover span[aria-hidden] { translate: 2px 0; }

/* ── The bar: plain at the top of a page, a floating card once the page moves under it ── */
.bar {
  position: sticky; top: 10px; z-index: 30; margin: 10px auto 0;
  width: min(calc(var(--frame) + 64px), calc(100% - 24px));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 8px 8px 8px 32px; border: 1px solid transparent; border-radius: 16px;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.bar.is-floating {
  background: color-mix(in srgb, var(--card) 78%, transparent); border-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 8px 30px -18px rgb(10 8 48 / 0.4);
}
.wordmark { display: inline-flex; align-items: center; gap: 9px; justify-self: start; font-weight: 560; font-size: 1.04rem; letter-spacing: -0.02em; text-decoration: none; }
.mark { width: 22px; height: 21px; flex: none; }
.bar-nav { display: flex; align-items: center; gap: 2px; }
.nav-top {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; text-decoration: none;
  font: 400 0.84rem/1.5 var(--sans); color: var(--fg); background: none; border: 0; border-radius: 8px; padding: 6px 11px;
  transition: background 0.15s;
}
.nav-top:hover, .nav-group:hover > .nav-top, .nav-top[aria-expanded="true"] { background: color-mix(in srgb, var(--fg) 7%, transparent); }
.nav-top[aria-current] { font-weight: 540; }
.chev { width: 5px; height: 5px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; rotate: 45deg; translate: 0 -2px; opacity: 0.7; transition: rotate 0.2s var(--ease), translate 0.2s var(--ease); }
.nav-group { position: relative; }
.nav-group:hover .chev, .nav-top[aria-expanded="true"] .chev { rotate: 225deg; translate: 0 1px; }
.nav-drop {
  position: absolute; top: calc(100% + 14px); left: 50%; width: 540px; translate: -50% 6px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px -28px rgb(10 8 48 / 0.5);
  opacity: 0; visibility: hidden; transition: opacity 0.18s, translate 0.25s var(--ease), visibility 0.18s;
}
.nav-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-group:hover .nav-drop, .nav-group:focus-within .nav-drop, .nav-top[aria-expanded="true"] + .nav-drop { opacity: 1; visibility: visible; translate: -50% 0; }
.drop-stack { display: grid; gap: 8px; }
.drop-tile { display: grid; align-content: start; gap: 4px; padding: 14px; border-radius: 10px; background: var(--wash); text-decoration: none; transition: background 0.15s; }
.drop-tile:hover, .drop-tile[aria-current] { background: color-mix(in srgb, var(--fg) 9%, var(--wash)); }
.drop-tile b { font-size: 0.88rem; }
.drop-tile span { font-size: 0.8rem; line-height: 1.4; color: var(--mut); }
.drop-big { align-content: end; }
.drop-art { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: auto; border-radius: 10px; background: color-mix(in srgb, var(--act) 20%, transparent); color: color-mix(in srgb, var(--act) 55%, var(--fg)); }
.drop-big { grid-template-rows: 1fr auto auto; min-height: 168px; }
.bar-end { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.bar .button { font-size: 0.8rem; padding: 0.7em 1.1em; }
.bar-menu { display: none; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--fg); cursor: pointer; }
.bar-menu::before { content: ""; width: 15px; height: 6px; border-top: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; }
.bar-menu:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }

/* ── The first screen: a painting on an inset card, the words, then a dark window ── */
.hero {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  max-width: calc(var(--frame) + 140px); margin: 8px auto 0; padding: 64px 32px 60px; border-radius: 22px;
}
.hero-windowed { padding-bottom: 44px; }
.hero-painting { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
/* The veil is the page's own ground, heaviest where the words sit, so the painting is calm behind them. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, light-dark(rgb(249 248 253 / 0.8), rgb(16 2 49 / 0.8)), light-dark(rgb(249 248 253 / 0.62), rgb(16 2 49 / 0.62)) 52%, light-dark(rgb(249 248 253 / 0.3), rgb(16 2 49 / 0.44)));
}
.hero-copy { display: grid; justify-items: center; }
.pills { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--bg) 66%, transparent); }
.pills a { font-size: 0.78rem; line-height: 1.5; padding: 4px 12px; border-radius: 999px; text-decoration: none; white-space: nowrap; transition: background 0.15s; }
.pill-short { display: none; }
.pills a:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.pills a[aria-current] { background: var(--fg); color: var(--bg); }
h1 { font-size: clamp(2.05rem, 4.4vw, 2.7rem); font-weight: 560; line-height: 1.04; letter-spacing: -0.035em; max-width: 17ch; text-wrap: balance; }
.lede { font-size: 1rem; line-height: 1.5; color: var(--mut); max-width: 34rem; margin-top: 14px; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.hero .actions .button:not(.button-solid) { background: light-dark(#100231, rgb(242 241 250 / 0.1)); color: #f2f1fa; border-color: rgb(255 255 255 / 0.14); }
.hero .actions .button:not(.button-solid):hover { background: light-dark(#231250, rgb(242 241 250 / 0.16)); }

.window {
  color-scheme: dark; color: var(--fg); position: relative; text-align: left;
  width: min(100%, 880px); margin: 40px auto 26px; padding: 5px; border-radius: 14px;
  background: #07051f; border: 1px solid rgb(255 255 255 / 0.12); box-shadow: 0 34px 70px -32px rgb(10 8 48 / 0.7);
}
.pane { position: relative; height: clamp(300px, 42vw, 400px); border-radius: 10px; overflow: hidden; background: radial-gradient(var(--dot) 1px, transparent 1.5px) 0 0 / 14px 14px, #0d0a33; }
.tabs {
  position: absolute; left: 50%; bottom: -5px; translate: -50% 50%; z-index: 2; display: flex; gap: 2px; padding: 4px;
  border-radius: 12px; background: rgb(20 16 56 / 0.92); border: 1px solid rgb(255 255 255 / 0.12); box-shadow: 0 12px 30px -10px rgb(0 0 0 / 0.6);
}
.tabs button {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; cursor: pointer;
  font: 500 0.8rem/1.4 var(--sans); color: rgb(242 241 250 / 0.64); background: none; border: 0; border-radius: 8px; padding: 6px 12px;
}
.tabs button:hover { color: #f2f1fa; }
.tabs button .glyph { width: 15px; height: 15px; }
.tabs button[aria-selected="true"] { color: #ffc46b; background: rgb(250 154 3 / 0.13); }
.tabs button[aria-selected="true"]::before { content: ""; position: absolute; inset: 0; background: rgb(250 154 3 / 0.16); transform-origin: left; scale: 0 1; }
.window.is-playing .tabs button[aria-selected="true"]::before { animation: tab-fill var(--turn, 9s) linear forwards; }
@keyframes tab-fill { to { scale: 1 1; } }

/* ── A section: a chip, a heading beside its one line, then what it shows ── */
.sec { max-width: calc(var(--frame) + 2 * var(--pad)); margin-inline: auto; padding: 72px var(--pad); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 540; line-height: 1.5; padding: 4px 10px; border-radius: 8px; background: color-mix(in srgb, var(--tint) 14%, transparent); color: color-mix(in srgb, var(--tint) 64%, var(--fg)); }
.chip .glyph { width: 14px; height: 14px; }
.tint-blue { --tint: #3b82f6; } .tint-violet { --tint: #8b5cf6; } .tint-green { --tint: #16a34a; } .tint-amber { --tint: #d97706; }
.sec-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 16px 48px; align-items: end; margin-top: 16px; }
h2 { font-size: 1.68rem; font-weight: 560; line-height: 1.1; letter-spacing: -0.03em; max-width: 21ch; text-wrap: balance; }
h2 span { display: block; color: var(--faint); }
.sec-aside p { color: var(--mut); text-wrap: pretty; }
.sec-aside .more { margin-top: 10px; }
.sec-aside .when { color: var(--fg); font-weight: 540; margin-bottom: 6px; }
.more a { font-size: 0.86rem; font-weight: 540; color: var(--fg); text-decoration: none; }
.more a:hover { text-decoration: underline; text-underline-offset: 3px; }
h3 { font-size: 0.94rem; font-weight: 560; line-height: 1.4; letter-spacing: -0.01em; }

.stage {
  position: relative; height: 360px; margin-top: 32px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px;
  background: radial-gradient(var(--dot) 1px, transparent 1.5px) 0 0 / 14px 14px, var(--wash);
}
.points { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 36px; }
.points .glyph { display: block; margin-bottom: 14px; }
.points h3 { margin-bottom: 6px; }
.points p { font-size: 0.86rem; color: var(--mut); max-width: 34ch; }
.instead { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--mut); }
.instead b, .instead span { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.instead b { font-weight: 540; color: var(--fg); }
.instead .glyph { width: 18px; height: 18px; }

/* Steps on a rail: a light runs along it and rests at each stop in turn. */
.rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: color-mix(in srgb, var(--card) 50%, transparent); }
.rail-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rail article { position: relative; padding: 46px 24px 26px; border-left: 1px solid var(--line); margin-left: -1px; border-bottom: 1px solid var(--line); margin-bottom: -1px; }
.rail article::before { content: ""; position: absolute; left: 0; right: 0; top: 20px; height: 1px; background: var(--line); }
.rail article { --lit: 0; }
.rail.on { animation: clock var(--len, 6s) linear infinite; }
.rail.on article { --lit: clamp(0, min((var(--t) - var(--s)) / 2, (var(--e) - var(--t)) / 2), 1); }
.stop { position: absolute; left: 24px; top: 15px; width: 11px; height: 11px; border-radius: 50%; background: color-mix(in srgb, var(--act) calc(var(--lit) * 100%), var(--bg)); border: 1.5px solid color-mix(in srgb, var(--act) calc(var(--lit) * 100%), var(--mut)); box-shadow: 0 0 0 calc(var(--lit) * 5px) rgb(250 154 3 / 0.18); }
.rail .n { font: 500 0.72rem/1.5 var(--mono); color: color-mix(in srgb, color-mix(in srgb, var(--act) 60%, var(--fg)) calc(var(--lit) * 100%), var(--faint)); margin-bottom: 8px; }
.rail h3 { font-size: 1.04rem; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 6px; }
.rail article > p:last-child { font-size: 0.86rem; color: var(--mut); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: grid; align-content: start; gap: 8px; padding: 14px 14px 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--wash); text-decoration: none; transition: background 0.2s, border-color 0.2s; }
.card > :not(.card-art) { margin-inline: 6px; }
.card:not(:has(.card-art)) { padding-top: 22px; }
a.card:hover { border-color: var(--faint); }
.card-art { position: relative; height: 190px; margin-bottom: 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(var(--dot) 1px, transparent 1.5px) 0 0 / 14px 14px, color-mix(in srgb, var(--card) 45%, var(--wash)); }
.tag { justify-self: start; font-size: 0.7rem; font-weight: 540; line-height: 1.5; padding: 1px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--mut); background: var(--bg); }
.card h3 { display: flex; align-items: center; gap: 9px; font-size: 1.04rem; font-weight: 500; letter-spacing: -0.015em; }
.card h3 .glyph { width: 18px; height: 18px; color: var(--mut); }
.card p:not(.tag) { font-size: 0.86rem; color: var(--mut); }
.card .card-foot { margin-top: 6px; font-weight: 540; color: var(--fg) !important; }

.rows { margin-top: 32px; border-top: 1px solid var(--line); }
.rows > div { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 6px 48px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 560; letter-spacing: -0.01em; }
.rows dd { color: var(--mut); max-width: 64ch; }
.rows dd p + p { margin-top: 10px; }
.rows dd a { color: var(--blue); }

.questions { margin-top: 32px; border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; font-weight: 560; letter-spacing: -0.01em; list-style: none; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 1.5px solid var(--mut); border-bottom: 1.5px solid var(--mut); rotate: 45deg; translate: -4px -3px; transition: rotate 0.25s var(--ease), translate 0.25s var(--ease); }
.questions details[open] summary::after { rotate: 225deg; translate: -4px 2px; }
.questions details p { color: var(--mut); max-width: 64ch; padding-bottom: 18px; }
.questions details p + p { margin-top: -8px; }
.questions details .more { margin-top: -6px; }

.check { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 32px; }
.signs { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.signs li + li { border-top: 1px solid var(--line); }
.signs label { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 13px 18px; cursor: pointer; }
.signs label:hover { background: var(--wash); }
.signs input { appearance: none; flex: none; width: 18px; height: 18px; margin-top: 2px; border: 1.5px solid var(--faint); border-radius: 5px; background: var(--card); display: grid; place-content: center; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.signs input::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--act-ink); border-bottom: 2px solid var(--act-ink); rotate: -45deg; translate: 0 -1px; opacity: 0; }
.signs input:checked { background: var(--act); border-color: var(--act); }
.signs input:checked::after { opacity: 1; }
.signs input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.signs input:checked + span { color: var(--fg); }
.signs span { color: var(--mut); }
.check-result { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: 16px; background: var(--wash); padding: 22px; }
.tally { display: flex; align-items: baseline; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tally output { font-size: 2.6rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tally span { font-size: 0.86rem; color: var(--mut); }
.bands { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.bands li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; transition: background 0.2s, border-color 0.2s, opacity 0.2s; }
.bands b { font-weight: 560; font-size: 0.86rem; }
.bands span { color: var(--mut); font-size: 0.9rem; }
.check.is-used .bands li:not(.is-on) { opacity: 0.45; }
.bands li.is-on { background: var(--card); border-color: var(--line); }
.bands li.is-on span { color: var(--fg); }
/* The answers can go with a briefing request once there are answers to send. */
.check-send { display: none; margin-top: 14px; }
.check.is-used .check-send { display: block; }
.check-send .button { width: 100%; justify-content: center; white-space: normal; text-align: center; line-height: 1.25; background: var(--card); }

.table { margin-top: 32px; }
.table table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.table th, .table td { padding: 16px 24px 16px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table thead th { padding-block: 10px; font-size: 0.78rem; font-weight: 540; color: var(--mut); }
.table tbody th { font-weight: 560; letter-spacing: -0.01em; }
.table td { color: var(--mut); }
.table-note { margin-top: 14px; font-size: 0.86rem; color: var(--mut); max-width: 64ch; }

/* ── The form ── */
.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead label { display: grid; gap: 6px; font-size: 0.8rem; font-weight: 540; color: var(--mut); }
.lead .wide { grid-column: 1 / -1; }
.lead input, .lead textarea { font: 400 0.94rem/1.4 var(--sans); color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; resize: vertical; }
.lead input:hover, .lead textarea:hover { border-color: var(--faint); }
.lead input:focus-visible, .lead textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.trap { position: absolute !important; left: -9999px; }
.lead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.lead-status { font-size: 0.86rem; color: var(--mut); }
.lead-status.is-bad { color: light-dark(#a3261a, #ff9d8f); }
.lead-status.is-good { color: var(--ok); }
.lead-status a { color: inherit; }
.brief-inline { margin-top: 32px; max-width: 640px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--wash); }

dialog { color: var(--fg); border: 0; padding: 0; }
dialog::backdrop { background: rgb(10 8 48 / 0.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.brief { width: min(560px, calc(100vw - 24px)); padding: 26px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 40px 90px -30px rgb(10 8 48 / 0.6); }
.brief[open] { animation: rise 0.3s var(--ease); }
@keyframes rise { from { opacity: 0; translate: 0 10px; } }
.brief-head { position: relative; margin-bottom: 20px; padding-right: 40px; }
.brief-head h2 { font-size: 1.3rem; }
.brief-head p { color: var(--mut); margin-top: 6px; }
.menu-close { position: absolute; right: -8px; top: -8px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--mut); font: 400 1.5rem/1 var(--sans); cursor: pointer; }
.menu-close:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--fg); }

.menu { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 14px 16px 20px; background: var(--bg); }
.menu[open] { display: grid; grid-template-rows: auto 1fr auto; gap: 18px; animation: rise 0.25s var(--ease); }
.menu-head { position: relative; display: flex; align-items: center; height: 40px; padding-left: 6px; }
.menu-head .menu-close { right: 0; top: 2px; }
.menu-links { display: grid; align-content: start; gap: 8px; overflow: auto; }
.menu-links a { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--wash); text-decoration: none; }
.menu-links span { font-size: 0.84rem; color: var(--mut); }
.menu-foot .button { width: 100%; justify-content: center; padding: 1em; }

/* ── The last word on a page, and the foot ── */
.closer {
  color-scheme: dark; color: var(--fg); position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 40px;
  max-width: var(--frame); margin: 40px auto 0; padding: 40px 36px; border-radius: 16px; background: var(--deep); border: 1px solid rgb(255 255 255 / 0.08);
}
.closer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 100% 120%, rgb(250 154 3 / 0.32), rgb(135 11 32 / 0.22) 45%, transparent 75%); }
.closer h2 { font-size: 1.5rem; max-width: none; }
.closer p { color: var(--mut); max-width: 52ch; margin-top: 10px; text-wrap: pretty; }
.closer .closer-act { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 0.84rem; white-space: nowrap; }
.foot { max-width: calc(var(--frame) + 2 * var(--pad)); margin: 72px auto 0; padding: 0 var(--pad) 28px; }
.foot-line { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 560; letter-spacing: -0.03em; line-height: 1.1; color: var(--faint); max-width: 24ch; text-wrap: balance; }
.foot-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 48px 0; }
.foot-nav h2 { font-size: 0.76rem; font-weight: 500; letter-spacing: 0.02em; color: var(--faint); margin-bottom: 12px; }
.foot-nav a { display: block; width: fit-content; padding: 3px 0; font-size: 0.86rem; color: var(--mut); text-decoration: none; }
.foot-nav a:hover { color: var(--fg); }
.foot-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.76rem; color: var(--faint); }
.foot-theme { font: inherit; color: var(--mut); background: none; border: 1px solid var(--line); border-radius: 6px; padding: 0.15em 0.6em; cursor: pointer; }
.foot-theme:hover { color: var(--fg); border-color: var(--faint); }

/* ── The drawings. One clock a picture: --t runs 0 to 100 while it is in view, and rests at 86, the finished picture. ── */
.dw { position: absolute; inset: 0; font-size: 0.8rem; line-height: 1.35; color: var(--fg); }
.on > .dw { animation: clock var(--len, 9s) linear infinite; }
@keyframes clock { from { --t: 0; } to { --t: 100; } }
.dw .in { --p: clamp(0, (var(--t) - var(--a)) / 4, 1); --q: clamp(0, (var(--t) - 95) / 4, 1); opacity: calc(var(--p) - var(--q)); translate: 0 calc((1 - var(--p)) * 7px); }
.dw-node { position: relative; display: grid; align-content: center; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 8px 22px -16px rgb(10 8 48 / 0.5); }
.dw-node b { font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-node span { color: var(--mut); }
.dw-k, .dw-node .dw-k { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.dw-led { position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--ok); }
.dw-led ~ * { margin-left: 18px; }
.dw-pill { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 600; line-height: 1.5; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--mut); background: var(--bg); white-space: nowrap; }
.dw-tick { --p: clamp(0, (var(--t) - var(--a)) / 3, 1); flex: none; position: relative; width: 14px; height: 14px; border-radius: 50%; background: color-mix(in srgb, var(--ok) calc(var(--p) * 100%), var(--line)); scale: calc(0.7 + var(--p) * 0.3); }
.dw-tick::after { content: ""; position: absolute; left: 4px; top: 4.2px; width: 6px; height: 3px; border-left: 1.6px solid var(--card); border-bottom: 1.6px solid var(--card); rotate: -45deg; opacity: var(--p); }

.dw-flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(48px, 0.7fr) minmax(0, 1.1fr); padding: 30px clamp(16px, 5%, 56px); }
.dw-col, .dw-lanes { display: grid; grid-auto-rows: 1fr; gap: 14px; }
.dw-lane { position: relative; }
.dw-lane::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed var(--line); }
.dw-lane i { position: absolute; left: 0; right: 0; top: calc(50% - 4px); height: 8px; background: radial-gradient(circle, var(--ok) 2px, transparent 2.6px) 0 50% / 16px 8px repeat-x; -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
.on .dw-lane i { animation: lane 0.7s linear infinite; }
@keyframes lane { to { background-position: 16px 50%; } }
.dw-big { align-content: start; gap: 4px; padding: 16px 18px; }
.dw-big > b { font-size: 0.96rem; letter-spacing: -0.01em; white-space: normal; }
.dw-big .dw-pill { margin-top: 10px; }

.dw-record { display: grid; place-items: center; padding: 22px 16px; }
.dw-sheet { grid-area: 1 / 1; position: relative; z-index: 2; width: min(100%, 400px); padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 18px 40px -24px rgb(10 8 48 / 0.55); }
.dw-back { z-index: 1; align-self: stretch; margin-block: 14px; box-shadow: none; opacity: 0.7; }
.dw-b1 { rotate: 2.4deg; translate: 12px 4px; } .dw-b2 { z-index: 0; rotate: -3deg; translate: -14px 6px; opacity: 0.45; }
.dw-sheet header { display: grid; gap: 3px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.dw-sheet header b { font-size: 0.98rem; letter-spacing: -0.01em; }
.dw-sheet ul { list-style: none; margin: 0; padding: 0; }
.dw-sheet li { display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.dw-sheet li span { color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-sheet li b { font-weight: 500; font-size: 0.74rem; white-space: nowrap; }
.dw-sheet footer { display: flex; align-items: center; gap: 10px; padding-top: 12px; font-size: 0.72rem; color: var(--mut); }
.dw-stamp { font-weight: 600; font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; border: 1.5px solid color-mix(in srgb, var(--act) 70%, var(--fg)); color: color-mix(in srgb, var(--act) 62%, var(--fg)); rotate: -2deg; }

.dw-squad { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(14px, 4%, 44px); padding: 26px clamp(16px, 5%, 56px); }
.dw-squad .dw-col { align-content: center; grid-auto-rows: auto; gap: 10px; }
.dw-squad .dw-col > .dw-k { margin-bottom: 2px; }
.dw-who { padding: 9px 12px; }
.dw-squad .dw-col:last-child .dw-led { background: var(--act); }
.dw-work { align-self: stretch; align-content: center; }
.dw-work::before, .dw-work::after { content: ""; position: absolute; top: 50%; width: clamp(14px, 12%, 44px); border-top: 1.5px dashed var(--faint); opacity: 0.6; }
.dw-work::before { right: 100%; } .dw-work::after { left: 100%; }
.dw-work ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.dw-work li { display: flex; align-items: center; gap: 9px; color: var(--mut); }

.dw-trend svg { position: absolute; inset: 44px 0 40px; width: 100%; height: calc(100% - 84px); overflow: visible; }
.dw-line { fill: none; stroke: var(--fg); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; clip-path: inset(-40px calc((1 - clamp(0, (var(--t) - 4) / 50, 1) + clamp(0, (var(--t) - 95) / 4, 1)) * 100%) -40px -10px); }
.dw-was { fill: none; stroke: var(--faint); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 5 5; opacity: calc(clamp(0, (var(--t) - 32) / 6, 1) - clamp(0, (var(--t) - 95) / 4, 1)); }
.dw-gap { fill: var(--ok); opacity: calc((clamp(0, (var(--t) - 44) / 8, 1) - clamp(0, (var(--t) - 95) / 4, 1)) * 0.16); }
.dw-label { position: absolute; font-size: 0.72rem; color: var(--mut); padding: 1px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); white-space: nowrap; }
.dw-l1 { left: 6%; top: 30px; } .dw-l2 { right: 6%; bottom: 44px; }
.dw-mark { position: absolute; left: 50%; top: 18px; bottom: 34px; display: grid; align-content: end; justify-items: center; font-size: 0.72rem; font-weight: 560; white-space: nowrap; width: 0; }
.dw-mark i { position: absolute; left: 0; top: 0; bottom: 26px; border-left: 1.5px dashed color-mix(in srgb, var(--act) 80%, var(--fg)); }
.dw-proof { position: absolute; right: 8%; top: 42%; color: var(--fg); background: var(--card); font-size: 0.74rem; padding: 4px 11px 4px 6px; box-shadow: 0 8px 22px -14px rgb(10 8 48 / 0.5); }

.dw-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: center; gap: clamp(14px, 4%, 40px); padding: 26px clamp(16px, 5%, 56px); }
.dw-cells { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.dw-cell { grid-template-columns: minmax(0, 1fr) 14px; align-items: center; gap: 10px; padding: 9px 12px; }
.dw-cell b { font-weight: 500; }
.dw-result { align-content: center; gap: 4px; padding: 18px; border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.dw-result b { font-size: 0.98rem; white-space: normal; }

/* A picture inside a card is the same picture, smaller. */
.card-art .dw { font-size: 0.68rem; }
.card-art .dw-flow, .card-art .dw-squad, .card-art .dw-grid { padding: 16px; gap: 10px; }
.card-art .dw-col, .card-art .dw-lanes { gap: 8px; }
.card-art .dw-node { padding: 7px 9px; }
.card-art .dw-record { padding: 14px; }
.card-art .dw-sheet { padding: 11px 13px; }
.card-art .dw-sheet li { padding: 5px 0; }

@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .bar { grid-template-columns: 1fr auto; padding: 6px 6px 6px 16px; }
  .bar-nav { display: none; }
  .bar-menu { display: grid; }
  .sec-row { grid-template-columns: 1fr; align-items: start; }
  .cards, .cards-2 { grid-template-columns: 1fr; }
  .closer { grid-template-columns: 1fr; margin-inline: 12px; padding: 30px 24px; }
  .foot-nav { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 0.94rem; }
  .bar { width: calc(100% - 10px); top: 5px; margin-top: 5px; }
  .hero { margin: 4px 10px 0; padding: 36px 14px 32px; }
  .hero-windowed { padding-bottom: 30px; }
  h1 { font-size: 2.05rem; line-height: 1.06; }
  .lede { font-size: 0.98rem; }
  .window { margin-top: 28px; padding: 3px; border-radius: 12px; }
  .pane { height: 330px; }
  .tabs { bottom: -3px; max-width: calc(100% - 16px); }
  .tabs button { padding: 6px 9px; }
  .tabs button .glyph { display: none; }
  .sec { padding: 44px var(--pad); }
  h2 { font-size: 1.5rem; }
  .stage { height: 330px; margin-top: 24px; }
  .points { grid-template-columns: 1fr; gap: 26px; }
  .instead { gap: 10px 20px; margin-top: 28px; padding-top: 20px; }
  .rail, .rail-4 { grid-template-columns: 1fr; }
  .rail article { padding: 22px 20px 22px 56px; }
  .rail article::before { left: 29px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .stop { top: 27px; }
  .cards-4 { grid-template-columns: 1fr; }
  .rows > div { grid-template-columns: 1fr; padding: 16px 0; }
  .check { grid-template-columns: 1fr; }
  .check-result { position: static; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  /* A table's row becomes a block on a phone: its first cell is the name, and each other cell sits beside its column's name. */
  .table tr { display: grid; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .table th, .table td { display: block; padding: 0; border: 0; }
  .table td { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 12px; }
  .table td::before { content: attr(data-label); font-size: 0.8rem; line-height: 1.5; padding-top: 0.12em; }
  .lead { grid-template-columns: 1fr; }
  .closer .closer-act { flex-wrap: wrap; white-space: normal; }
  .foot { margin-top: 52px; }
  .foot-nav { margin: 36px 0; }
  /* Three pills stay on one line on a phone by showing each one's short name. */
  .pill-full { display: none; } .pill-short { display: inline; }
  .pills a { font-size: clamp(0.74rem, 3.5vw, 0.82rem); padding: 6px clamp(8px, 3.2vw, 14px); }
  /* A picture's columns fold into one on a phone: the people or sources above, what they make below. */
  .dw { font-size: 0.74rem; }
  .dw-flow { grid-template-columns: 1fr; grid-template-rows: auto 22px auto; gap: 0; padding: 14px; }
  .dw-flow .dw-col { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .dw-flow .dw-col .dw-node { padding: 8px 8px 8px 10px; }
  .dw-flow .dw-col .dw-led { position: static; margin: 0 0 4px; } .dw-flow .dw-col .dw-led ~ * { margin-left: 0; }
  .dw-flow .dw-col .dw-node span { display: none; }
  /* A name wraps here: a narrow column would otherwise cut it short. */
  .dw-flow .dw-col .dw-node b, .dw-who b, .dw-cell b { white-space: normal; overflow-wrap: anywhere; text-wrap: balance; line-height: 1.25; }
  .dw-lanes { grid-template-columns: repeat(3, 1fr); }
  .dw-lane::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1.5px dashed var(--line); }
  .dw-lane i { display: none; }
  .dw-squad { grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
  .dw-squad .dw-work { grid-column: 1 / -1; grid-row: 2; }
  .dw-work::before, .dw-work::after { display: none; }
  .dw-who { padding: 7px 10px; }
  .dw-work ol { grid-template-columns: 1fr 1fr; }
  .dw-grid { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .dw-cells { gap: 6px; }
  .dw-cell { padding: 6px 10px; }
  .dw-result { padding: 10px 12px; }
  .dw-record { padding: 14px 12px; }
  .dw-proof { right: 4%; top: 46%; }
  .dw-l2 { bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .bar, .foot-nav, .closer, .window .tabs, dialog { display: none !important; }
}
