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

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

.scr {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.scr__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
  animation-name: scrContentOnce;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: 1;
  animation-fill-mode: backwards;
}

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

.scr__title {
  margin: 0;
  color: #17141a;
  font-weight: 800;
  font-size: clamp(22px, 6vw, 34px);
  line-height: 1.2;
}

.scr__sub {
  margin: 0;
  color: #17141a;
  font-weight: 500;
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1.5;
}

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

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

.scr__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  z-index: 2;
  display: flex;
  align-items: center;
  will-change: transform;
}

.scr__panel--l {
  left: 0;
  justify-content: flex-end;
  padding-right: 4px;
  background: #0a4fe8;
  transform: translateX(-102%);
  animation-name: scrPanelLOnce;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: 1;
  animation-fill-mode: backwards;
}

.scr__panel--r {
  right: 0;
  justify-content: flex-start;
  padding-left: 4px;
  background: #17141a;
  transform: translateX(102%);
  animation-name: scrPanelROnce;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: 1;
  animation-fill-mode: backwards;
}

.scr__word {
  color: #fff7e6;
  font-weight: 800;
  font-size: clamp(20px, 6vw, 32px);
  line-height: 1.2;
  white-space: nowrap;
}

.scr__seam {
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 4px;
  z-index: 3;
  border-radius: 999px;
  background: #ff4d1f;
  transform: translateX(-50%) scaleY(0);
  animation-name: scrSeamOnce;
  animation-duration: 220ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: 1;
  animation-fill-mode: backwards;
}

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

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

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

@keyframes scrPanelLOnce {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-102%);
  }
}
@keyframes scrPanelROnce {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(102%);
  }
}
@keyframes scrContentOnce {
  0% {
    transform: translateY(12px);
  }
  60%, 100% {
    transform: translateY(0);
  }
}
@keyframes scrSeamOnce {
  0% {
    transform: translateX(-50%) scaleY(1);
  }
  40%, 100% {
    transform: translateX(-50%) scaleY(0);
  }
}
.scr.is-demo .scr__panel--l {
  animation-name: scrPanelLLoop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.scr.is-demo .scr__panel--r {
  animation-name: scrPanelRLoop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.scr.is-demo .scr__content {
  animation-name: scrContentLoop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.scr.is-demo .scr__seam {
  animation-name: scrSeamLoop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

@keyframes scrPanelLLoop {
  0%, 6% {
    transform: translateX(0);
  }
  45% {
    transform: translateX(-102%);
  }
  70% {
    transform: translateX(-102%);
    animation-timing-function: linear;
  }
  90%, 100% {
    transform: translateX(0);
  }
}
@keyframes scrPanelRLoop {
  0%, 6% {
    transform: translateX(0);
  }
  45% {
    transform: translateX(102%);
  }
  70% {
    transform: translateX(102%);
    animation-timing-function: linear;
  }
  90%, 100% {
    transform: translateX(0);
  }
}
@keyframes scrContentLoop {
  0%, 6% {
    transform: translateY(12px);
  }
  34%, 90% {
    transform: translateY(0);
  }
  92%, 100% {
    transform: translateY(12px);
  }
}
@keyframes scrSeamLoop {
  0% {
    transform: translateX(-50%) scaleY(1);
  }
  8%, 86% {
    transform: translateX(-50%) scaleY(0);
  }
  90%, 100% {
    transform: translateX(-50%) scaleY(1);
  }
}
.scr.is-done .scr__panel--l, .scr.is-done .scr__panel--r,
.scr.is-done .scr__content, .scr.is-done .scr__seam {
  animation-name: none;
}

@media (max-width: 340px) {
  .scr__content {
    gap: 4px;
  }
  .scr__skip {
    top: 8px;
    right: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scr__panel--l, .scr__panel--r, .scr__content, .scr__seam {
    animation-name: none !important;
  }
}
