.hero-float-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-float-image {
  position: absolute;
  display: block;
  width: clamp(360px, 30vw, 500px);
  max-height: 500px;
  object-fit: contain;
  filter: drop-shadow(0 24px 52px rgba(0, 0, 0, 0.34));
  animation: hero-float-sync 5.2s ease-in-out infinite;
  will-change: transform;
}

.hero-float-left {
  left: 0;
  top: 168px;
}

.hero-float-right {
  right: 0;
  top: 168px;
}

.hero-copy {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  width: min(100%, 1100px);
  max-width: 1100px;
  text-align: center;
}

.hero-copy h1 {
  max-width: 1100px;
}

.hero-copy p {
  max-width: 820px;
}

.hero-copy h1,
.hero-copy p {
  margin-right: auto;
  margin-left: auto;
}

.hero-media {
  grid-column: 2;
  grid-row: 1;
}

@keyframes hero-float-sync {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-24px);
  }
}

@media (max-width: 900px) {
  .hero-copy {
    grid-column: 1;
  }

  .hero-media {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-float-image {
    width: min(48vw, 260px);
    max-height: 280px;
  }

  .hero-float-left {
    left: 0;
    top: 126px;
  }

  .hero-float-right {
    right: 0;
    top: 126px;
  }
}
