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

.stage {
  padding: 0;
}

.cd {
  position: relative;
  width: 100%;
  height: 100vh;
}

.cd__site {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 16px;
}

.cd__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(84%, 400px);
  gap: 8px;
  text-align: center;
}

.cd__kicker {
  margin: 0;
  color: rgba(255, 247, 230, 0.72);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.cd__title {
  margin: 0;
  color: #fff7e6;
  font-weight: 800;
  font-size: clamp(24px, 7vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.cd__sub {
  margin: 0;
  color: rgba(255, 247, 230, 0.72);
  font-weight: 500;
  font-size: clamp(13px, 3.4vw, 16px);
  line-height: 1.5;
}

.cd__cta {
  margin-top: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  background: #0a4fe8;
  color: #fff7e6;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}

.cd__cta:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

.cd__nums {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  justify-items: center;
  row-gap: 8px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cd__n {
  grid-area: 1/1;
  color: #ffd23f;
  font-weight: 800;
  font-size: clamp(72px, 24vw, 104px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  opacity: 0;
}

.cd__pop {
  display: block;
}

.cd__tag {
  grid-row: 2;
  margin: 0;
  color: rgba(255, 247, 230, 0.72);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  opacity: 0;
}

.cd__skip {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  padding: 4px 12px;
  border: 1px solid rgba(23, 20, 26, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: #17141a;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
}

.cd__skip:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

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

.cd.is-demo .cd__n,
.cd.is-demo .cd__tag {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.cd.is-demo .cd__n--3 {
  animation-name: cdN3;
}

.cd.is-demo .cd__n--2 {
  animation-name: cdN2;
}

.cd.is-demo .cd__n--1 {
  animation-name: cdN1;
}

.cd.is-demo .cd__tag {
  animation-name: cdTag;
}

.cd.is-demo .cd__n--3 .cd__pop,
.cd.is-demo .cd__n--2 .cd__pop,
.cd.is-demo .cd__n--1 .cd__pop {
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.cd.is-demo .cd__n--3 .cd__pop {
  animation-name: cdPop3;
}

.cd.is-demo .cd__n--2 .cd__pop {
  animation-name: cdPop2;
}

.cd.is-demo .cd__n--1 .cd__pop {
  animation-name: cdPop1;
}

.cd.is-demo .cd__nums {
  animation-name: cdDolly;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.cd.is-demo .cd__site {
  animation-name: cdSite;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.cd.is-demo .cd__box {
  animation-name: cdRise;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

@keyframes cdN3 {
  0% {
    opacity: 1;
  }
  14% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes cdN2 {
  0% {
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  28% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes cdN1 {
  0% {
    opacity: 0;
  }
  28% {
    opacity: 1;
  }
  42% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes cdTag {
  0% {
    opacity: 1;
  }
  42% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes cdSite {
  0% {
    opacity: 0;
  }
  42% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
@keyframes cdPop3 {
  0% {
    transform: scale(1.5);
  }
  12% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes cdPop2 {
  0%, 14% {
    transform: scale(1.5);
  }
  26% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes cdPop1 {
  0%, 28% {
    transform: scale(1.5);
  }
  40% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes cdDolly {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  42% {
    transform: translate(-50%, -50%) scale(1.12);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.12);
  }
}
@keyframes cdRise {
  0%, 42% {
    transform: translateY(12px);
  }
  58% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}
@media (max-width: 340px) {
  .cd__site {
    padding: 12px;
  }
  .cd__box {
    gap: 4px;
  }
  .cd__title {
    font-size: 22px;
  }
  .cd__sub {
    font-size: 12px;
  }
  .cd__cta {
    margin-top: 4px;
  }
  .cd__n {
    font-size: 72px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cd.is-demo .cd__n,
  .cd.is-demo .cd__tag,
  .cd.is-demo .cd__pop,
  .cd.is-demo .cd__nums,
  .cd.is-demo .cd__site,
  .cd.is-demo .cd__box {
    animation: none !important;
  }
}
