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

.hl {
  display: grid;
  gap: 12px;
  width: min(400px, 90vw);
}

.hl__deck {
  display: grid;
  height: clamp(120px, 46vh, 148px);
  overflow: hidden;
  border-radius: 16px;
}

.hl__slide {
  grid-area: 1/1;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 38%;
}

.hl__pane {
  box-sizing: border-box;
  transition: clip-path 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hl__pane--copy {
  clip-path: inset(0 100% 0 0);
}

.hl__pane--art {
  clip-path: inset(0 0 0 100%);
}

.hl__slide.is-prev {
  z-index: 2;
}

.hl__slide.is-on {
  z-index: 3;
}

.hl__slide.is-prev .hl__pane,
.hl__slide.is-on .hl__pane {
  clip-path: inset(0 0 0 0);
}

.hl__pane--copy {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px;
  background: #ff4d1f;
  color: #17141a;
}

.hl__kicker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.hl__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(15px, 4.2vw, 19px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hl__sub {
  margin: 0;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.3;
}

.hl__pane--art {
  position: relative;
  overflow: hidden;
}

.hl__pane--art1 {
  background: #17141a;
}

.hl__pane--art2 {
  background: #fdf7ec;
}

.hl__pane--art3 {
  background: #ffd23f;
}

.hl__shape {
  position: absolute;
  display: block;
}

.hl__shape--disc {
  top: 18%;
  left: 18%;
  width: 52%;
  height: 52%;
  border-radius: 50%;
  background: #d8d6eb;
}

.hl__shape--bar {
  right: 14%;
  bottom: 16%;
  width: 22%;
  height: 44%;
  border-radius: 999px;
  background: #ffd23f;
}

.hl__shape--arch {
  left: 22%;
  bottom: 0;
  width: 56%;
  height: 62%;
  border-radius: 999px 999px 0 0;
  background: #9791c9;
}

.hl__shape--dot {
  top: 16%;
  right: 18%;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: #ff4d1f;
}

.hl__shape--wedge {
  top: 20%;
  left: 16%;
  width: 46%;
  height: 60%;
  background: #17141a;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.hl__shape--ring {
  right: 12%;
  bottom: 18%;
  width: 30%;
  height: 30%;
  border: 4px solid #9791c9;
  border-radius: 50%;
}

.hl__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hl__dot {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 2px solid #17141a;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

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

.hl__fill {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #17141a;
  transform: scale(0);
}

.hl__dot[aria-current=true] .hl__fill {
  transform: scale(1);
}

.hl.is-demo .hl__slide--1, .hl.is-demo .hl__dot--1 {
  --d: -.6667s;
}

.hl.is-demo .hl__slide--2, .hl.is-demo .hl__dot--2 {
  --d: 0s;
}

.hl.is-demo .hl__slide--3, .hl.is-demo .hl__dot--3 {
  --d: -1.3333s;
}

.hl.is-demo .hl__slide {
  animation-name: hlZ;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  animation-delay: var(--d, 0s);
}

.hl.is-demo .hl__pane--copy,
.hl.is-demo .hl__pane--art,
.hl.is-demo .hl__title {
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  animation-delay: var(--d, 0s);
  transition: none;
}

.hl.is-demo .hl__pane--copy {
  animation-name: hlWipeL;
}

.hl.is-demo .hl__pane--art {
  animation-name: hlWipeR;
}

.hl.is-demo .hl__title {
  animation-name: hlPop;
}

.hl.is-demo .hl__fill {
  animation-name: hlFill;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  animation-delay: var(--d, 0s);
}

@keyframes hlZ {
  0%, 33.32% {
    z-index: 3;
  }
  33.33%, 66.65% {
    z-index: 2;
  }
  66.66%, 100% {
    z-index: 1;
  }
}
@keyframes hlWipeL {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  18%, 66.65% {
    clip-path: inset(0 0 0 0);
  }
  66.66%, 100% {
    clip-path: inset(0 100% 0 0);
  }
}
@keyframes hlWipeR {
  0% {
    clip-path: inset(0 0 0 100%);
  }
  18%, 66.65% {
    clip-path: inset(0 0 0 0);
  }
  66.66%, 100% {
    clip-path: inset(0 0 0 100%);
  }
}
@keyframes hlPop {
  0% {
    transform: translateY(10px);
  }
  18%, 66.65% {
    transform: translateY(0);
  }
  66.66%, 100% {
    transform: translateY(10px);
  }
}
@keyframes hlFill {
  0%, 17.99% {
    transform: scale(0);
  }
  18%, 51.32% {
    transform: scale(1);
  }
  51.33%, 100% {
    transform: scale(0);
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .hl {
    gap: 8px;
  }
  .hl__pane--copy {
    padding: 12px;
  }
  .hl__kicker {
    font-size: 10px;
  }
  .hl__sub {
    font-size: 10px;
  }
  .hl__dot {
    width: 12px;
    height: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hl__slide, .hl__pane, .hl__title, .hl__fill {
    animation: none !important;
    transition: none !important;
  }
  .hl__slide.is-on .hl__pane {
    clip-path: inset(0 0 0 0) !important;
  }
  .hl__title {
    transform: none !important;
  }
  .hl__dot[aria-current=true] .hl__fill {
    transform: scale(1) !important;
  }
}
