/* Cursor parallax — oversized layers + clip hides edges (no bleed) */

.parallax-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: transparent;
  isolation: isolate;
}

.parallax-viewport__sizer {
  display: block;
  width: 100%;
  height: auto;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.parallax-layer {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  will-change: transform;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.parallax-layer__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

/* Text layer — no overscan; holds elevator pitch */
.parallax-layer--text {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-viewport--text {
  overflow: visible;
}

/* Homepage full-bleed hero — 100vw fit, no crop (layer matches sizer exactly) */
.hero-lockup--fullbleed .parallax-viewport,
.hero-lockup--fullbleed .hero-lockup__parallax {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  overflow: hidden;
  isolation: auto;
}

.hero-lockup--fullbleed .parallax-viewport__sizer {
  display: block;
  width: 100vw;
  max-width: 100vw;
  height: auto;
  margin: 0;
}

.hero-lockup--fullbleed .parallax-layer--hero {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  margin: 0;
  will-change: transform;
  backface-visibility: hidden;
}

.hero-lockup--fullbleed .parallax-layer--hero .parallax-layer__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  margin: 0;
  object-fit: contain;
  object-position: center top;
}

/* Legacy full-screen hero */
.hero-fullscreen__media .parallax-layer {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
}

.hero-fullscreen__media .parallax-layer__img,
.hero-fullscreen__media .hero-fullscreen__img {
  width: 100%;
  min-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  opacity: 0.56;
}

@media (prefers-reduced-motion: reduce) {
  .parallax-layer {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none !important;
  }

  .parallax-layer--text {
    transform: none !important;
  }

  .hero-lockup--fullbleed .parallax-layer--hero {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none !important;
  }

  .hero-lockup--fullbleed .hero-lockup__img--watermark {
    opacity: 0.34;
  }
}
