/*
  Sea-to-map reveal
  -----------------
  The live villa hero clips down into its existing circle while this clean
  production plate remains underneath. The artwork contains no embedded UI,
  logo, copy or property photography.
*/

.hero-iris-scene {
  isolation: isolate;
  background: #05251f;
  --map-reveal: 0;
  --map-shift: 0px;
  --map-scale: 1.055;
  --map-current-shift: 0vw;
}

.hero-map-layer {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.hero-map-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: #05251f;
}

.hero-map-media {
  position: absolute;
  inset: -2.5%;
  background-image: url("../assets/sea-to-map-background-v1.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: brightness(0.86) saturate(0.9) contrast(1.03);
  opacity: 0.96;
  transform: translate3d(0, var(--map-shift), 0) scale(var(--map-scale));
  transform-origin: 54% 50%;
  will-change: transform, opacity;
}

.hero-map-sticky::before,
.hero-map-sticky::after,
.hero-map-current {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero-map-sticky::before {
  z-index: 1;
  background:
    radial-gradient(circle at 72% 48%, rgba(217, 255, 121, 0.08), transparent 27%),
    linear-gradient(110deg, rgba(4, 25, 22, 0.18), transparent 30% 72%, rgba(3, 18, 16, 0.22));
}

.hero-map-sticky::after {
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(2, 19, 16, 0.23), transparent 24% 73%, rgba(2, 17, 14, 0.28)),
    radial-gradient(ellipse at center, transparent 48%, rgba(1, 14, 12, 0.32) 100%);
}

.hero-map-current {
  z-index: 2;
  left: -36%;
  width: 70%;
  background: linear-gradient(108deg, transparent 24%, rgba(183, 222, 211, 0.1) 48%, transparent 70%);
  filter: blur(18px);
  mix-blend-mode: screen;
  opacity: 0.24;
  transform: translate3d(var(--map-current-shift), 0, 0) skewX(-12deg);
  will-change: transform, opacity;
}

.hero-iris-scene > .hero {
  z-index: 2;
}

@media (max-width: 780px) {
  .hero-map-media {
    inset: -1.5%;
    background-position: 49% center;
    filter: brightness(0.8) saturate(0.88) contrast(1.02);
    transform-origin: 60% 50%;
  }

  .hero-map-sticky::before {
    background:
      radial-gradient(circle at 61% 48%, rgba(217, 255, 121, 0.07), transparent 31%),
      linear-gradient(110deg, rgba(4, 25, 22, 0.13), transparent 42% 72%, rgba(3, 18, 16, 0.2));
  }

  .hero-map-current {
    width: 92%;
    opacity: 0.16;
  }

}

@media (prefers-reduced-motion: reduce) {
  .hero-map-media,
  .hero-map-current {
    transform: none;
  }
}
