/* Fonts are served from this site (no third-party requests). unicode-range makes the browser fetch
   only the subsets a page actually uses: Poppins for Latin and Devanagari, Montserrat for Cyrillic
   and Vietnamese. Arabic, Hebrew, Urdu and CJK use the system fonts. */
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-devanagari-400.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-latin-ext-400.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/poppins-devanagari-500.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/poppins-latin-ext-500.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/poppins-latin-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-devanagari-600.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-latin-ext-600.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-latin-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-devanagari-700.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-latin-ext-700.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-latin-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/poppins-devanagari-800.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/poppins-latin-ext-800.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/poppins-latin-800.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/montserrat-cyrillic-ext-400-800.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/montserrat-cyrillic-400-800.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/montserrat-vietnamese-400-800.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/montserrat-latin-ext-400-800.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/montserrat-latin-400-800.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #000;
  --ink: #fff;
  --muted: #a1a1aa;
  --line: #26262e;
  --surface: #111116;
  --card: #fff;
  --card-ink: #111;
  --card-muted: #52525b;
  --accent: #a371f7;
  --accent-deep: #6d28d9;
  --grad: linear-gradient(90deg, #8b5cf6 0%, #c084fc 35%, #f0a5b8 70%, #fbb58b 100%);
  /* chart colours for startup outcomes; the first three pass the colour-blind checks as a set on black */
  --alive: #a371f7;
  --pub: #199e70;
  --acq: #d95926;
  --dead: #63636e;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 Poppins, Montserrat, system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}
html[lang="vi"] body { font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif; }
html[dir="rtl"] body { font-family: Poppins, system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Naskh Arabic", sans-serif; }
html[lang="ur"] body { font-family: Poppins, "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", system-ui, "Noto Naskh Arabic", sans-serif; line-height: 1.9; }
html[lang="ko"] body { font-family: Poppins, system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif; }
html[lang="zh-Hant"] body { font-family: Poppins, system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", sans-serif; }
html[lang="ja"] body { font-family: Poppins, system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Noto Sans CJK JP", sans-serif; }
/* Charts and number tables read left to right in every language. */
html[dir="rtl"] svg, html[dir="rtl"] .chart, html[dir="rtl"] .data-table { direction: ltr; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
h2 { font-size: 24px; font-weight: 700; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-bottom: 72px; }
main section { margin-top: 48px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* header */
.top .wrap { display: flex; align-items: center; gap: 20px; padding-block: 16px; flex-wrap: wrap; }
.brand { font-size: 22px; font-weight: 800; margin-inline-end: auto; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 500; }
.lang { position: relative; }
.lang summary { cursor: pointer; list-style: none; padding: 6px 12px; border-radius: 6px; background: var(--accent); font-weight: 600; font-size: 14px; }
.lang summary::-webkit-details-marker { display: none; }
.lang div { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 20; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(480px, calc(100vw - 32px)); max-height: 75vh; overflow-y: auto; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
@media (max-width: 520px) { .lang div { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lang a { padding: 6px 10px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang a:hover, .lang a[aria-current] { background: #22222b; text-decoration: none; }

/* hero */
.hero { text-align: center; padding: 40px 0 28px; }
.hero h1 { font-size: clamp(36px, 7vw, 60px); }
.hero p { margin-top: 14px; font-size: clamp(17px, 2.4vw, 24px); font-weight: 600; }
.search { position: relative; max-width: 560px; margin: 26px auto 0; text-align: start; }
.search input { width: 100%; padding: 13px 18px; border: 0; border-radius: 10px; background: #fff; color: #111; font: inherit; }
.search input:focus-visible { outline: 3px solid var(--accent); }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 15; overflow: hidden; background: #fff; color: #111; border-radius: 10px; box-shadow: 0 12px 40px rgb(0 0 0 / 50%); }
.search-results a, .search-results p { display: block; padding: 10px 16px; }
.search-results a:hover, .search-results a:focus { background: #f3ecff; text-decoration: none; }
.search-results small { display: block; color: var(--card-muted); }

/* filter panel */
.panel { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; margin-top: 24px; padding: 18px; background: var(--card); color: var(--card-ink); border-radius: var(--radius); }
.field { display: grid; gap: 6px; flex: 1 1 240px; min-width: 0; font-weight: 600; }
.panel select, .combo input { width: 100%; padding: 10px 12px; border: 1px solid #d4d4d8; border-radius: 10px; background: #fff; color: #111; font: inherit; }

/* type-to-filter picker that replaces the selects when JS is on */
.combo { position: relative; font-weight: 400; }
.combo input { padding-inline-end: 40px; font-weight: 500; text-overflow: ellipsis; }
.combo input::placeholder { color: #71717a; font-weight: 400; }
.combo input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.combo-clear { position: absolute; inset-inline-end: 6px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: #71717a; font-size: 20px; line-height: 1; cursor: pointer; }
.combo-clear:hover { background: #f4f4f5; color: #111; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 12; max-height: min(340px, 50vh); overflow-y: auto; overscroll-behavior: contain; padding: 6px; background: #fff; border: 1px solid #e4e4e7; border-radius: 12px; box-shadow: 0 16px 40px rgb(0 0 0 / 28%); }
.combo-group { padding: 10px 10px 4px; color: #71717a; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.combo-option { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.combo-option span { color: #71717a; font-variant-numeric: tabular-nums; }
.combo-option.is-active, .combo-option:hover { background: #f3ecff; }
.combo-option[aria-selected="true"] { font-weight: 600; color: var(--accent-deep); }
.combo-empty { padding: 10px; color: #71717a; }

/* buttons */
.btn { display: inline-block; padding: 9px 16px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.btn:hover { background: #9255f3; border-color: #9255f3; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--accent-deep); }
.btn-ghost:hover { background: #f3ecff; }
.pager .btn-ghost, .hero .btn-ghost { color: #d5bfff; }
.pager .btn-ghost:hover { background: #1c1430; }

/* breadcrumbs, intro, list head */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 14px; color: var(--muted); font-size: 14px; }
.crumbs i { font-style: normal; }
.crumbs span { color: var(--ink); }
.intro { max-width: 820px; margin-top: 14px; color: #d4d4d8; }
.list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 28px 0 16px; font-size: 18px; }
.list-head span { color: var(--muted); font-size: 15px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.section-head a { color: #d5bfff; font-weight: 500; white-space: nowrap; }
.group { margin: 18px 0 10px; font-size: 16px; font-weight: 600; color: var(--muted); }
main section > h2 { margin-bottom: 16px; }

/* startup cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 18px; background: var(--card); color: var(--card-ink); border-radius: var(--radius); }
.card-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid #e4e4e7; }
.card-head > div { min-width: 0; }
.card h3 { font-size: 22px; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.logo { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #f4f4f5; }
.logo-ph { display: grid; place-items: center; background: hsl(var(--h, 260) 70% 92%); color: hsl(var(--h, 260) 55% 32%); font-weight: 700; font-size: 20px; }
.label { font-weight: 600; }
.about { overflow-wrap: anywhere; }
.hq a { text-decoration: underline; text-decoration-color: #c4b5fd; text-underline-offset: 3px; }
.round strong { color: var(--accent-deep); }
.chips, .badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badges:empty, .chips:empty { display: none; }
.badges { margin-top: 6px; }
.chip, .fact, .badge { padding: 1px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.chip { background: #ede4ff; color: #5b21b6; }
.fact { background: #dbeafe; color: #1e3a8a; }
.badge { background: #f4f4f5; color: #52525b; }
.badge-hiring { background: #dcfce7; color: #166534; }
a.chip:hover, a.fact:hover { text-decoration: none; filter: brightness(0.95); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }

/* link pills on the dark background */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 500; }
.pill span { margin-inline-start: 4px; color: var(--muted); font-weight: 400; }
.pill:hover { border-color: var(--accent); text-decoration: none; }
h1 + .pills, .intro + .pills { margin-top: 20px; }

/* funding rows */
.raises { display: grid; gap: 12px; }
.intro + .raises, .pills + .raises { margin-top: 24px; }
.raise { display: grid; grid-template-columns: 150px minmax(0, 1fr) 190px; gap: 18px; align-items: start; padding: 16px 18px; background: var(--card); color: var(--card-ink); border-radius: var(--radius); }
.raise-amount strong { display: block; font-size: 26px; font-weight: 800; line-height: 1.2; color: var(--accent-deep); }
.raise-amount span { color: var(--card-muted); font-weight: 600; font-size: 14px; }
.raise-body { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.raise-body > div { min-width: 0; }
.raise-body .logo { width: 44px; height: 44px; font-size: 16px; }
.raise h3 { font-size: 19px; font-weight: 600; }
.raise-body p { margin: 2px 0 8px; color: #3f3f46; overflow-wrap: anywhere; }
.raise-meta { display: grid; gap: 4px; justify-items: end; color: var(--card-muted); font-size: 14px; }
.raise-meta a { color: var(--accent-deep); font-weight: 600; }

/* job rows reuse the funding-row card without the amount column */
.job { grid-template-columns: minmax(0, 1fr) auto; }
.pills + .raises, .funnel + .raises { margin-top: 24px; }

/* pager */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; color: var(--muted); }

/* profile */
.profile { padding: 24px; background: var(--card); color: var(--card-ink); border-radius: var(--radius); }
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid #e4e4e7; }
.profile-head > div:first-of-type { flex: 1 1 260px; min-width: 0; }
.profile-head .logo { width: 88px; height: 88px; font-size: 30px; }
.profile-head .actions { margin: 0; padding: 0; }
.profile h1 { font-size: clamp(28px, 4vw, 40px); }
.tagline { margin-top: 6px; font-size: 18px; color: #3f3f46; }
.profile-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; margin-top: 24px; }
.profile-cols-facts { grid-template-columns: 1fr; }
.profile-cols-facts .profile-facts { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.profile-main { display: grid; gap: 12px; align-content: start; }
.profile-main h2 { font-size: 20px; margin-top: 8px; }
.profile-main p { overflow-wrap: anywhere; white-space: pre-line; }
.profile-facts { display: grid; gap: 12px; align-content: start; margin: 0; padding: 18px; background: #f7f5ff; border-radius: 12px; }
.profile-facts dt { color: var(--card-muted); font-size: 13px; font-weight: 600; }
.profile-facts dd { margin: 0; font-weight: 500; }
.profile-facts a { text-decoration: underline; text-decoration-color: #c4b5fd; text-underline-offset: 3px; }

/* ---- charts ---- */
.is-alive { background: var(--alive); fill: var(--alive); }
.is-pub { background: var(--pub); fill: var(--pub); }
.is-acq { background: var(--acq); fill: var(--acq); }
.is-dead { background: var(--dead); fill: var(--dead); }
.sub { max-width: 820px; margin: -8px 0 18px; color: var(--muted); }
.method { max-width: 820px; margin-top: 48px; color: var(--muted); font-size: 14px; }
.intro-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; }
.intro-links:empty { display: none; }
.intro-links a { color: #d5bfff; font-weight: 500; }
.chart-scroll { overflow-x: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; padding: 0; list-style: none; color: #d4d4d8; font-size: 14px; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-inline-end: 6px; border-radius: 3px; }

/* 100 dots = 100 startups */
.waffle { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.waffle figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 20px; }
.waffle figcaption strong { font-size: 20px; }
.waffle figcaption span { color: var(--muted); font-size: 14px; }
.waffle-body { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; align-items: center; }
.waffle-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px; }
.waffle-grid i { aspect-ratio: 1; border-radius: 50%; transition: background-color 0.35s, transform 0.35s, box-shadow 0.35s; }
.waffle-grid .is-alive { box-shadow: 0 0 12px rgb(163 113 247 / 45%); }
.waffle-grid .is-dead { transform: scale(0.5); }
.waffle-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; margin: 0; padding: 0; list-style: none; }
.waffle-legend li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.waffle-legend i { width: 12px; height: 12px; border-radius: 50%; }
.waffle-legend strong { font-size: clamp(34px, 5vw, 54px); font-weight: 800; line-height: 1; }
.waffle-legend span { grid-column: 2; color: #d4d4d8; }
.waffle-control { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.waffle-control label { display: grid; flex: 1; gap: 4px; }
.waffle-control input { width: 100%; accent-color: var(--accent); }
.waffle-control label > span { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }

/* SVG charts */
.chart { display: block; width: 100%; min-width: 560px; height: auto; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .hit { fill: transparent; }
.chart .line { fill: none; stroke: var(--alive); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--alive); stroke: var(--bg); stroke-width: 2; }
.chart .hover-dot { opacity: 0; }
.chart .end-label { fill: #fff; font-size: 13px; font-weight: 600; }
.col { outline: none; }
.col:hover :not(.hit), .col:focus-visible :not(.hit) { filter: brightness(1.3); }
.col:hover .hover-dot, .col:focus-visible .hover-dot { opacity: 1; }
.data-table { margin-top: 12px; color: #d4d4d8; font-size: 14px; }
.data-table summary { cursor: pointer; color: #d5bfff; }
.data-table table { margin-top: 10px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 5px 14px 5px 0; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }

/* ranked 100% bars */
.rank { display: grid; gap: 2px; max-width: 900px; }
.rank-head, .rank-row { display: grid; grid-template-columns: minmax(110px, 230px) minmax(0, 1fr) 52px; gap: 14px; align-items: center; }
.rank-head { color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; }
.rank-head span:last-child { justify-self: end; }
.rank-row { margin: 0 -8px; padding: 5px 8px; border-radius: 8px; }
.rank-row:hover, .rank-row:focus-visible { background: var(--surface); text-decoration: none; outline: none; }
.rank-label { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.stack { display: flex; gap: 2px; height: 14px; }
.stack i { min-width: 2px; }
.stack i:last-child { border-radius: 0 4px 4px 0; }
.rank-value { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

/* milestone funnel */
.funnel { display: grid; gap: 12px; max-width: 900px; }
.funnel-row { display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr) minmax(120px, auto); gap: 14px; align-items: center; }
.funnel-row[data-tip] { outline: none; }
a.funnel-label { text-decoration: underline; text-decoration-color: #4b3a78; text-underline-offset: 3px; }
.funnel-track i { display: block; height: 20px; border-radius: 0 4px 4px 0; background: var(--alive); }
.funnel-value { color: #d4d4d8; white-space: nowrap; }
.funnel-value strong { color: #fff; font-size: 18px; }

/* benchmark tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.tile { display: grid; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: #d4d4d8; font-size: 14px; }
.tile strong { color: #fff; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.25; white-space: nowrap; }
.tile small { color: var(--muted); font-size: 13px; }

/* hover tooltip shared by all charts */
.tip { position: fixed; z-index: 50; min-width: 190px; max-width: 280px; padding: 10px 12px; border: 1px solid #33333d; border-radius: 10px; background: #1b1b22; box-shadow: 0 10px 30px rgb(0 0 0 / 50%); color: #d4d4d8; font-size: 13px; pointer-events: none; }
.tip b { display: block; margin-bottom: 6px; color: #fff; }
.tip div { display: grid; grid-template-columns: 12px 40px 1fr; gap: 8px; align-items: center; }
.tip i { height: 3px; border-radius: 2px; }
.tip strong { color: #fff; font-variant-numeric: tabular-nums; text-align: right; }

@media (prefers-reduced-motion: reduce) {
  .waffle-grid i { transition: none; }
}

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; color: var(--ink); font-weight: 500; }
.foot p { max-width: 820px; margin-top: 6px; }

@media (max-width: 760px) {
  .waffle { padding: 18px; }
  .waffle-body { grid-template-columns: 1fr; gap: 24px; }
  .waffle-grid { max-width: 320px; }
  .rank-head, .rank-row { grid-template-columns: minmax(90px, 130px) minmax(0, 1fr) 44px; gap: 10px; }
  .funnel-row { grid-template-columns: minmax(0, 1fr) auto; }
  .funnel-label { grid-column: 1 / -1; }
  .raise { grid-template-columns: 1fr; gap: 8px; }
  .raise-meta { justify-items: start; grid-auto-flow: column; justify-content: start; gap: 14px; }
  .profile-cols { grid-template-columns: 1fr; }
  .profile { padding: 18px; }
  .nav { order: 3; width: 100%; gap: 14px; font-size: 15px; }
}

/* Companies listed by their own founder, FAQ blocks and the "still in English" label. */
.badge-founder { background: #ede9fe; color: #5b21b6; }
.faq { margin-top: 36px; }
.faq h2 { margin-bottom: 6px; }
.qa { padding: 14px 0; border-bottom: 1px solid var(--line); }
.qa h3 { font-size: 17px; font-weight: 600; }
.qa p { margin-top: 6px; color: var(--muted); }
.original { margin-bottom: 8px; color: var(--card-muted); font-size: 13px; font-style: italic; }
