html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: #082330;
  font-family: Arial, sans-serif;
  font-size: clamp(4rem, 15vw, 16rem);
  line-height: 1;
  overflow: hidden;
}

svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.text--line {
  font-size: 0.5em;
}

.text--line2 {
  font-size: 0.2em;
}

.text-copy {
  fill: none;
  stroke-width: 3px;
  stroke-dasharray: 7% 28%;
  animation: stroke-offset 9s linear infinite;

  will-change: stroke-dashoffset, stroke-dasharray;
}

.text-copy:nth-child(1) {
  stroke: #360745;
  stroke-dashoffset: 7%;
}

.text-copy:nth-child(2) {
  stroke: #d61c59;
  stroke-dashoffset: 14%;
}

.text-copy:nth-child(3) {
  stroke: #e7d84b;
  stroke-dashoffset: 21%;
}

.text-copy:nth-child(4) {
  stroke: #efeac5;
  stroke-dashoffset: 28%;
}

.text-copy:nth-child(5) {
  stroke: #1b8798;
  stroke-dashoffset: 35%;
}

@keyframes stroke-offset {
  50% {
    stroke-dashoffset: 35%;
    stroke-dasharray: 0 87.5%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .text-copy {
    animation: none;
  }
}