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

.hf {
  width: min(392px, 90vw);
}

.hf__scroller {
  --h: clamp(148px, 58vh, 176px);
  position: relative;
  height: var(--h);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 16px;
  background: #17141a;
  scroll-timeline-name: --hfscroll;
  scroll-timeline-axis: y;
  scrollbar-width: none;
}
.hf__scroller::-webkit-scrollbar {
  display: none;
}
.hf__scroller:focus-visible {
  outline: 2px solid #d8d6eb;
  outline-offset: 2px;
}

.hf__hero {
  position: sticky;
  top: 0;
  z-index: 0;
  display: grid;
  align-content: center;
  height: calc(var(--h) * 0.76);
  padding: 0 20px;
  overflow: hidden;
  background: rgba(216, 214, 235, 0.2);
  transform-origin: top center;
  animation-name: hfFold;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-fill-mode: both;
  animation-timeline: --hfscroll;
}

.hf__inner {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.hf__title {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(17px, 4.6vw, 21px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hf__sub {
  margin: 0;
  color: #b6b0c0;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.35;
}

.hf__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: #ffd23f;
  color: #17141a;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hf__btn:hover {
  transform: translateY(-2px);
}

.hf__btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.hf__dim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #17141a;
  opacity: 0;
  animation-name: hfDim;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-fill-mode: both;
  animation-timeline: --hfscroll;
}

.hf__doc {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  min-height: calc(var(--h) - 20px);
  margin-top: -24px;
  padding: 24px 20px;
  border-radius: 16px 16px 0 0;
  background: #fdf7ec;
  color: #17141a;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  animation-name: hfRise;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-fill-mode: both;
  animation-timeline: --hfscroll;
}

.hf__h2 {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
}

.hf__p {
  margin: 0 0 8px;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
}

.hf__p--soft {
  margin-bottom: 0;
  color: #56505e;
}

@keyframes hfFold {
  from {
    transform: scale(1);
    border-radius: 0;
  }
  to {
    transform: scale(0.86);
    border-radius: 16px;
  }
}
@keyframes hfDim {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.28;
  }
}
@keyframes hfRise {
  from {
    transform: translateY(20px);
  }
  to {
    transform: translateY(0);
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .hf__hero {
    padding: 0 16px;
  }
  .hf__sub {
    font-size: 11px;
  }
  .hf__doc {
    padding: 12px 16px 16px;
  }
  .hf__p {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hf__hero, .hf__dim, .hf__doc {
    animation: none !important;
  }
  .hf__hero {
    border-radius: 16px 16px 0 0;
  }
  .hf__doc {
    transform: none !important;
  }
  .hf__btn {
    transition: none !important;
  }
}
