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

.home-hero {
  padding-top: calc(var(--bar-h) + 36px);
  padding-bottom: 210px;
}

.home-hero .hero-copy {
  max-width: 660px;
}

.home-hero .hero-title {
  max-width: 100%;
}

.home-hero .hero-sub {
  max-width: 540px;
}

.home-facts {
  justify-content: center;
  margin-top: 20px;
}

.home-hero .plat-row {
  margin-top: 22px;
}

.home-sky {
  fill: url(#valley-sky);
}

.home-terminal {
  top: calc(var(--bar-h) + 13vh);
  width: 284px;
}

.home-terminal .term-code {
  padding-inline: 14px;
  font-size: 10.5px;
}

.home-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
}

.home-book > [role="tablist"] {
  grid-column: 1;
  grid-row: 1;
}

.home-book > [role="tabpanel"] {
  grid-column: 2;
  grid-row: 1;
}

.home-reading-note {
  max-width: 800px;
  margin-top: 36px;
  margin-left: auto;
  color: var(--text-muted);
  line-height: 1.85;
}

.home-platform-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}

.home-platform-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  grid-column: span 2;
}

.home-platform-card:nth-child(n + 4) {
  grid-column: span 3;
}

.home-system-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.home-platform-card p {
  color: var(--text-muted);
  line-height: 1.85;
}

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

.home-section-link {
  margin-top: 30px;
  margin-bottom: 0;
}

.home-river {
  isolation: isolate;
  align-items: start;
}

.home-river .river-step {
  line-height: 1.85;
}

.home-river:not(.river-steps) {
  display: grid;
  gap: 24px;
  padding-block: 48px;
}

.home-river:not(.river-steps) .river-step {
  margin-top: 0;
}

.home-river:not(.river-steps) .river-path {
  display: none;
}

.home-river .river-step p {
  color: var(--text-muted);
}

.home-river .river-step p:last-child {
  margin-bottom: 0;
}

.home-step-river {
  fill: none;
  stroke: var(--feature-lake);
  stroke-width: 30px;
  stroke-linecap: round;
}

.home-community {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.home-community-copy,
.home-source {
  min-width: 0;
}

.home-community-copy h3 {
  margin-top: 32px;
  margin-bottom: 16px;
}

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

.home-community-copy p,
.home-source p {
  color: var(--text-muted);
  line-height: 1.85;
}

.home-source {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--panel-2);
  color: var(--text);
}

.home-source h3 {
  margin-top: 20px;
  margin-bottom: 16px;
}

.home-source pre {
  padding: 20px;
  background: var(--panel);
  color: var(--text);
}

.home-source .home-copy-status {
  min-height: 3.7em;
  margin-top: 16px;
  margin-bottom: 12px;
  font-size: 14px;
}

@media (min-width: 1181px) and (max-width: 1390px) {
  .home-terminal {
    top: auto;
    bottom: 100px;
    width: 268px;
  }
}

@media (max-width: 1180px) {
  .home-terminal {
    position: absolute;
    top: auto;
    bottom: 110px;
    left: var(--hero-gutter);
    margin: 0;
    width: 268px;
  }
}

@media (max-width: 960px) {
  .home-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-platform-card,
  .home-platform-card:nth-child(n + 4) {
    grid-column: auto;
  }

  .home-platform-card:last-child {
    grid-column: 1 / -1;
  }

  .home-community {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 800px) {
  .home-book > [role="tablist"] {
    grid-column: 1;
    grid-row: 1;
  }

  .home-book > [role="tabpanel"] {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 768px) {
  .home-hero {
    padding-bottom: 150px;
  }

  .home-hero .hero-title {
    font-size: clamp(24px, 4.5vw, 30px);
  }

  .home-hero .hero-sub {
    font-size: 16px;
  }

  .home-reading-note {
    margin-top: 28px;
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding-top: calc(var(--bar-h) + 28px);
    padding-bottom: 140px;
  }

  .home-hero .eyebrow {
    font-size: 11px;
    letter-spacing: 0;
    padding-inline: 10px;
  }

  .home-facts {
    gap: 6px;
    margin-top: 16px;
  }

  .home-facts .badge {
    padding-inline: 9px;
    font-size: 11px;
  }

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

  .home-platform-card:last-child {
    grid-column: auto;
  }

  .home-source {
    padding: 20px;
  }

  .home-community {
    gap: 24px;
  }
}

@media (max-height: 740px) and (min-width: 861px) {
  .home-hero {
    padding-top: calc(var(--bar-h) + 24px);
    padding-bottom: 130px;
  }

  .home-terminal {
    top: auto;
    bottom: 42px;
  }
}