/* ------------------------------------------------------------------
   아워결 — 히어로 스테이지 (스크롤 고정 3D)
   brand.css 뒤에 불러옵니다.

   기본값은 기존 사진 히어로 그대로입니다(스크립트 없음 / WebGL 불가).
   스크립트가 켜진 경우에만 아래 .js 규칙이 적용되어 화면에 고정된
   3D 스테이지로 바뀝니다.
------------------------------------------------------------------ */

/* ---- 기본(정적) 상태: 감싸는 층은 레이아웃에서 빠지고, 스테이지 전용 요소는 숨김 ---- */
.stage__sticky { display: contents; }
.stage__canvas,
.stage__feats,
.stage__mark,
.stage__hint { display: none; }

/* ---- 라이브 상태 ---- */
.js .stage:not(.is-static) {
  display: block;
  height: 360vh;
  height: 360svh;
  min-height: 0;
  overflow: visible;           /* hidden이면 sticky가 동작하지 않습니다 */
  background: #0c100e;
  color: var(--cream);
}
.js .stage:not(.is-static) .stage__sticky {
  display: block;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 90% at 50% 38%, #2a3835 0%, #161d1b 52%, #0b0e0d 100%);
}
.js .stage:not(.is-static) .stage__canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.js .stage:not(.is-static) .hero__media { display: none; }
.js .stage:not(.is-static) .hero__mark { display: none; }
.js .stage:not(.is-static) .hero__scrim {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(8, 11, 10, 0.42) 0%,
    rgba(8, 11, 10, 0) 20%,
    rgba(8, 11, 10, 0) 46%,
    rgba(8, 11, 10, 0.7) 100%);
}

/* 헤드라인 — 화면 아래쪽 가운데 */
.js .stage:not(.is-static) .hero__inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(52px, 9vh, 104px);
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--pad);
  text-align: center;
  will-change: opacity, transform;
}
.js .stage:not(.is-static) .hero__eyebrow { margin-bottom: 16px; }
.js .stage:not(.is-static) h1 {
  font-size: clamp(30px, 4.6vw, 62px);
  max-width: none;
  margin: 0 auto 18px;
}
.js .stage:not(.is-static) .hero__lede {
  margin: 0 auto 28px;
  max-width: 44ch;
}
.js .stage:not(.is-static) .hero__actions { justify-content: center; }

/* 3열 텍스트 — 화면 아래에 붙음 */
.js .stage:not(.is-static) .stage__feats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 48px);
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(44px, 8vh, 96px);
  z-index: 2;
  list-style: none;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  pointer-events: none;
}
.stage__feats li {
  border-top: 1px solid rgba(248, 244, 234, 0.3);
  padding-top: 16px;
  opacity: 0;
  will-change: opacity, transform;
}
.stage__feats span {
  display: block;
  font-family: var(--latin);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(248, 244, 234, 0.6);
}
.stage__feats h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(17px, 1.75vw, 23px);
  letter-spacing: -0.03em;
  line-height: 1.4;
  margin: 10px 0 6px;
}
.stage__feats p {
  margin: 0;
  font-size: clamp(12px, 0.95vw, 13.5px);
  line-height: 1.9;
  color: rgba(248, 244, 234, 0.78);
}

/* 마지막 한 줄 */
.js .stage:not(.is-static) .stage__mark {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(44px, 8vh, 92px);
  z-index: 2;
  margin: 0;
  padding: 0 var(--pad);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.stage__mark span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(15px, 1.5vw, 20px);
  letter-spacing: -0.02em;
  color: rgba(248, 244, 234, 0.94);
}
.stage__mark b {
  display: block;
  margin-top: 10px;
  font-family: var(--latin);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.34em;
  color: rgba(248, 244, 234, 0.55);
}

/* 스크롤 안내 */
.js .stage:not(.is-static) .stage__hint {
  display: block;
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 2;
  margin: 0;
  transform: translateX(-50%);
  font-family: var(--latin);
  font-size: 9.5px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(248, 244, 234, 0.5);
  pointer-events: none;
}

/* ---- 스테이지 위에 있을 때의 내비게이션 ---- */
.nav { transition: background 320ms ease, border-color 320ms ease; }
.nav__ko, .nav__en { transition: color 320ms ease; }
.js .nav.is-over {
  background: rgba(10, 14, 12, 0.3);
  border-bottom-color: rgba(248, 244, 234, 0.14);
}
.js .nav.is-over .nav__ko { color: var(--cream); }
.js .nav.is-over .nav__en { color: rgba(248, 244, 234, 0.6); }
.js .nav.is-over .nav__links a { color: rgba(248, 244, 234, 0.8); }
.js .nav.is-over .nav__links a:hover { color: var(--cream); border-color: var(--cream); }
.js .nav.is-over .nav__cta {
  border-color: rgba(248, 244, 234, 0.85) !important;
  color: var(--cream) !important;
}
.js .nav.is-over .nav__cta:hover {
  background: var(--cream);
  color: var(--ink) !important;
}

/* ---- 반응형 ---- */
@media (max-width: 720px) {
  .js .stage:not(.is-static) .hero__inner { bottom: clamp(44px, 7vh, 72px); }
  .js .stage:not(.is-static) h1 { font-size: clamp(28px, 8.2vw, 38px); margin-bottom: 14px; }
  .js .stage:not(.is-static) .hero__lede { margin-bottom: 22px; line-height: 1.85; }
  .js .stage:not(.is-static) .stage__feats {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    bottom: clamp(34px, 6vh, 60px);
  }
  .stage__feats li { padding-top: 11px; }
  .stage__feats h2 { font-size: 16px; margin: 6px 0 2px; }
  .stage__feats p { font-size: 12px; line-height: 1.7; }
}

/* 세로가 짧은 화면: 본문 문장을 숨겨 손수건이 가려지지 않게 */
@media (max-height: 620px) {
  .js .stage:not(.is-static) .hero__lede { display: none; }
  .js .stage:not(.is-static) .stage__hint { display: none; }
}
