/* Singularity Securities — base: tokens, type, layout, shared components.
   Page styles live in their own files (home.css, pulse.css, …) and build on these tokens. */

@font-face { font-family: 'Geist'; src: url(/fonts/geist.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(/fonts/geist-mono.woff2) format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(/fonts/instrument-serif.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(/fonts/instrument-serif-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #050508;
  --bg-2: #09090f;
  --bg-3: #0f1018;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --surface-3: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f2eee6;
  --text-2: #bdb9b0;
  --muted: #8e8b95;
  --dim: #7a7884;
  --gold: #ffb54a;
  --gold-2: #ffd78f;
  --corona: #ffe9c2;
  --plasma: #ff7a3d;
  --blue: #7cc4ff;
  --violet: #a594ff;
  --gain: #3fe0a5;
  --loss: #ff6b6b;
  --gain-bg: rgba(63, 224, 165, .12);
  --loss-bg: rgba(255, 107, 107, .12);
  --doppler: linear-gradient(90deg, var(--blue), var(--corona) 48%, var(--gold) 70%, var(--plasma));
  --radius: 20px;
  --radius-sm: 12px;
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-sans); font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
img, svg, canvas, video { display: block; max-width: 100%; }
main { overflow-x: clip; } /* decorative glows may bleed past the edge; never let them widen the page */
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(255, 181, 74, .85); color: #120c04; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.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 { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: var(--gold); color: #120c04; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 16px; }

/* Film grain over everything; cheap because the SVG rasterises once and tiles. */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
.serif { font-family: var(--font-serif); font-weight: 400; }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num { letter-spacing: -.01em; }
.display {
  font: 400 clamp(3.1rem, 8.6vw, 8.4rem)/.9 var(--font-serif); letter-spacing: -.025em;
}
.h2 { font: 400 clamp(2.45rem, 5.3vw, 4.7rem)/1 var(--font-serif); letter-spacing: -.018em; text-wrap: balance; }
.h3 { font: 500 clamp(1.2rem, 1.6vw, 1.45rem)/1.25 var(--font-sans); letter-spacing: -.01em; }
.h2 em, .display em, .h3 em { font-style: italic; }
.lead { font-size: clamp(1.06rem, 1.35vw, 1.25rem); line-height: 1.6; color: var(--text-2); max-width: 62ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .65em; margin: 0;
  font: 500 .74rem/1 var(--font-mono); letter-spacing: .17em; text-transform: uppercase; color: var(--gold-2);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; flex: none; }
.eyebrow--blue { color: var(--blue); }
.eyebrow--plain::before { display: none; }
.glow-text {
  background: var(--doppler); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-right: .06em;
}
.up { color: var(--gain); }
.down { color: var(--loss); }
.flat { color: var(--muted); }
kbd {
  display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .4em; border-radius: 6px;
  font: 500 .72rem/1 var(--font-mono); color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-width: 2px;
}
.prose { max-width: 70ch; }
.prose p, .prose li { color: var(--text-2); }
.prose h3 { font: 500 1.35rem/1.3 var(--font-sans); color: var(--text); margin: 2em 0 .6em; letter-spacing: -.01em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--gold-2); text-decoration-color: rgba(255, 215, 143, .4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--gold-2); }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--gold); }
.prose blockquote {
  margin: 1.6em 0; padding: .2em 0 .2em 1.2em; border-left: 2px solid var(--gold);
  font: italic 400 1.45rem/1.4 var(--font-serif); color: var(--text);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .65em .9em; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prose th { font: 500 .72rem/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.prose td { color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { --wrap: 820px; }
.wrap--wide { --wrap: 1440px; }
.section { position: relative; padding: clamp(72px, 8vw, 124px) 0; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section__head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 860px; }
.section__head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section__head--split { max-width: none; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; }
.section__head--split .lead { margin: 0; }
@media (max-width: 860px) { .section__head--split { grid-template-columns: 1fr; } }
.grid { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.stack { display: grid; gap: 14px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spacer { flex: 1; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); border: 0; margin: 0; }
.glow {
  position: absolute; pointer-events: none; border-radius: 50%; filter: blur(80px); opacity: .5; z-index: -1;
  width: 520px; height: 520px; background: radial-gradient(circle, rgba(255, 140, 60, .35), transparent 65%);
}
.glow--blue { background: radial-gradient(circle, rgba(110, 170, 255, .28), transparent 65%); }
.glow--violet { background: radial-gradient(circle, rgba(150, 120, 255, .25), transparent 65%); }

/* ---------- Icons ---------- */
.i { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: var(--h); padding: 0 1.4em; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .035); color: var(--text); text-decoration: none; white-space: nowrap;
  font: 500 .95rem/1 var(--font-sans); letter-spacing: .005em; cursor: pointer;
  transition: transform .35s var(--ease), background .25s, border-color .25s, box-shadow .35s var(--ease), filter .25s;
}
.btn:hover { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .075); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn .i { width: 1.05em; height: 1.05em; transition: transform .35s var(--ease); }
.btn:hover .i--arrow { transform: translateX(3px); }
.btn--gold {
  color: #1b1105; border-color: transparent;
  background: linear-gradient(120deg, #ffe7b5 0%, #ffbe5c 42%, #ff8a45 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 12px 34px -12px rgba(255, 140, 60, .75);
}
.btn--gold:hover { background: linear-gradient(120deg, #fff0cf 0%, #ffc66d 42%, #ff9550 100%); border-color: transparent; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 18px 40px -12px rgba(255, 140, 60, .9); }
.btn--ghost { background: transparent; border-color: transparent; padding-inline: .6em; }
.btn--ghost:hover { background: var(--surface); }
.btn--sm { --h: 38px; padding: 0 1.05em; font-size: .875rem; }
.btn--lg { --h: 56px; padding: 0 1.7em; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .5; pointer-events: none; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .45em; color: var(--gold-2); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.link-arrow .i { transition: transform .35s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- Chips, badges, pills ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .45em; height: 32px; padding: 0 .9em; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2);
  font: 500 .8rem/1 var(--font-sans); cursor: pointer; transition: all .2s; user-select: none; white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.chip[aria-pressed='true'], .chip.is-on, input:checked + .chip {
  color: #1b1105; background: var(--gold-2); border-color: var(--gold-2);
}
.badge {
  display: inline-flex; align-items: center; gap: .3em; padding: .28em .6em; border-radius: 999px;
  font: 500 .76rem/1 var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.badge.up { background: var(--gain-bg); }
.badge.down { background: var(--loss-bg); }
.badge.flat { background: var(--surface-2); }
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 .6em; border-radius: 6px;
  font: 500 .68rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line);
}
.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gain); flex: none; }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--gain); animation: ping 1.8s var(--ease) infinite; }
.live-dot.is-off { background: var(--dim); }
.live-dot.is-off::after { display: none; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* ---------- Cards ---------- */
.card {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius);
  padding: clamp(20px, 2.3vw, 30px); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .052), rgba(255, 255, 255, .014));
}
.card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 190, 110, .11), transparent 62%);
}
.card:hover::before, .card:focus-within::before { opacity: 1; }
.card--link { text-decoration: none; transition: transform .5s var(--ease), border-color .3s; display: block; }
.card--link:hover { transform: translateY(-3px); border-color: var(--line-2); }
.card__title { font: 500 1.2rem/1.3 var(--font-sans); letter-spacing: -.01em; margin: 0 0 .4em; }
.card__meta { font: 500 .72rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* The accretion ring: a slow conic highlight that travels around a panel's border. */
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.ring::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--a), transparent 0 58%, rgba(124, 196, 255, .85) 68%, rgba(255, 233, 194, 1) 76%, rgba(255, 140, 70, .9) 84%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: ring-spin 7s linear infinite; opacity: .9;
}
@keyframes ring-spin { to { --a: 360deg; } }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; }
.field > span, .label { font: 500 .74rem/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03); color: var(--text); font-size: 1rem; transition: border-color .2s, background .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 150px; padding: 14px 16px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23bdb9b0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.select option { background: #14141c; }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 255, 255, .26); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); background: rgba(255, 181, 74, .045); box-shadow: 0 0 0 4px rgba(255, 181, 74, .12); }
.input-wrap { position: relative; }
.input-wrap .prefix, .input-wrap .suffix { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); font-family: var(--font-mono); font-size: .9rem; pointer-events: none; }
.input-wrap .prefix { left: 16px; }
.input-wrap .suffix { right: 16px; }
.input-wrap .prefix + .input { padding-left: 34px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Range: the track fill follows --p, which JS keeps in sync with the value. */
.range { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--gold) calc(var(--p) * .7), var(--plasma) var(--p), rgba(255, 255, 255, .12) var(--p)); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--gold), var(--plasma)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff6e6; border: 0; box-shadow: 0 0 0 5px rgba(255, 181, 74, .22), 0 0 18px rgba(255, 181, 74, .8); transition: box-shadow .2s; }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff6e6; border: 0; box-shadow: 0 0 0 5px rgba(255, 181, 74, .22), 0 0 18px rgba(255, 181, 74, .8); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 7px rgba(255, 181, 74, .4), 0 0 22px rgba(255, 181, 74, 1); }

.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label, .seg button {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: none;
  font: 500 .84rem/1 var(--font-sans); color: var(--text-2); cursor: pointer; transition: all .2s; white-space: nowrap;
}
.seg label:hover, .seg button:hover { color: var(--text); }
.seg input:checked + label, .seg button[aria-pressed='true'], .seg button[aria-selected='true'] { background: var(--text); color: #0b0b10; }
.seg input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--nav-h);
  transition: background .4s, border-color .4s, transform .5s var(--ease); border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(6, 6, 10, .62); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
/* Over the live black hole a backdrop blur would be recomputed every frame; a plain fade reads just as well. */
.nav.over-hero.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(rgba(3, 3, 6, .82), rgba(3, 3, 6, 0)); border-color: transparent; }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand__mark { width: 38px; height: 38px; transition: transform 1s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__word { display: grid; line-height: 1; }
.brand__name { font: 400 1.5rem/1 var(--font-serif); letter-spacing: -.01em; }
.brand__sub { font: 500 .56rem/1 var(--font-mono); letter-spacing: .42em; text-transform: uppercase; color: var(--gold-2); margin-top: 3px; }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 9px 13px; border-radius: 999px; text-decoration: none; color: var(--text-2);
  font: 500 .9rem/1 var(--font-sans); transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__links a[aria-current='page'] { color: var(--text); }
.nav__links a[aria-current='page']::after { content: ''; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__search {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--muted); font-size: .85rem; transition: all .2s;
}
.nav__search:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); place-content: center; gap: 5px; }
.nav__burger span { display: block; width: 16px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease); }
.nav__burger[aria-expanded='true'] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__burger[aria-expanded='true'] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__burger { display: grid; }
}
@media (max-width: 640px) {
  .nav__search span, .nav__search kbd { display: none; }
  .nav__search { width: 42px; height: 42px; padding: 0; justify-content: center; }
  .nav__cta { display: none; }
  .brand__name { font-size: 1.3rem; }
  .brand__mark { width: 34px; height: 34px; }
}

.menu {
  position: fixed; inset: 0; z-index: 55; display: grid; align-content: center; padding: calc(var(--nav-h) + 20px) var(--gutter) 40px;
  background: radial-gradient(120% 80% at 80% 0%, rgba(255, 140, 60, .14), transparent 60%), rgba(5, 5, 8, .97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.menu nav { display: grid; gap: 4px; }
.menu nav a {
  font: 400 clamp(2.4rem, 11vw, 4rem)/1.08 var(--font-serif); text-decoration: none; color: var(--text);
  opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease), color .2s;
}
.menu nav a:hover { color: var(--gold-2); }
.menu nav a small { font: 500 .72rem/1 var(--font-mono); letter-spacing: .14em; color: var(--muted); margin-left: .6em; vertical-align: middle; }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu.is-open nav a:nth-child(2) { transition-delay: .04s; }
.menu.is-open nav a:nth-child(3) { transition-delay: .08s; }
.menu.is-open nav a:nth-child(4) { transition-delay: .12s; }
.menu.is-open nav a:nth-child(5) { transition-delay: .16s; }
.menu.is-open nav a:nth-child(6) { transition-delay: .2s; }
.menu.is-open nav a:nth-child(7) { transition-delay: .24s; }
.menu.is-open nav a:nth-child(8) { transition-delay: .28s; }
.menu__foot { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(56px, 9vw, 120px)) 0 clamp(40px, 6vw, 80px); overflow: hidden; isolation: isolate; }
.page-hero .display { font-size: clamp(3rem, 7.6vw, 7rem); margin: 18px 0 22px; }
.page-hero__orb {
  position: absolute; z-index: -1; right: -8vw; top: 4vw; width: min(58vw, 760px); aspect-ratio: 1; pointer-events: none; opacity: .9;
}
.page-hero__orb::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #000 0 22%, transparent 22.6%),
    radial-gradient(circle at 50% 50%, transparent 0 22.4%, rgba(255, 233, 194, .9) 23%, rgba(255, 181, 74, .45) 25%, transparent 31%),
    conic-gradient(from 200deg, rgba(124, 196, 255, .0), rgba(124, 196, 255, .35), rgba(255, 233, 194, .55), rgba(255, 122, 61, .45), rgba(124, 196, 255, 0) 70%);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%);
  filter: blur(.5px); animation: orb-turn 40s linear infinite;
}
.page-hero__orb::after {
  content: ''; position: absolute; left: -10%; right: -10%; top: 46%; height: 8%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 240, 210, .9), rgba(255, 170, 80, .55) 40%, rgba(255, 110, 50, .15) 75%, transparent);
  filter: blur(6px); transform: rotate(-8deg);
}
@keyframes orb-turn { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .page-hero__orb { opacity: .45; right: -30vw; top: 10vw; width: 100vw; } }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- Glossary tooltips ---------- */
dfn[data-term] {
  font-style: normal; cursor: help; color: inherit;
  text-decoration: underline dotted rgba(255, 215, 143, .7); text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
dfn[data-term]:hover, dfn[data-term]:focus-visible { color: var(--gold-2); }
.tip {
  position: absolute; z-index: 80; width: min(340px, calc(100vw - 32px)); padding: 16px 18px 14px; border-radius: 16px;
  background: rgba(16, 16, 24, .96); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 181, 74, .06);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease); pointer-events: none;
}
.tip.is-on { opacity: 1; transform: none; pointer-events: auto; }
.tip__term { font: 400 1.4rem/1.1 var(--font-serif); margin: 0 0 2px; }
.tip__full { font: 500 .7rem/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 8px; }
.tip__def { font-size: .92rem; line-height: 1.55; color: var(--text-2); margin: 0 0 10px; }
.tip a { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--gold-2); text-decoration: none; }
.tip a .i { width: 14px; height: 14px; }

/* ---------- Command palette ---------- */
.palette { position: fixed; inset: 0; z-index: 120; display: grid; justify-items: center; align-items: start; padding: 12vh 16px 16px; }
.palette__scrim { position: absolute; inset: 0; background: rgba(3, 3, 6, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .25s; }
.palette__box {
  position: relative; width: min(680px, 100%); max-height: 72vh; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px; background: rgba(14, 14, 21, .97); border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 181, 74, .07), 0 0 80px -30px rgba(255, 150, 60, .35);
  animation: pop .35s var(--ease);
}
.palette__bar { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.palette__bar .i { color: var(--gold-2); width: 20px; height: 20px; }
.palette__input { flex: 1; height: 62px; border: 0; background: none; outline: none; font-size: 1.08rem; color: var(--text); }
.palette__input::placeholder { color: var(--dim); }
.palette__list { overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.palette__group { padding: 12px 12px 6px; font: 500 .68rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.palette__item {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 12px; border-radius: 12px; border: 0; background: none;
  text-align: left; text-decoration: none; color: var(--text-2); cursor: pointer;
}
.palette__item[aria-selected='true'] { background: var(--surface-2); color: var(--text); }
.palette__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-2); border: 1px solid var(--line); color: var(--gold-2); font: 500 .7rem/1 var(--font-mono); }
.palette__text { min-width: 0; flex: 1; }
.palette__title { display: block; color: var(--text); font-weight: 500; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette__sub { display: block; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette__aside { font: 500 .8rem/1 var(--font-mono); color: var(--text-2); }
.palette__empty { padding: 28px; text-align: center; color: var(--muted); }
.palette__foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--dim); }
@keyframes pop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 130; display: grid; gap: 10px; transform: translateX(-50%); width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; pointer-events: auto;
  background: rgba(18, 18, 26, .96); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9);
  font-size: .92rem; animation: toast-in .5s var(--ease);
}
.toast .i { color: var(--gold); width: 20px; height: 20px; }
.toast.is-out { animation: toast-out .35s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- Ticker tape ---------- */
.tape { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: rgba(5, 5, 8, .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tape__track { display: flex; width: max-content; animation: tape 60s linear infinite; }
.tape:hover .tape__track { animation-play-state: paused; }
.tape__item { display: inline-flex; align-items: center; gap: 10px; padding: 12px 26px; border-right: 1px solid var(--line); font: 500 .8rem/1 var(--font-mono); white-space: nowrap; color: var(--text-2); text-decoration: none; }
.tape__item b { color: var(--text); font-weight: 500; }
.tape__sym { color: var(--muted); letter-spacing: .08em; }
@keyframes tape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape__track { animation-duration: 240s; } }

/* ---------- Sparklines and charts ---------- */
.spark { width: 100%; height: 40px; }
.chart { position: relative; width: 100%; }
.chart canvas { width: 100%; height: 100%; }
.chart__tip {
  position: absolute; top: 0; left: 0; pointer-events: none; z-index: 3; padding: 9px 12px; border-radius: 12px; min-width: 140px;
  background: rgba(14, 14, 21, .94); border: 1px solid var(--line-2); font-size: .8rem; line-height: 1.5;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .9); opacity: 0; transition: opacity .15s; white-space: nowrap;
}
.chart__tip.is-on { opacity: 1; }
.chart__tip b { font-family: var(--font-mono); font-weight: 500; color: var(--text); }
.chart__tip .muted { font-size: .72rem; }

/* Skeleton shimmer while data loads */
.skel { position: relative; overflow: hidden; border-radius: 8px; background: rgba(255, 255, 255, .05); color: transparent !important; }
.skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- Newsletter form (shared) ---------- */
.signal-form { display: grid; gap: 18px; }
.signal-form__row { display: flex; gap: 10px; }
.signal-form__row .input { flex: 1; height: 56px; border-radius: 999px; padding: 0 22px; font-size: 1.02rem; }
.signal-form__row .btn { --h: 56px; }
.signal-form__opts { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.signal-form__topics { display: flex; flex-wrap: wrap; gap: 8px; }
.signal-form__topics input { position: absolute; opacity: 0; pointer-events: none; }
.signal-form__topics input:focus-visible + .chip { outline: 2px solid var(--gold); outline-offset: 2px; }
.signal-form__fine { font-size: .8rem; color: var(--muted); margin: 0; }
.signal-form__fine a { color: var(--text-2); }
.signal-form__status { min-height: 1.4em; font-size: .9rem; margin: 0; }
.signal-form__status.is-ok { color: var(--gain); }
.signal-form__status.is-err { color: var(--loss); }
@media (max-width: 560px) {
  .signal-form__row { flex-direction: column; }
  .signal-form__row .input { flex: none; }
  .signal-form__row .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.footer { position: relative; padding: clamp(72px, 9vw, 120px) 0 32px; border-top: 1px solid var(--line); overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--bg), #030305); }
.footer__glow { position: absolute; z-index: -1; left: 50%; bottom: -380px; width: 1100px; height: 560px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 150, 60, .2), rgba(124, 150, 255, .06) 60%, transparent); filter: blur(30px); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, .7fr)); gap: 40px; }
.footer__brand p { color: var(--muted); max-width: 40ch; font-size: .95rem; margin-top: 18px; }
.footer__col h4 { font: 500 .72rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer__col a { color: var(--text-2); text-decoration: none; font-size: .94rem; transition: color .2s; }
.footer__col a:hover { color: var(--gold-2); }
.footer__word {
  margin: clamp(48px, 8vw, 100px) 0 0; font: 400 clamp(4rem, 17.5vw, 16rem)/.8 var(--font-serif); letter-spacing: -.035em; text-align: center; user-select: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .015) 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__legal { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 18px; }
.footer__disclaimer { font-size: .78rem; line-height: 1.65; color: var(--dim); max-width: 120ch; margin: 0; }
.footer__disclaimer a { color: var(--muted); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; font-size: .84rem; color: var(--muted); }
.footer__bottom a { color: var(--text-2); text-decoration: none; }
.footer__bottom a:hover { color: var(--gold-2); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.umbrela {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); text-decoration: none; transition: border-color .3s, background .3s;
}
.umbrela:hover { border-color: rgba(120, 180, 255, .5); background: rgba(120, 180, 255, .06); }
.umbrela__mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #9fd0ff, #2f7fe0 70%); }
.umbrela__mark svg { width: 18px; height: 18px; }
.umbrela__text { display: grid; line-height: 1.2; }
.umbrela__text small { font: 500 .62rem/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.umbrela__text strong { font-weight: 600; font-size: .9rem; color: var(--text); }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Misc shared ---------- */
.cta-band { position: relative; text-align: center; overflow: hidden; isolation: isolate; }
.cta-band .display { font-size: clamp(3rem, 8vw, 7.4rem); }
.cta-band__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.note {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: .86rem; line-height: 1.55;
  color: var(--text-2); background: rgba(124, 196, 255, .06); border: 1px solid rgba(124, 196, 255, .18);
}
.note .i { color: var(--blue); margin-top: 2px; }
.source { font-size: .76rem; color: var(--dim); line-height: 1.5; }
.source a { color: var(--muted); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .tape__track { animation: none !important; }
}
