/* ============================================================
   MAIN.CSS
   Global scaffolding used on every page: CSS custom properties
   (color/font tokens), the CSS reset, base body/link/typography
   styles, the top byline bar, sticky site nav, ticker tape, the
   homepage hero section, and the site footer.
   Load this FIRST - every other file depends on the --variables
   defined here.
   ============================================================ */
  :root {
    --bg: #0C0F14;
    --surface: #14181F;
    --surface-raised: #191E27;
    --hairline: #2A3140;
    --ink: #EDEFF3;
    --ink-dim: #8B93A7;
    --gold: #C9A227;
    --gold-bright: #E8C34A;
    --green: #4ADE80;
    --red: #F87171;
    --serif: 'Fraunces', serif;
    --sans: 'Inter', sans-serif;
    --mono: 'IBM Plex Mono', monospace;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
  }

  a { color: inherit; }

  .wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* ---------- BYLINE ---------- */
  .byline-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    max-width: 1080px;
    margin: 0 auto;
  }
  .site-logo {
    flex-shrink: 0;
  }
  .byline {
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #FFFFFF;
  }

  /* ---------- SITE NAV ---------- */
  .site-nav {
    position: sticky;
    top: 0;
    z-index: 300;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    padding: 0 24px;
    max-width: 1080px;
    margin: 0 auto;
  }
  .nav-link {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink-dim);
    text-decoration: none;
    white-space: nowrap;
    padding: 14px 16px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
  }
  .nav-link:hover {
    color: var(--ink);
    border-bottom-color: var(--hairline);
  }
  .nav-link:active {
    color: var(--gold-bright);
    border-bottom-color: var(--gold);
  }

  /* ---------- TICKER ---------- */
  .ticker-outer {
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
  }
  .ticker-track {
    display: inline-block;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.03em;
    color: var(--ink-dim);
    animation: scroll 38s linear infinite;
  }
  .ticker-track span { margin-right: 42px; }
  .ticker-track .up { color: var(--green); }
  
  @media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
  }

  /* ---------- HERO ---------- */
  .hero {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: center;
    padding: 72px 0 48px;
    border-bottom: 1px solid var(--hairline);
  }
  @media (max-width: 900px) {
    .hero {
      grid-template-columns: 1fr;
    }
  }
  .eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
  }
  h1 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(38px, 5.5vw, 64px);
    line-height: 1.05;
    margin: 0 0 20px;
    max-width: 780px;
  }
  .hero p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-dim);
    max-width: 620px;
    margin: 0;
  }

  /* ---------- HERO WIDGET ---------- */
  .hero-widget {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 6px;
    padding: 20px;
  }
  .hero-widget-label {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .hero-widget-label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
  }
  .hero-widget-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--hairline);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s ease;
  }
  .hero-widget-row:last-child { border-bottom: none; }
  .hero-widget-row:hover { opacity: 0.7; }
  .hero-widget-rank {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--gold);
    width: 20px;
    flex-shrink: 0;
  }
  .hero-widget-name {
    font-size: 13.5px;
    color: var(--ink);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero-widget-aum {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-dim);
    flex-shrink: 0;
  }
  .hero-widget-footer {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--gold);
    text-decoration: none;
    display: block;
    margin-top: 14px;
    text-align: center;
  }
  .hero-widget-footer:hover { color: var(--gold-bright); }

  /* ---------- HERO CTA ---------- */
  .hero-cta {
    display: inline-block;
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--bg);
    background: var(--gold);
    text-decoration: none;
    border-radius: 4px;
    padding: 13px 26px;
    margin-top: 28px;
    transition: background 0.15s ease;
  }
  .hero-cta:hover {
    background: var(--gold-bright);
  }
  .below-hero {
    padding-top: 40px;
  }

  /* ---------- FOOTER ---------- */
  footer {
    border-top: 1px solid var(--hairline);
    padding: 36px 0 60px;
  }
  footer p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink-dim);
    max-width: 640px;
    margin: 0 0 10px;
  }
  footer .sig {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--hairline);
    margin-top: 24px;
  }
