/* =========================================================
   Aperture Tracker — premium light theme
   Anchors: Navy (#0a2540), Silver (#8a93a3), White
   Canvas: Light grey (#f4f5f7)
   ========================================================= */

:root {
  /* Surfaces */
  --canvas: #f4f5f7;          /* page background */
  --surface: #ffffff;         /* cards */
  --surface-2: #fafbfc;       /* subtle alt */
  --surface-3: #eef0f3;       /* deeper grey strip */

  /* Lines / borders */
  --line: #e3e6eb;
  --line-strong: #d0d5dd;
  --line-soft: #ecedf0;

  /* Type */
  --ink: #0a2540;             /* primary navy ink */
  --ink-2: #1e3a5f;           /* secondary navy */
  --ink-3: #4a5568;           /* body */
  --ink-4: #6b7280;           /* secondary body */
  --silver: #8a93a3;          /* meta / labels */
  --silver-2: #a7adba;
  --silver-3: #c8ccd5;

  /* Accents */
  --navy: #0a2540;
  --navy-2: #1e3a5f;
  --navy-3: #345279;
  --accent: #2563eb;          /* live / cta blue */
  --accent-soft: #eff4ff;
  --positive: #2f7a4d;
  --negative: #b04645;

  /* Stage colors (silvery-blue gradient) */
  --stage-preseed: #93a3b8;
  --stage-seed:    #6b829e;
  --stage-prea:    #4f6886;
  --stage-a:       #345279;
  --stage-b:       #1e3a5f;
  --stage-c:       #0a2540;
  --stage-d:       #051428;

  /* Region colors */
  --region-us: #1e3a5f;
  --region-cn: #b04645;
  --region-eu: #2f7a4d;
  --region-other: #8a93a3;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', 'Inter', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Sizes */
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-lg: 17px;
  --text-xl: 22px;
  --text-2xl: 30px;
  --text-3xl: 44px;
  --text-hero: 84px;

  /* Spacing */
  --gutter: 24px;
  --max: 1320px;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(10,37,64,0.04);
  --shadow-sm: 0 1px 3px rgba(10,37,64,0.06), 0 1px 2px rgba(10,37,64,0.04);
  --shadow-md: 0 4px 12px rgba(10,37,64,0.06), 0 2px 4px rgba(10,37,64,0.04);
  --shadow-lg: 0 12px 32px rgba(10,37,64,0.10);
  --shadow-xl: 0 24px 64px rgba(10,37,64,0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--ink-3);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}

a { color: inherit; text-decoration: none; }

/* =========================================================
   MASTHEAD
   ========================================================= */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  flex-shrink: 0;
}

.logo-mark { display: block; }

.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.logo-sub {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  font-style: italic;
  color: var(--silver);
  letter-spacing: -0.005em;
  margin-left: 4px;
}

.nav-primary {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-primary a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-4);
  letter-spacing: -0.005em;
  transition: color 0.15s ease;
}

.nav-primary a:hover { color: var(--navy); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  background: var(--accent-soft);
  border: 1px solid #d6e3ff;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  background: var(--canvas);
  padding: 72px var(--gutter) 56px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--silver);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.eyebrow-mark {
  color: var(--accent);
  font-size: 8px;
  animation: pulse-soft 2.5s infinite;
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(56px, 9vw, var(--text-hero));
  line-height: 1.0;
  color: var(--navy);
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}

.title-accent {
  font-style: italic;
  font-weight: 500;
  color: var(--silver);
  font-variation-settings: 'opsz' 144;
}

.hero-deck {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 720px;
  margin-bottom: 56px;
  font-weight: 400;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--silver);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 38px;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.stat-value-sm { font-size: 22px; line-height: 1.2; }

.stat-sub {
  font-size: var(--text-sm);
  color: var(--ink-4);
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section {
  padding: 80px var(--gutter);
  background: var(--canvas);
}

.section-alt { background: var(--surface-3); }

.section-strip {
  padding: 36px var(--gutter);
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--silver);
  letter-spacing: 0.14em;
  flex-shrink: 0;
  padding-top: 4px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-3xl);
  line-height: 1.05;
  color: var(--navy);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.section-sub {
  font-size: var(--text-base);
  color: var(--ink-4);
  max-width: 720px;
}

/* =========================================================
   STRIP (summary numbers)
   ========================================================= */

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid var(--line);
}

.strip-item {
  padding: 4px 24px;
  border-right: 1px solid var(--line);
}

.strip-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.strip-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--silver);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =========================================================
   REGIONS
   ========================================================= */

.regions-grid {
  display: grid;
  /* Desktop: single row — 6 region cards across one line */
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1100px) {
  .regions-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .regions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .regions-grid { grid-template-columns: 1fr; }
}

.region-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  min-width: 0;
}
@media (max-width: 1100px) {
  .region-card { padding: 22px 20px; }
}

.region-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--region-us);
}

.region-card[data-region="China"]::before { background: var(--region-cn); }
.region-card[data-region="Europe"]::before { background: var(--region-eu); }
.region-card[data-region="India"]::before { background: #d97706; }
.region-card[data-region="Israel"]::before { background: #2563eb; }
.region-card[data-region="Asia (other)"]::before { background: #7c3aed; }
.region-card[data-region="Canada"]::before { background: var(--silver); }
.region-card[data-region="Oceania"]::before { background: var(--silver); }
.region-card[data-region="Global"]::before { background: var(--silver); }
.region-card[data-region="Other"]::before { background: var(--silver); }

.region-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.region-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
  letter-spacing: -0.015em;
  margin-bottom: 4px;
  line-height: 1.15;
  word-break: keep-all;
}
@media (max-width: 1100px) {
  .region-name { font-size: 22px; }
}

.region-flag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--silver);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
@media (max-width: 1100px) {
  .region-flag { font-size: 10px; margin-bottom: 16px; }
}

.region-stats {
  display: flex;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
@media (max-width: 1100px) {
  .region-stats { gap: 24px; padding-top: 16px; }
}

.region-stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--silver);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.region-stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
  line-height: 1;
}
@media (max-width: 1100px) {
  .region-stat-value { font-size: 24px; }
}

.region-bar {
  height: 5px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
}
@media (max-width: 1100px) {
  .region-bar { height: 6px; margin-top: 16px; }
}

.region-bar-fill {
  height: 100%;
  background: var(--navy);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* =========================================================
   TREEMAP
   ========================================================= */

.treemap-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px;
  box-shadow: var(--shadow-sm);
}

#treemap {
  width: 100%;
  min-height: 480px;
  position: relative;
}

.treemap-cell {
  position: absolute;
  overflow: hidden;
  cursor: default;
  border: 2px solid var(--surface);
  border-radius: var(--radius-sm);
  transition: filter 0.18s ease, transform 0.18s ease;
}

.treemap-cell:hover { filter: brightness(1.06); transform: translateZ(0); }

.treemap-content {
  position: relative;
  padding: 12px 14px;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.treemap-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--surface);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.treemap-stats {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.treemap-stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--surface);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.treemap-amt-xs {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--surface);
  letter-spacing: -0.01em;
  line-height: 1;
}

/* ---- Density tiers ---- */
.treemap-cell.tier-xs .treemap-content { padding: 8px 10px; }
.treemap-cell.tier-xs .treemap-name {
  font-size: 11px;
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: 0;
}
.treemap-cell.tier-xs .treemap-amt-xs { font-size: 12px; }

.treemap-cell.tier-sm .treemap-content { padding: 10px 12px; }
.treemap-cell.tier-sm .treemap-name {
  font-size: 12.5px;
  line-height: 1.15;
  margin-bottom: 4px;
}
.treemap-cell.tier-sm .treemap-stats { font-size: 10px; }
.treemap-cell.tier-sm .treemap-stats strong { font-size: 14px; margin-bottom: 0; }
.treemap-cell.tier-sm .treemap-stats span { display: none; }

.treemap-cell.tier-md .treemap-name { font-size: 14px; }
.treemap-cell.tier-md .treemap-stats strong { font-size: 16px; }

.treemap-cell.tier-lg .treemap-name { font-size: 17px; }
.treemap-cell.tier-lg .treemap-stats strong { font-size: 19px; }

/* Tall-narrow cells: vertically center the content */
.treemap-cell.cell-tall .treemap-content {
  justify-content: center;
}
.treemap-cell.cell-tall .treemap-stats { margin-top: 6px; }
.treemap-cell.cell-tall .treemap-amt-xs { margin-top: 4px; }

/* Narrow cells (< 110px wide): tighter padding & smaller stats text */
.treemap-cell.cell-narrow .treemap-content { padding: 8px 8px; }
.treemap-cell.cell-narrow .treemap-name {
  font-size: 11px;
  line-height: 1.1;
  margin-bottom: 4px;
  hyphens: manual;
  word-break: normal;
  overflow-wrap: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.treemap-cell.cell-narrow .treemap-stats { font-size: 10px; }
.treemap-cell.cell-narrow .treemap-stats strong { font-size: 12.5px; }
.treemap-cell.cell-narrow .treemap-stats span { display: none; }

/* Ultra-narrow cells (< 80px wide): smaller font */
.treemap-cell.cell-ultra-narrow .treemap-content { padding: 6px 6px; }
.treemap-cell.cell-ultra-narrow .treemap-name { font-size: 10px; }
.treemap-cell.cell-ultra-narrow .treemap-stats strong,
.treemap-cell.cell-ultra-narrow .treemap-amt-xs { font-size: 11px; }

/* Selected highlight ring */
.treemap-cell.selected {
  outline: 2px solid var(--surface);
  outline-offset: -4px;
  filter: brightness(1.08);
}

/* =========================================================
   STAGES
   ========================================================= */

.stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.stage-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  position: relative;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s ease;
}

.stage-card::before {
  content: '';
  position: absolute;
  left: 20px; right: 20px; top: 0;
  height: 2px;
  background: var(--stage-color, var(--silver));
}

.stage-card:hover { box-shadow: var(--shadow-sm); }

.stage-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.stage-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--silver);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.stage-amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stage-amount-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--silver);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 6px;
}

.stage-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.chart-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.chart-wrap { height: 220px; position: relative; }

/* =========================================================
   INVESTORS
   ========================================================= */

.investor-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.investor-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-xs);
  /* button-reset */
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  width: 100%;
}

.investor-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  border-color: var(--ink-4);
}

.investor-tile:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.investor-tile.is-active {
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy), var(--shadow-md);
}

.investor-more-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-4);
  background: var(--bone);
  border: 1px solid var(--line);
  padding: 1px 7px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  margin-left: 4px;
  vertical-align: 1px;
}

.investor-expand-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--silver);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
  transition: color 0.2s ease;
}

.investor-tile:hover .investor-expand-hint,
.investor-tile.is-active .investor-expand-hint {
  color: var(--navy);
}

.investor-spotlight { margin-top: 28px; }
.investor-spotlight .spotlight-hint {
  padding: 22px 26px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-4);
  font-size: var(--text-sm);
  text-align: center;
}
.investor-spotlight.open {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px 8px;
  box-shadow: var(--shadow-md);
  animation: spotlight-pop 0.22s ease;
}
@keyframes spotlight-pop {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.investor-spotlight .spotlight-table-wrap {
  max-height: 480px;
  overflow-y: auto;
  margin: 8px -4px 16px;
  border-top: 1px solid var(--line);
}
.investor-spotlight .spotlight-deal-table tbody tr { cursor: default; }

.role-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.role-pill.role-lead { color: var(--navy); background: rgba(28,49,82,0.06); border-color: rgba(28,49,82,0.18); }
.role-pill.role-co   { color: var(--ink-4); background: var(--bone); }

.investor-rank {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--silver);
  letter-spacing: 0.06em;
}

.investor-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.2;
  padding-right: 30px;
}

.investor-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--silver);
  letter-spacing: 0.04em;
}

.investor-companies {
  font-size: var(--text-sm);
  color: var(--ink-4);
  line-height: 1.5;
}

/* =========================================================
   DEAL LOG
   ========================================================= */

.deals-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  align-items: center;
}

#deal-search {
  flex: 1;
  min-width: 280px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-xs);
}

#deal-search::placeholder { color: var(--silver-2); }

#deal-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-4);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  border-color: var(--silver-2);
  color: var(--navy);
}

.filter-pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--surface);
}

.filter-pill .pill-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-4);
}

.filter-pill.active .pill-count {
  background: rgba(255,255,255,0.18);
  color: var(--surface);
}

.sector-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: -8px 0 18px;
  padding: 14px 0 0;
  border-top: 1px dashed var(--line);
}
.sector-filter-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  padding-top: 9px;
  flex: 0 0 60px;
}
.sector-chips {
  flex: 1;
}

.deals-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  /* Internal scroll: roomy on desktop so users can scan ~20 deals at once */
  max-height: min(900px, 95vh);
  overflow: auto;
  box-shadow: var(--shadow-sm);
  /* Keep header visible while scrolling */
  scroll-behavior: smooth;
}
.deals-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-2);
}
@media (max-width: 720px) {
  .deals-table-wrap { max-height: 75vh; }
  .sector-filter-row { flex-direction: column; gap: 8px; }
  .sector-filter-label { padding-top: 0; }
}

.deals-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.deals-table thead {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.deals-table th {
  text-align: left;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--silver);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.deals-table th.num { text-align: right; }
.deals-table th.sortable { cursor: pointer; user-select: none; transition: color 0.15s ease; }
.deals-table th.sortable:hover { color: var(--navy); }

.deals-table tbody tr {
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background 0.12s ease;
}

.deals-table tbody tr:hover { background: var(--surface-2); }
.deals-table tbody tr:last-child { border-bottom: none; }

.deals-table td {
  padding: 11px 14px;
  vertical-align: top;
  color: var(--ink-3);
  line-height: 1.4;
}

.td-company {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.td-company-cn {
  font-size: 11px;
  color: var(--silver);
  margin-top: 2px;
  font-weight: 400;
}

.td-amount {
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
  color: var(--navy);
  font-weight: 500;
  white-space: nowrap;
}

.td-amount-val { font-family: var(--font-mono); font-weight: 500; }

.stage-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface-3);
  color: var(--ink-3);
  border: 1px solid var(--line);
}

.stage-badge[data-stage="Pre-Seed"] { background: #f0f3f7; color: var(--stage-preseed); border-color: #dde3ec; }
.stage-badge[data-stage="Seed"] { background: #e7eef6; color: var(--stage-seed); border-color: #d2dde9; }
.stage-badge[data-stage="Pre-A"] { background: #dee7f1; color: var(--stage-prea); border-color: #c5d2e0; }
.stage-badge[data-stage="Series A"] { background: #d6e2ee; color: var(--stage-a); border-color: #bbcde0; }
.stage-badge[data-stage="Series B"] { background: #c6d6e6; color: var(--stage-b); border-color: #a8c0d6; }
.stage-badge[data-stage="Series C"],
.stage-badge[data-stage="Series C+"],
.stage-badge[data-stage="Series D"] { background: var(--navy); color: var(--surface); border-color: var(--navy); }

.region-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

.region-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--region-us);
  flex-shrink: 0;
}

.region-dot[data-region="China"] { background: var(--region-cn); }
.region-dot[data-region="Europe"] { background: var(--region-eu); }
.region-dot[data-region="India"] { background: var(--accent); }
.region-dot[data-region="Israel"] { background: var(--accent); }
.region-dot[data-region="Global"] { background: var(--silver); }
.region-dot[data-region="Other"] { background: var(--silver); }

.td-founders {
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--ink-3);
}

.founder-line { font-weight: 500; color: var(--ink-2); }

.founder-prior {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--silver);
  letter-spacing: 0.02em;
  display: block;
  margin-top: 1px;
}

.td-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-4);
  white-space: nowrap;
}

.deals-footnote {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--silver);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =========================================================
   DRAWER
   ========================================================= */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.drawer.open {
  pointer-events: auto;
  opacity: 1;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.4);
  backdrop-filter: blur(2px);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 560px;
  max-width: 92vw;
  height: 100%;
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.2,.7,.2,1);
}

.drawer.open .drawer-panel { transform: translateX(0); }

.drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 18px;
  color: var(--ink-3);
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1;
}

.drawer-close:hover { background: var(--navy); color: var(--surface); border-color: var(--navy); }

.drawer-content { padding: 56px 40px 40px; }

.drawer-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--silver);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.drawer-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 8px;
}

.drawer-cn {
  font-size: 14px;
  color: var(--silver);
  margin-bottom: 20px;
}

.drawer-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-3);
  margin-bottom: 28px;
}

.drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 28px;
  overflow: hidden;
}

.drawer-stat {
  background: var(--surface);
  padding: 16px 20px;
}

.drawer-stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--silver);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.drawer-stat-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.drawer-stat-val-sm { font-size: 15px; line-height: 1.3; }

.drawer-section { margin-bottom: 24px; }

.drawer-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--silver);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.drawer-section-content {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
}

.founder-block {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.founder-block-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  display: inline-block;
  margin-right: 8px;
}

.founder-block-role {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--silver);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.founder-block-prior {
  font-size: 13px;
  color: var(--ink-4);
  margin-top: 4px;
}

.founder-block-prior strong { color: var(--ink-2); font-weight: 500; }

.accel-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  border: 1px solid #d6e3ff;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.drawer-source-list { display: flex; flex-wrap: wrap; gap: 10px; }

.drawer-source-list a {
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  transition: opacity 0.15s ease;
}

.drawer-source-list a:hover { opacity: 0.7; }

/* =========================================================
   CLASS NOTES (accelerators)
   ========================================================= */

.accel-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  overflow-x: auto;
}

.accel-tab {
  padding: 16px 24px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  text-align: left;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}

.accel-tab.active { border-bottom-color: var(--navy); }

.accel-tab-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.accel-tab-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--silver);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.accel-tab:not(.active) .accel-tab-name { color: var(--ink-4); }
.accel-tab:hover .accel-tab-name { color: var(--navy); }

.accel-panel {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

.accel-sector-filter {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 4px 0 18px;
  padding: 14px 0 0;
  border-top: 1px dashed var(--line);
}
.accel-sector-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  padding-top: 9px;
  flex: 0 0 60px;
}
.accel-sector-filter .sector-chips { flex: 1; }
@media (max-width: 720px) {
  .accel-sector-filter { flex-direction: column; gap: 8px; }
  .accel-sector-label { padding-top: 0; }
}

.accel-companies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  /* Cap height when cohorts are large; let user scroll inside */
  max-height: 720px;
  overflow-y: auto;
  padding-right: 4px;
}
.accel-empty {
  grid-column: 1 / -1;
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--silver);
}

.accel-company-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s ease;
}

.accel-company-card:hover { box-shadow: var(--shadow-sm); }

.accel-company-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.accel-company-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.accel-company-loc {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--silver);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.accel-company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.accel-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-4);
  background: var(--surface-3);
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.accel-company-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.accel-company-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-4);
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

.accel-meta {
  position: sticky;
  top: 88px;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.accel-meta-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 14px;
}

.accel-meta-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
  margin-bottom: 20px;
}

.accel-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accel-meta-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  font-size: 13px;
}

.accel-meta-row dt {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--silver);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 3px;
}

.accel-meta-row dd {
  color: var(--ink-3);
  line-height: 1.4;
}

.accel-meta-source {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.accel-meta-source a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

.accel-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--silver);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.accel-panel-head strong {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
  color: var(--navy);
  margin-right: 8px;
  letter-spacing: -0.02em;
}

/* =========================================================
   METHODOLOGY
   ========================================================= */

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.method-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.method-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--silver);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.method-item p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 36px var(--gutter);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--surface);
  letter-spacing: -0.01em;
}

.footer-meta {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 960px) {
  :root { --gutter: 18px; }
  .hero { padding: 48px var(--gutter) 32px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-item { border-bottom: 1px solid var(--line); padding: 12px 18px; }
  .nav-primary { display: none; }
  .stage-charts { grid-template-columns: 1fr; }
  .accel-panel { grid-template-columns: 1fr; }
  .accel-meta { position: static; }
  .deals-table th:nth-child(2),
  .deals-table td:nth-child(2),
  .deals-table th:nth-child(5),
  .deals-table td:nth-child(5),
  .deals-table th:nth-child(6),
  .deals-table td:nth-child(6) { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 56px var(--gutter); }
  .section-title { font-size: 30px; }
  .hero-deck { font-size: 16px; }
  .accel-companies { grid-template-columns: 1fr; }
  .drawer-grid { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   SECTOR SPOTLIGHT
   ========================================================= */
.sector-spotlight { margin-top: 28px; }
.sector-spotlight .spotlight-hint {
  text-align: center;
  font-size: 13px;
  color: var(--silver);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  padding: 18px 12px;
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
  margin-top: 18px;
}
.sector-spotlight.open {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 28px 28px 24px;
  box-shadow: 0 1px 0 rgba(10,37,64,0.04), 0 8px 24px -16px rgba(10,37,64,0.18);
  margin-top: 24px;
  animation: spotFade 240ms ease-out;
}
@keyframes spotFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.spotlight-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
}
.spotlight-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--silver);
}
.spotlight-title { font-size: 22px; font-weight: 600; margin: 4px 0 0; color: var(--ink); letter-spacing: -0.01em; }
.spotlight-close {
  background: transparent; border: 1px solid var(--rule);
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 20px; line-height: 1; color: var(--silver);
  cursor: pointer; transition: all 120ms ease;
}
.spotlight-close:hover { color: var(--ink); border-color: var(--ink); }

.spotlight-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 22px;
}
.spot-stat {
  background: var(--bone);
  border: 1px solid var(--rule);
  padding: 14px 16px;
  border-radius: 6px;
}
.spot-stat-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--silver); margin-bottom: 6px;
}
.spot-stat-val { font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.spotlight-card {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 18px 20px;
  border-radius: 6px;
}
.spotlight-card-wide { grid-column: 1 / -1; }
.spotlight-h4 {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--silver); margin: 0 0 14px; font-weight: 500;
}

/* mix rows for stages */
.mix-rows { display: flex; flex-direction: column; gap: 8px; }
.mix-row {
  display: grid;
  grid-template-columns: 88px 1fr 80px;
  align-items: center; gap: 10px;
  font-size: 13px;
}
.mix-row-label { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.mix-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mix-row-bar {
  position: relative; height: 6px; background: var(--bone); border-radius: 3px; overflow: hidden;
}
.mix-row-fill { height: 100%; transition: width 200ms ease; }
.mix-row-val { font-family: var(--font-mono); font-size: 11px; color: var(--silver); text-align: right; }

/* mix chips for regions */
.mix-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mix-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; background: var(--bone); border: 1px solid var(--rule);
  border-radius: 999px; font-size: 12px; color: var(--ink);
}
.mix-chip strong { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }

/* deal table inside spotlight */
.spotlight-deal-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spotlight-deal-table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--silver); font-weight: 500;
  padding: 8px 10px; border-bottom: 1px solid var(--rule);
}
.spotlight-deal-table thead th.num { text-align: right; }
.spotlight-deal-table tbody td {
  padding: 10px; border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.spotlight-deal-table tbody td.num { text-align: right; font-family: var(--font-mono); font-weight: 600; }
.spotlight-deal-table tbody tr { cursor: pointer; transition: background 120ms ease; }
.spotlight-deal-table tbody tr:hover { background: var(--bone); }
.spotlight-deal-table tbody tr:last-child td { border-bottom: 0; }

/* investor list inside spotlight */
.spotlight-investors { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.spotlight-investors li {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
}
.spotlight-investors li:last-child { border-bottom: 0; }
.spotlight-inv-rank {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--silver); font-weight: 600;
}
.spotlight-inv-name { color: var(--ink); font-weight: 500; }
.spotlight-inv-meta { font-family: var(--font-mono); font-size: 11px; color: var(--silver); }

/* sub-theme chips */
.spotlight-subs { display: flex; flex-wrap: wrap; gap: 8px; }
.spotlight-sub-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; background: #fff; border: 1px solid var(--rule);
  border-radius: 4px; font-size: 12px; color: var(--ink);
}
.spotlight-sub-chip strong {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--silver); font-weight: 600;
}

.spotlight-footer { margin-top: 22px; display: flex; justify-content: flex-end; }
.spotlight-cta {
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 10px 18px;
  font-size: 13px; font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 120ms ease;
}
.spotlight-cta:hover { background: #051428; }

.spotlight-empty {
  font-size: 12px; color: var(--silver);
  font-family: var(--font-mono);
  padding: 8px 0;
}

/* Treemap cells now buttons; selected state */
.treemap-cell { border: 0; cursor: pointer; padding: 0; transition: transform 140ms ease, box-shadow 140ms ease; }
.treemap-cell:hover { transform: scale(1.01); z-index: 2; box-shadow: 0 4px 16px rgba(10,37,64,0.18); }
.treemap-cell.selected { outline: 2px solid var(--ink); outline-offset: -2px; z-index: 3; }
.treemap-cell:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* =========================================================
   INVESTOR TOGGLE
   ========================================================= */
.investor-controls {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.toggle-group {
  display: inline-flex;
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 3px;
  gap: 0;
}
.toggle-pill {
  background: transparent;
  border: 0;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--silver);
  cursor: pointer;
  border-radius: 4px;
  font-family: var(--font-sans);
  transition: all 120ms ease;
  letter-spacing: 0.01em;
}
.toggle-pill:hover { color: var(--ink); }
.toggle-pill.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(10,37,64,0.06);
}
.investor-note {
  font-size: 11px;
  color: var(--silver);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.investor-meta-soft { color: var(--silver); font-weight: 400; }

/* =========================================================
   COVERAGE NOTES — wide method item
   ========================================================= */
.method-item-wide { grid-column: 1 / -1; }
.method-item-wide p { line-height: 1.6; max-width: none; }

/* Small screens: spotlight collapses to single column */
@media (max-width: 760px) {
  .spotlight-stats { grid-template-columns: repeat(2, 1fr); }
  .spotlight-grid { grid-template-columns: 1fr; }
  .mix-row { grid-template-columns: 70px 1fr 70px; }
  .investor-controls { flex-direction: column; align-items: flex-start; gap: 8px; }
}
