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

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

.headline {
  margin: 0;
  font-weight: 800;
  font-size: clamp(22px, 7vw, 34px);
  line-height: 1.3;
  font-family: inherit;
  color: #fff7e6;
  text-align: center;
}
@supports (animation-timeline: view()) {
  .headline {
    animation: wipe-in cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-timeline: view();
    animation-range: entry 20% cover 60%;
  }
}
@supports not (animation-timeline: view()) {
  .headline {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes wipe-in {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
.headline.is-demo {
  animation: wipe-loop 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes wipe-loop {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  35% {
    clip-path: inset(0 0 0 0);
  }
  75% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    clip-path: inset(0 100% 0 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .headline, .headline.is-demo {
    animation: none !important;
    clip-path: inset(0 0 0 0);
  }
}
