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

.ahc {
  width: min(380px, 90vw);
}

.ahc__slot {
  position: relative;
  height: 88px;
}

.ahc__bar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: clamp(10px, 2.8vw, 12px);
  line-height: 1;
  font-family: inherit;
  color: #fff7e6;
  background: #0a4fe8;
  transform: translateY(0);
  opacity: 1;
  transition: transform 300ms linear(0, 0.32, 0.538, 0.686, 0.786, 0.855, 0.901, 0.933, 0.954, 0.969, 0.979, 0.986, 0.99, 0.993, 0.995, 0.997, 0.998, 0.999, 0.999, 0.999, 1), opacity 300ms linear(0, 0.32, 0.538, 0.686, 0.786, 0.855, 0.901, 0.933, 0.954, 0.969, 0.979, 0.986, 0.99, 0.993, 0.995, 0.997, 0.998, 0.999, 0.999, 0.999, 1);
}

.ahc__head {
  position: absolute;
  left: 0;
  right: 0;
  top: 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #17141a;
  transform: translateY(0);
  transition: transform 300ms linear(0, 0.32, 0.538, 0.686, 0.786, 0.855, 0.901, 0.933, 0.954, 0.969, 0.979, 0.986, 0.99, 0.993, 0.995, 0.997, 0.998, 0.999, 0.999, 0.999, 1);
}

.ahc__logo {
  color: #fff7e6;
  font-weight: 800;
  font-size: clamp(14px, 4vw, 18px);
  line-height: 1;
  font-family: inherit;
  letter-spacing: 0.04em;
}

.ahc__nav {
  display: flex;
  gap: 8px;
}
.ahc__nav span {
  width: 20px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.35);
}

.ahc.is-scrolled .ahc__bar {
  transform: translateY(-100%);
  opacity: 0;
}
.ahc.is-scrolled .ahc__head {
  transform: translateY(-32px);
}
.ahc.is-scrolled .ahc__page {
  transform: translateY(-8px);
}

.ahc.is-demo .ahc__bar {
  animation: ahc-bar-loop 2s linear(0, 0.32, 0.538, 0.686, 0.786, 0.855, 0.901, 0.933, 0.954, 0.969, 0.979, 0.986, 0.99, 0.993, 0.995, 0.997, 0.998, 0.999, 0.999, 0.999, 1) infinite;
}
.ahc.is-demo .ahc__head {
  animation: ahc-head-loop 2s linear(0, 0.32, 0.538, 0.686, 0.786, 0.855, 0.901, 0.933, 0.954, 0.969, 0.979, 0.986, 0.99, 0.993, 0.995, 0.997, 0.998, 0.999, 0.999, 0.999, 1) infinite;
}
.ahc.is-demo .ahc__page {
  animation: ahc-page-loop 2s linear(0, 0.18, 0.328, 0.449, 0.548, 0.629, 0.696, 0.751, 0.796, 0.832, 0.863, 0.887, 0.908, 0.924, 0.938, 0.949, 0.958, 0.966, 0.972, 0.977, 1) infinite;
}

@keyframes ahc-bar-loop {
  0%, 20% {
    transform: translateY(0);
    opacity: 1;
  }
  45%, 70% {
    transform: translateY(-100%);
    opacity: 0;
  }
  95%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes ahc-head-loop {
  0%, 20% {
    transform: translateY(0);
  }
  45%, 70% {
    transform: translateY(-32px);
  }
  95%, 100% {
    transform: translateY(0);
  }
}
@keyframes ahc-page-loop {
  0%, 20% {
    transform: translateY(0);
  }
  45%, 70% {
    transform: translateY(-8px);
  }
  95%, 100% {
    transform: translateY(0);
  }
}
.ahc__page {
  padding: 16px 0 0;
  transform: translateY(0);
  transition: transform 420ms linear(0, 0.18, 0.328, 0.449, 0.548, 0.629, 0.696, 0.751, 0.796, 0.832, 0.863, 0.887, 0.908, 0.924, 0.938, 0.949, 0.958, 0.966, 0.972, 0.977, 1);
}

.ahc__line {
  height: 10px;
  margin: 0 0 12px;
  border-radius: 4px;
  background: rgba(255, 247, 230, 0.12);
}
.ahc__line.short {
  width: 55%;
}

@media (prefers-reduced-motion: reduce) {
  .ahc__bar, .ahc__head, .ahc__page {
    transition: none;
  }
  .ahc.is-demo .ahc__bar, .ahc.is-demo .ahc__head, .ahc.is-demo .ahc__page {
    animation: none !important;
  }
  .ahc.is-demo .ahc__bar {
    transform: translateY(0);
    opacity: 1;
  }
  .ahc.is-demo .ahc__head {
    transform: translateY(0);
  }
  .ahc.is-demo .ahc__page {
    transform: translateY(0);
  }
}
