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

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

.headline {
  margin: 0;
  box-sizing: border-box;
  max-width: clamp(220px, 80vw, 380px);
  text-align: center;
}

.headline__mask {
  display: inline-block;
  margin: 0;
  color: #17141a;
  font-weight: 800;
  font-size: clamp(20px, 6.4vw, 30px);
  line-height: 1.3;
  font-family: inherit;
  clip-path: inset(0 100% 0 0);
}

.headline__underline {
  display: block;
  margin: 8px auto 0;
  width: 64px;
  height: 3px;
  background: #c78da8;
  transform: scaleX(0);
  transform-origin: left center;
}

.stage.is-demo .headline__mask {
  animation: reveal 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.stage.is-demo .headline__underline {
  animation: underline-grow 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes reveal {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  40% {
    clip-path: inset(0 0% 0 0);
  }
  85% {
    clip-path: inset(0 0% 0 0);
  }
  100% {
    clip-path: inset(0 100% 0 0);
  }
}
@keyframes underline-grow {
  0% {
    transform: scaleX(0);
  }
  40% {
    transform: scaleX(1);
  }
  85% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage.is-demo .headline__mask {
    animation: none;
    clip-path: inset(0 0% 0 0);
  }
  .stage.is-demo .headline__underline {
    animation: none;
    transform: scaleX(1);
  }
}
