/* Environmental layers are enhancement only; complete sections remain underneath. */
.handover-cover,
.window-layers {
  display: none;
  pointer-events: none;
}
@media (min-width: 1001px) and (min-height: 650px) and (prefers-reduced-motion: no-preference) {
  .haru-handover.has-motion-space {
    height: 175svh;
    margin-top: -100svh;
    position: relative;
    z-index: 1;
  }
  .has-motion-space .haru-presence {
    position: sticky;
    top: 0;
    height: 100svh;
  }
  .haru-handover.is-layered {
    pointer-events: var(--handover-events, none);
  }
  .is-layered .haru-presence {
    opacity: var(--handover-visible, 0);
  }
  .is-layered .handover-cover {
    display: block;
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 3;
  }
  .handover-garden {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% center;
    opacity: var(--garden-cover, 1);
  }
  .handover-canopy {
    position: absolute;
    inset: -4% -20%;
    background: #4a501f;
    mask-image: linear-gradient(
      90deg,
      transparent,
      #000 12%,
      #000 88%,
      transparent
    );
    transform: translateX(var(--branch-x, 100%));
    opacity: var(--branch-alpha, 0);
  }
  .handover-branch {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
@media (min-width: 901px) and (min-height: 650px) and (prefers-reduced-motion: no-preference) {
  .is-moving .window-picture {
    visibility: hidden;
  }
  .is-moving .window-layers {
    display: block;
    position: absolute;
    inset: 0;
    overflow: hidden;
  }
  .window-layers img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .window-garden {
    transform: scale(var(--garden-scale, 1.18));
  }
  .window-room {
    transform-origin: 72% 22%;
    transform: scale(var(--room-scale, 1.85));
  }
  .is-moving .window-copy {
    z-index: 2;
  }
}
/* The wider entrance preserves the arch and shoes without shifting the crop. */
.threshold-art picture {
  display: block;
  height: 100%;
}
@media (min-width: 1001px), (min-width: 701px) and (orientation: landscape) {
  .garden-threshold {
    min-height: 100svh;
  }
  .threshold-art {
    inset: 0;
  }
  .threshold-art img {
    object-position: center;
  }
  .threshold-copy {
    width: 49%;
    padding-left: 16%;
    transform: none;
  }
}
