<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <title>{{title}}</title>
  <style>
    :root {
      color-scheme: light dark;
      --color-background-primary: rgb(255 255 255);
      --color-background-secondary: rgb(248 246 240);
      --color-background-tertiary: rgb(241 239 232);
      --color-text-primary: rgb(44 44 42);
      --color-text-secondary: rgb(95 94 90);
      --color-border-primary: rgba(44, 44, 42, 0.3);
      --color-border-secondary: rgba(44, 44, 42, 0.16);
      --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
      --border-radius-md: 8px;
      --border-radius-lg: 12px;
      --border-width-hairline: 0.5px;
      --ramp-teal-200: #5DCAA5;
      --ramp-teal-600: #0F6E56;
      --ramp-teal-800: #085041;
      --ramp-gray-50: #F1EFE8;
      --ramp-gray-100: #D3D1C7;
    }
    @media (prefers-color-scheme: dark) {
      :root {
        --color-background-primary: rgb(44 44 42);
        --color-background-secondary: rgb(36 36 34);
        --color-background-tertiary: rgb(27 27 25);
        --color-text-primary: rgb(241 239 232);
        --color-text-secondary: rgb(211 209 199);
        --color-border-primary: rgba(241, 239, 232, 0.3);
        --color-border-secondary: rgba(241, 239, 232, 0.16);
      }
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      min-height: 100%;
      background: var(--color-background-secondary);
      color: var(--color-text-primary);
      font-family: var(--font-sans);
      font-size: 15px;
      line-height: 1.6;
      font-variant-numeric: tabular-nums;
    }
    main {
      width: min(1120px, calc(100% - 48px));
      margin: 0 auto;
      padding: 48px 0 64px;
      display: grid;
      gap: 20px;
    }
    .hero,
    .panel {
      border: var(--border-width-hairline) solid var(--color-border-primary);
      border-radius: var(--border-radius-lg);
      background: var(--color-background-primary);
    }
    .hero {
      padding: 32px;
      display: grid;
      gap: 20px;
    }
    .eyebrow {
      color: var(--ramp-teal-800);
      font-size: 12px;
      letter-spacing: 0.12em;
    }
    .hero-copy {
      display: grid;
      gap: 10px;
      max-width: 720px;
    }
    .hero-copy h1 {
      margin: 0;
      font-family: var(--font-serif);
      font-size: clamp(38px, 6vw, 68px);
      font-weight: 500;
      line-height: 0.94;
    }
    .hero-copy p,
    .hero-copy li,
    .hero-copy strong {
      margin: 0;
      color: var(--color-text-secondary);
      font-weight: 400;
    }
    .metric-grid,
    .panel-grid {
      display: grid;
      gap: 16px;
    }
    .metric-grid {
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .metric-card {
      border: var(--border-width-hairline) solid var(--color-border-secondary);
      border-radius: var(--border-radius-md);
      padding: 16px;
      display: grid;
      gap: 6px;
    }
    .metric-card span {
      color: var(--color-text-secondary);
      font-size: 13px;
    }
    .metric-card strong {
      font-size: 28px;
      font-weight: 500;
      line-height: 1.1;
    }
    .panel-grid {
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .panel {
      padding: 20px;
      display: grid;
      gap: 16px;
    }
    .panel h2 {
      margin: 0;
      font-size: 20px;
      font-weight: 500;
      line-height: 1.15;
    }
    .panel-header {
      display: grid;
      gap: 6px;
    }
    .panel-header p {
      margin: 0;
      color: var(--color-text-secondary);
    }
    .rank-list,
    .insight-list {
      margin: 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 14px;
    }
    .rank-row {
      display: grid;
      gap: 8px;
    }
    .rank-label {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: baseline;
    }
    .rank-label strong {
      font-weight: 500;
    }
    .rank-label span {
      color: var(--color-text-secondary);
      font-size: 13px;
    }
    .bar-track {
      height: 8px;
      border-radius: 999px;
      background: var(--ramp-gray-50);
      overflow: hidden;
    }
    .bar-fill {
      height: 100%;
      border-radius: 999px;
      background: var(--ramp-teal-600);
    }
    .timeline {
      display: grid;
      gap: 12px;
    }
    .timeline-grid,
    .bar-group {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
      gap: 10px;
      align-items: end;
      min-height: 180px;
    }
    .timeline-column {
      display: grid;
      gap: 8px;
      justify-items: center;
    }
    .timeline-bar {
      width: 100%;
      border-radius: 999px 999px 0 0;
      background: var(--ramp-teal-200);
      border: var(--border-width-hairline) solid var(--color-border-secondary);
      min-height: 18px;
    }
    .timeline-column strong {
      font-size: 14px;
      font-weight: 500;
    }
    .timeline-column span {
      color: var(--color-text-secondary);
      font-size: 12px;
      text-align: center;
    }
    .insight-card {
      border: var(--border-width-hairline) solid var(--color-border-secondary);
      border-radius: var(--border-radius-md);
      padding: 16px;
      display: grid;
      gap: 6px;
    }
    .insight-card strong {
      font-weight: 500;
    }
    .footer-copy {
      color: var(--color-text-secondary);
      font-size: 14px;
    }
    @container main-shell (max-width: 720px) {
      .hero,
      .panel {
        padding: 18px;
      }
      main {
        width: min(100%, calc(100% - 24px));
      }
    }
  </style>
</head>
<body>
  <main style="container-type:inline-size; container-name:main-shell;">
    <section class="hero">
      <div class="hero-copy">
        <div class="eyebrow">{{eyebrow}}</div>
        <h1>{{title}}</h1>
        <p>{{description}}</p>
        <p>{{best_fit_copy}}</p>
        <p>{{required_input_copy}}</p>
        <p>{{preview_copy}}</p>
      </div>
      <div class="metric-grid">
        <article class="metric-card">
          <span>Connections</span>
          <strong>{{connection_count_display}}</strong>
        </article>
        <article class="metric-card">
          <span>Industries</span>
          <strong>{{industry_count_display}}</strong>
        </article>
        <article class="metric-card">
          <span>C-suite or founder</span>
          <strong>{{c_suite_count_display}}</strong>
        </article>
        <article class="metric-card">
          <span>Top industry share</span>
          <strong>{{top_industry_share_display}}</strong>
        </article>
      </div>
    </section>

    <section class="panel-grid">
      <article class="panel">
        <div class="panel-header">
          <h2>Industry concentration</h2>
          <p>{{top_industry_label}} leads with {{top_industry_count_display}} connections.</p>
        </div>
        <ul class="rank-list">
          {{#each industries}}
          <li class="rank-row">
            <div class="rank-label">
              <strong>{{label}}</strong>
              <span>{{count_display}} · {{share_display}}</span>
            </div>
            <div class="bar-track"><div class="bar-fill" style="width: {{bar_width}}%;"></div></div>
          </li>
          {{/each}}
        </ul>
      </article>

      <article class="panel">
        <div class="panel-header">
          <h2>Seniority access</h2>
          <p>Know whether the network already reaches decision-makers or mostly operator layers.</p>
        </div>
        <ul class="rank-list">
          {{#each seniority_rows}}
          <li class="rank-row">
            <div class="rank-label">
              <strong>{{label}}</strong>
              <span>{{count_display}} · {{share_display}}</span>
            </div>
            <div class="bar-track"><div class="bar-fill" style="width: {{bar_width}}%;"></div></div>
          </li>
          {{/each}}
        </ul>
      </article>
    </section>

    <section class="panel">
      <div class="panel-header">
        <h2>Connection velocity preview</h2>
        <p>Most recent visible update: {{latest_connected_on}}. Quarter buckets: {{quarter_count_display}}.</p>
      </div>
      <div class="timeline">
        <div class="timeline-grid bar-group">
          {{#each timeline_points}}
          <div class="timeline-column">
            <div class="timeline-bar" style="height: {{bar_width}}%;"></div>
            <strong>{{count_display}}</strong>
            <span>{{label}}</span>
          </div>
          {{/each}}
        </div>
      </div>
    </section>

    <section class="panel">
      <div class="panel-header">
        <h2>Best fit next moves</h2>
        <p>Keep the shell fixed. Refresh the data. Reuse the same review path every time.</p>
      </div>
      <ul class="insight-list">
        {{#each recommendations}}
        <li class="insight-card">
          <strong>{{title}}</strong>
          <span class="footer-copy">{{body}}</span>
        </li>
        {{/each}}
      </ul>
    </section>
  </main>
</body>
</html>
