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

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

.stage {
  background-image: repeating-radial-gradient(circle at 14px 14px, rgba(36, 31, 38, 0.1) 0 2.5px, transparent 3.5px 28px);
}

.herom {
  position: relative;
  width: clamp(224px, 72vw, 330px);
  isolation: isolate;
}

.herom__shape {
  position: absolute;
  z-index: 0;
  animation: shapeFloat 2s ease-out infinite;
}

.herom__shape--half {
  left: -26px;
  top: 30px;
  width: 64px;
  height: 32px;
  border-radius: 999px 999px 0 0;
  background: #d5aea9;
  border: 3px solid #241f26;
  animation-delay: -0.5s;
}

.herom__shape--tri {
  right: -22px;
  top: -18px;
  width: 60px;
  height: 54px;
  background: #82adc2;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  animation-delay: -1s;
}

.herom__shape--cross {
  right: -30px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  animation-delay: -1.5s;
}

.herom__shape--cross::before,
.herom__shape--cross::after {
  content: "";
  position: absolute;
  background: #cec29c;
  border: 3px solid #241f26;
  border-radius: 4px;
}

.herom__shape--cross::before {
  left: 50%;
  top: 0;
  width: 10px;
  height: 100%;
  transform: translateX(-50%);
}

.herom__shape--cross::after {
  top: 50%;
  left: 0;
  height: 10px;
  width: 100%;
  transform: translateY(-50%);
}

.herom__shape--zig {
  left: -20px;
  bottom: -14px;
  width: 72px;
  height: 12px;
  background: conic-gradient(from 315deg at 50% 100%, #71b9ab 0 90deg, transparent 90deg 360deg) 0 0/16px 12px repeat-x;
}

.herom__panel {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 3px solid #241f26;
  box-shadow: 0 6px 0 #241f26;
}

.herom__eyebrow {
  margin: 0;
  color: #5d5560;
  font-weight: 700;
  font-size: clamp(10px, 2.6vw, 12px);
  line-height: 1;
  font-family: inherit;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.herom__title {
  margin: 0;
  color: #241f26;
  font-weight: 800;
  font-size: clamp(18px, 4.6vw, 27px);
  line-height: 1.2;
  font-family: inherit;
}

.herom__desc {
  margin: 0;
  color: #5d5560;
  font-weight: 500;
  font-size: clamp(12px, 2.8vw, 14px);
  line-height: 1.4;
  font-family: inherit;
}

.herom__cta {
  margin-top: 4px;
  border: 3px solid #241f26;
  border-radius: 12px;
  background: #cec29c;
  color: #241f26;
  padding: 8px 20px;
  font-weight: 700;
  font-size: clamp(12px, 2.8vw, 14px);
  line-height: 1;
  font-family: inherit;
  box-shadow: 0 4px 0 #241f26;
}

.herom__cta:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #241f26;
}

.herom__cta:focus-visible {
  outline: 3px solid #82adc2;
  outline-offset: 2px;
}

@keyframes shapeFloat {
  0%, 100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-12px) rotate(4deg);
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .herom {
    width: 208px;
  }
  .herom__panel {
    padding: 12px 16px;
    gap: 4px;
  }
  .herom__eyebrow {
    display: none;
  }
  .herom__title {
    font-size: 17px;
    line-height: 1.15;
  }
  .herom__desc {
    display: none;
  }
  .herom__cta {
    padding: 4px 16px;
    margin-top: 0;
  }
  .herom__shape--half {
    width: 44px;
    height: 22px;
    left: -14px;
    top: 24px;
  }
  .herom__shape--tri {
    width: 44px;
    height: 40px;
    right: -14px;
    top: -12px;
  }
  .herom__shape--cross {
    width: 32px;
    height: 32px;
    right: -18px;
    bottom: 16px;
  }
  .herom__shape--zig {
    width: 56px;
    height: 10px;
    left: -12px;
    bottom: -10px;
    background: conic-gradient(from 315deg at 50% 100%, #71b9ab 0 90deg, transparent 90deg 360deg) 0 0/13px 10px repeat-x;
  }
}
@media (prefers-reduced-motion: reduce) {
  .herom__shape {
    animation: none !important;
    transform: none;
  }
}
