/* ──────────────────────────────────────────────────────────────
   burnee · brutalist-editorial bonding-curve site
   palette: ink-black bg · fire accents · green burn-events
   type:    Fraunces (display)  ·  Manrope (body)  ·  JetBrains Mono (numbers)
   ────────────────────────────────────────────────────────────── */

:root,
:root[data-theme="dark"] {
  --bg:           #0a0706;
  --bg-1:         #100b09;
  --bg-2:         #17100d;
  --bg-3:         #1e1612;
  --line:         rgba(255, 140, 80, 0.10);
  --line-2:       rgba(255, 140, 80, 0.22);
  --line-3:       rgba(255, 140, 80, 0.38);

  --ink:          #fff5ec;
  --ink-2:        #d5c1ad;
  --ink-3:        #8a7666;
  --ink-4:        #574a40;

  --fire:         #ff5722;
  --fire-deep:    #c93a13;
  --ember:        #ff8a3d;
  --ash:          #ffaa55;
  --spark:        #ffd166;

  --green:        #4ade80;
  --green-soft:   rgba(74, 222, 128, 0.12);
  --green-line:   rgba(74, 222, 128, 0.45);

  --red:          #ef4444;
  --red-soft:     rgba(239, 68, 68, 0.12);

  --grain-opacity: 0.30;
  --paper-tint:    rgba(255, 200, 150, 0.025);
}

:root[data-theme="light"] {
  --bg:           #f4ead8;
  --bg-1:         #efe3cd;
  --bg-2:         #e8d8be;
  --bg-3:         #dec9aa;
  --line:         rgba(140, 70, 30, 0.16);
  --line-2:       rgba(140, 70, 30, 0.30);
  --line-3:       rgba(140, 70, 30, 0.48);

  --ink:          #20140c;
  --ink-2:        #4a3526;
  --ink-3:        #8b6f54;
  --ink-4:        #b59a7e;

  --fire:         #d4421b;
  --fire-deep:    #9b2f0c;
  --ember:        #c75a1c;
  --ash:          #b06012;
  --spark:        #946000;

  --green:        #15803d;
  --green-soft:   rgba(21, 128, 61, 0.10);
  --green-line:   rgba(21, 128, 61, 0.50);

  --red:          #b91c1c;
  --red-soft:     rgba(185, 28, 28, 0.08);

  --grain-opacity: 0.20;
  --paper-tint:    rgba(155, 95, 35, 0.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* hide scrollbar globally - page is still scrollable, just no visible track */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar,
body::-webkit-scrollbar { width: 0; height: 0; display: none; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 "Manrope", system-ui, -apple-system, sans-serif;
  letter-spacing: -0.005em;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ember); }
button { font: inherit; color: inherit; cursor: pointer; }

/* number / label families */
.hs-v, .ohlc-v, .ca-addr, .num-in, .qrow .v, .mv-stat-v, .mv-math,
.hs-prog-pct, .led-time, .led-amt, .led-px, .led-tx, .cl-v,
.band-num, .mv-n, .ca-k, .hs-k, .brand-tag {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-feature-settings: "tnum", "ss01";
}

.fire    { color: var(--fire); }
.ember   { color: var(--ember); }
.up      { color: var(--green); }
.down    { color: var(--red); }
.ink     { color: var(--ink); font-weight: 600; }
.muted   { color: var(--ink-3); }
.small   { font-size: 11.5px; }

/* ─── ambient embers ─── */
.ember {
  position: fixed; pointer-events: none; z-index: 0;
  filter: blur(110px); opacity: .30;
  background: radial-gradient(closest-side, var(--fire), transparent 72%);
}
.ember-a { width: 720px; height: 720px; left: -240px; top: -300px; opacity: .26; }
.ember-b { width: 600px; height: 600px; right: -180px; top: 380px;
  background: radial-gradient(closest-side, var(--ember), transparent 72%); opacity: .18; }
.ember-c { width: 900px; height: 900px; left: 30%; bottom: -540px;
  background: radial-gradient(closest-side, var(--spark), transparent 72%); opacity: .10; }

:root[data-theme="light"] .ember { opacity: .14 !important; filter: blur(120px); }
:root[data-theme="light"] .ember-a { opacity: .10 !important; }
:root[data-theme="light"] .ember-b { opacity: .08 !important; }
:root[data-theme="light"] .ember-c { opacity: .07 !important; }

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  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='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.55  0 0 0 0 0.25  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
body > *:not(.ember):not(.grain):not(.wmodal) { position: relative; z-index: 2; }

/* ────────────────────────────────────────────
   TOPBAR
   ──────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  border-bottom: 1px solid rgba(255, 140, 80, 0.14);
  /* always dark so the cream logo stays readable on any theme */
  background: rgba(10, 7, 6, 0.88);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-flame {
  display: inline-flex; align-items: flex-end;
  filter: drop-shadow(0 0 10px rgba(255, 87, 34, 0.6));
  animation: flicker 2.4s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { transform: translateY(0) scaleY(1); filter: drop-shadow(0 0 10px rgba(255, 87, 34, 0.6)); }
  50%      { transform: translateY(-1px) scaleY(1.04); filter: drop-shadow(0 0 16px rgba(255, 138, 61, 0.78)); }
}
.brand-word {
  font-family: "Archivo Black", system-ui, sans-serif;
  font-weight: 900;
  font-style: normal;
  font-size: 20px;
  letter-spacing: -0.02em;
  /* always cream/off-white - never flips to dark in light theme */
  color: #fff5ec;
  line-height: 1;
  text-transform: lowercase;
}
.brand-tag {
  font-size: 9.5px;
  font-weight: 500;
  color: #ff8a3d;
  border: 1px solid rgba(255, 138, 61, 0.35);
  border-radius: 3px;
  padding: 3px 7px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(255, 87, 34, 0.12);
}
.brand { display: flex; align-items: center; gap: 12px; }


.topbar-right { display: flex; gap: 10px; align-items: center; }
.theme-toggle {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-2);
  border-radius: 999px; color: var(--ink-2);
  transition: color .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--ember); border-color: var(--line-3); }
.theme-toggle .i-sun  { display: none; }
.theme-toggle .i-moon { display: inline-block; }
:root[data-theme="light"] .theme-toggle .i-sun  { display: inline-block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }

.btn-connect {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-connect:hover {
  background: var(--fire);
  border-color: var(--fire);
  color: #fff;
}
.btn-connect.connected {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}

/* ────────────────────────────────────────────
   HERO - split: copy left, swap right
   ──────────────────────────────────────────── */
.hero {
  padding: 64px 28px 56px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(380px, 480px);
  gap: 56px;
  align-items: start;
}

.hero-left {
  display: flex; flex-direction: column;
  min-width: 0;
}
.hero-right {
  position: relative;
  align-self: start;
  min-width: 0;
}
.hero-word {
  margin: 0;
  position: relative;
  font-family: "Archivo Black", system-ui, sans-serif;
  font-weight: 900;
  font-style: normal;
  font-size: clamp(72px, 12vw, 156px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--ink);
  user-select: none;
  display: grid;
  grid-template-areas: "stack";
  text-transform: lowercase;
}
.hero-word .lyr {
  grid-area: stack;
  display: block;
}
.hero-word .lyr-1 {
  color: var(--ink);
  text-shadow:
    0 0 30px rgba(255, 87, 34, 0.28),
    0 0 80px rgba(255, 138, 61, 0.18);
}
/* hide the duplicate layers - single clean mono wordmark */
.hero-word .lyr-2,
.hero-word .lyr-3 { display: none; }

/* subtle ember underline that pulses */
.hero-word::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--fire) 0%, var(--ember) 40%, transparent 100%);
  opacity: 0.5;
  box-shadow: 0 0 12px var(--fire);
}

.hero-tag {
  margin: 18px 0 0;
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink-2);
}
.hero-tag em {
  color: var(--fire);
  font-style: italic;
  font-weight: 700;
}

.hero-lede {
  margin: 22px 0 0;
  max-width: 580px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* inline stats - small, calm, no big boxes */
.hero-stats {
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding: 14px 0;
  max-width: 100%;
}
.hs-cell {
  display: flex; flex-direction: column;
  gap: 3px;
  padding: 0 22px;
  border-right: 1px dashed var(--line);
}
.hs-cell:last-child { border-right: 0; padding-right: 0; }
.hs-cell:first-child { padding-left: 0; }
.hs-k {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hs-v {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.hs-sub { color: var(--ink-3); font-size: 10.5px; margin-left: 3px; }
.hs-prog-pct { font-size: 10.5px; color: var(--ink-2); margin-left: 6px; }
.hs-cell-prog .hs-v { display: inline-flex; align-items: center; gap: 6px; }

.bar {
  display: inline-block; position: relative;
  width: 70px; height: 5px;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 3px; overflow: hidden;
}
.bar-fill {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--fire), var(--spark));
  box-shadow: 0 0 8px var(--fire) inset;
  transition: width .4s ease;
}
.bar-mark {
  position: absolute; top: -2px; bottom: -2px; right: 30%; width: 2px;
  background: var(--ink); opacity: .85;
}

.hero-live {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.liveDot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--fire); box-shadow: 0 0 10px var(--fire);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .55 } 50% { opacity: 1 } }

/* ─── swap (right side of hero) ─── */
.swap-stage {
  position: relative;
  padding: 22px;
}
.swap-corner {
  position: absolute;
  font-family: "JetBrains Mono", monospace;
  font-size: 32px;
  color: var(--fire);
  line-height: 1;
  opacity: 0.65;
  user-select: none;
}
.swap-corner.tl { top: -2px; left: -2px; }
.swap-corner.tr { top: -2px; right: -2px; }
.swap-corner.bl { bottom: -2px; left: -2px; }
.swap-corner.br { bottom: -2px; right: -2px; }

.swap-box {
  background: rgba(20, 14, 11, 0.72);
  border: 1px solid var(--line-2);
  padding: 22px;
  position: relative;
}
:root[data-theme="light"] .swap-box { background: rgba(253, 246, 239, 0.78); }

.swap-h {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.swap-ttl {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.swap-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.swap-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 12px;
  border: 1px solid var(--line-2);
}
.tab {
  background: transparent; border: 0; padding: 10px 0;
  color: var(--ink-3); font-size: 11.5px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: background .12s, color .12s;
}
.tab { font-size: 10.5px; }
.tab.active { background: var(--bg-3); color: var(--ink); }
.tab[data-mode="sell"].active { color: var(--red); }
.tab[data-mode="buy"].active  { color: var(--fire); }
.tab[data-mode="borrow"].active { color: var(--ember); }
.pane { display: none; }
.swap-box[data-pane="buy"]    .pane-trade,
.swap-box[data-pane="sell"]   .pane-trade,
.swap-box[data-pane="borrow"] .pane-borrow { display: block; }

.position-card {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--ember);
}
.position-h {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.position-rows {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 10px;
}
.position-row {
  display: flex; justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
}
.position-row .k {
  color: var(--ink-3);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.position-row .v { color: var(--ink); font-weight: 500; }

.btn-sec {
  width: 100%;
  margin-top: 0;
  padding: 12px;
  background: transparent;
  color: var(--ember);
  border: 1px solid var(--ember);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background .12s, color .12s;
}
.btn-sec:hover { background: var(--ember); color: var(--bg); }


.field {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 12px 14px;
  margin-bottom: 6px;
}
.field-h { display: flex; justify-content: space-between; margin-bottom: 8px; }
.field-h .small {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.field-row { display: flex; align-items: center; gap: 10px; }
.num-in {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: var(--ink);
  font: 500 24px/1.2 "JetBrains Mono", monospace;
  padding: 0;
}
.num-in[readonly] { color: var(--fire); }
.asset {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: "JetBrains Mono", monospace;
}

.quick { display: flex; gap: 4px; margin-top: 8px; }
.qa {
  flex: 1; background: transparent; border: 1px solid var(--line);
  color: var(--ink-3); font-size: 11px; padding: 5px 0;
  font-family: "JetBrains Mono", monospace;
  transition: color .12s, border-color .12s;
}
.qa:hover { color: var(--ember); border-color: var(--line-2); }

.swap-arrow {
  display: flex; justify-content: center; align-items: center;
  margin: 4px 0;
  color: var(--fire);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
}

.quote {
  font-size: 11.5px;
  padding: 12px 0 4px;
  margin-top: 6px;
  border-top: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.qrow { display: flex; justify-content: space-between; align-items: baseline; }
.qrow .k {
  color: var(--ink-3);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
.qrow .v {
  color: var(--ink);
  font-weight: 500;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
}

.btn-act {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  background: var(--fire);
  color: #fff;
  border: 0;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255, 87, 34, 0.2), 0 16px 32px -12px rgba(255, 87, 34, 0.5);
  transition: background .12s;
}
.btn-act:hover { background: var(--ember); }
.btn-act.connected.buy { background: var(--fire); }
.btn-act.connected.sell {
  background: var(--red);
  box-shadow: 0 0 0 1px rgba(239,68,68,.2), 0 16px 32px -12px rgba(239,68,68,.5);
}
.btn-act.connected.sell:hover { background: #ff5b5b; }

/* ────────────────────────────────────────────
   BANDS - sections after hero
   ──────────────────────────────────────────── */
.band {
  padding: 52px 28px 60px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.band-how, .band-ledger { background: var(--paper-tint); }

.band-h {
  max-width: 1440px;
  margin: 0 auto 28px;
  display: flex;
  align-items: baseline;
  gap: 22px;
  flex-wrap: wrap;
}
.band-num {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fire);
  text-transform: uppercase;
  font-weight: 500;
}
.band-title {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  margin: 0;
}
.band-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-left: auto;
}

/* ─── chart band - 2-col: meta left, chart right ─── */
.band-chart { padding-top: 56px; padding-bottom: 56px; }
.chart-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.chart-meta {
  display: flex; flex-direction: column;
  gap: 14px;
  padding-top: 4px;
  border-right: 1px solid var(--line);
  padding-right: 32px;
}
.chart-meta .band-num { font-size: 11px; letter-spacing: 0.18em; color: var(--fire); text-transform: uppercase; }
.chart-meta .band-title {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  margin: 0;
}
.chart-desc {
  margin: 4px 0 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.chart-ohlc-v {
  display: flex; flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  font-family: "JetBrains Mono", monospace;
}
.ohlc-line {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 12.5px;
}
.ohlc-k {
  color: var(--ink-3);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ohlc-v { color: var(--ink); font-weight: 500; }

.chart-legend-v {
  display: flex; flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}
.chart-legend-v .lg {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px;
  color: var(--ink-2);
  font-family: "JetBrains Mono", monospace;
}
.sw { width: 11px; height: 11px; display: inline-block; border-radius: 2px; flex-shrink: 0; }
.sw-up   { background: var(--green); box-shadow: 0 0 6px rgba(74,222,128,.4); }
.sw-down { background: var(--red); box-shadow: 0 0 6px rgba(239,68,68,.4); }
.sw-burn {
  background: var(--fire);
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.55);
}
.sw-curve { width: 18px; height: 2px; background: var(--ember); border-radius: 0; opacity: 0.7; }
.sw-floor { width: 18px; height: 2px; background: var(--fire); border-radius: 0; opacity: 0.85; box-shadow: 0 0 6px var(--fire); }

.chart-formula {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ember);
  padding: 8px 12px;
  background: var(--bg-2);
  border-left: 2px solid var(--fire);
  letter-spacing: 0.02em;
  align-self: start;
  margin-top: 4px;
}

.chartwrap {
  position: relative;
  padding: 8px 0;
  border-top: 1px dashed var(--line-2);
  border-bottom: 1px dashed var(--line-2);
  min-width: 0;
}
.chartwrap svg {
  width: 100%;
  height: clamp(360px, 40vw, 540px);
  display: block;
}

/* ─── activity band - 2-col: burns | trades ─── */
.band-activity { padding-top: 48px; padding-bottom: 56px; }
.activity-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.act-col {
  display: flex; flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper-tint);
}
.act-h {
  display: flex; align-items: baseline; gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
}
.act-h .band-num { font-size: 10px; letter-spacing: 0.18em; color: var(--fire); text-transform: uppercase; }
.act-title {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--ink);
  margin: 0;
}
.act-count {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 7px;
}
.act-list {
  /* no inner scroll - list flows with page scroll */
}

/* unified row layout (used for both burns + trades) */
.led-row, .trade-row {
  display: grid;
  gap: 12px;
  padding: 11px 18px;
  align-items: center;
  border-bottom: 1px dashed var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink);
  transition: background .15s;
}
.led-row { grid-template-columns: 70px 76px 1fr auto; }
.trade-row { grid-template-columns: 70px 60px 1fr auto; }
.led-row:hover, .trade-row:hover { background: var(--paper-tint); }
.led-row:last-child, .trade-row:last-child { border-bottom: 0; }

.led-time, .trade-time { color: var(--ink-3); font-size: 11px; }
.led-row.is-live .led-time, .trade-row.is-live .trade-time { color: var(--fire); font-weight: 600; }
.led-row.is-live .led-time::before, .trade-row.is-live .trade-time::before { content: "● "; color: var(--fire); }

.tt {
  display: inline-block;
  padding: 3px 8px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  font-weight: 700;
  text-align: center;
}
.tt.burn { color: var(--fire); border-color: var(--fire); background: rgba(255,87,34,.10); box-shadow: 0 0 12px rgba(255,87,34,.18); }
.tt.buy  { color: var(--green); border-color: rgba(74,222,128,.40); background: var(--green-soft); }
.tt.sell { color: var(--red);   border-color: rgba(239,68,68,.40);  background: var(--red-soft); }

.led-amt, .trade-amt { color: var(--ink); font-weight: 500; font-size: 12px; }
.led-row.is-burn .led-amt { color: var(--fire); font-weight: 600; }
.trade-row.is-buy .trade-amt { color: var(--green); }
.trade-row.is-sell .trade-amt { color: var(--red); }
.trade-px { color: var(--ink-3); font-size: 10.5px; }
.led-tx, .trade-tx { color: var(--ink-3); font-size: 10px; letter-spacing: 0.04em; text-align: right; }

/* hide old ledger-* classes - no longer used but keep harmless fallback */
.ledger-wrap, .ledger-header, .ledger-body { display: contents; }

/* ─── mechanics movements ─── */
.movement {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 200px;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.movement:first-of-type { border-top: 1px solid var(--line-2); }
.movement:last-of-type { border-bottom: 1px solid var(--line-2); }

.mv-n {
  font-family: "JetBrains Mono", monospace;
  font-size: 60px;
  font-weight: 500;
  line-height: 0.9;
  color: var(--fire);
  letter-spacing: -0.04em;
  align-self: start;
  padding-top: 4px;
}
.mv-mig .mv-n { font-size: 72px; color: var(--ink-3); padding-top: 2px; }

.mv-body { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.mv-title {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--ink);
  margin: 0;
}
.mv-burn .mv-title { color: var(--fire); }
.mv-prose {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.mv-prose em {
  color: var(--fire); font-style: italic;
  font-weight: 500; font-family: "Fraunces", serif;
}
.mv-math {
  display: block; margin-top: 12px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-left: 2px solid var(--fire);
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  color: var(--ember);
  letter-spacing: 0.02em;
}
.mv-callout {
  display: block; margin-top: 12px;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 17px;
  font-weight: 500;
  color: var(--fire);
  line-height: 1.3;
  text-shadow: 0 0 12px rgba(255, 87, 34, 0.25);
}

.mv-side {
  display: grid;
  grid-template-columns: auto;
  grid-auto-rows: min-content;
  gap: 4px;
  padding-left: 18px;
  border-left: 1px solid var(--line-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  align-self: start;
  padding-top: 6px;
}
.mv-side-fire { border-left-color: var(--fire); }
.mv-stat-k {
  color: var(--ink-3);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 8px;
}
.mv-side > :nth-child(1) { margin-top: 0; }
.mv-stat-v { color: var(--ink); font-size: 12.5px; font-weight: 500; }

/* ────────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────── */
.colophon {
  padding: 44px 28px 24px;
  border-top: 2px solid var(--fire);
  background: var(--bg-1);
  position: relative;
  overflow: hidden;
}
.cl-wordmark {
  font-family: "Archivo Black", system-ui, sans-serif;
  font-style: normal;
  font-weight: 900;
  font-size: clamp(90px, 14vw, 180px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: 0.05;
  position: absolute;
  bottom: -24px;
  right: -14px;
  user-select: none;
  pointer-events: none;
  text-transform: lowercase;
}
.cl-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.cl-rows {
  display: flex; flex-direction: column;
  gap: 2px;
}
.cl-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
}
.cl-row:last-child { border-bottom: 0; }
.cl-k {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  align-self: center;
}
.cl-v {
  color: var(--ink-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}
.cl-v a {
  color: var(--ink);
  border-bottom: 1px dotted var(--line-3);
}
.cl-v a:hover { color: var(--ember); border-color: var(--ember); }

.cl-disclaimer p {
  margin: 0 0 18px;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-3);
}
.cl-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
  padding: 9px 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color .15s, border-color .15s, background .15s;
}
.cl-btn:hover {
  color: var(--fire);
  border-color: var(--fire);
  background: rgba(255, 87, 34, 0.05);
}

.cl-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
.cl-social {
  display: inline-flex;
}
.cl-social a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  background: transparent;
  border: 1px solid var(--line-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .15s, border-color .15s, background .15s;
}
.cl-social a + a { margin-left: -1px; }
.cl-social a:hover {
  color: var(--fire);
  border-color: var(--fire);
  background: rgba(255, 87, 34, 0.05);
  z-index: 1;
}
.cl-social svg { width: 12px; height: 12px; flex-shrink: 0; }

@media (max-width: 960px) {
  .cl-actions { gap: 8px; }
  .cl-social { flex: 1; }
  .cl-social a { flex: 1; justify-content: center; }
}

/* ────────────────────────────────────────────
   WALLET SELECT MODAL
   ──────────────────────────────────────────── */
.wmodal {
  position: fixed; inset: 0;
  z-index: 50;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.wmodal[aria-hidden="false"] { display: flex; }
.wmodal-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 5, 4, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: wmodal-fade .2s ease;
}
:root[data-theme="light"] .wmodal-backdrop { background: rgba(40, 25, 15, 0.45); }

.wmodal-panel {
  position: relative;
  width: 100%; max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  box-shadow: 0 32px 64px -16px rgba(0,0,0,.5),
              0 0 0 1px rgba(255, 87, 34, 0.1),
              0 0 80px -20px rgba(255, 87, 34, 0.3);
  padding: 22px 22px 18px;
  animation: wmodal-pop .25s cubic-bezier(.2, .8, .2, 1);
}
.wmodal-h {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.wmodal-h h3 {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 26px;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.wmodal-x {
  background: transparent;
  border: 0;
  color: var(--ink-3);
  font-size: 26px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  transition: color .15s;
}
.wmodal-x:hover { color: var(--ember); }
.wmodal-sub {
  margin: 0 0 18px;
  font-size: 12px;
  color: var(--ink-3);
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wallets {
  display: flex; flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.wallet {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
  text-align: left;
  font-family: inherit;
  color: inherit;
}
.wallet:hover {
  border-color: var(--fire);
  background: var(--bg-3);
}
.wallet:active { transform: translateY(1px); }
.wallet-ico {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  color: var(--ink-3);
}
.wallet-meta {
  display: flex; flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wallet-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.wallet-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: lowercase;
}
.wallet-cta {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fire);
  font-weight: 600;
}
.wmodal-foot {
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.wmodal-foot .ink { font-family: inherit; }

@keyframes wmodal-fade {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes wmodal-pop {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────── */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(360px, 420px); gap: 36px; }
  .movement { grid-template-columns: 78px 1fr 180px; gap: 24px; }
  .chart-grid { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 960px) {
  .topbar { padding: 10px 18px; }
  .brand-tag { display: none; }
  .btn-connect { padding: 7px 14px; font-size: 10.5px; letter-spacing: 0.10em; }

  .hero { padding: 40px 18px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-right { order: -1; max-width: 100%; width: 100%; margin: 0 auto; }
  .hero-word { font-size: clamp(64px, 14vw, 110px); }
  .hero-tag { font-size: clamp(18px, 4vw, 24px); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .hs-cell { padding: 6px 12px; border-right: 0; border-bottom: 1px dashed var(--line); }
  .hs-cell:nth-child(2n) { border-right: 0; }
  .hs-cell:nth-last-child(-n+2) { border-bottom: 0; }
  .hs-cell:first-child { padding-left: 0; }
  .hs-cell:nth-child(3) { padding-left: 0; }

  .band { padding: 36px 18px 44px; }
  .band-title { font-size: 28px; }
  .band-sub { margin-left: 0; width: 100%; }

  /* chart collapses to single column */
  .chart-grid { grid-template-columns: 1fr; gap: 22px; }
  .chart-meta { border-right: 0; padding-right: 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .chart-meta .band-title { font-size: 28px; }
  .chart-ohlc-v { padding: 8px 0; }
  .chartwrap svg { height: clamp(300px, 60vw, 380px); }

  /* activity collapses to single column */
  .activity-grid { grid-template-columns: 1fr; gap: 18px; }
  .act-list { max-height: 280px; }

  .movement {
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 26px 0;
  }
  .mv-n { font-size: 40px; padding-top: 4px; }
  .mv-mig .mv-n { font-size: 50px; }
  .mv-side {
    grid-column: 1 / -1;
    grid-template-columns: auto auto;
    gap: 8px 18px;
    padding-left: 0; margin-left: 56px;
    padding-top: 12px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .mv-side-fire { border-top-color: var(--fire); }
  .mv-stat-k, .mv-stat-v { margin-top: 0; }
  .mv-title { font-size: 24px; }
  .mv-prose { font-size: 13.5px; }
  .mv-callout { font-size: 15px; }

  /* compact row layout on mobile */
  .led-row { grid-template-columns: 70px 76px 1fr; padding: 11px 14px; }
  .led-row .led-tx { display: none; }
  .trade-row { grid-template-columns: 64px 56px 1fr; padding: 11px 14px; }
  .trade-row .trade-tx { display: none; }

  .colophon { padding: 32px 18px 22px; }
  .cl-content { grid-template-columns: 1fr; gap: 24px; }
  .cl-row { grid-template-columns: 100px 1fr; gap: 12px; }
}

@media (max-width: 480px) {
  .brand-word { font-size: 18px; }
  .btn-connect { padding: 6px 12px; font-size: 10px; }
  .hero-word { font-size: clamp(54px, 16vw, 90px); }
  .hero-tag { font-size: 18px; }
  .band-title { font-size: 22px; }
  .chart-meta .band-title { font-size: 24px; }
  .chartwrap svg { height: 260px; }
  .led-amt { font-size: 12px; }
  .wmodal-panel { padding: 18px; }
  .wmodal-h h3 { font-size: 22px; }
  .wallet { padding: 10px 12px; grid-template-columns: 32px 1fr auto; gap: 12px; }
  .wallet-cta { display: none; }
}

/* ─── page-load reveal - uses both fill so elements never stay hidden ─ */
.hero-word .lyr-1,
.hero-tag,
.hero-lede,
.hero-stats,
.hero-live,
.hero-right {
  animation-fill-mode: both;
}
.hero-word .lyr-1 { animation: rise-in .55s ease-out; animation-delay: .04s; }
.hero-tag         { animation: rise-in .55s ease-out; animation-delay: .12s; }
.hero-lede        { animation: rise-in .55s ease-out; animation-delay: .18s; }
.hero-stats       { animation: rise-in .55s ease-out; animation-delay: .24s; }
.hero-live        { animation: rise-in .55s ease-out; animation-delay: .30s; }
.hero-right       { animation: rise-in .65s ease-out; animation-delay: .14s; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
