  @import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Syne:wght@700;800&display=swap');
  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #ffffff;
    color: #111827;
    min-height: 100vh;
    padding: 0 0 72px;
  }

  header {
    padding: 32px 48px 32px;
  }
  header h1 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1.15;
  }
  header h1 .accent { color: #0f172a; }
  header p {
    margin-top: 10px;
    font-size: 13px;
    color: #9CA3AF;
  }

  .legend {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    flex-wrap: wrap;
  }
  .legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #9CA3AF;
  }
  .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
  }

  .filter-bar {
    padding: 0 48px 32px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .filter-btn {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1.5px solid rgba(0,0,0,0.12);
    background: transparent;
    color: #9CA3AF;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
  }
  .filter-btn:hover { border-color: #87AFC7; color: #5a8aaa; }
  .filter-btn.active { background: #0f172a; border-color: #0f172a; color: #EEF4F8; }

  /* ── Timeline ── */
  .timeline-wrapper {
    overflow-x: auto;
    padding: 0 48px;
    padding-bottom: 16px;
  }

  .timeline {
    display: flex;
    align-items: flex-start;
    gap: 0;
    min-width: max-content;
  }

  .batch-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 14px;
    border-right: 1px solid rgba(0,0,0,0.07);
  }
  .batch-col:last-child { border-right: none; }

  .batch-label {
    font-size: 11px;
    font-weight: 700;
    color: #9CA3AF;
    letter-spacing: 0.4px;
    white-space: nowrap;
    margin-bottom: 10px;
    text-align: center;
  }
  .batch-label.recent { color: #5a8aaa; }

  /* ── Bar chart above each year column ── */
  .bar-area {
    height: 48px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    margin-bottom: 4px;
    margin-top: 20px;
  }
  .bar-area::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 1px;
    background: rgba(0,0,0,0.08);
  }
  .bar-fill {
    border-radius: 3px 3px 0 0;
    background: #87AFC7;
    width: 60%;
    min-height: 2px;
    position: relative;
    transition: height 0.25s ease;
  }
  .bar-fill.recent { background: #5a8aaa; }
  .bar-num {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    color: #5a8aaa;
    white-space: nowrap;
    line-height: 1;
  }

  /* Grid of chips — auto-expands columns for busy years */
  .year-chips-grid {
    display: grid;
    gap: 4px;
    justify-items: center;
  }

  .logo-chip {
    position: relative;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    overflow: visible;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
  }
  .logo-chip:hover {
    transform: scale(1.2);
    z-index: 100;
  }

  .logo-chip img {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: block;
    object-fit: contain;
    background: #EEF4F8;
    border: 1.5px solid transparent;
  }

  .logo-chip.active img    { border-color: #87AFC7; }
  .logo-chip.acquired img  { border-color: #3b82f6; }
  .logo-chip.inactive img  { border-color: rgba(0,0,0,0.1); filter: grayscale(0.6) opacity(0.5); }
  .logo-chip.kinro img {
    border-color: #ff6600;
    box-shadow: 0 0 0 2px rgba(255,102,0,0.35);
  }

  /* Tooltip */
  /* Global floating tooltip — rendered in position:fixed so it never clips */
  #gtip {
    display: none;
    position: fixed;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 12px;
    width: 220px;
    z-index: 10000;
    pointer-events: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  #gtip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(255,255,255,0.15);
    pointer-events: none;
  }
  #gtip.flip-below::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: rgba(255,255,255,0.15);
  }
  #gtip-name {
    font-size: 12px;
    font-weight: 700;
    color: #EEF4F8;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #gtip-liner { font-size: 11px; color: #9CA3AF; line-height: 1.4; }
  #gtip-status {
    margin-top: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }
  #gtip-links {
    display: flex;
    gap: 6px;
    margin-top: 9px;
  }
  #gtip-links a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #cbd5e1;
    text-decoration: none;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    padding: 4px 6px;
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
  }
  #gtip-links a:hover {
    background: rgba(255,255,255,0.16);
    color: #ffffff;
  }

  .batch-count {
    font-size: 11px;
    font-weight: 700;
    color: #87AFC7;
    margin-top: 4px;
  }

  /* ── Stats bar ── */
  .stats {
    padding: 0 48px;
    margin-bottom: 32px;
    display: flex;
    gap: 36px;
  }
  .stat { text-align: left; }
  .stat-num {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
  }
  .stat-label {
    font-size: 11px;
    color: #9CA3AF;
    font-weight: 600;
    margin-top: 3px;
  }
  .stat-num.green { color: #87AFC7; }
  .stat-num.blue  { color: #3b82f6; }
  .stat-num.gray  { color: #9CA3AF; }

  /* ── Section dividers ── */
  .section-block {
    margin-top: 64px;
    padding-top: 44px;
    border-top: 1px solid rgba(0,0,0,0.08);
  }
  .section-header {
    padding: 0 48px 28px;
  }
  .section-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
  }
  .section-header p {
    margin-top: 6px;
    font-size: 13px;
    color: #9CA3AF;
  }

  /* ── Investor Landscape ── */
  .investor-grid {
    padding: 0 48px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 10px;
  }
  .investor-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: #fff;
    border: 1.5px solid #e5e9ee;
    border-radius: 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .investor-row:hover { border-color: #87AFC7; box-shadow: 0 2px 10px rgba(135,175,199,0.14); }
  .investor-rank {
    font-size: 10px; font-weight: 800; color: #9CA3AF;
    width: 18px; flex-shrink: 0; text-align: right;
  }
  .investor-name {
    font-size: 13px; font-weight: 700; color: #0f172a;
    flex: 1; min-width: 0;
  }
  .investor-type {
    font-size: 10px; font-weight: 600; color: #87AFC7;
    background: #EEF4F8; border-radius: 4px;
    padding: 2px 6px; white-space: nowrap; flex-shrink: 0;
  }
  .investor-logos { display: flex; gap: 5px; align-items: center; flex-shrink: 0; }
  .investor-chip {
    width: 24px; height: 24px; border-radius: 6px;
    object-fit: cover; border: 1px solid rgba(0,0,0,0.08);
    background: #f3f4f5;
  }
  .investor-count {
    font-size: 11px; font-weight: 800; color: #0f172a;
    background: #f3f4f5; border-radius: 6px;
    padding: 2px 7px; flex-shrink: 0;
  }
  .investor-disclaimer {
    padding: 16px 48px 0;
    font-size: 11px;
    color: #9CA3AF;
  }

  /* ── Top 10 Notable ── */
  .top10-scroll {
    padding: 0 48px;
    overflow-x: auto;
  }
  .top10-grid {
    display: flex;
    gap: 14px;
    padding-bottom: 12px;
    min-width: max-content;
  }
  .top10-card {
    width: 176px;
    background: #fff;
    border: 1.5px solid #e5e9ee;
    border-radius: 14px;
    padding: 18px 14px 14px;
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
    flex-shrink: 0;
    text-decoration: none;
  }
  .top10-card:hover {
    border-color: #87AFC7;
    box-shadow: 0 4px 18px rgba(135,175,199,0.2);
    transform: translateY(-2px);
  }
  .top10-rank {
    position: absolute;
    top: 12px;
    right: 10px;
    font-size: 10px;
    font-weight: 800;
    color: #87AFC7;
    background: #EEF4F8;
    border-radius: 6px;
    padding: 2px 7px;
    letter-spacing: 0.5px;
  }
  /* pinned chip ring */
  .logo-chip.chip-pinned, .chip-sm.chip-pinned {
    outline: 2px solid #87AFC7;
    outline-offset: 2px;
    border-radius: 10px;
  }

  .top10-rank.gold { color: #b8860b; background: #fef9e7; }
  .top10-rank.silver { color: #7a7a8a; background: #f4f4f6; }
  .top10-rank.bronze { color: #8b5a2b; background: #fdf0e6; }
  .top10-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    margin-bottom: 11px;
  }
  .top10-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 2px;
    padding-right: 30px;
  }
  .top10-batch {
    font-size: 11px;
    color: #9CA3AF;
    margin-bottom: 10px;
  }
  .top10-metric {
    font-size: 12px;
    font-weight: 700;
    color: #4a7d99;
    line-height: 1.3;
  }
  .top10-sub {
    font-size: 11px;
    color: #6b7280;
    margin-top: 3px;
    line-height: 1.35;
  }

  /* Next Breakouts variant — warm accent */
  .next-card {
    border-color: #e8e0d4;
    background: #fffdf9;
  }
  .next-card:hover {
    border-color: #c9a96e;
    box-shadow: 0 4px 18px rgba(201,169,110,0.18);
  }
  .next-card .top10-rank {
    color: #c9a96e;
    background: #fef6e7;
  }
  .next-card .top10-metric {
    color: #a07830;
  }

  /* ── P26 cards ── */
  .p26-card {
    border-color: #dce8f0;
    background: #f7fbff;
  }
  .p26-card:hover {
    border-color: #87AFC7;
    box-shadow: 0 4px 18px rgba(135,175,199,0.22);
  }
  .p26-rank {
    color: #4a7d99;
    background: #e8f3f9;
  }
  .p26-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #4a7d99;
    background: #d6ecf6;
    border-radius: 4px;
    padding: 2px 6px;
    margin-top: 2px;
  }
  .p26-metric {
    color: #4a7d99;
    font-weight: 600;
  }

  /* ── Swimlane (function cluster) ── */
  .swimlanes {
    padding: 0 48px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  /* Country section: wrap small-country lanes onto the same row */
  .swimlanes.country-wrap {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
  }
  .country-wrap .swimlane {
    width: auto;
    flex: 0 0 auto;
  }
  /* US always gets its own full row */
  .country-wrap .swimlane.country-us {
    width: 100%;
  }
  /* Narrow the flag+name label for compact country cards */
  .country-wrap .swimlane-label {
    width: auto;
    min-width: 0;
    padding: 8px 12px;
    white-space: nowrap;
  }
  /* Don't let logos area grow unboundedly in compact cards */
  .country-wrap .swimlane:not(.country-us) .swimlane-logos {
    flex: 0 0 auto;
  }
  /* Shrink the count badge in compact cards */
  .country-wrap .swimlane:not(.country-us) .swimlane-count-badge {
    min-width: 28px;
    padding: 0 10px 0 4px;
    font-size: 22px;
  }
  .swimlane {
    display: flex;
    align-items: center;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.07);
    transition: border-color 0.15s, background 0.15s;
  }
  .swimlane:hover { background: #EEF4F8; border-color: rgba(135,175,199,0.4); }

  .swimlane-label {
    width: 210px;
    min-width: 210px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    border-right: 1px solid rgba(0,0,0,0.06);
  }
  .swimlane-name {
    font-size: 12px;
    font-weight: 700;
    color: #1E2030;
  }
  .swimlane-sub {
    font-size: 10px;
    color: #9CA3AF;
    font-weight: 500;
  }

  .swimlane-logos {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    padding: 6px 0;
    align-items: flex-start;
    flex: 1;
    overflow: hidden;
  }
  .swimlane-year-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 10px;
    border-left: 1px solid rgba(0,0,0,0.05);
    gap: 4px;
  }
  .swimlane-year-group:first-child { border-left: none; }
  .swimlane-year-tag {
    font-size: 9px;
    font-weight: 700;
    color: #9CA3AF;
    letter-spacing: 0.3px;
  }
  .swimlane-year-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
  }

  /* Big count badge on the right of each swimlane */
  .swimlane-count-badge {
    min-width: 60px;
    padding: 0 18px 0 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 30px;
    font-weight: 800;
    color: #87AFC7;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    flex-shrink: 0;
  }

  /* ── Matrix ── */
  .matrix-wrapper {
    padding: 0 48px;
    overflow-x: auto;
  }
  .matrix {
    display: grid;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
    min-width: max-content;
  }
  .matrix-cell {
    border-right: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 6px;
    width: calc(5 * 32px + 4 * 4px + 12px); /* 5 chips + gaps + padding */
    min-height: 44px;
    display: grid;
    grid-template-columns: repeat(5, 32px);
    gap: 4px;
    align-content: flex-start;
    background: #ffffff;
  }
  .matrix-cell:last-child { border-right: none; }
  .matrix-cell.header-cell {
    background: #f3f4f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    width: calc(5 * 32px + 4 * 4px + 12px);
  }
  .matrix-cell.row-header {
    background: #f3f4f5;
    display: flex;
    align-items: center;
    width: 160px;
    border-right: 1px solid rgba(0,0,0,0.08);
  }
  .matrix-cell.corner {
    background: #f3f4f5;
    display: flex;
    width: 160px;
  }
  .matrix-cell.corner { background: #f3f4f5; }
  .matrix-cell.hot { background: #EEF4F8; }
  .matrix-cell.kinro-cell { background: rgba(255,102,0,0.06); border: 1px solid rgba(255,102,0,0.2); }
  .col-label {
    font-size: 9px;
    font-weight: 700;
    color: #9CA3AF;
    text-align: center;
    line-height: 1.3;
    white-space: normal;
    max-width: 60px;
  }
  .row-label {
    font-size: 11px;
    font-weight: 700;
    color: #1E2030;
    padding: 0 4px;
    white-space: nowrap;
  }
  .cell-count {
    font-size: 9px;
    color: #87AFC7;
    font-weight: 800;
    position: absolute;
    top: 4px;
    right: 5px;
  }
  .matrix-cell { position: relative; }

  /* Small logo chip used inside matrix / swimlane */
  .chip-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: visible;
    cursor: pointer;
    position: relative;
    transition: transform 0.12s;
    flex-shrink: 0;
  }
  .chip-sm:hover { transform: scale(1.2); z-index: 50; }
  .chip-sm img {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    border: 1px solid rgba(0,0,0,0.07);
    background: #ffffff;
    object-fit: contain;
    display: block;
  }
  .chip-sm.active img    { border-color: rgba(135,175,199,0.45); }
  .chip-sm.acquired img  { border-color: rgba(59,130,246,0.4); }
  .chip-sm.inactive img  { border-color: rgba(0,0,0,0.1); filter: grayscale(0.7) opacity(0.45); }
  .chip-sm.kinro img     { border-color: #ff6600; box-shadow: 0 0 0 2px rgba(255,102,0,0.3); }
  .chip-sm.p26-chip img, .logo-chip.p26-chip img { border-color: #87AFC7; box-shadow: 0 0 0 2px rgba(135,175,199,0.35); }


  /* ── Kinro nav bar (matches kinro.ai) ── */
  .kinro-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 clamp(16px, 4vw, 48px);
    background: rgba(255,255,255,0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.55);
  }
  .kinro-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }
  .kinro-nav-logo img {
    height: 28px;
    width: auto;
    display: block;
  }
  .kinro-nav-wordmark {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #000;
    font-family: 'Plus Jakarta Sans', sans-serif;
  }
  /* visually hidden but readable by crawlers (no display:none — avoids cloaking penalty) */
  .seo-content {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }

  /* ─────────────────────────────────────────────
     Mobile layout  (<= 640 px)
     ───────────────────────────────────────────── */
  @media (max-width: 640px) {
    body { padding: 0 0 48px; }
    header { padding-top: 24px; }

    /* Reduce horizontal gutters everywhere */
    header,
    .filter-bar,
    .timeline-wrapper,
    .top10-scroll,
    .investor-grid,
    .investor-disclaimer,
    .swimlanes,
    .matrix-wrapper,
    .section { padding-left: 16px; padding-right: 16px; }

    /* Header font scale */
    header h1 { font-size: 26px; }

    /* ── Timeline: keep horizontal scroll, just reduce gutter ── */
    .timeline-wrapper { padding-bottom: 12px; }

    /* ── Investor grid: one column, logo chips don't overflow ── */
    .investor-grid {
      grid-template-columns: 1fr;
    }
    /* Give the name more room; let logos section scroll if needed */
    .investor-row { gap: 8px; flex-wrap: nowrap; }
    .investor-name { font-size: 12px; }
    .investor-type { font-size: 9px; padding: 2px 5px; }
    /* logos area: allow horizontal scroll so chips are never clipped */
    .investor-logos {
      overflow-x: auto;
      overflow-y: hidden;
      flex-shrink: 1;
      max-width: 80px;
    }

    /* ── Swimlanes (function clusters + country): two-row layout ── */
    /*   Row 1: label (flex:1) + count badge
         Row 2: scrollable logo chips (full width)               */
    .swimlane {
      flex-wrap: wrap;
      align-items: center;
    }
    .swimlane-label {
      width: auto;
      min-width: 0;
      flex: 1;
      border-right: none;
      padding: 10px 14px 8px;
    }
    /* Count badge stays at end of row 1 */
    .swimlane-count-badge {
      min-width: 0;
      padding: 0 12px 0 4px;
      font-size: 22px;
    }
    /* Chips area: full-width row 2, scrolls horizontally */
    .swimlane-logos {
      flex-basis: 100%;
      overflow-x: auto;
      overflow-y: hidden;
      flex-wrap: nowrap;
      padding: 6px 12px 10px;
      border-top: 1px solid rgba(0,0,0,0.06);
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .swimlane-logos::-webkit-scrollbar { display: none; }

    /* Year group spacing */
    .swimlane-year-group { padding: 2px 8px; }

    /* Country wrap: single column on mobile */
    .swimlanes.country-wrap { flex-direction: column; }
    .country-wrap .swimlane { width: 100%; flex-wrap: wrap; }
    .country-wrap .swimlane-label { width: auto; min-width: 0; flex: 1; }
    .country-wrap .swimlane-count-badge { font-size: 22px; }

    /* ── P26 cards: single column ── */
    .p26-grid { grid-template-columns: 1fr; }

    /* ── Section titles ── */
    .section-title { font-size: 22px; }
  }
</style>
