/* CC Dispatch site — "the yard at night".
   Every colour means a status; the page reuses the same vocabulary the app does:
   sun = working, moss = idle/done, ember = needs you, sky = Codex, lilac = Grok,
   clay = the clawd cat / the one thing to click. */

:root {
  --night: #0b1414;
  --dusk: #122020;
  --fog: #203333;
  --bone: #f3efe4;
  --hay: #a9b8a6;
  --hay-2: #6f8079;
  --clay: #e0784e;
  --clay-2: #f39a72;
  --moss: #8fd66a;
  --sun: #f5c451;
  --ember: #ff6a5c;
  --sky: #79b8ff;
  --lilac: #c9a2ff;

  --display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", sans-serif;
  --body: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 11vw, 144px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font: 17px/1.6 var(--body);
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 2px; }
img, svg { display: block; max-width: 100%; }
code, pre, kbd { font-family: var(--mono); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.025em; line-height: 1.02; }
h1 { font-size: clamp(40px, 5.4vw, 72px); font-stretch: 105%; max-width: 11ch; }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: 20px; letter-spacing: -.01em; line-height: 1.25; font-weight: 700; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--hay); }
.mono b { color: var(--bone); font-weight: 600; }
.muted { color: var(--hay); }
.t-sun { color: var(--sun); } .t-moss { color: var(--moss); } .t-ember { color: var(--ember); }
.t-sky { color: var(--sky); } .t-lilac { color: var(--lilac); } .t-clay { color: var(--clay-2); }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--night) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--fog); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.brand span b { color: var(--clay-2); font-weight: 800; }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); font-size: 15px; color: var(--hay); }
.nav nav a { position: relative; padding: 4px 0; transition: color .2s; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--bone); }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--clay); transition: right .3s var(--ease); }
.nav nav a:hover::after, .nav nav a[aria-current]::after { right: 0; }
.nav nav a.gh { color: var(--bone); border: 1px solid var(--fog); padding: 7px 14px; border-radius: 999px; }
.nav nav a.gh::after { display: none; }
.nav nav a.gh:hover { border-color: var(--hay-2); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font: 600 15px/1 var(--body); letter-spacing: .01em;
  transition: transform .25s var(--ease), background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-clay { background: var(--clay); color: #1a0e08; }
.btn-clay:hover { background: var(--clay-2); }
.btn-ghost { border: 1px solid var(--fog); color: var(--bone); }
.btn-ghost:hover { border-color: var(--hay-2); }
.btn svg { width: 16px; height: 16px; }

/* ── Sections ────────────────────────────────────────────────────────────── */
section { padding-block: var(--section); position: relative; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tint, var(--clay)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tint, var(--clay)) 22%, transparent); }
.lede { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--hay); max-width: 58ch; }
.lede strong { color: var(--bone); font-weight: 500; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split > .sticky { position: sticky; top: 96px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 112px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero h1 em { font-style: normal; color: var(--clay-2); }
.hero .lede { margin-bottom: 36px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .req { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 13px; color: var(--hay-2); }
.hero .req span::before { content: "·"; margin-right: 8px; color: var(--fog); }
.hero .req span:first-child::before { content: none; }

/* ── The yard (signature): the app's own fleet view, in a phone ──────────── */
.phone-wrap { position: relative; width: min(100%, 360px); margin-inline: auto; }
.phone {
  position: relative; border-radius: 42px; padding: 10px;
  background: #0a0c0f; border: 1px solid #2a3138;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.phone::before { content: ""; position: absolute; left: 50%; top: 18px; width: 92px; height: 24px; border-radius: 14px; background: #000; transform: translateX(-50%); z-index: 6; }
.app {
  --bg: #14171b; --panel2: #22262d; --panel3: #2a2f38; --line: #333944; --line2: #434b58;
  --fg: #f2f5f9; --dim: #a8b2bf; --red: #ff6b61; --amber: #ffc233; --green: #3ddc5c; --blue: #66a9ff;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --m: ui-monospace, "SF Mono", Menlo, monospace;
  display: flex; flex-direction: column; height: 640px; border-radius: 34px; overflow: hidden;
  background: var(--bg); color: var(--fg); font: 13px/1.4 var(--ui);
}
.app-top { display: flex; align-items: center; gap: 8px; padding: 40px 14px 10px; background: var(--panel2); border-bottom: 1px solid var(--line); }
.app-top .wm { display: flex; align-items: center; gap: 7px; flex: 1; font: 700 12px var(--ui); letter-spacing: .16em; }
.app-top .wm b { color: var(--fg); } .app-top .wm { color: #d77757; }
.app-top .wm svg { width: 18px; height: 16px; }
.app-top .wm .body { fill: #d77757; } .app-top .wm .shade { fill: #b85f42; } .app-top .wm .eye { fill: var(--panel2); }
.app-top .host { font: 500 11px var(--ui); color: var(--fg); border: 1px solid var(--line2); border-radius: 6px; padding: 4px 8px; }
.app-top .host i { font-style: normal; color: var(--dim); margin-left: 4px; }
.app-top .bell { width: 26px; height: 26px; border: 1px solid var(--line2); border-radius: 6px; display: grid; place-items: center; color: var(--fg); }
.app-top .bell svg { width: 15px; height: 15px; }
.app-sub { display: flex; justify-content: space-between; align-items: center; padding: 5px 12px; font: 10.5px var(--m); color: var(--dim); background: var(--panel2); border-bottom: 1px solid var(--line); }
.app-sub .usage { display: flex; align-items: center; gap: 6px; }
.app-sub .usage i { width: 40px; height: 4px; border-radius: 2px; background: var(--line2); position: relative; overflow: hidden; }
.app-sub .usage i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--u); background: var(--green); border-radius: 2px; }
.yard { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--bg); }
.tabbar { display: flex; border-top: 1px solid var(--line2); background: var(--panel2); padding-bottom: 14px; }
.tabbar span { flex: 1; text-align: center; padding: 10px 0 6px; font: 600 9.5px var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); border-top: 2px solid transparent; }
.tabbar span.cur { color: var(--blue); border-top-color: var(--blue); }
.fab { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; background: #d77757; color: #1a0e08; display: grid; place-items: center; font: 300 26px/1 var(--ui); box-shadow: 0 6px 16px rgba(0, 0, 0, .5); z-index: 5; }

/* critters: same chassis, CSS and sprites as the PWA */
.critter { position: absolute; left: var(--x); top: var(--y); width: 80px; height: 100px; z-index: 4; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%) scale(.8); transform-origin: top center; }
.critter .stage { position: relative; width: 64px; height: 58px; }
.ring { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); width: 64px; height: 38px; z-index: 0; }
.ring path { fill: none; stroke-linecap: round; }
.ring .track { stroke: var(--line); stroke-width: 3; }
.ring .fill { stroke: var(--blue); stroke-width: 3; stroke-dasharray: calc(var(--pct) * 105) 200; }
.clawd { position: absolute; left: 50%; bottom: 15px; transform: translateX(-50%); width: 44px; height: 40px; overflow: visible; --skin: #d77757; --skin-dark: #b85f42; }
.p-codex .clawd { --skin: #f3f1ec; --skin-dark: #cac6bd; }
.p-grok .clawd { --skin: #7f8a9c; --skin-dark: #59626f; }
.clawd .body { fill: var(--skin); } .clawd .shade { fill: var(--skin-dark); }
.clawd .eye { fill: var(--bg); }
.clawd .band { fill: var(--band); opacity: .9; }
.clawd .limb { fill: var(--skin); transform-box: fill-box; transform-origin: center; }
.working .clawd { animation: cbob .68s ease-in-out infinite; }
.working .arm-l, .working .leg-r { animation: cswA .68s ease-in-out infinite; }
.working .arm-r, .working .leg-l { animation: cswB .68s ease-in-out infinite; }
@keyframes cbob { 50% { transform: translateX(-50%) translateY(-1.5px); } }
@keyframes cswA { 50% { transform: rotate(11deg); } }
@keyframes cswB { 50% { transform: rotate(-11deg); } }
.resting .clawd { transform: translateX(-50%) translateY(4px) scaleY(.9); }
.glow { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); width: 52px; height: 14px; border-radius: 50%; filter: blur(6px); opacity: .5; background: var(--green); }
.idle .glow { opacity: 0; }
.ctag { margin-top: 2px; font: 600 10.5px var(--m); letter-spacing: .02em; color: var(--fg); max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 1px 6px; border-radius: 4px; background: rgba(20, 23, 27, .72); }
.wtimer { margin-top: 2px; font: 600 10px var(--m); letter-spacing: .04em; color: #2a1206; background: var(--amber); padding: 1px 6px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.wtimer::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #2a1206; margin-right: 4px; vertical-align: middle; animation: tpulse 1.1s ease-in-out infinite; }
@keyframes tpulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.idle .wtimer { color: #9fb0c4; background: #2b3440; box-shadow: none; }
.idle .wtimer::before { display: none; }
.bubble { position: absolute; left: 50%; bottom: 104px; transform: translateX(-50%); max-width: 140px; padding: 4px 8px; border-radius: 8px; background: var(--panel3); border: 1px solid var(--line2); font: 500 10.5px/1.3 var(--m); color: var(--fg); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 3; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; background: var(--panel3); border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); transform: translateX(-50%) rotate(45deg); }
.bubble .verb { color: var(--green); }
.bubble .b { display: none; }

/* The story: one 16 s loop. */
.yard .story { animation-duration: 16s; animation-iteration-count: infinite; animation-timing-function: linear; }
.asks .stage { animation: ask-hop 16s linear infinite; }
@keyframes ask-hop { 0%, 12%, 40%, 100% { transform: none; } 14%, 18%, 22%, 26%, 30%, 34%, 38% { transform: translateY(0); } 16%, 20%, 24%, 28%, 32%, 36% { transform: translateY(-8px); } }
.asks .glow { animation: ask-glow 16s linear infinite; }
@keyframes ask-glow { 0%, 12%, 40%, 100% { background: var(--green); opacity: .5; } 14%, 38% { background: var(--red); opacity: .75; } }
.asks .bubble { animation: ask-bubble 16s linear infinite; }
@keyframes ask-bubble { 0%, 12%, 40%, 100% { border-color: var(--line2); color: var(--fg); } 14%, 38% { border-color: var(--red); color: var(--amber); } }
.asks .bubble .a { animation: hide-mid 16s linear infinite; }
.asks .bubble .b { display: inline; animation: show-mid 16s linear infinite; }
.asks .bubble .b .verb { animation: verb-red 16s linear infinite; }
@keyframes verb-red { 0%, 12%, 40%, 100% { color: var(--green); } 14%, 38% { color: var(--red); } }
@keyframes hide-mid { 0%, 12% { display: inline; } 14%, 38% { display: none; } 40%, 100% { display: inline; } }
@keyframes show-mid { 0%, 12% { display: none; } 14%, 38% { display: inline; } 40%, 100% { display: none; } }
.asks .wtimer { animation: chip-hide 16s linear infinite; }
@keyframes chip-hide { 0%, 12%, 40%, 100% { opacity: 1; } 14%, 38% { opacity: 0; } }
.finishes .bubble .a { animation: hide-late 16s linear infinite; }
.finishes .bubble .b { display: inline; animation: show-late 16s linear infinite; }
@keyframes hide-late { 0%, 60% { display: inline; } 63%, 100% { display: none; } }
@keyframes show-late { 0%, 60% { display: none; } 63%, 100% { display: inline; } }
.finishes .clawd, .finishes .limb { animation-play-state: running; }
.finishes .glow { animation: fin-glow 16s linear infinite; }
@keyframes fin-glow { 0%, 60% { opacity: .5; } 63%, 100% { opacity: 0; } }
.finishes .wtimer { animation: fin-chip 16s linear infinite; }
@keyframes fin-chip { 0%, 60% { color: #2a1206; background: var(--amber); } 63%, 100% { color: #9fb0c4; background: #2b3440; } }

/* permission sheet: rises at 3 s, tapped at 5 s, gone by 6.5 s */
.sheet {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 7;
  background: var(--panel2); border: 1px solid var(--line2); border-radius: 14px; padding: 12px 14px 14px;
  box-shadow: 0 -20px 40px -20px rgba(0, 0, 0, .8);
  transform: translateY(130%); animation-name: sheet;
}
.sheet-h { display: flex; align-items: center; gap: 8px; font: 600 12px var(--ui); color: var(--fg); margin-bottom: 8px; }
.sheet-h i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.sheet pre { margin: 0 0 12px; font: 12px var(--m); color: var(--amber); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.sheet .acts { display: flex; gap: 8px; }
.sheet .acts span { flex: 1; text-align: center; padding: 10px 0; border-radius: 10px; border: 1px solid var(--line2); font: 600 12px var(--ui); color: var(--fg); }
.sheet .acts .allow { background: var(--green); color: #0b1a0a; border-color: transparent; position: relative; overflow: hidden; }
.sheet .acts .allow::after { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .8); transform: scale(0); opacity: 0; animation: tap 16s linear infinite; }
@keyframes sheet { 0%, 17% { transform: translateY(130%); } 20%, 38% { transform: translateY(0); } 41%, 100% { transform: translateY(130%); } }
@keyframes tap { 0%, 30% { transform: scale(0); opacity: 0; } 31% { opacity: .9; } 36% { transform: scale(16); opacity: 0; } 100% { transform: scale(0); opacity: 0; } }

/* push banner: lands at 10.5 s */
.banner {
  position: absolute; left: 10px; right: 10px; top: 8px; z-index: 7;
  display: flex; gap: 10px; align-items: center;
  background: rgba(34, 38, 45, .96); border: 1px solid var(--line2); border-radius: 14px; padding: 9px 12px;
  font: 11px var(--ui); color: var(--dim); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .9);
  transform: translateY(-150%); animation-name: banner;
}
.banner img { width: 26px; height: 26px; border-radius: 7px; }
.banner b { display: block; color: var(--fg); font-weight: 600; }
@keyframes banner { 0%, 64% { transform: translateY(-150%); } 67%, 90% { transform: translateY(0); } 93%, 100% { transform: translateY(-150%); } }

/* ── "Why" — three truths, set as type not cards ─────────────────────────── */
.why { --tint: var(--ember); border-top: 1px solid var(--fog); }
.why h2 { max-width: 16ch; }
.truths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: 56px; }
.truth { border-top: 2px solid var(--c); padding-top: 18px; }
.truth h3 { margin-bottom: 8px; }
.truth p { color: var(--hay); font-size: 16px; }

/* ── Features ledger ─────────────────────────────────────────────────────── */
.what { --tint: var(--sun); background: linear-gradient(180deg, var(--night), var(--dusk) 40%, var(--night)); }
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 80px); margin-top: 56px; }
.row { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--fog); align-items: start; }
.row:hover .glyph .ear { transform: translateY(-2px) scaleY(1.2); }
.glyph { width: 32px; height: 32px; color: var(--c); }
.glyph .head { fill: none; stroke: currentColor; stroke-width: 1.7; }
.glyph .ear, .glyph .eye { fill: currentColor; transition: transform .25s var(--ease); transform-box: fill-box; transform-origin: bottom center; }
.row h3 { margin-bottom: 6px; }
.row p { color: var(--hay); font-size: 16px; }
.row p code { font-size: 14px; color: var(--bone); background: var(--fog); padding: 1px 6px; border-radius: 5px; }

/* ── Install: a real sequence, so it is a numbered transcript ────────────── */
.install { --tint: var(--sky); border-top: 1px solid var(--fog); }
.install .split { margin-top: 0; }
.term { font-family: var(--mono); font-size: 14px; line-height: 1.7; border-left: 2px solid var(--fog); padding-left: clamp(18px, 3vw, 32px); }
.step { position: relative; padding: 14px 0 18px; }
.step + .step { border-top: 1px dashed var(--fog); }
.step .n { position: absolute; left: calc(-1 * clamp(18px, 3vw, 32px) - 15px); top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--night); border: 2px solid var(--sky); color: var(--sky); font: 700 12px/24px var(--mono); text-align: center; }
.step .say { color: var(--hay); margin-bottom: 8px; font-family: var(--body); font-size: 15.5px; }
.step .say code { color: var(--bone); font-size: 13.5px; }
.cmd { display: flex; align-items: flex-start; gap: 12px; }
.cmd pre { margin: 0; flex: 1; white-space: pre-wrap; word-break: break-word; color: var(--bone); }
.cmd pre::before { content: "$ "; color: var(--sky); }
.cmd pre .c { color: var(--hay-2); }
.copy { flex: none; background: none; border: 1px solid var(--fog); color: var(--hay); font: 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 7px 9px; border-radius: 6px; cursor: pointer; transition: color .2s, border-color .2s; }
.copy:hover { color: var(--bone); border-color: var(--hay-2); }
.copy.done { color: var(--moss); border-color: var(--moss); }
.qr { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; margin-top: 14px; color: var(--hay); font-family: var(--body); font-size: 15.5px; }
.qr svg { width: 56px; height: 56px; }

/* ── Security: the fence ─────────────────────────────────────────────────── */
.fence { --tint: var(--lilac); background: radial-gradient(120% 80% at 80% 0%, color-mix(in srgb, var(--lilac) 10%, transparent), transparent 60%), var(--night); border-top: 1px solid var(--fog); }
.posts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 56px; }
.post { padding-left: 16px; border-left: 1px solid var(--fog); }
.post .k { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--lilac); margin-bottom: 10px; display: block; }
.post p { color: var(--hay); font-size: 15.5px; }
.post p b { color: var(--bone); font-weight: 500; }
.fence .more { margin-top: 44px; color: var(--hay); font-size: 15.5px; }
.fence .more a { color: var(--bone); border-bottom: 1px solid var(--hay-2); }

/* ── Contribute ──────────────────────────────────────────────────────────── */
.join { --tint: var(--moss); border-top: 1px solid var(--fog); }
.join h2 { max-width: 18ch; }
.join .lede { margin-top: 20px; }
.paths { list-style: none; margin: 0; padding: 0; }
.paths li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--fog); }
.paths li:last-child { border-bottom: 1px solid var(--fog); }
.paths a { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.015em; transition: color .2s; }
.paths a:hover { color: var(--moss); }
.paths small { color: var(--hay); font-size: 14px; text-align: right; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer { padding: 40px 0 48px; border-top: 1px solid var(--fog); color: var(--hay-2); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
footer a:hover { color: var(--bone); }
footer nav { display: flex; gap: 22px; }

/* ── Reveal on scroll ────────────────────────────────────────────────────── */
.r { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.r.in { opacity: 1; transform: none; }
.r[data-d="1"] { transition-delay: .08s; } .r[data-d="2"] { transition-delay: .16s; } .r[data-d="3"] { transition-delay: .24s; }
.r[data-d="4"] { transition-delay: .32s; } .r[data-d="5"] { transition-delay: .4s; }

/* ── How-it-works page ───────────────────────────────────────────────────── */
.hiw-layout { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-top: clamp(40px, 6vw, 80px); }
.toc { position: sticky; top: 88px; align-self: start; font-size: 14px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--fog); }
.toc li a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--hay); transition: color .2s, border-color .2s; }
.toc li a:hover { color: var(--bone); }
.toc li a.active { color: var(--bone); border-left-color: var(--clay); }
.hiw-content { padding-bottom: var(--section); max-width: 72ch; }
.hiw-content h1 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 20px; max-width: none; }
.hiw-content > p.lede { margin-bottom: 40px; }
.hiw-content section { padding: 44px 0 8px; border-top: 1px solid var(--fog); scroll-margin-top: 80px; }
.hiw-content section:first-of-type { border-top: 0; padding-top: 0; }
.hiw-content h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.hiw-content h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tint, var(--clay)); flex: none; }
.hiw-content section:nth-of-type(6n+1) { --tint: var(--clay); }
.hiw-content section:nth-of-type(6n+2) { --tint: var(--sun); }
.hiw-content section:nth-of-type(6n+3) { --tint: var(--sky); }
.hiw-content section:nth-of-type(6n+4) { --tint: var(--moss); }
.hiw-content section:nth-of-type(6n+5) { --tint: var(--lilac); }
.hiw-content section:nth-of-type(6n+6) { --tint: var(--ember); }
.hiw-content h3 { margin: 26px 0 8px; font-size: 18px; }
.hiw-content p, .hiw-content li { color: var(--hay); font-size: 16.5px; }
.hiw-content p strong { color: var(--bone); font-weight: 500; }
.hiw-content code { font-size: 14px; color: var(--bone); background: var(--dusk); padding: 1px 6px; border-radius: 5px; }
.hiw-content pre { background: var(--dusk); border: 1px solid var(--fog); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; }
.hiw-content pre code { background: none; padding: 0; }
.hiw-content ul, .hiw-content ol { padding-left: 22px; }
.hiw-content li { margin: 6px 0; }
.diagram { margin: 24px 0 8px; padding: 8px; overflow-x: auto; }
.diagram svg { min-width: 640px; }
.seq-steps { list-style: none; margin: 20px 0 0; padding: 0; position: relative; }
.seq-steps::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 1px; background: var(--fog); }
.seq-step { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 10px 0; }
.seq-step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--night); border: 2px solid var(--tint, var(--clay)); color: var(--tint, var(--clay)); font: 700 12px/24px var(--mono); text-align: center; position: relative; }
.seq-step .t { color: var(--hay); padding-top: 3px; }
.seq-step .t strong { color: var(--bone); font-weight: 500; }
table.config { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 16px; }
table.config th, table.config td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--fog); vertical-align: top; }
table.config th { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--hay-2); }
table.config td:first-child code { color: var(--sun); }
.callout { border-left: 2px solid var(--ember); padding: 4px 0 4px 18px; margin: 20px 0; }
.callout p { color: var(--hay); }
.faq-item { padding: 16px 0; border-top: 1px dashed var(--fog); }
.faq-item h3 { margin: 0 0 6px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .split > .sticky { position: static; }
  .truths { grid-template-columns: 1fr; gap: 28px; }
  .ledger { grid-template-columns: 1fr; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hiw-layout { grid-template-columns: 1fr; }
  .toc { position: static; margin-bottom: 8px; }
  .toc ul { display: flex; flex-wrap: wrap; gap: 4px 14px; border: 0; }
  .toc li a { border: 0; padding: 4px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero .req { display: none; }
  footer { border-top: 0; }
  .nav nav { gap: 14px; font-size: 14px; }
  .nav nav a.gh { padding: 6px 11px; }
  .posts { grid-template-columns: 1fr; }
  .app { height: 600px; }
  .paths li { grid-template-columns: 1fr; gap: 4px; }
  .paths small { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .r { opacity: 1; transform: none; transition: none; }
  .yard *, .yard *::before, .yard *::after { animation: none !important; }
  .sheet { transform: none; }
  .banner { display: none; }
  .asks .bubble { border-color: var(--red); color: var(--amber); }
  .asks .bubble .a { display: none; } .asks .bubble .b { display: inline; }
  .asks .glow { background: var(--red); opacity: .75; }
}
