/* A full-bleed photograph with a separate, translucent moving stencil. */
#home .hero-foil-field {
  position: absolute;
  inset: 0;
  transform: none;
  overflow: hidden;
  isolation: isolate;
  container-type: size;
  background: #080808;
}

#home .hero-image-field {
  animation: none;
  transform: none;
}

#home .hero-image-field img {
  object-position: 50% 50%;
  filter: none;
  background: #080808;
}

#home .hero-frosted-object {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 52%;
  /* Match the scale of a 3:2 cover photo, with a cap for very wide screens. */
  width: min(max(120cqw, 180.113cqh), 215cqh);
  aspect-ratio: 1297 / 1213;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0) rotate(-3deg);
  transform-origin: center;
  animation: hero-glass-float 32s ease-in-out -6s infinite;
  will-change: transform;
}

#home .hero-frosted-surface,
#home .hero-frosted-outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#home .hero-frosted-surface {
  background: linear-gradient(135deg, rgb(255 255 250 / 8%), rgb(243 247 249 / 3%) 52%, rgb(255 255 255 / 10%));
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

#home .hero-frosted-outline {
  overflow: visible;
}

.jak-seo-home #home .hero-frosted-object,
body.jak-intro-disabled:not(.jak-hero-ready) #home .hero-frosted-object {
  animation-play-state: paused;
}

@keyframes hero-glass-float {
  0%, 100% { transform: translate3d(-50.8%, -49.6%, 0) rotate(-3deg); }
  50% { transform: translate3d(-49.2%, -50.4%, 0) rotate(-1deg); }
}

@media (max-width: 900px) {
  #home .hero-image-field img {
    object-fit: cover;
    object-position: 50% 45%;
  }
  #home .hero-frosted-surface {
    -webkit-backdrop-filter: blur(1.2px);
    backdrop-filter: blur(1.2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #home .hero-frosted-object {
    animation: none;
    will-change: auto;
  }
}
