:root {
    --header: #16161a;
    --ink: #0f1424;
    --text: #39415a;
    --muted: #667089;
    --paper: #f8f9fb;
    --line: #e6e9f0;
    --blue: #0095DA;
    --pink: #EB0683;
    --card: #111116;
    --card-line: rgba(255,255,255,.08);
    --chip: #ff7ac3;
    --faint: #8d93a6;
    --body: #a7adbd;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    background: var(--paper);
    color: var(--text);
    font-family: Manrope, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.55;
  }
  a { color: inherit; }
  img { max-width: 100%; display: block; }
  .header {
    background: var(--header);
    position: sticky;
    top: 0;
    z-index: 5;
    box-shadow: 0 1px 0 rgba(255,255,255,.06);
  }
  .header-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .logo { display: flex; align-items: center; }
  .logo img { height: 36px; width: auto; }
  nav { display: flex; gap: 26px; align-items: center; }
  nav a {
    color: #fffffe;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
  }
  nav a:hover, nav a[aria-current="page"] { color: var(--pink); }
  .wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
  .hero { text-align: center; padding: 64px 0 10px; }
  .hero h1 {
    margin: 0 auto;
    max-width: 18em;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--blue), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .hero p { margin: 14px auto 0; max-width: 38rem; color: var(--muted); font-size: 18px; }
  .cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 32px; }
  .cats button {
    border: 1px solid #2c2c36;
    border-radius: 99px;
    padding: 9px 20px;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    background: #111116;
    cursor: pointer;
    font-family: inherit;
  }
  .cats button:hover { border-color: var(--pink); }
  .cats button.on {
    border-color: transparent;
    background: linear-gradient(45deg, var(--blue), var(--pink));
  }
  .grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding-bottom: 28px;
  }
  .card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--card);
    border: 1px solid var(--card-line);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  .card[hidden] { display: none !important; }
  .card:hover {
    transform: translateY(-4px);
    border-color: rgba(235,6,131,.55);
    box-shadow: 0 18px 40px rgba(0,0,0,.45);
  }
  .cover {
    aspect-ratio: 1200 / 630;
    background: #0b0b10;
    overflow: hidden;
  }
  .cover svg, .featured { width: 100%; height: auto; display: block; }
  .cover strong {
    display: flex;
    align-items: flex-end;
    height: 100%;
    padding: 18px 20px;
    color: #fff;
    font-size: 22px;
    letter-spacing: -0.03em;
  }
  .cover.search { background: linear-gradient(135deg, #0095DA 0%, #16161a 48%, #EB0683 100%); }
  .cover.infrastructure { background: linear-gradient(145deg, #0b1c33, #0095DA 70%, #111116); }
  .cover.startups { background: linear-gradient(145deg, #2a0a22, #EB0683 62%, #0095DA); }
  .cover.tools { background: linear-gradient(160deg, #111116, #5b2a86 50%, #0095DA); }
  .cover.external { background: linear-gradient(135deg, #16161a, #0095DA 40%, #EB0683); }
  .card .row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 18px 20px 0;
    color: var(--faint);
    font-size: 13px;
  }
  .chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--chip);
    background: rgba(235,6,131,.12);
    border: 1px solid rgba(235,6,131,.3);
  }
  .card h2 {
    margin: 12px 0 0;
    padding: 0 20px;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 700;
    color: #fff;
  }
  .card .dek {
    margin: 8px 0 0;
    padding: 0 20px;
    color: var(--body);
    font-size: 15px;
    line-height: 1.6;
  }
  .card .more {
    margin-top: auto;
    padding: 16px 20px 20px;
    font-size: 14.5px;
    font-weight: 700;
    color: #5fc3f0;
  }
  .card:hover .more { color: var(--chip); }
  .band { padding: 10px 0 48px; }
  .band h2 {
    margin: 8px 0 18px;
    text-align: center;
    font-size: clamp(26px, 3vw, 36px);
    color: var(--ink);
    letter-spacing: -0.02em;
  }
  .empty { display: none; text-align: center; color: var(--muted); padding: 20px 0 40px; }
  article.essay { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 36px 0 12px; }
  article.essay .featured { border-radius: 16px; margin-bottom: 22px; }
  article.essay .chip { margin-bottom: 14px; }
  article.essay h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--ink);
  }
  article.essay .dek { margin: 16px 0 0; font-size: 22px; color: var(--muted); }
  article.essay .when { margin: 14px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
  article.essay .body p { font-size: 18.5px; line-height: 1.7; color: var(--text); margin: 0 0 1.05em; }
  article.essay .body a { color: var(--pink); font-weight: 700; text-underline-offset: 3px; }
  article.essay .body a:hover { color: var(--blue); }
  .related { width: min(1180px, calc(100% - 40px)); margin: 10px auto 56px; }
  .related h2 {
    margin: 28px 0 16px;
    font-size: 22px;
    color: var(--ink);
  }
  footer {
    background: var(--header);
    color: #a8b1bd;
    padding: 36px 0 28px;
  }
  .foot {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
  }
  .foot p { margin: 10px 0 0; font-size: 14px; }
  .foot a { color: #fffffe; font-weight: 700; text-decoration: none; }
  .foot a:hover { color: var(--pink); }
  @media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 700px) {
    .header-inner { min-height: 68px; }
    .logo img { height: 28px; }
    nav { gap: 16px; }
    .grid { grid-template-columns: 1fr; }
    .hero { padding-top: 40px; }
    .foot { flex-direction: column; align-items: flex-start; }
  }