/* Tail Bazaar — an instrument, not a brochure. Near-black on off-white, one restrained accent,
   amber/red reserved for failure evidence, generous vertical rhythm, almost no chrome. */
:root {
  --paper: #FAFAF9;
  --card: #FFFFFF;
  --ink: #111111;
  --ink-2: #3F3F46;
  --ink-3: #78716C;
  --line: #E7E5E4;
  --line-2: #D6D3D1;
  --accent: #1F4FD8;
  --accent-soft: #EEF2FE;
  --alert: #B42318;
  --alert-soft: #FDEDEA;
  --amber: #B45309;
  --amber-soft: #FEF4E2;
  --ok: #15713F;
  --ok-soft: #E8F4EC;
  --ghost: #6E6A64;
  --t-cart: #3B3833;
  --t-cart-soft: #EAE7E2;
  --t-humanoid: #8A6A46;
  --t-humanoid-soft: #F2EADF;
  --t-arm: #4E5A52;
  --t-arm-soft: #E6ECE7;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  --band-y: clamp(64px, 8vw, 118px);
  --maxw: 1680px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 560; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(24px, 3vw, 56px); }
.mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: 0; word-break: break-all; }
.muted { color: var(--ink-3); }
.alert { color: var(--alert); }

/* ---------------------------------------------------------------- header */
header#topbar { position: sticky; top: 0; z-index: 40; background: rgba(250,250,249,.86); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
#topbar .bar { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { font-weight: 620; letter-spacing: -0.02em; font-size: 17px; white-space: nowrap; flex: none; }
#nav { display: flex; gap: 22px; flex: 1; font-size: 14px; min-width: 0; }
#nav a { white-space: nowrap; }
#nav a { color: var(--ink-3); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .18s var(--ease); }
#nav a:hover { color: var(--ink); }
#nav a.on { color: var(--ink); border-bottom-color: var(--ink); }
#chainbar { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); }
.chain-detail { white-space: nowrap; }

/* ---------------------------------------------------------------- bands */
.band { padding: var(--band-y) 0; border-top: 1px solid var(--line); }
.band.quiet { background: #F5F4F2; }
.band.hero { border-top: 0; padding-top: clamp(56px, 7vw, 104px); }
.eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); margin-bottom: 22px; font-weight: 560; }
.eyebrow a { color: var(--ink-3); border-bottom: 1px solid var(--line-2); }
.eyebrow a:hover { color: var(--ink); }
.eyebrow span { opacity: .5; margin: 0 4px; }
.display { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 560; max-width: 34ch; text-wrap: balance; }
.order-hero .display { max-width: 30ch; }
.section-title { font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.14; letter-spacing: -0.028em; max-width: 24ch; }
.lede { font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 1.6; color: var(--ink-2); max-width: 62ch; margin-top: 26px; }
.prose { color: var(--ink-2); max-width: 62ch; }
.prose-col { columns: 1; max-width: 68ch; margin-top: 28px; }
.fineprint { font-size: 13px; color: var(--ink-3); max-width: 76ch; margin-top: 18px; }
.sub { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 600; margin: 0 0 14px; }
.pull { margin: 0; font-size: clamp(1.45rem, 2.7vw, 2.2rem); line-height: 1.2; letter-spacing: -0.028em; font-weight: 520; max-width: 26ch; }
.after { margin-top: 34px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 34px; align-items: start; }
.two-col.wide-left { grid-template-columns: 1.25fr 1fr; }
.section-title + .prose, .section-title + .two-col { margin-top: 26px; }

/* ---------------------------------------------------------------- controls */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 10px; padding: 13px 24px; font: 500 15px/1 var(--sans); cursor: pointer; transition: transform .2s var(--ease), background .2s var(--ease); }
.btn:hover { background: #000; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: #fff; border-color: var(--ink); }
.btn.small { padding: 8px 15px; font-size: 13.5px; border-radius: 8px; }
.btn:disabled { opacity: .4; cursor: default; transform: none; }
.cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 34px; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 22px 0; }
.link-go { color: var(--accent); font-weight: 500; border-bottom: 1px solid transparent; }
.link-go i { font-style: normal; display: inline-block; transition: transform .25s var(--ease); }
.link-go:hover { border-bottom-color: var(--accent); }
.link-go:hover i { transform: translateX(4px); }
input[type=password], input[type=text] { flex: 1; min-width: 240px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; font-family: var(--mono); font-size: 13px; background: #fff; color: var(--ink); }

/* ---------------------------------------------------------------- badges */
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 560; letter-spacing: .02em; background: #EEEDEB; color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.bad { background: var(--alert-soft); color: var(--alert); }
.badge.warn { background: var(--amber-soft); color: var(--amber); }
.badge.info { background: var(--accent-soft); color: var(--accent); }
/* A deliberately published demonstration order. Outlined rather than filled: it is a statement about
   the host's configuration, not a verdict about the finding. */
.badge.fixture { background: transparent; color: var(--ink-3); border: 1px dashed var(--line-2); letter-spacing: .03em; }
.badge.testnet { background: var(--accent-soft); color: var(--accent); }
.badge.local { background: #EEEDEB; color: var(--ink-2); }
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 560; background: #EEEDEB; color: var(--ink-2); }
.chip-low { background: #EEEDEB; color: var(--ink-2); }
.chip-medium { background: var(--amber-soft); color: var(--amber); }
.chip-high { background: var(--alert-soft); color: var(--alert); }
.tag { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 4px; margin-left: 5px; letter-spacing: .04em; color: var(--ink-3); background: #EEEDEB; vertical-align: middle; }
.tag-testnet { background: var(--accent-soft); color: var(--accent); }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0 20px; }

/* ---------------------------------------------------------------- numbers */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; margin-top: 56px; border-top: 1px solid var(--line); padding-top: 30px; }
.metric-v { font-size: clamp(1.9rem, 3.1vw, 2.6rem); line-height: 1; letter-spacing: -0.035em; font-weight: 500; font-variant-numeric: tabular-nums; }
.count-unit { font-size: .42em; margin-left: 6px; color: var(--ink-3); letter-spacing: 0; font-weight: 500; }
.metric-k { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.metric-n { margin-top: 3px; font-size: 12px; color: var(--ink-3); }

/* ---------------------------------------------------------------- steps */
.steps { list-style: none; margin: 34px 0 0; padding: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); align-items: start; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n { font-size: 28px; line-height: 1; color: var(--line-2); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.steps h3 { font-size: 1.12rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-2); max-width: 70ch; font-size: 15px; }

/* ---------------------------------------------------------------- findings */
.findings { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 22px; margin-top: 38px; }
@media (min-width: 1500px) { .findings { grid-template-columns: repeat(4, 1fr); } }
.finding { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; transition: transform .28s var(--ease), border-color .28s var(--ease); }
.finding:hover { transform: translateY(-3px); border-color: var(--line-2); }
.finding-top { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.finding h3 { font-size: 1.15rem; }
.finding-id { display: block; margin-top: 5px; font-size: 11.5px; color: var(--ink-3); }
.finding-claim { margin: 10px 0 0; color: var(--ink-2); font-size: 14.5px; }
.finding-note { margin: 12px 0 0; color: var(--ink-3); font-size: 13.5px; }
.finding-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 22px 0 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.finding-foot .k { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.finding-foot .v { display: block; margin-top: 3px; font-size: 14px; }
.finding-go { color: var(--accent); font-size: 14px; font-weight: 500; }
.finding-go i { font-style: normal; display: inline-block; transition: transform .25s var(--ease); }
.finding:hover .finding-go i { transform: translateX(4px); }

/* ---------------------------------------------------------------- range bars */
.rb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 34px 48px; margin-top: 40px; }
/* The head keeps clear of the marker's own value label, which floats above the track: with the
   marker at either end of the axis the two used to collide with the axis name. */
.rb-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.rb.has-find .rb-head { margin-bottom: 26px; }
.rb-name { font-size: 13px; color: var(--ink); }
.rb-group { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.rb-track { position: relative; height: 10px; background: #EDEBE8; border-radius: 999px; }
.rb-tuned { position: absolute; top: 0; height: 10px; background: var(--accent); opacity: .28; border-radius: 999px; }
.rb-nominal { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--ink-3); transform: translateX(-1px); }
.rb-find { position: absolute; top: -7px; width: 2px; height: 24px; background: var(--ink); transform: translateX(-1px); }
.rb-find.out { background: var(--alert); }
.rb-find span { position: absolute; top: -21px; left: 50%; transform: translateX(-50%); font: 600 11px/1 var(--mono); color: var(--alert); white-space: nowrap; }
.rb-find.ok span { color: var(--ink); }
.rb-scale { display: flex; justify-content: space-between; margin-top: 8px; font: 11px/1 var(--mono); color: var(--ink-3); }
.rb-note { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }
.rb-legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; font-size: 12.5px; color: var(--ink-3); }
.rb-legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 14px; height: 8px; border-radius: 3px; display: inline-block; background: #EDEBE8; }
.sw-tuned { background: rgba(31,79,216,.32); }
.sw-track { background: #EDEBE8; }
.sw-nominal { width: 2px; height: 14px; border-radius: 0; background: var(--ink-3); }
.sw-find { width: 2px; height: 14px; border-radius: 0; background: var(--alert); }
.sw-fail { background: #45413A; }
.sw-ghost { background: rgba(110,106,100,.4); }
.sw-thin { width: 3px; height: 14px; border-radius: 0; }
.sw-stop { width: 2px; height: 14px; border-radius: 0; background: var(--ghost); }

/* ---------------------------------------------------------------- disclosures */
.disc { border-top: 1px solid var(--line); margin-top: 0; }
.disc + .disc { margin-top: 0; }
.band .disc:first-of-type { margin-top: 44px; }
.disc:last-of-type { border-bottom: 1px solid var(--line); }
.disc > summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; align-items: baseline; gap: 14px; }
.disc > summary::-webkit-details-marker { display: none; }
.disc > summary::before { content: "+"; font-family: var(--mono); color: var(--ink-3); width: 14px; flex: none; }
.disc[open] > summary::before { content: "–"; }
.disc-label { font-weight: 500; font-size: 15px; }
.disc-note { font-size: 12.5px; color: var(--ink-3); }
.disc-body { padding: 4px 0 28px 28px; }
.disc-body > *:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- data */
.facts { display: grid; grid-template-columns: 190px 1fr; gap: 14px 22px; margin: 0 0 8px; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding-top: 2px; }
.facts dd { margin: 0; font-size: 15px; }
.sub-mono { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-top: 4px; word-break: break-all; line-height: 1.45; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0; }
table.data th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; padding: 0 16px 10px 0; border-bottom: 1px solid var(--line); }
table.data td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
pre.json, pre.log { font-family: var(--mono); font-size: 11.5px; line-height: 1.5; background: #F5F4F2; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow: auto; max-height: 340px; white-space: pre-wrap; word-break: break-word; margin: 12px 0 0; }
pre.log { background: #171614; color: #D9D6D1; border-color: #171614; }
.checks { list-style: none; margin: 16px 0 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 22px minmax(220px, auto) 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); align-items: baseline; font-size: 13px; }
.tick { font-size: 12px; }
.tick.ok { color: var(--ok); }
.tick.bad { color: var(--alert); }
.check-n { color: var(--ink); }
.check-d { color: var(--ink-3); font-size: 11.5px; }
.note { border: 1px solid var(--line); border-radius: 12px; padding: 18px; font-size: 14px; }
.note.bad { border-color: #F0C8C2; background: var(--alert-soft); color: var(--alert); }

/* ---------------------------------------------------------------- stage rail */
.rail { position: sticky; top: 60px; z-index: 30; background: rgba(250,250,249,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.rail .wrap { display: flex; gap: 4px; overflow-x: auto; }
.rail button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px 16px 12px; font: 500 13px/1 var(--sans); color: var(--ink-3); cursor: pointer; white-space: nowrap; transition: color .2s var(--ease); }
.rail button span { font-family: var(--mono); font-size: 11px; margin-right: 7px; opacity: .6; }
.rail button:hover { color: var(--ink); }
.rail button.on { color: var(--ink); border-bottom-color: var(--ink); }
.stage-head { display: flex; align-items: baseline; gap: 18px; }
.stage-n { font: 500 13px/1 var(--mono); color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 999px; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* ---------------------------------------------------------------- verdicts + diagram */
.verdicts { margin-top: 36px; }
.verdict { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 26px 0; border-top: 1px solid var(--line); }
.verdict:last-child { border-bottom: 1px solid var(--line); }
.verdict-name { font: 600 15px/1 var(--mono); letter-spacing: .04em; }
.verdict-name.ok { color: var(--ok); }
.verdict-name.bad { color: var(--alert); }
.verdict-name.warn { color: var(--amber); }
.verdict-money { font-size: 16px; color: var(--ink); margin: 0 0 10px; max-width: 60ch; }
.verdict-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 34px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 28px 32px; }
.vs-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.vs-v { font: 560 26px/1.1 var(--sans); letter-spacing: -0.02em; margin: 8px 0 12px; }
.vs-v.ok { color: var(--ok); }
.vs-v.bad { color: var(--alert); }
.diagram { margin: 46px 0 0; }
.diagram svg { width: 100%; height: auto; }
.sd-node rect { fill: #fff; stroke: var(--line-2); stroke-width: 1; }
.sd-node.ok rect { stroke: #B6DCC4; fill: var(--ok-soft); }
.sd-node.bad rect { stroke: #F0C8C2; fill: var(--alert-soft); }
.sd-t { font: 560 14px var(--sans); fill: var(--ink); text-anchor: middle; }
.sd-m { font: 11px var(--sans); fill: var(--ink-3); text-anchor: middle; }
.sd-edge path { fill: none; stroke: var(--ink-3); stroke-width: 1.25; marker-end: url(#ah); }
.sd-edge text, .sd-l { font: 11px var(--mono); fill: var(--ink-3); text-anchor: middle; }
#ah path { fill: var(--ink-3); }
.diagram figcaption { margin-top: 22px; font-size: 13px; color: var(--ink-3); max-width: 74ch; }

/* ---------------------------------------------------------------- story timeline */
.story { list-style: none; margin: 36px 0 0; padding: 0; position: relative; }
.story::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.story li { position: relative; padding: 0 0 26px 34px; }
.story-dot { position: absolute; left: 0; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-2); }
.story li:last-child .story-dot { border-color: var(--ink); }
.story-t { margin: 0; font-size: 16px; color: var(--ink); max-width: 66ch; }
.story-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); align-items: center; }
.story-meta .actor { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 600; color: var(--ink-2); }

/* ---------------------------------------------------------------- sealed / locked */
.sealed, .locked { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 32px; margin-top: 34px; }
.sealed-mark { font: 600 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; display: inline-block; margin-bottom: 18px; }
.locked-head { margin-bottom: 16px; }

/* ---------------------------------------------------------------- the viewer */
.viewer { margin-top: 34px; width: min(1400px, calc(100vw - 56px)); margin-left: calc(50% - min(700px, (100vw - 56px) / 2)); }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--card); }
.seg button { background: none; border: 0; padding: 9px 16px; font: 500 13px/1 var(--sans); color: var(--ink-3); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.on { background: var(--ink); color: #fff; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.viewports { position: relative; width: 100%; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #F7F7F6; }
.viewports canvas { display: block; }
.vp-overlay { position: absolute; inset: 0; display: grid; pointer-events: none; }
.viewports.is-overlay .vp-overlay { grid-template-columns: 1fr; }
.viewports.is-split .vp-overlay { grid-template-columns: 1fr 1fr; }
.vp-frame { position: relative; border-right: 1px solid var(--line); }
.vp-frame[hidden] { display: none; }
.vp-frame:last-child { border-right: 0; }
.vp-frame.contact::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--alert); pointer-events: none; }
.vp-label { position: absolute; top: 12px; left: 14px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); background: rgba(255,255,255,.9); padding: 5px 10px; border-radius: 999px; }
.vp-callout { position: absolute; top: 12px; right: 14px; font: 600 12px/1 var(--sans); letter-spacing: .06em; color: #fff; background: var(--alert); padding: 7px 12px; border-radius: 999px; }
.vp-hud { position: absolute; bottom: 12px; left: 14px; right: 14px; display: flex; gap: 16px; flex-wrap: wrap; font: 12px/1 var(--mono); color: var(--ink-2); background: rgba(255,255,255,.9); padding: 8px 12px; border-radius: 8px; }
.vp-hud b { font-weight: 600; color: var(--ink); }

/* timeline with marks */
.timeline { margin-top: 30px; }
.tl-track { position: relative; height: 8px; background: #EDEBE8; border-radius: 999px; margin: 52px 0 48px; }
.tl-fill { position: absolute; left: 0; top: 0; height: 8px; background: var(--ink); border-radius: 999px; width: 0; }
#scrub { position: absolute; left: -2px; right: -2px; top: -9px; width: calc(100% + 4px); height: 26px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
#scrub::-webkit-slider-runnable-track { height: 26px; background: none; }
#scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid var(--paper); margin-top: 5px; cursor: grab; }
#scrub::-moz-range-track { height: 26px; background: none; }
#scrub::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid var(--paper); cursor: grab; }
.tl-mark { position: absolute; top: -6px; cursor: pointer; }
.tl-mark b { display: block; width: 2px; height: 20px; background: var(--ink-3); transform: translateX(-1px); }
.tl-mark span { position: absolute; top: 24px; left: 0; transform: translateX(-50%); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.tl-mark.alt span { top: 40px; }
.tl-mark.moment b { background: var(--alert); height: 26px; top: -3px; position: relative; }
.tl-mark.secondary b { background: var(--amber); height: 23px; }
.tl-mark.secondary span { color: var(--amber); font-weight: 560; }
.tl-mark.moment span { color: var(--alert); font-weight: 600; top: 28px; }
.tl-mark:hover span { color: var(--ink); }
.tl-callout { position: absolute; bottom: 22px; transform: translateX(-50%); background: var(--alert); color: #fff; font: 600 11.5px/1 var(--sans); letter-spacing: .06em; padding: 7px 11px; border-radius: 8px; white-space: nowrap; }
.tl-callout.edge { transform: translateX(-100%); }
.tl-callout.edge::after { left: auto; right: 14px; }
.tl-callout::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 0; height: 0; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--alert); border-bottom: 0; }
.tl-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.speed { font-size: 12.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; }
.speed select { font: 13px var(--sans); padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--ink); }
#tlabel { font-size: 13px; color: var(--ink-3); }

/* what changed */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.chg { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 12px 16px; }
.chg-p { display: block; font-size: 12px; color: var(--ink-3); }
.chg-v { display: block; margin-top: 4px; font-size: 15px; }
.chg-v s { color: var(--ink-3); text-decoration-thickness: 1px; }
.chg-v strong { font-weight: 600; }

/* ---------------------------------------------------------------- footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 64px; color: var(--ink-3); font-size: 13px; }
footer p { max-width: 78ch; margin: 0 0 8px; }

/* ---------------------------------------------------------------- motion */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .52s var(--ease), transform .52s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  #topbar .bar { gap: 12px; height: 54px; }
  .brand { font-size: 15px; }
  #nav { gap: 12px; font-size: 12.5px; }
  .rail { top: 54px; }
  .viewer { width: calc(100vw - 24px); margin-left: calc(50% - (100vw - 24px) / 2); }
  .stat-strip { gap: 22px; }
  .chips { gap: 8px; }
  .disc > summary { flex-wrap: wrap; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .wrap { padding: 0 22px; }
  .two-col, .two-col.wide-left, .verdict, .verdict-strip { grid-template-columns: 1fr; gap: 28px; }
  .facts { grid-template-columns: 1fr; gap: 4px 0; }
  .facts dd { margin-bottom: 12px; }
  .steps li { grid-template-columns: 44px 1fr; gap: 14px; }
  .checks li { grid-template-columns: 20px 1fr; }
  .check-d { grid-column: 2; }
  #nav { gap: 14px; }
  #topbar .bar { gap: 16px; }
  #chainbar .chain-detail { display: none; }
  .vp-hud { font-size: 10.5px; gap: 10px; }
  .disc-body { padding-left: 0; }
}

/* ---------------------------------------------------- multi-target marketplace */
/* A robot badge, one restrained warm tone per target. Never blue: blue is reserved for page chrome
   and never appears in a viewport, so it must not be a robot's identity either. */
.badge.target { background: #EEEDEB; color: var(--ink-2); }
.badge.target-cart { background: var(--t-cart-soft); color: var(--t-cart); }
.badge.target-humanoid { background: var(--t-humanoid-soft); color: var(--t-humanoid); }
.badge.target-arm { background: var(--t-arm-soft); color: var(--t-arm); }

.tcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 22px; margin-top: 34px; }
.tcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px 26px 22px; }
.tcard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tcard-count { font-size: 12px; color: var(--ink-3); }
.tcard h3 { font-size: 1.14rem; margin-bottom: 10px; }
.tcard .prose { color: var(--ink-2); font-size: 14.5px; margin-bottom: 16px; }
.tcard-facts { display: grid; grid-template-columns: 118px 1fr; gap: 9px 16px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.tcard-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.tcard-facts dd { margin: 0; font-size: 13px; color: var(--ink-2); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.filters button { background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; font: 500 13px/1 var(--sans); color: var(--ink-3); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.filters button:hover { border-color: var(--ink-3); }
.filters button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters .fcount { opacity: .6; margin-left: 4px; font-variant-numeric: tabular-nums; }
.tgroup { margin-top: 30px; }
.tgroup-head { display: flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 520; }
.tgroup-head .muted { font-weight: 400; font-size: 14px; }
.tgroup .findings { margin-top: 18px; }

.seg-wide { margin-bottom: 26px; }
.envpane { margin-top: 4px; }

/* Post-purchase aggregate search cost. Never a pre-purchase disclosure. */
.searchcost { margin: 30px 0 6px; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.sc-head { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 10px; }
.searchcost .prose { margin-bottom: 8px; color: var(--ink-2); font-size: 15px; }
.searchcost .fineprint { margin: 0; }
.searchcost .mono { word-break: normal; overflow-wrap: anywhere; }

.vp-hud .hud-alert { color: var(--alert); font-weight: 600; }

/* Procedural hero illustration, distinct from purchased simulation evidence. */
.market-hero { overflow: hidden; }
.market-hero.band.hero { padding-top: clamp(36px, 5vw, 74px); }
.hero-layout { display: grid; grid-template-columns: 1.12fr 1fr; gap: 24px; align-items: center; }
.hero-copy { padding: 18px 0; }
.hero-copy .display { font-size: clamp(38px, 4.4vw, 60px); max-width: 17ch; line-height: 1.04; letter-spacing: -.045em; }
.hero-copy .eyebrow { font-size: 10.5px; letter-spacing: .12em; }
.hero-copy .lede { max-width: 43ch; font-size: 17px; line-height: 1.7; margin-top: 26px; }
.hero-copy .cta-row { gap: 10px; margin-bottom: 0; }
.hero-copy .btn { padding: 13px 17px; font-size: 13.5px; }
.hero-targets { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 25px; }
.hero-target-note { flex-basis: 100%; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.robot-study { position: relative; margin: 0; min-width: 0; padding: 18px 0 0; }
.study-heading { display: flex; justify-content: space-between; gap: 8px; font: 9px/1.4 var(--mono); letter-spacing: .06em; color: var(--ink-3); border-top: 1px solid var(--line-2); padding-top: 15px; }
.study-live { display: inline-flex; align-items: center; gap: 6px; }
.study-live i { width: 4px; height: 4px; border-radius: 50%; background: #a46e46; }
.study-stage { position: relative; height: 440px; background: radial-gradient(ellipse at 50% 60%, #efede650, transparent 68%); }
.study-render, .study-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.study-render canvas { display: block; width: 100%; height: 100%; }
.study-ready .study-fallback { display: none; }
.study-annotation { position: absolute; pointer-events: none; font: 9px/1.4 var(--mono); color: #918b80; }
.study-annotation::before { content: ""; display: block; width: 40px; height: 1px; background: #ccc6bc; margin-bottom: 7px; }
.study-annotation-top { top: 60px; left: 0; }
.study-annotation-bottom { bottom: 68px; right: 0; text-align: right; }
.study-annotation-bottom::before { margin-left: auto; }
.study-controls { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-2); padding: 0 0 13px; }
.study-modes { display: flex; gap: 2px; }
.study-controls button { cursor: pointer; border: 0; background: transparent; font: 11px/1 var(--sans); color: var(--ink-3); padding: 8px 11px; border-radius: 5px; }
.study-controls button:hover { background: #eeece7; color: var(--ink); }
.study-controls button[aria-pressed="true"] { background: #e9e6df; color: var(--ink); }
.study-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.study-controls button:disabled { opacity: .45; cursor: default; }
.study-pause span { margin-left: 8px; }
.robot-study figcaption { margin-top: 11px; font: 9px/1.6 var(--mono); color: var(--ink-3); }
.market-hero .stat-strip { margin-top: 38px; }
@media (max-width: 1050px) and (min-width: 761px) {
  .hero-layout { gap: 28px; grid-template-columns: 1.1fr 1fr; }
  .hero-copy .display { font-size: 44px; }
  .hero-copy .lede { font-size: 15.5px; }
  .study-stage { height: 415px; }
  .study-annotation { display: none; }
  .study-heading { font-size: 8px; }
}
@media (max-width: 760px) {
  .hero-layout { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { padding-top: 4px; }
  .hero-copy .display { font-size: clamp(39px, 8.4vw, 58px); }
  .hero-copy .lede { max-width: 48ch; font-size: 16px; }
  .robot-study { width: 100%; max-width: 480px; margin: 0 auto; }
  .study-stage { height: 390px; }
  .market-hero .stat-strip { margin-top: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .market-hero .reveal { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
  .hero-layout { gap: 18px; }
  .hero-copy { display: contents; }
  .hero-copy .eyebrow { grid-row: 1; margin-bottom: 0; }
  .hero-copy .display { grid-row: 2; }
  .hero-copy .lede { grid-row: 4; margin-top: 8px; margin-bottom: 0; }
  .hero-targets { grid-row: 5; margin-top: 0; }
  .hero-copy .cta-row { grid-row: 6; margin-top: 6px; }
  .robot-study { grid-row: 3; }
  .study-stage { height: 330px; }
  .study-annotation { display: none; }
}

/* ---------------------------------------------------------------- live flows (buy / list from the page) */
.live { border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); padding: 24px 28px; margin-top: 26px; }
.live.done { border-color: #B6DCC4; }
.live.failed { border-color: #F0C8C2; }
.live-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.live-id { font-size: 11.5px; color: var(--ink-3); }
.live-elapsed { margin-left: auto; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.live-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; animation: live-pulse 1.4s ease-in-out infinite; }
.live.done .live-pulse { background: var(--ok); animation: none; }
.live.failed .live-pulse { background: var(--alert); animation: none; }
@keyframes live-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .live-pulse { animation: none; } }
.live-steps { list-style: none; margin: 18px 0 0; padding: 0; }
.live-step { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; }
.live-mark { font: 600 13px/1 var(--mono); color: var(--ink-3); }
.live-step.done .live-mark { color: var(--ok); }
.live-step.failed .live-mark { color: var(--alert); }
.live-step.running .live-mark { color: var(--accent); }
.live-t { margin: 0; font-size: 15px; color: var(--ink-3); }
.live-step.running .live-t { color: var(--ink); font-weight: 500; }
.live-step.done .live-t, .live-step.failed .live-t { color: var(--ink-2); }
.live-meta { margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.live-meta a { color: var(--accent); }
.live-note { margin: 16px 0 0; font-size: 13.5px; color: var(--ink-3); }
.live-note.ok { color: var(--ok); }
.live-note.bad { color: var(--alert); }
.finding.unsold { cursor: default; }
.finding.unsold:hover { transform: none; }
.finding-buy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.finding-buy .muted { font-size: 12.5px; }
.tgroup-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tgroup-head .btn { margin-left: auto; }
.tgroup-empty { color: var(--ink-3); margin-top: 18px; }
.op-token { margin-top: 22px; }
.op-token .fineprint { margin-top: 8px; }

/* First-visit entrance: a brief orbit, staggered content, then the greeting in hero.ts. */
.study-render { border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; touch-action: manipulation; border-radius: 10px; }
.study-render:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.study-render:disabled { cursor: default; }
.market-hero { position: relative; }
.hero-intro { position: absolute; z-index: 2; top: 180px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 20px; font: 10px/1 var(--mono); letter-spacing: .2em; color: var(--ink-3); pointer-events: none; animation: hero-orbit-out .85s ease both; }
.hero-intro-orbit { display: block; position: relative; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 50%; animation: hero-orbit-turn .85s var(--ease) both; }
.hero-intro-orbit::after { content: ''; position: absolute; inset: 10px; border: 1px solid #b8754466; border-radius: 50%; }
.hero-intro-orbit i { position: absolute; width: 6px; height: 6px; top: -3px; left: 20px; border-radius: 50%; background: #b87544; }
.hero-enter .hero-copy > * { animation: hero-content-in .65s var(--ease) both; transition: none; }
.hero-enter .hero-copy > :nth-child(1) { animation-delay: .5s; }
.hero-enter .hero-copy > :nth-child(2) { animation-delay: .6s; }
.hero-enter .hero-copy > :nth-child(3) { animation-delay: .7s; }
.hero-enter .hero-copy > :nth-child(4) { animation-delay: .8s; }
.hero-enter .hero-copy > :nth-child(5) { animation-delay: .9s; }
.hero-enter .robot-study { animation: hero-study-in .85s var(--ease) .6s both; }
.hero-enter .stat-strip { animation: hero-content-in .65s var(--ease) 1s both; }
@keyframes hero-content-in { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-study-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes hero-orbit-turn { from { transform: rotate(-100deg) scale(.75); } to { transform: rotate(210deg) scale(1); } }
@keyframes hero-orbit-out { 0% { opacity: 0; } 20%, 55% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-intro { display: none; }
  .hero-enter .hero-copy > *, .hero-enter .robot-study, .hero-enter .stat-strip { animation: none; opacity: 1; transform: none; }
}

.finding.is-link { cursor: pointer; }
.finding.is-link:focus-visible { outline: 2px solid var(--ink, #111); outline-offset: 2px; }
