/* Taba landing. Brand: IBM Plex Sans/Mono, charcoal, paper, mint, sage.
   Square corners, hairline rules, one accent. Product illustrations are drawn
   in HTML/SVG so they stay sharp at every DPI and carry no live figures. */
:root {
  --paper: #f1efe8;
  --paper-2: #e8e6de;
  --ink: #191b19;
  --muted: #5c5d56;
  --line: #c9c8be;
  --mint: #a0f6b8;
  --sage: #99ad94;
  --green: #3f6a4f;
  --dark: #111412;
  --ui-bg: #111412;
  --ui-panel: #171a17;
  --ui-line: #262a26;
  --ui-text: #f1efe8;
  --ui-dim: rgba(241, 239, 232, 0.56);
  --ui-skel: rgba(241, 239, 232, 0.1);
  --up: #7fdc9c;
  --down: #e5806f;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p,
figure,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
::selection {
  background: var(--mint);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
.closing :focus-visible {
  outline-color: var(--mint);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.icon {
  width: 14px;
  height: 14px;
  flex: none;
}
.soft {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

/* Labels: mono, uppercase, small. A number sits in front where there is one. */
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 12px/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.label > span:first-child:not(.beta-dot):not(.soon) {
  color: var(--ink);
}

/* Buttons: square, solid, no outline. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  font: 500 15px/1 var(--sans);
  white-space: nowrap;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.button .icon {
  transition: transform 0.2s var(--ease);
}
.button:hover .icon,
.text-link:hover .icon,
.data-grid a:hover .icon,
.venue-feature .text-link:hover .icon {
  transform: translate(2px, -2px);
}
.button-ink {
  background: var(--ink);
  color: var(--paper);
}
.button-ink:hover {
  background: #2c302c;
}
.button-quiet {
  background: var(--paper-2);
  color: var(--ink);
}
.button-quiet:hover {
  background: #dddbd1;
}
.button-mint {
  background: var(--mint);
  color: var(--ink);
}
.button-mint:hover {
  background: #b9f9ca;
}
.button-line {
  background: rgba(241, 239, 232, 0.08);
  color: var(--paper);
}
.button-line:hover {
  background: rgba(241, 239, 232, 0.16);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Header. At the top it is a full bar: wordmark, nav, button. Once the page
   scrolls it lets go of its ground and floats: the wordmark folds into the
   mint mark on a dark square, the nav becomes a paper pill and the button
   takes the action colour. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  pointer-events: none;
  transition: background-color 0.45s;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.header-row > * {
  pointer-events: auto;
}
.brand {
  position: relative;
  display: grid;
  align-items: center;
  flex: none;
  width: 104px;
  height: 44px;
  transition:
    width 0.45s var(--ease),
    background-color 0.45s;
}
.brand > img:first-child {
  width: 104px;
  height: auto;
  transition:
    opacity 0.3s,
    transform 0.45s var(--ease);
}
.brand img.brand-mark {
  position: absolute;
  left: 8px;
  top: 12px;
  width: 28px;
  height: 20px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.3s,
    transform 0.45s var(--ease);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 44px;
  margin-left: auto;
  font-size: 15px;
  transition:
    background-color 0.45s,
    padding 0.45s var(--ease),
    gap 0.45s var(--ease),
    box-shadow 0.45s;
}
.site-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  transition: color 0.2s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.site-nav a:is(:hover, :focus-visible) {
  color: var(--ink);
}
.site-nav a:is(:hover, :focus-visible)::after {
  transform: scaleX(1);
}
.header-cta {
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  transition:
    background-color 0.45s,
    color 0.45s,
    min-height 0.45s var(--ease),
    margin 0.45s var(--ease),
    box-shadow 0.45s;
}
.site-header.is-scrolled {
  background: transparent;
}
.site-header.is-scrolled .brand {
  width: 44px;
  background: var(--ink);
}
.site-header.is-scrolled .brand > img:first-child {
  opacity: 0;
  transform: translateY(-15px);
  pointer-events: none;
}
.site-header.is-scrolled .brand-mark {
  opacity: 1;
  transform: none;
}
.site-header.is-scrolled .site-nav {
  padding: 0 20px;
  gap: 26px;
  background: var(--paper);
  box-shadow: 0 10px 30px -14px rgba(17, 20, 18, 0.35);
}
.site-header.is-scrolled .header-cta {
  min-height: 44px;
  margin-left: -24px;
  background: var(--green);
  color: var(--paper);
  box-shadow: 0 10px 30px -14px rgba(17, 20, 18, 0.35);
}
.site-header.is-scrolled .header-cta:is(:hover, :focus-visible) {
  background: var(--ink);
}

/* Parts that slide in from the side never widen the page. */
main {
  overflow-x: clip;
}

/* Hero: a full-bleed charcoal stage. The headline and actions sit above the
   trade screen, which overlaps into the paper below, with a few cards
   floating around it at different depths. */
.hero {
  display: flow-root;
  position: relative;
  background:
    radial-gradient(60% 50% at 70% 8%, rgba(160, 246, 184, 0.08), transparent 70%),
    radial-gradient(50% 40% at 10% 30%, rgba(153, 173, 148, 0.07), transparent 70%),
    var(--dark);
  color: var(--paper);
  padding-top: clamp(64px, 9vw, 128px);
  margin-bottom: clamp(160px, 20vw, 300px);
}
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 64px;
  align-items: end;
}
h1 {
  font-size: clamp(48px, 7.6vw, 112px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.hero .soft {
  color: rgba(241, 239, 232, 0.5);
}
.lede {
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.55;
  max-width: 32em;
  margin-bottom: 28px;
  color: rgba(241, 239, 232, 0.78);
}
.hero-stage {
  position: relative;
  z-index: 2;
  margin-top: clamp(56px, 7vw, 96px);
  margin-bottom: calc(clamp(160px, 20vw, 300px) * -1);
  container-type: inline-size;
  perspective: 2000px;
}

/* Floating cards around the screen. */
.float {
  position: absolute;
  z-index: 3;
  background: rgba(17, 19, 17, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--paper);
  box-shadow:
    0 1px 0 rgba(241, 239, 232, 0.06) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.55),
    0 12px 24px -12px rgba(0, 0, 0, 0.4);
  font-size: 13px;
  translate: calc(var(--mx, 0) * var(--d, 1) * 1px) calc(var(--my, 0) * var(--d, 1) * 1px);
  transition: translate 0.6s var(--ease);
}
.float small {
  display: block;
  color: rgba(241, 239, 232, 0.55);
  font-size: 11.5px;
}
.f-fill {
  bottom: -34px;
  left: 4%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 14px 14px;
  --d: 2;
}
.f-fill > i {
  width: 28px;
  height: 28px;
  flex: none;
  background: rgba(72, 222, 150, 0.16)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%2348de96' stroke-width='1.6'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}
.f-fill b {
  font-weight: 500;
}
.f-fill em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}
.f-fill.is-new {
  animation: pop 0.6s var(--ease);
}
@keyframes pop {
  from {
    opacity: 0.4;
    transform: translateY(8px) scale(0.98);
  }
}
.f-bot {
  top: 54%;
  left: -48px;
  width: 248px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  --d: 1.2;
}
.f-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.f-head img {
  width: 16px;
  height: 16px;
}
.f-head em {
  margin-left: auto;
  font: 500 10.5px/1 var(--mono);
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #48de96;
}
.f-bot svg {
  width: 100%;
  height: 40px;
}
.f-bot svg path {
  fill: rgba(72, 222, 150, 0.5);
}
.f-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.f-row b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.f-example,
.f-fund .f-head em {
  font: 400 10px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(241, 239, 232, 0.4);
}
.f-fund {
  right: -40px;
  bottom: -48px;
  width: 236px;
  padding: 14px 16px;
  display: grid;
  gap: 10px;
  --d: 1.7;
}
.f-fund svg {
  width: 100%;
  height: 56px;
}
.f-fund path {
  fill: none;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}
.f-fund .a {
  stroke: #76deaa;
}
.f-fund .b {
  stroke: #99ad94;
  stroke-dasharray: 3 3;
}
.f-legend {
  display: flex;
  gap: 16px;
  font-size: 11.5px;
  color: rgba(241, 239, 232, 0.6);
}
.f-legend i {
  display: inline-block;
  width: 10px;
  height: 2px;
  margin-right: 6px;
  vertical-align: middle;
}
.f-legend i.a {
  background: #76deaa;
}
.f-legend i.b {
  background: #99ad94;
}

/* The illustrated Taba Dark trade screen. Built in em on a 13px base at
   1320px wide, so the whole screen scales with its container like a
   screenshot would, but stays sharp. Colours are the app's taba-charcoal
   theme tokens. */
.app {
  /* Taba Dark, third cut (2026-10-16): near-black page, panels by tone,
     no outlines, mint action, vivid up and down. */
  --c-canvas: #040504;
  --c-panel: #0c0d0c;
  --c-surface: #111311;
  --c-raised: #171a17;
  --c-line: #1e221e;
  --c-text: #f6f5ef;
  --c-soft: #d6d8ce;
  --c-muted: #b4b8ac;
  --c-dim: #969c90;
  --c-up: #48de96;
  --c-up-chart: #48de96;
  --c-down: #ff6858;
  --c-down-chart: #ff6858;
  --c-action: #76deaa;
  --c-ink: #05120b;
  --c-up-wash: #102e20;
  font-size: calc(100cqw * 13 / 1320);
  position: relative;
  background: var(--c-canvas);
  color: var(--c-text);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  box-shadow:
    0 0 0 1px rgba(241, 239, 232, 0.06),
    0 50px 100px -30px rgba(0, 0, 0, 0.6),
    0 30px 60px -30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  white-space: nowrap;
}
.app ol,
.app dl {
  margin: 0;
  padding: 0;
  list-style: none;
}
.app dd {
  margin: 0;
}
.app-in {
  display: flex;
  flex-direction: column;
}
.app-top {
  display: flex;
  align-items: center;
  gap: 2.4em;
  height: 3.4em;
  padding: 0 1.2em;
  border-bottom: 1px solid var(--c-line);
}
.app-mark {
  width: 2em;
  height: auto;
}
.app-nav {
  display: flex;
  gap: 2em;
  color: var(--c-muted);
  font-weight: 500;
}
.app-nav .on {
  position: relative;
  color: var(--c-up);
}
.app-nav .on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1.15em;
  height: 2px;
  background: var(--c-up);
}
.app-right {
  display: flex;
  gap: 0.6em;
  margin-left: auto;
}
.app-btn {
  display: flex;
  align-items: center;
  gap: 0.5em;
  height: 2.3em;
  padding: 0 0.9em;
  background: var(--c-surface);
  color: var(--c-soft);
  font-weight: 500;
}
.app-btn img {
  width: 1.2em;
  height: 1.2em;
}
.app-btn.wallet {
  background: var(--c-raised);
  color: var(--c-text);
}
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21em 22.5em;
  gap: 0.5em;
  padding: 0.5em;
}
.panel {
  position: relative;
  background: var(--c-panel);
  min-width: 0;
}
.app-left {
  display: grid;
  grid-template-rows: auto minmax(31em, 1fr) auto;
  gap: 0.5em;
  min-width: 0;
}
.mkt {
  display: flex;
  align-items: center;
  gap: 2.4em;
  height: 3.8em;
  padding: 0 1.2em;
}
.coin svg {
  width: 2em;
  height: 2em;
  display: block;
  margin-right: -1.8em;
}
.mkt-name b {
  display: block;
  font-size: 1.1em;
  font-weight: 600;
}
.mkt-name small,
.stat small {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.8em;
  color: var(--c-dim);
}
.mkt-name small img {
  width: 0.95em;
  height: 0.95em;
}
.stat b {
  display: block;
  font-size: 1.05em;
  font-weight: 500;
  transition: color 0.5s;
}
.app .pos {
  color: var(--c-up);
}
.app .neg {
  color: var(--c-down);
}
b.flash-up {
  color: var(--c-up);
  transition: none;
}
b.flash-down {
  color: var(--c-down);
  transition: none;
}

/* Chart panel */
.chart {
  display: flex;
  flex-direction: column;
}
.chart-tabs,
.chart-tools,
.pos-tabs,
.book-tabs {
  display: flex;
  align-items: center;
  gap: 1.8em;
  padding: 0 1.1em;
  color: var(--c-muted);
}
.chart-tabs {
  height: 2.6em;
}
.chart-tabs .on,
.chart-tools .on {
  padding: 0.35em 0.7em;
  margin: 0 -0.7em;
  background: var(--c-raised);
  color: var(--c-text);
}
.chart-tabs .by {
  margin-left: auto;
  font-size: 0.85em;
  color: var(--c-dim);
}
.chart-tools {
  height: 2.4em;
  gap: 1.3em;
  border-bottom: 1px solid var(--c-line);
}
.chart-tools i {
  width: 1px;
  height: 1.2em;
  background: var(--c-line);
}
.chart-body {
  flex: 1;
  display: flex;
  min-height: 0;
}
.draw-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2em;
  width: 3em;
  padding-top: 1em;
  border-right: 1px solid var(--c-line);
}
.draw-tools svg {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: var(--c-muted);
  stroke-width: 1.2;
}
.plot {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.6em 5.6em 0 0.8em;
}
.legend {
  font-size: 0.95em;
  color: var(--c-soft);
  margin-bottom: 0.5em;
}
.legend span {
  margin-left: 0.8em;
  color: var(--c-dim);
}
.legend b {
  font-weight: 400;
  color: var(--c-up);
  margin-right: 0.4em;
}
.chart-area {
  position: relative;
  flex: 1;
  min-height: 0;
}
.candles {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.candles .grid {
  stroke: #1a1d1a;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  fill: none;
}
.candles .vol {
  fill: rgba(180, 184, 172, 0.12);
}
.candles .wick,
.candles .live-wick {
  stroke: rgba(214, 216, 206, 0.55);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.candles .up,
.candles .live-body {
  fill: var(--c-up-chart);
}
.candles .dn,
.candles .live-body.is-down {
  fill: var(--c-down-chart);
}
.candles .entry,
.candles .order,
.candles .last {
  fill: none;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.candles .entry {
  stroke: var(--c-up);
  stroke-dasharray: 6 4;
}
.candles .order {
  stroke: var(--c-action);
  stroke-dasharray: 2 4;
}
.candles .last {
  stroke: rgba(246, 245, 239, 0.35);
  stroke-dasharray: 1 3;
}
.axis,
.tag {
  position: absolute;
  left: calc(100% + 0.6em);
  transform: translateY(-50%);
}
.axis {
  font-size: 0.82em;
  color: var(--c-dim);
}
.tag {
  height: 1.6em;
  padding: 0 0.45em;
  font-size: 0.82em;
  font-weight: 500;
  line-height: 1.6em;
  color: var(--c-ink);
}
.tag-entry {
  background: var(--c-up);
}
.tag-order {
  background: var(--c-action);
}
.tag-last {
  z-index: 1;
  background: var(--c-text);
  transition: top 0.6s var(--ease);
}
.line-label {
  position: absolute;
  left: 0.8em;
  transform: translateY(-50%);
  display: flex;
  font-size: 0.82em;
}
.line-label b,
.line-label span {
  padding: 0.25em 0.55em;
}
.pos-line b {
  background: var(--c-up);
  color: var(--c-ink);
  font-weight: 600;
}
.pos-line span {
  background: var(--c-up-wash);
  color: var(--c-up);
}
.ord-line b {
  background: var(--c-action);
  color: var(--c-ink);
  font-weight: 600;
}
.ord-line span {
  background: var(--c-raised);
  color: var(--c-soft);
}
.x-axis {
  position: relative;
  height: 2em;
  font-size: 0.82em;
  color: var(--c-dim);
}
.x-axis span {
  position: absolute;
  top: 0.6em;
  transform: translateX(-50%);
}

/* Positions */
.positions {
  padding-bottom: 0.4em;
}
.pos-tabs {
  height: 2.8em;
  border-bottom: 1px solid var(--c-line);
}
.pos-tabs .on {
  color: var(--c-text);
}
.pos-tabs i {
  display: inline-block;
  margin-left: 0.4em;
  padding: 0 0.4em;
  font-style: normal;
  font-size: 0.85em;
  background: var(--c-raised);
}
.pos-table {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1fr 1fr 1.5fr 1fr 0.9fr 1.3fr;
  column-gap: 1em;
  row-gap: 0.7em;
  padding: 0.8em 1.1em 0.4em;
}
.pos-table > span {
  font-size: 0.85em;
  color: var(--c-dim);
}
.pos-table > b {
  font-weight: 400;
}
.pos-table .m {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 500;
}
.pos-table .m img {
  width: 1em;
  height: 1em;
}
.pos-table .m em {
  font-style: normal;
  font-size: 0.8em;
  padding: 0 0.35em;
  background: var(--c-up-wash);
}

/* Book and tape */
.book {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.6em;
}
.book-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4em;
  padding: 0.6em;
  text-align: center;
}
.book-tabs span {
  padding: 0.45em 0;
}
.book-tabs .on {
  background: var(--c-raised);
  color: var(--c-text);
}
.book-cols,
.book-side li,
.tape li {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 0 0.9em;
}
.book-cols {
  font-size: 0.82em;
  color: var(--c-dim);
  padding-block: 0.3em 0.5em;
}
.book-cols span + span,
.book-side span + span,
.tape span + span {
  text-align: right;
}
.book-side li,
.tape li {
  position: relative;
  height: 1.62em;
  align-items: center;
  font-size: 0.95em;
}
.book-side li::before {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  right: 0;
  width: var(--w);
  transition: width 0.7s var(--ease);
}
.book-side li::after,
.tape li::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(238, 239, 232, 0.1);
  opacity: 0;
  transition: opacity 0.9s;
}
.book-side li.flash::after,
.tape li.flash::after {
  opacity: 1;
  transition: none;
}
.book-side li > span,
.tape li > span {
  position: relative;
}
.asks li::before {
  background: rgba(255, 104, 88, 0.13);
}
.bids li::before {
  background: rgba(72, 222, 150, 0.11);
}
.asks li > span:first-child,
.tape .sell > span:first-child {
  color: var(--c-down);
}
.bids li > span:first-child,
.tape .buy > span:first-child {
  color: var(--c-up);
}
.book-mid {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0.3em 0;
  padding: 0.45em 0.9em;
  background: var(--c-surface);
  font-size: 0.85em;
  color: var(--c-dim);
}
.book-mid b {
  font-size: 1.45em;
  font-weight: 500;
  color: var(--c-text);
  transition: color 0.5s;
}
.ratio {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6em;
  padding: 0.7em 0.9em 0.6em;
  font-size: 0.82em;
}
.ratio span:first-child {
  color: var(--c-up);
}
.ratio span:last-child {
  color: var(--c-down);
}
.ratio i {
  height: 0.25em;
  background: linear-gradient(to right, var(--c-up) var(--b), var(--c-down) var(--b));
  opacity: 0.8;
}
.tape-head {
  margin-top: 0.3em;
  padding: 0.6em 0.9em 0.4em;
  border-top: 1px solid var(--c-line);
  font-size: 0.85em;
  color: var(--c-muted);
}
.tape {
  overflow: hidden;
}
.tape li > span:last-child {
  color: var(--c-dim);
}
.tape li.enter {
  animation: tape-in 0.5s var(--ease);
}
@keyframes tape-in {
  from {
    opacity: 0;
    transform: translateY(-0.6em);
  }
}

/* Ticket */
.ticket {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  padding: 0.9em 1em 1em;
}
.t-venue {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 500;
}
.t-venue > span:first-child {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-right: auto;
}
.t-venue img {
  width: 1.1em;
  height: 1.1em;
}
.chip {
  padding: 0.35em 0.8em;
  background: var(--c-surface);
  color: var(--c-soft);
  font-size: 0.92em;
}
.t-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4em;
  font-weight: 500;
  text-align: center;
}
.t-side span {
  padding: 0.75em 0;
  background: var(--c-surface);
  color: var(--c-muted);
}
.t-side .on {
  background: var(--c-up-wash);
  color: var(--c-up);
  box-shadow: inset 0 -2px 0 var(--c-up);
}
.t-tabs {
  display: flex;
  gap: 1.4em;
  padding-bottom: 0.55em;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-muted);
}
.t-tabs .on {
  position: relative;
  color: var(--c-text);
}
.t-tabs .on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-0.55em - 1px);
  height: 2px;
  background: var(--c-action);
}
.t-tabs .pro {
  margin-left: auto;
}
.t-row,
.t-lev,
.t-sub {
  display: flex;
  justify-content: space-between;
  font-size: 0.92em;
  color: var(--c-dim);
}
.t-row b,
.t-lev b {
  color: var(--c-text);
  font-weight: 500;
}
.t-row small {
  color: var(--c-dim);
  font-size: 0.85em;
}
.t-sub {
  justify-content: flex-end;
  margin-top: -0.4em;
}
.t-sub b {
  font-weight: 400;
  color: var(--c-soft);
}
.t-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  padding: 0.55em 0.8em 0.6em;
  background: var(--c-surface);
}
.t-field small {
  grid-column: 1 / -1;
  font: 400 0.75em/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-dim);
}
.t-field b {
  font-size: 1.3em;
  font-weight: 500;
}
.t-field span {
  color: var(--c-dim);
  font-size: 0.85em;
  padding-bottom: 0.2em;
}
.t-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4em;
}
.t-pair .t-field b {
  font-size: 1.05em;
}
.t-slider {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 1em;
}
.t-slider::before,
.t-slider b {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
}
.t-slider::before {
  right: 0;
  background: var(--c-line);
}
.t-slider b {
  width: var(--v);
  background: var(--c-action);
}
.t-slider b::after {
  content: "";
  position: absolute;
  right: -0.5em;
  top: -0.45em;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background: var(--c-text);
  box-shadow: 0 0 0 0.25em rgba(118, 222, 170, 0.3);
}
.t-slider i {
  position: relative;
  width: 0.45em;
  height: 0.45em;
  background: var(--c-line);
}
.t-scale {
  display: flex;
  justify-content: space-between;
  margin-top: -0.4em;
  font-size: 0.78em;
  color: var(--c-dim);
}
.t-check {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.92em;
  color: var(--c-soft);
}
.t-check i {
  width: 1.05em;
  height: 1.05em;
  background: var(--c-action)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23111312' stroke-width='2'/%3E%3C/svg%3E")
    center / 80% no-repeat;
}
.t-go {
  display: grid;
  place-items: center;
  height: 3.2em;
  margin-top: 0.2em;
  background: var(--c-action);
  color: var(--c-ink);
  font-weight: 600;
  transition:
    transform 0.18s var(--ease),
    background-color 0.18s;
}
.t-go.is-pressed {
  transform: scale(0.97);
  background: #96e8be;
}
.t-rows {
  display: grid;
  gap: 0.55em;
  padding-top: 0.75em;
  border-top: 1px solid var(--c-line);
  font-size: 0.92em;
}
.t-rows div {
  display: flex;
  justify-content: space-between;
}
.t-rows dt {
  color: var(--c-dim);
}
.app-status {
  display: flex;
  align-items: center;
  gap: 1.6em;
  height: 2.2em;
  padding: 0 1.2em;
  border-top: 1px solid var(--c-line);
  font-size: 0.85em;
  color: var(--c-dim);
}
.app-status i {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.5em;
  border-radius: 50%;
  background: var(--c-up);
}
.app-status .note {
  margin-left: auto;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(238, 239, 232, 0.5);
}

/* Stats under the hero: big figures, no rules. */
.stats {
  padding-top: clamp(80px, 9vw, 128px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 64px;
}
.stats:has(.stat-volume[data-volume-state="ready"]) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat-item > b,
.volume-value {
  display: block;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat-item p {
  margin-top: 16px;
  max-width: 20em;
  color: var(--muted);
}
.stat-volume {
  display: none;
}
.stat-volume[data-volume-state="ready"] {
  display: block;
}
.stat-volume p i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: var(--green);
  vertical-align: 1px;
}
.volume-value {
  font-size: clamp(36px, 3.6vw, 56px);
  padding-block: calc((clamp(44px, 5vw, 72px) - clamp(36px, 3.6vw, 56px)) / 2);
}
.volume-digits {
  display: inline-flex;
  white-space: nowrap;
  vertical-align: top;
}
.volume-digit {
  display: inline-block;
  width: 0.6em;
  height: 1.15em;
  overflow: hidden;
  text-align: center;
}
.volume-digit.is-punctuation {
  width: 0.26em;
}
.volume-digit-track {
  display: block;
}
.volume-digit-track > span {
  display: block;
  height: 1.15em;
  line-height: 1.15;
}

/* Section heads: two-line title left, a short intro right. */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2,
.community h2,
.closing h2 {
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.section-head p {
  color: var(--muted);
  max-width: 30em;
}
.section-head .access {
  margin-bottom: 12px;
}
.access .label {
  display: inline-flex;
  padding: 6px 8px;
  background: rgba(160, 246, 184, 0.45);
  color: var(--ink);
}

/* Venues: PopDEX on its own line, the rest on a slow ribbon. */
.venues-section {
  padding-top: clamp(96px, 11vw, 160px);
}
.venue-feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
}
.venue-feature img {
  width: 96px;
  height: 96px;
  flex: none;
}
.venue-feature .label {
  margin-bottom: 10px;
}
.venue-feature-name {
  font-size: clamp(36px, 3.6vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.venue-feature-line {
  margin-top: 8px;
  color: var(--muted);
}
.venue-feature .text-link {
  margin-left: auto;
}
.marquee {
  display: flex;
  overflow: hidden;
  margin-top: clamp(48px, 6vw, 80px);
  padding-block: 12px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  flex: none;
  gap: clamp(48px, 5vw, 80px);
  padding-right: clamp(48px, 5vw, 80px);
}
.marquee-track li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.marquee-track img {
  width: 40px;
  height: 40px;
  flex: none;
}

/* Features: three large moments, alternating sides, then a rail of cards. */
.features-section {
  padding-top: clamp(112px, 12vw, 176px);
}
.moment {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(48px, 7vw, 112px);
  align-items: center;
  margin-top: clamp(64px, 8vw, 120px);
}
.moment-flip .moment-copy {
  order: 2;
}
.moment-copy .label {
  margin-bottom: 24px;
}
.moment-copy h3 {
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.moment-copy > p:not(.label) {
  color: var(--muted);
  font-size: 18px;
  max-width: 26em;
  margin-bottom: 28px;
}
.ui-card {
  position: relative;
  background: var(--ui-bg);
  color: var(--ui-text);
  box-shadow:
    0 40px 80px -36px rgba(17, 20, 18, 0.55),
    0 18px 36px -24px rgba(17, 20, 18, 0.35);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.moment .ui-card {
  padding: 28px;
  min-height: 360px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  font-weight: 500;
}
.card-head em {
  font: 400 10.5px/1 var(--mono);
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(241, 239, 232, 0.4);
}
.long {
  color: var(--up);
}
.short {
  color: var(--down);
}

/* Positions across venues */
.pos-head,
.pos-row {
  display: grid;
  grid-template-columns: 20px 1.4fr 0.8fr 0.8fr 0.7fr 1fr;
  align-items: center;
  column-gap: 12px;
}
.pos-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ui-line);
  color: var(--ui-dim);
  font-size: 12px;
}
.pos-head span:first-child {
  grid-column: 1 / 3;
}
.pos-head span:last-child,
.pos-row strong,
.pos-row > span:nth-of-type(2) {
  text-align: right;
}
.pos-row {
  height: 64px;
  border-bottom: 1px solid var(--ui-line);
}
.pos-row:last-child {
  border-bottom: 0;
}
.pos-row img {
  width: 18px;
  height: 18px;
}
.pos-row > span:first-of-type {
  color: var(--ui-dim);
}
.pos-row b,
.pos-row strong {
  font-weight: 500;
}
.pos-row em {
  font-style: normal;
}

/* Multi-chart */
.multi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  min-height: 360px;
  aspect-ratio: 16 / 10;
}
.multi figure {
  position: relative;
  background: var(--ui-panel);
  padding: 34px 12px 12px;
}
.multi figure span {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11.5px;
  color: var(--ui-dim);
}
.multi svg {
  width: 100%;
  height: 100%;
}
.multi path {
  fill: none;
  stroke: var(--up);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.multi figure:nth-child(2n) path {
  stroke: var(--sage);
}
.multi figure:nth-child(5) path {
  stroke: var(--down);
}

/* Predictions */
.predict {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.predict-q {
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 16em;
  white-space: normal;
}
.predict-bar {
  margin-top: auto;
  height: 8px;
  background: rgba(229, 128, 111, 0.4);
}
.predict-bar b {
  display: block;
  width: var(--p);
  height: 100%;
  background: var(--up);
}
.predict-legend {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}
.predict-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.predict-buttons span {
  height: 46px;
  display: grid;
  place-items: center;
  font-weight: 500;
}
.predict-buttons .yes {
  background: rgba(127, 220, 156, 0.16);
  color: var(--up);
}
.predict-buttons .no {
  background: rgba(229, 128, 111, 0.14);
  color: var(--down);
}

/* Rail: three cards with depth; scrolls sideways on narrow screens. */
.rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: clamp(96px, 11vw, 160px);
}
.rail-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 14px 28px;
  background: #f8f7f2;
  box-shadow:
    0 1px 2px rgba(17, 20, 18, 0.05),
    0 24px 48px -28px rgba(17, 20, 18, 0.3);
}
.rail-card .ui-card {
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 20px;
  margin-bottom: 26px;
  box-shadow: none;
}
.rail-card .label,
.rail-card h3,
.rail-card > p,
.rail-card .text-link {
  margin-inline: 14px;
}
.rail-card .label {
  margin-bottom: 14px;
}
.rail-card h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.rail-card > p:not(.label) {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 24px;
}
.rail-card .text-link {
  margin-top: auto;
}

/* Bots */
.bots {
  display: flex;
  flex-direction: column;
}
.bot-row {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--ui-line);
}
.bot-row:last-child {
  border-bottom: 0;
}
.bot-row img {
  width: 18px;
  height: 18px;
}
.bot-row small {
  margin-left: auto;
  font-size: 12px;
  color: var(--ui-dim);
}
.bot-row b {
  position: relative;
  width: 30px;
  height: 16px;
  background: var(--ui-line);
}
.bot-row b::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  background: var(--ui-dim);
}
.bot-row b.on {
  background: rgba(127, 220, 156, 0.3);
}
.bot-row b.on::after {
  left: 17px;
  background: var(--up);
}

/* 05 journal */
.journal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: center;
}
.journal span {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 14px;
  background: var(--ui-panel);
  font-size: 13px;
}
.journal span::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 10px;
  background: var(--sage);
  flex: none;
}

/* 06 custody */
.custody {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  padding: 20px 24px;
}
.node {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: var(--ui-panel);
  font-size: 13px;
  font-weight: 500;
}
.node small {
  color: var(--ui-dim);
  font-size: 11px;
  font-weight: 400;
  margin-left: 4px;
}
.node-venue {
  background: rgba(127, 220, 156, 0.14);
}
.node-taba img {
  width: 18px;
  height: auto;
}
.link {
  width: 1px;
  height: 22px;
  background: var(--ui-dim);
}
.link-key {
  background: none;
  border-left: 1px dashed var(--mint);
}
.perms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 11px;
}
.perms span {
  padding: 5px 8px;
  background: var(--ui-panel);
}
.perms .ok {
  color: var(--up);
}
.perms .no {
  color: var(--down);
  text-decoration: line-through;
}

/* Data: five cards with depth, sideways scroll where they do not fit. */
.data-section {
  padding-top: clamp(112px, 12vw, 176px);
}
.access .label {
  display: inline-flex;
  padding: 6px 8px;
  background: rgba(160, 246, 184, 0.45);
  color: var(--ink);
}
.section-head .access {
  margin-bottom: 12px;
}
.data-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
.data-rail a {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 24px 26px;
  background: #f8f7f2;
  box-shadow:
    0 1px 2px rgba(17, 20, 18, 0.05),
    0 20px 40px -28px rgba(17, 20, 18, 0.3);
  transition:
    box-shadow 0.4s var(--ease),
    translate 0.4s var(--ease);
}
.data-rail a:hover {
  translate: 0 -4px;
  box-shadow:
    0 1px 2px rgba(17, 20, 18, 0.05),
    0 30px 50px -26px rgba(17, 20, 18, 0.38);
}
.data-rail a .icon {
  position: absolute;
  top: 24px;
  right: 20px;
  transition: transform 0.2s var(--ease);
}
.data-rail a:hover .icon {
  transform: translate(2px, -2px);
}
.glyph {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin: 28px 0 36px;
  overflow: visible;
}
.glyph .base {
  stroke: var(--line);
  stroke-width: 1;
  fill: none;
}
.glyph .pos {
  fill: var(--green);
}
.glyph .neg {
  fill: var(--sage);
}
.glyph .line-a,
.glyph .line-b {
  fill: none;
  stroke-width: 2;
}
.glyph .line-a {
  stroke: var(--green);
}
.glyph .line-b {
  stroke: var(--sage);
  stroke-dasharray: 3 3;
}
.heat .h3 {
  fill: var(--green);
}
.heat .h2 {
  fill: #6f9a7b;
}
.heat .h1 {
  fill: var(--sage);
}
.heat .n1 {
  fill: #e3b4a8;
}
.heat .n2 {
  fill: #cf8a79;
}
.data-name {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.data-line {
  color: var(--muted);
  font-size: 15px;
}

/* Community */
.community-section {
  padding-top: clamp(96px, 11vw, 160px);
}
.community {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px 64px;
  align-items: end;
  padding: clamp(32px, 4vw, 56px);
  background: var(--paper-2);
}
.community .label {
  grid-column: 1 / -1;
}
.soon {
  padding: 5px 8px;
  background: var(--ink);
  color: var(--paper);
}
.community p:last-child {
  color: var(--muted);
  max-width: 30em;
}

/* Closing band */
.closing {
  margin-top: clamp(96px, 11vw, 160px);
  background: var(--dark);
  color: var(--paper);
}
.closing-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-block: clamp(64px, 8vw, 112px);
}
.closing .soft {
  color: rgba(241, 239, 232, 0.6);
}

/* Footer */
.site-footer {
  padding-top: clamp(56px, 6vw, 80px);
  padding-bottom: 32px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-tag {
  font-size: 20px;
  font-weight: 500;
}
.footer-links {
  display: flex;
  gap: 64px;
}
.footer-links div {
  display: grid;
  gap: 10px;
  align-content: start;
}
.footer-links a {
  color: var(--muted);
}
.footer-links a:hover,
.footer-bottom a:hover {
  color: var(--ink);
}
.footer-logo {
  display: block;
  margin: clamp(56px, 8vw, 112px) 0 32px;
}
.footer-logo img {
  width: min(580px, 70%);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer-bottom p {
  max-width: 44em;
}
.footer-bottom p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal {
  display: flex;
  gap: 20px;
}

/* Motion. Transforms and opacity only. Without JavaScript everything is
   shown; landing.js adds .motion to <html> (never under reduced motion)
   and .is-in to each part as it enters the viewport. */
.lines .ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.lines .ln > span {
  display: block;
}
.link-key {
  width: 1px;
}
@media (prefers-reduced-motion: no-preference) {
  /* Arrival: headline line by line, then the copy, the screen and its cards. */
  h1.lines .ln > span {
    animation: line-in 1.1s var(--ease) backwards;
  }
  h1.lines .ln:nth-child(2) > span {
    animation-delay: 0.12s;
  }
  .hero-intro {
    animation: fade-up 0.9s 0.3s var(--ease) backwards;
  }
  .hero-ui {
    animation: ui-in 1.3s 0.4s var(--ease) backwards;
  }
  .float {
    animation: float-in 0.9s calc(1.1s + var(--d, 1) * 0.15s) var(--ease) backwards;
  }
  .hero-ui .series,
  .hero-ui .vol {
    animation: draw-x 1.8s 0.8s var(--ease) backwards;
  }
  .hero-ui :is(.entry, .order, .line-label, .tag-entry, .tag-order) {
    animation: fade-in 0.6s 2.1s backwards;
  }
  .hero-ui .book-side li {
    animation: fade-in 0.5s calc(0.9s + var(--r, 0) * 35ms) backwards;
  }
  /* The screen builds itself once, panel by panel, then holds still. */
  .hero-ui :is(.app-top, .mkt, .chart, .positions, .book, .ticket, .app-status) {
    animation: panel-in 0.8s calc(0.55s + var(--p, 0) * 0.11s) var(--ease) backwards;
  }
  .hero-ui .app-top { --p: 0; }
  .hero-ui .mkt { --p: 1; }
  .hero-ui .chart { --p: 2; }
  .hero-ui .book { --p: 3; }
  .hero-ui .ticket { --p: 4; }
  .hero-ui .positions { --p: 5; }
  .hero-ui .app-status { --p: 6; }
  .hero-ui .tape li {
    animation: fade-in 0.45s calc(1.5s + var(--r, 0) * 60ms) backwards;
  }
  .hero-ui .pos-table > b {
    animation: fade-in 0.5s 1.9s backwards;
  }
  .hero-ui .t-go {
    animation: go-press 0.5s 2.5s var(--ease) backwards;
  }
  .hero-ui :is(.tag-last, .last, .live-body, .live-wick) {
    animation: fade-in 0.4s 2.4s backwards;
  }
  @keyframes panel-in {
    from {
      opacity: 0;
      translate: 0 14px;
    }
  }
  @keyframes go-press {
    50% {
      scale: 0.97;
      background: #96e8be;
    }
  }
  @keyframes line-in {
    from {
      transform: translateY(105%);
    }
  }
  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
  }
  @keyframes fade-in {
    from {
      opacity: 0;
    }
  }
  @keyframes ui-in {
    from {
      opacity: 0;
      translate: 0 64px;
    }
  }
  @keyframes float-in {
    from {
      opacity: 0;
      scale: 0.94;
    }
  }
  @keyframes draw-x {
    from {
      clip-path: inset(0 100% 0 0);
    }
    to {
      clip-path: inset(0 0 0 0);
    }
  }
  .f-fill.is-new {
    animation: pop 0.6s var(--ease);
  }
  @keyframes pop {
    from {
      opacity: 0.3;
      scale: 0.96;
    }
  }

  /* Scroll: the screen starts tipped back and settles flat as it rises;
     the closing band opens out. The cards hold still once they arrive. */
  @supports (animation-timeline: view()) {
    .hero-ui {
      transform-origin: 50% 0;
      animation:
        ui-in 1.3s 0.4s var(--ease) backwards,
        settle linear both;
      animation-timeline: auto, view();
      animation-range: normal, entry 0% cover 45%;
    }
    /* The band's ground opens out; its words are never clipped. */
    .closing {
      view-timeline: --closing;
      background: none;
      isolation: isolate;
      position: relative;
    }
    .closing::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background: var(--dark);
      animation: open-out linear both;
      animation-timeline: --closing;
      animation-range: entry 0% entry 90%;
    }
    @keyframes settle {
      from {
        transform: rotateX(16deg) scale(0.92);
      }
      to {
        transform: none;
      }
    }
    @keyframes open-out {
      from {
        clip-path: inset(0 5% 0 5%);
      }
      to {
        clip-path: inset(0 0 0 0);
      }
    }
  }
  /* The same settle, driven from landing.js where scroll timelines are missing. */
  .no-sda .hero-ui {
    transform-origin: 50% 0;
    transform: rotateX(calc((1 - var(--settle, 1)) * 16deg)) scale(calc(0.92 + var(--settle, 1) * 0.08));
  }

  /* Venues ribbon: slow, seamless, paused under the pointer. */
  .marquee-track {
    animation: ribbon 46s linear infinite;
  }
  .marquee:hover .marquee-track {
    animation-play-state: paused;
  }
  @keyframes ribbon {
    to {
      transform: translateX(-100%);
    }
  }

  /* Reveals as parts enter, staggered by --i. */
  .motion .reveal {
    transition:
      opacity 0.9s var(--ease),
      translate 1s var(--ease);
    transition-delay: calc(var(--i, 0) * 100ms);
  }
  .motion .reveal:not(.is-in) {
    opacity: 0;
    translate: 0 36px;
  }
  .motion :is(.section-head, .community, .closing-row) .lines .ln > span {
    transition: transform 1s var(--ease);
  }
  .motion .lines .ln:nth-child(2) > span {
    transition-delay: 0.1s;
  }
  .motion :is(.section-head, .community, .closing-row):not(.is-in) .lines .ln > span {
    transform: translateY(105%);
  }
  .motion .section-head > :not(h2),
  .motion .closing .actions {
    transition:
      opacity 0.8s 0.2s,
      translate 0.9s 0.2s var(--ease);
  }
  .motion .section-head:not(.is-in) > :not(h2),
  .motion .closing-row:not(.is-in) .actions {
    opacity: 0;
    translate: 0 16px;
  }
  /* Moments: the visual slides in from its own side. */
  .motion .moment .ui-card {
    transition:
      opacity 1s 0.1s var(--ease),
      translate 1.2s 0.1s var(--ease);
  }
  .motion .moment:not(.is-in) .ui-card {
    opacity: 0;
    translate: 48px 0;
  }
  .motion .moment-flip:not(.is-in) .ui-card {
    translate: -48px 0;
  }

  /* Card illustrations play once when their card arrives. */
  .motion :is(.pos-row, .bot-row, .journal span, .perms span, .predict-q, .predict-legend, .predict-buttons) {
    transition:
      opacity 0.6s,
      translate 0.7s var(--ease);
    transition-delay: calc(0.35s + var(--r, 0) * 80ms);
  }
  .motion :not(.is-in) > .ui-card :is(.pos-row, .bot-row, .journal span, .perms span, .predict-q, .predict-legend, .predict-buttons),
  .motion :not(.is-in) > .ui-card:is(.journal) span {
    opacity: 0;
    translate: -10px 0;
  }
  .motion .multi svg,
  .motion .glyph.draw {
    clip-path: inset(0 0 0 0);
    transition: clip-path 1.4s var(--ease);
    transition-delay: calc(0.3s + var(--r, 0) * 110ms);
  }
  .motion .moment:not(.is-in) .multi svg,
  .motion .data-rail:not(.is-in) .glyph.draw {
    clip-path: inset(0 100% 0 0);
  }
  .motion .predict-bar b {
    transform-origin: left;
    transition: transform 1.2s 0.5s var(--ease);
  }
  .motion .moment:not(.is-in) .predict-bar b {
    transform: scaleX(0);
  }
  .motion .bot-row b,
  .motion .bot-row b::after {
    transition:
      background-color 0.5s calc(0.7s + var(--r, 0) * 120ms),
      left 0.5s calc(0.7s + var(--r, 0) * 120ms) var(--ease);
  }
  .motion .rail-card:not(.is-in) .bot-row b.on {
    background: var(--ui-line);
  }
  .motion .rail-card:not(.is-in) .bot-row b.on::after {
    left: 3px;
    background: var(--ui-dim);
  }
  .motion .custody :is(.node, .link) {
    transition:
      opacity 0.6s,
      transform 0.7s var(--ease);
    transition-delay: calc(0.3s + var(--r, 0) * 120ms);
  }
  .motion .rail-card:not(.is-in) .custody .node {
    opacity: 0;
    transform: translateY(8px);
  }
  .motion .rail-card:not(.is-in) .custody .link {
    transform: scaleY(0);
  }
  .link {
    transform-origin: top;
  }
  .link-key {
    background: linear-gradient(var(--mint) 50%, transparent 50%) 0 0 / 1px 6px;
    border: 0;
    animation: key-flow 1.2s linear infinite;
  }
  @keyframes key-flow {
    to {
      background-position: 0 6px;
    }
  }
  .motion .glyph :is(path.pos, path.neg, circle, rect) {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    transition:
      transform 0.9s var(--ease),
      opacity 0.6s;
    transition-delay: calc(0.2s + var(--r, 0) * 70ms);
  }
  .motion .glyph circle {
    transform-origin: 50% 50%;
  }
  .motion .data-rail:not(.is-in) .glyph:not(.draw) path:is(.pos, .neg) {
    transform: scaleY(0);
  }
  .motion .data-rail:not(.is-in) .glyph circle {
    transform: scale(0);
  }
  .motion .data-rail:not(.is-in) .glyph rect {
    opacity: 0;
    transform: scale(0.85);
  }
  .motion .data-rail li {
    transition:
      opacity 0.8s,
      translate 0.9s var(--ease);
    transition-delay: calc(var(--r, 0) * 80ms);
  }
  .motion .data-rail:not(.is-in) li {
    opacity: 0;
    translate: 0 24px;
  }

  /* Hover: cards lift a little toward the pointer. */
  .rail-card {
    transition:
      translate 0.5s var(--ease),
      box-shadow 0.5s var(--ease);
  }
  .rail-card:hover {
    translate: 0 -6px;
    box-shadow:
      0 1px 2px rgba(17, 20, 18, 0.05),
      0 34px 60px -30px rgba(17, 20, 18, 0.38);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee-track:first-child {
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 24px 48px;
    padding-right: 0;
  }
  .marquee-track[aria-hidden="true"] {
    display: none;
  }
}

/* Laptop and tablet */
@media (max-width: 1180px) {
  /* The screen scales down; one card fewer keeps it readable. */
  .f-bot {
    display: none;
  }
  .f-fund {
    right: -16px;
    width: 210px;
  }
  .data-rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 40px;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .data-rail::-webkit-scrollbar {
    display: none;
  }
  .data-rail li {
    flex: 0 0 240px;
    scroll-snap-align: start;
  }
}
@media (max-width: 960px) {
  .hero-top,
  .section-head,
  .community,
  .moment {
    grid-template-columns: minmax(0, 1fr);
  }
  .moment-flip .moment-copy {
    order: 0;
  }
  .rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 48px;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .rail::-webkit-scrollbar {
    display: none;
  }
  .rail-card {
    flex: 0 0 min(340px, 82vw);
    scroll-snap-align: start;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats:has(.stat-volume[data-volume-state="ready"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The screen folds to chart and ticket, with its own type scale. */
@media (max-width: 820px) {
  .app {
    font-size: clamp(9.5px, 3.1cqw, 13px);
  }
  .app-nav,
  .app-right .app-btn:not(.venue),
  .mkt .wide,
  .chart-tabs,
  .draw-tools,
  .positions,
  .book,
  .t-venue,
  .t-row,
  .t-check,
  .t-rows,
  .app-status > span:not(.note) {
    display: none;
  }
  .app-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .coin svg {
    margin-right: -1em;
  }
  .mkt {
    gap: 1.6em;
    height: 3.4em;
    padding: 0 0.9em;
  }
  .app-left {
    grid-template-rows: auto auto;
  }
  .chart {
    height: 22em;
  }
  .chart-tools {
    gap: 1.1em;
  }
  .chart-tools i,
  .chart-tools span:last-child {
    display: none;
  }
  .plot {
    padding: 0.5em 5em 0 0.6em;
  }
  .legend span {
    display: none;
  }
  .line-label span {
    display: none;
  }
  .t-pair {
    order: 1;
  }
  .t-go {
    order: 2;
  }
  .f-bot,
  .f-fund {
    display: none;
  }
  .f-fill {
    bottom: -30px;
    left: 12px;
    padding: 10px 14px 10px 10px;
    font-size: 12px;
  }
  .hero {
    margin-bottom: 140px;
  }
  .hero-stage {
    margin-bottom: -140px;
  }
}

/* Phones */
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  html {
    scroll-padding-top: 64px;
  }
  .header-row {
    height: 60px;
    gap: 16px;
  }
  .brand,
  .brand > img:first-child {
    width: 88px;
  }
  .site-nav {
    gap: 18px;
    font-size: 14px;
  }
  .site-nav .nav-venues,
  .site-nav .nav-docs {
    display: none;
  }
  .site-header.is-scrolled .site-nav {
    padding: 0 14px;
    gap: 18px;
  }
  /* The app button stays in the header on every phone (320px and up). */
  .header-cta {
    min-height: 36px;
    padding: 0 12px;
  }
  .site-header.is-scrolled .header-cta {
    margin-left: -16px;
  }
  .hero {
    padding-top: 48px;
  }
  /* Phones read the figures as a list: number, then what it means. */
  .stats,
  .stats:has(.stat-volume[data-volume-state="ready"]) {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 104px;
  }
  .stat-item {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
  }
  .stat-item > b {
    font-size: 40px;
  }
  .stat-item p {
    margin: 0;
    font-size: 15px;
  }
  .stat-volume[data-volume-state="ready"] {
    display: block;
  }
  .stat-volume .volume-value {
    font-size: 36px;
    padding: 0;
  }
  .stat-volume p {
    margin-top: 8px;
  }
  .t-tabs,
  .t-sub,
  .t-scale,
  .t-pair {
    display: none;
  }
  .venues-section,
  .features-section,
  .data-section,
  .community-section {
    padding-top: 88px;
  }
  .closing {
    margin-top: 88px;
  }
  .venue-feature img {
    width: 72px;
    height: 72px;
  }
  .venue-feature .text-link {
    margin-left: 0;
  }
  .marquee-track img {
    width: 32px;
    height: 32px;
  }
  .moment {
    margin-top: 72px;
    gap: 32px;
  }
  .moment .ui-card {
    padding: 18px;
    min-height: 0;
  }
  .multi {
    min-height: 0;
  }
  .pos-head,
  .pos-row {
    grid-template-columns: 18px 1.2fr 0.8fr 0.8fr 1fr;
    column-gap: 8px;
    font-size: 13px;
  }
  .pos-head span:nth-child(4),
  .pos-row > span:nth-of-type(2) {
    display: none;
  }
  .pos-row {
    height: 52px;
  }
  .actions .button {
    flex: 1 1 auto;
  }
  .footer-links {
    gap: 40px;
  }
}
/* The narrowest phones keep Data and the app button; Terminal is one scroll away. */
@media (max-width: 360px) {
  .site-nav a[href="#terminal"] {
    display: none;
  }
}
@media (max-width: 380px) {
  .header-row {
    gap: 12px;
  }
  .brand,
  .brand > img:first-child {
    width: 80px;
  }
  .header-cta .icon {
    display: none;
  }
  .site-header.is-scrolled .header-cta {
    margin-left: -12px;
  }
  .stat-item {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .stat-item > b {
    font-size: 34px;
  }
}

/* Rounded, after the app's Black theme (Aram, 2026-10-16: "our rounded theme
   is the best theme we have"). Its scale: 8px for small parts, 10px for
   controls, 14px for panels, and larger for the screen and big cards.
   Full-bleed bands stay square at the page edge. */
:root {
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
}
.button,
.header-cta,
.site-nav,
.brand,
.skip-link {
  border-radius: var(--r);
}
.site-header.is-scrolled .site-nav,
.site-header.is-scrolled .header-cta,
.site-header.is-scrolled .brand {
  border-radius: 12px;
}
.float,
.community,
.rail-card,
.venue-feature,
.data-rail,
.ui-card,
.moment > figure,
.multi figure {
  border-radius: var(--r-lg);
}
.app {
  border-radius: var(--r-xl);
}
/* Inside the illustrated screen: the app's own Black-theme corners. */
.app .panel {
  border-radius: var(--r);
}
.app :is(.app-btn, .chip, .t-field, .t-go, .t-side span, .t-tabs .pro),
.node,
.perms span,
.predict-buttons span,
.bot-row,
.glyph,
.marquee-track li,
.soon,
.f-fill > i {
  border-radius: var(--r-sm);
}
.app :is(.tag, .line-label b, .line-label span) {
  border-radius: 4px;
}
/* Venue logos as rounded squares, as in the app's venue rows. */
.app-btn img,
.f-head img,
.marquee-track li img,
.venue-feature > img,
.app .mkt-name small img,
.t-venue img,
.app .m img {
  border-radius: 26%;
}
