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

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

.reveal {
  position: relative;
  width: min(320px, 88vw);
  height: clamp(150px, 52vh, 180px);
  border-radius: 16px;
  overflow: hidden;
}

.reveal__panel {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(135deg, #2f6df6 0%, #ffd23f 100%);
}

.reveal__kicker {
  margin: 0;
  font-weight: 700;
  font-size: clamp(11px, 3vw, 13px);
  font-family: inherit;
  color: #17141a;
  letter-spacing: 2px;
}

.reveal__headline {
  margin: 0;
  font-weight: 800;
  font-size: clamp(18px, 5.4vw, 26px);
  line-height: 1.25;
  font-family: inherit;
  color: #ffffff;
}

.reveal__slats {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.reveal__slat {
  flex: 1;
  background: #ffffff;
  border-bottom: 2px solid rgba(23, 20, 26, 0.12);
  transform-origin: top center;
  transform: scaleY(1);
}

@keyframes slat-open {
  from {
    transform: scaleY(1);
  }
  to {
    transform: scaleY(0);
  }
}
.reveal__slat:nth-child(1) {
  animation: slat-open 1.2s ease-out 0ms both;
}

.reveal__slat:nth-child(2) {
  animation: slat-open 1.2s ease-out 90ms both;
}

.reveal__slat:nth-child(3) {
  animation: slat-open 1.2s ease-out 180ms both;
}

.reveal__slat:nth-child(4) {
  animation: slat-open 1.2s ease-out 270ms both;
}

.reveal__slat:nth-child(5) {
  animation: slat-open 1.2s ease-out 360ms both;
}

.reveal__slat:nth-child(6) {
  animation: slat-open 1.2s ease-out 450ms both;
}

.reveal.is-demo .reveal__slat:nth-child(1) {
  animation: slat-loop-1 2s ease-out infinite;
}

@keyframes slat-loop-1 {
  0%, 8% {
    transform: scaleY(1);
  }
  16%, 78% {
    transform: scaleY(0);
  }
  92%, 100% {
    transform: scaleY(1);
  }
}
.reveal.is-demo .reveal__slat:nth-child(2) {
  animation: slat-loop-2 2s ease-out infinite;
}

@keyframes slat-loop-2 {
  0%, 8% {
    transform: scaleY(1);
  }
  22%, 78% {
    transform: scaleY(0);
  }
  92%, 100% {
    transform: scaleY(1);
  }
}
.reveal.is-demo .reveal__slat:nth-child(3) {
  animation: slat-loop-3 2s ease-out infinite;
}

@keyframes slat-loop-3 {
  0%, 8% {
    transform: scaleY(1);
  }
  28%, 78% {
    transform: scaleY(0);
  }
  92%, 100% {
    transform: scaleY(1);
  }
}
.reveal.is-demo .reveal__slat:nth-child(4) {
  animation: slat-loop-4 2s ease-out infinite;
}

@keyframes slat-loop-4 {
  0%, 8% {
    transform: scaleY(1);
  }
  34%, 78% {
    transform: scaleY(0);
  }
  92%, 100% {
    transform: scaleY(1);
  }
}
.reveal.is-demo .reveal__slat:nth-child(5) {
  animation: slat-loop-5 2s ease-out infinite;
}

@keyframes slat-loop-5 {
  0%, 8% {
    transform: scaleY(1);
  }
  40%, 78% {
    transform: scaleY(0);
  }
  92%, 100% {
    transform: scaleY(1);
  }
}
.reveal.is-demo .reveal__slat:nth-child(6) {
  animation: slat-loop-6 2s ease-out infinite;
}

@keyframes slat-loop-6 {
  0%, 8% {
    transform: scaleY(1);
  }
  46%, 78% {
    transform: scaleY(0);
  }
  92%, 100% {
    transform: scaleY(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal__slat,
  .reveal.is-demo .reveal__slat {
    animation: none;
    transform: scaleY(0);
  }
}
