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

.quote {
  margin: 0;
  text-align: center;
  width: min(360px, 90vw);
}

.quote__text {
  margin: 0;
  color: #17141a;
  font-weight: 800;
  font-size: clamp(22px, 6.5vw, 36px);
  line-height: 1.3;
  animation: wipe-reveal 2s ease-out infinite;
}

@keyframes wipe-reveal {
  0%, 4% {
    clip-path: inset(0 100% 0 0);
  }
  55%, 80% {
    clip-path: inset(0 0 0 0);
  }
  96%, 100% {
    clip-path: inset(0 100% 0 0);
  }
}
.char {
  display: inline-block;
  animation: char-flow 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.char--space {
  width: 0.28em;
}

@keyframes char-flow {
  0%, 4% {
    transform: translate(var(--nx0, 0), var(--ny0, 18px)) rotate(var(--nr0, 0deg)) scale(0.55);
    opacity: 0;
  }
  16% {
    transform: translate(var(--wx, 0), var(--wy, 5px)) rotate(var(--wr, 0deg)) scale(1.08);
    opacity: 1;
  }
  30%, 78% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  96%, 100% {
    transform: translate(var(--nx0, 0), var(--ny0, 18px)) rotate(var(--nr0, 0deg)) scale(0.55);
    opacity: 0;
  }
}
.quote__cite {
  display: block;
  margin-top: 16px;
  color: rgba(23, 20, 26, 0.72);
  font-weight: 600;
  font-size: clamp(11px, 2.8vw, 13px);
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .quote__text {
    animation: none;
    clip-path: inset(0 0 0 0);
  }
  .char {
    animation: none;
    transform: none;
    opacity: 1;
  }
}
