/* PREDSTOCKS design system. Reference: Peabody House — ivory paper, ink hairlines, 18-column grid,
   condensed display serif, eye dials, contour-line fields, hard offset colour shadows. */
:root {
  --ink: #26211e; --paper: #faf6f3; --paper-2: #f2ece6; --ink-20: rgba(38, 33, 30, .2); --ink-60: rgba(38, 33, 30, .66);
  --orange: #dc942f; --blue: #517bb3; --teal: #71c7b7; --red: #a24250; --green: #455330;
  --accent: var(--ink); --bg-3: var(--paper-2); --bg: transparent;
  --pos: #3e6b2e; --neg: #a24250; --invert-ink: #faf6f3; --invert-paper: #26211e;
  --serif: "Instrument Serif", "Times New Roman", serif; --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --col: 5.5555vw; --gutter: var(--col); --bar: 28px; --line: 2px solid var(--ink); --hair: 1px solid var(--ink-20);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #f2ebe4; --paper: #1b1815; --paper-2: #26221e; --ink-20: rgba(242, 235, 228, .2); --ink-60: rgba(242, 235, 228, .68);
  --pos: #8fc27b; --neg: #e08a97; --green: #8a9f6a; --red: #d0707f; --invert-ink: #1b1815; --invert-paper: #f2ebe4; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f2ebe4; --paper: #1b1815; --paper-2: #26221e; --ink-20: rgba(242, 235, 228, .2); --ink-60: rgba(242, 235, 228, .68);
    --pos: #8fc27b; --neg: #e08a97; --green: #8a9f6a; --red: #d0707f; --invert-ink: #1b1815; --invert-paper: #f2ebe4; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: -9999px; top: 40px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
.display { font: 400 clamp(46px, 5.2vw, 92px)/1.04 var(--serif); letter-spacing: -.012em; }
.h1 { font: 400 clamp(42px, 4.4vw, 76px)/1.05 var(--serif); letter-spacing: -.01em; }
.h2 { font: 400 clamp(26px, 2.3vw, 36px)/1.18 var(--sans); letter-spacing: -.02em; }
.h3 { font: 400 clamp(20px, 1.6vw, 25px)/1.22 var(--sans); letter-spacing: -.015em; }
.lead { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.42; letter-spacing: -.012em; }
.small { font-size: 13px; line-height: 1.45; }
.src, .muted { color: var(--ink-60); }
.src { font-size: 13px; line-height: 1.45; }
.faint { color: var(--ink-60); }
.label { font-weight: 700; font-size: 13px; letter-spacing: -.005em; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.pos { color: var(--pos); } .neg { color: var(--neg); }
.inline { text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.err-text { color: var(--neg); }

/* ---------- top bar ---------- */
.bar { position: fixed; z-index: 50; left: 2px; right: 2px; top: 2px; height: var(--bar); background: var(--paper); border: var(--line); display: flex; align-items: stretch; font-size: 15px; line-height: 1; }
.bar .brand { display: flex; align-items: center; gap: 7px; padding: 0 8px 0 6px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.bar .brand svg { width: 18px; height: 18px; }
.bar nav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.bar nav a { padding: 4px 6px; position: relative; color: var(--ink); opacity: .78; transition: opacity .15s; white-space: nowrap; }
.bar nav a:hover, .bar nav a[aria-current="page"] { opacity: 1; }
.bar nav a[aria-current="page"]::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 2px; background: var(--ink); }
.bar .tools { margin-left: auto; display: flex; align-items: stretch; }
.bar .status { display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 12.5px; white-space: nowrap; border-left: var(--line); }
.bar .tool { width: 28px; display: grid; place-items: center; border-left: var(--line); transition: background .12s, color .12s; }
.bar .tool svg { width: 16px; height: 16px; }
.bar .tool:hover, .bar .wallet-btn:hover { background: var(--ink); color: var(--paper); }
.bar .wallet-btn { padding: 0 10px; border-left: var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .12s, color .12s; display: flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-60); display: inline-block; flex: none; }
.dot.live { background: var(--pos); animation: pulse 2.4s infinite; } .dot.ext { background: var(--orange); } .dot.closed { background: var(--ink-60); }
@keyframes pulse { 50% { opacity: .35; } }
.tape { position: fixed; z-index: 49; left: 2px; right: 2px; top: calc(var(--bar) + 2px); height: 26px; border: var(--line); border-top: 0; background: var(--paper); overflow: hidden; font-size: 12.5px; }
.tape-in { display: inline-flex; white-space: nowrap; height: 100%; align-items: center; animation: tape 80s linear infinite; will-change: transform; }
.tape:hover .tape-in { animation-play-state: paused; }
.tape a { display: inline-flex; gap: 7px; padding: 0 16px; align-items: center; height: 100%; border-right: var(--hair); }
.tape a:hover { background: var(--paper-2); }
@keyframes tape { to { transform: translateX(-50%); } }
main { padding-top: calc(var(--bar) + 30px); min-height: 80vh; outline: none; }

/* ---------- layout ---------- */
.wrap { padding-inline: var(--gutter); }
.sec { padding-block: clamp(48px, 7vw, 110px); border-bottom: var(--line); }
.sec.tight { padding-block: clamp(32px, 4vw, 64px); }
.sec-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 14fr); column-gap: var(--col); }
.sticky { position: sticky; top: 78px; align-self: start; }
.sec-head .label { display: block; margin-bottom: 14px; }
.sec-head .h2 { max-width: 12em; }
.sec-head p { margin-top: 14px; max-width: 26em; }
.page-head { padding: clamp(36px, 5vw, 80px) var(--gutter) clamp(28px, 3.4vw, 54px); border-bottom: var(--line); display: grid; grid-template-columns: minmax(0, 13fr) minmax(0, 7fr); gap: var(--col); align-items: end; position: relative; overflow: hidden; }
.page-head p { max-width: 30em; }
.page-head .art { position: absolute; right: 0; top: 0; bottom: 0; width: 31%; border-left: var(--line); pointer-events: none; }
.page-head.has-art p { padding-right: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.row-gap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- wave arrow ---------- */
.go { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; width: 100%; min-height: 24px; text-align: left; white-space: nowrap; }
.go .wv { flex: 1; height: 14px; overflow: visible; min-width: 30px; }
.go .wv path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.go .wv circle { fill: currentColor; }
.go.short { max-width: 340px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 14px; border: var(--line); background: var(--paper); font-weight: 600; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; transition: box-shadow .15s ease-out, transform .15s ease-out, background .12s, color .12s; cursor: pointer; }
.btn:hover { box-shadow: 4px 4px 0 0 var(--c, var(--orange)); transform: translate(-1px, -1px); }
.btn:active { box-shadow: none; transform: none; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-lg { min-height: 48px; font-size: 16px; width: 100%; }
.btn-sm { min-height: 28px; padding: 0 9px; font-size: 12.5px; border-width: 1px; }
.btn-buy { --c: var(--teal); } .btn-sell { --c: var(--red); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-btn { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 1px solid var(--ink-20); transition: background .12s, color .12s, border-color .12s; flex: none; }
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.icon-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg { display: inline-flex; border: var(--line); flex-wrap: wrap; max-width: 100%; }
.seg button { padding: 5px 11px; font-size: 13px; font-weight: 500; min-height: 30px; border-right: 1px solid var(--ink-20); transition: background .12s, color .12s; white-space: nowrap; }
.seg button:last-child { border-right: 0; }
.seg button:hover { background: var(--paper-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.field { min-height: 36px; border: var(--line); background: var(--paper); padding: 0 10px; font-size: 14px; border-radius: 0; min-width: 0; }
.field:focus { outline: none; box-shadow: 4px 4px 0 0 var(--blue); }
select.field { padding-right: 26px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 13px) 15px, calc(100% - 8px) 15px; background-size: 5px 5px; background-repeat: no-repeat; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px var(--gutter); border-bottom: var(--line); position: sticky; top: 56px; background: var(--paper); z-index: 20; }
.toolbar .grow { flex: 1; min-width: 180px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 2fr 1fr; min-height: calc(100vh - 58px); border-bottom: var(--line); }
.hero-left { display: flex; flex-direction: column; min-width: 0; }
.hero-title { padding: clamp(40px, 6vw, 96px) var(--gutter) 32px; }
.hero-title .lead { margin-top: 30px; max-width: 24em; }
.hero-field { border-left: var(--line); position: relative; overflow: hidden; min-height: 320px; }
.hero-field canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.field-note { position: absolute; left: 14px; right: 14px; bottom: 14px; background: var(--paper); border: var(--line); padding: 10px 12px; font-size: 13px; box-shadow: 8px 8px 0 -4px var(--c, var(--teal)); }
.field-note .num { font-size: 18px; }
.eyes { display: flex; border-top: var(--line); border-bottom: var(--line); margin-top: auto; overflow: hidden; }
.eye-tile { flex: 1 1 0; min-width: 0; border-right: var(--line); padding: 8px 8px 7px; display: flex; flex-direction: column; align-items: center; gap: 5px; transition: background .15s; position: relative; text-align: center; }
.eye-tile:first-child { background: var(--ink); color: var(--paper); }
.eye-tile:hover { background: var(--paper-2); }
.eye-tile:first-child:hover { background: var(--ink); opacity: .92; }
.eye-tile .eye-l { font-size: 11.5px; font-weight: 600; line-height: 1.15; }
.eye-tile .eye-p { font-family: var(--mono); font-size: 11px; opacity: .8; }
.eyes .eye-tile:last-child { border-right: 0; }
.eye { width: 100%; max-width: 72px; aspect-ratio: 1; display: block; overflow: visible; }
.eye .blink { transform-origin: 50% 50%; transform-box: fill-box; }
.eye .lid { transform-origin: center; transform-box: fill-box; transition: transform .11s ease-in; }
.hero-note { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 13fr); gap: var(--col); padding: 34px var(--gutter) 38px; }
.brief { display: flex; flex-direction: column; gap: 12px; }
.brief a { display: block; line-height: 1.42; }
.brief a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- expertise ---------- */
.expert { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px var(--col); }
.expert a { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.expert svg.art { width: 100%; aspect-ratio: 4 / 3; color: var(--ink); overflow: visible; }
.expert p { max-width: 25em; font-size: 14px; }
.art path, .art line, .art ellipse, .art circle, .art rect, .art polyline, .art polygon { vector-effect: non-scaling-stroke; }
.art .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.9s cubic-bezier(.3, .1, .2, 1); }
.art.in .draw { stroke-dashoffset: 0; }
.art .wire { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.art .fat { stroke-width: 2.2; }
.art .pf { fill: var(--paper); }
.art .solid { fill: var(--ink); stroke: none; opacity: 0; transition: opacity .6s 1.1s; }
.art.in .solid { opacity: 1; }

/* ---------- rows ---------- */
.table { border-top: var(--hair); }
.row { display: grid; align-items: center; gap: 14px; padding: 11px 0; border-bottom: var(--hair); min-height: 48px; transition: padding .2s, background .15s; }
a.row:hover, .row.link:hover { padding-left: 8px; background: linear-gradient(90deg, var(--paper-2), transparent); }
.row .nm { min-width: 0; }
.row .nm b { display: block; font-weight: 500; letter-spacing: -.012em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .nm span { display: block; font-size: 12.5px; color: var(--ink-60); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-stock { grid-template-columns: 38px minmax(0, 1.5fr) minmax(70px, .7fr) minmax(60px, .55fr) minmax(70px, .7fr) 72px; }
.row-hold { grid-template-columns: 38px minmax(0, 1fr) 90px 90px 104px auto; }
.row-trade { grid-template-columns: 118px 54px minmax(0, 1fr) 90px 92px; }
.row-alert { grid-template-columns: minmax(0, 1fr) 130px auto; }
.row-corr { grid-template-columns: 64px minmax(0, 1fr) 88px 60px; }
.show-sm { display: none; }
.row-head { font-size: 12px; color: var(--ink-60); min-height: 0; padding: 0 0 8px; border-bottom: var(--hair); }
.right { text-align: right; justify-content: flex-end; }
.dots { display: flex; gap: 5px; justify-content: flex-end; flex-wrap: wrap; }
.dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font: 600 10px/1 var(--sans); position: relative; overflow: hidden; flex: none; border: 1px solid var(--ink-20); }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spark { display: block; width: 100%; height: 26px; overflow: visible; }
.spark path { fill: none; stroke: currentColor; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.empty { padding: 26px 0; color: var(--ink-60); font-size: 14px; }
.more-row { padding: 18px 0; display: flex; justify-content: center; }

/* ---------- market cards ---------- */
.mk { --c: var(--blue); border: var(--line); padding: 14px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); transition: box-shadow .15s ease-out, transform .15s ease-out; min-width: 0; position: relative; }
.mk:hover { box-shadow: 8px 8px 0 -4px var(--c); }
.mk-top { display: flex; gap: 10px; align-items: flex-start; }
.mk-q { font-size: 15px; line-height: 1.28; letter-spacing: -.012em; font-weight: 500; flex: 1; min-width: 0; }
.mk-q a:hover { text-decoration: underline; text-underline-offset: 2px; }
.mk-sub { font-size: 12.5px; color: var(--ink-60); display: flex; flex-wrap: wrap; gap: 3px 10px; }
.mk-sub a { text-decoration: underline; text-underline-offset: 2px; color: var(--ink); }
.prob { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.prob b { font: 400 30px/1 var(--serif); }
.pbar { height: 8px; border: 1px solid var(--ink); position: relative; overflow: hidden; min-width: 40px; }
.pbar i { position: absolute; inset: 0 auto 0 0; background: var(--c); transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 1px 6px; border: 1px solid var(--ink-20); line-height: 1.5; white-space: nowrap; }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--ink)); }
.mk-acts { display: flex; gap: 6px; align-items: center; margin-top: auto; flex-wrap: wrap; }
.mk-acts .btn-sm { flex: 1; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.mk-hist { border-top: var(--hair); padding-top: 10px; }
.chart-mini { height: 90px; }
.hist-range { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-60); }

/* event group on the company page */
.ev { border-bottom: var(--hair); }
.ev > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto auto 18px; gap: 14px; align-items: center; padding: 14px 0; }
.ev > summary::-webkit-details-marker { display: none; }
.ev > summary:hover { background: linear-gradient(90deg, var(--paper-2), transparent); }
.ev .chev { transition: transform .2s; width: 14px; height: 14px; }
.ev[open] .chev { transform: rotate(180deg); }
.ev-t { font-size: 16px; font-weight: 500; letter-spacing: -.015em; line-height: 1.25; }
.ev-m { font-size: 12.5px; color: var(--ink-60); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 3px 10px; }
.ev-body { padding: 0 0 16px; }
.out { display: grid; grid-template-columns: minmax(0, 1.6fr) 60px 56px minmax(60px, 1fr) minmax(58px, .5fr) auto; gap: 12px; align-items: center; padding: 7px 0; border-top: 1px dashed var(--ink-20); font-size: 13.5px; }
.out .pbar { height: 6px; }
.out-acts { display: flex; gap: 4px; }
.out-acts .icon-btn { width: 26px; height: 26px; }
.out-h { font-size: 11.5px; color: var(--ink-60); border-top: 0; padding-top: 0; }
.outcome-hist { grid-column: 1 / -1; }

/* ---------- company ---------- */
.co-head { padding: clamp(28px, 4vw, 64px) var(--gutter) 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px var(--col); border-bottom: var(--line); align-items: end; }
.co-name { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.co-price { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 16px; align-items: baseline; }
.co-price .big { font: 400 clamp(36px, 3.5vw, 56px)/1 var(--serif); }
.subnav { position: sticky; top: 56px; z-index: 20; background: var(--paper); border-bottom: var(--line); display: flex; gap: 2px; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; font-size: 14px; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { padding: 8px 10px; white-space: nowrap; opacity: .72; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.subnav a:hover, .subnav a.on { opacity: 1; border-color: var(--ink); }
.chart-box { position: relative; height: clamp(280px, 42vh, 460px); border: var(--line); background: var(--paper); touch-action: pan-y; }
.chart-box svg { width: 100%; height: 100%; display: block; }
.chart-box.small { height: 180px; }
.chart-tip { position: absolute; z-index: 3; pointer-events: none; background: var(--ink); color: var(--paper); padding: 6px 9px; font-size: 12px; line-height: 1.45; transform: translate(10px, 10px); white-space: nowrap; display: none; }
.chart-ctl { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; align-items: center; justify-content: space-between; }
.chart-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--ink-60); }
.legend i { display: inline-block; width: 12px; height: 3px; margin-right: 5px; vertical-align: middle; }
.stat-row { display: flex; flex-wrap: wrap; border: var(--line); overflow: hidden; }
.stat { flex: 1 1 118px; padding: 11px 12px; border-right: var(--hair); border-bottom: var(--hair); margin: 0 -1px -1px 0; min-width: 0; }
.stat span { display: block; font-size: 12px; color: var(--ink-60); line-height: 1.3; }
.stat b { font: 500 16px/1.35 var(--mono); letter-spacing: -.04em; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.corr-card { border: var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; --c: var(--blue); transition: box-shadow .15s; background: var(--paper); }
.corr-card:hover { box-shadow: 8px 8px 0 -4px var(--c); }
.corr-r { font: 400 44px/1 var(--serif); }
.ladder { width: 100%; height: 170px; display: block; overflow: visible; }
.impl-box { border: var(--line); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.note { font-size: 13px; color: var(--ink-60); max-width: 60em; }
.news-i { display: grid; grid-template-columns: 68px minmax(0, 1fr) minmax(0, 250px); gap: 16px; padding: 13px 0; border-bottom: var(--hair); align-items: start; }
.news-i .t { font-size: 15px; font-weight: 500; letter-spacing: -.012em; line-height: 1.3; }
.news-i .t a:hover { text-decoration: underline; text-underline-offset: 2px; }
.news-i time { font: 400 12px/1.4 var(--mono); color: var(--ink-60); letter-spacing: -.03em; }
.news-m { font-size: 12.5px; color: var(--ink-60); display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 4px; align-items: center; }
.news-m a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.impact { font-size: 12.5px; border-left: 2px solid var(--ink); padding-left: 9px; }
.impact .src { font-size: 11.5px; display: block; }
.impact .num + .src, .impact .num ~ .src { display: inline; margin-left: 3px; }
.impact a { display: block; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.impact a:hover { text-decoration: underline; }
.cal-i { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 0; border-bottom: var(--hair); }
.cal-d { font: 400 26px/1 var(--serif); }
.cal-d small { display: block; font: 500 11px/1.3 var(--sans); color: var(--ink-60); text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }

/* signal case-study band */
.case { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 7fr) minmax(0, 6fr); gap: var(--col); align-items: end; }
.case .name { font: 400 clamp(48px, 5.4vw, 92px)/1 var(--sans); letter-spacing: -.045em; }
.sig { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: var(--hair); }
.sig:hover { background: linear-gradient(90deg, var(--paper-2), transparent); }
.sig .sc { font: 400 32px/1 var(--serif); }
.sig .dt { display: flex; gap: 12px; font-size: 13px; }

/* ---------- persona cards ---------- */
.persona { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { --c: var(--orange); border: var(--line); padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--paper); box-shadow: 8px 8px 0 -4px var(--c); transition: box-shadow .15s ease-out, transform .15s ease-out; min-width: 0; }
.card:hover { box-shadow: 12px 12px 0 -4px var(--c); transform: translate(-2px, -2px); }
.card .go { margin-top: auto; padding-top: 20px; font-size: 13px; }
.card.dark { background: var(--ink); color: var(--paper); box-shadow: none; }
.card-art { margin-bottom: 8px; }
.card-art svg.art { width: 100%; max-width: 240px; aspect-ratio: 4 / 3; height: auto; display: block; }
.card.dark .art .pf { fill: var(--ink); }
.card.dark .art .solid { fill: var(--paper); }
.card-n { display: flex; align-items: baseline; gap: 7px; margin-top: 8px; }
.card-n b { font: 400 30px/1 var(--serif); }

/* ---------- token page ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: f; }
.flow > div { border-top: var(--line); padding-top: 12px; counter-increment: f; }
.flow > div::before { content: counter(f, decimal-leading-zero); font: 400 13px var(--mono); color: var(--ink-60); display: block; margin-bottom: 10px; }
.callout { display: flex; gap: 10px; padding: 11px 12px; border: var(--line); font-size: 13.5px; line-height: 1.42; background: var(--paper); }
.callout .ci { flex: none; width: 18px; height: 18px; display: grid; place-items: center; font: 600 11px/1 var(--mono); background: var(--ink); color: var(--paper); border-radius: 50%; }
.callout.neg { border-color: var(--neg); } .callout.neg .ci { background: var(--neg); color: #fff; }
.callout.warn { border-color: var(--orange); } .callout.warn .ci { background: var(--orange); color: #26211e; }
.callout.acc { border-color: var(--green); } .callout.acc .ci { background: var(--green); color: #faf6f3; }

/* ---------- footer ---------- */
.foot { display: grid; grid-template-columns: var(--col) minmax(0, 1fr) calc(var(--col) * 3); min-height: 280px; }
.foot-field { position: relative; grid-column: 1; border-right: var(--line); overflow: hidden; }
.foot-field canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.foot-mid { display: grid; grid-template-columns: minmax(0, 1fr); padding: 28px clamp(16px, 2vw, 32px) 18px; align-content: space-between; gap: 20px; min-width: 0; }
.foot-title { font: 400 clamp(46px, 5vw, 84px)/1 var(--serif); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; align-items: center; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 2px; }
.foot-legal { font-size: 12px; color: var(--ink-60); max-width: 64em; }
.foot-top { background: #26211e; color: #faf6f3; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; font-size: 14px; text-align: left; transition: opacity .15s; }
.foot-top .eye { width: 66px; max-width: none; }
.foot-top:hover { opacity: .9; }

/* ---------- overlays ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(38, 33, 30, .42); display: flex; align-items: flex-start; justify-content: center; padding: 58px 14px 14px; overflow: auto; animation: fadein .16s; overscroll-behavior: contain; }
@keyframes fadein { from { opacity: 0; } }
.modal { width: 100%; max-width: 460px; background: var(--paper); border: var(--line); box-shadow: 10px 10px 0 -2px var(--c, var(--orange)); animation: rise .24s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: var(--line); gap: 10px; }
.modal-b { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.modal.wide { max-width: 640px; }
.toast-host { position: fixed; right: 12px; bottom: 12px; z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; max-width: min(92vw, 380px); }
.toast { background: var(--ink); color: var(--paper); padding: 10px 14px; font-size: 13.5px; line-height: 1.35; animation: rise .22s; }
.toast b { display: block; font-weight: 600; }
.toast.err { background: var(--neg); color: #fff; }
.pal-i { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; padding: 9px 14px; align-items: center; width: 100%; text-align: left; border-bottom: var(--hair); }
.pal-i[aria-selected="true"], .pal-i:hover { background: var(--paper-2); }
.pal-list { max-height: 56vh; overflow: auto; overscroll-behavior: contain; }
.pal-input { border: 0; border-bottom: var(--line); width: 100%; padding: 13px 14px; font-size: 17px; background: var(--paper); outline: none; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.menu-grid a { padding: 11px 10px; border: 1px solid var(--ink-20); font-size: 15px; font-weight: 500; }
.menu-grid a:hover { background: var(--ink); color: var(--paper); }

/* trade modal, wallet modal (shared with the Stoxflow flow) */
.swap-box { border: var(--line); padding: 11px 12px; display: flex; flex-direction: column; gap: 7px; }
.swap-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.swap-row input { border: 0; background: transparent; font: 400 28px/1.2 var(--serif); width: 100%; min-width: 0; outline: none; padding: 0; }
.tok { display: inline-flex; gap: 7px; align-items: center; font-weight: 600; white-space: nowrap; }
.tok .logo { width: 24px; height: 24px; }
.max-btn { font-size: 12px; font-weight: 700; text-decoration: underline; margin-left: 6px; }
.amount-chips { display: flex; gap: 6px; }
.amount-chips button { flex: 1; border: 1px solid var(--ink-20); padding: 4px 0; font-size: 12.5px; }
.amount-chips button:hover { background: var(--ink); color: var(--paper); }
.pay-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.route-line { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; }
.route-bar { display: flex; height: 6px; gap: 2px; }
.route-bar span { background: var(--ink); display: block; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 5px 14px; font-size: 13.5px; }
.kv > span:nth-child(odd) { color: var(--ink-60); }
.kv > span:nth-child(even) { text-align: right; font-family: var(--mono); letter-spacing: -.03em; }
.kv .seg button { font-family: var(--sans); letter-spacing: 0; }
.steps { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.step { display: flex; align-items: center; gap: 9px; color: var(--ink-60); }
.step .sd { width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-size: 10px; flex: none; }
.step.active { color: var(--ink); font-weight: 500; } .step.active .sd { background: var(--orange); border-color: var(--orange); animation: pulse 1s infinite; }
.step.done { color: var(--ink); } .step.done .sd { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.notes { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-60); display: flex; flex-direction: column; gap: 5px; }
.wallet-opt { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 11px; padding: 10px; border: var(--line); align-items: center; text-align: left; width: 100%; transition: box-shadow .15s; }
.wallet-opt:hover { box-shadow: 6px 6px 0 -2px var(--teal); }
.wallet-opt img, .w-ico { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; font-weight: 700; }
.wallet-opt b { font-weight: 600; }
.skel { display: block; height: 14px; background: linear-gradient(90deg, var(--paper-2), var(--ink-20), var(--paper-2)); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.loading-box { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: minmax(170px, 4fr) minmax(0, 12fr); gap: var(--col); padding: 34px var(--gutter) 90px; }
.docs nav { display: flex; flex-direction: column; gap: 3px; position: sticky; top: 72px; align-self: start; font-size: 14px; }
.docs nav a { padding: 5px 8px; border-left: 2px solid transparent; }
.docs nav a:hover { background: var(--paper-2); }
.docs nav a.on { border-color: var(--ink); font-weight: 600; }
.docs nav .sub { font-size: 13px; padding-left: 18px; color: var(--ink-60); }
.prose { max-width: 720px; font-size: 16px; line-height: 1.6; min-width: 0; }
.prose h1 { font: 400 clamp(40px, 4vw, 64px)/1.06 var(--serif); margin-bottom: 22px; }
.prose h2 { font-size: 27px; letter-spacing: -.02em; line-height: 1.2; margin: 44px 0 12px; padding-top: 14px; border-top: var(--line); }
.prose h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol, .prose pre, .prose table { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: 5px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose code { font: 400 .86em var(--mono); background: var(--paper-2); padding: 1px 4px; }
.prose pre { background: var(--ink); color: var(--paper); padding: 13px; overflow: auto; font-size: 13px; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: var(--hair); padding: 7px 10px 7px 0; text-align: left; vertical-align: top; }
.prose th { font-weight: 600; border-bottom: var(--line); white-space: nowrap; }

.prose .shot { margin: 18px 0 26px; }
.prose .shot img { width: 100%; height: auto; border: var(--line); box-shadow: 8px 8px 0 -4px var(--orange); }
.prose .shot.phone img { max-width: 320px; }
.prose figcaption { font-size: 13px; color: var(--ink-60); margin-top: 12px; }

/* ---------- motion ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.lines .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.lines .ln > span { display: block; transform: translateY(108%); transition: transform 1.05s cubic-bezier(.16, .84, .2, 1); transition-delay: calc(var(--i) * .09s + var(--d, 0s)); }
.lines.in .ln > span { transform: none; }
.flash-up { animation: flup 1s; } .flash-down { animation: fldn 1s; }
@keyframes flup { 0% { color: var(--pos); } } @keyframes fldn { 0% { color: var(--neg); } }
.page-enter { animation: pagein .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes pagein { from { opacity: 0; } }
html.booting .rv { opacity: 0 !important; transform: translateY(18px) !important; }
html.booting .lines .ln > span { transform: translateY(108%) !important; }
html.booting .art .draw { stroke-dashoffset: 1 !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .tape-in { animation: none; }
  .rv { opacity: 1; transform: none; }
  .lines .ln > span { transform: none; }
  .art .draw { stroke-dashoffset: 0; }
  .art .solid { opacity: 1; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .bar nav a { padding: 4px 4px; font-size: 14px; }
  .bar .status .long { display: none; }
  .persona { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-i { grid-template-columns: 58px minmax(0, 1fr); }
  .news-i .impact { grid-column: 2; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; --bar: 42px; }
  .bar { font-size: 15px; }
  .bar nav { display: none; }
  .bar .tool { width: 42px; }
  .bar .tool svg { width: 19px; height: 19px; }
  .bar .status { display: none; }
  .bar .brand { padding-left: 8px; font-size: 16px; }
  .bar .brand svg { width: 22px; height: 22px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-field { order: 2; border-left: 0; border-top: var(--line); height: 72vw; max-height: 460px; }
  .hero-note { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .sec-grid, .page-head, .grid-2, .case { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .sticky { position: static; }
  .page-head .art { display: none; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .toolbar { top: 70px; position: static; }
  .subnav { top: 70px; }
  .co-head { grid-template-columns: minmax(0, 1fr); }
  .co-head .btn-row .btn { flex: 1; }
  .btn, .seg button { min-height: 40px; }
  .btn-sm { min-height: 36px; }
  .icon-btn { width: 40px; height: 40px; }
  .out-acts .icon-btn { width: 36px; height: 36px; }
  .row-stock { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .row-stock .hide-sm { display: none; }
  .show-sm { display: block; }
  .row-hold { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .row-hold .hide-sm { display: none; }
  .row-hold .btn-row { grid-column: 2 / -1; }
  .row-trade { grid-template-columns: 54px minmax(0, 1fr) auto; }
  .row-trade .hide-sm { display: none; }
  .row-alert { grid-template-columns: minmax(0, 1fr) auto; }
  .row-alert .small { grid-column: 1; grid-row: 2; }
  .row-corr { grid-template-columns: 54px minmax(0, 1fr) 44px; }
  .row-corr .hide-sm { display: none; }
  .out { grid-template-columns: minmax(0, 1fr) 54px auto; }
  .out .hide-sm, .out-h { display: none; }
  .ev > summary { grid-template-columns: minmax(0, 1fr) auto 18px; }
  .ev > summary .hide-sm { display: none; }
  .foot { grid-template-columns: minmax(0, 1fr) 118px; }
  .foot-field { display: none; }
  .foot-top { padding: 14px; }
  .foot-title { font-size: clamp(38px, 11.5vw, 72px); }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .docs nav .sub { display: none; }
  .docs nav a { border: 1px solid var(--ink-20); }
  .sig { grid-template-columns: 46px minmax(0, 1fr); }
  .sig .sc { font-size: 26px; }
  .sig .sig-go { grid-column: 2; }
  .cal-i { grid-template-columns: 60px minmax(0, 1fr); }
  .cal-i .cal-a { grid-column: 2; }
  .eye-tile { width: 16.667%; min-width: 0; padding-inline: 2px; flex: 1 1 0; }
  .eyes { overflow: visible; }
  .eyes .eye-tile:last-child { border-right: 0; border-bottom-right-radius: 0; }
  .eye { max-width: 44px; }
  .eye-tile .eye-p { font-size: 10px; }
  .eye-tile .eye-l { font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }
}
@media (max-width: 560px) {
  .persona { grid-template-columns: minmax(0, 1fr); }
  .expert { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .news-i { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .news-i .impact { grid-column: 1; }
  .mk-grid { gap: 16px; }
  .toast-host { left: 12px; right: 12px; max-width: none; align-items: stretch; }
  .tape { height: 24px; }
  .modal { box-shadow: 6px 6px 0 -2px var(--c, var(--orange)); }
  .seg button { padding-inline: 9px; }
  .kv { font-size: 13px; }
}
