*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-md)/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--accent-soft); color: var(--ink); }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 650; letter-spacing: -0.04em; line-height: 1.02; overflow-wrap: break-word; }
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); letter-spacing: -0.025em; line-height: 1.2; }
h4 { font-size: var(--t-md); letter-spacing: -0.01em; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }
code, kbd, pre, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section.tight { padding: clamp(40px, 5vw, 72px) 0; }
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 24px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 24px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.up, .up-acid { color: var(--up); }
.down { color: var(--down); }
.hl, .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font: 500 var(--t-sm)/1 var(--body); color: var(--accent-ink); display: inline-flex; gap: 8px; align-items: center; letter-spacing: 0; }
.lede { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 58ch; }
.grid-bg { position: relative; }
.tight { line-height: 1.2; }

/* the night sky: a fixed aurora behind every page */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora::before, .aurora::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.aurora::before { width: 60vw; height: 60vw; top: -28vw; right: -12vw; background: radial-gradient(circle, rgba(0, 232, 143, 0.38), transparent 62%); animation: drift 22s ease-in-out infinite alternate; }
.aurora::after { width: 46vw; height: 46vw; top: 18vh; right: -18vw; background: radial-gradient(circle, rgba(198, 255, 61, 0.22), transparent 62%); animation: drift 28s ease-in-out infinite alternate-reverse; }
:root[data-theme="light"] .aurora::before, :root[data-theme="light"] .aurora::after { opacity: 0.35; }
/* on white, gradient text turns into black type with a lime marker behind it */
:root[data-theme="light"] .grad-text, :root[data-theme="light"] .hl { background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%); -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); }
:root[data-theme="light"] .trade-out .big.grad-text, :root[data-theme="light"] .vis-num.grad-text, :root[data-theme="light"] .hero-stats .v.grad-text { display: inline-block; }
:root[data-theme="light"] .apr-hl { background: none; color: var(--up); -webkit-background-clip: border-box; background-clip: border-box; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6vw, 4vh) scale(1.12); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
