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

.lines {
  display: grid;
  gap: clamp(4px, 1.6vw, 10px);
  font-weight: 700;
  font-size: clamp(15px, 4.4vw, 22px);
  line-height: 1.5;
  font-family: inherit;
  color: #17141a;
}
.lines__row {
  margin: 0;
}
.lines__text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  width: 0;
  border-right: 0.1em solid #2f6df6;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}
.lines__text--1 {
  animation-name: l1-type;
}
.lines__text--2 {
  animation-name: l2-type;
}
.lines__text--3 {
  animation-name: l3-type;
}

@keyframes l1-type {
  0% {
    width: 0;
    animation-timing-function: steps(9, end);
  }
  10% {
    width: var(--full, 9ch);
  }
  88% {
    width: var(--full, 9ch);
  }
  96%, 100% {
    width: 0;
  }
}
@keyframes l2-type {
  0%, 10% {
    width: 0;
    animation-timing-function: steps(16, end);
  }
  34% {
    width: var(--full, 16ch);
  }
  88% {
    width: var(--full, 16ch);
  }
  96%, 100% {
    width: 0;
  }
}
@keyframes l3-type {
  0%, 34% {
    width: 0;
    animation-timing-function: steps(13, end);
  }
  54% {
    width: var(--full, 13ch);
  }
  88% {
    width: var(--full, 13ch);
  }
  96%, 100% {
    width: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lines__text {
    animation: none;
    width: var(--full, 16ch);
    border-right-color: transparent;
  }
}
