/* basin8 — site v3. Clay + neutrals. No coral, no salmon: tools/gates.mjs fails the build if one sneaks in. */

@font-face { font-family: "Source Serif 4"; src: url("../fonts/SourceSerif4.ttf") format("truetype"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

/* the hidden attribute always wins: twice a component's display (.repo flex, .chip inline-flex) silently beat it */
[hidden] { display: none !important; }

:root {
  --paper: #efeae3;
  --paper-2: #e7e1d8;
  --paper-3: #ded7cc;
  --clay-hi: #f7f4ef;
  --clay: #ece6dd;
  --clay-2: #e2dbd0;
  --stone: #cfc6b8;
  --taupe: #a59a8d;
  --ink: #25211d;
  --ink-2: #48423b;
  --ink-3: #776e64;
  --ink-4: #9c9389;
  --line: rgba(37, 33, 29, .10);
  --line-2: rgba(37, 33, 29, .17);
  --sage: #7c8870;
  --night: #1e1c19;
  --night-2: #282521;
  --night-3: #34302b;
  --night-ink: #ece6dd;
  --night-ink-2: #b3aa9e;
  --night-ink-3: #847b70;
  --code-key: #d8cdb9;
  --code-str: #b6c0a4;
  --code-num: #c9bfae;
  --code-com: #7f776c;
  --code-fn: #e9e2d6;
  --code-hl: rgba(236, 230, 221, .07);
  --raise: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 -1px 0 rgba(70, 52, 34, .05) inset, 0 22px 44px -30px rgba(58, 44, 30, .42), 0 2px 8px -3px rgba(58, 44, 30, .14);
  --raise-lg: 0 1px 0 rgba(255, 255, 255, .75) inset, 0 50px 90px -50px rgba(52, 38, 24, .55), 0 18px 36px -24px rgba(52, 38, 24, .28), 0 2px 6px rgba(52, 38, 24, .06);
  --press: 0 2px 5px rgba(58, 44, 30, .14) inset, 0 -1px 0 rgba(255, 255, 255, .6) inset;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Code", ui-monospace, Menlo, monospace;
  --wrap: min(1200px, calc(100% - 48px));
  --r: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .40  0 0 0 0 .34  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
main, header, footer { position: relative; z-index: 1; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(124, 136, 112, .28); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.022em; margin: 0; color: var(--ink); font-optical-sizing: auto; }
h1 { font-size: clamp(46px, 7vw, 104px); line-height: .96; letter-spacing: -.034em; }
h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.03em; }
h3 { font-size: 22px; line-height: 1.2; }
h1 em, h2 em { font-style: italic; font-weight: 400; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 46ch; margin: 0; }
.fine { font-size: 13px; color: var(--ink-3); }
code, .mono { font-family: var(--mono); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 15px 24px; background: var(--ink); color: #f4efe8; font: 600 15px/1 var(--sans); letter-spacing: .005em; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.16) inset, 0 14px 26px -14px rgba(30, 24, 18, .65); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.16) inset, 0 20px 30px -16px rgba(30, 24, 18, .7); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 17px; height: 17px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: rgba(255,255,255,.35); }
.btn.clay { background: var(--clay-hi); color: var(--ink); box-shadow: var(--raise); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.link:hover { border-color: var(--ink); }
.link svg { width: 15px; height: 15px; }

/* header */
.top { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(1.1) blur(14px); -webkit-backdrop-filter: saturate(1.1) blur(14px); background: rgba(239, 234, 227, .78); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 700 21px/1 var(--sans); letter-spacing: -.02em; }
.brand img { width: 25px; height: 26px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; font-size: 14.5px; font-weight: 550; color: var(--ink-2); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { padding: 11px 18px; font-size: 14px; }
.menu-btn { display: none; border: 0; background: transparent; padding: 10px; margin-right: -10px; cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; }

/* sections */
section { position: relative; }
.section { padding: clamp(84px, 11vw, 150px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin-top: 18px; }
.section-head .lede { justify-self: end; }
.band { background: var(--paper-2); }
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.band::before { top: 0; } .band::after { bottom: 0; }

/* hero */
.hero { padding: clamp(40px, 5.5vw, 76px) 0 0; text-align: center; }
.hero .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.hero h1 { margin: 22px auto 0; max-width: 20ch; font-size: clamp(40px, 5.6vw, 86px); }
.hero .lede { margin: 24px auto 0; max-width: 56ch; text-align: center; }
.hero-cta { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-stage { margin-top: clamp(96px, 10vw, 140px); padding-bottom: clamp(70px, 9vw, 120px); }
.demo-head { text-align: center; margin: 0 auto clamp(56px, 6vw, 80px); }
.demo-head h2 { margin-top: 16px; }
.demo-head .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.demo-head .lede { margin: 18px auto 0; text-align: center; max-width: 52ch; }
.hero-caption { margin: 22px auto 0; text-align: center; font-size: 14px; color: var(--ink-3); max-width: 70ch; }
.hero-caption b { color: var(--ink-2); font-weight: 650; }

/* ---------- the demo window ---------- */
.win { --win-h: 640px; position: relative; width: min(1180px, 100%); margin: 0 auto; border-radius: 24px; background: var(--clay-hi); box-shadow: var(--raise-lg), 0 0 0 1px rgba(37,33,29,.07); overflow: hidden; text-align: left; isolation: isolate; transition: background .5s var(--ease); }
.win-bar { height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 14px 0 20px; border-bottom: 1px solid var(--line); background: linear-gradient(#f9f7f3, #f1ece5); transition: background .5s var(--ease), border-color .5s; position: relative; z-index: 3; }
.win-dots { display: flex; gap: 7px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--stone); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset; }
.win-title { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); min-width: 0; }
.win-title .face { width: 24px; height: 24px; border-radius: 50%; background: var(--clay-2) center/cover no-repeat; box-shadow: 0 0 0 1px var(--line); flex: none; }
.win-title span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-title small { font-weight: 500; color: var(--ink-4); margin-left: 2px; }

/* the Human | Agent AI switch */
.switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--clay-2); box-shadow: var(--press); border: 0; cursor: pointer; flex: none; }
.switch span { position: relative; z-index: 1; padding: 8px 15px; font: 650 12.5px/1 var(--sans); letter-spacing: .01em; color: var(--ink-3); transition: color .35s; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.switch span svg { width: 14px; height: 14px; }
.switch::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--clay-hi); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 4px 10px -4px rgba(58,44,30,.35); transition: transform .45s var(--ease), background .45s; }
.switch [data-side="human"] { color: var(--ink); }
.win.agent .switch { background: var(--night-3); box-shadow: 0 2px 5px rgba(0,0,0,.35) inset; }
.win.agent .switch::before { transform: translateX(100%); background: var(--night-ink); }
.win.agent .switch [data-side="human"] { color: var(--night-ink-3); }
.win.agent .switch [data-side="agent"] { color: var(--night); }

.win-body { position: relative; height: var(--win-h); }
.pane { position: absolute; inset: 0; display: grid; grid-template-columns: 208px minmax(0, 1fr) 290px; transition: opacity .45s var(--ease), transform .55s var(--ease), filter .45s; }
.pane.agent-pane { grid-template-columns: 248px minmax(0, 1fr) 300px; background: var(--night); color: var(--night-ink); opacity: 0; pointer-events: none; transform: scale(.985); filter: blur(3px); }
.win.agent { background: var(--night); }
.win.agent .win-bar { background: linear-gradient(#2a2723, #23211e); border-color: rgba(255,255,255,.06); }
.win.agent .win-title { color: var(--night-ink-2); }
.win.agent .win-title small { color: var(--night-ink-3); }
.win.agent .win-dots i { background: var(--night-3); box-shadow: none; }
.win.agent .human-pane { opacity: 0; pointer-events: none; transform: scale(1.01); filter: blur(3px); }
.win.agent .agent-pane { opacity: 1; pointer-events: auto; transform: none; filter: none; }

/* rail */
.rail { border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 3px; background: linear-gradient(90deg, #f3efe9, #f6f3ee); }
.rail button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ink-3); cursor: pointer; transition: background .2s, color .2s; }
.rail button svg { width: 17px; height: 17px; flex: none; }
.rail button:hover { color: var(--ink); background: rgba(37,33,29,.04); }
.rail button[aria-selected="true"] { color: var(--ink); background: var(--clay-hi); box-shadow: var(--raise); }
.rail button .badge { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--ink); color: #f4efe8; }
.rail .rail-foot { margin-top: auto; padding: 12px; border-radius: 14px; background: var(--clay); box-shadow: var(--press); font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.rail .rail-foot b { display: block; color: var(--ink-2); font-size: 12.5px; margin-bottom: 2px; }
.rail .rail-foot .live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); margin-right: 6px; box-shadow: 0 0 0 3px rgba(124,136,112,.18); }

/* main view */
.view { padding: 26px 28px; overflow: hidden; display: none; flex-direction: column; gap: 16px; min-width: 0; }
.view.on { display: flex; animation: viewIn .45s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.view-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.view-head h3 { font-size: 26px; letter-spacing: -.02em; }
.view-head .when { font-size: 12.5px; color: var(--ink-4); font-weight: 600; white-space: nowrap; }
.card { background: var(--clay); border-radius: 16px; padding: 16px 18px; box-shadow: var(--raise); }
.card.flat { box-shadow: none; background: transparent; border: 1px solid var(--line); }
.card h4 { margin: 0 0 6px; font: 650 13px/1.3 var(--sans); letter-spacing: .02em; color: var(--ink-3); text-transform: uppercase; }
.card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.note { font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--ink); letter-spacing: -.005em; }
.note small { display: block; margin-top: 10px; font: 600 12px/1 var(--sans); color: var(--ink-4); letter-spacing: .02em; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.list li:first-child { border-top: 0; }
.list li svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); }
.list li .meta { margin-left: auto; font-size: 12px; color: var(--ink-4); font-weight: 600; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 650 11.5px/1.2 var(--sans); background: var(--clay-2); color: var(--ink-2); white-space: nowrap; }
.chip.dark { background: var(--ink); color: #f1ece4; }
.chip.ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.mini-btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.mini-btn { border: 0; border-radius: 999px; padding: 8px 14px; font: 650 12.5px/1 var(--sans); cursor: pointer; background: var(--clay-hi); box-shadow: var(--raise); color: var(--ink); transition: transform .2s; }
.mini-btn:hover { transform: translateY(-1px); }
.mini-btn.dark { background: var(--ink); color: #f4efe8; box-shadow: 0 8px 16px -10px rgba(30,24,18,.7); }
.mini-btn[disabled] { opacity: .5; cursor: default; transform: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.week-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.week-row div { padding: 10px 12px; border-radius: 12px; background: var(--clay-hi); box-shadow: var(--raise); }
.week-row b { display: block; font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.week-row span { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--ink-3); }
.kv b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.meter { height: 6px; border-radius: 6px; background: var(--clay-2); box-shadow: var(--press); overflow: hidden; margin: 10px 0 6px; }
.meter i { display: block; height: 100%; border-radius: 6px; background: var(--ink-2); }

/* chat */
.chat { display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.msg.me { align-self: flex-end; background: var(--ink); color: #f1ece4; border-bottom-right-radius: 6px; }
.msg.ai { align-self: flex-start; background: var(--clay); box-shadow: var(--raise); color: var(--ink); border-bottom-left-radius: 6px; }
.msg.ai b { font-weight: 700; }
.sys { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink-3); border: 1px dashed var(--line-2); }
.sys svg { width: 14px; height: 14px; }
.refusal { border-left: 3px solid var(--ink); padding-left: 12px; }
.composer { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--clay); box-shadow: var(--press); color: var(--ink-4); font-size: 13.5px; }
.composer .mic { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #f4efe8; }
.composer .mic svg { width: 16px; height: 16px; }

/* board */
.steps { display: flex; gap: 8px; }
.steps span { flex: 1; padding: 9px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 650; text-align: center; background: var(--clay-2); color: var(--ink-3); }
.steps span.done { background: var(--ink); color: #f1ece4; }
.steps span.now { background: var(--clay-hi); color: var(--ink); box-shadow: var(--raise); }
.baton { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-2); }
.baton .face { width: 30px; height: 30px; border-radius: 50%; background: var(--clay-2) center/cover; box-shadow: 0 0 0 2px var(--clay-hi), 0 0 0 3px var(--line-2); flex: none; }
.baton svg { width: 16px; height: 16px; color: var(--ink-4); }

/* side presence */
.side { border-left: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(270deg, #f3efe9, #f6f3ee); min-width: 0; }
.presence { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1.05; background: radial-gradient(70% 60% at 50% 42%, #fbf9f5 0%, #e9e2d8 62%, #ddd5c9 100%); box-shadow: var(--press); }
.presence img, .presence video { position: absolute; inset: 6% 8% 0; width: 84%; height: 94%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 18px 18px rgba(52,38,24,.22)); }
.presence .tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; }
.side .who { display: flex; justify-content: space-between; align-items: baseline; }
.side .who b { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -.01em; }
.side .who span { font-size: 12px; color: var(--ink-4); font-weight: 600; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.facts div { padding: 10px 12px; border-radius: 12px; background: var(--clay); box-shadow: var(--raise); }
.facts b { display: block; font: 600 19px/1.1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.facts span { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }

/* agent pane */
.tree { border-right: 1px solid rgba(255,255,255,.06); padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; background: #1a1916; font-family: var(--mono); }
.tree .root { padding: 6px 12px 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--night-ink-3); font-family: var(--sans); font-weight: 700; }
.tree button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 9px; font-size: 12.5px; color: var(--night-ink-2); cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree button svg { width: 14px; height: 14px; flex: none; opacity: .7; }
.tree button:hover { color: var(--night-ink); background: rgba(255,255,255,.04); }
.tree button[aria-selected="true"] { background: var(--night-3); color: var(--night-ink); }
.tree .tree-foot { margin-top: auto; padding: 12px; font: 500 11.5px/1.5 var(--sans); color: var(--night-ink-3); }
.code-view { display: none; flex-direction: column; min-width: 0; min-height: 0; }
.code-view.on { display: flex; animation: viewIn .45s var(--ease); }
.code-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.06); font: 500 12.5px/1.3 var(--mono); color: var(--night-ink-2); min-width: 0; }
.code-head .path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-head .lines { margin-left: auto; color: var(--night-ink-3); white-space: nowrap; }
.code { flex: 1; margin: 0; padding: 16px 0; overflow: auto; font: 400 12.8px/1.7 var(--mono); color: var(--night-ink-2); counter-reset: ln; tab-size: 4; scrollbar-width: thin; scrollbar-color: var(--night-3) transparent; }
.code .ln { display: block; padding: 0 22px 0 0; white-space: pre; }
.code .ln::before { content: attr(data-n); display: inline-block; width: 52px; padding-right: 18px; text-align: right; color: #5d564e; user-select: none; }
.code .ln.hl { background: var(--code-hl); box-shadow: inset 2px 0 0 var(--night-ink-2); }
.code .k { color: var(--code-key); } .code .s { color: var(--code-str); } .code .n { color: var(--code-num); } .code .c { color: var(--code-com); font-style: italic; } .code .f { color: var(--code-fn); }
.code-wrap { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.code-view.on { flex: 1; min-height: 0; }
.proof { border-left: 1px solid rgba(255,255,255,.06); padding: 22px 20px; display: flex; flex-direction: column; background: #201e1b; min-width: 0; min-height: 0; overflow: auto; }
.proof-card { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.proof-card[hidden] { display: none; }
.proof .eyebrow { color: var(--night-ink-3); }
.proof h4 { margin: 0; font: 500 24px/1.18 var(--serif); letter-spacing: -.015em; color: var(--night-ink); }
.proof p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--night-ink-2); }
.proof .test { margin-top: auto; padding: 12px 14px; border-radius: 12px; background: #161513; font: 500 11.8px/1.55 var(--mono); color: var(--night-ink-2); overflow: hidden; }
.proof .test .pass { color: var(--code-str); }
.proof .test .dim { color: var(--night-ink-3); }
.proof .status { display: inline-flex; align-items: center; gap: 8px; font: 650 12px/1 var(--sans); color: var(--night-ink-2); }
.proof .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--code-str); box-shadow: 0 0 0 3px rgba(182,192,164,.16); }
.proof .status.spec::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--night-ink-3); }

/* hint arrow toward the switch */
.switch-hint { position: absolute; right: 28px; top: -46px; display: flex; align-items: center; gap: 8px; font: italic 400 17px/1 var(--serif); color: var(--ink-3); pointer-events: none; transition: opacity .4s; }
.switch-hint svg { width: 34px; height: 34px; transform: translateY(10px); }
.win-wrap { position: relative; }
.win-wrap.flipped .switch-hint { opacity: 0; }

/* ---------- thread ---------- */
.thread-wrap { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 64px; align-items: start; }
.thread-intro { position: sticky; top: 110px; }
.thread-intro h2 { margin-top: 18px; }
.thread-intro .lede { margin-top: 22px; }
.thread-legend { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; font-size: 13px; color: var(--ink-3); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 9px; vertical-align: 1px; }
.dot.live, .dot.tested { background: var(--sage); box-shadow: 0 0 0 3px rgba(124,136,112,.18); }
.dot.progress { background: linear-gradient(90deg, var(--ink-3) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.dot.soon, .dot.designed { box-shadow: inset 0 0 0 1.5px var(--taupe); }
html.js .post.more { display: none; }
html.js .thread.open .post.more { display: grid; animation: viewIn .5s var(--ease); }
html:not(.js) .thread-more, .thread.open .thread-more { display: none; }
.thread-more { margin-top: 10px; }
.post.closer .hook { font-style: italic; }
.ledger-fig { margin: 22px 0 0; }
.ledger-fig figcaption { margin-top: 10px; font: 500 12px/1.4 var(--mono); color: var(--ink-3); overflow-wrap: anywhere; }   /* a long path pushed 360 px phones 16 px wide */
.thread { position: relative; display: flex; flex-direction: column; gap: 14px; }
.thread::before { content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(var(--stone), var(--stone) 70%, transparent); border-radius: 2px; }
.post { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 18px 22px 18px 0; }
.post .num { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--clay-hi); box-shadow: var(--raise); font: 600 15px/1 var(--serif); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.post.lead .num { background: var(--ink); color: #f1ece4; }
.post .body { padding-top: 6px; }
.post .hook { margin: 0; font: 500 clamp(20px, 2vw, 25px)/1.28 var(--serif); letter-spacing: -.012em; color: var(--ink); text-wrap: pretty; }
.post .plain { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.post .tagline { margin-top: 10px; display: flex; align-items: center; gap: 14px; font-size: 12.5px; font-weight: 600; color: var(--ink-4); }
.post.cluster { padding-top: 34px; }
.post.cluster .num { background: transparent; box-shadow: none; }
.post .cluster-title { font: 650 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); padding-top: 22px; }
.thread-more { margin-left: 72px; align-self: flex-start; }

/* ---------- voice ---------- */
.voice-player { border-radius: 26px; overflow: hidden; background: var(--clay-hi); box-shadow: var(--raise-lg), 0 0 0 1px var(--line); }
.voice-frame { position: relative; aspect-ratio: 16 / 9; background: #f9f8f2; }
.voice-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #f9f8f2; }
.voice-frame[data-kind="phone"] video { transform: translateX(19%); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%); mask-image: linear-gradient(to right, transparent 0, #000 14%); }
.voice-frame[data-kind="desk"] video { inset: auto; left: 50%; bottom: 0; height: 78%; width: auto; aspect-ratio: 1024 / 632; transform: translateX(-50%); border-radius: 14px 14px 0 0; box-shadow: 0 -6px 30px rgba(40, 30, 20, .10); }
.voice-frame .vcap { position: absolute; left: 0; top: 0; bottom: 0; width: 42%; padding: 0 4.5% 0 6%; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(90deg, rgba(249,248,242,.98) 55%, rgba(249,248,242,0)); transition: opacity .5s; }
.voice-frame .vcap.desk { width: 100%; height: 26%; bottom: auto; padding: 2.2% 5% 0; justify-content: flex-start; background: linear-gradient(rgba(249,248,242,.98) 60%, rgba(249,248,242,0)); }
.vcap .eyebrow { font-size: 11px; }
.vcap h3 { margin-top: 14px; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.08; letter-spacing: -.022em; }
.vcap p { margin: 12px 0 0; font-size: clamp(13px, 1.15vw, 16px); line-height: 1.55; color: var(--ink-2); max-width: 36ch; }
.vcap.desk p { max-width: 80ch; }
.voice-play { position: absolute; inset: 0; margin: auto; width: 86px; height: 86px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(37,33,29,.86); color: #f4efe8; box-shadow: 0 20px 40px -16px rgba(30,24,18,.6); transition: transform .25s var(--ease), opacity .3s; }
.voice-play:hover { transform: scale(1.04); }
.voice-play svg { width: 30px; height: 30px; margin-left: 4px; }
.voice-frame.playing .voice-play { opacity: 0; pointer-events: none; }
.voice-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.voice-bar .icon-btn { border: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--clay); box-shadow: var(--raise); cursor: pointer; flex: none; }
.voice-bar .icon-btn svg { width: 16px; height: 16px; }
.voice-scenes { display: flex; gap: 6px; flex: 1; min-width: 0; }
.voice-scenes button { flex: 1; min-width: 0; border: 0; background: transparent; padding: 6px 4px; cursor: pointer; text-align: left; }
.voice-scenes button i { display: block; height: 4px; border-radius: 4px; background: var(--clay-2); overflow: hidden; position: relative; }
.voice-scenes button i b { position: absolute; inset: 0; width: 0; background: var(--ink-2); border-radius: 4px; }
.voice-scenes button span { display: block; margin-top: 7px; font-size: 11.5px; font-weight: 650; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voice-scenes button[aria-current="true"] span { color: var(--ink); }
.voice-unavailable { padding: 60px 24px; text-align: center; color: var(--ink-3); }

.engine { margin-top: clamp(56px, 7vw, 90px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; position: relative; }
.engine .stage-card { position: relative; padding: 24px 22px 22px; border-radius: 20px; background: var(--clay); box-shadow: var(--raise); }
.engine .stage-card .k { display: flex; align-items: center; justify-content: space-between; font: 650 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.engine .stage-card .k svg { width: 20px; height: 20px; color: var(--ink-2); }
.engine .stage-card h3 { margin-top: 18px; font-size: 23px; }
.engine .stage-card p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.engine .stage-card .num-big { display: block; margin-top: 14px; font: 500 34px/1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.engine .stage-card .num-big small { font: 600 12px/1.3 var(--sans); color: var(--ink-3); letter-spacing: 0; display: block; margin-top: 6px; }
.engine-foot { margin-top: 18px; font-size: 13px; color: var(--ink-3); }

.continuity { margin-top: clamp(56px, 7vw, 90px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.swap { position: relative; padding: 26px; border-radius: 24px; background: var(--clay-hi); box-shadow: var(--raise-lg); }
.swap-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.swap-row:first-child { border-top: 0; padding-top: 0; }
.swap-row .eng { font: 650 12px/1.3 var(--sans); color: var(--ink-3); }
.swap-row .eng b { display: block; font: 500 17px/1.2 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.swap-row p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.swap .carry { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

/* ---------- avatars ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 22px; align-items: stretch; }
.stage { position: relative; min-height: 640px; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: radial-gradient(42% 46% at 50% 55%, rgba(255, 252, 246, .85) 0%, rgba(246, 241, 233, .72) 32%, rgba(225, 217, 205, 0) 70%),
              radial-gradient(120% 80% at 50% 120%, #cbc1b3 0%, #ddd5ca 45%, #e9e3da 100%);
  box-shadow: var(--raise-lg), 0 0 0 1px var(--line); }
.stage::before { content: ""; position: absolute; left: 50%; top: 55%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255, 255, 252, 1) 0%, rgba(255, 252, 246, .82) 22%, rgba(255, 250, 242, .34) 46%, rgba(255, 250, 242, 0) 68%); filter: blur(4px); animation: breathe 7s ease-in-out infinite; }
.stage::after { content: ""; position: absolute; left: 50%; bottom: 9%; width: 42%; height: 7%; transform: translateX(-50%); border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, rgba(60, 45, 30, .2), rgba(60, 45, 30, 0)); }   /* softer, her 'softer not harsh' */
@keyframes breathe { 0%, 100% { opacity: .68; transform: translate(-50%, -50%) scale(1); } 50% { opacity: .8; transform: translate(-50%, -50%) scale(1.04); } }   /* the backlight sits behind the torso, so a head's rim reads against it */
.stage-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; z-index: -1; background: linear-gradient(rgba(214,205,192,0), rgba(214,205,192,.6)); }
.stage .avatar-media { position: absolute; left: 50%; bottom: 7%; height: calc(80% * var(--k, 1)); width: auto; max-width: 88%; transform: translateX(-50%); object-fit: contain; object-position: bottom; transition: opacity .5s var(--ease), transform .6s var(--ease);
  -webkit-mask-image: linear-gradient(to bottom, #000 90%, rgba(0,0,0,.35) 97%, transparent); mask-image: linear-gradient(to bottom, #000 90%, rgba(0,0,0,.35) 97%, transparent);
  }   /* no drop-shadow here: the bottom-fade mask clips to the box and cut the shadow into a visible rectangle; the stage draws the floor shadow */
/* --k: each avatar's own scale (data/avatars.json "scale"), so a round creature carries the same visual weight as a
   tall one instead of being stretched to its family's height (her 10-25: "I don't want it to feel incohesive") */
.stage .avatar-media[data-kind="creature"] { height: calc(56% * var(--k, 1)); bottom: 10%; }
.stage .avatar-media[data-kind="robot"] { height: calc(70% * var(--k, 1)); }
.face[data-face="human"]::after { content: "M"; display: grid; place-items: center; width: 100%; height: 100%; font: 600 12px/1 var(--serif); color: var(--ink-2); }
.baton .face[data-face="human"]::after { font-size: 13px; }
.stage .avatar-media.out { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.985); }
/* a live loop: the video frame has headroom for the hop and the arms, so it is placed by where its FEET are */
.stage .avatar-media.loop { --h: 80%; --b: 7%; height: calc(var(--h) * var(--k, 1) / var(--ff)); bottom: calc(var(--b) - (1 - var(--fy)) * var(--h) * var(--k, 1) / var(--ff));
  width: auto; max-width: none; transform: translateX(calc(var(--fx) * -100%)); -webkit-mask-image: none; mask-image: none; filter: none; }
.stage .avatar-media.loop[data-kind="robot"] { --h: 70%; }
.stage .avatar-media.loop[data-kind="creature"] { --h: 56%; --b: 10%; }
.stage .avatar-media.loop.out { transform: translateX(calc(var(--fx) * -100%)) translateY(10px) scale(.985); }
/* (the 3D loops carried their own contact shadow; the Grok loops are clean cut-outs: the stage's soft shadow stays) */
.stage::after { transition: opacity .4s; }
.stage-label { position: absolute; left: 26px; top: 24px; right: 26px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.stage-label b { display: block; font: 500 32px/1 var(--serif); letter-spacing: -.02em; }
.stage-label span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--ink-3); max-width: 34ch; }
.stage-light { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; background: rgba(247,244,239,.75); box-shadow: var(--raise); font: 650 12px/1 var(--sans); color: var(--ink-2); white-space: nowrap; }
.stage-light svg { width: 14px; height: 14px; }
.stage-status { position: absolute; left: 26px; bottom: 22px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
/* 11-03 her moves (walk / run / dance on loop, toggled from icons): round buttons right above the 360 button, in its paper +
   raise; pressed = ink. They step aside while the 360 has the stage */
.mv-group { position: absolute; right: 20px; bottom: 68px; z-index: 4; display: flex; flex-direction: column; gap: 8px; transition: opacity .25s, transform .25s var(--ease); }
.stage:not(:has(.tt-start:not([hidden]))) .mv-group { bottom: 18px; }
.stage:has(.tt.is-on, .tt.is-pressed) .mv-group { opacity: 0; pointer-events: none; transform: translateY(6px); }
.mv-btn { all: unset; box-sizing: border-box; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--clay-hi); box-shadow: var(--raise); color: var(--ink-2); cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s; }
.mv-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mv-btn:hover { transform: translateY(-1px); color: var(--ink); }
.mv-btn:active { transform: scale(.97); }
.mv-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.mv-btn[aria-pressed="true"] { background: var(--ink); color: var(--clay-hi); }
@media (max-width: 560px) {
  .mv-group { right: 14px; bottom: 60px; gap: 6px; }
  .stage:not(:has(.tt-start:not([hidden]))) .mv-group { bottom: 14px; }
  .mv-btn { width: 38px; height: 38px; }
}
@media (max-width: 420px) {
  .mv-group { right: 10px; bottom: 58px; }
  .stage:not(:has(.tt-start:not([hidden]))) .mv-group { bottom: 12px; }
}
.picker { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 28px; background: var(--clay); box-shadow: var(--raise); }
.picker h3 { font: 650 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.picker .fam + .fam { padding-top: 18px; border-top: 1px solid var(--line); }
.tiles { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; }
.tile { all: unset; box-sizing: border-box; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px 10px; border-radius: 16px; cursor: pointer; background: var(--clay-hi); box-shadow: var(--raise); transition: transform .25s var(--ease), box-shadow .25s; text-align: center; }
.tile:hover { transform: translateY(-2px); }
.tile[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink), var(--raise); }
.tile .thumb { width: 100%; aspect-ratio: 1; border-radius: 12px; background: radial-gradient(60% 60% at 50% 40%, #fbf9f5, #e6dfd4) ; overflow: hidden; display: grid; place-items: end center; }
.tile .thumb img { width: 88%; height: 92%; object-fit: contain; object-position: bottom; }
.tile[data-kind="cyborg"] .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(1.06); transform-origin: 50% 0; }
.tile span { font-size: 12.5px; font-weight: 650; color: var(--ink-2); line-height: 1.2; }
.tile .soon { position: absolute; top: 12px; right: 12px; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--taupe); background: var(--clay-hi); }

/* ---------- add-ons ---------- */
.addons { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 28px; align-items: start; }
/* marketplace: the featured superpower, clicked by a cursor, lands in Juniper's tray */
.pf { position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px 18px 18px 16px; border-radius: 22px; background: var(--clay-hi); box-shadow: var(--raise-lg), 0 0 0 1px var(--line); overflow: hidden; }
.pf-ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--clay); box-shadow: var(--raise); color: var(--ink); }
.pf-ico svg { width: 23px; height: 23px; }
.pf-id { min-width: 0; }
.pf-id b { display: block; margin-top: 7px; font: 500 21px/1.15 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.pf-id small { display: block; margin-top: 5px; font: 500 11.5px/1.35 var(--mono); color: var(--ink-4); overflow-wrap: anywhere; }
.pf-add { padding: 12px 18px; font-size: 14px; }
.pf-add.pressed { transform: scale(.94); }
.pf-add.added { background: var(--sage); }
.pf-cursor { opacity: 0; transition: opacity .3s; }
.pf.demo .pf-cursor { opacity: 1; animation: pf-cursor 1.6s var(--ease) forwards; }
.pf.demo .cw-ripple { animation: pf-ripple 1.6s linear forwards; }
@keyframes pf-cursor { 0% { transform: translate(var(--sx), var(--sy)); } 70%, 100% { transform: translate(var(--bx), var(--by)); } }
@keyframes pf-ripple { 0%, 72% { opacity: 0; transform: scale(.3); } 76% { opacity: .7; transform: scale(.5); } 100% { opacity: 0; transform: scale(2.4); } }
.tray { padding: 16px 18px; border-radius: 20px; background: var(--clay); box-shadow: var(--press); }
.tray-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tray-chips .chip { background: var(--clay-hi); box-shadow: var(--raise); font-size: 12.5px; padding: 7px 12px; }
.tray-chips .chip[hidden] { display: none; }   /* .chip's inline-flex beat the hidden attribute (same trap as .repo[hidden]) */
.tray-chips .chip.new:not([hidden]) { animation: tray-pop .55s var(--ease); }
@keyframes tray-pop { 0% { opacity: 0; transform: translateY(8px) scale(.85); } 100% { opacity: 1; transform: none; } }
.repo .power { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font: 650 14.5px/1.25 var(--sans); color: var(--ink); }
.repo .power svg { width: 30px; height: 30px; padding: 7px; border-radius: 10px; background: var(--clay-hi); box-shadow: var(--raise); color: var(--ink-2); flex: none; }
.how { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 100px; }
.paste { padding: 22px; border-radius: 22px; background: var(--clay-hi); box-shadow: var(--raise-lg), 0 0 0 1px var(--line); }
.paste label { display: block; font: 650 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.paste-row { display: flex; gap: 8px; padding: 6px; border-radius: 16px; background: var(--clay); box-shadow: var(--press); }
.paste-row input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 12px; font: 500 14px/1.2 var(--mono); color: var(--ink); outline: none; }
.paste-row button { flex: none; }
.paste-steps { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.paste-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 4px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--ink-2); transition: opacity .5s; }
.paste.running .paste-steps li:not(.done) { opacity: .38; }
.paste-steps li:first-child { border-top: 0; }
.paste-steps li.done { opacity: 1; }
.paste-steps li .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--serif); background: var(--clay-2); color: var(--ink-2); }
.paste-steps li.done .n { background: var(--ink); color: #f1ece4; }
.paste-steps li b { color: var(--ink); font-weight: 650; }
.paste-steps li .t { font-size: 12px; color: var(--ink-4); font-weight: 600; white-space: nowrap; padding-top: 3px; }
.paste-result { margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line-2); font-size: 13.5px; color: var(--ink-2); display: none; }
.paste-result.on { display: block; animation: viewIn .4s var(--ease); }
.addon-card { margin-top: 16px; padding: 16px 18px; border-radius: 18px; background: var(--clay); box-shadow: var(--press); display: flex; flex-direction: column; gap: 2px; transition: opacity .4s; }
.paste.running .addon-card { opacity: .35; }
.ac-top { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; min-width: 0; }
.ac-top .gh { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--clay-hi); box-shadow: var(--raise); flex: none; }
.ac-top .gh svg { width: 17px; height: 17px; }
.ac-id { min-width: 0; flex: 1; }
.ac-id b { display: block; font: 650 15.5px/1.2 var(--sans); }
.ac-id small { display: block; font: 500 11.5px/1.4 var(--mono); color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; }
.ac-row span { color: var(--ink-3); font-weight: 600; }
.ac-row b { color: var(--ink); font-weight: 600; }
.shelf { display: flex; flex-direction: column; gap: 0; border-radius: 26px; background: var(--clay); box-shadow: var(--raise-lg), 0 0 0 1px var(--line); overflow: hidden; }
.shelf-head { display: flex; flex-direction: column; gap: 14px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(#f4f0ea, #ede7de); }
.shelf-title { font: 500 22px/1.1 var(--serif); letter-spacing: -.015em; }
.shelf-title small { margin-left: 8px; font: 650 12px/1 var(--sans); color: var(--ink-4); letter-spacing: .04em; }
.shelf .repos { max-height: 660px; overflow-y: auto; padding: 16px; scrollbar-width: thin; scrollbar-color: var(--stone) transparent; }
.shelf .shelf-foot { padding: 12px 20px 16px; border-top: 1px solid var(--line); margin: 0; }
.shelf-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.shelf-tabs button { border: 0; padding: 9px 15px; border-radius: 999px; background: transparent; font: 650 13px/1 var(--sans); color: var(--ink-3); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); }
.shelf-tabs button[aria-pressed="true"] { background: var(--ink); color: #f1ece4; box-shadow: none; }
.repos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.repo { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px; border-radius: 18px; background: var(--clay-hi); box-shadow: var(--raise); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; min-width: 0; }
.repo:hover { transform: translateY(-2px); box-shadow: var(--raise-lg); }
.repo[hidden], .demo-reveal[hidden] { display: none; }
.repo-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.repo-top .gh { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--clay); flex: none; }
.repo-top .gh svg { width: 16px; height: 16px; }
.repo-top b { font: 650 15.5px/1.2 var(--sans); color: var(--ink); }
.repo-top small { display: block; font: 500 11.5px/1.3 var(--mono); color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.repo-top .id { min-width: 0; }
.repo p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); flex: 1; }
.repo-stats { display: flex; align-items: center; gap: 14px; font: 600 12.5px/1 var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.repo-stats span { display: inline-flex; align-items: center; gap: 5px; }
.repo-stats svg { width: 14px; height: 14px; }
.repo-stats .lic { margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-4); }
.shelf-foot { font-size: 12.5px; color: var(--ink-4); }

/* ---------- skills ---------- */
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.skill { position: relative; padding: 22px 22px 20px; border-radius: 20px; background: var(--clay); box-shadow: var(--raise); display: flex; flex-direction: column; gap: 10px; min-height: 168px; }
.skill .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--clay-hi); box-shadow: var(--raise); color: var(--ink-2); }
.skill .ico svg { width: 19px; height: 19px; }
.skill h3 { font-size: 21px; margin-top: 6px; }
.skill p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.skill .sid { margin-top: auto; padding-top: 6px; font-size: 11.5px; color: var(--ink-4); }
.skill .signal { margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.skill .signal b { color: var(--ink); font-weight: 650; }
.skill .signal a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; }
.skill .signal a:hover { color: var(--ink); text-decoration-color: currentColor; }
.skill .kind { position: absolute; top: 22px; right: 22px; font: 650 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }

/* ---------- sovereign ---------- */
.both { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 30px; overflow: hidden; box-shadow: var(--raise-lg), 0 0 0 1px var(--line); }
.both > div { padding: clamp(28px, 4vw, 52px); }
.both .yours { background: var(--clay-hi); }
.both .its { background: var(--night); color: var(--night-ink); }
.both h3 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.02em; }
.both .its h3 { color: var(--night-ink); }
.both ul { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; }
.both li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.both .its li { border-color: rgba(255,255,255,.08); color: var(--night-ink-2); }
.both li b { display: block; color: var(--ink); font-weight: 650; margin-bottom: 2px; }
.both .its li b { color: var(--night-ink); }
.both li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--ink-3); }
.both .its li svg { color: var(--night-ink-3); }
.no-band { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding: clamp(28px, 4vw, 52px); border-radius: 30px; background: var(--clay); box-shadow: var(--raise); }
.no-band h3 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.04; letter-spacing: -.028em; }

/* 10-25: header Demo = a black clay button directly under the logo, its right edge on the end of "Basin8" (her ask) */
.brand-stack { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.top .wrap { height: auto; min-height: 72px; padding-top: 11px; padding-bottom: 11px; }
.btn.demo-btn { padding: 7px 14px; font-size: 13px; gap: 6px; }
.top .demo-btn { margin-right: 4.12px; }   /* the wordmark viewBox runs ~12 units past the 8: snap to the ink, not the img box (31px tall) */
/* RESOLUTION: the truth line under its title */
.section-head .truth { margin: 16px 0 0; font-size: 13px; color: var(--ink-3); }
/* WHY BASIN8 (bottom): the three levers */
.levers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lever { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 2.6vw, 34px); border-radius: 26px; background: var(--clay); box-shadow: var(--raise); }
.lever-top { display: flex; align-items: center; gap: 12px; }
.lever .ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--clay-hi); box-shadow: var(--raise); color: var(--ink-2); }
.lever .ico svg { width: 20px; height: 20px; }
.lever-name { font: 650 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.lever-st { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.lever h3 { font-size: clamp(24px, 2.3vw, 30px); line-height: 1.12; letter-spacing: -.02em; margin-top: 4px; }
.lever p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.lever .plain { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink); font-weight: 550; }
.lever blockquote { margin: 4px 0 0; padding: 16px 18px; border-radius: 16px; background: var(--clay-hi); box-shadow: var(--press); font-family: var(--serif); font-size: 18px; line-height: 1.4; color: var(--ink); }
.lever blockquote cite { display: block; margin-top: 10px; font: 600 11.5px/1 var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.lever-closer { margin: 30px auto 0; max-width: 820px; text-align: center; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.25; letter-spacing: -.015em; color: var(--ink); }
@media (max-width: 860px) { .levers { grid-template-columns: minmax(0, 1fr); } }
.power .kind .dot { margin-right: 6px; vertical-align: 0; }

/* 10-25 copy pass: the signal lines (her "Vault8 - powered by Bitwarden") */
.signal a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; }
.signal a:hover { color: var(--ink); text-decoration-color: currentColor; }
.both li .signal { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.both li .signal b { display: inline; margin: 0; font-weight: 650; color: var(--ink); }
.both .its li .signal { color: var(--night-ink-3); }
.both .its li .signal b { color: var(--night-ink); }
.both .its .signal a { color: var(--night-ink-2); text-decoration-color: var(--night-ink-3); }
.no-band p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.no-band p + p { margin-top: 14px; }
.ledger { margin-top: 20px; max-width: 100%; border-radius: 16px; background: var(--night); color: var(--night-ink-2); padding: 16px 18px; font: 400 12.5px/1.75 var(--mono); overflow-x: auto; white-space: pre; }
.ledger .k { color: var(--code-key); } .ledger .s { color: var(--code-str); } .ledger .c { color: var(--code-com); }

/* ---------- early access ---------- */
.invite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.invite h2 { margin-top: 18px; }
.invite .lede { margin-top: 22px; }
.signup-form { padding: 30px; border-radius: 26px; background: var(--clay-hi); box-shadow: var(--raise-lg), 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 12px; }
.signup-form label[for="email"] { font: 650 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.signup-form input[type="email"] { width: 100%; padding: 16px 18px; border-radius: 14px; border: 0; background: var(--clay); box-shadow: var(--press); font: 500 16px/1.2 var(--sans); color: var(--ink); outline: none; }
.signup-form input[type="email"]:focus { box-shadow: var(--press), 0 0 0 2px var(--ink); }
.signup-form input[aria-invalid="true"] { box-shadow: var(--press), 0 0 0 2px var(--ink-2); }
#email-note { margin: 0; font-size: 13px; color: var(--ink-3); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.consent input { margin-top: 4px; accent-color: var(--ink); width: 16px; height: 16px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-form .btn { justify-content: center; margin-top: 4px; }
.form-status { margin: 0; min-height: 1.4em; font-size: 13.5px; color: var(--ink-3); }
.form-status.success { color: var(--ink); font-weight: 600; }
.form-status.error { color: var(--ink); font-weight: 600; }
.privacy-link { align-self: flex-start; border: 0; background: none; padding: 0; font-size: 13px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.invite-facts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.invite-facts span { display: inline-flex; align-items: center; gap: 8px; }
.invite-facts svg { width: 16px; height: 16px; }

dialog { border: 0; border-radius: 24px; padding: 28px; max-width: 620px; width: calc(100% - 32px); background: var(--clay-hi); color: var(--ink); box-shadow: var(--raise-lg); }
dialog::backdrop { background: rgba(37, 33, 29, .35); backdrop-filter: blur(4px); }
.dialog-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dialog-top h2 { font-size: 30px; }
.icon-command { border: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--clay); box-shadow: var(--raise); cursor: pointer; flex: none; }
.icon-command svg { width: 16px; height: 16px; }
.privacy-copy h3 { font: 650 14px/1.3 var(--sans); margin: 20px 0 6px; }
.privacy-copy p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
#action-controls { display: flex; gap: 10px; margin-top: 18px; }

/* footer */
.foot { padding: 56px 0 64px; border-top: 1px solid var(--line); }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { font-size: 14px; color: var(--ink-3); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot p { margin: 0; font-size: 13px; color: var(--ink-4); }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- devices: its own phone rings you ---------- */
.phone { width: min(330px, 100%); margin: 0 auto; padding: 12px; border-radius: 46px; background: linear-gradient(#2c2925, #1f1d1a); box-shadow: var(--raise-lg), 0 0 0 1px rgba(0,0,0,.2), inset 0 0 0 1px rgba(255,255,255,.06); }
.ph-screen { position: relative; height: 600px; border-radius: 36px; overflow: hidden; background: radial-gradient(120% 70% at 50% 0%, #f7f4ef, #e7e0d6); color: var(--ink); }
.ph-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px 0; font: 650 13px/1 var(--sans); color: var(--ink-2); }
.ph-top svg { width: 15px; height: 15px; }
.ph-isl { width: 84px; height: 24px; border-radius: 999px; background: #1f1d1a; }
.ph-call, .ph-live, .ph-text { position: absolute; inset: 52px 0 0; display: flex; flex-direction: column; align-items: center; padding: 34px 22px; text-align: center; }
.ph-face { width: 104px; height: 104px; border-radius: 50%; background: var(--clay-2) center/cover no-repeat; box-shadow: 0 0 0 6px rgba(247,244,239,.9), var(--raise); }
.ph-face.sm { width: 64px; height: 64px; box-shadow: 0 0 0 4px rgba(247,244,239,.9), var(--raise); }
.phone.ringing .ph-call .ph-face { animation: ph-ring 1.6s var(--ease) infinite; }
@keyframes ph-ring { 0%, 100% { box-shadow: 0 0 0 6px rgba(247,244,239,.9), 0 0 0 6px rgba(124,136,112,.35), var(--raise); } 50% { box-shadow: 0 0 0 6px rgba(247,244,239,.9), 0 0 0 26px rgba(124,136,112,0), var(--raise); } }
.ph-call b, .ph-live b { margin-top: 22px; font: 500 30px/1 var(--serif); letter-spacing: -.01em; }
.ph-sub { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); }
.ph-actions { margin-top: auto; display: flex; gap: 56px; }
.ph-btn { width: 68px; height: 68px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #f7f4ef; box-shadow: 0 14px 24px -14px rgba(30,24,18,.7); }
.ph-btn svg { width: 26px; height: 26px; }
.ph-btn.yes { background: var(--sage); }
.ph-btn.no { background: #5b524a; }
.ph-btn:hover { transform: translateY(-1px); }
.ph-hint { margin: 16px 0 6px; font-size: 12px; color: var(--ink-4); }
.ph-timer { margin-top: 8px; font: 600 13px/1 var(--mono); color: var(--ink-3); }
.ph-lines, .ph-thread { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; }
.ph-thread b { align-self: center; font: 650 13px/1 var(--sans); color: var(--ink-3); margin-bottom: 6px; }
.bub { margin: 0; padding: 11px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; max-width: 88%; animation: tray-pop .45s var(--ease) both; }
.bub.them { background: var(--clay-hi); box-shadow: var(--raise); border-bottom-left-radius: 6px; }
.bub.me { align-self: flex-end; background: var(--ink); color: #f1ece4; border-bottom-right-radius: 6px; }
.ph-lines .bub:nth-child(2), .ph-thread .bub:nth-of-type(2) { animation-delay: 1.1s; }
.ph-thread .bub.me { animation-delay: 2s; }
.ph-again { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 10px 16px; border-radius: 999px; background: rgba(247,244,239,.85); box-shadow: var(--raise); font: 650 12.5px/1 var(--sans); color: var(--ink-2); cursor: pointer; }
.ph-again svg { width: 14px; height: 14px; }

/* ---------- create: "become a creator", small, with basin8's own Create button being clicked ---------- */
.create-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.create-copy h2 { margin-top: 18px; }
.create-copy .lede { margin-top: 20px; }
.create-points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.create-points li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; }
.create-points li > svg { width: 42px; height: 42px; padding: 11px; border-radius: 50%; background: var(--clay-hi); color: var(--ink-2); box-shadow: var(--raise); }
.create-points b { display: block; font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 3px; }
.create-points li > span { color: var(--ink-3); font-size: 15px; line-height: 1.5; }
.create-points small { display: block; margin-top: 6px; font: 600 12px/1 var(--sans); color: var(--ink-4); }
.create-fig { margin: 0; }
.create-fig figcaption { margin-top: 14px; font-size: 13px; color: var(--ink-4); text-align: center; }
.create-win { --t: 9s; position: relative; border-radius: 20px; background: var(--clay-hi); box-shadow: var(--raise-lg), 0 0 0 1px rgba(37,33,29,.07); overflow: hidden; }
.create-win .win-bar { height: 46px; }
.cw-body { position: relative; height: 430px; overflow: hidden; }
.cw-home { position: absolute; inset: 0; padding: 24px 26px; transition: opacity .3s; }
.cw-title { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 14px; }
.cw-title h4 { margin: 0; font: 500 36px/1 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.cw-title p { margin: 8px 0 0; color: var(--ink-3); font-size: 14px; }
.cw-create { padding: 12px 18px; font-size: 14px; pointer-events: none; flex: none; }
.cw-create .plus { font-size: 15px; margin-left: 2px; }
.cw-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 28px; }
.cw-list > div { background: var(--clay); border-radius: 16px; padding: 16px 16px 12px; box-shadow: var(--raise); display: grid; gap: 9px; }
.cw-list b { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cw-list span { font-size: 14px; color: var(--ink-2); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cw-list span:last-child { border-bottom: 0; }
.cw-pane { position: absolute; inset: 0; padding: 22px 26px; background: var(--clay-hi); transform: translateX(102%); box-shadow: -24px 0 44px -34px rgba(52, 38, 24, .55); }
.cw-pane h4 { margin: 10px 0 16px; font: 500 27px/1.15 var(--serif); color: var(--ink); max-width: 28ch; }
.cw-cards { display: grid; gap: 10px; }
.cw-card { background: var(--clay); border-radius: 14px; padding: 13px 15px; box-shadow: var(--raise); display: grid; gap: 4px; transition: transform .3s var(--ease); }
.cw-card b { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.cw-card span { font-size: 12.5px; color: var(--ink-3); }
.cw-cursor { position: absolute; left: 0; top: 0; z-index: 4; transform: translate(var(--sx, 480px), var(--sy, 340px)); filter: drop-shadow(0 3px 4px rgba(37, 33, 29, .28)); }
.cw-cursor svg { display: block; }
.cw-ripple { position: absolute; left: -9px; top: -9px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(37, 33, 29, .55); opacity: 0; transform: scale(.3); }
.create-win.play .cw-cursor { animation: cw-cursor var(--t) var(--ease) infinite; }
.create-win.play .cw-ripple { animation: cw-ripple var(--t) linear infinite; }
.create-win.play .cw-create { animation: cw-press var(--t) linear infinite; }
.create-win.play .cw-pane { animation: cw-pane var(--t) var(--ease) infinite; }
.create-win.play .cw-home { animation: cw-home var(--t) linear infinite; }
.create-win.play .cw-card.first { animation: cw-hover var(--t) var(--ease) infinite; }
.create-win.still .cw-pane { transform: none; }
.create-win.still .cw-cursor { display: none; }
@keyframes cw-cursor {
  0%, 4% { transform: translate(var(--sx), var(--sy)); }
  15%, 20% { transform: translate(var(--bx), var(--by)); }
  17% { transform: translate(var(--bx), var(--by)) scale(.9); }
  34%, 78% { transform: translate(var(--cx), var(--cy)); }
  92%, 100% { transform: translate(var(--sx), var(--sy)); }
}
@keyframes cw-ripple { 0%, 16% { opacity: 0; transform: scale(.3); } 17% { opacity: .7; transform: scale(.5); } 25%, 100% { opacity: 0; transform: scale(2.4); } }
@keyframes cw-press { 0%, 16% { transform: none; } 17.5% { transform: scale(.94); } 20%, 100% { transform: none; } }
@keyframes cw-pane { 0%, 19% { transform: translateX(102%); } 27%, 82% { transform: none; } 90%, 100% { transform: translateX(102%); } }
@keyframes cw-home { 0%, 19% { opacity: 1; } 27%, 82% { opacity: .35; } 90%, 100% { opacity: 1; } }
@keyframes cw-hover { 0%, 33% { transform: none; } 37%, 76% { transform: translateY(-2px); box-shadow: var(--raise-lg); } 80%, 100% { transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .pane { grid-template-columns: 186px minmax(0, 1fr); }
  .pane .side { display: none; }
  .pane.agent-pane { grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .pane.agent-pane .tree { grid-row: 1 / span 2; }
  .pane.agent-pane .proof { grid-column: 2; border-left: 0; border-top: 1px solid rgba(255,255,255,.06); padding: 16px 20px; overflow: visible; }
  .pane.agent-pane .proof .eyebrow, .pane.agent-pane .proof .test { display: none; }
  .pane.agent-pane .proof h4 { font-size: 19px; }
  .proof-card { gap: 8px; }
  .thread-wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .thread-intro { position: static; }
  .engine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav a:not(.btn) { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .section-head .lede { justify-self: start; }
  .continuity, .invite, .no-band { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .studio { grid-template-columns: minmax(0, 1fr); }
  .stage { min-height: 520px; }
  .addons { grid-template-columns: minmax(0, 1fr); }
  .how { position: static; }
  .both { grid-template-columns: minmax(0, 1fr); }
  .create-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  :root { --wrap: calc(100% - 32px); }
  .top .wrap { height: 62px; }
  .nav .btn { padding: 10px 15px; font-size: 13.5px; }
  .hero .lede { font-size: 17px; }
  .hero h1 { font-size: clamp(30px, 9.3vw, 40px); }   /* each sentence stays on one line and inside 390 px (was 14 px wide) */
  .win { border-radius: 20px; }
  .win-bar { height: 58px; padding: 0 8px 0 14px; gap: 8px; }
  .win-dots { display: none; }
  .win-title { justify-content: flex-start; flex: 1 1 auto; font-size: 13px; }
  .win-title small { display: none; }
  .switch span { padding: 8px 10px; font-size: 12px; gap: 5px; }
  .win-body { height: auto; }
  .pane { position: relative; inset: auto; grid-template-columns: minmax(0, 1fr); }
  .pane.agent-pane { position: absolute; inset: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
  .pane.agent-pane .tree { grid-row: auto; }
  .pane.agent-pane .proof { grid-column: auto; }
  .win.agent .human-pane { visibility: hidden; }
  .rail, .tree { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; gap: 4px; scrollbar-width: none; }
  .tree { border-bottom-color: rgba(255,255,255,.06); }
  .rail::-webkit-scrollbar, .tree::-webkit-scrollbar { display: none; }
  .rail button, .tree button { flex: none; padding: 9px 12px; font-size: 13px; }
  .rail .rail-foot, .tree .root, .tree .tree-foot { display: none; }
  .view { padding: 18px 16px 20px; min-height: 520px; }
  .view-head h3 { font-size: 22px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .week-row { grid-template-columns: 1fr 1fr; }
  .msg { max-width: 92%; font-size: 13.5px; }
  .code { font-size: 11.6px; }
  .code .ln::before { width: 36px; padding-right: 12px; }
  .switch-hint { display: none; }
  .post { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding-right: 0; }
  .post .num { width: 44px; height: 44px; font-size: 13px; }
  .thread::before { left: 21px; }
  .thread-more { margin-left: 56px; }
  .voice-frame { aspect-ratio: auto; }
  .voice-frame video, .voice-frame[data-kind] video { position: relative; inset: auto; left: auto; bottom: auto; transform: none; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; box-shadow: none; -webkit-mask-image: none; mask-image: none; }
  .voice-frame[data-kind="desk"] video { aspect-ratio: 1024 / 632; }
  .voice-play { top: 0; bottom: auto; margin-top: calc((100vw - 32px) * 9 / 32 - 43px); }
  .voice-frame .vcap, .voice-frame .vcap.desk { position: relative; width: auto; height: auto; padding: 18px 18px 6px; background: none; }
  .voice-scenes button span { display: none; }
  .engine { grid-template-columns: minmax(0, 1fr); }
  .stage { min-height: 560px; border-radius: 22px; }
  .stage-label b { font-size: 26px; }
  .stage .avatar-media { height: calc(62% * var(--k, 1)); }
  .stage .avatar-media[data-kind="robot"] { height: calc(56% * var(--k, 1)); }
  .stage .avatar-media[data-kind="creature"] { height: calc(46% * var(--k, 1)); }
  .stage .avatar-media.loop { --h: 62%; }
  .stage .avatar-media.loop[data-kind="robot"] { --h: 56%; }
  .stage .avatar-media.loop[data-kind="creature"] { --h: 46%; }
  .tiles { gap: 6px; }
  .tile span { font-size: 11px; }
  .picker { padding: 18px; }
  .repos { grid-template-columns: minmax(0, 1fr); }
  .shelf .repos { max-height: 520px; }
  .skills { grid-template-columns: minmax(0, 1fr); }
  .skill { min-height: 0; }
  .both > div { padding: 26px 22px; }
  .no-band { padding: 26px 22px; }
  .signup-form { padding: 22px; }
  .cw-body { height: 430px; }
  .cw-home, .cw-pane { padding: 18px 16px; }
  .cw-title h4 { font-size: 28px; }
  .cw-list { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; }
  .cw-list > div:last-child { display: none; }
  .cw-pane h4 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== 10-26: the real wordmark; the hero bullets; works-with; the three measured levers; the duel; the dial; FAQ ===== */
.brand img { width: auto; height: 31px; display: block; }
.foot .brand img { height: 28px; }
.hero .lede { max-width: 60ch; }
.hero-bullets { margin: 34px auto 0; max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.hero-bullets > div { padding: 22px 26px; border-radius: 22px; background: var(--clay); box-shadow: var(--raise); }
.hero-bullets h3 { margin: 0 0 12px; font: 650 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hero-bullets ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.hero-bullets li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.hero-bullets li svg { width: 18px; height: 18px; margin-top: 2px; color: var(--ink-3); }
.hero-bullets li b { color: var(--ink); font-weight: 650; }
.works-with { margin: 34px auto 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ww-label { font: 650 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.works-with ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.works-with li { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--clay-hi); box-shadow: var(--raise); }
.works-with li img { align-self: center; width: 20px; height: 20px; }
.works-with li b { font: 700 16px/1 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.works-with li small { font-size: 12px; color: var(--ink-3); }
.works-with p { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.lv-wrap { margin-top: clamp(70px, 8vw, 110px); }
.lv-intro { text-align: center; margin-bottom: 26px; }
.lv-intro h2 { margin-top: 14px; font-size: clamp(34px, 4.2vw, 60px); }
.lv-intro .lede { margin: 12px auto 0; }
.lv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lv { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 26px 26px 22px; border-radius: 26px; background: var(--clay); box-shadow: var(--raise); }
.lv::after { content: ""; position: absolute; inset: -40% -40% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(124,136,112,.16), transparent); pointer-events: none; }
.lv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lv-name { font: 650 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.lv-what { font-size: 12.5px; color: var(--ink-3); }
.lv-big { display: flex; align-items: baseline; gap: 2px; font-family: var(--serif); font-size: clamp(64px, 7vw, 96px); line-height: .95; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.lv-big small { font-size: .5em; letter-spacing: -.02em; color: var(--ink-2); }
.lv-line { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.lv-bars { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.lv-bar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 52px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-3); }
.lv-bar b { font-variant-numeric: tabular-nums; text-align: right; color: var(--ink-2); font-weight: 650; }
.lv-track { height: 10px; border-radius: 999px; background: var(--clay-2); box-shadow: var(--press); overflow: hidden; }
.lv-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ink-4); transition: width 1.4s cubic-bezier(.2,.8,.2,1) .25s; }
.lv-bar.hi .lv-fill { background: linear-gradient(90deg, var(--ink-2), var(--ink)); }
.lv-bar.hi b { color: var(--ink); }
.lv.in .lv-fill { width: calc(var(--v) * 1%); }
.lv-src { margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; }
.lv-src a { color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; }
/* the duel: a brand-new AI vs yours */
.duel { padding: clamp(22px, 3vw, 34px); border-radius: 28px; background: var(--clay); box-shadow: var(--raise-lg); }
.duel-ask { margin: 0 auto 20px; max-width: 640px; text-align: center; font-family: var(--serif); font-size: clamp(20px, 2.1vw, 27px); line-height: 1.3; color: var(--ink); }
.duel-ask span { display: block; margin-bottom: 8px; font: 650 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.duel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duel-side { display: flex; flex-direction: column; padding: 20px; border-radius: 22px; background: var(--clay-hi); box-shadow: var(--press); }
.duel-side.warm { background: var(--night); box-shadow: var(--raise); }
.duel-side h3 { margin: 0 0 14px; font: 650 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.duel-side.warm h3 { color: var(--night-ink-2); }
.duel-chat { display: flex; flex-direction: column; gap: 8px; }
.duel .bub { margin: 0; max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); transition-delay: calc(var(--d) * .55s + .3s); }
.duel .bub.ai { align-self: flex-start; background: #fff; color: var(--ink); box-shadow: var(--raise); }
.duel .bub.me { align-self: flex-end; background: var(--ink); color: #f4efe8; }
.duel-side.warm .bub.ai { background: var(--night-2); color: var(--night-ink); box-shadow: none; transition-delay: .9s; }
.duel.in .bub { opacity: 1; transform: none; }
.tally { margin: auto 0 0; padding-top: 16px; font: 650 13px/1.3 var(--sans); color: var(--ink-2); opacity: 0; transition: opacity .6s var(--ease) 4.4s; }
.duel-side.warm .tally { color: var(--night-ink); transition-delay: 1.6s; }
.duel.in .tally { opacity: 1; }
.duel-note { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--ink-3); }
.facts { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fact { padding: 20px 22px; border-radius: 20px; background: var(--clay); box-shadow: var(--raise); display: flex; flex-direction: column; gap: 8px; }
.fact b { font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); line-height: 1; letter-spacing: -.02em; color: var(--ink); font-weight: 500; }
.fact p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.fact a, .fact .soon { margin-top: auto; font-size: 12px; color: var(--ink-3); }
.fact a { text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; }
/* the dial: yes-man to the wall, with judgment in the middle */
.dial { grid-column: 1 / -1; margin-top: 26px; padding: 24px; border-radius: 22px; background: var(--clay-hi); box-shadow: var(--press); }
.dial h4 { margin: 0 0 18px; font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink); }
.dial-track { position: relative; height: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--ink-4), var(--sage) 50%, var(--ink-4)); opacity: .9; }
.dial-needle { position: absolute; top: -9px; left: 6%; width: 4px; height: 32px; border-radius: 3px; background: var(--ink); box-shadow: 0 0 0 4px rgba(255,255,255,.7); transition: left 1.6s cubic-bezier(.3,1.4,.4,1) .3s; }
.dial.in .dial-needle { left: calc(50% - 2px); }
.dial-ends { margin-top: 18px; display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 16px; }
.dial-end b { display: block; font: 650 14px/1.2 var(--sans); color: var(--ink); }
.dial-end p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.dial-end.center { text-align: center; }
.dial-end.right { text-align: right; }
.dial-stat { display: block; margin-top: 8px; font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.dial-stat strong { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink); }
.dial-stat a { color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--ink-4); }
.dial-ex { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dial-ex p { margin: 0; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: var(--raise); font-size: 14px; line-height: 1.5; color: var(--ink); }
.dial-ex span { display: block; margin-bottom: 6px; font: 650 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.dial-note { margin: 10px 0 0; font-size: 12px; color: var(--ink-3); text-align: center; }
/* FAQ */
.faq { max-width: 900px; display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 20px; background: var(--clay); box-shadow: var(--raise); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-family: var(--serif); font-size: clamp(19px, 1.8vw, 23px); color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--ink-3); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 24px 22px; }
.faq-a p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.cites { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cite { padding: 14px 16px; border-radius: 16px; background: var(--clay-hi); box-shadow: var(--press); display: grid; gap: 6px; }
.cite b { font: 650 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.cite q { font-family: var(--serif); font-size: 17px; line-height: 1.45; color: var(--ink); }
.cite a { font-size: 13px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--ink-4); word-break: break-all; }
.cite small { font-size: 12px; color: var(--ink-3); }
.cite.pending span { font-size: 14px; color: var(--ink-3); }
@media (max-width: 860px) {
  .hero-bullets, .lv-grid, .duel-grid, .facts, .dial-ex { grid-template-columns: minmax(0, 1fr); }
  .dial-ends { grid-template-columns: minmax(0, 1fr); }
  .dial-end.right, .dial-end.center { text-align: left; }
  .lv-bar { grid-template-columns: 96px minmax(0, 1fr) 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .lv-fill, .duel .bub, .tally, .dial-needle { transition: none; }
}

/* 10-26 round 2: the dial spans the band; the warm side shows what got done; tiles read left */
.no-band > .dial { grid-column: 1 / -1; margin-top: 4px; }
.dial .dial-ex p { margin: 0; }
.dial .dial-note { margin: 10px 0 0; font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.lv { text-align: left; }
.lv-bar { grid-template-columns: 124px minmax(0, 1fr) 52px; }
.duel-done { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 10px; }
.duel-done li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14.5px; line-height: 1.45; color: var(--night-ink); opacity: 0; transform: translateX(-6px); transition: opacity .45s var(--ease), transform .45s var(--ease); transition-delay: calc(var(--d) * .35s + 1.4s); }
.duel-done li svg { width: 18px; height: 18px; margin-top: 2px; padding: 2px; border-radius: 50%; background: var(--sage); color: #fff; }
.duel.in .duel-done li { opacity: 1; transform: none; }
.duel .tally { font-size: 15px; letter-spacing: -.005em; }
.duel-side.warm .tally { transition-delay: 3s; }
@media (max-width: 860px) { .lv-bar { grid-template-columns: 110px minmax(0, 1fr) 46px; } }
@media (prefers-reduced-motion: reduce) { .duel-done li { transition: none; } }

/* FAQ: the heading holds the left, the answers take the right */
#faq .wrap { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
#faq .section-head { position: sticky; top: 120px; margin: 0; display: block; }
#faq .faq { max-width: none; }
@media (max-width: 860px) { #faq .wrap { grid-template-columns: minmax(0, 1fr); } #faq .section-head { position: static; } }

.dial .dial-stat strong { display: block; margin-bottom: 4px; font-size: clamp(36px, 3.4vw, 46px); line-height: 1; letter-spacing: -.03em; }

/* "Coming to": a quiet promise under the works-with pills (10-26) */
.coming-to { margin: 18px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; }
.coming-to ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.coming-to li { display: inline-flex; align-items: center; gap: 7px; font: 600 14px/1 var(--sans); color: var(--ink-2); }
.coming-to li img { width: 16px; height: 16px; opacity: .78; }
.coming-to li img[src$="windows.svg"] { width: 13px; height: 13px; }   /* drawn edge to edge on a 16 box; the others sit inside 24 */

/* 10-26: the hero panels share ONE row anatomy (chip | headline + what it's for); the levers say what they're for */
.hero-bullets { gap: 16px; }
.hero-bullets > div { padding: 26px 28px 24px; border-radius: 26px; }
.hero-bullets h3 { margin-bottom: 18px; }
.hero-bullets ul { gap: 16px; }
.hero-bullets li { display: block; font-size: inherit; opacity: 0; transform: translateY(8px); animation: hb-rise .6s var(--ease) both; animation-delay: calc(var(--d) * 90ms + 250ms); }
.hb-row { color: inherit; text-decoration: none; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start; }
.hb-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #f4efe8; box-shadow: 0 6px 14px -8px rgba(30,26,22,.55); }
.hero-bullets li .hb-ico svg { width: 18px; height: 18px; margin: 0; color: #f4efe8; }
.hb-txt { display: flex; flex-direction: column; gap: 3px; padding-top: 1px; }
.hb-txt b { font: 650 16.5px/1.3 var(--sans); letter-spacing: -.005em; color: var(--ink); }
.hb-txt span { font-size: 14.5px; line-height: 1.45; color: var(--ink-3); }
.hero-bullets li > a .hb-ico { background: var(--sage); }
.hero-bullets li > a .hb-txt span::after { content: " ↓"; }
.hero-bullets li > a:hover .hb-txt b { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-4); }
@keyframes hb-rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-bullets li { animation: none; opacity: 1; transform: none; } }

/* 10-26: the research cards carry the same parallel bars as the levers; "Ours" pulses until our number lands */
.fact .lv-bars { margin: 6px 0 4px; }
.fact .lv-bar { grid-template-columns: 112px minmax(0, 1fr) 58px; }
.fact .lv-bar b { font: 650 12.5px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.fact .lv-bar.hi b { color: var(--ink); }
.fact.in .lv-fill { width: calc(var(--v) * 1%); }
.lv-track.pending { background: linear-gradient(90deg, var(--clay-2) 0%, rgba(124,136,112,.28) 50%, var(--clay-2) 100%) 0 0 / 200% 100%; animation: lv-wait 2.4s linear infinite; }
@keyframes lv-wait { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .lv-track.pending { animation: none; } }

/* 10-26: Skills + Superpowers slide right, dots show how many more */
.car { position: relative; }
.car .car-track { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 28px) / 3); gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 6px 26px; margin: -8px -6px -8px; }
.car .car-track::-webkit-scrollbar { display: none; }
.car .car-track > * { scroll-snap-align: start; }
.car::after { content: ""; position: absolute; top: 0; right: -6px; bottom: 44px; width: 56px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--paper)); opacity: 1; transition: opacity .3s; }
.car.at-end::after { opacity: 0; }
.car-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 8px; }
.car-dots { display: flex; align-items: center; gap: 8px; }
.car-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--ink-4); cursor: pointer; transition: width .35s var(--ease), background .35s var(--ease); }
.car-dots button[aria-current="true"] { width: 28px; background: var(--ink); }
.car-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--clay-hi); color: var(--ink); box-shadow: var(--raise); cursor: pointer; transition: opacity .25s, transform .2s var(--ease); }
.car-btn:hover:not(:disabled) { transform: translateY(-1px); }
.car-btn:disabled { opacity: .32; cursor: default; box-shadow: none; }
.car-btn svg { width: 17px; height: 17px; }
@media (max-width: 860px) { .car .car-track { grid-auto-columns: 84%; } }

.band .car::after { background: linear-gradient(90deg, transparent, var(--paper-2)); }

/* 10-26: "A no that holds" reads top to bottom: title | copy, the dial (three equal cards), the code proof folded */
.no-band { align-items: start; row-gap: clamp(26px, 3vw, 36px); }
.no-head h3 { margin-top: 16px; }
.no-band > .dial, .no-band > .no-proof { grid-column: 1 / -1; margin-top: 0; }
.dial-cards { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dial-card { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; border-radius: 20px; background: #fff; box-shadow: var(--raise); text-align: left; }
.dial-card.mid { background: var(--night); box-shadow: var(--raise-lg); }
.dc-name { font: 650 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.dial-card.mid .dc-name { color: var(--night-ink-2); }
.dc-big { font: 500 clamp(40px, 3.6vw, 52px)/1 var(--serif); letter-spacing: -.03em; color: var(--ink); }
.dial-card.mid .dc-big { color: var(--night-ink); font-style: italic; }
.dial .dial-card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.dial .dial-card.mid p { color: var(--night-ink); }
.dial-card small { margin-top: auto; padding-top: 6px; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.dial-card.mid small { color: var(--night-ink-2); }
.dial-card small a { color: inherit; text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; }
.dial .dial-ex { margin-top: 14px; }
.no-proof { border-radius: 18px; background: var(--clay-hi); box-shadow: var(--press); }
.no-proof summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 18px; font: 600 14px/1.2 var(--sans); color: var(--ink-2); }
.no-proof summary::-webkit-details-marker { display: none; }
.no-proof summary svg { width: 17px; height: 17px; color: var(--ink-3); }
.no-proof summary::after { content: "+"; margin-left: auto; color: var(--ink-3); transition: transform .3s var(--ease); }
.no-proof[open] summary::after { transform: rotate(45deg); }
.no-proof .ledger-fig { margin: 0; padding: 0 14px 14px; }
@media (max-width: 860px) { .dial-cards { grid-template-columns: minmax(0, 1fr); } }

/* 10-26: the open-source shelf ends exactly where the paste card ends (her ask); the caption hangs below the column */
@media (min-width: 861px) {
  .addons { align-items: stretch; }
  .how { position: relative; top: auto; }
  .how > .fine { position: absolute; top: 100%; left: 0; right: 0; margin: 14px 0 0; }
  .addons > .shelf { contain: size; }
  .shelf .repos { max-height: none; flex: 1 1 auto; min-height: 0; }
}

/* the track no longer clips the cards' soft shadow */
.car .car-track { padding: 10px 8px 44px; margin: -10px -8px -30px; scroll-padding-inline: 8px; }   /* snap to the card, not the padding: the start is scrollLeft 0 */
.car::after { bottom: 58px; }

/* 10-26 the hero appear (design-to-motion, website context): the page settles in, in reading order, once, ~1.2s.
   6px rise, 2px blur to sharp, 60ms apart. Reduced motion = the final frame. */
:root { --e-rise: cubic-bezier(0.16, 1, 0.3, 1); --e-fade: cubic-bezier(0.33, 1, 0.68, 1); }
@keyframes appear { from { opacity: 0; transform: translateY(6px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
.top .wrap > *, .hero > .wrap:first-child > * { animation: appear .8s var(--e-rise) both; }
.top .wrap > * { animation-delay: 0ms; }
.hero > .wrap:first-child > :nth-child(1) { animation-delay: 60ms; }
.hero > .wrap:first-child > :nth-child(2) { animation-delay: 120ms; }
.hero > .wrap:first-child > :nth-child(3) { animation-delay: 240ms; }
.hero > .wrap:first-child > :nth-child(4) { animation-delay: 300ms; }
.hero > .wrap:first-child > :nth-child(5) { animation-delay: 420ms; }
.hero > .wrap:first-child > :nth-child(6) { animation-delay: 480ms; }
.hero > .wrap:first-child > :nth-child(7) { animation-delay: 540ms; }
.hero-bullets li { animation-delay: calc(var(--d) * 60ms + 380ms); }
@media (prefers-reduced-motion: reduce) { .top .wrap > *, .hero > .wrap:first-child > * { animation: none; } }

/* ===== 10-26 the REAL Basin8 Home inside the demo window (locked Home master as the plate; data/demo-real.json) ===== */
.win-body.real { height: auto; aspect-ratio: 1586 / 992; }
.pane.human-pane.real { display: block; padding: 0; }
.rui { position: relative; width: 100%; height: 100%; overflow: hidden; background: #d9d4cd; }
.rui-stage { position: absolute; left: 0; top: 0; width: 1586px; height: 992px; transform-origin: 0 0; transform: scale(var(--k, .744)); }
.rui-plate { position: absolute; left: 0; top: 0; width: 1586px; height: 992px; max-width: none; display: block; }
.rui-t, .rui-u { position: absolute; }
.rui-t { white-space: nowrap; line-height: 1; font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; font-kerning: normal; }
.rui-box { display: block; max-width: none; }
.rui-caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -0.16em; background: currentColor; opacity: 0; }
/* the load-in (design-to-motion, app frame): the clay surfaces are there from the first frame; contents rise from blur */
.rui .rui-t, .rui .rui-u, .rui-viewer > :not(.rui-niche) { opacity: 0; filter: blur(4px); transform: translateY(10px);
  transition: opacity .75s var(--e-fade), filter .75s var(--e-fade), transform 1.05s var(--e-rise); transition-delay: calc(var(--d, 0) * 45ms + 250ms); }
.rui-viewer > .rui-glass { transform: scale(.86); transition-delay: calc(var(--d, 0) * 60ms + 1000ms); }
.rui-viewer > .rui-glaze { transition-delay: 700ms; }
.rui .rui-niche { opacity: 0; filter: blur(14px) saturate(.6); transition: opacity .8s var(--e-fade) .2s, filter 1.1s var(--e-fade) .2s; }
.rui.in .rui-t, .rui.in .rui-u, .rui.in .rui-viewer > * { opacity: 1; filter: none; transform: none; }
.rui.landed .rui-t, .rui.landed .rui-u { transition: none; }
/* the avatar viewer: her world (the master's scene, statue removed) + her look; chrome rebuilt from the master */
.rui-viewer { position: absolute; border-radius: 9px; overflow: hidden; isolation: isolate; }
.rui-niche { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
.rui-glaze { position: absolute; object-fit: contain; }
.rui-glass { position: absolute; display: flex; align-items: center; background: rgba(30, 28, 25, .84); border: 1px solid rgba(255, 255, 255, .14); border-radius: 9px; box-shadow: 0 4px 10px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .08); color: #f3f1ed; }
.rui-chip { left: 18px; top: 21px; height: 36px; padding: 0 10px 0 4px; gap: 10px; font: 600 16px/1 "Segoe UI", system-ui, -apple-system, sans-serif; }
.rui-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55); }
.rui-fs { left: 265px; top: 21px; width: 40px; height: 36px; justify-content: center; }
.rui-bar { top: 371px; height: 36px; padding: 0 3px; gap: 3px; }
.rui-bar.a { left: 35px; } .rui-bar.b { left: 170px; }
.rui-bar i { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 7px; background: rgba(255, 255, 255, .06); }
.rui-bar .pct { font: 600 13.5px/1 "Segoe UI", system-ui, -apple-system, sans-serif; padding: 0 7px; }
/* the story's helpers wear the design's own pixels: the amber bead, its pulse ring */
.rui-ring { position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(124, 136, 112, .95); opacity: 0; transform: translate(-50%, -50%); pointer-events: none; }
.rui-turn { position: absolute; padding: 0; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.rui-turn:hover { box-shadow: 0 0 0 2px rgba(37, 33, 29, .22); }
.rui-turn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.rui-bead { position: absolute; width: 18px; height: 18px; max-width: none; }
/* Your turn: the app's own DOM vocabulary (concepts/locked-theme/render/home-create.html tokens) */
.rui-pop { position: absolute; left: 1096px; top: 92px; width: 384px; padding: 18px 18px 14px; border: 1px solid var(--stone); border-radius: 12px; background: linear-gradient(145deg, var(--clay-hi), var(--clay)); box-shadow: inset 0 1px 1px #fff9, 0 14px 34px rgba(58, 44, 30, .26); font: 400 16px/1.4 "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--ink); z-index: 3; text-align: left; }
.rui-pop-h { display: block; margin: 0 0 10px; font: 700 21px/1.2 Georgia, serif; }
.rui-pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rui-pop li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--clay-2); border-radius: 10px; background: linear-gradient(140deg, var(--clay-hi), var(--paper)); }
.rui-pop li b { display: block; font-weight: 600; }
.rui-pop li small { color: var(--ink-3); font-size: 13.5px; }
.rui-btn { flex: none; min-height: 36px; padding: 6px 14px; border: 1px solid var(--stone); border-radius: 9px; background: linear-gradient(145deg, var(--clay-hi), var(--clay)); box-shadow: inset 0 1px 1px #fff8, 0 3px 6px rgba(58, 44, 30, .16); font: 600 14px/1 "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--ink); cursor: pointer; }
.rui-btn.primary { border-color: var(--ink); background: var(--ink); color: var(--clay-hi); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 4px 10px rgba(37, 33, 29, .28); }   /* the site's ink button */
.rui-btn:disabled { opacity: .72; cursor: default; }
.rui-soon { flex: none; }
.rui-pop-note { margin: 10px 2px 0; min-height: 19px; font-size: 13.5px; color: var(--ink-2); }
/* phone: the real window at a readable scale, swiped sideways (the locked phone layouts come next) */
@media (max-width: 860px) {
  .win-body.real { aspect-ratio: auto; height: calc(992px * .62); }
  .pane.human-pane.real { height: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
  .pane.human-pane.real::-webkit-scrollbar { display: none; }
  .pane.human-pane.real .rui { width: calc(1586px * .62); }
}
@media (prefers-reduced-motion: reduce) {
  .rui .rui-t, .rui .rui-u, .rui .rui-viewer > *, .rui .rui-viewer > .rui-glass, .rui .rui-niche { transition: none; }   /* must outrank the load-in rules (the viewer once lagged 1s) */
}
/* ===== 10-29 the demo's views, right above the window they change (her 10-27 rule): Full screen (the browser's own where
   it has one; a phone gets the WHOLE desktop window, fitted) and, once the phone pages pass, See it on mobile ===== */
.win-views { position: absolute; left: 0; top: -50px; z-index: 2; display: flex; align-items: center; gap: 8px; }
.win-views .btn { display: inline-flex; align-items: center; gap: 7px; }
.win-views .wv-open, .win-views .wv-close { display: inline-flex; align-items: center; gap: 7px; }
.win-views svg { width: 16px; height: 16px; flex: none; }
.win-views .wv-close, .wv-turn { display: none; }
[data-win-full][aria-pressed="true"] .wv-open { display: none; }
[data-win-full][aria-pressed="true"] .wv-close { display: inline-flex; }
@media (max-width: 860px) {
  .win-views { position: static; justify-content: center; margin: 0 0 14px; }
}
html.win-full-open { overflow: hidden; }
.win-wrap.is-full { position: fixed; inset: 0; z-index: 1000; margin: 0; padding: 64px 16px 16px; display: flex; align-items: center; justify-content: center; background: var(--paper); opacity: 1; transform: none; }
.win-wrap.is-full::backdrop { background: var(--paper); }
.win-wrap.is-full .win-views { position: absolute; left: 16px; right: 16px; top: 12px; margin: 0; justify-content: flex-end; }
.win-wrap.is-full .switch-hint { display: none; }
.win-wrap.is-full .win { width: min(100%, calc((100dvh - 80px - 56px) * 1586 / 992)); margin: 0; }
.win-wrap.is-full .win-body.real { aspect-ratio: 1586 / 992; height: auto; }
.win-wrap.is-full .pane.human-pane.real { overflow: hidden; }
.win-wrap.is-full .pane.human-pane.real .rui { width: 100%; }
/* a phone held sideways is short: fit the window to the WIDTH and let the full screen scroll down (fitting the height
   left a 330 px window in a 750 px wide screen) */
@media (max-height: 520px) {
  .win-wrap.is-full { display: block; overflow-y: auto; padding: 56px 12px 12px; }
  .win-wrap.is-full .win { width: 100%; }
  .win-wrap.is-full .win-views { top: 10px; }
}
@media (max-width: 860px) and (orientation: portrait) {
  .win-wrap.is-full .win-views { justify-content: space-between; }
  .win-wrap.is-full .wv-turn { display: inline-flex; align-items: center; gap: 6px; order: -1; font-size: 13px; color: var(--ink-3); }
  .win-wrap.is-full .wv-turn svg { width: 15px; height: 15px; transform: rotate(90deg); }
}
/* the phone view (10-30, her yes on the phone boards): on a desktop, "See it on mobile" swaps the window for the live
   phone app in its frame, the frame scaled (site.js sets --pk) into a box the window's own size, so the page below
   doesn't jump; on a phone it IS the demo, edge to edge. A phone's "Desktop view" (10-30 her: "open 16:9 desktop view
   with full screen as an option") shows the WHOLE window in its widescreen shape in the page, Full screen beside it.
   Full screen always shows the desktop window. */
.win-wrap .win-phone { display: none; }
.win-views .wp-open, .win-views .wp-close { display: inline-flex; align-items: center; gap: 7px; }
.win-views .wp-close, .win-views [data-win-phone][aria-pressed="true"] .wp-open { display: none; }
.win-views [data-win-phone][aria-pressed="true"] .wp-close { display: inline-flex; }
.win-wrap.is-phone:not(.is-full) .win, .win-wrap.is-phone:not(.is-full) .switch-hint { display: none; }
.win-wrap.is-phone:not(.is-full) .win-phone { display: block; }
.win-phone { position: relative; width: 100%; aspect-ratio: 1586 / 992; min-height: 720px; }
.win-phone .b8m-device { position: absolute; left: 50%; top: 0; margin-left: -207px; transform: scale(var(--pk, 1)); }
.win-phone .b8m-inline { display: none; }
.win-views .wp-d, .win-views .wp-m { display: none; align-items: center; gap: 7px; }
@media (max-width: 860px) {
  .win-views [data-win-phone][aria-pressed] .wp-open, .win-views [data-win-phone][aria-pressed] .wp-close { display: none; }
  .win-views [data-win-phone][aria-pressed="true"] .wp-d, .win-views [data-win-phone][aria-pressed="false"] .wp-m { display: inline-flex; }
  .win-wrap.is-phone:not(.is-full) [data-win-full] { display: none; }
  /* the desktop view on a phone: the whole window, fitted to the width (never the cropped sideways swipe) */
  .win-wrap:not(.is-phone) .win-body.real { aspect-ratio: 1586 / 992; height: auto; }
  .win-wrap:not(.is-phone) .pane.human-pane.real { overflow: hidden; }
  .win-wrap:not(.is-phone) .pane.human-pane.real .rui { width: 100%; }
  .win-phone { aspect-ratio: auto; min-height: 0; }
  .win-phone .b8m-device { display: none; }
  .win-phone .b8m-inline { display: block; position: relative; width: min(100vw, 430px); margin-left: calc(50% - min(50vw, 215px));
    height: clamp(560px, calc(100svh - 96px), 844px); overflow: hidden; background: var(--clay); }
  /* the page keeps scrolling past the end of a list inside the demo (the app's own lists hold their scroll) */
  .win-phone .b8m-inline :is(.b8m-scroll, .b8mc-stream, .b8mc-sl, .b8mp-scroll) { overscroll-behavior-y: auto; }
}
/* 10-30: narrow, the Agent AI side stacks (tabs, code, proof); the fitted plate box is ~224 px tall there and left the
   code 0 px high, so the flipped window takes its own height, in the page and in full screen (the plate under it is hidden) */
@media (max-width: 720px) {
  .win-wrap .win.agent .win-body.real { aspect-ratio: auto; height: min(600px, calc(100dvh - 150px)); }
}
@media (min-width: 431px) and (max-width: 860px) { .win-phone .b8m-inline { border-radius: 28px; } }

/* ===== 10-26 Become a creator, on the REAL Basin8 Home (Codex's Create flow) in the site's colours ===== */
.create-win.real .rc-view { position: relative; overflow: hidden; }
.rc-desk { position: relative; aspect-ratio: 912 / 872; overflow: hidden; background: #e4dfd7; }
.rc-stage { position: absolute; left: 0; top: 0; width: 1586px; height: 992px; transform-origin: 0 0; transform: scale(var(--k, .67)) translate(var(--cx), var(--cy)); }
.rc-compact { display: none; }
.rc-create { position: absolute; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 178px; min-height: 44px; padding: 9px 18px; border-radius: 9px; background: var(--ink); color: var(--clay-hi); font: 600 20px/1 "Segoe UI", system-ui, -apple-system, sans-serif; box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 6px 14px rgba(37, 33, 29, .28); transition: transform .14s var(--ease); }
.rc-create.press, .rc-btn.press { transform: scale(.95); }
/* the Create pane: Codex's anatomy (crumb, Georgia title, interest filter, numbered idea cards, Shape this project) */
.rc-pane { position: absolute; overflow: hidden; padding: 25px 28px; border-radius: 10px; background: linear-gradient(125deg, var(--clay-hi), var(--clay) 68%); box-shadow: inset 0 1px 1px #fff9, 0 3px 7px rgba(58, 44, 30, .2); font: 400 16px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--ink); text-align: left; opacity: 0; transform: translateY(30px); filter: blur(6px); }
.rc-pane header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid var(--stone); }
.rc-crumb { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--ink-3); }
.rc-back, .rc-quiet { text-decoration: underline; text-underline-offset: 4px; font-size: 15px; color: var(--ink); }
.rc-body { display: grid; }
.rc-list, .rc-draft { grid-area: 1 / 1; }
.rc-draft { opacity: 0; }
.rc-h { margin: 18px 0 10px; max-width: 680px; font: 700 37px/1.13 Georgia, "Times New Roman", serif; color: var(--ink); }
.rc-intro { margin: 0; max-width: 680px; color: var(--ink-3); }
.rc-filter { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-size: 14px; }
.rc-select { padding: 9px 12px; border: 1px solid var(--stone); border-radius: 7px; background: var(--clay-hi); }
.rc-count { color: var(--ink-3); }
.rc-cards { display: grid; gap: 14px; }
.rc-card { padding: 17px 20px; border: 1px solid var(--stone); border-radius: 12px; background: linear-gradient(140deg, var(--clay-hi), var(--clay)); box-shadow: inset 0 1px #fffc, 0 3px 7px rgba(58, 44, 30, .14); }
.rc-top { display: flex; align-items: start; gap: 16px; }
.rc-num { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--stone); border-radius: 10px; font: 700 21px Georgia, serif; color: var(--sage); box-shadow: inset 0 1px #fff6, 0 2px 4px rgba(58, 44, 30, .14); }
.rc-card h4 { margin: 0 0 4px; font: 700 23px/1.2 Georgia, "Times New Roman", serif; }
.rc-card p { margin: 0; color: var(--ink-2); }
.rc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.rc-meta span { padding: 3px 9px; border: 1px solid var(--stone); border-radius: 20px; font-size: 12px; color: var(--ink-2); }
.rc-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.rc-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--stone); border-radius: 9px; background: linear-gradient(145deg, var(--clay-hi), var(--clay)); box-shadow: inset 0 1px 1px #fff8, 0 3px 6px rgba(58, 44, 30, .16); font-weight: 600; font-size: 15px; color: var(--ink); transition: transform .14s var(--ease); }
.rc-btn.primary { border-color: var(--ink); background: var(--ink); color: var(--clay-hi); }
.rc-draft label { display: grid; gap: 5px; margin: 14px 0; font-weight: 600; }
.rc-input { display: block; min-height: 42px; padding: 9px 11px; border: 1px solid var(--stone); border-radius: 7px; background: var(--clay-hi); font-weight: 400; color: var(--ink); }
.rc-input.tall { min-height: 70px; }
.rc-actions { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.rc-status { min-height: 24px; margin: 12px 0 0; color: var(--ink-2); }
.rc-caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -0.16em; background: currentColor; }
.rc-cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 22px; height: 22px; opacity: 0; pointer-events: none; will-change: transform; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.rc-ripple { position: absolute; left: -9px; top: -9px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(37, 33, 29, .45); opacity: 0; }
/* reduced motion: the opened shortlist, still */
.create-win.real.still .rc-pane { opacity: 1; transform: none; filter: none; }
/* phone: Codex's own compact Home (the concept's responsive layout), not the shrunken plate */
@media (max-width: 860px) {
  .rc-desk { display: none; }
  .rc-compact { display: block; position: relative; height: 640px; overflow: hidden; padding: 20px 16px; background: linear-gradient(125deg, var(--clay-hi), var(--clay) 68%); font: 400 15px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--ink); text-align: left; }
  .rc-ctitle { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
  .rc-compact .rc-h { margin: 10px 0 6px; font-size: 28px; }
  .rc-create.c { position: static; min-width: 0; min-height: 40px; padding: 8px 14px; font-size: 16px; margin-top: 14px; }
  .rc-clist { display: grid; gap: 14px; margin-top: 20px; }
  .rc-clist section { padding: 16px 18px; border: 1px solid var(--stone); border-radius: 12px; background: linear-gradient(140deg, var(--clay-hi), var(--clay)); box-shadow: 0 4px 9px rgba(58, 44, 30, .12); }
  .rc-clist h4 { margin: 0 0 6px; font: 700 19px/1.2 Georgia, serif; }
  .rc-clist p { margin: 4px 0; color: var(--ink-2); }
  .rc-pane.compact { inset: 0; padding: 20px 16px; border-radius: 0; font-size: 15px; }
  .rc-pane.compact .rc-h { font-size: 24px; margin-top: 14px; }
  .rc-pane.compact .rc-card { padding: 14px 15px; }
  .rc-pane.compact .rc-card h4 { font-size: 18px; }
  .rc-pane.compact .rc-num { width: 34px; height: 34px; font-size: 17px; }
  .rc-pane.compact .rc-filter { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .rc-create, .rc-btn { transition: none; } }

/* ===== 10-27 her "if you could keep the layout exactly the same, but changed the theme - what would it look like, can you
   make 3 one that is a subtle change, one medium and one maximal?" -> ?theme=subtle | medium | max (site.js sets
   html[data-theme]). TOKENS ONLY: the layout cannot move. No coral or salmon (the build gate still runs). ===== */
:root[data-theme="subtle"] {   /* Linen: a breath warmer and brighter, sage a shade deeper */
  --paper: #f3eee6; --paper-2: #ebe4da; --paper-3: #e2d9cc; --clay-hi: #fbf8f3; --clay: #f0e9df; --clay-2: #e6ddd0;
  --stone: #d3c9ba; --taupe: #a69a8b; --ink: #2a241e; --ink-2: #4d463e; --ink-3: #7b7166; --ink-4: #a0968a; --sage: #6c7b60;
}
:root[data-theme="medium"] {   /* Sage Stone: every neutral leans sage, olive-charcoal ink, deep green night bands */
  --paper: #e8eae0; --paper-2: #dfe2d6; --paper-3: #d3d7c8; --clay-hi: #f5f6ef; --clay: #e6e8dd; --clay-2: #dadecf;
  --stone: #c2c8b5; --taupe: #979e8a; --ink: #20251f; --ink-2: #41493d; --ink-3: #6a7363; --ink-4: #929a88;
  --line: rgba(32, 37, 31, .10); --line-2: rgba(32, 37, 31, .17); --sage: #5b6d52;
  --night: #1b201b; --night-2: #242a23; --night-3: #2f362d; --night-ink: #e6e9de; --night-ink-2: #aeb5a3; --night-ink-3: #7e8775;
}
/* MAXIMAL, "After Hours": the same Basin8 after dark. Deep forest-black ground, cream ink, brass where sage was, deeper night bands, glow */
:root[data-theme="max"] {
  --paper: #141813; --paper-2: #181d17; --paper-3: #1f251e; --clay-hi: #232a21; --clay: #1c221b; --clay-2: #283026;
  --stone: #3c4539; --taupe: #747d6c; --ink: #f2ebdd; --ink-2: #d5cdbc; --ink-3: #a7a091; --ink-4: #827d71;
  --line: rgba(242, 235, 221, .10); --line-2: rgba(242, 235, 221, .18); --sage: #c9a86a;
  --night: #0b0e0b; --night-2: #131711; --night-3: #1d221b; --night-ink: #f2ebdd; --night-ink-2: #bdb5a3; --night-ink-3: #8a8576;
  --raise: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 22px 44px -28px rgba(0, 0, 0, .75), 0 2px 8px -3px rgba(0, 0, 0, .45);
  --raise-lg: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 50px 90px -46px rgba(0, 0, 0, .8), 0 18px 36px -24px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .3);
  --press: 0 2px 6px rgba(0, 0, 0, .45) inset, 0 -1px 0 rgba(255, 255, 255, .04) inset;
  color-scheme: dark;
}
:root[data-theme="max"] body { background: radial-gradient(1100px 700px at 82% -160px, rgba(201, 168, 106, .20), transparent 70%), radial-gradient(900px 640px at -180px 560px, rgba(140, 160, 120, .12), transparent 70%), var(--paper); }
/* the few hard-coded colours: light text that sat on ink (now cream) turns dark; the white cards take the dark clay */
:root[data-theme="max"] :is(.btn:not(.ghost), .rail button .badge, .mini-btn.dark, .composer .mic, .voice-play, .duel .bub.me, .chip.dark, .msg.me, .steps span.done, .post.lead .num, .paste-steps li.done .n, .shelf-tabs button[aria-pressed="true"], .bub.me) { color: var(--paper); }
:root[data-theme="max"] :is(.hb-ico, .hero-bullets li .hb-ico svg) { color: var(--paper); }
:root[data-theme="max"] :is(.duel .bub.ai, .dial-ex p, .dial-card) { background: var(--clay-hi); }
:root[data-theme="max"] .duel-done li svg { color: var(--paper); }


/* After Hours: the header glass goes dark, the outline button keeps cream text, the wordmark reads light on the dark ground */
:root[data-theme="max"] .top { background: rgba(20, 24, 19, .78); }
:root[data-theme="max"] .btn.ghost { color: var(--ink); }
:root[data-theme="max"] .btn.ghost:hover { background: rgba(255, 255, 255, .06); }
:root[data-theme="max"] .brand img { filter: invert(1) sepia(.12) brightness(.96); }

/* 10-27 her "here please put a clicable, see why below": from "Their no is real." down to "A no that holds" */
.see-why { display: flex; align-items: center; gap: 6px; width: max-content; margin-top: 10px; font: 600 13.5px/1.2 var(--sans); color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: currentColor; opacity: .92; }
.see-why svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.see-why:hover svg { transform: translateY(2px); }
#a-no-that-holds { scroll-margin-top: 110px; }

.rui-logo { position: absolute; height: 35px; width: auto; max-width: none; display: block; }

/* 10-27 the trademark line (from the marks read): small, quiet, never louder than our own name */
.foot .tm, footer .tm { margin: 14px 0 0; max-width: 900px; font-size: 11.5px; line-height: 1.55; color: var(--ink-3); }

/* 10-27 the compliance answer, organized: one card per provider (Claude, ChatGPT, Muse, Grok) */
.cites.provs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.prov { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 16px; background: var(--clay-hi); box-shadow: var(--press); }
.prov-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.prov-head b { font: 600 19px/1.2 var(--serif); color: var(--ink); }
.prov-head span { font: 650 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.prov-how { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); font-weight: 600; }
.prov q { display: block; padding-left: 12px; border-left: 2px solid var(--stone); font: 400 15.5px/1.45 var(--serif); color: var(--ink-2); }
.prov-note { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.prov-src { margin: auto 0 0; padding-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.prov-src a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-4); }
@media (max-width: 860px) { .cites.provs { grid-template-columns: minmax(0, 1fr); } }

/* 10-27 "Open Chat" / "Open all Project Goals" as inverted clay buttons (the site's dark pill) */
.rui-ibtn { position: absolute; height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: 999px; white-space: nowrap; background: linear-gradient(#36312b, var(--ink)); color: var(--clay-hi); font: 600 16px/1 "Segoe UI", system-ui, -apple-system, sans-serif; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 7px 16px -7px rgba(37, 33, 29, .5); }

/* ===== 10-27 landing-page-design (Part B) on every app-UI piece the site draws, both themes =====
   one typeface (Manrope), no italics, no ultra bold; sizes on the Tailwind scale; spacing from the token table; flat
   backgrounds (no gradients); hover / active / focus states; the B7 base curve. The locked plate's baked pixels keep
   their own type (Codex's locked design). */
:root { --lp-curve: cubic-bezier(0.22, 1, 0.36, 1); --ui-ink: var(--ink); --ui-ink-hi: #3a332c; }
:root[data-ui="bronze"] { --ui-ink: #4e4a43; --ui-ink-hi: #5e5951; }
.rui-ibtn { height: auto; padding: 8px 12px 8px 16px; gap: 8px; background: var(--ui-ink); color: var(--clay-hi); font: 600 16px/24px var(--sans); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 8px 16px -8px rgba(37, 33, 29, .5); transition: background-color .3s var(--lp-curve), transform .5s var(--lp-curve); }
.rui-ibtn:hover { background: var(--ui-ink-hi); }
.rc-create { min-width: 0; min-height: 0; padding: 8px 16px; gap: 8px; background: var(--ui-ink); font: 600 16px/24px var(--sans); }
/* the Your turn popover */
.rui-pop { padding: 16px; border-radius: 12px; background: var(--clay-hi); font: 400 16px/24px var(--sans); }
.rui-pop-h { margin: 0 0 12px; font: 600 20px/28px var(--sans); }
.rui-pop ul { gap: 8px; }
.rui-pop li { padding: 12px; border-radius: 8px; background: var(--paper); }
.rui-pop li small { font-size: 14px; line-height: 20px; }
.rui-btn { min-height: 0; padding: 8px 12px; border-radius: 8px; background: var(--clay); box-shadow: none; font: 600 14px/20px var(--sans); transition: background-color .3s var(--lp-curve), transform .5s var(--lp-curve); }
.rui-btn:hover:not(:disabled) { background: var(--clay-2); }
.rui-btn:active:not(:disabled), .rui-turn:active { transform: scale(.98); }
.rui-btn:focus-visible { outline: 2px solid var(--ui-ink); outline-offset: 2px; }
.rui-btn.primary { background: var(--ui-ink); border-color: var(--ui-ink); color: var(--clay-hi); box-shadow: none; }
.rui-btn.primary:hover:not(:disabled) { background: var(--ui-ink-hi); }
.rui-pop-note { margin: 12px 0 0; font-size: 14px; line-height: 20px; }
/* the Create pane (Become a creator) */
.rc-pane { padding: 24px; border-radius: 12px; background: var(--clay-hi); font: 400 16px/24px var(--sans); }
.rc-pane header { padding-bottom: 16px; }
.rc-crumb { font: 600 12px/16px var(--sans); }
.rc-back, .rc-quiet { font: 400 14px/20px var(--sans); }
.rc-h { margin: 16px 0 12px; font: 600 36px/40px var(--sans); letter-spacing: -.01em; }
.rc-intro { font-size: 16px; line-height: 24px; }
.rc-filter { gap: 12px; margin: 16px 0; font-size: 14px; line-height: 20px; }
.rc-select { padding: 8px 12px; border-radius: 8px; }
.rc-cards { gap: 12px; }
.rc-card { padding: 16px 24px; background: var(--clay-hi); box-shadow: 0 1px 0 #fffc inset, 0 4px 8px rgba(58, 44, 30, .1); }
.rc-top { gap: 16px; }
.rc-num { width: 40px; height: 40px; border-radius: 8px; font: 600 20px/28px var(--sans); }
.rc-card h4 { margin: 0 0 4px; font: 600 20px/28px var(--sans); }
.rc-meta { gap: 8px; margin-top: 12px; }
.rc-meta span { padding: 2px 8px; font-size: 12px; line-height: 16px; }
.rc-foot { margin-top: 12px; }
.rc-btn { min-height: 0; padding: 8px 12px; border-radius: 8px; background: var(--clay); box-shadow: none; font: 600 14px/20px var(--sans); }
.rc-btn.primary { background: var(--ui-ink); border-color: var(--ui-ink); color: var(--clay-hi); }
.rc-draft label { gap: 4px; margin: 16px 0; font: 600 14px/20px var(--sans); }
.rc-input { min-height: 40px; padding: 8px 12px; border-radius: 8px; font: 400 16px/24px var(--sans); }
.rc-input.tall { min-height: 72px; }
.rc-actions { gap: 16px; margin-top: 8px; }
.rc-status { margin: 12px 0 0; font-size: 14px; line-height: 20px; }
@media (max-width: 860px) {
  .rc-compact { padding: 24px 16px; background: var(--clay-hi); font: 400 16px/24px var(--sans); }
  .rc-compact .rc-h { margin: 8px 0 4px; font: 600 30px/36px var(--sans); }
  .rc-create.c { padding: 8px 12px; font: 600 16px/24px var(--sans); margin-top: 12px; }
  .rc-clist { gap: 12px; margin-top: 24px; }
  .rc-clist section { padding: 16px; background: var(--clay-hi); }
  .rc-clist h4 { margin: 0 0 8px; font: 600 20px/28px var(--sans); }
  .rc-pane.compact { padding: 24px 16px; }
  .rc-pane.compact .rc-h { margin-top: 16px; font: 600 24px/32px var(--sans); }
  .rc-pane.compact .rc-card { padding: 16px; }
  .rc-pane.compact .rc-card h4 { font: 600 18px/28px var(--sans); }
  .rc-pane.compact .rc-num { width: 32px; height: 32px; font: 600 18px/28px var(--sans); }
}
@media (prefers-reduced-motion: reduce) { .rui-ibtn, .rui-btn { transition: opacity .3s var(--lp-curve); } }

/* 10-27 the Light / Dark / Auto switch (header) */
.mode-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--clay-2); box-shadow: var(--press); }
.mode-switch button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); cursor: pointer; transition: background-color .3s cubic-bezier(0.22, 1, 0.36, 1), color .3s cubic-bezier(0.22, 1, 0.36, 1); }
.mode-switch button svg { width: 16px; height: 16px; }
.mode-switch button[aria-checked="true"] { background: var(--clay-hi); color: var(--ink); box-shadow: var(--raise); }
.mode-switch button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* 10-27 Your turn: Approve + Decline on each decision, and an "Are you sure?" before either acts */
.rui-acts { display: inline-flex; gap: 8px; flex: none; }
.rui-done { flex: none; padding: 4px 8px; border-radius: 999px; background: var(--clay); font: 600 12px/16px var(--sans); color: var(--ink-2); }
.rui-confirm { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 4px; padding: 16px; border-radius: 12px; background: var(--clay-hi); box-shadow: 0 0 0 1px var(--stone), 0 16px 32px -12px rgba(30, 24, 18, .45); }
.rui-confirm b { font: 600 18px/28px var(--sans); color: var(--ink); }
.rui-confirm span { font: 400 14px/20px var(--sans); color: var(--ink-3); }
.rui-confirm-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.rui-btn.danger { background: var(--ink-2); border-color: var(--ink-2); color: var(--clay-hi); }

/* 10-27 the walkthrough's end card (kind "full"): the whole frame, no caption overlay */
.voice-frame[data-kind="full"] video { transform: none; -webkit-mask-image: none; mask-image: none; }
.voice-frame[data-kind="full"] .vcap { opacity: 0; pointer-events: none; }
@media (max-width: 720px) { .voice-frame[data-kind="full"] .vcap { display: none; } }

/* 10-27 the theme switch lives right above the demo window, with words */
.demo-mode { display: flex; justify-content: flex-start; margin: 36px 0 14px; }
.demo-mode .mode-switch button { width: auto; height: 32px; padding: 0 12px 0 10px; gap: 6px; display: inline-flex; align-items: center; font: 600 13px/1 var(--sans); }
@media (max-width: 720px) { .demo-mode { margin: 24px 0 10px; } }

/* 10-27 X + Discord prompts (her links), and the FAQ in two closed columns so the page stays short */
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn.sm svg { width: 16px; height: 16px; }
.invite-social { margin-top: 26px; }
.invite-social p, .faq-more p { margin: 0; font-size: 15px; color: var(--ink-2); }
.faq-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; align-items: start; }
.faq-col { display: flex; flex-direction: column; gap: 10px; }
.faq-2 .provs { grid-template-columns: 1fr; }
.faq-more { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.faq-more .social { margin-top: 0; }
.foot-social { display: inline-flex; align-items: center; gap: 6px; }
.foot-social svg { width: 15px; height: 15px; }
@media (max-width: 900px) { .faq-2 { grid-template-columns: 1fr; } }

/* 10-27 her line beside the characters: The Ark brings your own AI over, or start fresh */
.ark-note { margin-top: 28px; display: flex; gap: 16px; align-items: flex-start; max-width: 760px; padding: 20px 24px; border-radius: 20px; background: var(--clay-hi); box-shadow: var(--raise); }
.ark-note svg { width: 26px; height: 26px; flex: none; color: var(--ink-2); margin-top: 2px; }
.ark-note p { margin: 8px 0 0; font: 400 clamp(17px, 1.5vw, 20px)/1.5 var(--serif); color: var(--ink); }

/* 10-28 the pilot, on top (her ask) + its own results page */
.hero-proof { margin: 22px auto 0; max-width: 860px; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 16px; background: var(--clay-hi); box-shadow: var(--raise); color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.45; }
.hero-proof svg { width: 18px; height: 18px; flex: none; color: var(--ink-2); }
.hero-proof span { flex: 1; text-align: left; }
.hero-proof b { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.hero-proof:hover b { text-decoration: underline; }
.rs-page .top .wrap { justify-content: space-between; }
.rs { padding-top: 56px; padding-bottom: 96px; max-width: 980px; }
.rs h1 { margin-top: 16px; font-size: clamp(38px, 5vw, 64px); line-height: 1.04; }
.rs h2 { margin-top: 56px; font-size: clamp(24px, 2.4vw, 32px); }
.rs .lede { margin-top: 18px; max-width: 60ch; }
.rs-bigs { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rs-big { padding: 24px; border-radius: 20px; background: var(--clay-hi); box-shadow: var(--raise); }
.rs-big b { display: block; font: 500 clamp(40px, 5vw, 64px)/1 var(--serif); letter-spacing: -.02em; }
.rs-big span { display: block; margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.rs-pass { margin-top: 18px; display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.rs-pass svg { width: 18px; height: 18px; }
.rs-table { margin-top: 18px; overflow-x: auto; border-radius: 18px; background: var(--clay-hi); box-shadow: var(--raise); }
.rs-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rs-table th { text-align: left; padding: 14px 18px; font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line-2); }
.rs-table td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.rs-table td small { display: block; margin-top: 3px; color: var(--ink-3); font-size: 13px; }
.rs-table .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rs-table td.up { font-weight: 600; color: var(--ink); }
.rs-table td.down { color: var(--ink-3); }
.rs-table td svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 5px; }
.rs-note { margin-top: 14px; max-width: 70ch; color: var(--ink-2); line-height: 1.6; }
.rs-how { margin: 16px 0 0; padding-left: 20px; color: var(--ink-2); line-height: 1.7; }
.rs-line { margin: 56px 0 0; padding: 24px 28px; border-radius: 20px; background: var(--clay-hi); box-shadow: var(--raise); font: 400 clamp(19px, 1.8vw, 24px)/1.5 var(--serif); color: var(--ink); }
.rs-foot { margin-top: 40px; color: var(--ink-3); font-size: 14px; }
.rs-foot a, .rs-page [data-back] { display: inline-flex; align-items: center; gap: 6px; }
.rs-foot svg, .rs-page [data-back] svg { width: 16px; height: 16px; }
/* the privacy page (10-29): the signed policy, word for word; the results page's shell, the text left, a clay card right */
.pv { padding-top: 56px; padding-bottom: 96px; }
.pv-intro { max-width: 760px; }
.pv-intro h1 { margin-top: 16px; font-size: clamp(38px, 5vw, 64px); line-height: 1.04; }
.pv-intro .lede { margin-top: 18px; max-width: 60ch; }
.pv-date { margin-top: 12px; color: var(--ink-3); font-size: 14px; }
.pv-layout { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 64px; align-items: start; }
.pv-text { min-width: 0; color: var(--ink-2); font-size: 16px; line-height: 1.75; max-width: 72ch; }
.pv-text > p:first-child { padding-bottom: 28px; }
.pv-text strong { color: var(--ink); font-weight: 600; }
.pv-text a, .pv-ask a, .pv-full { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.pv-sec { padding: 30px 0 34px; border-top: 1px solid var(--line-2); scroll-margin-top: 96px; }
.pv-sec h2 { font-size: clamp(24px, 2.4vw, 32px); color: var(--ink); margin-bottom: 14px; }
.pv-sec h3 { font: 600 18px/1.3 var(--sans); color: var(--ink); margin: 26px 0 8px; }
.pv-sec h2 + h3 { margin-top: 8px; }
.pv-sec p + p { margin-top: 12px; }
.pv-sec ul { margin: 10px 0 0; padding-left: 20px; }
.pv-sec li + li { margin-top: 8px; }
.pv-close { border-top: 1px solid var(--line-2); padding-top: 22px; color: var(--ink-3); font-size: 14px; }
.pv-aside { position: sticky; top: 104px; padding: 26px; border-radius: 20px; background: var(--clay-hi); box-shadow: var(--raise); }
.pv-aside ol { list-style: none; margin: 12px 0 0; padding: 0; }
.pv-aside li + li { margin-top: 10px; }
.pv-aside li a { color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.4; }
.pv-aside li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pv-ask { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.pv-ask h2 { font-size: 22px; }
.pv-ask p { margin-top: 8px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.pv-aside > .btn { margin-top: 20px; display: inline-flex; align-items: center; gap: 6px; }
.pv-aside > .btn svg { width: 16px; height: 16px; }
.pv-page .foot [aria-current=page] { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .pv-layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .pv-aside { position: static; order: -1; margin-bottom: 32px; } .pv-ask, .pv-aside > .btn { display: none; } }
@media (max-width: 720px) { .rs-bigs { grid-template-columns: 1fr; } .hero-proof { flex-wrap: wrap; } }

/* 10-28 her "it needs to be like ... like it matters": the pilot as a proof band, not a footnote */
.proof-band { margin: 36px auto 0; max-width: 1060px; display: grid; grid-template-columns: 1.1fr 1.6fr auto; align-items: center; gap: 28px; padding: 28px 32px; border-radius: 26px;
  background: linear-gradient(#3a332c, var(--ink)); color: var(--clay-hi); text-align: left; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 30px 60px -34px rgba(37,33,29,.7); }
.proof-band .eyebrow { color: rgba(247, 244, 239, .62); }
.proof-band .eyebrow::before { background: rgba(247, 244, 239, .4); }
.proof-band h2 { margin-top: 12px; color: var(--clay-hi); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.12; }
.proof-band h2 em { color: rgba(247, 244, 239, .78); }
.pb-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pb-num { padding: 4px 0 4px 16px; border-left: 1px solid rgba(247, 244, 239, .18); }
.pb-num small { display: block; height: 14px; font: 600 11px/14px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(247, 244, 239, .55); }
.pb-num b { display: block; margin-top: 4px; font: 500 clamp(40px, 4.4vw, 60px)/1 var(--serif); letter-spacing: -.02em; color: var(--clay-hi); font-variant-numeric: tabular-nums; }
.pb-num > span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.35; color: rgba(247, 244, 239, .78); }
.proof-band .pb-btn { background: var(--clay-hi); color: var(--ink); white-space: nowrap; }
@media (max-width: 980px) { .proof-band { grid-template-columns: 1fr; } .pb-btn { justify-self: start; } }
@media (max-width: 560px) { .pb-nums { grid-template-columns: 1fr; } .pb-num { border-left: 0; border-top: 1px solid rgba(247,244,239,.18); padding: 12px 0 0; } }

/* 10-28 the theme switch lives in each UI window's own title bar (her "i dont see the light and dark modes on ui demos") */
.win-mode { margin-left: auto; padding: 3px; gap: 2px; }
.win-mode button { width: auto; height: 28px; padding: 0 10px 0 8px; gap: 5px; display: inline-flex; align-items: center; font: 600 12.5px/1 var(--sans); }
.win-mode button svg { width: 14px; height: 14px; }
.win.agent .win-mode { background: rgba(255, 255, 255, .07); box-shadow: none; }
.win.agent .win-mode button { color: rgba(255, 255, 255, .62); }
.win.agent .win-mode button[aria-checked="true"] { background: rgba(255, 255, 255, .15); color: #fff; box-shadow: none; }
.create-win .win-bar { justify-content: flex-start; }
@media (max-width: 720px) { .win-mode span { display: none; } .win-mode button { padding: 0 7px; } .win-bar:has(.win-mode) .win-title > span:not(.face) { display: none; } }

/* the demo window's rail pages (10-28): the plate's own rail rows are buttons; a page covers the whole stage (its
   header, rail and right column are Home's own pixels, so the frame never moves); Chat + Projects are live DOM pages */
.rui-page { position: absolute; inset: 0; z-index: 20; background: #d9d4cd; }
html[data-mode="dark"] .rui-page { background: #121213; }
.rui-page[hidden] { display: none; }
.rui-page > img { position: absolute; left: 0; top: 0; width: 1586px; height: 992px; max-width: none; display: block; }
.rui-page > img[hidden], .rui-live[hidden] { display: none; }
.rui-live { position: absolute; left: 0; top: 0; width: 1586px; }
.rui-nav { position: absolute; inset: 0; z-index: 21; pointer-events: none; }
.rui-nav[hidden] { display: none; }
.rui-nav-b { position: absolute; left: 28px; width: 264px; height: 61px; padding: 0; border: 0; border-radius: 14px; background: transparent; cursor: pointer; pointer-events: auto; transition: background-color .25s var(--ease); }
.rui-nav-b:hover { background: rgba(80, 58, 36, .06); }
html[data-mode="dark"] .rui-nav-b:hover { background: rgba(255, 255, 255, .06); }
.rui-nav-b[aria-current="page"] { cursor: default; background: transparent; }
.rui-nav-b:focus-visible { outline: 3px solid var(--ui-ink); outline-offset: -3px; }
.rui-ibtn[data-go] { cursor: pointer; }

/* 10-29 clay buttons (her "really all basin8 buttons need clayness too ... in demo and in real"): the ONE recipe,
   E:/claude-scratch/2026-10-28-app-ui-parity/BUTTON_MATERIAL.json, fitted to her concept sheet (raised rms 6.2 L).
   Paint only (shadow, border, fill, radius): no box moves. Light now; dark waits on her A/B pick. */
html:not([data-mode="dark"]) .rui-btn:not(.primary):not(.danger) { border: 1px solid rgba(60, 45, 30, .12); border-radius: 13px; background: var(--clay-hi);
  box-shadow: inset 0 3px 6px rgba(255, 255, 255, .90), inset 0 -2px 2px rgba(60, 45, 30, .26), 0 4px 8px rgba(60, 45, 30, .46); }
html:not([data-mode="dark"]) .rui-btn.primary, html:not([data-mode="dark"]) .rui-btn.danger { border-radius: 13px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, .22), inset 0 -2px 2px rgba(0, 0, 0, .35), 0 4px 8px rgba(60, 45, 30, .46); }
html:not([data-mode="dark"]) .rui-ibtn { box-shadow: inset 0 2px 4px rgba(255, 255, 255, .22), inset 0 -2px 2px rgba(0, 0, 0, .35), 0 4px 8px rgba(60, 45, 30, .46); }
html:not([data-mode="dark"]) .rui-btn:active:not(:disabled) { box-shadow: inset 0 2px 4px rgba(60, 45, 30, .28), 0 1px 2px rgba(60, 45, 30, .2); }
/* dark = her pick B, "Graphite with clay" (10-29): Graphite's own surfaces, the clay structure on top. The pills stay
   the LOCKED Graphite shape (outlined cream, graphite_dark_home.png), raised. The Your-turn pop takes Graphite tokens. */
html[data-mode="dark"] .rui-pop { --clay-hi: #2b2d2f; --clay: #242527; --clay-2: #303234; --paper: #1f2123; --stone: rgba(255, 255, 255, .08);
  --ink: #e8e2d6; --ink-2: #c9c2b6; --ink-3: #a59e93; --ui-ink: #e8e2d6; --ui-ink-hi: #f3eee6;
  color: var(--ink); border-color: rgba(255, 255, 255, .08); box-shadow: inset 0 2px 4px rgba(255, 255, 255, .05), 0 14px 34px rgba(0, 0, 0, .55); }
html[data-mode="dark"] .rui-btn:not(.primary):not(.danger) { border: 1px solid rgba(255, 255, 255, .06); border-radius: 13px; background: #2b2d2f; color: #e8e2d6;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, .07), inset 0 -2px 3px rgba(0, 0, 0, .35), 0 4px 10px rgba(0, 0, 0, .46); }
html[data-mode="dark"] .rui-ibtn, html[data-mode="dark"] .rui-btn.primary, html[data-mode="dark"] .rui-btn.danger { background: #2b2d2f; border-color: transparent; color: #e8e2d6;
  box-shadow: inset 0 0 0 1.5px rgba(232, 226, 214, .55), inset 0 2px 4px rgba(255, 255, 255, .07), inset 0 -2px 3px rgba(0, 0, 0, .35), 0 4px 10px rgba(0, 0, 0, .46); }
html[data-mode="dark"] .rui-btn.primary, html[data-mode="dark"] .rui-btn.danger { border-radius: 13px; }
html[data-mode="dark"] .rui-ibtn:hover, html[data-mode="dark"] .rui-btn:hover:not(:disabled) { background: #323436; }
html[data-mode="dark"] .rui-btn:active:not(:disabled) { box-shadow: inset 0 2px 5px rgba(0, 0, 0, .50); }

/* 2026-11-23: Safari/WebKit didn't resolve the thumb image's percentage height inside the aspect-ratio box, so
   robot thumbs grew taller than the tile and lost their bottoms (measured in WebKit as iPhone 15: img 94-132px in a
   65px box). Absolute positioning makes the percentages resolve against the box in every engine. */
.tile .thumb { position: relative; }
.tile .thumb img { position: absolute; left: 6%; bottom: 0; width: 88%; height: 92%; }
.tile[data-kind="cyborg"] .thumb img { left: 0; top: 0; bottom: auto; width: 100%; height: 100%; }

/* 11-26: /contact/ (footer link target) on the privacy page's shell; the form wears the signup card (.signup-form) */
.ct-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ct-field.full { grid-column: 1 / -1; }
.ct-field[hidden] { display: none; }
.ct-field label { font: 650 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.ct-field label span { letter-spacing: .08em; text-transform: none; font-weight: 500; }
.ct-field input, .ct-field select, .ct-field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 0; background: var(--clay); box-shadow: var(--press); font: 500 16px/1.4 var(--sans); color: var(--ink); outline: none; }
.ct-field textarea { resize: vertical; min-height: 150px; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { box-shadow: var(--press), 0 0 0 2px var(--ink); }
.ct-note { margin: 0; font-size: 13px; color: var(--ink-3); }
.ct-form #contact-challenge:not(:empty) { margin-top: 4px; }
.ct-form .btn:disabled { opacity: .55; cursor: not-allowed; }
.ct-ask p + p { margin-top: 10px; }
.ct-page .pv-aside > .eyebrow { display: block; }
@media (max-width: 900px) { .ct-page .pv-aside { order: 0; margin: 32px 0 0; } .ct-page .pv-ask { display: block; } }
@media (max-width: 560px) { .ct-fields { grid-template-columns: 1fr; } }
