/* Riemann Capital — Landing page styles.
   Layered on top of colors_and_type.css.
   Builds on the design-system "website" UI kit and adds:
     - hero search bar
     - hero ticker pill row
     - "Private Marketplace" order-book matrix
     - FINRA / SIPC anchor footer
*/

/* ============================================================
   GLOBAL CHROME
   ============================================================ */
body {
  background: var(--ink-canvas);
  color: var(--paper-body);
  font-family: var(--font-sans);
  font-feature-settings: 'cv11' on;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
* { box-sizing: border-box; }

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   MARKET STRIP — top company marquee (EquityZen-inspired, dark)
   ============================================================ */
.market-strip {
  position: relative;
  border-bottom: 1px solid var(--hair-soft);
  background: var(--ink-canvas);
  padding: 16px 0 16px;
  overflow: hidden;
}

/* Editorial header above the marquee */
.strip-head {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1320px;
  margin: 0 auto 14px;
  padding: 0 32px;
}
.strip-head-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-muted);
  white-space: nowrap;
}
.strip-head-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--bronze) 0%, var(--hair-soft) 40%, transparent 100%);
  opacity: 0.5;
}
.strip-head-count {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' on;
  font-size: 12px;
  color: var(--paper-dim);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Scrolling track — edges fade out via mask */
.market-strip-track {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
}
.market-strip-inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: tape 70s linear infinite;
}
.market-strip:hover .market-strip-inner {
  animation-play-state: paused;
}
@keyframes tape {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.co-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 210px;
  padding: 0 16px;
  flex: 0 0 auto;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.co-tile:hover .co-tile-name { color: var(--bronze); }
.co-tile:hover .co-tile-logo-chip {
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(197,168,128,0.10);
}

.co-tile-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--paper-body);
  letter-spacing: -0.01em;
  transition: color var(--dur-micro) var(--ease-fluid);
}

/* Logo chip — paper-white square, original-color logos */
.co-tile-logo-chip {
  width: 52px; height: 52px;
  border-radius: 8px;
  background: var(--ink-raised);
  border: 1px solid var(--hair-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  padding: 9px;
  overflow: hidden;
  transition: border-color var(--dur-micro) var(--ease-fluid), box-shadow var(--dur-micro) var(--ease-fluid);
}
.co-tile-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.co-tile-logo-img.invert { filter: invert(1) brightness(1.12); }

.co-tile-meta {
  display: flex; flex-direction: column; gap: 5px;
  line-height: 1;
}
.co-tile-code {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' on;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--paper-muted);
  text-transform: uppercase;
}
.co-tile-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--paper-high);
  letter-spacing: -0.01em;
  transition: color var(--dur-micro) var(--ease-fluid);
}

@media (max-width: 1100px) {
  .strip-label-tile.right { display: none; }
}
@media (max-width: 720px) {
  .strip-label-tile { min-width: 140px; padding: 0 16px; }
  .co-tile { width: auto; padding: 0 12px; gap: 8px; justify-content: flex-start; }
  .co-tile-logo-chip { width: 30px; height: 30px; border-radius: 5px; padding: 4px; }
  .co-tile-name { font-size: 12px; }
  .market-strip { padding: 10px 0; }
  .strip-head { margin-bottom: 10px; }
}

/* ============================================================
   TOP NAV — sticky, hairline-bordered, with inline SVG mark
   ============================================================ */
.topnav {
  border-bottom: 1px solid var(--hair-soft);
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topnav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.topnav-brand {
  display: flex; align-items: center; gap: 12px;
  transition: opacity var(--dur-micro) var(--ease-fluid);
}
.topnav-brand:hover { opacity: 0.85; }
.topnav-brand .mark-svg { width: 26px; height: 26px; display: block; }
.topnav-brand .mark-svg path { transition: stroke var(--dur-std) var(--ease-fluid); }
.topnav-brand .word {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--paper-high);
  letter-spacing: -0.02em;
}

.topnav-items {
  display: flex;
  gap: 32px;
  margin: 0 auto;
}
.topnav-item {
  font-size: 13px;
  color: var(--paper-muted);
  cursor: pointer;
  position: relative;
  transition: color var(--dur-micro) var(--ease-fluid);
  padding: 4px 0;
}
.topnav-item::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-std) var(--ease-fluid);
}
.topnav-item:hover { color: var(--paper-high); }
.topnav-item:hover::after { transform: scaleX(1); }

.topnav-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }

/* Language switcher */
.lang-wrap { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; border: none; cursor: pointer;
  color: var(--paper-muted); padding: 7px 8px; border-radius: 4px;
  transition: color var(--dur-micro) var(--ease-fluid), background var(--dur-micro) var(--ease-fluid);
}
.lang-btn:hover { color: var(--paper-high); background: var(--ink-panel); }
.lang-caret { opacity: 0.7; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 50;
  min-width: 132px; padding: 5px;
  background: linear-gradient(180deg, #1A1D23 0%, #16191F 100%);
  border: 1px solid var(--hair-strong); border-radius: 6px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.7);
}
.lang-opt {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: none; border: none; border-radius: 4px;
  font-family: var(--font-sans); font-size: 13.5px; color: var(--paper-body);
  padding: 9px 12px;
  transition: background var(--dur-micro) var(--ease-fluid), color var(--dur-micro) var(--ease-fluid);
}
.lang-opt:hover { background: var(--ink-hover); color: var(--paper-high); }

@media (max-width: 720px) {
  .topnav-inner { padding: 12px 16px; gap: 12px; }
  .topnav-brand .word { font-size: 13px; }
  .topnav-brand .mark-svg, .topnav-brand img { width: 22px !important; height: 22px !important; }
  .topnav-actions { gap: 8px; }
  .btn-bronze-outline { font-size: 11px; padding: 7px 11px; }
  .lang-btn { padding: 6px 5px; }
}
.btn-bronze-outline {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--bronze);
  background: transparent;
  border: 1px solid rgba(197,168,128,0.5);
  border-radius: 4px;
  padding: 9px 18px;
  cursor: pointer;
  transition:
    background var(--dur-micro) var(--ease-fluid),
    border-color var(--dur-micro) var(--ease-fluid),
    box-shadow var(--dur-micro) var(--ease-fluid);
}
.btn-bronze-outline:hover {
  background: rgba(197,168,128,0.08);
  border-color: var(--bronze);
  box-shadow: 0 0 0 1px rgba(197,168,128,0.25), 0 0 20px -4px rgba(197,168,128,0.3);
}
.btn-bronze-outline:active { transform: scale(0.985); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hair-soft);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-halo {
  position: absolute; top: -260px; right: -260px;
  width: 980px; height: 980px;
  background: radial-gradient(circle, rgba(197,168,128,0.16) 0%, rgba(197,168,128,0.05) 32%, transparent 62%);
  filter: blur(24px);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 32%, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 32%, black 0%, transparent 72%);
}
.hero-zeta {
  position: absolute;
  top: 60px; right: -40px;
  width: 560px; height: 280px;
  opacity: 0.28;
  pointer-events: none;
}

.hero-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 88px 32px 88px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--paper-muted);
  padding: 7px 14px;
  border: 1px solid var(--hair-soft);
  border-radius: 999px;
  background: rgba(20,22,26,0.7);
  backdrop-filter: blur(10px);
}
.hero-kicker-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--signal-up); box-shadow: 0 0 8px var(--signal-up); }

.hero-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--paper-high);
  margin: 4px 0 0;
  max-width: 980px;
  text-wrap: balance;
}
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--bronze);
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 17px;
  color: var(--paper-muted);
  max-width: 640px;
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}

/* -------- Central search bar -------- */
.hero-search {
  margin-top: 16px;
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.search-shell {
  position: relative;
  background: linear-gradient(180deg, #181B22 0%, #14161A 100%);
  border: 1px solid var(--hair-strong);
  border-radius: 6px;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 8px 0 20px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 16px 36px -16px rgba(0,0,0,0.55);
  transition: border-color var(--dur-std) var(--ease-fluid), box-shadow var(--dur-std) var(--ease-fluid);
}
.search-shell::before {
  content: '';
  position: absolute;
  left: 28px; right: 28px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(197,168,128,0.55) 50%, transparent 100%);
}
.search-shell:focus-within {
  border-color: var(--bronze);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 0 1px rgba(197,168,128,0.4),
    0 16px 48px -12px rgba(197,168,128,0.25);
}
.search-icon { color: var(--bronze); flex-shrink: 0; }
.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--paper-high);
  letter-spacing: -0.01em;
  padding: 0 16px;
  height: 100%;
  min-width: 0;
}
.search-input::placeholder { color: var(--paper-dim); }
.search-kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--paper-muted);
  border: 1px solid var(--hair-strong);
  background: var(--ink-pressed);
  border-radius: 4px;
  padding: 4px 7px;
  margin-right: 6px;
  letter-spacing: 0;
}
.search-go {
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 500;
  color: var(--ink-canvas);
  background: var(--bronze);
  border: none;
  border-radius: 4px;
  height: 44px; padding: 0 18px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background var(--dur-micro) var(--ease-fluid), box-shadow var(--dur-micro) var(--ease-fluid);
  box-shadow: 0 0 0 1px rgba(197,168,128,0.4), 0 0 18px -2px rgba(197,168,128,0.35);
}
.search-go:hover { background: var(--bronze-pressed); box-shadow: 0 0 0 1px rgba(197,168,128,0.7), 0 0 28px -2px rgba(197,168,128,0.5); }
.search-go:active { transform: scale(0.985); }

/* -------- Search suggestions (chips below the bar) -------- */
.search-suggest {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--paper-dim);
  letter-spacing: 0.04em;
}
.search-suggest-lbl { color: var(--paper-dim); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-right: 4px; }
.search-chip {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' on;
  font-size: 11.5px;
  color: var(--paper-muted);
  padding: 5px 10px;
  border: 1px solid var(--hair-soft);
  border-radius: 4px;
  cursor: pointer;
  transition: color var(--dur-micro) var(--ease-fluid), border-color var(--dur-micro) var(--ease-fluid), background var(--dur-micro) var(--ease-fluid);
}
.search-chip:hover {
  color: var(--paper-high);
  border-color: var(--bronze);
  background: rgba(197,168,128,0.06);
}

/* -------- Live ticker pills below search -------- */
.hero-ticker {
  margin-top: 36px;
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--hair-soft);
  border-radius: 6px;
  background: linear-gradient(180deg, #14161A 0%, #101216 100%);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  position: relative;
}
.hero-ticker::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(197,168,128,0.35) 50%, transparent 100%);
}
.htick {
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 6px;
  border-right: 1px solid var(--hair-soft);
  text-align: left;
  position: relative;
  transition: background var(--dur-micro) var(--ease-fluid);
}
.htick:last-child { border-right: none; }
.htick:hover { background: rgba(255,255,255,0.015); }
.htick-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.htick-sym {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' on;
  font-size: 12px;
  color: var(--paper-muted);
  letter-spacing: 0.04em;
}
.htick-name { font-family: var(--font-sans); font-size: 11px; color: var(--paper-dim); }
.htick-px {
  font-family: var(--font-mono); font-feature-settings: 'tnum' on;
  font-size: 22px; font-weight: 500;
  color: var(--paper-high);
  letter-spacing: -0.01em;
  line-height: 1;
}
.htick-d {
  font-family: var(--font-mono); font-feature-settings: 'tnum' on;
  font-size: 12px; font-weight: 500;
}
.htick-d.up   { color: var(--signal-up); }
.htick-d.down { color: var(--signal-down); }
.htick-val { font-family: var(--font-sans); font-size: 11px; color: var(--paper-dim); letter-spacing: 0.04em; }
.htick-spark { width: 100%; height: 22px; display: block; margin-top: 4px; }

/* ============================================================
   SECTION HEAD shared
   ============================================================ */
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-kicker {
  font-family: var(--font-sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--paper-muted); margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.section-kicker::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--bronze);
}
.section-title {
  font-family: var(--font-sans); font-weight: 600;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.05; letter-spacing: -0.025em;
  color: var(--paper-high);
  margin: 0 0 18px;
  text-wrap: balance;
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 500;
  color: var(--bronze); letter-spacing: -0.015em;
}
.section-sub { color: var(--paper-muted); font-size: 15px; line-height: 1.6; max-width: 620px; text-wrap: pretty; }

/* ============================================================
   ORDER-BOOK MATRIX — the "Private Marketplace" snippet
   ============================================================ */
.book {
  border-top: 1px solid var(--hair-soft);
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(197,168,128,0.03) 0%, transparent 60%),
    var(--ink-canvas);
}
.book-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 104px 32px 96px;
}

.book-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 48px; margin-bottom: 56px;
}
.book-status {
  font-family: var(--font-mono); font-feature-settings: 'tnum' on;
  font-size: 12px; color: var(--paper-muted);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--hair-soft);
  border-radius: 4px;
  background: var(--ink-raised);
  white-space: nowrap;
}
.book-status .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--signal-up);
  box-shadow: 0 0 0 3px rgba(82,194,138,0.2);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Directory matrix — header */
.book-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border: 1px solid var(--hair-soft);
  border-radius: 6px;
  background: linear-gradient(180deg, #16191F 0%, #14161A 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
}
.book-grid::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(197,168,128,0.4) 50%, transparent 100%);
}

/* Left rail: company list */
.book-rail {
  border-right: 1px solid var(--hair-soft);
  display: flex; flex-direction: column;
}
.book-rail-head {
  font-family: var(--font-sans); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper-muted);
  padding: 16px 20px;
  border-bottom: 1px solid var(--hair-soft);
  display: flex; align-items: center; gap: 8px;
}
.book-company {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hair-soft);
  cursor: pointer;
  position: relative;
  transition: background var(--dur-micro) var(--ease-fluid);
}
.book-company:last-child { border-bottom: none; }
.book-company:hover { background: rgba(255,255,255,0.02); }
.book-company.active {
  background: var(--ink-panel);
}
.book-company.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--bronze);
  box-shadow: 0 0 14px rgba(197,168,128,0.5);
}
.book-co-logo {
  width: 34px; height: 34px; border-radius: 4px;
  background: var(--ink-hover);
  border: 1px solid var(--hair-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  color: var(--paper-high);
}
.book-co-meta { flex: 1; min-width: 0; }
.book-co-name { font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--paper-high); letter-spacing: -0.01em; }
.book-co-tkr {
  font-family: var(--font-mono); font-feature-settings: 'tnum' on;
  font-size: 11px; color: var(--paper-muted); margin-top: 3px; letter-spacing: 0.04em;
}
.book-co-px {
  font-family: var(--font-mono); font-feature-settings: 'tnum' on;
  font-size: 14px; font-weight: 500; color: var(--paper-high);
  text-align: right;
}
.book-co-d {
  font-family: var(--font-mono); font-feature-settings: 'tnum' on;
  font-size: 11px; font-weight: 500; margin-top: 3px; text-align: right;
}
.book-co-d.up   { color: var(--signal-up); }
.book-co-d.down { color: var(--signal-down); }

/* Right pane: matrix detail */
.book-pane { display: flex; flex-direction: column; }
.book-pane-head {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr 1.4fr;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--hair-soft);
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--paper-muted);
  text-transform: uppercase;
  background: rgba(255,255,255,0.012);
}
.book-pane-head > span:nth-child(2),
.book-pane-head > span:nth-child(3),
.book-pane-head > span:nth-child(4) { text-align: right; }
.book-pane-head > span:last-child   { text-align: right; }

.book-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr 1.4fr;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--hair-soft);
  transition: background var(--dur-micro) var(--ease-fluid);
}
.book-row:last-child { border-bottom: none; }
.book-row:hover { background: rgba(255,255,255,0.018); }

.br-co { display: flex; align-items: center; gap: 14px; }
.br-co-logo {
  width: 36px; height: 36px; border-radius: 4px;
  background: var(--ink-hover);
  border: 1px solid var(--hair-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  color: var(--paper-high);
}
.br-co-stack { display: flex; flex-direction: column; gap: 4px; }
.br-co-name { font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--paper-high); letter-spacing: -0.01em; }
.br-co-tkr {
  font-family: var(--font-mono); font-feature-settings: 'tnum' on;
  font-size: 11px; color: var(--paper-muted); letter-spacing: 0.04em;
}
.br-co-tkr .series { color: var(--paper-dim); margin-left: 6px; }

.br-px {
  font-family: var(--font-mono); font-feature-settings: 'tnum' on;
  font-size: 18px; font-weight: 500; color: var(--paper-high); letter-spacing: -0.005em;
  text-align: right;
}
.br-px-sub {
  font-family: var(--font-mono); font-feature-settings: 'tnum' on;
  font-size: 11px; font-weight: 500; margin-top: 4px; text-align: right;
}
.br-px-sub.up   { color: var(--signal-up); }
.br-px-sub.down { color: var(--signal-down); }

.br-stack { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.br-count {
  font-family: var(--font-mono); font-feature-settings: 'tnum' on;
  font-size: 16px; font-weight: 500;
  color: var(--paper-high);
}
.br-count.bid { color: var(--signal-up); }
.br-count.ask { color: var(--signal-down); }
.br-count-meta {
  font-family: var(--font-mono); font-feature-settings: 'tnum' on;
  font-size: 11px; color: var(--paper-dim); letter-spacing: 0.02em;
}

.br-action { display: flex; justify-content: flex-end; }
.btn-alloc {
  font-family: var(--font-sans); font-size: 12px; font-weight: 500;
  color: var(--bronze);
  background: transparent;
  border: 1px solid rgba(197,168,128,0.4);
  border-radius: 4px;
  padding: 9px 16px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background var(--dur-micro) var(--ease-fluid), border-color var(--dur-micro) var(--ease-fluid), box-shadow var(--dur-micro) var(--ease-fluid);
  white-space: nowrap;
}
.btn-alloc:hover {
  background: rgba(197,168,128,0.1);
  border-color: var(--bronze);
  box-shadow: 0 0 0 1px rgba(197,168,128,0.3), 0 0 18px -4px rgba(197,168,128,0.35);
}
.btn-alloc svg { transition: transform var(--dur-micro) var(--ease-fluid); }
.btn-alloc:hover svg { transform: translateX(2px); }

/* Order-book deep dive — bids/asks ladder */
.book-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--hair-soft);
  background: rgba(15,17,21,0.4);
}
.book-side {
  padding: 18px 24px 22px;
}
.book-side.bids { border-right: 1px solid var(--hair-soft); }
.book-side-head {
  font-family: var(--font-sans); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper-muted);
  margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.book-side-head .label { display: inline-flex; align-items: center; gap: 8px; }
.book-side-head .label .dot {
  width: 5px; height: 5px; border-radius: 999px;
}
.book-side.bids .label .dot { background: var(--signal-up); }
.book-side.asks .label .dot { background: var(--signal-down); }
.book-side-head .total {
  font-family: var(--font-mono); font-feature-settings: 'tnum' on;
  font-size: 11px; color: var(--paper-muted); letter-spacing: 0.04em;
}
.book-ladder {
  display: flex; flex-direction: column; gap: 4px;
}
.book-ladder-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  font-family: var(--font-mono); font-feature-settings: 'tnum' on;
  font-size: 13px;
  padding: 6px 0;
  position: relative;
}
.book-ladder-row > .px { font-weight: 500; }
.book-ladder-row > .sz { color: var(--paper-body); text-align: center; }
.book-ladder-row > .cum { color: var(--paper-dim); text-align: right; }
.book-side.bids .px { color: var(--signal-up); }
.book-side.asks .px { color: var(--signal-down); }
.book-ladder-row .bar {
  position: absolute;
  top: 2px; bottom: 2px;
  height: auto;
  pointer-events: none;
  z-index: 0;
  border-radius: 2px;
}
.book-side.bids .bar {
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(82,194,138,0.10));
}
.book-side.asks .bar {
  left: 0;
  background: linear-gradient(90deg, rgba(229,96,77,0.10), transparent);
}
.book-ladder-row > * { position: relative; z-index: 1; }

/* ============================================================
   INVESTMENT SOLUTIONS
   ============================================================ */
.solutions {
  border-top: 1px solid var(--hair-soft);
  background: var(--ink-canvas);
}
.solutions-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 104px 32px 96px;
  position: relative;
  overflow: hidden;
}
.solutions-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 320'><g fill='%23C5A880'><circle cx='30' cy='42' r='1.4'/><circle cx='88' cy='110' r='1.1'/><circle cx='28' cy='220' r='1.5'/><circle cx='160' cy='66' r='1.2'/><circle cx='148' cy='196' r='1.3'/><circle cx='220' cy='28' r='1.2'/><circle cx='258' cy='110' r='1.4'/><circle cx='320' cy='180' r='1.1'/><circle cx='372' cy='40' r='1.2'/><circle cx='400' cy='240' r='1.5'/><circle cx='60' cy='280' r='1.1'/><circle cx='240' cy='280' r='1.3'/><circle cx='430' cy='130' r='1.3'/><circle cx='190' cy='130' r='1.0'/><circle cx='90' cy='160' r='1.2'/></g><g fill='%23D6D3CC' opacity='0.45'><circle cx='130' cy='30' r='0.9'/><circle cx='200' cy='160' r='1.0'/><circle cx='270' cy='220' r='0.8'/><circle cx='350' cy='90' r='0.9'/><circle cx='440' cy='200' r='0.8'/><circle cx='70' cy='70' r='1.0'/></g></svg>");
  background-size: 520px 340px;
  background-repeat: repeat;
  opacity: 0.45;
  -webkit-mask-image: radial-gradient(ellipse 55% 70% at 0% 100%, black 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 70% at 0% 100%, black 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.solutions-inner > * { position: relative; z-index: 1; }

/* tab row */
.sol-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 48px auto 0;
  border-bottom: 1px solid var(--hair-soft);
  max-width: 920px;
  position: relative;
}
.sol-tab {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--paper-muted);
  background: transparent;
  border: none;
  padding: 14px 24px;
  cursor: pointer;
  position: relative;
  margin-bottom: -1px;
  transition: color var(--dur-micro) var(--ease-fluid);
}
.sol-tab::after {
  content: '';
  position: absolute;
  left: 24px; right: 24px;
  bottom: 0;
  height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transition: transform var(--dur-std) var(--ease-fluid);
}
.sol-tab:hover { color: var(--paper-high); }
.sol-tab.active { color: var(--bronze); }
.sol-tab.active::after { transform: scaleX(1); }

/* card grid */
.sol-grid {
  display: grid;
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--hair-soft);
  border-radius: 6px;
  background: linear-gradient(180deg, #16191F 0%, #14161A 100%);
  position: relative;
}
.sol-grid::before {
  content: '';
  position: absolute; left: 32px; right: 32px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(197,168,128,0.45) 50%, transparent 100%);
}
.sol-grid-1 { grid-template-columns: 1fr; }
.sol-grid-2 { grid-template-columns: 1fr 1fr; }
.sol-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

.sol-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px 28px;
  border-right: 1px solid var(--hair-soft);
  position: relative;
  transition: background var(--dur-micro) var(--ease-fluid);
}
.sol-card:last-child { border-right: none; }
.sol-card:hover { background: rgba(255,255,255,0.012); }

.sol-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: var(--ink-pressed);
  border: 1px solid var(--hair-soft);
}
.sol-image-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(197,168,128,0.4) 50%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}
/* Bronze-tinted blend overlay applied to dropped imagery — gives the
   "treated B&W with bronze highlights" feel the design system asks for */
.sol-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 70% 30%, rgba(197,168,128,0.10) 0%, transparent 70%),
    linear-gradient(180deg, transparent 40%, rgba(15,17,21,0.45) 100%);
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: normal;
}
.sol-image-slot {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 0;
  background: transparent;
}

.sol-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  color: var(--paper-high);
  letter-spacing: -0.015em;
  margin: 4px 0 0;
}
.sol-body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--paper-muted);
  margin: 0;
  flex: 1;
}
.sol-rule {
  height: 1px;
  background: var(--hair-soft);
  margin: 4px 0;
}
.sol-opts {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--bronze);
}
.sol-opt {
  color: var(--bronze);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color var(--dur-micro) var(--ease-fluid);
}
.sol-opt:hover { border-bottom-color: var(--bronze); }
.sol-opt.active {
  border-bottom-color: var(--bronze);
}
.sol-opts-sep { color: var(--paper-faint); font-weight: 400; }

/* Popover anchored to its sol-card */
.sol-card { position: relative; }
.sol-popover {
  position: absolute;
  left: 24px; right: 24px;
  bottom: 100px;
  z-index: 5;
  background: linear-gradient(180deg, #181B22 0%, #14161A 100%);
  border: 1px solid var(--hair-strong);
  border-radius: 6px;
  padding: 22px 22px 20px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 18px 44px -12px rgba(0,0,0,0.7),
    0 0 0 1px rgba(197,168,128,0.18);
  animation: solPop 220ms var(--ease-fluid);
}
.sol-popover::before {
  content: '';
  position: absolute;
  top: 0; left: 22px; right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(197,168,128,0.55) 50%, transparent 100%);
}
.sol-popover::after {
  /* downward-pointing tail toward the link row */
  content: '';
  position: absolute;
  bottom: -7px;
  left: 28px;
  width: 12px; height: 12px;
  background: linear-gradient(135deg, #14161A 50%, transparent 50%);
  border-right: 1px solid var(--hair-strong);
  border-bottom: 1px solid var(--hair-strong);
  transform: rotate(45deg);
}
@keyframes solPop {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sol-popover-close {
  position: absolute;
  top: 10px; right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--paper-muted);
  padding: 4px;
  border-radius: 3px;
  transition: background var(--dur-micro) var(--ease-fluid), color var(--dur-micro) var(--ease-fluid);
}
.sol-popover-close:hover { background: var(--ink-panel); color: var(--paper-high); }
.sol-popover-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--bronze);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.sol-popover-body {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--paper-body);
  margin: 0 0 14px;
}
.sol-popover-list {
  list-style: none;
  padding: 14px 14px 12px;
  margin: 0;
  background: var(--ink-pressed);
  border: 1px solid var(--hair-soft);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sol-popover-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--paper-body);
}
.sol-popover-bullet {
  flex-shrink: 0;
  width: 12px;
  height: 1px;
  background: var(--bronze);
  transform: translateY(-3px);
}

@media (max-width: 1100px) {
  .sol-popover {
    left: -40px;
    right: -40px;
    min-width: 260px;
  }
  .sol-popover::after { display: none; }
}

.sol-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 56px;
}
.sol-foot-note {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--paper-muted);
  margin: 0;
}
.sol-foot-note a {
  color: var(--bronze);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color var(--dur-micro) var(--ease-fluid);
}
.sol-foot-note a:hover { border-bottom-color: var(--bronze); }

@media (max-width: 1100px) {
  .sol-card { padding: 24px 18px 18px; }
  .sol-tabs { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .sol-grid-3 { grid-template-columns: 1fr; }
  .sol-card { padding: 22px 18px 18px; }
  .sol-tab { padding: 10px 14px; font-size: 12px; }
  .sol-tabs { gap: 0; }
}
.how {
  max-width: 1320px;
  margin: 0 auto;
  padding: 96px 32px 96px;
  border-top: 1px solid var(--hair-soft);
  position: relative;
  overflow: hidden;
}
.how::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 320'><g fill='%23C5A880'><circle cx='30' cy='42' r='1.4'/><circle cx='88' cy='110' r='1.1'/><circle cx='28' cy='220' r='1.5'/><circle cx='160' cy='66' r='1.2'/><circle cx='148' cy='196' r='1.3'/><circle cx='220' cy='28' r='1.2'/><circle cx='258' cy='110' r='1.4'/><circle cx='320' cy='180' r='1.1'/><circle cx='372' cy='40' r='1.2'/><circle cx='400' cy='240' r='1.5'/><circle cx='60' cy='280' r='1.1'/><circle cx='240' cy='280' r='1.3'/><circle cx='430' cy='130' r='1.3'/><circle cx='190' cy='130' r='1.0'/><circle cx='90' cy='160' r='1.2'/></g><g fill='%23D6D3CC' opacity='0.45'><circle cx='130' cy='30' r='0.9'/><circle cx='200' cy='160' r='1.0'/><circle cx='270' cy='220' r='0.8'/><circle cx='350' cy='90' r='0.9'/><circle cx='440' cy='200' r='0.8'/><circle cx='70' cy='70' r='1.0'/></g></svg>");
  background-size: 480px 320px;
  background-repeat: repeat;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 65% 80% at 100% 0%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 80% at 100% 0%, black 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.how > * { position: relative; z-index: 1; }

/* Animated radar scan — descends from above and lands on the white
   hairline above STEP 01/02/03. Once it reaches the border-top, the
   line is held briefly then fades out and the cycle restarts. */
@keyframes scanLand {
  0%   { transform: translateY(-260px); opacity: 0; }
  12%  { opacity: 0.55; }
  78%  { transform: translateY(0); opacity: 0.55; }
  88%  { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
.how-scan {
  position: absolute;
  left: 0; right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(245,242,236,0.05) 10%,
    rgba(245,242,236,0.7) 50%,
    rgba(245,242,236,0.05) 90%,
    transparent 100%);
  z-index: 2;
  pointer-events: none;
  animation: scanLand 5.5s var(--ease-fluid) infinite;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--hair-soft);
  position: relative;
}
.how-step {
  display: flex; flex-direction: column; gap: 14px;
  padding: 40px 32px 8px 0;
  border-right: 1px solid var(--hair-soft);
}
.how-step:last-child { border-right: none; padding-right: 0; }
.how-step:not(:first-child) { padding-left: 32px; }
.how-icon {
  color: var(--paper-muted);
  display: block;
  margin-bottom: 4px;
}
.how-n {
  font-family: var(--font-mono); font-feature-settings: 'tnum' on;
  font-size: 13px; color: var(--bronze); font-weight: 500;
  letter-spacing: 0.08em;
}
.how-rule { width: 36px; height: 1px; background: var(--bronze); margin: 4px 0 8px; }
.how-title { font-family: var(--font-sans); font-weight: 600; font-size: 22px; color: var(--paper-high); letter-spacing: -0.015em; margin: 0; }
.how-body { color: var(--paper-muted); font-size: 14.5px; line-height: 1.6; margin: 0; max-width: 360px; }

/* ============================================================
   TRUST FOOTER  — FINRA / SIPC anchor
   ============================================================ */
.trust {
  border-top: 1px solid var(--hair-soft);
  background:
    radial-gradient(50% 100% at 50% 100%, rgba(197,168,128,0.06) 0%, transparent 60%),
    var(--ink-canvas);
}
.trust-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 96px 32px 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
}
.trust-h {
  font-family: var(--font-sans); font-weight: 600;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.1; letter-spacing: -0.025em;
  color: var(--paper-high);
  margin: 18px 0 16px;
}
.trust-h em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--bronze); }
.trust-sub { color: var(--paper-muted); font-size: 15px; line-height: 1.6; margin: 0; max-width: 520px; }

.trust-badges {
  display: flex; flex-direction: column; gap: 14px;
}
.trust-badge {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--hair-soft);
  border-radius: 6px;
  background: var(--ink-raised);
  transition: border-color var(--dur-micro) var(--ease-fluid);
}
.trust-badge:hover { border-color: var(--hair-strong); }
.trust-badge-mark {
  width: 44px; height: 44px;
  border: 1px solid var(--hair-soft);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 600; font-size: 12px;
  color: var(--paper-muted);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.trust-badge-text { display: flex; flex-direction: column; gap: 3px; }
.trust-badge-h {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--paper-high);
}
.trust-badge-d { font-family: var(--font-sans); font-size: 11.5px; color: var(--paper-dim); line-height: 1.5; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--hair-soft);
  padding: 56px 32px 32px;
  background: var(--ink-canvas);
}
.footer-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
}
.footer-brand { max-width: 280px; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand-row .mark-svg { width: 24px; height: 24px; }
.footer-brand-row .word { font-family: var(--font-sans); font-weight: 500; font-size: 15px; color: var(--paper-high); letter-spacing: -0.02em; }
.footer-tag { color: var(--paper-muted); font-size: 12.5px; margin: 0 0 14px; line-height: 1.55; }
.footer-addr { color: var(--paper-dim); font-size: 11.5px; line-height: 1.55; margin: 0; font-family: var(--font-mono); font-feature-settings: 'tnum' on; letter-spacing: 0.02em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-h { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-muted); margin-bottom: 16px; }
.footer-col a {
  color: var(--paper-body);
  font-size: 13px;
  transition: color var(--dur-micro) var(--ease-fluid);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.footer-col a:hover { color: var(--paper-high); border-bottom-color: var(--bronze); }
.footer-base {
  max-width: 1320px;
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--hair-soft);
  display: flex; gap: 48px; align-items: flex-start;
  color: var(--paper-dim); font-size: 11px; line-height: 1.6;
}
.footer-fineprint { flex: 1; max-width: 740px; }

/* ============================================================
   AUTH MODAL
   ============================================================ */
.modal-scrim {
  position: fixed; inset: 0;
  background: rgba(15,17,21,0.78);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  animation: fadein 220ms var(--ease-fluid);
  padding: 24px;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes slidein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.modal {
  width: 460px; max-width: 100%;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(197,168,128,0.05) 0%, transparent 60%),
    linear-gradient(180deg, #16191F 0%, #14161A 100%);
  border: 1px solid var(--hair-strong);
  border-radius: 8px;
  padding: 32px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 20px 60px -16px rgba(0,0,0,0.7);
  position: relative;
  animation: slidein 260ms var(--ease-fluid);
}
.modal::before {
  content: '';
  position: absolute; left: 32px; right: 32px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(197,168,128,0.6) 50%, transparent 100%);
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; cursor: pointer;
  color: var(--paper-muted);
  padding: 6px; border-radius: 4px;
  transition: background var(--dur-micro) var(--ease-fluid), color var(--dur-micro) var(--ease-fluid);
}
.modal-close:hover { background: var(--ink-panel); color: var(--paper-high); }
.modal-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.modal-brand .mark-svg { width: 32px; height: 32px; }
.modal-brand .word { font-family: var(--font-sans); font-weight: 500; font-size: 15px; color: var(--paper-high); letter-spacing: -0.02em; }
.modal-title { font-family: var(--font-sans); font-weight: 600; font-size: 22px; color: var(--paper-high); letter-spacing: -0.02em; margin: 0 0 8px; }
.modal-sub { color: var(--paper-muted); font-size: 13px; line-height: 1.55; margin: 0 0 24px; }
.modal-tabs {
  display: flex; gap: 0;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--hair-soft);
}
.modal-tab {
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  color: var(--paper-muted);
  padding: 10px 16px 12px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: color var(--dur-micro) var(--ease-fluid), border-color var(--dur-micro) var(--ease-fluid);
}
.modal-tab.active { color: var(--bronze); border-bottom-color: var(--bronze); }
.modal-tab:hover { color: var(--paper-high); }
.modal-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.modal-field label { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-muted); }
.modal-input {
  background: var(--ink-raised);
  border: 1px solid var(--hair-soft);
  border-radius: 4px;
  height: 42px; padding: 0 12px;
  color: var(--paper-high);
  font-family: var(--font-sans); font-size: 14px;
  outline: none;
  transition: border-color var(--dur-micro) var(--ease-fluid), box-shadow var(--dur-micro) var(--ease-fluid);
}
.modal-input:focus { border-color: var(--bronze); box-shadow: inset 0 0 0 1px rgba(197,168,128,0.5); }

.modal-input-wrap { position: relative; display: flex; }
.modal-input-wrap .modal-input { width: 100%; padding-right: 42px; }
.modal-input-toggle {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--paper-muted);
  padding: 8px; border-radius: 4px;
  display: inline-flex;
  transition: color var(--dur-micro) var(--ease-fluid);
}
.modal-input-toggle:hover { color: var(--paper-high); }

.btn-luminous {
  border: none; cursor: pointer;
  background: linear-gradient(180deg, #EBD4B0 0%, #C5A880 50%, #A88656 100%);
  color: #1A130A;
  font-family: var(--font-sans); font-weight: 600;
  font-size: 14px; letter-spacing: 0.005em;
  border-radius: 6px;
  height: 46px; padding: 0 22px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    0 0 0 1px rgba(197,168,128,0.55),
    0 14px 40px -4px rgba(197,168,128,0.55),
    0 0 64px -8px rgba(197,168,128,0.45);
  transition: transform 80ms var(--ease-fluid), box-shadow var(--dur-micro) var(--ease-fluid);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-luminous:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    0 0 0 1px rgba(197,168,128,0.7),
    0 18px 56px -4px rgba(197,168,128,0.75),
    0 0 96px -8px rgba(197,168,128,0.6);
}
.btn-luminous:active { transform: scale(0.985); }

.modal-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.modal-link { color: var(--paper-muted); font-size: 12px; }
.modal-link:hover { color: var(--bronze); }
.modal-disclaim { color: var(--paper-dim); font-size: 11px; line-height: 1.6; margin-top: 22px; }

/* ============================================================
   ENTER ANIMATIONS
   ============================================================ */
@keyframes rowin {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.book-row { animation: rowin 360ms var(--ease-fluid) backwards; }
.book-row:nth-child(1) { animation-delay: 80ms; }
.book-row:nth-child(2) { animation-delay: 160ms; }
.book-row:nth-child(3) { animation-delay: 240ms; }

.hero-title, .hero-sub, .hero-search, .hero-ticker {
  animation: rowin 520ms var(--ease-fluid) backwards;
}
.hero-sub      { animation-delay: 120ms; }
.hero-search   { animation-delay: 200ms; }
.hero-ticker   { animation-delay: 320ms; }

/* count-up flicker on tick prices */
@keyframes flicker {
  0%   { opacity: 0.5; }
  100% { opacity: 1; }
}
.htick-px { animation: flicker 600ms var(--ease-fluid); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .topnav-items { display: none; }
  .hero-ticker { grid-template-columns: repeat(2, 1fr); }
  .htick { border-bottom: 1px solid var(--hair-soft); }
  .htick:nth-child(2n) { border-right: none; }
  .htick:nth-last-child(-n+2) { border-bottom: none; }
  .book-grid { grid-template-columns: 1fr; }
  .book-rail { border-right: none; border-bottom: 1px solid var(--hair-soft); }
  .how-grid { grid-template-columns: 1fr; }
  .how-step { border-right: none; border-bottom: 1px solid var(--hair-soft); padding: 32px 0; }
  .how-step:not(:first-child) { padding-left: 0; }
  .how-step:last-child { border-bottom: none; }
  .trust-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .book-pane-head, .book-row {
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1.4fr;
  }
}

@media (max-width: 720px) {
  .hero-ticker { grid-template-columns: 1fr; }
  .htick { border-right: none; border-bottom: 1px solid var(--hair-soft); }
  .htick:last-child { border-bottom: none; }
  .book-pane-head { display: none; }
  .book-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }
  .br-stack, .br-px { align-items: flex-start; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }
  .footer-base { flex-direction: column; gap: 16px; }
  .footer-fineprint { max-width: 100%; }
  .topnav-actions .topnav-login { display: none; }
}
