/* ============================================================
   청담 라플라스 — Laplace | Opening Teaser
   Refined luxury minimalism · 크림 실크 + 네이비
   ============================================================ */

:root {
  --navy: #002548;
  --navy-soft: rgba(0, 37, 72, 0.55);
  --cream: #efe9e0;

  /* orchestration timing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  background: var(--cream);
  color: var(--navy);
  font-family: "Noto Serif KR", "Nanum Myeongjo", serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* ---------- stage & background ---------- */
.stage {
  position: relative;
  width: 100%;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.bg {
  position: absolute;
  inset: 0;
  background: var(--cream) url("assets/bg.jpg") center center / cover no-repeat;
  transform: scale(1.08);
  opacity: 0;
  animation: bgReveal 2.6s var(--ease) forwards;
}

/* 텍스트 가독성을 위한 아주 옅은 크림 베일 */
.bg-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 42%, rgba(239, 233, 224, 0.28) 0%, rgba(239, 233, 224, 0) 55%),
    linear-gradient(180deg, rgba(239, 233, 224, 0.10) 0%, rgba(239, 233, 224, 0) 30%);
  pointer-events: none;
}

@keyframes bgReveal {
  0%   { opacity: 0; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

/* ---------- composition ---------- */
.composition {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6vh 24px;
  gap: 0;
}

/* ---------- OPENING SOON ---------- */
.eyebrow {
  font-family: "Cormorant Garamond", "Noto Serif KR", serif;
  font-weight: 400;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: clamp(0.18em, 0.5vw, 0.3em);
  color: var(--navy);
  line-height: 1;
  white-space: nowrap;
  padding-left: clamp(0.18em, 0.5vw, 0.3em); /* 자간 시각 보정 */
}

/* ---------- 연결선 ---------- */
.rule {
  display: block;
  width: 1.5px;
  background: var(--navy);
  transform: scaleY(0);
}

.rule--top {
  height: clamp(64px, 14vh, 132px);
  transform-origin: top center;
  margin: clamp(18px, 3.5vh, 34px) 0;
}

.rule--bottom {
  position: relative;
  height: clamp(64px, 14vh, 128px);
  transform-origin: top center;
  margin: clamp(18px, 3.5vh, 34px) 0 0;
}

.rule__dot {
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
  transform: translateX(-50%) scale(0);
}

/* ---------- 중앙 메시지 ---------- */
.message {
  font-family: "Noto Serif KR", serif;
  font-weight: 300;
  font-size: clamp(19px, 2.4vw, 30px);
  line-height: 1.62;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.message span { display: block; }

/* ---------- 로고 ---------- */
.brand {
  margin-top: clamp(30px, 5.5vh, 54px);
}
.brand img {
  width: clamp(168px, 20vw, 248px);
  height: auto;
  display: block;
}

/* ============================================================
   Entrance orchestration
   1. 배경  →  2. 중앙 메시지(앵커)  →  3. 위 라인+OPENING SOON
                                     →  4. 아래 라인+CI  →  5. dot
   ============================================================ */
.anim { opacity: 0; will-change: opacity, transform; }

.anim--center {
  animation: fadeIn 1.5s var(--ease) 0.5s forwards;
}
.anim--up {
  transform: translateY(-14px);
  animation: fadeUp 1.5s var(--ease) 1.35s forwards;
}
.anim--down {
  transform: translateY(14px);
  animation: fadeDown 1.5s var(--ease) 1.6s forwards;
}

/* 라인은 개별 지연으로 자라남 */
.rule--top   { animation: drawLine 1.1s var(--ease) 1.05s forwards; opacity: 1; }
.rule--bottom{ animation: drawLine 1.1s var(--ease) 1.3s forwards;  opacity: 1; }
.rule__dot   { animation: dotPop 0.6s var(--ease) 2.5s forwards; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes drawLine {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes dotPop {
  from { transform: translateX(-50%) scale(0); }
  to   { transform: translateX(-50%) scale(1); }
}

/* 접근성: 모션 최소화 선호 시 즉시 표시 */
@media (prefers-reduced-motion: reduce) {
  .bg { animation: none; opacity: 1; transform: none; }
  .anim, .rule--top, .rule--bottom { animation: none; opacity: 1; transform: none; }
  .rule { transform: scaleY(1); }
  .rule__dot { animation: none; transform: translateX(-50%) scale(1); }
}

/* ---------- 세로 여백이 좁은 화면 보정 ---------- */
@media (max-height: 640px) {
  .rule--top    { height: clamp(40px, 9vh, 70px); }
  .rule--bottom { height: clamp(40px, 9vh, 70px); }
}
