.hero {
  background: #fff;
  isolation: isolate;
}

.hero-art {
  inset: 14px 0 54px;
  background: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  container-type: size;
}

.hero-scene {
  position: relative;
  width: min(100cqw, calc(100cqh * 2560 / 1664));
  aspect-ratio: 2560 / 1664;
  visibility: hidden;
}

.hero.is-ready .hero-scene {
  visibility: visible;
}

.hero-loader {
  position: absolute;
  right: clamp(16px, 3vw, 36px);
  bottom: 20px;
  width: 104px;
  height: 88px;
  pointer-events: none;
}

.hero-loader img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  clip-path: inset(var(--hero-unloaded, 100%) 0 0 0);
  transition: clip-path 160ms linear;
}

.hero-loader[hidden], .hero-retry[hidden] {
  display: none;
}

.hero-retry {
  position: absolute;
  right: clamp(16px, 3vw, 36px);
  bottom: 24px;
  border: 1px solid #b9deef;
  border-radius: 18px;
  background: #f4fbff;
  color: #245e7c;
  font: inherit;
  font-size: 11px;
  padding: 9px 13px;
}

.hero-layer {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: var(--hero-pivot-x, 50.390625%) var(--hero-pivot-y, 63.1009615385%);
  pointer-events: none;
  user-select: none;
}

.hero .hero-development {
  position: absolute;
  top: 9px;
  left: 6%;
  right: 6%;
  margin: 0;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: .6px;
  color: #426e85;
  pointer-events: none;
}

.hero .scroll-cue {
  z-index: 1;
  bottom: 14px;
}

.hero.is-animating .hero-layer {
  will-change: transform;
}

@media (max-width: 680px) {
  .hero-art {
    inset: 54px 0 64px;
  }

  .hero-scene {
    width: min(calc(100cqw / (1 - 2 * var(--hero-mobile-crop, .12))), calc(100cqh * 2560 / 1664));
  }

  .hero .hero-development {
    text-align: center;
    top: 22px;
    font-size: 10px;
    letter-spacing: .3px;
  }

  .hero.is-animating .hero-layer {
    will-change: opacity;
  }
}

@media (max-width: 600px) {
  .hero-loader {
    width: 80px;
    height: 68px;
    bottom: 16px;
  }
}
