/* Real photographic planes are composited at different depths. */
.world-photo .scene-base,
.world-photo .depth-middle,
.world-photo .depth-front,
.world-photo .sky-occluder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: inherit;
  transform-origin: 50% 55%;
}
.world-photo {
  object-position: 50% 65%;
}
.world-photo .scene-base {
  transform: translate3d(calc(var(--camera-x, 0px) * 0.2), calc(var(--camera-y, 0px) * 0.2), 0)
    scale(1.04);
}
.garden-world .depth-middle {
  z-index: 1;
  transform: translate3d(calc(var(--camera-x, 0px) * 0.6), calc(var(--camera-y, 0px) * 0.6), 0)
    scale(1.08);
}
.garden-world .depth-front {
  z-index: 2;
  transform: translate3d(var(--camera-x, 0px), var(--camera-y, 0px), 0) scale(1.12);
}
.home-world .scene-base,
.home-world .sky-occluder {
  transform: translate3d(calc(var(--camera-x, 0px) * 0.5), calc(var(--camera-y, 0px) * 0.5), 0)
    scale(1.04);
}
.home-world .home-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transform: translate3d(calc(var(--camera-x, 0px) * 0.1), calc(var(--camera-y, 0px) * 0.1), 0)
    scale(1.02);
}
.home-world .sky-occluder {
  z-index: 2;
  pointer-events: none;
}
.world-shade {
  z-index: 10;
}
.cinematic-air {
  z-index: 11;
}
.feature::before,
.modules::before,
.install::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #000d, #0004 75%), linear-gradient(#0004, transparent 65%, #0007);
}
.access-feature::before,
.tickets-feature::before {
  background:
    linear-gradient(270deg, #000d, #0003 75%), linear-gradient(#0004, transparent 65%, #0007);
}
.modules::before {
  background: linear-gradient(90deg, #000d, #0007), linear-gradient(#0004, transparent 50%, #0009);
}
.install::before {
  background: linear-gradient(#0007, #0003 40%, #000a);
}
.feature,
.install {
  background: transparent;
}
.phone-anchor {
  margin: 0;
  position: relative;
  width: clamp(220px, 21vw, 300px);
  aspect-ratio: 411 / 869;
  justify-self: center;
}
.phone-anchor > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 28px;
}
.home-composition .phone-anchor {
  justify-self: center;
}
@media (max-width: 1000px) {
  .phone-anchor {
    width: clamp(225px, 29vw, 280px);
  }
}
@media (max-width: 640px) {
  .world-photo {
    object-position: 50% 100%;
  }
  .morning-world {
    object-position: 57% 100%;
  }
  .home-world {
    object-position: 46% 100%;
  }
  .home-composition .phone-anchor {
    position: absolute;
    right: 7px;
    bottom: 90px;
    width: 150px;
    margin: 0;
  }
  .feature .phone-anchor {
    width: 180px;
  }
  .access-feature .phone-anchor,
  .tickets-feature .phone-anchor {
    align-self: flex-start;
    margin-left: 14px;
  }
  .cameras-feature .phone-anchor {
    align-self: flex-end;
    margin-right: 14px;
  }
  .feature::before,
  .access-feature::before,
  .tickets-feature::before {
    background: linear-gradient(#000c, #0006 44%, #0002 70%, #0006);
  }
}
@media (max-width: 640px) and (min-height: 900px) {
  .feature .phone-anchor {
    width: 205px;
  }
}
@media (max-width: 350px) {
  .feature .phone-anchor {
    width: 150px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .world-photo .scene-base,
  .world-photo .depth-middle,
  .world-photo .depth-front,
  .world-photo .sky-occluder,
  .home-world .home-sky {
    transform: none;
  }
}
.world-photo {
  opacity: calc(var(--world-opacity, 0) * var(--asset-ready, 0));
}
/* Scroll already supplies the easing. A time-based opacity transition would
   trail behind it and expose black when the preceding frame is culled. */
.world-photo[data-loaded="true"] {
  transition: none;
}
.morning-world::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(90deg, #000b, transparent 75%), linear-gradient(#0006, transparent 55%, #0005);
}
html[data-intro="ready"] .morning::before {
  content: none;
}
@media (max-width: 640px) {
  .morning-world::after {
    background: linear-gradient(#000c, #0007 38%, transparent 80%);
  }
}
.world-photo .depth-middle,
.world-photo .depth-front {
  display: block;
}
.depth-middle img,
.depth-front img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 65%;
}
.closing-world > picture {
  position: absolute;
  inset: 0;
  display: block;
}
@media (max-width: 640px) {
  .arrival-world {
    object-position: 57% 100%;
  }
  .porch-world {
    object-position: 46% 100%;
  }
  .depth-middle img,
  .depth-front img {
    object-position: 50% 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .world-photo[data-loaded="true"] {
    transition: none;
  }
}

/* Inner scenes use separate source-aligned photographic planes. */
.layered-world .scene-base {
  z-index: 0;
}
.layered-world .depth-middle {
  z-index: 2;
  transform: translate3d(calc(var(--camera-x, 0px) * 0.58), calc(var(--camera-y, 0px) * 0.58), 0)
    scale(1.08);
}
.layered-world .depth-front {
  z-index: 3;
  transform: translate3d(var(--camera-x, 0px), var(--camera-y, 0px), 0) scale(1.14);
}
.home-world .night-depth {
  transform: translate3d(calc(var(--camera-x, 0px) * 0.1), calc(var(--camera-y, 0px) * 0.1), 0)
    scale(1.04);
  background: radial-gradient(ellipse at 52% 4%, #12324d, #071625 55%, #030d17);
}
.closing-world .scene-base {
  transform: none;
}
.story-world .sky-mask {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .layered-world .depth-middle,
  .layered-world .depth-front,
  .home-world .night-depth {
    transform: none;
  }
}

.closing-world {
  object-position: 50% 100%;
}
.layered-world .depth-front img {
  object-position: inherit;
}
