/* HUSH design system: near-black, one red, pixel labels, mono numbers, thin rules. */
:root {
  --bg: #070707;
  --bg-2: #0b0b0b;
  --panel: #0e0e0e;
  --panel-2: #131313;
  --panel-3: #181818;
  --line: #1e1e1e;
  --line-2: #2a2a2a;
  --line-3: #3a3a3a;
  --text: #f3f3f1;
  --text-2: #c9c9c5;
  --muted: #8d8d88;
  --dim: #55554f;
  --ghost: #2c2c2a;
  --red: #e5383b;
  --red-hi: #ff5254;
  --red-lo: #a3262a;
  --red-wash: rgba(229, 56, 59, 0.12);
  --red-line: rgba(229, 56, 59, 0.45);
  --green: #3ccf7a;
  --amber: #f2b13d;
  --amber-wash: rgba(242, 177, 61, 0.08);
  --sans: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --pixel: "Silkscreen", "JetBrains Mono", monospace;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 8px;
  --r-sm: 6px;
  --wrap: 1240px;
  --gutter: clamp(16px, 3vw, 32px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.55 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.pixel { font-family: var(--pixel); text-transform: uppercase; letter-spacing: 0.14em; }
.red { color: var(--red); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.hidden { display: none !important; }

/* ---------------- header ---------------- */
.top {
  position: sticky; top: 0; z-index: 50; background: rgba(7, 7, 7, 0.86);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 22px; height: 22px; }
.brand-word { font-family: var(--pixel); font-size: 17px; letter-spacing: 0.2em; font-weight: 400; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: flex; align-items: baseline; gap: 6px; padding: 8px 10px; border-radius: var(--r-sm);
  font-size: 14px; color: var(--muted); transition: color 0.15s;
}
.nav a .n { font: 10px var(--mono); color: var(--dim); }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] .n { color: var(--red); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.icon-btn:hover { border-color: var(--line-3); background: var(--panel-2); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 600; font-size: 14px; cursor: pointer;
  white-space: nowrap; transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover:not([disabled]) { background: var(--red-hi); }
.btn-ghost { background: var(--bg-2); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover:not([disabled]) { border-color: var(--line-3); background: var(--panel-2); }
.btn-line { background: transparent; border-color: var(--red-line); color: var(--red-hi); }
.btn-line:hover:not([disabled]) { background: var(--red-wash); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.wallet-btn .addr { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.wallet-btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(60, 207, 122, 0.15); }

/* ---------------- page head ---------------- */
.page-head { padding-top: clamp(40px, 7vw, 72px); padding-bottom: clamp(24px, 4vw, 40px); }
.kicker { display: flex; align-items: center; gap: 12px; font: 11px var(--pixel); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.kicker .n { color: var(--red); font-family: var(--mono); font-size: 12px; letter-spacing: 0; }
.kicker .sq { width: 8px; height: 8px; background: var(--red); }
.h1 { margin: 16px 0 0; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.lede { margin: 18px 0 0; max-width: 640px; color: var(--text-2); font-size: 16px; }
.reveal-title .ch { color: var(--ghost); transition: color 0.12s linear; }
.reveal-title .ch.on { color: var(--text); }
.reveal-title .ch.cur { color: var(--text); box-shadow: inset 0 -4px 0 var(--red); }
.reveal-title .accent { color: var(--red) !important; }

/* ---------------- panels / layout ---------------- */
.panel { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); }
.panel-pad { padding: clamp(18px, 2.4vw, 26px); }
.panel-2 { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--r); }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.rule { height: 1px; background: var(--line-2); border: 0; margin: 22px 0; }
.label { font: 10.5px var(--pixel); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.label .count { font: 11px var(--mono); letter-spacing: 0; color: var(--dim); text-transform: none; }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
.side-title { font: 10.5px var(--pixel); letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin: 0 0 14px; }
.side-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; color: var(--muted); }
.side-list b { color: var(--text); font-weight: 600; }
.note-warn { background: var(--amber-wash); border: 1px solid rgba(242, 177, 61, 0.35); border-radius: var(--r); padding: 16px 18px; font-size: 13.5px; color: var(--text-2); }
.note-warn b { color: var(--amber); display: block; margin-bottom: 4px; }
.note-red { background: var(--red-wash); border: 1px solid var(--red-line); border-radius: var(--r); padding: 14px 16px; font-size: 13.5px; }
.note-plain { border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px 18px; font-size: 13.5px; color: var(--muted); background: var(--panel); }
.note-plain b { color: var(--text); display: block; margin-bottom: 4px; }

/* ---------------- forms ---------------- */
.field { display: flex; flex-direction: column; min-width: 0; }
.input, .textarea, .select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 0 14px; height: 44px; font-size: 15px; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { padding: 12px 14px; height: auto; min-height: 92px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:hover, .textarea:hover { border-color: var(--line-3); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--red-line); box-shadow: 0 0 0 3px var(--red-wash); }
.input.mono { font-family: var(--mono); font-size: 14px; }
.input-wrap { position: relative; }
.input-wrap .suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 12px var(--mono); color: var(--muted); pointer-events: none; }
.input-wrap .input { padding-right: 64px; }
.field-err { color: var(--red-hi); font-size: 12.5px; margin-top: 6px; min-height: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.check input { appearance: none; width: 18px; height: 18px; border: 1px solid var(--line-3); border-radius: 4px; background: var(--bg-2); flex-shrink: 0; margin-top: 1px; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--red); border-color: var(--red); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  height: 30px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2);
  font: 11px var(--pixel); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--line-3); }
.chip[aria-pressed="true"] { color: var(--text); border-color: var(--red); background: var(--red-wash); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 3px; background: var(--bg-2); gap: 2px; }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--panel-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); }

/* ---------------- stepper ---------------- */
.steps { display: flex; gap: clamp(10px, 2.6vw, 30px); border-top: 1px solid var(--line-2); padding: 20px 0 26px; overflow-x: auto; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.step { display: flex; align-items: center; gap: 10px; font: 11px var(--pixel); letter-spacing: 0.16em; color: var(--dim); white-space: nowrap; }
.step .b { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-3); display: grid; place-items: center; font: 10px var(--mono); letter-spacing: 0; }
.step.on { color: var(--text); }
.step.on .b { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 3px var(--red-wash); }
.step.done { color: var(--muted); }
.step.done .b { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------------- launch form ---------------- */
.launch-top { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
.drop {
  aspect-ratio: 1; border: 1px dashed var(--line-3); border-radius: var(--r-sm); background: var(--bg-2);
  display: grid; place-items: center; text-align: center; font-size: 12px; color: var(--muted); cursor: pointer;
  position: relative; overflow: hidden; transition: border-color 0.15s, background 0.15s;
}
.drop:hover, .drop.over { border-color: var(--red-line); background: var(--red-wash); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop .clear { position: absolute; top: 8px; right: 8px; z-index: 2; }
.name-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 12px; }
.links-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.toggle input { appearance: none; width: 38px; height: 22px; border-radius: 99px; background: var(--line-2); position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.toggle input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #bbb; transition: transform 0.2s var(--ease), background 0.2s; }
.toggle input:checked { background: var(--red); }
.toggle input:checked::after { transform: translateX(16px); background: #fff; }
.creator-line { font-size: 13px; color: var(--muted); }
.creator-line .mono { color: var(--text); }
.review-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 18px; align-items: center; }
.review-card img { width: 88px; height: 88px; border-radius: var(--r-sm); object-fit: cover; border: 1px solid var(--line-2); }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 16px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); font: 10.5px var(--pixel); letter-spacing: 0.14em; text-transform: uppercase; padding-top: 3px; }
.kv dd { margin: 0; word-break: break-word; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 4px; font: 10px var(--pixel); letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--line-3); color: var(--muted); }
.tag.pub::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; }
.tag.conf { color: var(--red-hi); border-color: var(--red-line); }
.tag.conf::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag.ok { color: var(--green); border-color: rgba(60, 207, 122, 0.4); }
.progress-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.progress-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.progress-list li:last-child { border-bottom: 0; }
.progress-list .st { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-3); }
.progress-list li.run { color: var(--text); }
.progress-list li.run .st { border-color: var(--red); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.progress-list li.ok { color: var(--text); }
.progress-list li.ok .st { background: var(--red); border-color: var(--red); position: relative; }
.progress-list li.ok .st::after { content: ""; position: absolute; left: 5px; top: 4px; width: 6px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg); }
.progress-list li.err { color: var(--red-hi); }
.progress-list li.err .st { border-color: var(--red-hi); background: var(--red-wash); }
.progress-list li.skip { color: var(--dim); }
.progress-list .meta { font: 12px var(--mono); color: var(--muted); }
.progress-list .meta a { color: var(--red-hi); }
@keyframes spin { to { transform: rotate(360deg); } }
.err-box { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--red-line); background: var(--red-wash); border-radius: var(--r-sm); font-size: 13.5px; color: var(--text); }
.err-box pre { margin: 8px 0 0; white-space: pre-wrap; font: 11px var(--mono); color: var(--muted); max-height: 160px; overflow: auto; }
.live-hero { text-align: center; padding: 10px 0 4px; }
.live-hero img { width: 96px; height: 96px; border-radius: 12px; margin: 0 auto 14px; object-fit: cover; border: 1px solid var(--line-2); }
.ca { display: flex; align-items: center; gap: 8px; justify-content: center; font: 13px var(--mono); color: var(--text-2); flex-wrap: wrap; }

/* ---------------- token cards ---------------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.search { position: relative; flex: 1 1 280px; max-width: 380px; }
.search .input { padding-left: 40px; font-family: var(--mono); font-size: 13.5px; }
.search .pre { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font: 12px var(--mono); color: var(--red); }
.toolbar .spacer { flex: 1; }
.tokens { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tokens.list { grid-template-columns: 1fr; }
.tok { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; transition: border-color 0.15s, transform 0.2s var(--ease); display: flex; flex-direction: column; }
.tok:hover { border-color: var(--line-3); transform: translateY(-2px); }
.tok .img { aspect-ratio: 1; background: var(--bg-2) center/cover no-repeat; position: relative; border-bottom: 1px solid var(--line); }
.tok .img .badge { position: absolute; top: 12px; right: 12px; background: rgba(7, 7, 7, 0.8); backdrop-filter: blur(6px); }
.tok .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.tok .nm { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 15px; }
.tok .tk { display: flex; justify-content: space-between; gap: 10px; font: 12px var(--mono); color: var(--muted); }
.tok .ca-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font: 12px var(--mono); color: var(--dim); }
.tokens.list .tok { flex-direction: row; align-items: center; }
.tokens.list .tok .img { width: 64px; height: 64px; aspect-ratio: auto; flex-shrink: 0; border: 0; border-right: 1px solid var(--line); }
.tokens.list .tok .img .badge { display: none; }
.tokens.list .tok .body { flex: 1; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 16px; align-items: center; }
.tokens.list .tok .ca-row { margin: 0; padding: 0; border: 0; }
.empty { grid-column: 1 / -1; padding: 48px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r); font-size: 14px; }
.copy { background: none; border: 0; padding: 2px 6px; border-radius: 4px; font: 11px var(--pixel); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.copy:hover { color: var(--text); background: var(--panel-3); }
.stat-box { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--panel); min-width: 260px; }
.stat-box > div { padding: 14px 18px; }
.stat-box > div + div { border-left: 1px solid var(--line-2); }
.stat-box .k { font: 10px var(--pixel); letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.stat-box .k.red { color: var(--red); }
.stat-box .v { font: 500 26px var(--mono); margin-top: 6px; letter-spacing: -0.02em; }
.stat-box.stat-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-box.stat-4 > div { min-width: 0; padding: 14px 16px; }
.stat-box.stat-4 .v { font-size: clamp(16px, 1.5vw, 21px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }

/* ---------------- tabs ---------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { height: 44px; padding: 0 14px; border: 0; background: none; color: var(--muted); font-size: 13.5px; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--red); }
.tabs .n { font: 11px var(--mono); color: var(--dim); margin-left: 6px; }

/* ---------------- tables ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); }
table.priv { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
table.priv th { text-align: left; font: 10px var(--pixel); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line-2); background: var(--panel-2); font-weight: 400; }
table.priv td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.priv tr:last-child td { border-bottom: 0; }
table.priv td .sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
table.priv .pub { color: var(--muted); font: 12px var(--mono); }
table.priv .pub::before { content: "○ "; }
table.priv .hid { color: var(--red-hi); font: 12px var(--mono); }
table.priv .hid::before { content: "● "; }
table.priv .where { font: 12px var(--mono); color: var(--text-2); }
.table-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; max-width: 820px; }

/* ---------------- home ---------------- */
.hero { position: relative; padding: clamp(40px, 7vw, 80px) 0 clamp(36px, 5vw, 56px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--red-line); color: var(--red-hi); font: 10px var(--pixel); letter-spacing: 0.14em; text-transform: uppercase; background: var(--red-wash); }
.hero h1 { font-size: clamp(3rem, 7.6vw, 6.4rem); line-height: 0.92; letter-spacing: -0.055em; margin: 22px 0 0; font-weight: 600; }
.hero h1 .dot { color: var(--red); }
.hero .lede { font-size: clamp(15px, 1.4vw, 17px); max-width: 520px; }
.hero-cta { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-2); max-width: 520px; }
.hero-stats .k { font: 10px var(--pixel); letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.hero-stats .v { font: 13px var(--pixel); letter-spacing: 0.08em; margin-top: 8px; color: var(--text); }
.hero-stats .v .r { color: var(--red); }
.ring-stage { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: center; }
.ring-stage canvas { width: 100%; height: 100%; }
.ring-legend { position: absolute; bottom: -4px; left: 0; right: 0; display: flex; justify-content: space-between; font: 9.5px var(--pixel); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ring-legend .r { color: var(--red); }
.ticker { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); overflow: hidden; background: var(--bg-2); }
.ticker-track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker-item { display: flex; align-items: center; gap: 14px; padding: 14px 26px; font: 11.5px var(--pixel); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; color: var(--text-2); }
.ticker-item .bars { width: 32px; height: 8px; background: repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 8px); }
@keyframes tick { to { transform: translateX(-50%); } }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-head { max-width: 760px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -0.045em; margin: 16px 0 0; font-weight: 600; }
.section-head p { color: var(--text-2); font-size: 16px; margin: 18px 0 0; max-width: 620px; }
.pixel-rule { height: 8px; margin: 0; border: 0; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 8px); opacity: 0.9; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(48px, 7vw, 84px) 0; }
.feature.flip .feature-copy { order: 2; }
.feature h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.02; letter-spacing: -0.04em; margin: 16px 0 0; font-weight: 600; }
.feature h3 .ghost { color: var(--dim); }
.feature p { color: var(--text-2); margin: 16px 0 0; max-width: 500px; }
.feature .btn { margin-top: 26px; }
.viz { background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: clamp(18px, 2.6vw, 28px); position: relative; overflow: hidden; }
.viz::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 80% 0%, var(--red-wash), transparent 70%); pointer-events: none; }
.viz-head { display: flex; justify-content: space-between; font: 10px var(--pixel); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; position: relative; }
.mint-card { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); position: relative; }
.mint-card .av { width: 56px; height: 56px; border-radius: 10px; background: var(--red); display: grid; place-items: center; font: 22px var(--pixel); color: #fff; }
.viz-rows { margin-top: 14px; display: grid; gap: 0; position: relative; }
.viz-rows > div { display: flex; justify-content: space-between; padding: 10px 2px; border-bottom: 1px dashed var(--line-2); font: 12.5px var(--mono); }
.viz-rows > div span:first-child { color: var(--muted); }
.viz-foot { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--red-line); background: var(--red-wash); font: 12px var(--mono); position: relative; }
.bal-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; }
.bal { border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px; background: var(--bg-2); min-height: 196px; display: flex; flex-direction: column; }
.bal .t { font: 10px var(--pixel); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.bal.prot { border-color: var(--red-line); }
.bal.prot .t { color: var(--red); }
.bal .ln { display: flex; justify-content: space-between; font: 14px var(--mono); margin-top: 14px; }
.bal .ln span:first-child { color: var(--muted); }
.bal .redact { display: inline-block; height: 14px; background: var(--red); border-radius: 2px; vertical-align: middle; animation: flick 3.2s steps(1) infinite; }
.bal .foot { margin-top: auto; padding-top: 14px; font-size: 12px; color: var(--muted); }
.bal .foot b { color: var(--text); font-weight: 500; }
@keyframes flick { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 48% { opacity: 0.35; } 50% { opacity: 1; } }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: center; position: relative; margin: 8px 0 18px; }
.flow .node { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 18px 6px; text-align: center; font: 11px var(--pixel); letter-spacing: 0.12em; background: var(--bg-2); position: relative; }
.flow .node.r { border-color: var(--red-line); color: var(--red-hi); background: var(--red-wash); }
.flow-arrows { display: grid; grid-template-columns: repeat(4, 1fr); font: 10.5px var(--mono); color: var(--muted); text-align: center; position: relative; }
.flow-line { position: absolute; left: 12%; right: 12%; top: 50%; height: 1px; background: repeating-linear-gradient(90deg, var(--red) 0 4px, transparent 4px 8px); animation: dash 1.2s linear infinite; z-index: 0; }
@keyframes dash { to { background-position: 16px 0; } }
.flow .node { z-index: 1; }
.cipher { font: 12.5px/1.8 var(--mono); color: var(--text-2); word-break: break-all; padding: 14px; border: 1px dashed var(--line-3); border-radius: var(--r-sm); background: var(--bg-2); position: relative; }
.legs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; position: relative; }
.legs > div { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px; background: var(--bg-2); }
.legs .k { font: 10px var(--pixel); letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.legs .v { font: 12.5px var(--mono); margin-top: 6px; }
.tech { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.cta-band { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.cta-band .wrap { padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(48px, 7vw, 84px); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.cta-band h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -0.045em; line-height: 1; margin: 0; max-width: 820px; font-weight: 600; }

/* ---------------- docs / prose ---------------- */
.doc-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 80px; }
.toc { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; }
.toc .t { font: 10px var(--pixel); letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; }
.toc a { font-size: 13.5px; color: var(--muted); padding: 6px 0 6px 12px; border-left: 1px solid var(--line-2); }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--text); border-left-color: var(--red); }
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.035em; margin: 56px 0 14px; font-weight: 600; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin: 28px 0 8px; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--text-2); font-size: 15.5px; }
.prose ol, .prose ul { padding-left: 20px; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--red); font-family: var(--mono); }
.prose code { font: 13px var(--mono); background: var(--panel-3); border: 1px solid var(--line-2); padding: 1px 6px; border-radius: 4px; color: var(--text); }
.prose strong { color: var(--text); }
.prose a { color: var(--red-hi); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--red-line); }
.tool-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.tool-cards > div { border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px; background: var(--panel); }
.tool-cards .n { font: 11px var(--mono); color: var(--red); }
.tool-cards h3 { margin: 8px 0 6px; }
.tool-cards p { font-size: 14px; margin: 0; }
.limit-box { border: 1px solid var(--red-line); border-radius: var(--r); padding: 6px 20px; background: var(--red-wash); }

/* ---------------- vault ---------------- */
.vault-bal { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.vault-bal .big { font: 500 clamp(28px, 4vw, 40px) var(--mono); letter-spacing: -0.03em; }
.asset-list { display: flex; flex-direction: column; }
.asset-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: center; }
.asset-list > div:last-child { border-bottom: 0; }
.asset-list .amt { font: 14px var(--mono); }
.addr-box { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg-2); font: 12.5px var(--mono); word-break: break-all; }
.addr-box span { flex: 1; min-width: 0; }
.dev-state { display: flex; gap: 12px; align-items: flex-start; }
.dev-state .sq { width: 10px; height: 10px; background: var(--amber); margin-top: 5px; flex-shrink: 0; animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.wallet-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); }
.wallet-row.sel { border-color: var(--red-line); background: var(--red-wash); }
.wallet-row .nm { font-weight: 600; font-size: 14px; }
.wallet-row .ad { font: 12px var(--mono); color: var(--muted); }

/* ---------------- modal / toast ---------------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade 0.15s; }
.modal { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); animation: rise 0.22s var(--ease); max-height: calc(100vh - 32px); overflow: auto; }
.modal h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -0.02em; }
.modal .sub { margin: 0 0 18px; font-size: 13.5px; color: var(--muted); }
.wallet-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg-2); cursor: pointer; margin-bottom: 8px; font-weight: 600; text-align: left; }
.wallet-opt:hover { border-color: var(--red-line); }
.wallet-opt .wl { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: var(--panel-3); border: 1px solid var(--line-3); font: 12px var(--pixel); }
.wallet-opt .det { margin-left: auto; font: 10px var(--pixel); letter-spacing: 0.1em; color: var(--green); }
.wallet-opt .det.no { color: var(--dim); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.toast { background: var(--panel-2); border: 1px solid var(--line-3); border-left: 3px solid var(--red); border-radius: var(--r-sm); padding: 12px 14px; font-size: 13.5px; width: 340px; max-width: 100%; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); animation: rise 0.2s var(--ease); }
.toast.ok { border-left-color: var(--green); }
.menu-sheet { position: fixed; top: 64px; right: 0; left: 0; z-index: 60; background: var(--bg); border-bottom: 1px solid var(--line-2); padding: 12px var(--gutter) 20px; display: none; }
.menu-sheet.open { display: block; animation: fade 0.15s; }
.menu-sheet a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.menu-sheet a span { font: 11px var(--mono); color: var(--dim); }

/* ---------------- footer ---------------- */
.foot { border-top: 1px solid var(--line-2); padding: 56px 0 40px; margin-top: 40px; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h4 { font: 10px var(--pixel); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 400; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-2); }
.foot ul a:hover { color: var(--text); }
.foot .tagline { color: var(--muted); font-size: 13.5px; max-width: 280px; margin: 14px 0 0; }
.foot-base { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 11px var(--mono); color: var(--dim); }
.bottom-nav { display: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .grid-main { grid-template-columns: 1fr; }
  .hero .wrap { grid-template-columns: 1fr; }
  .ring-stage { max-width: 440px; }
  .tech { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
  .doc-grid { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .toc .t { width: 100%; margin: 0; }
  .toc a { border: 1px solid var(--line-2); border-radius: 99px; padding: 5px 12px; font-size: 12.5px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
    background: rgba(7, 7, 7, 0.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line-2); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; font: 9.5px var(--pixel); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
  .bottom-nav a svg { width: 18px; height: 18px; }
  .bottom-nav a[aria-current="page"] { color: var(--red); }
  body { padding-bottom: 64px; }
  .toasts { bottom: 80px; }
}
@media (max-width: 640px) {
  .top .wrap { gap: 12px; }
  .top .x-link { display: none; }
  .wallet-btn { padding: 0 12px; }
  .launch-top { grid-template-columns: 1fr; }
  .drop { max-width: 200px; }
  .name-row { grid-template-columns: 1fr; }
  .links-row, .two, .tool-cards { grid-template-columns: 1fr; }
  .bal-pair, .legs { grid-template-columns: 1fr; }
  .bal { min-height: 0; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .stat-box { min-width: 0; width: 100%; }
  .stat-box.stat-4 { grid-template-columns: 1fr 1fr; }
  .stat-box.stat-4 > div:nth-child(3) { border-left: 0; }
  .stat-box.stat-4 > div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .tokens.list .tok .body { grid-template-columns: 1fr; gap: 4px; }
  .wallet-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .flow .node { font-size: 9px; padding: 14px 2px; }
}
/* =====================================================================
   Motion layer. Strong ease-out for anything entering, transform + opacity
   only, short UI timings, longer (but still brisk) marketing entrances.
   ===================================================================== */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-ui: 180ms;
  --t-enter: 640ms;
}

/* Cross-page fade (Chrome/Edge/Safari 18+; other browsers just navigate). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 160ms var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in 260ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* Hero / page-head entrance on load: staggered rise with a touch of blur. */
.hero .wrap > div:first-child > *, .page-head > *, .ring-stage {
  animation: rise var(--t-enter) var(--ease-out) both;
}
.hero .wrap > div:first-child > :nth-child(1), .page-head > :nth-child(1) { animation-delay: 40ms; }
.hero .wrap > div:first-child > :nth-child(2), .page-head > :nth-child(2) { animation-delay: 110ms; }
.hero .wrap > div:first-child > :nth-child(3), .page-head > :nth-child(3) { animation-delay: 180ms; }
.hero .wrap > div:first-child > :nth-child(4), .page-head > :nth-child(4) { animation-delay: 250ms; }
.hero .wrap > div:first-child > :nth-child(5), .page-head > :nth-child(5) { animation-delay: 320ms; }
.ring-stage { animation-name: ring-in; animation-duration: 1100ms; animation-delay: 120ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
@keyframes ring-in { from { opacity: 0; transform: scale(0.94) rotate(-6deg); filter: blur(10px); } }

/* Scroll reveals: JS adds .mv to targets, .in when they enter the viewport. */
.mv { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out), filter 600ms var(--ease-out); transition-delay: var(--d, 0ms); }
.mv.in { opacity: 1; transform: none; filter: none; }

/* Header sharpens once you scroll. */
.top { transition: background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease; }
.top.scrolled { background: rgba(7, 7, 7, 0.94); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45); }

/* Buttons: quick, physical press. */
.btn { transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 200ms ease, transform 140ms var(--ease-out); }
.btn:active:not([disabled]) { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn-red:hover:not([disabled]) { box-shadow: 0 0 0 1px rgba(255, 82, 84, 0.35), 0 8px 28px rgba(229, 56, 59, 0.35); }
}

/* Cursor light: a soft red glow that follows the pointer along panel edges. */
.lit { position: relative; isolation: isolate; }
.lit::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: 2; padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 82, 84, 0.55), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 300ms ease;
}
.lit::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(229, 56, 59, 0.07), transparent 60%);
  opacity: 0; transition: opacity 300ms ease;
}
@media (hover: hover) and (pointer: fine) { .lit:hover::after, .lit:hover::before { opacity: 1; } }

/* Coin cards: lift + slow image push-in. */
.tok { transition: border-color 200ms ease, transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out); }
.tok .img { transition: transform 700ms var(--ease-out); transform-origin: 50% 60%; }
@media (hover: hover) and (pointer: fine) {
  .tok:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(229, 56, 59, 0.18); }
  .tok:hover .img { transform: scale(1.05); }
}

/* Tabs: a red ink bar that slides between tabs (positioned by JS). */
.tabs { position: relative; }
.tabs .ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--red); border-radius: 2px; transition: transform 260ms var(--ease-in-out), width 260ms var(--ease-in-out); pointer-events: none; }
.tabs.has-ink button[aria-selected="true"] { border-bottom-color: transparent; }
[data-act-body], [data-tab-body] { animation: none; }
.swap-in { animation: swap-in 260ms var(--ease-out) both; }
@keyframes swap-in { from { opacity: 0; transform: translateY(6px); } }

/* Chips / segmented controls: smooth state change. */
.chip, .seg button { transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease; }

/* Pixel dividers: a red scan passes through every few seconds. */
.pixel-rule { position: relative; overflow: hidden; }
.pixel-rule::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 180px; left: -180px;
  background: repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 8px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 45%, #000 55%, transparent); mask: linear-gradient(90deg, transparent, #000 45%, #000 55%, transparent);
  animation: scan 5.5s linear infinite; animation-delay: var(--scan-delay, 0s);
}
@keyframes scan { 0% { transform: translateX(0); } 55%, 100% { transform: translateX(calc(100vw + 360px)); } }

/* Ticker: soft edges, pauses while hovered. */
.ticker { -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
@media (hover: hover) and (pointer: fine) { .ticker:hover .ticker-track { animation-play-state: paused; } }

/* Launch stepper: the active step breathes. */
.step.on .b { animation: step-pulse 2.4s var(--ease-out) infinite; }
@keyframes step-pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 56, 59, 0.45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(229, 56, 59, 0); } }

/* Progress rows slide in as each launch step starts. */
.progress-list li { transition: color 200ms ease; }
.progress-list li.run, .progress-list li.ok, .progress-list li.err { animation: row-in 320ms var(--ease-out) both; }
@keyframes row-in { from { opacity: 0.4; transform: translateX(-6px); } }

/* Live dot in the hero pill. */
.hero-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-hi); animation: live 2s ease-in-out infinite; }
@keyframes live { 50% { opacity: 0.25; } }

/* Feature viz: rows type in once the card is revealed. */
.viz.mv .viz-rows > div, .viz.mv .ln, .viz.mv .legs > div, .viz.mv .flow .node { opacity: 0; transform: translateY(6px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.viz.mv.in .viz-rows > div, .viz.mv.in .ln, .viz.mv.in .legs > div, .viz.mv.in .flow .node { opacity: 1; transform: none; }
.viz.mv.in :is(.viz-rows > div, .ln, .legs > div, .flow .node):nth-child(1) { transition-delay: 220ms; }
.viz.mv.in :is(.viz-rows > div, .ln, .legs > div, .flow .node):nth-child(2) { transition-delay: 290ms; }
.viz.mv.in :is(.viz-rows > div, .ln, .legs > div, .flow .node):nth-child(3) { transition-delay: 360ms; }
.viz.mv.in :is(.viz-rows > div, .ln, .legs > div, .flow .node):nth-child(4) { transition-delay: 430ms; }
.viz.mv.in :is(.viz-rows > div, .ln, .legs > div, .flow .node):nth-child(5) { transition-delay: 500ms; }

/* Modal + toast exits mirror their entrances. */
.modal-bg.out { opacity: 0; transition: opacity 160ms ease; }
.modal-bg.out .modal { transform: translateY(6px) scale(0.98); transition: transform 160ms var(--ease-out); }
.toast { transition: opacity 220ms ease, transform 220ms var(--ease-out); }
.toast.out { opacity: 0; transform: translateX(12px); }

/* Reduced motion: keep fades that aid comprehension, drop movement and loops. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .wrap > div:first-child > *, .page-head > *, .ring-stage { animation: fade-only 300ms ease both; }
  @keyframes fade-only { from { opacity: 0; } }
  .mv { transform: none; filter: none; transition: opacity 300ms ease; }
  .viz.mv .viz-rows > div, .viz.mv .ln, .viz.mv .legs > div, .viz.mv .flow .node { transform: none; }
  .ticker-track, .pixel-rule::after, .flow-line, .bal .redact, .step.on .b, .hero-pill::before, .dev-state .sq { animation: none !important; }
  .tok:hover, .tok:hover .img { transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .reveal-title .ch { color: var(--text) !important; box-shadow: none !important; transition: none; }
}
