/* ═══════════════════════════════════════════
   여수 바다정원 추모관 — 프로토타입
   벤치마크 방식: 휠 장면 전환(fullpage) + 장면별 연출
   장면 상태: 섹션.active(도착) → 섹션.s1 → 섹션.s2 …
   데스크탑에서 body.fp-on 일 때만 장면 연출이 적용됨
   ═══════════════════════════════════════════ */
:root {
  --navy: #0d2436;
  --navy-deep: #091a28;
  --navy-soft: #14324a;
  --ivory: #f6f3ec;
  --ivory-deep: #efeadf;
  --gold: #c2a15f;
  --gold-soft: #d8c193;
  --sea: #6e93a5;
  --ink: #2b3a45;
  --ink-dim: #64747f;
  --serif: 'Noto Serif KR', serif;
  --sans: 'Noto Sans KR', sans-serif;
  --ease-page: cubic-bezier(0.77, 0, 0.18, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--navy-deep);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100%;
  overscroll-behavior: none;      /* 상하 고무줄 바운스 방지 */
  -webkit-font-smoothing: antialiased;
}
/* fullpage 모드: 네이티브 스크롤 차단, 컨테이너를 통째로 이동 */
body.fp-on { overflow: hidden; height: 100vh; }
#fp { will-change: transform; }
body.fp-on #fp { transition: transform 1.05s var(--ease-page); }

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
section { position: relative; background: var(--ivory); }

.fp-section { min-height: 100vh; }
body.fp-on .fp-section { height: 100vh; overflow: hidden; }

.container { width: min(1200px, 90vw); margin: 0 auto; }
.container.narrow { width: min(860px, 90vw); }
.center { text-align: center; }
.pc-only { display: inline; }

/* ── 공통 타이포 ── */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.45em;
  color: var(--sea);
  margin-bottom: 1.4rem;
  font-weight: 500;
}
.eyebrow.gold { color: var(--gold); }
.eyebrow.light { color: var(--gold-soft); }

.serif-lg {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.55;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.serif-lg.light { color: var(--ivory); }
.serif-xl {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.5;
  color: var(--ivory);
  letter-spacing: 0.06em;
}

.lead {
  margin-top: 1.8rem;
  font-size: clamp(0.95rem, 1.4vw, 1.06rem);
  color: var(--ink-dim);
  line-height: 2.05;
}
.lead.light { color: rgba(246, 243, 236, 0.85); }
.lead.dim { color: rgba(246, 243, 236, 0.6); }

.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 1.2rem; margin: 2.2rem 0 0; color: var(--gold);
  font-size: 0.7rem;
}
.ornament span { display: block; width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament span:last-child { background: linear-gradient(270deg, transparent, var(--gold)); }

/* ── 버튼 ── */
.btn-ghost, .btn-solid {
  display: inline-block;
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  padding: 1rem 2.6rem;
  transition: all 0.4s ease;
  cursor: pointer;
}
.btn-ghost { color: var(--ivory); border: 1px solid rgba(246, 243, 236, 0.55); }
.btn-ghost:hover { background: rgba(246, 243, 236, 0.14); border-color: var(--ivory); letter-spacing: 0.3em; }
.btn-solid { color: var(--ivory); background: var(--navy); border: 1px solid var(--navy); }
.btn-solid:hover { background: var(--gold); border-color: var(--gold); letter-spacing: 0.3em; }
.btn-solid.wide { width: 100%; text-align: center; }

/* ═══════════ 커서 팔로워 ═══════════ */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 999;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(194, 161, 95, 0.75);
  border-radius: 50%;
  pointer-events: none;
  transition: width 0.25s, height 0.25s, margin 0.25s, background 0.25s;
  display: none;
}
body.fp-on .cursor { display: block; }
.cursor.grow { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(194, 161, 95, 0.12); }

/* ═══════════ 헤더 ═══════════ */
#siteHeader {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; transition: height 0.4s ease;
}
#siteHeader.scrolled {
  background: rgba(9, 26, 40, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(246, 243, 236, 0.08);
}
#siteHeader.scrolled .header-inner { height: 62px; }

.logo {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.15rem; letter-spacing: 0.12em; color: var(--ivory);
  display: flex; align-items: center; gap: 0.55rem;
  white-space: nowrap;
}
.logo-mark { color: var(--gold); font-size: 0.85rem; }

.gnb { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.4rem); }
.gnb a {
  font-size: 0.9rem; letter-spacing: 0.12em; font-weight: 400;
  color: rgba(246, 243, 236, 0.82);
  padding: 0.4rem 0; position: relative;
  transition: color 0.3s;
}
.gnb a::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: all 0.35s ease; transform: translateX(-50%);
}
.gnb a:hover { color: var(--ivory); }
.gnb a:hover::after { width: 100%; }
.gnb-cta { border: 1px solid rgba(194, 161, 95, 0.7); padding: 0.5rem 1.3rem !important; color: var(--gold-soft) !important; }
.gnb-cta:hover { background: var(--gold); color: var(--navy-deep) !important; }
.gnb-cta::after { display: none; }

.burger { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(9, 26, 40, 0.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { color: var(--ivory); font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0.2em; }

/* ═══════════ 도트 내비 ═══════════ */
.dot-nav {
  position: fixed; right: 2rem; top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 1rem;
}
.dot-nav a {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(110, 147, 165, 0.45);
  position: relative; transition: all 0.35s ease;
}
.dot-nav a.active { background: var(--gold); transform: scale(1.45); }
.dot-nav a .dot-label {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 0.72rem; letter-spacing: 0.18em; color: var(--ink-dim);
  background: rgba(246, 243, 236, 0.92); padding: 0.25rem 0.7rem;
  border-radius: 2px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.dot-nav a:hover .dot-label { opacity: 1; }

/* ═══════════ 장면 진행 힌트 (좌하단) ═══════════ */
.scene-hint {
  position: fixed; left: 2.4rem; bottom: 2rem; z-index: 90;
  display: none; align-items: center; gap: 0.8rem;
}
body.fp-on .scene-hint { display: flex; }
.scene-hint-label { font-size: 0.62rem; letter-spacing: 0.4em; color: rgba(110, 147, 165, 0.9); }
.scene-hint-bar { display: block; width: 44px; height: 2px; background: rgba(110, 147, 165, 0.25); position: relative; overflow: hidden; }
.scene-hint-bar::after {
  content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 40%;
  background: var(--gold);
  animation: hintSlide 1.8s ease-in-out infinite;
}
@keyframes hintSlide { 0% { left: -40%; } 100% { left: 100%; } }

/* ═══════════════════════════════════════════
   1. 히어로 — 장면: active(타이틀) → s1(오션뷰 카피)
   ═══════════════════════════════════════════ */
#hero {
  height: 100vh; min-height: 620px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-bg { position: absolute; inset: 0; }
.kb { position: absolute; inset: -5%; background-size: cover; background-position: center; }
/* 모바일·일반: 자동 켄번즈 순환 */
.kb-1 { animation: kb1 22s ease-in-out infinite; }
.kb-2 { animation: kb2 22s ease-in-out infinite; opacity: 0; }
@keyframes kb1 {
  0% { opacity: 1; transform: scale(1); } 38% { opacity: 1; }
  50% { opacity: 0; transform: scale(1.09); } 88% { opacity: 0; }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes kb2 {
  0% { opacity: 0; transform: scale(1.09); } 38% { opacity: 0; }
  50% { opacity: 1; transform: scale(1); } 88% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.09); }
}
/* fp 모드: 장면이 배경을 제어 (자동 순환 해제) */
body.fp-on .kb-1, body.fp-on .kb-2 { animation: none; transition: opacity 1.6s ease, transform 7s ease-out; }
body.fp-on .kb-1 { opacity: 1; transform: scale(1.06); }
body.fp-on #hero.active .kb-1 { transform: scale(1); }
body.fp-on .kb-2 { opacity: 0; transform: scale(1.1); }
body.fp-on #hero.s1 .kb-1 { opacity: 0; }
body.fp-on #hero.s1 .kb-2 { opacity: 1; transform: scale(1); }

.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,26,40,0.55) 0%, rgba(9,26,40,0.18) 40%, rgba(9,26,40,0.62) 100%);
}

.hero-content { position: relative; text-align: center; color: var(--ivory); padding: 0 1.5rem; transition: opacity 0.9s ease, transform 0.9s ease; }
.hero-eyebrow {
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  letter-spacing: 0.55em; text-indent: 0.55em;
  color: rgba(246, 243, 236, 0.85); margin-bottom: 2rem; font-weight: 300;
  display: flex; align-items: center; justify-content: center; gap: 1.6rem;
}
.line-grow { display: block; height: 1px; width: 70px; background: linear-gradient(90deg, transparent, rgba(216,193,147,0.8)); }
.line-grow.r { background: linear-gradient(270deg, transparent, rgba(216,193,147,0.8)); }
.hero-title {
  font-family: var(--serif); font-weight: 200;
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  letter-spacing: 0.22em; text-indent: 0.22em;
  line-height: 1.15;
  text-shadow: 0 4px 30px rgba(9, 26, 40, 0.45);
}
.hero-title .t-ch { font-style: normal; display: inline-block; }
.hero-title .t-ch.gold { color: var(--gold-soft); }
.hero-sub {
  margin-top: 2rem;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  letter-spacing: 0.3em; text-indent: 0.3em;
  color: rgba(246, 243, 236, 0.9); font-weight: 300;
}

/* 글자 블러 등장 (벤치마크 h4 i:nth-of-type 패턴) */
body.fp-on .hero-title .t-ch { opacity: 0; filter: blur(14px); transform: scale(1.25); }
body.fp-on #hero.active .hero-title .t-ch { opacity: 1; filter: blur(0); transform: scale(1); }
body.fp-on #hero.active .t-ch:nth-of-type(1) { transition: all 1.2s 0.55s; }
body.fp-on #hero.active .t-ch:nth-of-type(2) { transition: all 1.2s 0.7s; }
body.fp-on #hero.active .t-ch:nth-of-type(3) { transition: all 1.2s 0.85s; }
body.fp-on #hero.active .t-ch:nth-of-type(4) { transition: all 1.2s 1.0s; }
body.fp-on #hero.active .t-ch:nth-of-type(5) { transition: all 1.2s 1.15s; }
/* 아이브로: 좌우 라인 자라남 + 페이드 */
body.fp-on .hero-eyebrow { opacity: 0; transform: translateY(20px); }
body.fp-on .hero-eyebrow .line-grow { width: 0; transition: width 2.4s 0.9s ease; }
body.fp-on #hero.active .hero-eyebrow { opacity: 1; transform: none; transition: all 1.1s 0.3s; }
body.fp-on #hero.active .hero-eyebrow .line-grow { width: 70px; }
body.fp-on .hero-sub { opacity: 0; transform: translateY(20px); }
body.fp-on #hero.active .hero-sub { opacity: 1; transform: none; transition: all 1.1s 1.5s; }
/* 장면 s1: 타이틀 아웃 */
body.fp-on #hero.s1 .hero-content { opacity: 0; transform: translateY(-46px); pointer-events: none; }

/* 장면 s1: 오션뷰 카피 인 */
.hero-alt {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 1.5rem;
  opacity: 0; pointer-events: none;
}
.hero-alt-sub { margin: 1.8rem 0 2.6rem; color: rgba(246,243,236,0.8); letter-spacing: 0.24em; font-size: 0.95rem; }
body.fp-on .hero-alt .eyebrow,
body.fp-on .hero-alt .serif-xl,
body.fp-on .hero-alt .hero-alt-sub,
body.fp-on .hero-alt .btn-ghost { opacity: 0; transform: translateY(38px); }
body.fp-on #hero.s1 .hero-alt { opacity: 1; pointer-events: auto; transition: opacity 0.6s 0.25s; }
body.fp-on #hero.s1 .hero-alt .eyebrow { opacity: 1; transform: none; transition: all 1s 0.45s; }
body.fp-on #hero.s1 .hero-alt .serif-xl { opacity: 1; transform: none; transition: all 1.1s 0.6s; }
body.fp-on #hero.s1 .hero-alt .hero-alt-sub { opacity: 1; transform: none; transition: all 1s 0.8s; }
body.fp-on #hero.s1 .hero-alt .btn-ghost { opacity: 1; transform: none; transition: opacity 1s 0.95s, transform 1s 0.95s, background 0.4s, border-color 0.4s, letter-spacing 0.4s; }
/* 모바일/일반 모드에서는 hero-alt 숨김 (히어로에 통합 버튼 없음 → cue만) */
body:not(.fp-on) .hero-alt { display: none; }

.scroll-cue {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
}
.scroll-cue-label { font-size: 0.62rem; letter-spacing: 0.4em; color: rgba(246,243,236,0.7); }
.scroll-cue-line { width: 1px; height: 64px; overflow: hidden; position: relative; background: rgba(246, 243, 236, 0.2); }
.scroll-cue-line::after {
  content: ''; position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%; background: var(--gold-soft);
  animation: cueDrop 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes cueDrop { 0% { top: -50%; } 100% { top: 110%; } }

/* ═══════════════════════════════════════════
   2. 철학 — active 시 라인별 순차 등장
   ═══════════════════════════════════════════ */
#philosophy {
  display: flex; align-items: center;
  background:
    radial-gradient(1200px 500px at 50% 118%, rgba(110, 147, 165, 0.14), transparent 60%),
    var(--ivory);
  padding: 7rem 0;
}
.ph-line { display: block; }
body.fp-on .ph-eyebrow,
body.fp-on .ph-line,
body.fp-on .ph-lead { opacity: 0; transform: translateY(44px); }
body.fp-on .ph-orna { opacity: 0; }
body.fp-on .ph-orna span { width: 0; transition: width 1.6s 1.5s ease; }
body.fp-on #philosophy.active .ph-eyebrow { opacity: 1; transform: none; transition: all 1s 0.35s; }
body.fp-on #philosophy.active .ph-line1 { opacity: 1; transform: none; transition: all 1.15s 0.55s; }
body.fp-on #philosophy.active .ph-line2 { opacity: 1; transform: none; transition: all 1.15s 0.85s; }
body.fp-on #philosophy.active .ph-orna { opacity: 1; transition: opacity 0.8s 1.4s; }
body.fp-on #philosophy.active .ph-orna span { width: 56px; }
body.fp-on #philosophy.active .ph-lead { opacity: 1; transform: none; transition: all 1.15s 1.5s; }

/* ═══════════════════════════════════════════
   3. 입지 — active(배경 줌 + 타이틀) → s1(피처 3종)
   ═══════════════════════════════════════════ */
#location {
  display: flex; align-items: center;
  overflow: hidden;
  padding: 8rem 0 7rem;
  background: var(--navy-deep);
}
.location-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; }
body.fp-on .location-bg { transform: scale(1.16); transition: transform 3s ease-out; }
body.fp-on #location.active .location-bg { transform: scale(1); }
.location-veil {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9,26,40,0.82) 18%, rgba(9,26,40,0.5) 55%, rgba(9,26,40,0.66) 100%);
}
.location-content { position: relative; }
body.fp-on .lc-eyebrow, body.fp-on .lc-title, body.fp-on .lc-lead { opacity: 0; transform: translateY(40px); }
body.fp-on #location.active .lc-eyebrow { opacity: 1; transform: none; transition: all 1s 0.5s; }
body.fp-on #location.active .lc-title { opacity: 1; transform: none; transition: all 1.15s 0.7s; }
body.fp-on #location.active .lc-lead { opacity: 1; transform: none; transition: all 1.15s 0.95s; }

.feature-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  margin-top: 4rem;
}
.feature-item { border-top: 1px solid rgba(216, 193, 147, 0.4); padding-top: 1.6rem; }
.feature-num { font-family: var(--serif); color: var(--gold-soft); font-size: 0.95rem; letter-spacing: 0.2em; }
.feature-item h3 { color: var(--ivory); font-weight: 400; font-size: 1.12rem; letter-spacing: 0.06em; margin: 0.9rem 0 0.7rem; }
.feature-item p { color: rgba(246, 243, 236, 0.62); font-size: 0.9rem; line-height: 1.85; }
/* 장면 s1: 피처 스태거 + 윗선 자라남 */
body.fp-on .feature-item { opacity: 0; transform: translateY(52px); border-top-color: transparent; position: relative; }
body.fp-on .feature-item::before {
  content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 0;
  background: rgba(216, 193, 147, 0.55);
}
body.fp-on #location.s1 .feature-item { opacity: 1; transform: none; }
body.fp-on #location.s1 .feature-item::before { width: 100%; }
body.fp-on #location.s1 .feature-item:nth-child(1) { transition: all 1s 0.1s; }
body.fp-on #location.s1 .feature-item:nth-child(1)::before { transition: width 1.4s 0.5s; }
body.fp-on #location.s1 .feature-item:nth-child(2) { transition: all 1s 0.3s; }
body.fp-on #location.s1 .feature-item:nth-child(2)::before { transition: width 1.4s 0.7s; }
body.fp-on #location.s1 .feature-item:nth-child(3) { transition: all 1s 0.5s; }
body.fp-on #location.s1 .feature-item:nth-child(3)::before { transition: width 1.4s 0.9s; }

/* ═══════════════════════════════════════════
   4. 시설 — active 시 타이틀·카드 스태거
   ═══════════════════════════════════════════ */
#facility {
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(110, 147, 165, 0.16), transparent 65%),
    linear-gradient(180deg, var(--navy-deep), var(--navy) 60%, var(--navy-soft));
  padding: 8rem 0 5rem;
  display: flex; flex-direction: column; justify-content: center;
}
.fc-plan-link { margin-top: 1.6rem; font-size: 0.78rem; padding: 0.75rem 1.8rem; }
body.fp-on .fc-head .eyebrow,
body.fp-on .fc-head .serif-lg,
body.fp-on .fc-head .lead,
body.fp-on .fc-head .fc-plan-link { opacity: 0; transform: translateY(40px); }
body.fp-on #facility.active .fc-head .eyebrow { opacity: 1; transform: none; transition: all 1s 0.4s; }
body.fp-on #facility.active .fc-head .serif-lg { opacity: 1; transform: none; transition: all 1.1s 0.6s; }
body.fp-on #facility.active .fc-head .lead { opacity: 1; transform: none; transition: all 1.1s 0.8s; }
body.fp-on #facility.active .fc-head .fc-plan-link { opacity: 1; transform: none; transition: opacity 1.1s 0.95s, transform 1.1s 0.95s, background 0.4s, border-color 0.4s, letter-spacing 0.4s; }
body.fp-on .facility-swiper { opacity: 0; transform: translateY(70px); }
body.fp-on #facility.active .facility-swiper { opacity: 1; transform: none; transition: all 1.25s 1.0s var(--ease-page); }

.facility-swiper { width: 100%; margin-top: 4rem; padding-bottom: 3rem; overflow: visible; }
.facility-swiper .swiper-slide {
  width: min(420px, 78vw);
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0.45; transform: scale(0.92);
}
.facility-swiper .swiper-slide-active { opacity: 1; transform: scale(1); }
.fcard {
  height: clamp(360px, 48vh, 480px);
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
  border-radius: 2px;
  display: flex; align-items: flex-end;
}
.fcard-veil { position: absolute; inset: 0; background: linear-gradient(190deg, rgba(9,26,40,0.06) 30%, rgba(9,26,40,0.88) 92%); }
.fcard-body { position: relative; padding: 2.2rem; color: var(--ivory); }
.fcard-grade {
  display: inline-block;
  font-size: 0.72rem; letter-spacing: 0.3em;
  color: var(--gold-soft);
  border: 1px solid rgba(216, 193, 147, 0.5);
  padding: 0.35rem 0.9rem; margin-bottom: 1.1rem;
}
.fcard-body h3 { font-family: var(--serif); font-weight: 300; font-size: 1.6rem; letter-spacing: 0.1em; margin-bottom: 0.7rem; }
.fcard-body p { font-size: 0.88rem; color: rgba(246,243,236,0.72); line-height: 1.8; }
.facility-swiper .swiper-pagination { position: relative; margin-top: 2rem; bottom: auto; }
.facility-swiper .swiper-pagination-bullet { background: rgba(246,243,236,0.4); opacity: 1; }
.facility-swiper .swiper-pagination-bullet-active { background: var(--gold); }

/* ═══════════════════════════════════════════
   5. 자연·정원 — 장면 = 가로 패널 이동 (JS가 --hx 설정)
   ═══════════════════════════════════════════ */
#nature { background: var(--ivory); }
.hviewport {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  padding: 5.5rem 0 3rem;
}
.hhead { text-align: center; padding-bottom: 2.6rem; }
body.fp-on .hhead .eyebrow, body.fp-on .hhead .serif-lg { opacity: 0; transform: translateY(36px); }
body.fp-on #nature.active .hhead .eyebrow { opacity: 1; transform: none; transition: all 1s 0.4s; }
body.fp-on #nature.active .hhead .serif-lg { opacity: 1; transform: none; transition: all 1.1s 0.6s; }

.hwrap {
  display: flex; gap: clamp(1.5rem, 3vw, 3rem);
  padding: 0 max(6vw, calc((100vw - 1200px) / 2));
}
body.fp-on .hwrap { transition: transform 1.15s var(--ease-page); transform: translateX(var(--hx, 0px)); will-change: transform; }
.hpanel { flex: 0 0 auto; width: min(680px, 74vw); }
.hpanel-img { height: clamp(300px, 44vh, 440px); overflow: hidden; border-radius: 2px; }
.hpanel-pic { width: 100%; height: 100%; background-size: cover; background-position: center; }
/* 패널 이미지: 클립패스 리빌 + 내부 줌 (active 시 첫 패널부터 순차) */
body.fp-on .hpanel-img { clip-path: inset(0 100% 0 0); transition: clip-path 1.5s var(--ease-page); }
body.fp-on .hpanel-pic { transform: scale(1.18); transition: transform 2.6s ease-out; }
body.fp-on #nature.active .hpanel-img { clip-path: inset(0 0 0 0); }
body.fp-on #nature.active .hpanel-pic { transform: scale(1); }
body.fp-on #nature.active .hpanel:nth-child(1) .hpanel-img { transition-delay: 0.7s; }
body.fp-on #nature.active .hpanel:nth-child(2) .hpanel-img { transition-delay: 1.0s; }
body.fp-on #nature.active .hpanel:nth-child(3) .hpanel-img { transition-delay: 1.3s; }
.hpanel-txt { display: flex; align-items: baseline; gap: 1.1rem; padding: 1.5rem 0.4rem 0; }
.hpanel-num { font-family: var(--serif); color: var(--gold); letter-spacing: 0.15em; }
.hpanel-txt h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); font-size: 1.3rem; letter-spacing: 0.08em; }
.hpanel-txt p { color: var(--ink-dim); font-size: 0.9rem; }
/* 진행 바 */
.hprogress {
  width: min(280px, 40vw); height: 2px; margin: 2.6rem auto 0;
  background: rgba(43, 58, 69, 0.12); border-radius: 2px; overflow: hidden;
  display: none;
}
body.fp-on .hprogress { display: block; }
.hprogress span { display: block; height: 100%; width: 33.4%; background: var(--gold); transition: width 1.1s var(--ease-page); }

/* ═══════════════════════════════════════════
   6. 분양안내 — active(타이틀+카운트업) → s1(절차 스텝)
   ═══════════════════════════════════════════ */
#sales {
  display: flex; align-items: center;
  background:
    radial-gradient(1100px 480px at 50% -8%, rgba(194, 161, 95, 0.1), transparent 60%),
    var(--ivory-deep);
  padding: 7rem 0 5rem;
}
body.fp-on .sl-eyebrow, body.fp-on .sl-title { opacity: 0; transform: translateY(40px); }
body.fp-on #sales.active .sl-eyebrow { opacity: 1; transform: none; transition: all 1s 0.4s; }
body.fp-on #sales.active .sl-title { opacity: 1; transform: none; transition: all 1.1s 0.6s; }

.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  width: min(880px, 100%); margin: 3.4rem auto 0;
}
.stat { padding: 1rem 0; }
.stat + .stat { border-left: 1px solid rgba(43, 58, 69, 0.12); }
.stat strong {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem); color: var(--navy);
  display: block; line-height: 1.2;
}
.stat strong em { font-style: normal; font-size: 0.45em; color: var(--gold); margin-left: 0.2rem; }
.stat-label { font-size: 0.85rem; letter-spacing: 0.14em; color: var(--ink-dim); margin-top: 0.5rem; display: block; }
body.fp-on .stat { opacity: 0; transform: translateY(44px); }
body.fp-on #sales.active .stat:nth-child(1) { opacity: 1; transform: none; transition: all 1s 0.85s; }
body.fp-on #sales.active .stat:nth-child(2) { opacity: 1; transform: none; transition: all 1s 1.05s; }
body.fp-on #sales.active .stat:nth-child(3) { opacity: 1; transform: none; transition: all 1s 1.25s; }

.step-row {
  display: flex; align-items: stretch; justify-content: center;
  gap: clamp(0.6rem, 1.6vw, 1.6rem);
  margin: 3.6rem 0 3.2rem;
}
.step {
  flex: 1; max-width: 220px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(43, 58, 69, 0.08);
  padding: 1.8rem 1.2rem 1.6rem;
  border-radius: 2px;
}
.step span { font-family: var(--serif); color: var(--gold); letter-spacing: 0.2em; font-size: 0.9rem; }
.step h3 { font-weight: 500; color: var(--navy); font-size: 1rem; letter-spacing: 0.1em; margin: 0.8rem 0 0.6rem; }
.step p { font-size: 0.82rem; color: var(--ink-dim); line-height: 1.75; }
.step-arrow { align-self: center; color: var(--gold); font-size: 1.5rem; font-family: var(--serif); }
/* 장면 s1: 스텝 스태거 */
body.fp-on .step { opacity: 0; transform: translateY(56px); }
body.fp-on .step-arrow { opacity: 0; }
body.fp-on .sl-cta { opacity: 0; transform: translateY(30px); }
body.fp-on #sales.s1 .step:nth-child(1) { opacity: 1; transform: none; transition: all 0.9s 0.1s; }
body.fp-on #sales.s1 .step-arrow:nth-child(2) { opacity: 1; transition: opacity 0.7s 0.45s; }
body.fp-on #sales.s1 .step:nth-child(3) { opacity: 1; transform: none; transition: all 0.9s 0.3s; }
body.fp-on #sales.s1 .step-arrow:nth-child(4) { opacity: 1; transition: opacity 0.7s 0.65s; }
body.fp-on #sales.s1 .step:nth-child(5) { opacity: 1; transform: none; transition: all 0.9s 0.5s; }
body.fp-on #sales.s1 .step-arrow:nth-child(6) { opacity: 1; transition: opacity 0.7s 0.85s; }
body.fp-on #sales.s1 .step:nth-child(7) { opacity: 1; transform: none; transition: all 0.9s 0.7s; }
body.fp-on #sales.s1 .sl-cta { opacity: 1; transform: none; transition: opacity 1s 1.0s, transform 1s 1.0s, background 0.4s, border-color 0.4s, letter-spacing 0.4s; }

/* ═══════════════════════════════════════════
   7. 상담 + 푸터 — active 시 좌우 등장
   ═══════════════════════════════════════════ */
#contact {
  display: flex; align-items: center;
  background:
    radial-gradient(1000px 500px at 85% 110%, rgba(110, 147, 165, 0.18), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 6.5rem 0 4.5rem;
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
body.fp-on .contact-info { opacity: 0; transform: translateX(-46px); }
body.fp-on .contact-form { opacity: 0; transform: translateX(46px); }
body.fp-on #contact.active .contact-info { opacity: 1; transform: none; transition: all 1.1s 0.45s; }
body.fp-on #contact.active .contact-form { opacity: 1; transform: none; transition: all 1.1s 0.65s; }

.info-list { list-style: none; margin-top: 2.4rem; }
.info-list li {
  display: flex; align-items: baseline; gap: 1.4rem;
  padding: 1rem 0; color: rgba(246, 243, 236, 0.8);
  border-bottom: 1px solid rgba(246, 243, 236, 0.1);
  font-size: 0.95rem;
}
.info-key { font-size: 0.75rem; letter-spacing: 0.25em; color: var(--gold-soft); min-width: 74px; }
.info-tel { font-family: var(--serif); font-size: 1.6rem; color: var(--ivory); letter-spacing: 0.08em; }

.contact-form {
  background: rgba(246, 243, 236, 0.045);
  border: 1px solid rgba(246, 243, 236, 0.12);
  backdrop-filter: blur(6px);
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  border-radius: 2px;
}
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-size: 0.75rem; letter-spacing: 0.25em; color: var(--gold-soft); margin-bottom: 0.45rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  background: rgba(9, 26, 40, 0.35);
  border: 1px solid rgba(246, 243, 236, 0.16);
  color: var(--ivory);
  font-family: var(--sans); font-weight: 300;
  font-size: 16px;              /* iOS 입력 포커스 시 자동 확대 방지 (16px 미만이면 줌됨) */
  padding: 0.7rem 1rem;
  border-radius: 2px;
  transition: border 0.3s;
  appearance: none;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--gold); }
.form-row input::placeholder, .form-row textarea::placeholder { color: rgba(246, 243, 236, 0.3); }
.form-row select { cursor: pointer; }
.form-row select option { color: var(--ink); background: var(--ivory); }
.agree {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.82rem; color: rgba(246, 243, 236, 0.65);
  margin: 0.3rem 0 1.2rem; cursor: pointer;
}
.agree input { accent-color: var(--gold); width: 15px; height: 15px; }
.form-done { display: none; margin-top: 1rem; text-align: center; font-size: 0.88rem; color: var(--gold-soft); line-height: 1.7; }
.form-done em { display: block; font-style: normal; font-size: 0.76rem; color: rgba(246,243,236,0.5); }
.contact-form.sent .form-done:not(.err) { display: block; }
.form-done.err { color: #f3a8a0; }
.form-done.err.show { display: block; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* 푸터 (contact 섹션 하단 바) */
.site-footer {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.1rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(246, 243, 236, 0.07);
}
.site-footer p { font-size: 0.74rem; color: rgba(246, 243, 236, 0.4); line-height: 1.9; }
.footer-logo { font-family: var(--serif); color: rgba(246, 243, 236, 0.7); letter-spacing: 0.16em; }
.footer-proto { color: rgba(216, 193, 147, 0.5) !important; }
body:not(.fp-on) .site-footer { position: static; padding: 2rem 1.5rem 6rem; }

/* ═══════════ 반응형 ═══════════ */
@media (max-width: 900px) {
  .step-row { flex-wrap: wrap; }
  .step { flex: 1 1 40%; max-width: none; }
  .step-arrow { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .pc-only { display: none; }
  .gnb { display: none; }
  #siteHeader { background: rgba(9, 26, 40, 0.86); backdrop-filter: blur(14px); }
  .logo { font-size: 1rem; }
  .burger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; z-index: 101; position: relative;
    padding: 6px 2px;
  }
  .burger span { width: 24px; height: 1.5px; background: var(--ivory); transition: all 0.3s; display: block; }
  .burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .dot-nav, .scene-hint, .cursor { display: none !important; }
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .stat-row { grid-template-columns: 1fr; gap: 1.6rem; }
  .stat + .stat { border-left: none; border-top: 1px solid rgba(43, 58, 69, 0.12); padding-top: 1.6rem; }
  .hviewport { min-height: 0; padding: 5rem 0 4rem; }
  .hwrap { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 1rem; }
  .hpanel { scroll-snap-align: center; width: 82vw; }

  /* 큰 제목·eyebrow: 모바일 축소 (줄바꿈·가로 넘침 방지) */
  .hero-title { font-size: clamp(2.4rem, 12vw, 3.1rem); letter-spacing: 0.1em; text-indent: 0.1em; }
  .serif-xl   { font-size: clamp(1.75rem, 7.5vw, 2.2rem); }
  .serif-lg   { font-size: clamp(1.35rem, 5.8vw, 1.75rem); }
  .sl-title   { font-size: clamp(1.65rem, 7vw, 2.05rem); }
  .hero-eyebrow { letter-spacing: 0.22em; text-indent: 0.22em; }
  .eyebrow    { letter-spacing: 0.2em; }
  .lead       { font-size: 0.92rem; }

  /* 상담신청(contact): flex 아이템 수축으로 내용이 찌그러지던 문제 → 세로 배치.
     (display:block 만으로 .container 가 정상 폭 min(1200px,90vw)+좌우여백을 되찾음.
      width:100% 를 주면 좌우 여백이 사라져 내용이 화면 끝에 붙으므로 주지 않는다) */
  #contact { display: block; padding: 5.5rem 0 3rem; }
  .info-list li { flex-wrap: wrap; gap: 0.3rem 1.2rem; }

  /* 확대된 배경 이미지 등이 섹션 밖으로 새는 것 방지 */
  .fp-section { overflow: hidden; }
}

/* ═══════════ 모바일/일반 모드 등장 효과 (IntersectionObserver) ═══════════ */
body:not(.fp-on) .io { opacity: 0; transform: translateY(40px); transition: all 0.95s ease; }
body:not(.fp-on) .io.in { opacity: 1; transform: none; }
