/* =========================================================================
   HOME
   기존 HERO / HOME 반응형 규칙을 그대로 분리
   ========================================================================= */

/* -------------------------------------------------------------------------
   03. HERO
   ------------------------------------------------------------------------- */
.section-hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3vh, 34px) var(--pad-x) clamp(22px, 3.5vh, 40px);
}

@supports (min-height: 100svh) {
  .section-hero {
    min-height: 100svh;
  }
}

/* 배경 이미지 */
.hero-background {
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/hero-banner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* 왼쪽 가독성 오버레이 + 비네트 + PROFILE 연결 그라데이션 */
.hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 50%, rgba(7, 6, 15, 0) 42%, rgba(7, 6, 15, 0.55) 100%),
    linear-gradient(
      100deg,
      rgba(7, 6, 15, 0.92) 0%,
      rgba(9, 8, 20, 0.8) 24%,
      rgba(10, 9, 22, 0.46) 48%,
      rgba(11, 10, 24, 0.12) 70%,
      rgba(11, 10, 24, 0) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(7, 6, 15, 0.62) 0%,
      rgba(7, 6, 15, 0) 22%,
      rgba(7, 6, 15, 0) 56%,
      rgba(9, 8, 20, 0.68) 86%,
      var(--bg-night) 100%
    );
}

/* 헤더 */
.site-header,
.hero-inner,
.hero-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
}

.site-logo {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text);
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}

.site-logo:hover {
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
  padding: 8px 1px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
  transition: right 0.4s var(--ease);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  right: 0;
}

/* 본문 */
.hero-inner {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(28px, 6vh, 72px) 0;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 580px;
}

/* 제목 뒤 달무리 */
.hero-content::before {
  content: "";
  position: absolute;
  top: -14%;
  left: -14%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(168, 140, 250, 0.2),
    rgba(168, 140, 250, 0)
  );
  pointer-events: none;
  z-index: -1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--lavender);
}

.hero-eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), rgba(243, 207, 154, 0));
}

.hero-eyebrow::after {
  content: "✦";
  font-size: 9px;
  letter-spacing: 0;
  color: var(--gold);
  opacity: 0.85;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(58px, 9vw, 116px);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 0.98;
  color: var(--text);
  text-shadow: 0 0 48px rgba(160, 132, 240, 0.4);
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero-title {
    background: linear-gradient(
      118deg,
      #ffffff 0%,
      #f3ecff 34%,
      var(--lavender) 62%,
      #ffeecd 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero-tagline {
  margin-top: 2px;
  font-family: var(--font-serif-kr);
  font-size: clamp(19px, 2.1vw, 26px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.6;
  color: #f0e7ff;
}

.hero-description {
  max-width: 40ch;
  font-size: clamp(14px, 1.15vw, 15.5px);
  line-height: 1.9;
  color: var(--text-soft);
}

.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

/* 하단 */
.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(
      to right,
      rgba(243, 207, 154, 0.4),
      rgba(190, 176, 238, 0.16) 45%,
      rgba(190, 176, 238, 0)
    )
    1;
}

.scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
}

.scroll-indicator::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(to right, rgba(243, 207, 154, 0), var(--gold));
}

.scroll-indicator:hover {
  color: var(--gold);
}

.hero-footer p {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(203, 196, 236, 0.42);
}


/* -------------------------------------------------------------------------
   05. RESPONSIVE
   ------------------------------------------------------------------------- */

/* 좁은 데스크톱 / 큰 태블릿 */
@media (max-width: 1080px) {
  .profile-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .hero-content {
    max-width: 520px;
  }
}

/* 태블릿 */
@media (max-width: 860px) {
  .hero-background {
    background-position: 68% center;
  }

  .hero-background::after {
    background:
      radial-gradient(130% 90% at 50% 50%, rgba(7, 6, 15, 0) 45%, rgba(7, 6, 15, 0.5) 100%),
      linear-gradient(
        105deg,
        rgba(7, 6, 15, 0.94) 0%,
        rgba(9, 8, 20, 0.84) 34%,
        rgba(10, 9, 22, 0.5) 62%,
        rgba(11, 10, 24, 0.2) 100%
      ),
      linear-gradient(
        to bottom,
        rgba(7, 6, 15, 0.6) 0%,
        rgba(7, 6, 15, 0.1) 24%,
        rgba(7, 6, 15, 0.1) 58%,
        rgba(9, 8, 20, 0.72) 86%,
        var(--bg-night) 100%
      );
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-description {
    max-width: 36ch;
  }
}

/* 모바일 */
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .section-hero {
    padding-top: 18px;
  }

  /* 캐릭터가 화면 아래쪽에 남도록 */
  .hero-background {
    background-position: 72% center;
  }

  .hero-background::after {
    background: linear-gradient(
      to bottom,
      rgba(7, 6, 15, 0.95) 0%,
      rgba(8, 7, 18, 0.9) 34%,
      rgba(9, 8, 20, 0.66) 54%,
      rgba(9, 8, 20, 0.5) 68%,
      rgba(9, 8, 20, 0.78) 88%,
      var(--bg-night) 100%
    );
  }

  .hero-content::before {
    width: 320px;
    height: 320px;
    left: -22%;
  }

  .site-header {
    gap: 10px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .site-nav a {
    font-size: 10.5px;
    letter-spacing: 0.12em;
  }

  .hero-inner {
    align-items: flex-start;
    padding: clamp(26px, 5vh, 44px) 0 20px;
  }

  .hero-content {
    gap: 15px;
  }

  .hero-title {
    font-size: clamp(48px, 15vw, 68px);
  }

  .hero-description {
    max-width: 100%;
    line-height: 1.85;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    padding: 13px 18px;
    font-size: 13.5px;
  }

  .button-primary {
    flex: 1 1 100%;
  }

  .button-secondary {
    flex: 1 1 calc(50% - 5px);
  }

  .hero-footer {
    justify-content: flex-start;
    gap: 8px 16px;
  }

  .hero-footer p {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .section-title::after {
    width: 48px;
    margin-left: 14px;
  }

  .profile-identity {
    gap: 16px;
  }

  .profile-avatar {
    width: 88px;
    border-radius: 24px;
  }

  .profile-main::after {
    display: none;
  }

  .profile-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-main {
    border-radius: 24px;
  }
}

/* 소형 모바일 (390px 전후) */
@media (max-width: 420px) {
  :root {
    --pad-x: 20px;
  }

  .hero-title {
    font-size: 52px;
    letter-spacing: 0.01em;
  }

  .hero-tagline {
    font-size: 18.5px;
  }

  .hero-eyebrow {
    font-size: 10.5px;
    letter-spacing: 0.24em;
  }

  .hero-eyebrow::before {
    width: 20px;
  }

  .hero-keywords li,
  .profile-interest-list li {
    padding: 5px 12px;
    font-size: 10.5px;
    letter-spacing: 0.14em;
  }

  .scroll-indicator {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .profile-identity {
    gap: 14px;
  }

  .profile-tagline {
    padding-left: 12px;
  }
}

/* 낮은 높이 화면 (노트북 등) */
@media (max-height: 700px) and (min-width: 861px) {
  .hero-inner {
    padding: 24px 0;
  }

  .hero-title {
    font-size: clamp(52px, 7vw, 84px);
  }
}

/* -------------------------------------------------------------------------
   06. MOTION — 진입 시 한 번 + 아주 느린 별빛
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > * {
    animation: hero-rise 0.9s var(--ease) both;
  }

  .hero-content > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-content > *:nth-child(2) { animation-delay: 0.13s; }
  .hero-content > *:nth-child(3) { animation-delay: 0.21s; }
  .hero-content > *:nth-child(4) { animation-delay: 0.29s; }
  .hero-content > *:nth-child(5) { animation-delay: 0.37s; }
  .hero-content > *:nth-child(6) { animation-delay: 0.45s; }

  .scroll-indicator span:last-child {
    display: inline-block;
    animation: scroll-float 2.6s ease-in-out infinite;
  }

  .section-profile::after {
    animation: starlight 9s ease-in-out infinite alternate;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes scroll-float {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(5px); opacity: 1; }
}

@keyframes starlight {
  from { opacity: 0.38; }
  to { opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

