/* =========================================================================
   site.css — 비빌드업 페이지(홈 · 소개 · 캠프 · 패키지 · 포켓비즈 …)에 입히는 빌드업(b2) 톤.
   빌드업 페이지는 이 파일을 연결하지 않는다(bu2.css · bu2-v2.css 가 같은 규칙을 가진다). DESIGN-GUIDE 15절.
   훅은 마크업에 단 data 속성이고, 규칙은 인라인 style 을 덮으므로 !important 를 쓴다.
   - data-pk-hero="ink"   : 히어로 바탕을 ink 로, 아래쪽에 링 장식을 깐다(bu2-v2.css 의 .b2-hero 와 같은 값). 링은 히어로 자신의 배경 층으로 깐다(따로 요소로 만들면 로딩 중 히어로가 움직일 때 레이아웃 이동(CLS) 점수가 올라간다).
   - data-pk-hero="photo" : 사진 바탕은 그대로 두고 글자 정렬 · 크기만 맞춘다.
   767 이하에서는 제목과 버튼 줄을 왼쪽 정렬로 하고 제목을 34~46px 로 키운다(390 기준 빌드업 히어로와 같다).
   ========================================================================= */

@keyframes pkTextShine { 0% { background-position: 100% 0; } 40%, 100% { background-position: 0 0; } }

[data-pk-hero="ink"] {
  position: relative;
  background:
    linear-gradient(var(--pk-gray-950, #0B0C10), var(--pk-gray-950, #0B0C10)) 0 0 / 100% calc(100% - 560px) no-repeat,
    linear-gradient(180deg, var(--pk-gray-950, #0B0C10) 0, transparent 26%) center bottom / min(100%, 900px) 560px no-repeat,
    url("../assets/design/buildup/ds/hero-ring.webp") center bottom / min(100%, 900px) auto no-repeat,
    var(--pk-gray-950, #0B0C10) !important;
}
@media (min-width: 768px) {
  [data-pk-hero="ink"] {
    background:
      linear-gradient(var(--pk-gray-950, #0B0C10), var(--pk-gray-950, #0B0C10)) 0 0 / 100% calc(100% - 500px) no-repeat,
      linear-gradient(90deg, var(--pk-gray-950, #0B0C10) 0, transparent 18%, transparent 82%, var(--pk-gray-950, #0B0C10) 100%) center calc(100% + 60px) / min(100%, 900px) 560px no-repeat,
      linear-gradient(180deg, var(--pk-gray-950, #0B0C10) 0, transparent 45%) center calc(100% + 60px) / min(100%, 900px) 560px no-repeat,
      url("../assets/design/buildup/ds/hero-ring.webp") center calc(100% + 60px) / min(100%, 900px) auto no-repeat,
      var(--pk-gray-950, #0B0C10) !important;
  }
}

/* 사진 위에 파란 야간 그라디언트를 깐 히어로(소개)는 덮개를 ink 로 바꾼다 */
[data-pk-hero="ink"] > span[aria-hidden="true"][style*="gradient-night"] {
  background: linear-gradient(180deg, rgba(11, 12, 16, 0.72), rgba(11, 12, 16, 0.94)) !important;
  opacity: 1 !important;
}

[data-pk-hero] h1 > span[style*="color"] {
  background: linear-gradient(90deg, var(--b2-ice, #dcecff) 0 40%, #ffffff 50%, var(--b2-ice, #dcecff) 60% 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  animation: pkTextShine 5s ease-in-out 1.6s infinite;
}

@media (max-width: 767px) {
  [data-pk-hero] h1 {
    text-align: left !important;
    font-size: clamp(34px, 11.8vw, 46px) !important;
    line-height: 1.3 !important;
    letter-spacing: -0.05em !important;
  }
  [data-pk-hero] [data-fx="hero"] {
    text-align: left !important;
    align-items: flex-start !important;
  }
  [data-pk-hero] [data-fx="hero"] > div {
    justify-content: flex-start !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-pk-hero] h1 > span[style*="color"] { animation: none !important; }
}
