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

.gl {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.gl__head {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.gl__kicker {
  margin: 0;
  color: #c93000;
  font-weight: 700;
  font-size: clamp(11px, 2.6vw, 13px);
  line-height: 1.4;
  letter-spacing: 0.16em;
}

.gl__titlewrap {
  position: relative;
  margin: 0;
}

.gl__title {
  margin: 0;
  color: #17141a;
  font-weight: 800;
  font-size: clamp(30px, 9vw, 48px);
  line-height: 1.15;
  white-space: nowrap;
}

.gl__slice {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: #17141a;
  font-weight: 800;
  font-size: clamp(30px, 9vw, 48px);
  line-height: 1.15;
  white-space: nowrap;
}

.gl__slice--a {
  clip-path: inset(0 0 50% 0);
  animation-name: glSliceAOnce;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: 1;
  animation-fill-mode: backwards;
}

.gl__slice--b {
  clip-path: inset(50% 0 0 0);
  animation-name: glSliceBOnce;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: 1;
  animation-fill-mode: backwards;
}

.gl__aside {
  display: grid;
  justify-items: center;
  gap: 8px;
  animation-name: glAsideOnce;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: 1;
  animation-fill-mode: backwards;
}

.gl__sub {
  margin: 0;
  color: rgba(23, 20, 26, 0.78);
  font-weight: 500;
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1.5;
}

.gl__cta {
  margin: 0;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  background: #17141a;
  color: #fff7e6;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1.4;
  cursor: pointer;
}

.gl__cta:focus-visible {
  outline: 2px solid #c93000;
  outline-offset: 2px;
}

.gl__skip {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  margin: 0;
  border: 0;
  border-radius: 999px;
  padding: 4px 12px;
  background: #fff7e6;
  color: #17141a;
  font-family: inherit;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.4;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.gl__skip:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.gl__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes glSliceAOnce {
  0% {
    transform: translate(-9px, 0);
    text-shadow: 5px 0 #0a4fe8;
    clip-path: inset(0 0 52% 0);
  }
  7% {
    transform: translate(5px, -1px);
    text-shadow: -4px 0 #c93000;
    clip-path: inset(0 0 48% 0);
  }
  14% {
    transform: translate(-6px, 1px);
    text-shadow: 4px 0 #0a4fe8;
    clip-path: inset(0 0 55% 0);
  }
  21% {
    transform: translate(3px, 0);
    text-shadow: -3px 0 #c93000;
    clip-path: inset(0 0 47% 0);
  }
  28% {
    transform: translate(-2px, 0);
    text-shadow: 2px 0 #0a4fe8;
    clip-path: inset(0 0 50% 0);
  }
  34%, 100% {
    transform: translate(0, 0);
    text-shadow: 0 0 transparent;
    clip-path: inset(0 0 50% 0);
  }
}
@keyframes glSliceBOnce {
  0% {
    transform: translate(9px, 1px);
    text-shadow: -5px 0 #c93000;
    clip-path: inset(48% 0 0 0);
  }
  7% {
    transform: translate(-5px, 0);
    text-shadow: 4px 0 #0a4fe8;
    clip-path: inset(52% 0 0 0);
  }
  14% {
    transform: translate(6px, -1px);
    text-shadow: -4px 0 #c93000;
    clip-path: inset(45% 0 0 0);
  }
  21% {
    transform: translate(-3px, 1px);
    text-shadow: 3px 0 #0a4fe8;
    clip-path: inset(53% 0 0 0);
  }
  28% {
    transform: translate(2px, 0);
    text-shadow: -2px 0 #c93000;
    clip-path: inset(50% 0 0 0);
  }
  34%, 100% {
    transform: translate(0, 0);
    text-shadow: 0 0 transparent;
    clip-path: inset(50% 0 0 0);
  }
}
@keyframes glAsideOnce {
  0%, 36% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.gl.is-demo .gl__slice--a {
  animation-name: glSliceALoop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.gl.is-demo .gl__slice--b {
  animation-name: glSliceBLoop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.gl.is-demo .gl__aside {
  animation-name: glAsideLoop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

@keyframes glSliceALoop {
  0% {
    transform: translate(-9px, 0);
    text-shadow: 5px 0 #0a4fe8;
    clip-path: inset(0 0 52% 0);
  }
  6% {
    transform: translate(5px, -1px);
    text-shadow: -4px 0 #c93000;
    clip-path: inset(0 0 48% 0);
  }
  13% {
    transform: translate(-6px, 1px);
    text-shadow: 4px 0 #0a4fe8;
    clip-path: inset(0 0 55% 0);
  }
  20% {
    transform: translate(3px, 0);
    text-shadow: -3px 0 #c93000;
    clip-path: inset(0 0 47% 0);
  }
  27% {
    transform: translate(-2px, 0);
    text-shadow: 2px 0 #0a4fe8;
    clip-path: inset(0 0 50% 0);
  }
  33%, 76% {
    transform: translate(0, 0);
    text-shadow: 0 0 transparent;
    clip-path: inset(0 0 50% 0);
  }
  80% {
    transform: translate(-3px, 0);
    text-shadow: 2px 0 #0a4fe8;
    clip-path: inset(0 0 51% 0);
  }
  84% {
    transform: translate(4px, -1px);
    text-shadow: -3px 0 #c93000;
    clip-path: inset(0 0 48% 0);
  }
  88%, 100% {
    transform: translate(-9px, 0);
    text-shadow: 5px 0 #0a4fe8;
    clip-path: inset(0 0 52% 0);
  }
}
@keyframes glSliceBLoop {
  0% {
    transform: translate(9px, 1px);
    text-shadow: -5px 0 #c93000;
    clip-path: inset(48% 0 0 0);
  }
  6% {
    transform: translate(-5px, 0);
    text-shadow: 4px 0 #0a4fe8;
    clip-path: inset(52% 0 0 0);
  }
  13% {
    transform: translate(6px, -1px);
    text-shadow: -4px 0 #c93000;
    clip-path: inset(45% 0 0 0);
  }
  20% {
    transform: translate(-3px, 1px);
    text-shadow: 3px 0 #0a4fe8;
    clip-path: inset(53% 0 0 0);
  }
  27% {
    transform: translate(2px, 0);
    text-shadow: -2px 0 #c93000;
    clip-path: inset(50% 0 0 0);
  }
  33%, 76% {
    transform: translate(0, 0);
    text-shadow: 0 0 transparent;
    clip-path: inset(50% 0 0 0);
  }
  80% {
    transform: translate(3px, 1px);
    text-shadow: -2px 0 #c93000;
    clip-path: inset(49% 0 0 0);
  }
  84% {
    transform: translate(-4px, 0);
    text-shadow: 3px 0 #0a4fe8;
    clip-path: inset(52% 0 0 0);
  }
  88%, 100% {
    transform: translate(9px, 1px);
    text-shadow: -5px 0 #c93000;
    clip-path: inset(48% 0 0 0);
  }
}
@keyframes glAsideLoop {
  0%, 34% {
    opacity: 0;
    transform: translateY(14px);
  }
  52%, 74% {
    opacity: 1;
    transform: translateY(0);
  }
  78%, 100% {
    opacity: 0;
    transform: translateY(14px);
  }
}
.gl.is-done .gl__slice--a, .gl.is-done .gl__slice--b, .gl.is-done .gl__aside {
  animation-name: none;
}

@media (max-width: 340px) {
  .gl {
    gap: 8px;
  }
  .gl__head {
    gap: 4px;
  }
  .gl__skip {
    top: 8px;
    right: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gl__slice--a, .gl__slice--b, .gl__aside {
    animation-name: none !important;
  }
}
