.home-hero {
  isolation: isolate;
  overflow: hidden;
}

.home-hero .hero-grid {
  display: block;
  position: relative;
}

.home-hero .hero-copy {
  text-align: center;
}

.home-hero h1 {
  max-width: 22ch;
  margin-inline: auto;
  text-wrap: balance;
}

.home-hero .hero-copy > p {
  max-width: 43rem;
  margin-inline: auto;
  text-wrap: pretty;
}

.home-hero .homepage-hero-actions {
  align-items: center;
}

.home-hero .homepage-hero-primary-actions {
  justify-content: center;
}

.home-hero .hero-wheat {
  position: absolute;
  z-index: 0;
  inset: 0 4% 0 auto;
  width: 12rem;
  height: 100%;
  min-height: 0;
  opacity: .65;
  pointer-events: none;
}

.home-memories-layout {
  gap: clamp(2rem, 5vw, 5rem);
}

/* Three equal product paths, without changing cards on other marketing pages. */
#product-paths .path-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#product-paths .path-card-copy {
  padding: 2rem;
}

#product-paths .path-card-copy p {
  padding-right: 0;
}

#product-paths .path-preview {
  position: relative;
  inset: auto;
  width: min(12rem, 75%);
  margin: 1rem auto -3rem;
  transform: rotate(-5deg);
}

@media (max-width: 900px) {
  #product-paths .path-grid { grid-template-columns: 1fr; }
  #product-paths .path-card { min-height: 0; }
  #product-paths .path-card-copy { padding: 1.65rem; }
}

.home-memories-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1rem;
  min-width: 0;
}

.home-memories-gallery figure {
  min-width: 0;
  margin: 0;
}

.home-memories-gallery .device-shot {
  width: 100%;
  max-width: 18rem;
  margin-inline: auto;
}

.home-memories-gallery figcaption,
.home-memories-caption {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.6;
  text-align: center;
}

.home-memories-gallery figcaption {
  margin-top: 1rem;
}

.home-memories-caption {
  grid-column: 1 / -1;
  margin: 0;
}

.split-copy > .home-memories-note {
  font-size: .8rem;
  line-height: 1.7;
}

.home-cta .cta {
  padding-block: 0;
}

.marketing-footer.home-footer {
  background: var(--surface);
}

@media (max-width: 680px) {
  .home-memories-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}
