/* Base / reset — depends on tokens.css */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: var(--fs-15);
  line-height: var(--lh-body);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, canvas, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: var(--lh-tight); letter-spacing: -0.03em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: rgba(255,255,255,.18); color: var(--text-1); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: var(--r-sm); }
[hidden] { display: none !important; }
hr { border: 0; border-top: 1px solid var(--line-1); }
table { border-collapse: collapse; width: 100%; }
code, kbd, .mono { font-family: var(--font-mono); font-size: 0.92em; }
.num, .tabular { font-variant-numeric: tabular-nums; font-feature-settings: "tnum", "cv11"; }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--bg-5) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--bg-5); border-radius: 10px; border: 2px solid var(--bg-1); }

/* ---------- Liquid signature pieces ---------- */
/* The one italic serif word in a heading: "Stop being <em>the liquidity</em>" */
.serif, h1 em, h2 em, .hero-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
/* Big silver numbers / words */
.silver { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Small spaced capitals (nav, kickers) */
.caps { font-family: var(--font-mono); font-size: var(--fs-11); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
/* Glass panel */
.glass { background: var(--glass-bg); border: 1px solid var(--glass-line); backdrop-filter: blur(var(--glass-blur)) saturate(120%); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%); box-shadow: var(--shadow-1); }
.glass-strong { background: var(--glass-bg-strong); border: 1px solid var(--glass-line); backdrop-filter: blur(var(--glass-blur)) saturate(120%); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%); }
/* Fluid background host (canvas drawn by fluid.js) */
.fluid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fluid-fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 60%, var(--bg-0) 100%); }

/* Utilities */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: -60px; z-index: 200; background: var(--accent); color: var(--text-inverse); padding: var(--s-2) var(--s-4); border-radius: var(--r-full); }
.skip-link:focus { top: var(--s-4); }
.container { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--s-4); }
@media (min-width: 720px) { .container { padding-inline: var(--s-6); } }
.stack > * + * { margin-top: var(--s-4); }
.row { display: flex; align-items: center; gap: var(--s-3); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }
.gain { color: var(--gain); }
.loss { color: var(--loss); }
.flat { color: var(--text-2); }
.accent { color: var(--accent-text); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-12 { font-size: var(--fs-12); } .fs-13 { font-size: var(--fs-13); } .fs-14 { font-size: var(--fs-14); }
.mt-2 { margin-top: var(--s-2); } .mt-4 { margin-top: var(--s-4); } .mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); }
.gap-2 { gap: var(--s-2); } .gap-4 { gap: var(--s-4); }
