:root {
  --home-fold-min: 690px;
  --home-section-gap: 28px;
  --home-platform-small: 10.5px;
}

.home-symbols {
  position: absolute;
  pointer-events: none;
}

.first {
  min-height: calc(max(var(--home-fold-min), 100vh) - var(--nav-h));
  min-height: calc(max(var(--home-fold-min), 100svh) - var(--nav-h));
  grid-template-rows: 1fr auto;
}

.first .stage {
  top: calc(-1 * var(--nav-h));
  width: min(64vw, calc((max(var(--home-fold-min), 100vh) - var(--bar-h)) * 900 / 880));
  width: min(64vw, calc((max(var(--home-fold-min), 100svh) - var(--bar-h)) * 900 / 880));
  height: auto;
}

.home-topics {
  margin-top: 14px;
}

.platforms .chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 500px;
  gap: 5px;
}

.platforms .chip {
  display: flex;
  width: 100%;
  min-height: 44px;
  padding-inline: 3px;
  gap: 5px;
}

.home-section {
  border-top: 1px solid var(--rail);
}

.home-section-head {
  display: grid;
  gap: 12px;
  max-width: 64ch;
  margin-bottom: var(--home-section-gap);
}

.home-section-head p,
.home-download-card p {
  margin-bottom: 0;
}

.home-index {
  font: var(--scale-mono)/1.5 var(--font-mono);
  letter-spacing: .09em;
  color: var(--accent-dark);
}

.home-feature-notes {
  margin-top: 36px;
}

.home-feature-notes h3 {
  margin-bottom: 14px;
}

.home-downloads {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-download-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.home-download-card .chip {
  min-height: 44px;
}

.home-download-card p {
  color: var(--text-muted);
}

.home-download-card .btn {
  margin-top: auto;
}

.home-download-note {
  margin-block: 20px 12px;
}

.home-icon-credit {
  margin: 12px 0 0;
  font-size: var(--scale-small);
}

.home-trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
}

.home-trust-copy h3:first-child {
  margin-top: 0;
}

.home-trust-copy p:last-child {
  margin-bottom: 0;
}

.home-source h3 {
  margin-bottom: 10px;
}

.home-source .actions {
  margin-top: 12px;
}

.home-copy-status {
  margin-block: 8px;
  font-size: var(--scale-small);
}

.home-copy-status:empty {
  display: none;
}

.home-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 14px;
  margin-top: 18px;
  border-top: 1px solid var(--border);
}

.home-posts {
  margin-bottom: 20px;
}

@media (max-width: 1180px) {
  .platforms .chip {
    font-size: var(--scale-mono);
  }
}

@media (max-width: 960px) {
  .first {
    min-height: 0;
    grid-template-rows: auto;
  }
  .first .stage {
    top: auto;
    width: min(100%, 620px);
  }
  .home-trust-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .home-downloads {
    grid-template-columns: minmax(0, 1fr);
  }
  .first .hero {
    padding-top: 28px;
  }
  .first .headline,
  .first .actions {
    margin-top: 16px;
  }
  .first .lede,
  .first .platforms {
    margin-top: 16px;
  }
  .platforms .chip {
    flex-direction: column;
    gap: 3px;
    padding-inline: 1px;
    font-size: var(--home-platform-small);
    line-height: 1.2;
  }
}

@media (max-width: 360px) {
  .first .rulecard {
    top: 23%;
  }
}