.hero-imac-visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.hero-imac-stage {
  position: relative;
  width: min(100%, 760px);
  aspect-ratio: 820 / 721;
  isolation: isolate;
}

.hero-imac-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 9% 5% 6%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(23, 67, 132, .22), rgba(23, 67, 132, 0) 70%);
  filter: blur(18px);
  pointer-events: none;
}

.hero-imac-screen {
  position: absolute;
  z-index: 1;
  top: 10.1%;
  left: 5.35%;
  width: 89.35%;
  height: 57.2%;
  overflow: hidden;
  background: #f7fafc;
}

.hero-imac-video {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f7fafc;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 140ms linear;
}

.hero-imac-video.is-active {
  z-index: 2;
  opacity: 1;
}

.hero-imac-frame {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 980px) {
  .hero-imac-visual {
    justify-content: center;
  }

  .hero-imac-stage {
    width: min(100%, 760px);
  }
}

@media (max-width: 640px) {
  .hero-imac-stage {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-imac-video {
    transition: none;
  }
}
