html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffd23f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.depthcards {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.depthcards__card {
  position: absolute;
  width: 168px;
  height: 108px;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  display: grid;
  place-items: center;
  font: 700 clamp(13px, 4vw, 15px)/1 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}
.depthcards__card--3 {
  background: rgba(23, 20, 26, 0.28);
  transform: translateY(18px) scale(0.88);
}
@supports (animation-timeline: scroll()) {
  .depthcards__card--3 {
    animation: peel-3 linear both;
    animation-timeline: scroll(root);
  }
}
.depthcards__card--2 {
  background: rgba(23, 20, 26, 0.58);
  transform: translateY(9px) scale(0.94);
}
@supports (animation-timeline: scroll()) {
  .depthcards__card--2 {
    animation: peel-2 linear both;
    animation-timeline: scroll(root);
  }
}
.depthcards__card--1 {
  background: #17141a;
  color: #fff;
}
@supports (animation-timeline: scroll()) {
  .depthcards__card--1 {
    animation: peel-1 linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes peel-1 {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-34px) scale(1);
  }
}
@keyframes peel-2 {
  from {
    transform: translateY(9px) scale(0.94);
  }
  to {
    transform: translateY(-25px) scale(1);
  }
}
@keyframes peel-3 {
  from {
    transform: translateY(18px) scale(0.88);
  }
  to {
    transform: translateY(-29.6px) scale(1);
  }
}
.stage.is-demo .depthcards__card--1 {
  animation: loop-1 2s ease-in-out infinite;
}

.stage.is-demo .depthcards__card--2 {
  animation: loop-2 2s ease-in-out infinite;
}

.stage.is-demo .depthcards__card--3 {
  animation: loop-3 2s ease-in-out infinite;
}

@keyframes loop-1 {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-34px) scale(1);
  }
}
@keyframes loop-2 {
  0%, 100% {
    transform: translateY(9px) scale(0.94);
  }
  50% {
    transform: translateY(-25px) scale(1);
  }
}
@keyframes loop-3 {
  0%, 100% {
    transform: translateY(18px) scale(0.88);
  }
  50% {
    transform: translateY(-29.6px) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .depthcards__card--1, .depthcards__card--2, .depthcards__card--3,
  .stage.is-demo .depthcards__card--1, .stage.is-demo .depthcards__card--2, .stage.is-demo .depthcards__card--3 {
    animation: none !important;
  }
  .depthcards__card--1 {
    transform: translateY(0) scale(1);
  }
  .depthcards__card--2 {
    transform: translateY(9px) scale(0.94);
  }
  .depthcards__card--3 {
    transform: translateY(18px) scale(0.88);
  }
}
