/* ─────────────────────────────────────────────────────────────
   Fomo ETF

   Palette is sampled from the brand mark, not guessed: the briefcase reads
   #0c0a20 and the glyph #f3f3ff, and every surface here is built from those
   two with a periwinkle drawn from the banner's glow.

   Type: Satoshi, set family-wide. The reference face is Uxum Grotesque, a
   licensed retail typeface not shipped here. Satoshi was picked by
   measurement: rasterising the same string in both and comparing shape overlap
   scored it 66.4% against 47.7% for the next closest of twenty-one candidates,
   at a width ratio of 0.991. Free for commercial use from Fontshare.

   To move to licensed Uxum files: drop them in site/fonts, uncomment below,
   and put "Uxum Grotesque" at the front of --font. No other rule names a family.
   ───────────────────────────────────────────────────────────── */

/*
@font-face { font-family: "Uxum Grotesque"; src: url("fonts/uxum-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Uxum Grotesque"; src: url("fonts/uxum-medium.woff2")  format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Uxum Grotesque"; src: url("fonts/uxum-bold.woff2")    format("woff2"); font-weight: 700; font-display: swap; }
*/

:root {
  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --bg: #07061a;
  --navy: #0c0a20;
  --panel: #100e29;
  --panel-2: #171436;
  --line: rgba(243, 243, 255, 0.10);
  --line-soft: rgba(243, 243, 255, 0.055);

  --ink: #f3f3ff;
  --ink-2: rgba(243, 243, 255, 0.62);
  --dim: rgba(243, 243, 255, 0.40);

  --accent: #9d9dff;
  --accent-2: #6f6ff0;
  --accent-soft: rgba(157, 157, 255, 0.14);
  --red: #ff8b83;

  --light: #f1f1f8;
  --light-ink: #0c0a20;
  --light-ink-2: #56556b;

  --pad: clamp(20px, 5vw, 56px);
  --max: 1240px;
  --r: 20px;
  --r-lg: 30px;
  --ease: cubic-bezier(.22, .8, .26, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; font-weight: 400;
  line-height: 1.5; letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

img { max-width: 100%; height: auto; display: block; }
/* Form controls do not inherit the page font on their own, and a stray system
   face in a button is the fastest way to make a considered page look sloppy. */
button, input, select, textarea { font-family: inherit; font-size: inherit; letter-spacing: inherit; }

/* ── the moving background ──────────────────────────────────
   A simplex-noise gradient on a WebGL canvas, fixed behind the page. Held at
   low opacity and masked toward the edges: it is depth, not decoration, and
   nothing on top of it should have to fight it to stay readable. If WebGL is
   unavailable the layer removes itself and the flat --bg shows through. */
.velaris {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .85;
  /* The shader already vignettes hard, so this mask only softens the very
     bottom rather than darkening the edges a second time. */
  mask-image: linear-gradient(#000 0%, #000 62%, transparent 100%);
  -webkit-mask-image: linear-gradient(#000 0%, #000 62%, transparent 100%);
}
.velaris-canvas { display: block; width: 100%; height: 100%; }
.velaris-fallback { display: none; }

.nav, main, footer { position: relative; z-index: 1; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.kicker { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 16px; color: var(--accent); }

/* ── nav ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 14px; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  width: calc(100% - var(--pad) * 2); max-width: 1180px; margin: 14px auto 0;
  padding: 10px 10px 10px 20px; border-radius: 999px;
  background: rgba(16, 14, 41, 0.66); backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--line-soft);
  transition: background .34s var(--ease), border-color .34s var(--ease), box-shadow .34s var(--ease);
}
.nav.stuck {
  background: rgba(12, 10, 32, 0.86);
  border-color: var(--line);
  box-shadow: 0 14px 40px -22px rgba(0, 0, 0, .9);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.mark {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: 9px; background: var(--ink); overflow: hidden;
  transition: transform .3s var(--ease);
}
.mark img { width: 34px; height: 34px; }
.brand:hover .mark { transform: rotate(-4deg) scale(1.04); }
.wordmark { font-weight: 700; font-size: 17.5px; letter-spacing: -0.028em; }

.navlinks { display: flex; gap: 32px; margin: 0 auto; }
.navlinks a {
  position: relative; color: var(--ink-2); text-decoration: none;
  font-size: 15px; font-weight: 500; padding: 4px 0; transition: color .22s ease;
}
.navlinks a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .32s var(--ease);
}
.navlinks a:hover { color: var(--ink); }
.navlinks a:hover::after { transform: scaleX(1); }
@media (max-width: 980px) { .navlinks { display: none; } .nav { justify-content: space-between; } }

.navright { display: flex; align-items: center; gap: 8px; }
.iconbtn {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: 999px; color: var(--ink-2); text-decoration: none;
  border: 1px solid var(--line-soft); background: rgba(243,243,255,.03);
  transition: color .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.iconbtn:hover { color: var(--ink); background: rgba(243,243,255,.09); border-color: var(--line); transform: translateY(-1px); }

/* ── buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(243,243,255,.04); color: var(--ink);
  text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background .24s var(--ease), border-color .24s var(--ease),
              transform .24s var(--ease), box-shadow .24s var(--ease);
}
.btn:hover { background: rgba(243,243,255,.09); border-color: rgba(243,243,255,.22); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: var(--ink); color: var(--navy); border-color: transparent;
  font-weight: 700; padding: 15px 28px; font-size: 15.5px;
}
.btn.primary:hover { background: #fff; box-shadow: 0 10px 30px -10px rgba(157,157,255,.55); transform: translateY(-2px); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); padding: 15px 8px; }
.btn.ghost:hover { color: var(--ink); background: transparent; border-color: transparent; transform: none; }

/* ── hero ───────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(30px, 5vw, 68px); align-items: center;
  padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 8vw, 112px);
}
@media (max-width: 1040px) { .hero { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 6px 14px 6px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 700; letter-spacing: -0.005em;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

h1 { margin: 0 0 26px; font-size: clamp(37px, 5.6vw, 70px); line-height: 1.06; letter-spacing: -0.043em; font-weight: 500; }
h1 span { display: block; }
h1 .b { font-weight: 700; }
.lede { max-width: 50ch; margin: 0 0 36px; color: var(--ink-2); font-size: clamp(16px, 1.75vw, 19.5px); line-height: 1.58; }
.lede strong { color: var(--ink); font-weight: 700; }
.cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ── the screen ─────────────────────────────────────────── */
.device { position: relative; }
.device::before {
  content: ""; position: absolute; inset: -18% -10%;
  background: radial-gradient(52% 46% at 50% 44%, rgba(111,111,240,.34), transparent 72%);
  filter: blur(46px); pointer-events: none;
}
.screen {
  position: relative; border-radius: var(--r-lg);
  background: linear-gradient(168deg, var(--panel-2), var(--navy) 62%);
  box-shadow: 0 0 0 1px var(--line), 0 34px 70px -30px rgba(0,0,0,.9),
              inset 0 1px 0 rgba(243,243,255,.08);
  padding: 28px 26px 24px;
}
.scr-k { display: block; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.scr-lead strong {
  display: block; margin-top: 8px;
  font-size: clamp(36px, 4.6vw, 50px); font-weight: 700; letter-spacing: -0.042em;
  line-height: 1; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 34px rgba(157,157,255,.4);
}
.scr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; margin: 26px 0 24px; }
.scr-grid .c .k { display: block; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.scr-grid .c .v { display: block; margin-top: 5px; font-size: 21px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.scr-strip { border-top: 1px solid var(--line-soft); padding-top: 18px; }
.scr-strip .scr-k { margin-bottom: 11px; }

.stack { display: flex; height: 30px; border-radius: 9px; overflow: hidden; gap: 2px; }
.seg { min-width: 2px; background: var(--seg); display: grid; place-items: center; overflow: hidden; transform-origin: left; animation: grow .9s var(--ease) both; }
.seg span { font-size: 10px; font-weight: 700; color: var(--navy); opacity: .8; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.stack-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; }
.key-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.key-item i { width: 7px; height: 7px; border-radius: 2px; background: var(--seg); flex: none; }
.key-item b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

.device-tag { display: flex; align-items: center; gap: 12px; margin-top: 18px; justify-content: center; flex-wrap: wrap; }
.chip { padding: 6px 13px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 700; }
.by { color: var(--dim); font-size: 12.5px; font-weight: 500; }

/* ── the vault page ─────────────────────────────────────── */
.vaulthead { padding: clamp(46px, 7vw, 92px) 0 clamp(28px, 4vw, 48px); max-width: 760px; }
.vaulttitle {
  margin: 0 0 22px; font-size: clamp(38px, 6vw, 72px); line-height: 1.03;
  letter-spacing: -0.045em; font-weight: 700;
}
.vaulttitle span { color: var(--ink-2); font-weight: 500; }

/* ── the live vault panel ───────────────────────────────── */
.vaultband { padding-top: 0; }
.vaultcard { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); overflow: hidden; }
.vaulttop {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 24px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap;
}
.walletbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn.small { padding: 8px 16px; font-size: 13.5px; }
.wchip {
  padding: 7px 14px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.warn { color: var(--red); font-size: 13px; font-weight: 700; }
.cardwallet { font-size: 13px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.walletbar { position: relative; }
.wpicker {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  display: flex; flex-direction: column; gap: 2px; padding: 6px; min-width: 190px;
  border-radius: 16px; border: 1px solid var(--line);
  background: rgba(16, 14, 41, .96); backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.9);
  animation: fadeUp .2s var(--ease) both;
}
.wpick {
  border: 0; background: transparent; color: var(--ink); cursor: pointer; text-align: left;
  padding: 10px 14px; border-radius: 11px; font-weight: 600; font-size: 14px;
  transition: background .18s var(--ease);
}
.wpick:hover { background: rgba(243,243,255,.09); }
.muted { color: var(--dim); font-size: 13.5px; }
.vaultgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); }
@media (max-width: 820px) { .vaultgrid { grid-template-columns: repeat(2, 1fr); } }
.vstat { background: var(--panel); padding: 22px 24px; }
.vstat .k { display: block; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.vstat .v {
  display: block; margin-top: 7px; font-size: 24px; font-weight: 700;
  letter-spacing: -0.032em; font-variant-numeric: tabular-nums;
  transition: color .5s var(--ease);
}
.vstat .v.tick { animation: tick .7s var(--ease); }
@keyframes tick { 0% { color: var(--accent); transform: translateY(-2px); } 100% { color: var(--ink); transform: none; } }
.notlive { margin: 0; padding: 26px 24px; color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 70ch; }
.vaultmsg:empty { display: none; }
.vaultmsg { margin: 0; padding: 14px 24px; border-top: 1px solid var(--line-soft); color: var(--red); font-size: 13.5px; }
.vaultmsg.neutral { color: var(--ink-2); }

/* ── deposit form ───────────────────────────────────────── */
.vaultform { padding: 22px 24px 8px; border-top: 1px solid var(--line-soft); }
.payrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.paytoggle {
  display: flex; gap: 3px; padding: 4px; border-radius: 999px;
  background: rgba(243,243,255,.05); border: 1px solid var(--line-soft);
}
.paybtn {
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em;
  padding: 8px 16px; border-radius: 999px;
  transition: background .22s var(--ease), color .22s var(--ease);
}
.paybtn:hover { color: var(--ink); }
.paybtn[aria-selected="true"] { background: var(--ink); color: var(--navy); }
.amountwrap {
  display: flex; align-items: center; gap: 8px; flex: 1 1 180px; min-width: 160px;
  padding: 0 16px; border-radius: 999px;
  background: rgba(243,243,255,.04); border: 1px solid var(--line);
  transition: border-color .22s var(--ease), background .22s var(--ease);
}
.amountwrap:focus-within { border-color: var(--accent); background: rgba(157,157,255,.07); }
.amountwrap input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--ink); font-family: inherit; font-size: 16px; font-weight: 700;
  padding: 13px 0; font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.amountwrap input::placeholder { color: var(--dim); font-weight: 500; }
.amountwrap .unit { color: var(--ink-2); font-size: 13.5px; font-weight: 700; }
.feeline { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-2); }
.feeline:empty { display: none; }
.feeline b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.feeline .free { color: var(--accent); font-weight: 700; }
.txstatus { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-2); min-height: 1.2em; }
.txstatus.good { color: var(--accent); }
.txstatus a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(157,157,255,.35); }
.txstatus:empty { display: none; }
.formnote { margin: 12px 0 16px; font-size: 12.5px; color: var(--dim); line-height: 1.55; max-width: 74ch; }
.formnote a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.formnote a:hover { color: var(--ink); }

/* ── thesis ─────────────────────────────────────────────── */
.thesis { max-width: 1000px; margin: 0 auto; padding: clamp(30px, 5vw, 64px) var(--pad) clamp(64px, 9vw, 112px); }
.thesis p {
  margin: 0; text-align: center; text-wrap: balance;
  font-size: clamp(24px, 3.4vw, 42px); line-height: 1.2;
  letter-spacing: -0.038em; font-weight: 500; color: var(--ink-2);
}
.thesis em { font-style: normal; font-weight: 700; color: var(--ink); }

/* ── light inset ────────────────────────────────────────── */
.why {
  background: var(--light); color: var(--light-ink);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: clamp(64px, 10vw, 128px) var(--pad) clamp(56px, 8vw, 100px);
  text-align: center;
  background-image:
    linear-gradient(rgba(12,10,32,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12,10,32,.032) 1px, transparent 1px);
  background-size: 56px 56px;
}
.why-inner { max-width: 820px; margin: 0 auto; }
.why .kicker { color: var(--accent-2); }
.huge { font-size: clamp(33px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -0.046em; font-weight: 700; margin: 0 0 32px; }
.huge s { color: #9c9bad; text-decoration-thickness: .05em; }
.why-body { max-width: 650px; margin: 0 auto; }
.why-body p { margin: 0 0 20px; color: var(--light-ink-2); font-size: clamp(15px, 1.6vw, 17.5px); line-height: 1.62; }
.why-body em { font-style: normal; font-weight: 700; color: var(--light-ink); }
.why-mark { width: 42px; height: 42px; margin: 26px auto 0; border-radius: 11px; }

/* the dark page resumes over the light inset */
main > .wrap:last-of-type {
  border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--bg);
  position: relative; z-index: 1; margin-top: calc(var(--r-lg) * -1); padding-top: 1px;
}

/* ── bands ──────────────────────────────────────────────── */
.band { padding: clamp(60px, 9vw, 116px) 0; }
.band-head { max-width: 700px; margin-bottom: 44px; }
.band-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.big { font-size: clamp(30px, 4.3vw, 52px); line-height: 1.06; letter-spacing: -0.043em; font-weight: 700; margin: 0 0 16px; }
.band-head p { color: var(--ink-2); font-size: clamp(15px, 1.5vw, 17px); margin: 0 auto; max-width: 60ch; line-height: 1.6; }

/* ── tabs ───────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 4px; padding: 6px; margin: 0 auto 20px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: -0.015em;
  padding: 11px 22px; border-radius: 999px; white-space: nowrap;
  transition: color .24s var(--ease), background .24s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--navy); }

.stage {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(20px, 3vw, 40px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--panel); padding: clamp(24px, 3.4vw, 44px);
}
@media (max-width: 900px) { .stage { grid-template-columns: 1fr; } }
.stage > * { animation: fadeUp .42s var(--ease) both; }
.stage > *:nth-child(2) { animation-delay: .06s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.stage h3 { margin: 0 0 14px; font-size: clamp(20px, 2.4vw, 27px); font-weight: 700; letter-spacing: -0.032em; }
.stage p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.64; }
.stage code { font-family: var(--mono); font-size: 12.5px; color: var(--ink); background: rgba(157,157,255,.13); padding: 2px 7px; border-radius: 6px; }
.stage-fig {
  border-radius: var(--r); padding: 26px 24px; align-self: stretch;
  display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(130% 100% at 15% 0%, rgba(111,111,240,.34), rgba(157,157,255,.05) 62%);
  box-shadow: inset 0 0 0 1px rgba(157,157,255,.2);
}
.stage-fig .v { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.042em; line-height: 1; font-variant-numeric: tabular-nums; }
.stage-fig .k { margin-top: 12px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }

/* ── tables ─────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
table.data { width: 100%; border-collapse: collapse; min-width: 660px; }
table.data th, table.data td { padding: 16px 22px; text-align: left; }
table.data thead th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--dim); font-weight: 400; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data tbody tr { border-bottom: 1px solid var(--line-soft); transition: background .2s ease; }
table.data tbody tr:last-child { border-bottom: 0; }
table.data tbody tr:hover { background: rgba(157,157,255,.05); }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.w-col { width: 30%; min-width: 120px; }
.sym { font-weight: 700; letter-spacing: -0.022em; }
.sub { display: block; font-size: 12.5px; color: var(--dim); margin-top: 1px; font-weight: 400; letter-spacing: 0; }
.bar { height: 6px; border-radius: 3px; background: rgba(243,243,255,.08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 3px; transition: width 1s var(--ease); }
.bar.ctrl i { background: rgba(243,243,255,.2); }
.bar.bench i { background: rgba(243,243,255,.12); }
.tag {
  display: inline-block; margin-left: 9px; padding: 3px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; color: var(--dim);
  background: rgba(243,243,255,.06); vertical-align: 1px;
}
.tag.idx { color: var(--accent); background: var(--accent-soft); }

/* ── panels ─────────────────────────────────────────────── */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
@media (max-width: 900px) { .two-up { grid-template-columns: 1fr; } }
.panel { margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); padding: 26px; }
.panel figcaption { margin-bottom: 20px; }
.panel figcaption h3 { margin: 0 0 9px; font-size: 19px; font-weight: 700; letter-spacing: -0.03em; }
.panel figcaption p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; max-width: 46ch; }
.panel svg { display: block; width: 100%; height: auto; overflow: visible; }
.axis { font-family: var(--mono); font-size: 10px; fill: var(--dim); }
.gridline { stroke: var(--line-soft); }
.conc-row { display: grid; grid-template-columns: 92px 1fr 56px; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.conc-row:last-of-type { border-bottom: 0; }
.conc-row .s { font-weight: 700; font-size: 14.5px; }
.conc-row .n { font-size: 13.5px; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; font-weight: 700; }

/* ── cards ──────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 940px) { .cards { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .32s var(--ease), border-color .32s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: rgba(157,157,255,.28); }
.card-art { height: 148px; background: var(--panel-2); border-bottom: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.card-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-body { padding: 26px; }
.card .v { display: block; font-size: clamp(28px, 3.6vw, 37px); font-weight: 700; letter-spacing: -0.045em; color: var(--red); line-height: 1; font-variant-numeric: tabular-nums; }
.card h3 { margin: 15px 0 9px; font-size: 18px; font-weight: 700; letter-spacing: -0.028em; }
.card p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* ── provenance ─────────────────────────────────────────── */
.prov { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.prov .p { background: var(--panel); padding: 22px; transition: background .24s ease; }
.prov .p:hover { background: var(--panel-2); }
.prov .p .v a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.prov .p .v a:hover { border-color: var(--accent); }
.prov .p .v { display: block; font-size: 21px; font-weight: 700; letter-spacing: -0.032em; font-variant-numeric: tabular-nums; }
.prov .p .k { display: block; margin-top: 7px; font-size: 12.5px; color: var(--dim); line-height: 1.45; }

/* ── footer ─────────────────────────────────────────────── */
footer {
  max-width: var(--max); margin: 0 auto; padding: 30px var(--pad) 56px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 12.5px;
}
.foot-l { display: flex; align-items: center; gap: 10px; }
.foot-l img { width: 24px; height: 24px; border-radius: 6px; background: var(--ink); }
.brand-sm { color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }
.dim { color: var(--dim); display: flex; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 11.5px; }

/* ── reveal ─────────────────────────────────────────────────
   Scoped to .js-reveal, set by the script only when it is about to drive the
   animation. Without JS, or if the observer never fires, nothing is hidden. */
.js-reveal .reveal > * { opacity: 0; transform: translateY(20px); transition: opacity .72s var(--ease), transform .72s var(--ease); }
.js-reveal .reveal.in > * { opacity: 1; transform: none; }
.js-reveal .reveal.in > *:nth-child(2) { transition-delay: .09s; }
.js-reveal .reveal.in > *:nth-child(3) { transition-delay: .17s; }
.js-reveal .reveal.in > *:nth-child(4) { transition-delay: .24s; }
/* cards and tiles get their own stagger inside the block they sit in */
.js-reveal .reveal .cards > *, .js-reveal .reveal .prov > *, .js-reveal .reveal .two-up > * {
  opacity: 0; transform: translateY(22px); transition: opacity .68s var(--ease), transform .68s var(--ease);
}
.js-reveal .reveal.in .cards > *, .js-reveal .reveal.in .prov > *, .js-reveal .reveal.in .two-up > * { opacity: 1; transform: none; }
.js-reveal .reveal.in .cards > *:nth-child(2), .js-reveal .reveal.in .two-up > *:nth-child(2) { transition-delay: .11s; }
.js-reveal .reveal.in .cards > *:nth-child(3) { transition-delay: .2s; }
.js-reveal .reveal.in .prov > *:nth-child(2) { transition-delay: .05s; }
.js-reveal .reveal.in .prov > *:nth-child(3) { transition-delay: .1s; }
.js-reveal .reveal.in .prov > *:nth-child(4) { transition-delay: .15s; }
.js-reveal .reveal.in .prov > *:nth-child(5) { transition-delay: .2s; }
.js-reveal .reveal.in .prov > *:nth-child(6) { transition-delay: .25s; }
