/* The canonical PWA images stay untouched; depth belongs to the display case. */
.phone {
  --phone-duration: 8s;
  --phone-phase: -0.8s;
  overflow: visible;
  transform-style: preserve-3d;
  transform-origin: 50% 52%;
  background: linear-gradient(115deg, #68746e, #16221b 13%, #07110c 83%, #617269);
  border-color: #34483d;
  box-shadow:
    0 28px 58px #0009,
    inset 1px 0 0 #e2fff06b,
    inset -2px 0 0 #000b;
  animation: weol-phone-left var(--phone-duration) cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation-delay: var(--phone-phase);
  animation-play-state: paused;
}
.phone::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: -5px;
  border: 1px solid #8da797;
  border-radius: inherit;
  background: linear-gradient(
    100deg,
    #16241c 3%,
    #7a9383 7%,
    #263a2e 11%,
    #07110b 85%,
    #739482 97%
  );
  box-shadow:
    0 0 0 1px #021007,
    3px 3px 0 #122219,
    5px 5px 0 #07120b;
  transform: translateZ(-11px);
  backface-visibility: hidden;
}
.phone::after {
  border: 1px solid #d4f8e14d;
  background: linear-gradient(112deg, #effff10a, transparent 30%, transparent 76%, #d9ffe910);
  transform: translateZ(4px);
  backface-visibility: hidden;
}
.phone img {
  position: relative;
  transform: translateZ(3px);
  backface-visibility: hidden;
}
.home-phone {
  --phone-duration: 9s;
  --phone-phase: -1.4s;
}
.camera-phone {
  --phone-duration: 7.6s;
  --phone-phase: -1.1s;
  animation-name: weol-phone-right;
}
.ticket-phone {
  --phone-duration: 8.5s;
  --phone-phase: -0.3s;
}
:where(html[data-intro="ready"][data-motion="running"][data-page-visible="true"])
  .story-section[data-motion-active="true"]
  .phone {
  animation-play-state: running;
}
@keyframes weol-phone-left {
  0%,
  100% {
    transform: perspective(1100px) translate3d(-3px, -6px, 0) rotateX(3deg) rotateY(-14deg)
      rotateZ(1.2deg);
  }
  50% {
    transform: perspective(1100px) translate3d(3px, 6px, 0) rotateX(-2deg) rotateY(10deg)
      rotateZ(-1deg);
  }
}
@keyframes weol-phone-right {
  0%,
  100% {
    transform: perspective(1100px) translate3d(3px, -5px, 0) rotateX(-2deg) rotateY(14deg)
      rotateZ(-1.5deg);
  }
  50% {
    transform: perspective(1100px) translate3d(-3px, 7px, 0) rotateX(3deg) rotateY(-10deg)
      rotateZ(1deg);
  }
}
@media (max-width: 640px) {
  .phone {
    box-shadow:
      0 22px 36px #000a,
      inset 1px 0 0 #e2fff06b,
      inset -2px 0 0 #000b;
  }
  .phone::before {
    inset: -4px;
    transform: translateZ(-9px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .phone {
    animation: none;
  }
}
