/* ChloeCtx's pages (docs/site/ctx/): memory for Claude Code.
 * They load site.css first and use its tokens, frame and bands; this file adds
 * the sub-site's mark, its diagrams and the sequences ctx.js plays. Kinds of
 * record keep the site's four family hues: what was said (text blue), what
 * was done (columns orange), what was agreed (vectors green), what it links
 * (graph amber). Every animation has a still final state, shown when motion
 * is reduced or scripts are off. */

.mark .ctx { color: var(--accent); margin-left: -10px; }
.foot .mark .ctx { color: var(--night-accent); }
.ctx-hero { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; padding-block: 72px 76px; }
.ctx-hero h1 { color: var(--night-ink); font-size: clamp(2.3rem, 5vw, 3.9rem); max-width: 15ch; }
.ctx-hero .lede { color: var(--night-dim); }
.ctx-hero .eyebrow { color: var(--night-accent); }
.ctx-hero .hcopy { display: grid; gap: 20px; justify-items: start; }
.ctx-hero code { background: var(--night-2); color: var(--night-ink); }
@media (max-width: 900px) { .ctx-hero { grid-template-columns: minmax(0, 1fr); padding-block: 48px 56px; } }

/* ---------- the stats strip under a head ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; background: var(--night-rule); border: 1px solid var(--night-rule); border-radius: 14px; overflow: hidden; }
.stats > div { background: var(--night-2); padding: 16px 18px; display: grid; gap: 4px; align-content: start; }
.stats b { font: 650 1.75rem/1.1 var(--display); letter-spacing: -0.03em; color: var(--night-ink); font-variant-numeric: tabular-nums; }
.stats b small { font-size: 0.95rem; color: var(--night-dim); font-weight: 500; letter-spacing: 0; }
.stats span { font-size: 0.84rem; color: var(--night-dim); line-height: 1.4; }
.stats.light { background: var(--rule); border-color: var(--rule); }
.stats.light > div { background: var(--panel); }
.stats.light b { color: var(--ink); }
.stats.light b small, .stats.light span { color: var(--ink-2); }

/* ---------- sequences (ctx.js steps [data-step] in each [data-seq]) ---------- */
.js [data-seq] [data-step] { opacity: 0; transform: translateY(8px); transition: opacity 0.45s ease, transform 0.45s ease, background-color 0.45s ease, border-color 0.45s ease; }
.js [data-seq] [data-step].on { opacity: 1; transform: none; }
.seq-ctl { display: flex; gap: 8px; align-items: center; font-size: 0.8rem; color: var(--ink-3); }
.seq-ctl button { font: 500 0.78rem/1 var(--body); border: 1px solid var(--rule-2); background: var(--panel); color: var(--ink-2); border-radius: 999px; padding: 6px 11px; cursor: pointer; }
.seq-ctl button:hover { border-color: var(--ink-3); color: var(--ink); }
.on-night .seq-ctl button, .ctx-hero .seq-ctl button { background: transparent; color: var(--night-dim); border-color: var(--night-rule); }

/* ---------- the hero's two sessions ---------- */
.loop { display: grid; gap: 10px; font-size: 0.88rem; min-width: 0; }
.sess, .store { min-width: 0; }
.sess { background: var(--night-2); border: 1px solid var(--night-rule); border-radius: 14px; padding: 12px 14px 14px; display: grid; gap: 8px; }
.sess .day { font: 500 0.68rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--night-dim); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; }
.msg { margin: 0; padding: 8px 11px; border-radius: 10px; line-height: 1.4; max-width: 92%; }
.msg.u { background: #1d2750; color: var(--night-ink); justify-self: end; border-bottom-right-radius: 3px; }
.msg.a { background: #141d38; color: #cdd5ea; border: 1px solid var(--night-rule); border-bottom-left-radius: 3px; }
.msg.a b { color: #8ee3c0; font-weight: 600; }
.brief { margin: 0; border: 1px dashed #3a4a85; border-radius: 10px; padding: 9px 11px; color: var(--night-dim); display: grid; gap: 4px; background: rgba(143, 157, 255, 0.07); }
.brief .h { font: 500 0.66rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--night-accent); }
.brief span { color: var(--night-ink); }
.brief i { font-style: normal; font: 500 0.66rem/1 var(--mono); padding: 2px 5px; border-radius: 4px; margin-right: 6px; vertical-align: 1px; }
.k-rule { background: rgba(27, 175, 122, 0.18); color: #6fdcb0; }
.k-dec { background: rgba(143, 157, 255, 0.18); color: #b4beff; }
.k-fact { background: rgba(237, 161, 0, 0.18); color: #f3c25a; }
.store { position: relative; border-radius: 14px; padding: 12px 14px; background: linear-gradient(180deg, #0f1733, #0c1430); border: 1px solid #2b3a72; display: grid; gap: 8px; }
.store .t { overflow-wrap: anywhere; min-width: 0; display: flex; align-items: center; gap: 8px; font: 500 0.7rem/1.2 var(--mono); color: var(--night-dim); letter-spacing: 0.06em; }
.store .t svg { width: 16px; height: 16px; flex: none; stroke: var(--night-accent); fill: none; stroke-width: 1.6; }
.recs { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; }
.rec { font: 500 0.72rem/1 var(--mono); padding: 6px 8px; border-radius: 6px; border: 1px solid transparent; white-space: normal; line-height: 1.3; }
.rec.r { background: rgba(42, 120, 214, 0.16); color: #8cbcf5; border-color: rgba(42, 120, 214, 0.35); }
.rec.t { background: rgba(235, 104, 52, 0.14); color: #f5a684; border-color: rgba(235, 104, 52, 0.35); }
.rec.n { background: rgba(27, 175, 122, 0.16); color: #6fdcb0; border-color: rgba(27, 175, 122, 0.4); }
.rec.e { background: rgba(237, 161, 0, 0.14); color: #f3c25a; border-color: rgba(237, 161, 0, 0.35); }
.flow { height: 18px; position: relative; overflow: hidden; }
.flow::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: repeating-linear-gradient(180deg, var(--night-accent) 0 4px, transparent 4px 9px); opacity: 0.6; animation: drip 0.9s linear infinite; }
.flow.up::before { animation-direction: reverse; }
@keyframes drip { from { background-position: 0 0; } to { background-position: 0 9px; } }

/* ---------- light-band versions of the chat (examples on white) ---------- */
.chat { display: grid; gap: 10px; background: var(--night); border-radius: 16px; padding: 16px; color: var(--night-ink); font-size: 0.9rem; box-shadow: var(--shadow); min-width: 0; }

/* ---------- compaction: a long transcript and what its summary keeps ---------- */
.squeeze { display: grid; grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1fr); gap: 18px; align-items: center; }
.tx { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 14px; display: grid; gap: 6px; font: 400 0.78rem/1.45 var(--mono); color: var(--ink-2); min-width: 0; }
.tx p { margin: 0; padding: 4px 8px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx .lost { background: color-mix(in srgb, var(--brand-red) 10%, transparent); color: var(--ink); }
.js .squeeze.go .tx .lost { animation: lose 1.2s ease forwards; }
.js .squeeze.go .tx .lost:nth-of-type(2) { animation-delay: 0.3s; } .js .squeeze.go .tx .lost:nth-of-type(4) { animation-delay: 0.6s; } .js .squeeze.go .tx .lost:nth-of-type(6) { animation-delay: 0.9s; } .js .squeeze.go .tx .lost:nth-of-type(8) { animation-delay: 1.2s; }
@keyframes lose { to { opacity: 0.28; text-decoration: line-through; text-decoration-color: var(--brand-red); } }
.squeeze .arrow { display: grid; justify-items: center; gap: 6px; font: 500 0.7rem/1.2 var(--mono); color: var(--ink-3); text-align: center; }
.squeeze .arrow svg { width: 54px; height: 24px; stroke: var(--ink-3); fill: none; stroke-width: 1.6; }
.sum { background: var(--sunk); border: 1px solid var(--rule-2); border-radius: 14px; padding: 14px; display: grid; gap: 6px; font-size: 0.86rem; color: var(--ink-2); }
.sum b { font: 500 0.7rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 760px) { .squeeze { grid-template-columns: minmax(0, 1fr); } .squeeze .arrow svg { transform: rotate(90deg); } }

/* ---------- a session's hooks, one lit at a time ---------- */
.hooks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; counter-reset: h; }
.hooks li { margin: 0; background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 14px 16px; display: grid; gap: 8px; align-content: start; position: relative; min-width: 0; transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s; }
.hooks li .when { font: 500 0.68rem/1.25 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.hooks li b { font: 650 0.98rem/1.25 var(--display); color: var(--ink); }
.hooks li p { font-size: 0.85rem; color: var(--ink-2); }
.hooks li .dir { font: 500 0.68rem/1 var(--mono); padding: 4px 6px; border-radius: 5px; justify-self: start; }
.dir.in { background: color-mix(in srgb, var(--fam-text) 14%, transparent); color: var(--fam-text); }
.dir.out { background: color-mix(in srgb, var(--fam-vec) 16%, transparent); color: var(--yes); }
.dir.bg { background: color-mix(in srgb, var(--fam-graph) 16%, transparent); color: var(--part); }
.hooks li.lit { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash), var(--shadow); transform: translateY(-3px); }
@media (max-width: 1000px) { .hooks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hooks { grid-template-columns: minmax(0, 1fr); } }

/* ---------- cards ---------- */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 18px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.card h3 { font-size: 1.05rem; }
.card p { color: var(--ink-2); font-size: 0.92rem; }
.card code { font-size: 0.82em; }
.card .k { font: 500 0.68rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.card a.more { font-size: 0.88rem; }
.two { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.two.at-top { align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: minmax(0, 1fr); } }

/* ---------- diagrams ---------- */
.fig { background: var(--panel); border: 1px solid var(--rule); border-radius: 16px; padding: 18px; display: grid; gap: 12px; min-width: 0; }
.fig figcaption { font-size: 0.86rem; color: var(--ink-2); }
.fig svg { width: 100%; height: auto; display: block; }
.fig .scroll { overflow-x: auto; }
.fig .scroll svg { min-width: 680px; }
.dg-box { fill: var(--panel); stroke: var(--rule-2); stroke-width: 1.2; }
.dg-sunk { fill: var(--sunk); stroke: var(--rule-2); stroke-width: 1; }
.dg-acc { fill: var(--accent-wash); stroke: var(--accent); stroke-width: 1.4; }
.dg-night { fill: var(--night); stroke: var(--night-rule); }
.dg-t { fill: var(--ink); font: 600 15px var(--display); }
.dg-s { fill: var(--ink-2); font: 400 12.5px var(--body); }
.dg-m { fill: var(--ink-3); font: 500 11px var(--mono); letter-spacing: 0.04em; }
.dg-mi { fill: var(--accent); font: 500 11px var(--mono); }
.dg-line { stroke: var(--ink-3); stroke-width: 1.5; fill: none; }
.dg-dash { stroke: var(--ink-3); stroke-width: 1.3; fill: none; stroke-dasharray: 4 4; }
.dg-acc-line { stroke: var(--accent); stroke-width: 1.8; fill: none; }
.dg-dot { fill: var(--accent); }
.dg-dot.g { fill: var(--fam-vec); }
.dg-dot.o { fill: var(--fam-cols); }
.dg-dot.y { fill: var(--fam-graph); }
.dg-head { fill: var(--ink-3); }
.f-text { fill: var(--fam-text); } .f-cols { fill: var(--fam-cols); } .f-vec { fill: var(--fam-vec); } .f-graph { fill: var(--fam-graph); }
.s-text { stroke: var(--fam-text); } .s-cols { stroke: var(--fam-cols); } .s-vec { stroke: var(--fam-vec); } .s-graph { stroke: var(--fam-graph); }
.legend-row { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.82rem; color: var(--ink-2); }
.legend-row span { display: inline-flex; gap: 6px; align-items: center; }
.legend-row i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- the live window ---------- */
.lw { display: grid; gap: 10px; }
.lw-row { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px; position: relative; padding-top: 26px; }
.lw-row i { height: 30px; border-radius: 4px; background: var(--fam-text); opacity: 0.85; transition: opacity 0.5s, background-color 0.5s, outline-color 0.5s; outline: 2px solid transparent; outline-offset: 1px; }
.lw-row i.t { background: var(--fam-cols); }
.lw-row i.n { background: var(--fam-vec); }
.lw-row i.in { opacity: 0.22; }
.lw-row i.pick { outline-color: var(--ink); opacity: 1; }
.lw-row .win { position: absolute; top: 0; height: 22px; border: 2px solid var(--accent); border-bottom: 0; border-radius: 6px 6px 0 0; transition: left 0.8s ease, right 0.8s ease; font: 500 0.7rem/18px var(--mono); color: var(--accent); padding-left: 6px; white-space: nowrap; overflow: hidden; }
.lw-row .cut { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--brand-red); opacity: 0; transition: opacity 0.4s, left 0.8s; }
.lw-row .cut.on { opacity: 1; }
.lw-cap { font-size: 0.88rem; color: var(--ink-2); min-height: 2.8em; }
.lw-cap b { color: var(--ink); }

/* ---------- the gate ---------- */
.gate { display: grid; gap: 16px; }
.gate-bar { position: relative; height: 46px; border-radius: 10px; overflow: hidden; display: grid; grid-template-columns: 38fr 27fr 35fr; border: 1px solid var(--rule-2); }
.gate-bar > div { display: grid; place-items: center; font: 600 0.82rem/1.2 var(--body); color: var(--ink-2); text-align: center; padding: 0 6px; }
.gate-bar .z0 { background: var(--sunk); }
.gate-bar .z1 { background: color-mix(in srgb, var(--fam-graph) 18%, var(--panel)); }
.gate-bar .z2 { background: color-mix(in srgb, var(--fam-vec) 20%, var(--panel)); }
.gate input[type="range"] { width: 100%; accent-color: var(--accent); }
.gate-out { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 16px; align-items: start; background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; }
.gate-out .tier { font: 650 1.05rem/1.2 var(--display); }
.gate-out .budget { font: 500 0.78rem/1.3 var(--mono); color: var(--ink-3); }
.gate-out ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; grid-column: 1 / -1; }
.gate-out li { margin: 0; font: 400 0.8rem/1.4 var(--mono); padding: 7px 9px; border-radius: 7px; background: var(--sunk); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 0.3s; }
.gate-out li.off { opacity: 0.18; }
.gate-out li.weak::after { content: "  · weak match"; color: var(--part); }
.ticks { display: flex; justify-content: space-between; font: 500 0.7rem/1 var(--mono); color: var(--ink-3); }

/* ---------- formulas ---------- */
.formula { font: 400 0.95rem/1.6 var(--mono); background: var(--code-bg); color: var(--code-ink); border-radius: 12px; padding: 14px 16px; overflow-x: auto; white-space: nowrap; }
.formula .v { color: var(--code-fn); } .formula .c { color: var(--code-num); } .formula .o { color: var(--code-dim); }

/* ---------- horizontal bars (benchmarks) ---------- */
.hb { display: grid; gap: 8px; }
.hb-row { display: grid; grid-template-columns: minmax(130px, 220px) minmax(0, 1fr) 64px; gap: 12px; align-items: center; font-size: 0.88rem; }
.hb-row .lbl { color: var(--ink); line-height: 1.25; }
.hb-row .lbl small { display: block; color: var(--ink-3); font-size: 0.76rem; }
.hb-row .track { height: 22px; background: var(--sunk); border-radius: 4px; position: relative; overflow: hidden; }
.hb-row .bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--other); border-radius: 0 4px 4px 0; width: var(--w); transition: width 1s cubic-bezier(.2, .7, .2, 1); }
.hb-row .bar.self { background: var(--accent); }
.hb-row .bar.ref { background: repeating-linear-gradient(135deg, var(--hatch) 0 3px, transparent 3px 7px); border: 1px solid var(--hatch); }
.hb-row .val { font: 500 0.86rem/1 var(--mono); color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.hb-row[data-tip] { cursor: default; border-radius: 6px; }
.hb-row[data-tip]:hover .track { outline: 2px solid var(--rule-2); }
.js .hb:not(.done) .hb-row .bar { width: 0; }
@media (prefers-reduced-motion: reduce) { .js .hb:not(.done) .hb-row .bar { width: var(--w); } }
@media (max-width: 600px) { .hb-row { grid-template-columns: minmax(0, 1fr) 56px; } .hb-row .lbl { grid-column: 1 / -1; } }
.hb-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.8rem; color: var(--ink-2); }
.hb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hb-legend i { width: 14px; height: 10px; border-radius: 2px; background: var(--other); }
.hb-legend i.self { background: var(--accent); }
.hb-legend i.ref { background: repeating-linear-gradient(135deg, var(--hatch) 0 3px, transparent 3px 7px); border: 1px solid var(--hatch); }

/* paired bars: without / with */
.pair { display: grid; gap: 14px; }
.pair-row { display: grid; gap: 6px; }
.pair-row .lbl { font-size: 0.9rem; color: var(--ink); }
.pair-row .hb-row { grid-template-columns: 110px minmax(0, 1fr) 70px; }
@media (max-width: 600px) { .pair-row .hb-row { grid-template-columns: 90px minmax(0, 1fr) 60px; } .pair-row .hb-row .lbl { grid-column: auto; } }

/* ---------- tables ---------- */
.tbl { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); }
.tbl table { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
.tbl th, .tbl td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl th { font: 600 0.78rem/1.3 var(--body); color: var(--ink-2); background: var(--sunk); white-space: nowrap; }
.tbl td.n, .tbl th.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.self td { background: var(--accent-wash); }
.tbl tr.self td:first-child { font-weight: 600; }
.src-line { font-size: 0.8rem; color: var(--ink-3); }
.src-line a { color: var(--ink-2); }

/* ---------- install ---------- */
.ways { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.way { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.way.best { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.way pre { margin: 0; background: var(--code-bg); color: var(--code-ink); border-radius: 10px; padding: 12px 14px; font: 400 0.8rem/1.55 var(--mono); overflow-x: auto; }
.way p { color: var(--ink-2); font-size: 0.9rem; }
.way .k { font: 500 0.68rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

/* ---------- the architecture's packets ---------- */
.pkt { r: 4.5; }
.fig .play-ctl { justify-self: start; }

/* ---------- the chat example's injected block ---------- */
.inject { margin: 0; border-left: 3px solid #6fdcb0; background: rgba(27, 175, 122, 0.08); padding: 8px 11px; border-radius: 0 8px 8px 0; font: 400 0.78rem/1.5 var(--mono); color: #bfe9d6; }
.inject .h { display: block; color: #6fdcb0; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 3px; }
.hookline { font: 500 0.68rem/1.2 var(--mono); color: var(--night-dim); text-align: center; letter-spacing: 0.06em; }
.hookline::before, .hookline::after { content: " ─── "; color: var(--night-rule); }

/* ---------- small helpers ---------- */
.kicker { font: 500 0.72rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.lim { display: grid; gap: 12px; }
.lim li { color: var(--ink); }
.lim li span { color: var(--ink-2); }
.center-actions { justify-content: center; }
.machine { display: inline-block; font: 500 0.7rem/1 var(--mono); color: var(--ink-3); border: 1px solid var(--rule-2); border-radius: 999px; padding: 4px 8px; }
.pending { border-left-color: var(--fam-graph); }

/* personal memory: today and next, the plain-file comparison, the readers' chart */
.now-next { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.now-next > div { display: grid; gap: 12px; min-width: 0; }
.now-next h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.now-next .cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.card.next { border-style: dashed; background: transparent; }
.badge { font: 500 0.64rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; background: var(--accent-wash); color: var(--accent); white-space: nowrap; }
.badge.next { background: transparent; border: 1px dashed var(--rule-2); color: var(--ink-2); }
.tbl td .y, .tbl td .x, .tbl td .m { display: inline-block; width: 1.1em; font-weight: 600; }
.tbl td .y { color: var(--fam-vec); }
.tbl td .x { color: var(--fam-cols); }
.tbl td .m { color: var(--fam-graph); }
.tbl.cmp td:first-child { color: var(--ink-2); font-weight: 500; }
.tbl.cmp th.self, .tbl.cmp td.self { background: var(--accent-wash); }
.readers { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.readers > div { display: grid; gap: 8px; min-width: 0; }
.readers h3 { font-size: 0.98rem; }
.hb-row .bar.file { background: var(--fam-graph); }
.hb-legend i.file { background: var(--fam-graph); }
.readers .hb-row { grid-template-columns: minmax(110px, 150px) minmax(0, 1fr) 44px; gap: 10px; }
@media (max-width: 600px) { .readers .hb-row { grid-template-columns: minmax(0, 1fr) 44px; } }
.hb-row .bar.other { background: var(--fam-vec); }
.hb-legend i.other { background: var(--fam-vec); }
.tbl.matrix td { min-width: 128px; font-size: 0.85rem; }
.tbl.matrix td:first-child { min-width: 190px; }
.tbl.matrix td .badge { margin-left: 4px; vertical-align: 1px; }
.readers .hb-row.self { background: var(--accent-wash); margin: 0 -8px; padding: 5px 8px; border-radius: 6px; }
.readers .hb-row.self + .hb-row.self { margin-top: -8px; border-top-left-radius: 0; border-top-right-radius: 0; }
.readers .hb-row.self:has(+ .hb-row.self) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.readers .hb-row.self .lbl { font-weight: 600; color: var(--accent); }
.readers .hb-row.self .val { font-weight: 700; color: var(--accent); }
.readers .hb-row.self .track { height: 26px; }
/* ---------- the simpler pages (21 Nov 2026): problem, use cases, proof ---------- */
.cx-hl .hb-row.self { background: var(--accent-wash); margin: 0 -8px; padding: 5px 8px; border-radius: 6px; }
.cx-hl .hb-row.self + .hb-row.self { margin-top: -8px; border-top-left-radius: 0; border-top-right-radius: 0; }
.cx-hl .hb-row.self:has(+ .hb-row.self) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.cx-hl .hb-row.self .lbl { font-weight: 600; color: var(--accent); }
.cx-hl .hb-row.self .val { font-weight: 700; color: var(--accent); }
.cx-hl .hb-row { grid-template-columns: minmax(120px, 170px) minmax(0, 1fr) 52px; gap: 10px; }
@media (max-width: 600px) { .cx-hl .hb-row { grid-template-columns: minmax(0, 1fr) 52px; } }
.sec-link { font-weight: 600; text-decoration: none; justify-self: start; }
.sec-link::after { content: " →"; }
.block-head h2 { max-width: 22ch; }
.block-head p { max-width: 60ch; }

/* the problem: every app keeps its own memory, against one memory they all ask */
.cx-vs { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cx-panel { background: var(--panel); border: 1px solid var(--rule); border-radius: 16px; padding: 18px 18px 14px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.cx-panel.good { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.cx-panel .k { font: 600 0.72rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.cx-panel.good .k { color: var(--accent); }
.cx-panel svg { width: 100%; height: auto; display: block; overflow: visible; }
.cx-panel .cx-cap { font: 650 1.05rem/1.3 var(--display); color: var(--ink); }
@media (max-width: 860px) { .cx-vs { grid-template-columns: minmax(0, 1fr); } }
.dgm text { font-family: var(--body); fill: var(--ink); }
.dgm .app { fill: var(--panel); stroke: var(--rule-2); stroke-width: 1.2; }
.dgm .app-t { font: 600 14px var(--body); }
.dgm .silo { fill: var(--sunk); stroke: none; }
.dgm .silo-t { font: 500 11px var(--mono); fill: var(--ink-2); }
.dgm .you { fill: var(--accent-wash); stroke: var(--accent); stroke-width: 1.2; }
.dgm .you-t { font: 600 12px var(--body); fill: var(--accent); }
.dgm .say { fill: var(--panel); stroke: var(--rule-2); }
.dgm .say-t { font: 500 11.5px var(--body); fill: var(--ink-2); }
.dgm .wire { stroke: var(--rule-2); stroke-width: 1.4; fill: none; }
.dgm .wire.bad { stroke: var(--fam-cols); stroke-dasharray: 4 5; opacity: 0.7; }
.dgm .x { stroke: var(--fam-cols); stroke-width: 2.2; stroke-linecap: round; }
.dgm .hub { fill: var(--night); stroke: var(--accent); stroke-width: 1.6; }
.dgm .hub-t { font: 650 14px var(--display); fill: var(--night-ink); }
.dgm .hub-s { font: 500 10.5px var(--mono); fill: var(--night-dim); }
.dgm .fact { font: 500 10.5px var(--mono); fill: #6fdcb0; }
.dgm .wire.live { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 3 7; animation: wire 1.1s linear infinite; }
.dgm .wire.live.rev { animation-direction: reverse; }
@keyframes wire { to { stroke-dashoffset: -20; } }
.dgm .pulse { fill: var(--accent); }
.js .dgm .bubble text { animation: bubble 6s ease-in-out infinite; }
.js .dgm .bubble.b2 text { animation-delay: 2s; }
.js .dgm .bubble.b3 text { animation-delay: 4s; }
@keyframes bubble { 0%, 100% { opacity: 0.25; } 8%, 30% { opacity: 1; } 40% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .dgm .wire.live, .js .dgm .bubble text { animation: none; opacity: 1; } }

/* pains turned into fixes */
.pains { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.pain { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 16px 18px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.pain .was, .pain .now { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 0.95rem; line-height: 1.4; }
.pain .was { color: var(--ink-3); }
.pain .now { color: var(--ink); font-weight: 600; }
.pain .was::before { content: "✕"; color: var(--fam-cols); font-weight: 700; }
.pain .now::before { content: "✓"; color: var(--yes); font-weight: 700; }

/* use cases: a tab per job, each with a scene that plays */
.uses { display: grid; gap: 22px; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
.use-tabs { display: grid; gap: 8px; }
.use-tab { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); position: relative; overflow: hidden; }
.use-tab b { font: 650 1.02rem/1.3 var(--display); color: var(--ink); }
.use-tab span { font-size: 0.88rem; color: var(--ink-2); display: none; }
.use-tab[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.use-tab[aria-selected="true"] span { display: block; }
.use-tab[aria-selected="true"] b { color: var(--accent); }
.use-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.use-tab .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.use-tab[aria-selected="true"] .bar.run { animation: usebar var(--dur, 12s) linear forwards; }
@keyframes usebar { to { width: 100%; } }
.use-panel { display: grid; gap: 12px; min-width: 0; }
.use-panel[hidden] { display: none; }
.use-panel .fix { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 0.92rem; color: var(--ink-2); }
.use-panel .fix code { font: 500 0.8rem/1.2 var(--mono); background: var(--sunk); color: var(--ink); padding: 5px 8px; border-radius: 6px; }
.scene { min-height: 360px; align-content: start; }
@media (max-width: 860px) { .uses { grid-template-columns: minmax(0, 1fr); } .use-tabs { grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); overflow-x: auto; padding: 3px 3px 6px; } .use-tab span { display: none !important; } .scene { min-height: 0; } }
.scene .file { display: flex; gap: 8px; flex-wrap: wrap; }
.scene .zip { font: 500 0.76rem/1 var(--mono); padding: 8px 10px; border-radius: 8px; background: var(--night-2); border: 1px solid var(--night-rule); color: var(--night-ink); }
.scene .zip::before { content: "▤ "; color: var(--night-accent); }
.pcard { background: var(--night-2); border: 1px solid #2b3a72; border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.pcard .h { font: 500 0.66rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--night-accent); }
.pline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--night-rule); color: var(--night-ink); }
.pline:first-of-type { border-top: 0; }
.pline small { grid-column: 1; font: 500 0.7rem/1.2 var(--mono); color: var(--night-dim); }
.pline .acts { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 5px; }
.pline .acts i { font-style: normal; font: 600 0.72rem/1 var(--body); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--night-rule); color: var(--night-dim); }
.pline .old { text-decoration: line-through; color: var(--night-dim); }
.pline .acts i.hit { background: var(--night-accent); color: var(--night); border-color: var(--night-accent); }
.js .pline .acts i.hit:not(.at) { background: transparent; color: var(--night-dim); border-color: var(--night-rule); }
.pline.drop { opacity: 0.4; }
.pline.drop > span:first-child { text-decoration: line-through; }
.js .pline.drop:not(.at) { opacity: 1; }
.js .pline.drop:not(.at) > span:first-child { text-decoration: none; }
.pline.edit .was-t { text-decoration: line-through; color: var(--night-dim); margin-right: 6px; }
.js .pline.edit:not(.at) .was-t { text-decoration: none; color: inherit; }
.js .pline.edit:not(.at) .new-t { display: none; }
.pline.edit .new-t { color: #8ee3c0; }
.grant { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 11px; border-radius: 10px; font-size: 0.86rem; border: 1px solid var(--night-rule); background: #141d38; color: #cdd5ea; }
.grant .ok { color: #6fdcb0; font-weight: 700; }
.grant .no { color: #f5a684; font-weight: 700; }
.grant small { font: 500 0.66rem/1 var(--mono); color: var(--night-dim); }
.share-key { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font: 500 0.74rem/1.2 var(--mono); color: var(--night-dim); }
.share-key b { color: var(--night-ink); font-weight: 500; padding: 4px 7px; border-radius: 6px; background: rgba(27, 175, 122, 0.16); border: 1px solid rgba(27, 175, 122, 0.4); }
.share-key b.off { background: rgba(235, 104, 52, 0.14); border-color: rgba(235, 104, 52, 0.35); color: #f5a684; }

/* three steps, with what flows between them */
.steps3 { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr) 48px minmax(0, 1fr); align-items: stretch; }
.step3 { background: var(--panel); border: 1px solid var(--rule); border-radius: 16px; padding: 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.step3 .n { font: 600 0.72rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.step3 b { font: 650 1.2rem/1.25 var(--display); }
.step3 p { color: var(--ink-2); font-size: 0.92rem; }
.step3 .viz { min-height: 104px; display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; }
.step3 .viz i { width: 18px; height: 18px; border-radius: 3px; background: color-mix(in srgb, var(--fam-text) 45%, var(--panel)); }
.step3 .viz i.t { background: color-mix(in srgb, var(--fam-cols) 45%, var(--panel)); }
.step3 .viz i.n { background: color-mix(in srgb, var(--fam-vec) 55%, var(--panel)); }
.step3 .viz.pick i { opacity: 0.22; transition: opacity 0.5s, transform 0.5s; }
.step3 .viz.pick i.p { opacity: 1; transform: scale(1.15); box-shadow: 0 0 0 2px var(--accent); }
.step3 .viz.brief { display: grid; gap: 6px; }
.step3 .viz.brief span { font: 500 0.76rem/1.3 var(--mono); padding: 6px 8px; border-radius: 6px; background: var(--accent-wash); color: var(--ink); }
.steps3 .arr { display: grid; place-items: center; }
.steps3 .arr svg { width: 40px; height: 20px; }
.steps3 .arr path { stroke: var(--accent); stroke-width: 2; fill: none; stroke-dasharray: 3 5; animation: wire 0.9s linear infinite; }
@media (max-width: 860px) { .steps3 { grid-template-columns: minmax(0, 1fr); } .steps3 .arr { height: 36px; } .steps3 .arr svg { transform: rotate(90deg); } }
@media (prefers-reduced-motion: reduce) { .steps3 .arr path { animation: none; } }

/* proof: one chart with a reader switch, and two small ones beside it */
.cx-proof { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.cx-proof .side { display: grid; gap: 18px; }
@media (max-width: 960px) { .cx-proof { grid-template-columns: minmax(0, 1fr); } }
.fig h3 { font-size: 1.02rem; }
.fig .fig-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.seg { display: inline-flex; border: 1px solid var(--rule-2); border-radius: 999px; padding: 3px; gap: 2px; background: var(--sunk); }
.seg button { all: unset; cursor: pointer; font: 600 0.82rem/1 var(--body); padding: 7px 12px; border-radius: 999px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--accent); box-shadow: var(--shadow); }
.seg button:focus-visible { outline: 2px solid var(--accent); }
[data-reader-panel][hidden] { display: none; }
.big-num { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.big-num b { font: 700 2.2rem/1 var(--display); letter-spacing: -0.03em; color: var(--accent); }
.big-num span { color: var(--ink-2); font-size: 0.9rem; }

/* the comparison: marks only, details on hover */
.tbl.ticks td { text-align: center; font-size: 1.05rem; }
.tbl.ticks th { text-align: center; white-space: normal; }
.tbl.ticks td:first-child, .tbl.ticks th:first-child { text-align: left; font-size: 0.92rem; min-width: 200px; }
.tbl.ticks td.self, .tbl.ticks th.self { background: var(--accent-wash); }
.tbl.ticks th.self { color: var(--accent); }
.tbl.ticks td span { cursor: default; }
.tbl.ticks .dash { color: var(--ink-3); }
.mark-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.84rem; color: var(--ink-2); }
.mark-key .y { color: var(--fam-vec); font-weight: 700; } .mark-key .m { color: var(--fam-graph); font-weight: 700; } .mark-key .x { color: var(--fam-cols); font-weight: 700; }

/* where it runs, and what keeps it private */
.where { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .where { grid-template-columns: minmax(0, 1fr); } }
.clients { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.client { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); }
.client b { font: 650 0.98rem/1.25 var(--display); }
.client span { font: 500 0.72rem/1.3 var(--mono); color: var(--ink-3); }
.priv { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.priv li { margin: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); font-size: 0.95rem; }
.priv svg { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--accent-wash); stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.priv b { display: block; font: 650 0.98rem/1.3 var(--display); }
.priv span { color: var(--ink-2); font-size: 0.88rem; }

/* install: one way at a time */
.inst { display: grid; gap: 14px; max-width: 760px; }
.inst-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.inst-tabs button { all: unset; cursor: pointer; font: 600 0.88rem/1 var(--body); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--rule-2); background: var(--panel); color: var(--ink-2); }
.inst-tabs button[aria-selected="true"] { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.inst-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.inst [data-panel][hidden] { display: none; }

/* details that open for the full numbers */
details.more { border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); }
details.more > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 0.92rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; color: var(--accent); font-weight: 700; }
details.more[open] > summary::after { content: "–"; }
details.more > .in { padding: 0 16px 16px; display: grid; gap: 12px; }
details.more .tbl { border-radius: 10px; }

/* a page's path, as a strip that lights up step by step */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: p; }
.path li { margin: 0; position: relative; background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 16px; display: grid; gap: 8px; align-content: start; min-width: 0; transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s; }
.path li .ic { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--accent-wash); stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.path li b { font: 650 1.02rem/1.25 var(--display); }
.path li p { font-size: 0.86rem; color: var(--ink-2); }
.path li .eg { font: 500 0.72rem/1.35 var(--mono); color: var(--ink-2); background: var(--sunk); border-radius: 6px; padding: 6px 8px; }
.path li:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 32px; width: 8px; height: 2px; background: var(--accent); }
.js .path[data-seq] li:not(.at) { opacity: 0.45; }
.js .path[data-seq] li.now { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); transform: translateY(-3px); }
@media (max-width: 1000px) { .path { grid-template-columns: repeat(2, minmax(0, 1fr)); } .path li::after { display: none; } }
@media (max-width: 560px) { .path { grid-template-columns: minmax(0, 1fr); } }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tools span { font: 500 0.8rem/1.2 var(--mono); padding: 7px 10px; border-radius: 8px; border: 1px solid var(--rule); background: var(--panel); color: var(--ink); }
.tools span small { font-family: var(--body); color: var(--ink-3); margin-left: 6px; }
figure.cx-panel, figure.fig { margin: 0; }
.tbl.ticks td:first-child { font-family: var(--body); color: var(--ink); }
.tbl.ticks td span { font-size: 1.15rem; font-weight: 700; }
.clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cx-hl .hb-row { grid-template-columns: minmax(130px, 190px) minmax(0, 1fr) 52px; }
@media (max-width: 600px) { .cx-hl .hb-row { grid-template-columns: minmax(0, 1fr) 52px; } }
.js .step3 .viz.pick i.p { animation: pickp 2.4s ease-in-out infinite; }
.js .step3 .viz.pick i.p:nth-child(3n) { animation-delay: 0.4s; }
@keyframes pickp { 0%, 100% { transform: scale(1.15); } 50% { transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .js .step3 .viz.pick i.p { animation: none; } }
@media (max-width: 600px) {
  .dgm .app-t { font-size: 17px; }
  .dgm .silo-t { font-size: 13px; }
  .dgm .say-t { font-size: 14px; }
  .dgm .hub-t { font-size: 18px; }
  .dgm .hub-s, .dgm .fact { font-size: 13px; }
  .dgm .you-t { font-size: 14px; }
  .step3 .viz { min-height: 0; }
  .scene { font-size: 0.86rem; }
}
