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

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

.qc {
  box-sizing: border-box;
  width: min(300px, 92vw);
  margin: 0;
  display: grid;
  gap: 16px;
  font-family: inherit;
}

.qc * {
  box-sizing: border-box;
}

.qc__body {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: #17141a;
}

.qc__src {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  position: relative;
}

.qc__src::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.8);
  transform-origin: left center;
}

.qc__disc {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #17141a;
  color: #fff7e6;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.qc__who {
  display: grid;
  gap: 4px;
}

.qc__name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: #17141a;
  transition-property: color;
  transition-duration: 160ms;
}

.qc__role {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(23, 20, 26, 0.72);
}

.qc__src:hover .qc__name {
  color: rgb(60, 40, 10);
}

.qc.is-demo .qc__body {
  animation-name: qcBody;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

.qc.is-demo .qc__disc {
  animation-name: qcDisc;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

.qc.is-demo .qc__name,
.qc.is-demo .qc__role {
  animation-name: qcWho;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

.qc.is-demo .qc__role {
  animation-delay: 60ms;
  animation-fill-mode: backwards;
}

.qc.is-demo .qc__src::after {
  transform-origin: left center;
  animation-name: qcRule;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@keyframes qcBody {
  0%, 4% {
    opacity: 0;
    transform: translateY(8px);
  }
  16%, 58% {
    opacity: 1;
    transform: translateY(0);
  }
  70%, 100% {
    opacity: 0;
  }
}
@keyframes qcDisc {
  0%, 6% {
    opacity: 0;
    transform: scale(0.3);
  }
  18% {
    opacity: 1;
    transform: scale(1.12);
  }
  24%, 62% {
    opacity: 1;
    transform: scale(1);
  }
  76%, 100% {
    opacity: 0;
  }
}
@keyframes qcWho {
  0%, 10% {
    opacity: 0;
    transform: translateY(6px);
  }
  24%, 60% {
    opacity: 1;
    transform: translateY(0);
  }
  74%, 100% {
    opacity: 0;
  }
}
@keyframes qcRule {
  0%, 28% {
    transform: scaleX(0);
  }
  46%, 66% {
    transform: scaleX(1);
  }
  82%, 100% {
    transform: scaleX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .qc.is-demo .qc__body,
  .qc.is-demo .qc__disc,
  .qc.is-demo .qc__name,
  .qc.is-demo .qc__role,
  .qc.is-demo .qc__src::after {
    animation: none !important;
  }
}
@media (max-width: 340px) {
  .qc {
    gap: 12px;
  }
  .qc__body {
    font-size: 15px;
  }
  .qc__disc {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}
