:root {
  --home-band-space: clamp(64px, 8vw, 112px);
  --home-hero-mobile: clamp(24px, 6.2vw, 30px);
  --home-glyph-mobile: 12px;
  --home-platform-type: 11px;
  --home-index-size: clamp(29px, 3.3vw, 46px);
  --home-card-lift: -3px;
  --home-card-shadow: 0 14px 24px -24px var(--shadow-ink);
  --home-card-shadow-raised: 0 19px 28px -22px var(--shadow-ink);
  --home-band-leading: 1.8;
}

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

.home-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.home .hero::after,
.home .hero__panel::after,
.home .hero__panel::before {
  content: none;
}

.home .hero__text {
  background: var(--bg);
}

.home .hero .btn--solid {
  background: var(--accent-dark);
  box-shadow: none;
}

.home .hero .btn {
  transition: none;
}

.home .hero .btn:not(:disabled):is(:hover, :active) {
  transform: none;
  text-decoration: underline;
}

@media (min-width: 961px) {
  .home .hero .lineage {
    top: 45%;
  }
}

.home .hero .panel-caption {
  bottom: 28px;
}

.home .hero .platforms a {
  min-height: var(--tap);
  gap: 6px;
  padding-inline: clamp(7px, 1.05vw, 18px);
}

.home .hero .platforms li:first-child a {
  padding-inline-start: 0;
}

.home .hero .platforms li:last-child a {
  padding-inline-end: 0;
}

.home-band {
  padding-top: var(--home-band-space);
  padding-bottom: var(--home-band-space);
  line-height: var(--home-band-leading);
}

.home-heading .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.home-heading .lead {
  max-width: 40em;
  margin-top: 16px;
}

.home-band.sec--tint {
  --surface: var(--bg-panel);
}

.home .feature-tabs [role="tab"]:last-child {
  border-bottom-color: var(--rule);
}

.home .feature-tabs [role="tab"]:last-child:is(:hover, [aria-selected="true"]) {
  border-bottom-color: var(--heading);
}

.home-platform-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 36px;
}

.home-platform-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  padding: clamp(18px, 2vw, 28px);
}

.home-platform-card h3 a {
  display: inline-flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  text-decoration: none;
}

.home-platform-card h3 a:hover {
  text-decoration: underline;
}

.home-platform-card h3 svg {
  width: 23px;
  height: 23px;
}

.home-platform-action {
  padding-top: 20px;
  margin-top: auto;
}

.home-more {
  margin: 26px 0 0;
  font-weight: var(--weight-label);
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: home-step;
}

.home-steps li {
  min-width: 0;
  padding-block: 18px 8px;
  border-top: var(--stroke) solid var(--rule);
  counter-increment: home-step;
}

.home-steps li::before,
.home-essays > section::before {
  display: block;
  margin-bottom: 12px;
  font: var(--weight-medium) var(--home-index-size)/1 var(--font-mono);
  letter-spacing: -.04em;
}

.home-steps li::before {
  content: counter(home-step, decimal-leading-zero);
  color: var(--text-muted);
}

.home-steps h3 {
  margin-bottom: 12px;
}

.home-ecosystem .meta {
  color: var(--on-ink);
}

.home-essays {
  counter-reset: home-essay;
}

.home-essays > section {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 20px;
  counter-increment: home-essay;
}

.home-essays > section::before {
  content: counter(home-essay, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 3;
  color: var(--on-ink-muted);
}

.home-essays h3,
.home-essays p {
  grid-column: 2;
  margin: 0;
}

.home-notes {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas: "feature second" "feature third";
  margin-top: 36px;
}

.home-note-featured {
  grid-area: feature;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  --surface: var(--bg-ink);
  --foreground: var(--on-ink);
  --heading: var(--on-ink-strong);
  --secondary: var(--on-ink);
  --muted: var(--on-ink);
  --focus: var(--on-ink-strong);
  --rule: var(--line-ink);
  background: linear-gradient(145deg, var(--accent), var(--bg-ink) 72%);
}

.home-note-featured h3 {
  font-size: var(--size-h2);
}

.home-notes > :nth-child(2) {
  grid-area: second;
}

.home-notes > :nth-child(3) {
  grid-area: third;
}

.home-platform-card,
.home-notes > .card {
  box-shadow: var(--home-card-shadow);
}

body:has(#home-download) .dl-fab:not(#home-download) {
  display: none;
}

@media (hover: hover) and (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .home-platform-card,
  .home-notes > .card {
    transition: transform var(--ease), box-shadow var(--ease);
  }

  .home-platform-card:hover,
  .home-notes > .card:hover {
    transform: translateY(var(--home-card-lift));
    box-shadow: var(--home-card-shadow-raised);
  }
}

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

@media (max-width: 960px) {
  .home .hero__text {
    padding-top: 24px;
    padding-bottom: 14px;
  }

  .home .hero h1 {
    font-size: var(--home-hero-mobile);
  }

  .home .hero .cta-row,
  .home .hero .lead {
    margin-top: 18px;
  }

  .home .hero .chips,
  .home .hero .platforms {
    margin-top: 14px;
  }

  .home .hero .platforms {
    padding-top: 5px;
  }

}

@media (max-width: 900px) {
  .home-ecosystem,
  .home .feature-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-band .sticky-rail {
    position: static;
  }

  .home-notes {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "feature" "second" "third";
  }

  .home-note-featured {
    min-height: 228px;
  }
}

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

  .home .hero .platforms ul {
    gap: 0;
  }

  .home .hero .platforms a {
    gap: 4px;
  }

  .home-essays > section {
    column-gap: 12px;
  }
}

@media (max-width: 520px) {
  .home .hero .chips ul {
    justify-content: flex-start;
  }

  .home .hero .platforms ul {
    flex-wrap: nowrap;
  }

  .home .hero .platforms a {
    padding-inline: 6px;
    font-size: var(--home-platform-type);
    white-space: nowrap;
  }

  .home .hero .plat__icon {
    width: var(--home-glyph-mobile);
    height: var(--home-glyph-mobile);
  }
}