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

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

@property --p {
  syntax: "<percentage>";
  initial-value: 0%;
  inherits: false;
}
.headline {
  --p: 0%;
  max-width: 80%;
  margin: 0;
  text-align: center;
  font-weight: 800;
  font-size: clamp(20px, 6vw, 28px);
  line-height: 1.35;
  font-family: inherit;
  background-image: linear-gradient(90deg, #2f6df6 var(--p), rgba(255, 255, 255, 0.32) var(--p));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
@supports (animation-timeline: scroll()) {
  .headline {
    animation: fill-text linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes fill-text {
  from {
    --p: 0%;
  }
  to {
    --p: 100%;
  }
}
.headline.is-demo {
  animation: fill-text-loop 2s linear infinite;
}

@keyframes fill-text-loop {
  0% {
    --p: 0%;
  }
  92% {
    --p: 100%;
  }
  100% {
    --p: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .headline, .headline.is-demo {
    animation: none !important;
    --p: 100%;
  }
}
