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);
}

.layer3 {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.layer3__back, .layer3__mid, .layer3__front {
  position: absolute;
  border-radius: 50%;
  background: #17141a;
}
.layer3__back {
  width: 70px;
  height: 70px;
  left: 14%;
  top: 20%;
  opacity: 0.18;
}
@supports (animation-timeline: scroll()) {
  .layer3__back {
    animation: drift-back linear both;
    animation-timeline: scroll(root);
  }
}
.layer3__mid {
  width: 56px;
  height: 56px;
  left: 58%;
  top: 46%;
  opacity: 0.38;
}
@supports (animation-timeline: scroll()) {
  .layer3__mid {
    animation: drift-mid linear both;
    animation-timeline: scroll(root);
  }
}
.layer3__front {
  width: 40px;
  height: 40px;
  left: 30%;
  top: 66%;
  opacity: 0.82;
}
@supports (animation-timeline: scroll()) {
  .layer3__front {
    animation: drift-front linear both;
    animation-timeline: scroll(root);
  }
}
.layer3__title {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 14px 22px;
  border-radius: 999px;
  background: #17141a;
  color: #fff;
  font: 700 clamp(14px, 4.6vw, 18px)/1 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  white-space: nowrap;
}

@keyframes drift-back {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}
@keyframes drift-mid {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-26px);
  }
}
@keyframes drift-front {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-46px);
  }
}
.stage.is-demo .layer3__back {
  animation: loop-back 2s ease-in-out infinite;
}

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

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

@keyframes loop-back {
  0%, 100% {
    transform: translateY(10px);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes loop-mid {
  0%, 100% {
    transform: translateY(26px);
  }
  50% {
    transform: translateY(-26px);
  }
}
@keyframes loop-front {
  0%, 100% {
    transform: translateY(46px);
  }
  50% {
    transform: translateY(-46px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .layer3__back, .layer3__mid, .layer3__front,
  .stage.is-demo .layer3__back, .stage.is-demo .layer3__mid, .stage.is-demo .layer3__front {
    animation: none !important;
    transform: none;
  }
}
