/* =========================================================================
   LIMEN MARKETS PRIVATE — Pre-IPO Marketplace
   Design system: editorial private markets, Apple-iOS rigor.
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Surfaces */
  --surface-0: #F7F4EE;          /* warm paper */
  --surface-1: #FFFFFF;
  --surface-2: #FBF9F4;
  --surface-ink: #0B0B0B;
  --surface-ink-elev: #161616;
  --surface-ink-2: #1F1F1E;

  /* Ink (text) */
  --ink-900: #0A0A0A;
  --ink-800: #1A1A18;
  --ink-700: #2C2C2A;
  --ink-500: #6B6B66;
  --ink-400: #8E8D86;
  --ink-300: #C4C2BC;
  --ink-200: #DEDBD3;
  --ink-100: #ECEAE3;

  /* On-dark ink */
  --paper-100: #F5F2EC;
  --paper-300: #C9C5BB;
  --paper-500: #8A8780;
  --paper-700: #4A4844;

  /* Accents */
  --gold-700: #8E6E3A;
  --gold-500: #B8935A;
  --gold-300: #DCC59A;
  --gold-100: #F2E9D6;

  /* Semantic */
  --up: #1B7C3D;
  --up-bg: #E6F1E8;
  --down: #B22F26;
  --down-bg: #F4E2E0;

  /* Hairlines & elevation */
  --hair: rgba(10,10,10,0.10);
  --hair-strong: rgba(10,10,10,0.18);
  --hair-dark: rgba(255,255,255,0.10);
  --hair-dark-strong: rgba(255,255,255,0.18);

  --shadow-1: 0 1px 2px rgba(10,10,10,0.04);
  --shadow-2: 0 6px 24px -8px rgba(10,10,10,0.10), 0 2px 6px rgba(10,10,10,0.04);
  --shadow-3: 0 24px 48px -12px rgba(10,10,10,0.18), 0 8px 16px rgba(10,10,10,0.06);

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Type scale */
  --text-12: 12px;
  --text-13: 13px;
  --text-14: 14px;
  --text-15: 15px;
  --text-16: 16px;
  --text-18: 18px;
  --text-21: 21px;
  --text-24: 24px;
  --text-32: 32px;
  --text-44: 44px;
  --text-60: 60px;
  --text-84: 84px;
  --text-120: 120px;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);

  /* Layout */
  --gutter: clamp(20px, 4vw, 40px);
  --container: 1280px;
  --container-narrow: 980px;

  /* Z */
  --z-nav: 100;
  --z-overlay: 200;
  --z-modal: 1000;
}

/* ---------- 2. Reset / Base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--text-16);
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img, video, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease-out); }
a:hover { color: var(--ink-500); }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }

/* ---------- 3. Typography ----------------------------------------------- */
.serif {
  font-family: "Instrument Serif", "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-feature-settings: "liga", "calt";
}
.serif-italic { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; }
.mono {
  font-family: "JetBrains Mono", "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, monospace;
  font-feature-settings: "ss01", "tnum";
}

.eyebrow {
  font-family: "JetBrains Mono", "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 500;
}
.eyebrow--gold { color: var(--gold-700); }
.eyebrow--paper { color: var(--paper-500); }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }

.display-1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.025em;
}
.display-2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.display-3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.h-section {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.h-card { font-size: var(--text-21); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-700);
  max-width: 60ch;
  letter-spacing: -0.005em;
}
.body { font-size: var(--text-16); line-height: 1.6; color: var(--ink-700); }
.body--lg { font-size: var(--text-18); line-height: 1.6; color: var(--ink-700); }
.muted { color: var(--ink-500); }
.cap { text-transform: uppercase; letter-spacing: 0.06em; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- 4. Layout primitives ---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(72px, 10vw, 144px); }
.section--sm { padding-block: clamp(48px, 6vw, 80px); }
.section--lg { padding-block: clamp(96px, 12vw, 180px); }

.section--ink { background: var(--surface-ink); color: var(--paper-100); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--paper-100); }
.section--ink .body, .section--ink .lede { color: var(--paper-300); }
.section--ink .muted { color: var(--paper-500); }

.section--paper { background: var(--surface-1); }

.grid { display: grid; gap: 24px; }
.flex { display: flex; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.stack > * + * { margin-top: var(--stack-y, 16px); }

.divider {
  height: 1px;
  background: var(--hair);
  border: 0;
  margin: 0;
}
.section--ink .divider { background: var(--hair-dark); }

/* ---------- 5. Buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding-inline: 22px;
  border-radius: var(--r-pill);
  font-size: var(--text-15);
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease-out), background .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 16px; height: 16px; flex: none; }

.btn--primary { background: var(--ink-900); color: var(--paper-100); }
.btn--primary:hover { background: var(--ink-700); color: var(--paper-100); }

.btn--ghost { background: transparent; color: var(--ink-900); border-color: var(--hair-strong); }
.btn--ghost:hover { border-color: var(--ink-900); color: var(--ink-900); }

.btn--paper { background: var(--paper-100); color: var(--ink-900); }
.btn--paper:hover { background: #FFF; }

.btn--ghost-dark { background: transparent; color: var(--paper-100); border-color: var(--hair-dark-strong); }
.btn--ghost-dark:hover { border-color: var(--paper-100); color: var(--paper-100); }

.btn--gold { background: var(--gold-500); color: #1A1304; border-color: transparent; }
.btn--gold:hover { background: var(--gold-300); color: #1A1304; }

.btn--sm { height: 36px; padding-inline: 16px; font-size: var(--text-13); }
.btn--lg { height: 56px; padding-inline: 28px; font-size: var(--text-16); }

.link-inline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-900);
  font-weight: 500;
  font-size: var(--text-15);
}
.link-inline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: .35;
  transition: opacity .2s var(--ease-out), transform .25s var(--ease-out);
  transform-origin: left;
}
.link-inline:hover::after { opacity: 1; transform: scaleX(1.05); }
.section--ink .link-inline { color: var(--paper-100); }

/* ---------- 6. Nav ------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  background: rgba(247, 244, 238, 0.78);
  border-bottom: 1px solid var(--hair);
}
.nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 64px;
  gap: 24px;
}
.nav__logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.nav__logo b { font-weight: 400; }
.nav__logo span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-500);
  border: 1px solid var(--hair-strong);
  padding: 3px 7px;
  border-radius: var(--r-pill);
  align-self: center;
}
.nav__links {
  display: flex;
  justify-content: center;
  gap: 4px;
}
.nav__links a {
  font-size: var(--text-14);
  color: var(--ink-700);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.nav__links a:hover { color: var(--ink-900); background: var(--ink-100); }
.nav__links a.is-active { color: var(--ink-900); background: var(--ink-100); }
.nav__cta { display: flex; gap: 8px; align-items: center; }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hair-strong);
  align-items: center; justify-content: center;
}
.nav__burger svg { width: 18px; height: 18px; }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--hair);
  padding: 20px var(--gutter) 28px;
  background: var(--surface-0);
}
.nav-mobile a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  font-size: var(--text-18);
  color: var(--ink-900);
}
.nav-mobile .nav-mobile__cta { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.nav-mobile.is-open { display: block; }

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
}

/* ---------- 7. Ticker --------------------------------------------------- */
.ticker {
  background: var(--surface-ink);
  color: var(--paper-100);
  border-bottom: 1px solid var(--hair-dark);
  overflow: hidden;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  height: 36px;
  display: flex;
  align-items: center;
  position: relative;
}
.ticker::before, .ticker::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--surface-ink) 0%, transparent 100%); }
.ticker::after  { right: 0; background: linear-gradient(270deg, var(--surface-ink) 0%, transparent 100%); }

.ticker__track {
  display: inline-flex;
  white-space: nowrap;
  animation: tickerScroll 90s linear infinite;
  will-change: transform;
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-inline: 22px;
  border-right: 1px solid var(--hair-dark);
}
.ticker__sym { color: var(--paper-100); font-weight: 500; }
.ticker__px  { color: var(--paper-300); }
.ticker__chg { font-size: 11px; padding: 2px 6px; border-radius: 4px; }
.ticker__chg--up   { color: #79D89B; background: rgba(27,124,61,0.15); }
.ticker__chg--down { color: #FF8A80; background: rgba(178,47,38,0.18); }

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation-duration: 240s; }
}

/* ---------- 8. Hero ----------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(80px, 12vw, 160px) clamp(64px, 10vw, 120px);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; }
.hero__head { display: grid; gap: 28px; max-width: 1100px; }
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-700);
}
.hero__title-dim {
  display: block;
  color: var(--ink-300);
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

.hero__stats {
  margin-top: clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.hero__stat {
  background: var(--surface-1);
  padding: 24px 24px 28px;
  display: flex; flex-direction: column; gap: 8px;
}
.hero__stat .num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1;
}
.hero__stat .lab { font-size: var(--text-13); color: var(--ink-500); }

@media (max-width: 880px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

/* Decorative grid lines */
.grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--hair) 1px, transparent 1px);
  background-size: calc((100% - 2 * var(--gutter)) / 12) 100%;
  background-position: var(--gutter) 0;
  opacity: .55;
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

/* ---------- 9. Featured Companies (Home) -------------------------------- */
.feat {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.feat__cell {
  background: var(--surface-1);
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 12px;
  grid-column: span 3;
  min-height: 220px;
  position: relative;
  transition: background .25s var(--ease-out);
}
.feat__cell:hover { background: var(--surface-2); }
.feat__cell--feature {
  grid-column: span 6;
  grid-row: span 2;
  padding: 32px;
  min-height: 0;
}
.feat__head {
  display: flex; align-items: center; gap: 12px;
}
.feat__head .name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.feat__cell--feature .feat__head .name {
  font-size: clamp(36px, 3vw, 44px);
}
.feat__cell .meta {
  font-size: var(--text-12);
  color: var(--ink-500);
}
.feat__price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.feat__price .px {
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.feat__cell--feature .feat__price .px { font-size: 36px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  background: var(--ink-100);
  color: var(--ink-700);
}
.chip--up   { color: var(--up); background: var(--up-bg); }
.chip--down { color: var(--down); background: var(--down-bg); }
.chip--gold { color: var(--gold-700); background: var(--gold-100); }
.chip--ink  { color: var(--paper-100); background: var(--surface-ink-elev); border: 1px solid var(--hair-dark); }
.chip--outline { background: transparent; border: 1px solid var(--hair-strong); color: var(--ink-700); }

.section--ink .chip--outline { border-color: var(--hair-dark-strong); color: var(--paper-300); }

@media (max-width: 1080px) {
  .feat__cell { grid-column: span 6; }
  .feat__cell--feature { grid-column: span 12; grid-row: span 1; }
}
@media (max-width: 640px) {
  .feat__cell, .feat__cell--feature { grid-column: span 12; }
}

/* ---------- 10. Logo monograms ----------------------------------------- */
.mono-logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--ink-100);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  flex: none;
}
.mono-logo--lg { width: 64px; height: 64px; font-size: 30px; border-radius: 16px; }
.mono-logo--sm { width: 32px; height: 32px; font-size: 16px; border-radius: 8px; }

.mono-logo[data-tone="ink"]  { background: var(--surface-ink); color: var(--paper-100); }
.mono-logo[data-tone="gold"] { background: var(--gold-100); color: var(--gold-700); }
.mono-logo[data-tone="sage"] { background: #E2EBDF; color: #2F5230; }
.mono-logo[data-tone="rose"] { background: #F5E4DF; color: #8E3B22; }
.mono-logo[data-tone="sky"]  { background: #DDE6EE; color: #2C3E55; }
.mono-logo[data-tone="violet"] { background: #E5E0EE; color: #3F2D6E; }
.mono-logo[data-tone="amber"]  { background: #F5E9D2; color: #6B4B12; }
.mono-logo[data-tone="moss"]   { background: #DCE5DC; color: #2F4D3A; }

/* ---------- 11. Marquee row of company logos --------------------------- */
.logo-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1px;
  background: var(--hair);
  border-block: 1px solid var(--hair);
}
.logo-row__cell {
  background: var(--surface-0);
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink-700);
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.logo-row__cell:hover { background: var(--surface-1); color: var(--ink-900); }
@media (max-width: 1080px) { .logo-row { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px)  { .logo-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 12. Pillars / How it works --------------------------------- */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.pillar {
  display: flex; flex-direction: column; gap: 16px;
}
.pillar__num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-500);
}
.pillar__title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- 13. Marketplace listing ------------------------------------ */
.market {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
}
.market__filters { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 24px; }
.filter-group { display: flex; flex-direction: column; gap: 10px; }
.filter-group h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 500;
  margin-bottom: 4px;
}
.filter-pill {
  display: inline-flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hair);
  background: var(--surface-1);
  font-size: var(--text-13);
  color: var(--ink-700);
  cursor: pointer;
  transition: all .15s var(--ease-out);
}
.filter-pill:hover { border-color: var(--ink-700); color: var(--ink-900); }
.filter-pill.is-active { background: var(--ink-900); color: var(--paper-100); border-color: var(--ink-900); }
.filter-pill .ct { color: inherit; opacity: .55; font-family: "JetBrains Mono", monospace; font-size: 11px; }

.market__main { min-width: 0; }
.market__bar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.search {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 16px;
  height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hair-strong);
  background: var(--surface-1);
  width: min(380px, 100%);
}
.search input { flex: 1; border: 0; background: transparent; outline: 0; font-size: var(--text-14); }
.search svg { width: 16px; height: 16px; color: var(--ink-500); }

.sort {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 16px;
  height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hair-strong);
  background: var(--surface-1);
  font-size: var(--text-13);
  color: var(--ink-700);
}
.sort select {
  border: 0; background: transparent; outline: 0;
  font-size: var(--text-13); color: var(--ink-900); font-weight: 500;
  appearance: none; -webkit-appearance: none; padding-right: 4px;
}

.tbl {
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-1);
}
.tbl__head, .tbl__row {
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr 1fr 1fr 80px;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
}
.tbl__head {
  background: var(--surface-2);
  border-bottom: 1px solid var(--hair);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 500;
}
.tbl__row { border-top: 1px solid var(--hair); transition: background .15s var(--ease-out); }
.tbl__row:first-of-type { border-top: 0; }
.tbl__row:hover { background: var(--surface-2); }

.tbl__co { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tbl__co .name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.tbl__co .sub { font-size: var(--text-12); color: var(--ink-500); }
.tbl__co .ttl { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tbl__cell { font-family: "JetBrains Mono", monospace; font-size: var(--text-14); color: var(--ink-700); font-variant-numeric: tabular-nums; }
.tbl__cell--lead { color: var(--ink-900); font-weight: 500; font-size: var(--text-15); }
.tbl__cta { display: flex; justify-content: flex-end; }

@media (max-width: 1024px) {
  .market { grid-template-columns: 1fr; }
  .market__filters { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .filter-group { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .filter-group h4 { width: 100%; }
}
@media (max-width: 720px) {
  .tbl__head { display: none; }
  .tbl__row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "co px"
      "co chg"
      "val val"
      "sec cta";
    row-gap: 10px;
  }
  .tbl__co { grid-area: co; }
  .tbl__row > .tbl__cell:nth-child(2) { grid-area: px; text-align: right; font-size: var(--text-18); color: var(--ink-900); font-weight: 500; }
  .tbl__row > .tbl__cell:nth-child(3) { grid-area: chg; text-align: right; }
  .tbl__row > .tbl__cell:nth-child(4) { grid-area: val; }
  .tbl__row > .tbl__cell:nth-child(4)::before { content: "Valuation · "; color: var(--ink-500); font-family: "JetBrains Mono", monospace; }
  .tbl__row > .tbl__cell:nth-child(5) { grid-area: sec; }
  .tbl__row > .tbl__cta { grid-area: cta; }
}

/* ---------- 14. Company detail page ------------------------------------ */
.co-hero { padding-block: clamp(48px, 7vw, 96px); }
.co-hero__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}
.co-hero__title { display: flex; align-items: center; gap: 20px; }
.co-hero__title h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: -0.025em;
  line-height: 0.96;
}
.co-hero__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.co-quote {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  background: var(--surface-1);
  overflow: hidden;
  margin-top: 32px;
}
.co-quote > div { padding: 24px; border-right: 1px solid var(--hair); }
.co-quote > div:last-child { border-right: 0; }
.co-quote .lab { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-500); font-family: "JetBrains Mono", monospace; }
.co-quote .val {
  margin-top: 6px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
}

.co-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  margin-top: 40px;
}
.co-card {
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  background: var(--surface-1);
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.co-card h3 { font-size: var(--text-18); font-weight: 500; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: var(--text-14); }
.kv .k { color: var(--ink-500); }
.kv .v { font-family: "JetBrains Mono", monospace; color: var(--ink-900); }

.chart {
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  background: var(--surface-1);
  padding: 24px;
  position: relative;
  min-height: 320px;
  overflow: hidden;
}
.chart svg { width: 100%; height: 320px; display: block; }
.chart__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 12px; }
.chart__rng { display: inline-flex; gap: 4px; }
.chart__rng button {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  color: var(--ink-500);
  letter-spacing: 0.06em;
}
.chart__rng button.is-active { background: var(--ink-900); color: var(--paper-100); }

@media (max-width: 960px) {
  .co-hero__row { grid-template-columns: 1fr; }
  .co-body { grid-template-columns: 1fr; }
  .co-quote { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .co-quote { grid-template-columns: 1fr; }
  .co-quote > div { border-right: 0; border-bottom: 1px solid var(--hair); }
  .co-quote > div:last-child { border-bottom: 0; }
}

/* ---------- 15. About page --------------------------------------------- */
.about-hero {
  padding-block: clamp(80px, 12vw, 160px) clamp(40px, 6vw, 80px);
}
.about-hero h1 { max-width: 18ch; }
.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 56px;
  align-items: start;
}
.about-cols p { margin: 0 0 16px; }
@media (max-width: 880px) { .about-cols { grid-template-columns: 1fr; gap: 16px; } }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hair-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.value {
  background: var(--surface-ink-elev);
  padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 240px;
}
.value h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 30px;
  letter-spacing: -0.015em;
}
@media (max-width: 880px) { .values { grid-template-columns: 1fr; } }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--surface-1);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.team-card__media {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #2A2622 0%, #0E0D0B 100%);
  position: relative;
  overflow: hidden;
}
/* Tone-tinted fallback gradients (visible if video doesn't load) */
.team-card__media[data-tone="amber"]  { background: linear-gradient(160deg, #2A2008 0%, #0E0A04 100%); }
.team-card__media[data-tone="violet"] { background: linear-gradient(160deg, #1F1A30 0%, #0B0913 100%); }
.team-card__media[data-tone="moss"]   { background: linear-gradient(160deg, #18241B 0%, #060B07 100%); }
.team-card__media[data-tone="rose"]   { background: linear-gradient(160deg, #2A1A14 0%, #0F0807 100%); }
.team-card__media[data-tone="sky"]    { background: linear-gradient(160deg, #131C26 0%, #06090C 100%); }
/* Monogram backplate */
.team-card__media[data-mono]::before {
  content: attr(data-mono);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(140px, 14vw, 220px);
  letter-spacing: -0.04em;
  color: rgba(245, 242, 236, 0.10);
  font-style: italic;
  z-index: 0;
}
.team-card__media video,
.team-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.team-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.55) 100%);
  z-index: 2;
}
.team-card__body { padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.team-card__name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 26px;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.team-card__title {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.team-card__bio { color: var(--ink-700); font-size: var(--text-14); margin-top: 6px; line-height: 1.55; }

@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .team-grid { grid-template-columns: 1fr; } }

/* ---------- 16. Resources page ----------------------------------------- */
.resources-hero { padding-block: clamp(80px, 11vw, 140px) clamp(32px, 5vw, 64px); }

.resources-tabs { display: inline-flex; padding: 4px; background: var(--ink-100); border-radius: var(--r-pill); }
.resources-tabs button {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: var(--text-13);
  color: var(--ink-700);
}
.resources-tabs button.is-active { background: var(--ink-900); color: var(--paper-100); }

.feat-article {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--hair);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface-1);
}
.feat-article__media {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1A1815 0%, #0A0907 100%);
  position: relative;
}
.feat-article__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat-article__body { padding: 40px; }
.feat-article__title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-block: 12px 16px;
}
@media (max-width: 880px) { .feat-article { grid-template-columns: 1fr; } }

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.article {
  background: var(--surface-1);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 280px;
  transition: background .2s var(--ease-out);
}
.article:hover { background: var(--surface-2); }
.article .meta { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--ink-500); text-transform: uppercase; }
.article h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 26px;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.article .excerpt { color: var(--ink-700); font-size: var(--text-14); line-height: 1.55; }
.article .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 1024px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .article-grid { grid-template-columns: 1fr; } }

.glossary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.glossary-item {
  background: var(--surface-1);
  padding: 24px 28px;
  display: flex; flex-direction: column; gap: 6px;
}
.glossary-item h4 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.015em;
}
@media (max-width: 720px) { .glossary { grid-template-columns: 1fr; } }

/* ---------- 17. Sell page ---------------------------------------------- */
.sell-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 960px) { .sell-grid { grid-template-columns: 1fr; gap: 32px; } }

.steps {
  border: 1px solid var(--hair-dark);
  border-radius: var(--r-lg);
  background: var(--surface-ink-elev);
  overflow: hidden;
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px 28px;
  border-top: 1px solid var(--hair-dark);
  align-items: start;
}
.step:first-child { border-top: 0; }
.step__num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 32px;
  color: var(--gold-500);
  line-height: 1;
}
.step h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 24px;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  color: var(--paper-100);
}
.step p { color: var(--paper-300); font-size: var(--text-14); line-height: 1.55; }

.form-card {
  background: var(--surface-1);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 32px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.field input, .field select, .field textarea {
  height: 48px;
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--hair-strong);
  background: var(--surface-1);
  font-size: var(--text-15);
  color: var(--ink-900);
  outline: none;
  transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink-900);
  box-shadow: 0 0 0 3px rgba(184,147,90,0.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- 18. Footer ------------------------------------------------- */
.footer {
  background: var(--surface-ink);
  color: var(--paper-300);
  padding: 80px 0 32px;
  margin-top: 0;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--hair-dark);
}
.footer__brand h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 36px;
  letter-spacing: -0.015em;
  color: var(--paper-100);
  margin-bottom: 8px;
}
.footer__brand p { font-size: var(--text-14); max-width: 36ch; }
.footer__col h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-500);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--paper-300); font-size: var(--text-14); }
.footer__col a:hover { color: var(--paper-100); }

.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: var(--text-12);
  color: var(--paper-500);
}
.footer__bottom a { color: var(--paper-300); text-decoration: none; }
.footer__bottom a:hover { color: var(--paper-100); }

.footer__legal {
  padding-top: 32px;
  border-top: 1px solid var(--hair-dark);
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.footer__legal p { margin: 0; }
.footer__legal-headline {
  font-family: "JetBrains Mono", "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.55;
  color: var(--paper-300);
  text-transform: uppercase;
  max-width: 1100px;
}
.footer__legal-block {
  font-family: "JetBrains Mono", "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  line-height: 1.55;
  color: var(--paper-500);
  text-transform: uppercase;
  max-width: 1100px;
}
.footer__legal-fine {
  font-size: 11px;
  line-height: 1.55;
  color: var(--paper-500);
  max-width: 1100px;
}

@media (max-width: 960px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ---------- 19. Misc components --------------------------------------- */
.callout {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 22px;
  background: var(--surface-1);
  border: 1px solid var(--hair);
  border-radius: var(--r-pill);
  font-size: var(--text-14);
  color: var(--ink-700);
}
.callout .dot {
  width: 8px; height: 8px;
  background: var(--up);
  border-radius: 50%;
  position: relative;
  flex: none;
}
.callout .dot::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  background: var(--up);
  opacity: .25;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.6); opacity: .4; }
  100% { transform: scale(1.6); opacity: 0; }
}

.cta-band {
  background: var(--surface-ink);
  color: var(--paper-100);
  padding: clamp(48px, 8vw, 96px) 0;
  border-radius: var(--r-xl);
  margin-block: 24px;
  text-align: center;
}
.cta-band h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 24px;
}

/* ---------- 20. Quote / testimonial ----------------------------------- */
.quote {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink-900);
  max-width: 28ch;
}
.quote em { font-style: italic; color: var(--gold-700); }

.attrib { font-size: var(--text-14); color: var(--ink-500); margin-top: 16px; }
.attrib b { color: var(--ink-900); font-weight: 500; }

/* ---------- 21. Article (long-form) ------------------------------------ */
.article-page { padding-block: clamp(56px, 8vw, 96px) clamp(64px, 8vw, 96px); }

.article-hero { display: grid; gap: 16px; max-width: 760px; margin-bottom: 48px; }
.article-hero .crumb { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-500); }
.article-hero .crumb a { color: var(--ink-500); text-decoration: none; }
.article-hero .crumb a:hover { color: var(--ink-900); }
.article-hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 400;
  margin: 0;
}
.article-hero .dek {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(20px, 2vw, 26px);
  font-style: italic;
  color: var(--ink-700);
  line-height: 1.4;
  margin: 0;
}
.article-meta {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  padding-block: 16px;
  border-block: 1px solid var(--hair);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.article-meta .author { display: flex; align-items: center; gap: 8px; }
.article-meta .author::before {
  content: "";
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  display: inline-block;
}
.article-actions { margin-left: auto; display: flex; gap: 8px; }

.article-body {
  max-width: 720px;
  font-family: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}
.article-body p {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.65;
  color: var(--ink-800);
  margin: 0 0 22px;
}
.article-body h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 56px 0 18px;
  color: var(--ink-900);
}
.article-body h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 32px 0 10px;
  color: var(--ink-900);
}
.article-body ul, .article-body ol {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink-800);
  margin: 0 0 24px;
  padding-left: 24px;
}
.article-body li { margin-bottom: 10px; }
.article-body li b { color: var(--ink-900); font-weight: 600; }
.article-body strong, .article-body b { color: var(--ink-900); font-weight: 600; }

.article-callout {
  background: var(--gold-100);
  border-left: 3px solid var(--gold-500);
  padding: 18px 22px;
  margin: 28px 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(20px, 1.8vw, 24px);
  font-style: italic;
  line-height: 1.4;
  color: var(--ink-900);
  border-radius: 4px;
}

.article-kv {
  display: grid; gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 28px 0;
}
.article-kv-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  background: var(--surface-1);
}
.article-kv-row .k {
  padding: 18px 22px;
  font-weight: 600;
  background: var(--surface-2);
  font-size: 15px;
  color: var(--ink-900);
}
.article-kv-row .v {
  padding: 18px 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-700);
}
@media (max-width: 720px) {
  .article-kv-row { grid-template-columns: 1fr; }
  .article-kv-row .k { padding-bottom: 6px; background: var(--surface-1); }
  .article-kv-row .v { padding-top: 0; }
}

.article-quote {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(24px, 2.4vw, 32px);
  font-style: italic;
  color: var(--ink-900);
  line-height: 1.3;
  border-left: 2px solid var(--gold-500);
  padding-left: 22px;
  margin: 32px 0;
}

/* Related articles row */
.related-row {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--hair);
}
.related-row h3 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 500;
  margin: 0 0 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  background: var(--surface-1);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background .2s var(--ease-out);
}
.related-card:hover { background: var(--surface-2); }
.related-card .cat {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.related-card h4 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-weight: 400;
  margin: 0;
  color: var(--ink-900);
}
@media (max-width: 980px) { .related-grid { grid-template-columns: 1fr; } }

.article-soon {
  background: var(--surface-2);
  border: 1px dashed var(--ink-300);
  border-radius: var(--r-lg);
  padding: 32px;
  margin: 32px 0;
  text-align: center;
}
.article-soon h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  margin: 0 0 8px;
}

/* ---------- 22. Print -------------------------------------------------- */
@media print {
  .no-print, .ticker, .nav, .footer, .article-actions, .related-row { display: none !important; }
  body { background: #fff; color: #000; }
  .article-page { padding: 0; }
  .article-body { max-width: none; }
  .article-body p, .article-body li {
    font-size: 11pt;
    line-height: 1.5;
    color: #000;
    orphans: 3;
    widows: 3;
  }
  .article-hero h1 { font-size: 28pt; line-height: 1.1; }
  .article-hero .dek { font-size: 14pt; }
  .article-body h2 { font-size: 18pt; margin-top: 24pt; page-break-after: avoid; }
  .article-body h3 { font-size: 13pt; margin-top: 16pt; page-break-after: avoid; }
  .article-callout { background: #f6f1e3; }
  a { color: #000; text-decoration: none; }
}

/* ---------- 23. Print / utility --------------------------------------- */
.hide { display: none !important; }
.spacer-16 { height: 16px; }
.spacer-32 { height: 32px; }
.spacer-64 { height: 64px; }

.text-up { color: var(--up); }
.text-down { color: var(--down); }
.text-gold { color: var(--gold-700); }

/* ---------- 24. Chatbot widget --------------------------------------- */
#user-chatbot-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-modal);
  font-family: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

.user-chatbot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r-pill);
  background: var(--surface-ink);
  color: var(--paper-100);
  font-size: var(--text-14);
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-3);
  transition: transform 220ms var(--ease-out), background 200ms;
}
.user-chatbot-toggle:hover { background: var(--surface-ink-elev); transform: translateY(-1px); }
.user-chatbot-toggle .chat-icon { display: inline-flex; }

#user-chatbot-window {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 120px));
  background: var(--surface-1);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: yvChatIn 220ms var(--ease-out);
}
#user-chatbot-window[hidden] { display: none; }

@keyframes yvChatIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.yv-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface-ink);
  color: var(--paper-100);
  flex: 0 0 auto;
}
.yv-chat__brand { font-size: var(--text-14); font-weight: 600; letter-spacing: -0.01em; }
.yv-chat__sub   { font-size: 11px; color: var(--paper-500); margin-top: 2px; }
.yv-chat__close {
  background: transparent;
  border: 0;
  color: var(--paper-300);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.yv-chat__close:hover { background: rgba(255, 255, 255, 0.08); color: var(--paper-100); }

.yv-chat__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yv-chat__msg { display: flex; max-width: 100%; }
.yv-chat__msg--user { justify-content: flex-end; }
.yv-chat__msg--bot  { justify-content: flex-start; }
.yv-chat__bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: var(--text-14);
  line-height: 1.5;
  word-wrap: break-word;
  white-space: normal;
}
.yv-chat__msg--user .yv-chat__bubble {
  background: var(--surface-ink);
  color: var(--paper-100);
  border-bottom-right-radius: 4px;
}
.yv-chat__msg--bot .yv-chat__bubble {
  background: var(--surface-1);
  color: var(--ink-900);
  border: 1px solid var(--hair);
  border-bottom-left-radius: 4px;
}
.yv-chat__bubble a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.yv-chat__msg--user .yv-chat__bubble a { color: var(--gold-300); }

.yv-chat__typing .yv-chat__bubble {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
}
.yv-chat__typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-400);
  animation: yvDot 1.2s infinite ease-in-out;
}
.yv-chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.yv-chat__typing span:nth-child(3) { animation-delay: 0.30s; }
@keyframes yvDot {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30%           { opacity: 1;    transform: translateY(-2px); }
}

.yv-chat__form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface-1);
  border-top: 1px solid var(--hair);
  flex: 0 0 auto;
}
.yv-chat__form textarea {
  flex: 1;
  min-height: 40px;
  max-height: 140px;
  padding: 10px 12px;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  font: inherit;
  font-size: var(--text-14);
  resize: none;
  background: var(--surface-2);
  color: var(--ink-900);
  outline: none;
  font-family: inherit;
}
.yv-chat__form textarea:focus { border-color: var(--ink-700); background: var(--surface-1); }

.yv-chat__send {
  width: 40px; height: 40px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface-ink);
  color: var(--paper-100);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.yv-chat__send:hover { background: var(--surface-ink-elev); }

.yv-chat__legal {
  padding: 8px 14px 12px;
  font-size: 11px;
  color: var(--ink-500);
  background: var(--surface-1);
  border-top: 1px solid var(--hair);
  line-height: 1.4;
  flex: 0 0 auto;
}

.yv-chat__intake-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--surface-1);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  margin-top: 4px;
}
.yv-chat__intake-form label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: var(--ink-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.yv-chat__intake-form input {
  padding: 10px 12px;
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  font: inherit;
  font-size: var(--text-14);
  color: var(--ink-900);
  background: var(--surface-2);
  outline: none;
  font-family: inherit;
}
.yv-chat__intake-form input:focus { border-color: var(--ink-700); background: var(--surface-1); }
.yv-chat__intake-submit {
  margin-top: 4px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface-ink);
  color: var(--paper-100);
  font-size: var(--text-14);
  font-weight: 500;
  cursor: pointer;
}
.yv-chat__intake-submit:hover { background: var(--surface-ink-elev); }
.yv-chat__intake-submit:disabled { opacity: 0.6; cursor: default; }
.yv-chat__intake-note {
  margin: 0;
  font-size: 11px;
  color: var(--ink-500);
  line-height: 1.4;
}
.yv-chat__intake-note a { color: var(--ink-700); }
.yv-chat__intake-error {
  margin: 0;
  font-size: 12px;
  color: var(--down);
}

#user-chatbot-container.is-intake .yv-chat__form { display: none; }

@media (max-width: 540px) {
  #user-chatbot-container { right: 12px; bottom: 12px; }
  #user-chatbot-window {
    right: 12px;
    left: 12px;
    bottom: 76px;
    width: auto;
    height: min(72vh, 600px);
  }
  .user-chatbot-toggle .chat-text { display: none; }
  .user-chatbot-toggle { padding: 14px; }
}

/* ============================================================
   Indication-of-interest modal — opens from /companies/{SYM}
   ============================================================ */
.yv-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.yv-modal[hidden] { display: none; }
.yv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 11, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.yv-modal__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--paper-100, #FBF9F4);
  border: 1px solid var(--hair, #E5E5EA);
  border-radius: var(--r-lg, 16px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
  padding: 32px 32px 28px;
  animation: yv-modal-in 0.18s ease-out;
}
@keyframes yv-modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.yv-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--hair, #E5E5EA);
  background: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-500, #6B6B66);
}
.yv-modal__close:hover { background: #F0EFEA; color: #0A0A0A; }
.yv-modal__head { margin-bottom: 18px; }
.yv-modal__head h2 {
  margin: 8px 0 6px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 30px;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.yv-modal__head .muted { font-size: 14px; }

.yv-form { display: flex; flex-direction: column; gap: 14px; }
.yv-field { display: flex; flex-direction: column; gap: 6px; }
.yv-field > span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500, #6B6B66);
  font-weight: 600;
}
.yv-field > span em { font-style: normal; color: #9E9D96; font-weight: 400; text-transform: none; letter-spacing: 0; }
.yv-field input,
.yv-field select,
.yv-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--hair, #D1D1D6);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: #0A0A0A;
}
.yv-field input:focus,
.yv-field select:focus,
.yv-field textarea:focus {
  outline: none;
  border-color: #0A0A0A;
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06);
}
.yv-field textarea { resize: vertical; min-height: 78px; }
.yv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.yv-form__legal {
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink-500, #6B6B66);
  padding: 10px 12px;
  background: #F4F2EC;
  border-radius: 8px;
}
.yv-form__legal a { color: #0A0A0A; text-decoration: underline; }

.yv-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.yv-form__error,
.yv-form__success {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-top: 4px;
}
.yv-form__error   { background: #F4E2E0; color: #B22F26; border: 1px solid #E5C0BC; }
.yv-form__success { background: #E6F1E8; color: #1B7C3D; border: 1px solid #C7E0CC; }

.yv-form.is-submitting #yv-form-submit { opacity: 0.6; pointer-events: none; }

@media (max-width: 600px) {
  .yv-modal { padding: 12px; }
  .yv-modal__panel { padding: 24px 20px 20px; }
  .yv-modal__head h2 { font-size: 24px; }
  .yv-row { grid-template-columns: 1fr; }
}

body.yv-modal-open { overflow: hidden; }

/* LIMEN MARKETS PRIVATE — nav SVG sizing (added 2026-05-14) */
.nav__logo img { height: 38px; width: auto; display: block; }
.nav__logo { gap: 0; }
