/* An illustrative Home screen, rendered sharply at every phone size. */
.hero-portfolio {
  --rest-rotation: -1.5deg;
}
.hero-portfolio .hero-device {
  z-index: 3;
}
.hero-back-card {
  position: absolute;
  z-index: 1;
  width: 168px;
  transform: perspective(1100px)
    translate3d(
      calc(var(--move-x, 0px) * -0.65),
      calc(var(--move-y, 0px) * -0.55),
      0
    )
    rotateX(calc(var(--tilt-x, 0deg) * 0.45))
    rotateY(calc(var(--tilt-y, 0deg) * 0.65)) rotateZ(var(--card-rotation));
}
.hero-back-card-left {
  --card-rotation: -13deg;
  top: 66px;
  left: 1%;
}
.hero-back-card-right {
  --card-rotation: 13deg;
  right: -1%;
  top: 310px;
}
.hero-card-face {
  position: relative;
  display: block;
  border-radius: 9px;
  transform: translateY(var(--card-lift, 0px))
    rotate(var(--card-hover-turn, 0deg));
  box-shadow:
    0 18px 28px #0006,
    0 0 0 1px #ffffff0d;
  transition:
    transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 400ms ease;
}
.hero-card-face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 10%,
    #ffffffb0 48%,
    transparent 80%
  );
  opacity: calc(var(--pointer-active, 0) * 0.08);
  transform: translateX(calc(var(--move-x, 0px) * -0.5));
}
.hero-card-face img {
  width: 100%;
  height: auto;
  border-radius: inherit;
  user-select: none;
  -webkit-user-drag: none;
}
.hero-back-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
  border-radius: 9px;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-back-card:not(:has(.motion-art)):hover {
    --card-lift: -9px;
    --card-hover-turn: 2deg;
  }
  .hero-back-card-right:not(:has(.motion-art)):hover {
    --card-hover-turn: -2deg;
  }
  .hero-back-card:hover .hero-card-face {
    box-shadow:
      0 26px 34px #0008,
      0 0 0 1px #f4ce7340;
  }
}
@media (max-width: 1050px) {
  .hero-back-card {
    width: 150px;
  }
  .hero-back-card-left {
    top: 74px;
    left: -1%;
  }
  .hero-back-card-right {
    top: 294px;
  }
}
@media (max-width: 800px) {
  .hero-back-card {
    width: 174px;
  }
  .hero-back-card-left {
    top: 78px;
    left: 5%;
  }
  .hero-back-card-right {
    top: 310px;
    right: 5%;
  }
}
@media (max-width: 560px) {
  .hero-back-card {
    width: 130px;
  }
  .hero-back-card-left {
    top: 85px;
    left: 0;
  }
  .hero-back-card-right {
    top: 298px;
    right: 0;
  }
}
@media (max-width: 360px) {
  .hero-portfolio .hero-device {
    width: 212px;
  }
  .hero-back-card {
    width: 112px;
  }
  .hero-back-card-left {
    top: 90px;
    left: 1%;
  }
  .hero-back-card-right {
    top: 305px;
    right: 1%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-back-card {
    transform: rotate(var(--card-rotation));
  }
  .hero-card-face {
    transform: none;
  }
  .hero-card-face::after {
    display: none;
  }
}
