:root {
  --bg-deep:     #0e0a05;
  --text:        #fff5e0;
  --text-strong: #ffffff;
  --text-muted:  rgba(255, 245, 224, 0.65);
  --text-faint:  rgba(255, 245, 224, 0.45);
  --gold-bright: #ffd98a;

  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-serif: "Cormorant Garamond", "Apple SD Gothic Neo", serif;

  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { min-height: 100svh; overflow-x: hidden; }

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 245, 224, 0.22);
  transition: border-color 160ms ease, color 160ms ease;
}
a:hover { color: var(--text-strong); border-bottom-color: var(--gold-bright); }

/* =========================================================
   Hero — 풀-블리드 시네마틱 hero. 한 화면 안에 모두 담음.
   ========================================================= */

.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  isolation: isolate;
}

/* 1. 배경 이미지 — object-fit cover */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -3;
  /* 이미지가 천천히 살아 숨쉬는 느낌 — ken burns */
  animation: hero-ken-burns 32s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-ken-burns {
  0%   { transform: scale(1)    translate(0, 0); }
  100% { transform: scale(1.06) translate(-1%, -0.5%); }
}

/* 2. Overlay — 텍스트 가독성 + 분위기 톤다운.
   중앙은 살짝 어두워서 텍스트가 떠오르도록. */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(80% 60% at 50% 45%, rgba(8, 5, 2, 0.55) 0%, transparent 75%),
    linear-gradient(
      180deg,
      rgba(8, 5, 2, 0.55) 0%,
      rgba(8, 5, 2, 0.15) 25%,
      rgba(8, 5, 2, 0.2) 55%,
      rgba(8, 5, 2, 0.7) 92%,
      rgba(8, 5, 2, 0.92) 100%
    );
}

/* 3. Motes — 떠다니는 빛 알갱이 (이미지 분위기에 미세하게만 얹기) */
.hero__motes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.mote {
  position: absolute;
  bottom: -8%;
  left: var(--x);
  width: var(--size, 4px);
  height: var(--size, 4px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 232, 184, 1) 0%, rgba(255, 232, 184, 0) 70%);
  box-shadow: 0 0 6px rgba(255, 224, 168, 0.55);
  filter: blur(0.4px);
  opacity: 0;
  animation:
    mote-rise var(--dur, 22s) linear infinite,
    mote-glow calc(var(--dur, 22s) * 0.5) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes mote-rise {
  0%   { transform: translateY(0)      translateX(0); }
  50%  { transform: translateY(-55vh)  translateX(8px); }
  100% { transform: translateY(-115vh) translateX(-6px); }
}

@keyframes mote-glow {
  0%, 100% { opacity: 0;    }
  15%      { opacity: 0.85; }
  50%      { opacity: 0.5;  }
  85%      { opacity: 0.7;  }
}

/* =========================================================
   Content — 한 화면 중앙
   ========================================================= */

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(20px, 3.5vh, 32px);
  padding: clamp(40px, 8vh, 80px) clamp(24px, 5vw, 48px);
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}

/* 진입 등장 */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

.slogan { animation: rise-in 1.8s var(--ease-soft) 0.4s both; }
.tagline { animation: rise-in 1.4s var(--ease-soft) 1.0s both; }
.coming  { animation: rise-in 1.4s var(--ease-soft) 1.4s both; }
.foot    { animation: rise-in 1.4s var(--ease-soft) 1.8s both; }

/* ---- Typography ---- */

.slogan {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(36px, 6.2vw, 64px);
  line-height: 1.16;
  letter-spacing: 0.005em;
  color: var(--text-strong);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.slogan em { font-style: italic; }

.tagline {
  margin: 0;
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.coming {
  margin: 0;
  font-size: clamp(14px, 1.7vw, 16px);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.coming__accent {
  color: var(--text-strong);
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* ---- Footer (한 줄로 압축) ---- */

.foot {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(16px, 2.5vh, 24px) clamp(20px, 5vw, 40px) max(env(safe-area-inset-bottom), 16px);
}

.foot__line {
  margin: 0;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.foot__line a {
  color: var(--text-muted);
  border-bottom-color: rgba(255, 220, 150, 0.25);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 560px) {
  .slogan {
    white-space: normal;
    font-size: clamp(32px, 8.5vw, 46px);
    line-height: 1.2;
  }
  /* 모바일에선 등불(우측 하단)이 더 도드라지게 살짝 우측 위로 */
  .hero__bg { object-position: 70% 50%; }
}

/* =========================================================
   Accessibility
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .hero__bg, .mote,
  .slogan, .tagline, .coming, .foot {
    animation: none !important;
  }
  .slogan, .tagline, .coming, .foot {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
