html {
    scroll-behavior: smooth;
}

:root {
    --font-sans-ko: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
    --font-serif-ko: "Nanum Myeongjo", "Noto Serif KR", "AppleMyungjo", "바탕", serif;
    --font-display-en: "Cinzel", "Nanum Myeongjo", serif;
    --font-label-en: "Jost", "Noto Sans KR", sans-serif;
    --ink: #25282a;
    --ink-soft: #6a6e72;
    --gold: #c5a880;
    --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
    /* 통일 타입 스케일 */
    --fs-display: clamp(1.85rem, 3.4vw, 2.9rem);
    --fs-head: clamp(1.45rem, 2.2vw, 2rem);
    --fs-lead: clamp(1rem, 1.25vw, 1.15rem);
    --fs-sub: 0.95rem;
    --fs-label: 0.72rem;
}

/* ── 통일 헤딩 스케일 적용 (원본 규칙 덮어쓰기) ── */
.scene-title,
.lux-open h2,
.section-title { font-size: var(--fs-display) !important; line-height: 1.45 !important; }
.scene-sub { font-size: var(--fs-lead) !important; line-height: 2 !important; }
.scene-label, .section-eyebrow { font-size: var(--fs-label) !important; }
.stat-num { font-size: var(--fs-display) !important; }
.t-head {
    font-family: var(--font-serif-ko);
    font-weight: 400;
    font-size: var(--fs-head);
    letter-spacing: 0.03em;
    line-height: 1.4;
    color: var(--ink);
}

body {
    font-family: var(--font-sans-ko);
    font-weight: 400;
    background: #fff;
    color: var(--ink);
    overflow-x: hidden;
    letter-spacing: 0.01em;
}

h1,
h2,
h3,
.font-serif {
    font-family: var(--font-serif-ko);
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* 라틴 대문자 라벨은 Jost(푸투라 계열) */
.section-eyebrow,
.intro-eyebrow,
.intro-skip,
.hero-scroll,
.scene-label {
    font-family: var(--font-label-en);
}

/* 큰 라틴 워드마크/디스플레이는 Cormorant(트레이전 계열 럭셔리 세리프) */
.font-display,
.lux-word {
    font-family: var(--font-display-en);
}

.font-light {
    font-weight: 400 !important;
}

#header {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-scrolled,
.is-subpage #header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-scrolled .nav-text,
.is-subpage #header .nav-text {
    color: #25282a;
}

.header-scrolled .hamburger-line,
.is-subpage #header .hamburger-line {
    background-color: #25282a;
}

.nav-text {
    position: relative;
    color: #fff;
    transition: color 0.3s ease;
}

.nav-text::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 1px;
    background: #c5a880;
    transition: width 0.3s ease;
}

.nav-text:hover,
.nav-text.is-active {
    color: #c5a880;
}

.nav-text:hover::after,
.nav-text.is-active::after {
    width: 100%;
}

.logo-mark {
    font-family: var(--font-display-en);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid currentColor;
    color: currentColor;
    font-size: 17px;
    line-height: 1;
}

.footer-logo {
    color: #25282a;
}

.hero-bg-zoom {
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.overlay-dark {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.24) 50%, rgba(0, 0, 0, 0.62) 100%);
}

/* Hero slider (crossfade + slow zoom on active slide) */
.hero-slide {
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.4s ease-in-out;
    will-change: opacity;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    animation: slowZoom 9s ease-in-out forwards;
}

/* 히어로 카피 가독성(밝은 이미지 위 흰 텍스트) */
.hero-copy .he-top,
.hero-copy .he-bot,
.hero-copy .lux-word {
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    transition: all 0.35s ease;
    cursor: pointer;
}

.hero-dot.is-active {
    background: #c5a880;
    border-color: #c5a880;
    width: 28px;
}

/* Unit type gallery thumbnails */
.unit-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    opacity: 0.5;
    cursor: pointer;
    border: 2px solid transparent;
    transition: opacity 0.25s ease, border-color 0.25s ease;
}

.unit-thumb:hover {
    opacity: 0.85;
}

.unit-thumb.is-active {
    opacity: 1;
    border-color: #c5a880;
}

/* ── Cinematic intro overlay ── */
body.intro-lock {
    overflow: hidden;
}

.intro-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.intro-veil {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.intro-inner { position: relative; z-index: 2; }
.intro-skip, .intro-bar { z-index: 3; }

.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #0d0d0d;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    transition: opacity 1.2s ease, visibility 1.2s ease;
}

.intro-overlay.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.45em;
    color: #c5a880;
    margin-left: 0.45em;
    opacity: 0;
    transform: translateY(14px);
    animation: introUp 0.9s ease forwards 0.2s;
}

.intro-title {
    font-family: var(--font-display-en);
    font-weight: 300;
    font-size: clamp(2.4rem, 8vw, 6rem);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.8rem 0 0;
    letter-spacing: 0.55em;
    padding-left: 0.55em;
    text-transform: uppercase;
}

.intro-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: introUp 1.8s var(--ease-expo) forwards;
}

.intro-title .intro-space {
    width: 0.5em;
    animation: none;
    opacity: 1;
    transform: none;
}

.intro-title span:nth-child(1) { animation-delay: 0.45s; }
.intro-title span:nth-child(2) { animation-delay: 0.58s; }
.intro-title span:nth-child(4) { animation-delay: 0.78s; }
.intro-title span:nth-child(5) { animation-delay: 0.91s; }
.intro-title span:nth-child(6) { animation-delay: 1.04s; }
.intro-title span:nth-child(7) { animation-delay: 1.17s; }
.intro-title span:nth-child(8) { animation-delay: 1.30s; }

.intro-rule {
    display: block;
    width: 0;
    height: 1px;
    background: rgba(197, 168, 128, 0.85);
    margin: 1.8rem auto 1.4rem;
    animation: introRule 1s ease forwards 1.3s;
}

.intro-copy {
    font-weight: 300;
    letter-spacing: 0.28em;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    margin-left: 0.28em;
    opacity: 0;
    transform: translateY(14px);
    animation: introUp 1s ease forwards 1.6s;
}

.intro-skip {
    position: absolute;
    top: 1.8rem;
    right: 1.8rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    transition: color 0.3s ease;
}

.intro-skip:hover {
    color: #c5a880;
}

.intro-bar {
    position: absolute;
    bottom: 11%;
    width: 150px;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.intro-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: #c5a880;
    animation: introBar 4.8s ease forwards 0.4s;
}

@keyframes introUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes introRule {
    to { width: 64px; }
}

@keyframes introBar {
    to { width: 100%; }
}

/* ── Hero scroll cue ── */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
}

.hero-scroll-line {
    width: 1px;
    height: 46px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
    transform-origin: top center;
    animation: scrollPulse 2.1s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(0.35); opacity: 0.35; }
    50% { transform: scaleY(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .intro-overlay *,
    .hero-scroll-line {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 1.6s var(--ease-expo), transform 1.6s var(--ease-expo);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.section-eyebrow {
    color: #c5a880;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
}

.section-title {
    color: #25282a;
    font-family: var(--font-serif-ko);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.3;
    letter-spacing: 0.02em;
    margin-bottom: 2rem;
}

.section-copy {
    color: #6a6e72;
    font-weight: 400;
    line-height: 1.9;
    max-width: 42rem;
    margin-bottom: 2.5rem;
}

.btn-gold,
.btn-dark,
.btn-line-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 32px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    transition: all 0.3s ease;
}

.btn-gold {
    background: #c5a880;
    color: #25282a;
}

.btn-gold:hover {
    background: #fff;
}

.btn-dark {
    background: #25282a;
    color: #fff;
}

.btn-dark:hover {
    background: #c5a880;
    color: #25282a;
}

.btn-line-white {
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #fff;
}

.btn-line-white:hover {
    border-color: #c5a880;
    color: #c5a880;
}

.text-link {
    display: inline-flex;
    width: fit-content;
    color: #25282a;
    border-bottom: 1px solid #25282a;
    padding-bottom: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    transition: all 0.3s ease;
}

.text-link:hover {
    color: #c5a880;
    border-color: #c5a880;
}

.info-card,
.feature-tile,
.unit-card {
    background: #fff;
    padding: 32px;
    border: 1px solid #e5e0d8;
    min-height: 220px;
    transition: all 0.3s ease;
}

.info-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-card strong,
.feature-tile h2,
.unit-card h2 {
    color: #25282a;
    font-family: var(--font-serif-ko);
    font-size: 1.5rem;
    font-weight: 600;
}

.info-card span:last-child,
.feature-tile p,
.unit-card p {
    color: #6a6e72;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.8;
}

.info-card:hover,
.feature-tile:hover,
.unit-card:hover {
    transform: translateY(-6px);
    border-color: #c5a880;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 4rem;
    background: #e5e0d8;
}

.overview-grid div {
    background: #fff;
    padding: 32px;
}

.overview-grid dt {
    color: #c5a880;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    margin-bottom: 12px;
}

.overview-grid dd {
    color: #25282a;
    font-size: 1.25rem;
    font-family: var(--font-serif-ko);
}

.feature-tile span {
    color: #c5a880;
    letter-spacing: 0.18em;
    font-size: 0.875rem;
}

.feature-tile h2 {
    margin: 22px 0 16px;
}

.check-list {
    display: grid;
    gap: 14px;
    color: #6a6e72;
    font-weight: 400;
}

.check-list li {
    border-bottom: 1px solid #e5e0d8;
    padding-bottom: 14px;
}

.map-placeholder {
    min-height: 460px;
    background: #f6f3ef;
    border: 1px solid #e5e0d8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.map-placeholder span {
    color: #c5a880;
    letter-spacing: 0.24em;
    margin-bottom: 12px;
}

.image-panel {
    min-height: 520px;
    overflow: hidden;
}

.image-panel img,
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spec-list,
.contact-list {
    display: grid;
    gap: 1px;
    background: #e5e0d8;
}

.spec-list div,
.contact-list div {
    background: #fff;
    padding: 22px 0;
    display: grid;
    gap: 6px;
}

.spec-list strong,
.contact-list strong {
    color: #25282a;
}

.spec-list span,
.contact-list span {
    color: #6a6e72;
    font-weight: 400;
}

.unit-card {
    display: grid;
    gap: 20px;
}

.plan-box {
    min-height: 240px;
    background: #f6f3ef;
    border: 1px solid #e5e0d8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c5a880;
    font-family: var(--font-serif-ko);
    font-size: 2rem;
}

.timeline {
    display: grid;
    gap: 1px;
    background: #e5e0d8;
}

.timeline li {
    list-style: none;
    background: #fff;
    padding: 24px 0;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    align-items: start;
}

.timeline span {
    color: #c5a880;
    letter-spacing: 0.14em;
}

.timeline strong {
    display: block;
    color: #25282a;
    font-family: var(--font-serif-ko);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.timeline em {
    color: #6a6e72;
    font-style: normal;
    font-size: 0.9rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 360px;
    text-align: center;
}

.gallery-item img {
    transition: transform 1s ease;
}

.gallery-item span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 26, 0.45);
    color: #fff;
    opacity: 0;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    transition: opacity 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover span {
    opacity: 1;
}

.form-label {
    display: block;
    color: #25282a;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    margin-bottom: 0.5rem;
}

.form-field {
    width: 100%;
    background: #fff;
    border: 1px solid transparent;
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    color: #25282a;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-field:focus {
    border-color: #c5a880;
}

@media (max-width: 900px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .timeline li {
        grid-template-columns: 1fr;
    }
}

/* ════════════════════════════════════════════════
   LA VIE:UM-INSPIRED SCENE SYSTEM
   풀스크린 씬 · 비대칭 편집 타이포 · 느린 expo 모션
   ════════════════════════════════════════════════ */

.scene {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.scene-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.scene-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.6) 100%);
}

.scene-veil-soft {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.scene-inner {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 8rem 1.5rem;
}

/* 작은 라틴 라벨 — 큰 자간 */
.scene-label {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.55em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
    padding-left: 0.55em;
}

/* 큰 명조 시적 헤드라인 */
.scene-title {
    font-family: var(--font-serif-ko);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #fff;
}

.scene-title .accent {
    font-weight: 800;
}

.scene-sub {
    margin-top: 2.4rem;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    line-height: 2.2;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.78);
}

.scene-dark .scene-title { color: var(--ink); }
.scene-dark .scene-sub { color: var(--ink-soft); }

/* 비대칭 편집 배치 (라벨 좌측 / 시적 라인 우측) */
.scene-asym { max-width: 1100px; margin: 0 auto; }
.scene-asym .scene-sub { text-align: right; max-width: 30rem; margin-left: auto; }

/* 큰 라틴 워드마크 — 초대형 자간 */
.lux-word {
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.7em;
    padding-left: 0.7em;
    line-height: 1.1;
}

/* 스태거 리빌: 자식 .reveal-line 순차 등장 */
.reveal-stagger .reveal-line {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity 1.5s var(--ease-expo), transform 1.5s var(--ease-expo);
}
.reveal-stagger.active .reveal-line { opacity: 1; transform: translateY(0); }
.reveal-stagger.active .reveal-line:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.active .reveal-line:nth-child(2) { transition-delay: 0.35s; }
.reveal-stagger.active .reveal-line:nth-child(3) { transition-delay: 0.65s; }
.reveal-stagger.active .reveal-line:nth-child(4) { transition-delay: 0.95s; }
.reveal-stagger.active .reveal-line:nth-child(5) { transition-delay: 1.25s; }

/* 편집형 인덱스 리스트 (EXPLORE) */
.index-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2.2rem 0;
    border-bottom: 1px solid var(--brand-border, #e5e0d8);
    transition: padding 0.6s var(--ease-expo);
}
.index-row:hover { padding-left: 1.2rem; }
.index-num {
    font-family: var(--font-display-en);
    font-size: 1.4rem;
    color: var(--gold);
    width: 3rem;
    flex-shrink: 0;
}
.index-title {
    font-family: var(--font-serif-ko);
    font-weight: 400;
    font-size: var(--fs-head);
    color: var(--ink);
    transition: color 0.4s ease;
    line-height: 1.3;
}
.index-row:hover .index-title { color: var(--gold); }
.index-arrow { color: var(--ink-soft); font-size: 1.3rem; transition: transform 0.4s var(--ease-expo), color 0.4s ease; }
.index-row:hover .index-arrow { transform: translateX(0.6rem); color: var(--gold); }

@media (max-width: 768px) {
    .scene-inner { padding: 5.5rem 1.5rem; }
    .scene { min-height: 90vh; }
    .scene-label { letter-spacing: 0.4em; }
    .lux-word { letter-spacing: 0.45em; padding-left: 0.45em; }
    .intro-title { letter-spacing: 0.32em; padding-left: 0.32em; }
    .scene-asym .scene-sub { text-align: left; margin-left: 0; }
}

/* ── 홈 전용 부드러운 세로 스냅 (proximity = 갇히지 않음) ── */
html.snap-y {
    scroll-snap-type: y proximity;
}
html.snap-y .snap-main .scene {
    scroll-snap-align: start;
}
/* 정적 풀커버 배경에 은은한 줌 */
.scene-bg {
    transition: transform 1.2s var(--ease-expo);
}

/* ── 서브페이지 에디토리얼 정제 (라비움 톤) ── */
.info-card strong, .feature-tile h2, .unit-card h2,
.timeline strong, .overview-grid dd {
    font-weight: 400;
    color: var(--ink);
}
.feature-tile span, .overview-grid dt, .timeline span,
.map-placeholder span {
    font-family: var(--font-label-en);
    letter-spacing: 0.28em;
    text-transform: uppercase;
}
.info-card, .feature-tile, .unit-card { border-color: #e5e0d8; }

/* 페이지 오프닝 스테이트먼트 */
.lux-open { text-align: center; max-width: 52rem; margin: 0 auto; }
.lux-open .scene-label { color: var(--gold); display: inline-block; margin-bottom: 1.6rem; }
.lux-open h2 {
    font-family: var(--font-serif-ko);
    font-weight: 400;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 1.55;
    letter-spacing: 0.03em;
    color: var(--ink);
}
.lux-open p {
    margin-top: 2rem;
    color: var(--ink-soft);
    font-weight: 300;
    line-height: 2.1;
    letter-spacing: 0.03em;
}

/* 풀블리드 카피 밴드 */
.lux-band { position: relative; min-height: 70vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lux-band .lux-band-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.lux-band .lux-band-veil { position: absolute; inset: 0; background: rgba(0,0,0,0.42); }
.lux-band .lux-band-txt { position: relative; z-index: 3; text-align: center; color: #fff; padding: 2rem; }

/* ════════ 2025-26 디자인 트렌드 레이어 ════════ */

/* 1) 필름 그레인 텍스처 (전역, 아주 은은하게) */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 65;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 2) 상단 스크롤 프로그레스 바 */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--gold);
    z-index: 120;
    transition: width 0.08s linear;
}

/* 3) 글래스모피즘 헤더 (스크롤/서브) */
.header-scrolled,
.is-subpage #header {
    background-color: rgba(255, 255, 255, 0.6) !important;
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    backdrop-filter: blur(16px) saturate(130%);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06) !important;
}

/* 4) 인피니트 마퀴 텍스트 띠 */
.marquee {
    overflow: hidden;
    border-top: 1px solid #e5e0d8;
    border-bottom: 1px solid #e5e0d8;
    padding: 1.8rem 0;
    background: #fff;
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}
.marquee-track > div {
    display: flex;
    align-items: center;
}
.marquee-item {
    font-family: var(--font-display-en);
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    padding: 0 2.2rem;
}
.marquee-dot { color: var(--gold); padding: 0 0.4rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 5) 숫자 카운트업 통계 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #e5e0d8;
}
.stat-cell { background: #fff; padding: 3.2rem 1rem; text-align: center; }
.stat-num {
    font-family: var(--font-serif-ko);
    font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1;
    color: var(--ink);
}
.stat-num .suffix { font-size: 0.45em; color: var(--gold); margin-left: 0.12em; vertical-align: super; }
.stat-label {
    margin-top: 0.8rem;
    font-family: var(--font-label-en);
    font-size: 0.68rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
@media (max-width: 768px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* 6) 마이크로 인터랙션 — 버튼 슬라이드 필 */
.btn-gold, .btn-dark, .btn-line-white { position: relative; overflow: hidden; z-index: 0; }
.btn-gold::before, .btn-dark::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--ink); transform: scaleX(0); transform-origin: left;
    transition: transform 0.5s var(--ease-expo);
}
.btn-gold::before { background: var(--ink); }
.btn-dark::before { background: var(--gold); }
.btn-gold:hover::before, .btn-dark:hover::before { transform: scaleX(1); }
.btn-gold:hover { color: #fff; background: var(--gold); }
.btn-dark:hover { color: var(--ink); }

/* ════════ 모션 강화 레이어 ════════ */

/* 풀블리드 배경 켄번스(슬로우 줌) — 패럴럭스는 background-position으로 처리되어 충돌 없음 */
.scene-bg,
.sub-hero .parallax-bg,
.lux-band-bg {
    animation: kenburns 24s ease-in-out infinite alternate;
}
@keyframes kenburns {
    from { transform: scale(1.04); }
    to { transform: scale(1.14); }
}

/* 인덱스/스탯 스태거 등장 */
.reveal .index-row,
.reveal .stat-cell {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease-expo), transform 1s var(--ease-expo), padding 0.6s var(--ease-expo);
}
.reveal.active .index-row,
.reveal.active .stat-cell {
    opacity: 1;
    transform: translateY(0);
}
.reveal.active .index-row:nth-child(1), .reveal.active .stat-cell:nth-child(1) { transition-delay: 0.08s; }
.reveal.active .index-row:nth-child(2), .reveal.active .stat-cell:nth-child(2) { transition-delay: 0.20s; }
.reveal.active .index-row:nth-child(3), .reveal.active .stat-cell:nth-child(3) { transition-delay: 0.32s; }
.reveal.active .index-row:nth-child(4), .reveal.active .stat-cell:nth-child(4) { transition-delay: 0.44s; }

/* 피처 타일/유닛 카드 호버 살짝 떠오르기(부드럽게) */
.feature-tile, .info-card, .unit-card {
    transition: transform 0.55s var(--ease-expo), border-color 0.4s ease, box-shadow 0.55s var(--ease-expo);
}
.feature-tile:hover, .info-card:hover, .unit-card:hover {
    box-shadow: 0 24px 50px -28px rgba(0,0,0,0.25);
}

/* 버튼 마그네틱 이동을 부드럽게 */
.btn-gold, .btn-dark { transition: transform 0.4s var(--ease-expo), color 0.4s ease, background 0.4s ease; }

/* 모션 최소화 사용자 */
@media (prefers-reduced-motion: reduce) {
    .scene-bg, .sub-hero .parallax-bg, .lux-band-bg { animation: none !important; transform: none !important; }
    .reveal .index-row, .reveal .stat-cell { opacity: 1 !important; transform: none !important; }
    .marquee-track { animation: none !important; }
}

/* ════════ 라비움 패널 텍스트 코레오그래피 (.lz) ════════
   패널 진입 시 라인별 라이즈(긴 expo), 이탈 시 리셋 → 재생 */
.lz > * {
    opacity: 0;
    transform: translateY(3rem);
    /* 라비움 정확값: 라인 이동 2.8s expo, 페이드는 살짝 빠르게 */
    transition: opacity 1.4s var(--ease-expo), transform 2.8s var(--ease-expo);
    will-change: opacity, transform;
}
.lz.in > * { opacity: 1; transform: translateY(0); }
.lz > *:nth-child(1) { transition-delay: 0.10s; }
.lz > *:nth-child(2) { transition-delay: 0.36s; }
.lz > *:nth-child(3) { transition-delay: 0.62s; }
.lz > *:nth-child(4) { transition-delay: 0.88s; }
.lz > *:nth-child(5) { transition-delay: 1.14s; }
.lz > *:nth-child(6) { transition-delay: 1.40s; }

/* 워드마크는 컨테이너 이동 대신 글자 단위 라이즈 (라비움 main_tit h1 b) */
.lz .lux-word { opacity: 1 !important; transform: none !important; }
.lz .lux-word b {
    display: inline-block;
    opacity: 0;
    transform: translateY(2.6rem);
    transition: opacity 1.6s var(--ease-expo), transform 2.8s var(--ease-expo);
}
.lz.in .lux-word b { opacity: 1; transform: translateY(0); }
.lz.in .lux-word b:nth-child(1){ transition-delay: 0.45s; }
.lz.in .lux-word b:nth-child(2){ transition-delay: 0.57s; }
.lz.in .lux-word b:nth-child(3){ transition-delay: 0.69s; }
.lz.in .lux-word b:nth-child(4){ transition-delay: 0.81s; }
.lz.in .lux-word b:nth-child(5){ transition-delay: 0.93s; }
.lz.in .lux-word b:nth-child(6){ transition-delay: 1.05s; }
.lz.in .lux-word b:nth-child(7){ transition-delay: 1.17s; }
.lz.in .lux-word b:nth-child(8){ transition-delay: 1.29s; }

@media (prefers-reduced-motion: reduce) {
    .lz > *, .lz .lux-word b { opacity: 1 !important; transform: none !important; }
}

.lux-word b.sp { width: 0.5em; }

/* ── 풀스크린 메뉴 행 등장 ── */
#full-menu .menu-row {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}
#full-menu:not(.opacity-0) .menu-row { opacity: 1; transform: translateY(0); }
#full-menu:not(.opacity-0) .menu-row:nth-child(1) { transition-delay: 0.18s; }
#full-menu:not(.opacity-0) .menu-row:nth-child(2) { transition-delay: 0.30s; }
#full-menu:not(.opacity-0) .menu-row:nth-child(3) { transition-delay: 0.42s; }
#full-menu:not(.opacity-0) .menu-row:nth-child(4) { transition-delay: 0.54s; }

/* ── 콘텐츠 오프너 세로 구분선 (라비움) ── */
.lux-open::after {
    content: "";
    display: block;
    width: 1px;
    height: 46px;
    background: var(--gold);
    opacity: 0.75;
    margin: 2.6rem auto 0;
}

/* ── 상단 메가메뉴 (호버 시 전 카테고리 서브항목 풀폭 패널) ── */
.nav-mega { position: relative; }
.nav-group { position: relative; }

/* 풀폭 반투명 패널 (200vw로 좌우 완전 커버) */
.mega-bg {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 200vw;
    height: 200px;
    /* 윗부분 12px는 투명(호버 유지용) → 흰 배경이 헤더에서 살짝 내려와 시작 */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 12px, #ffffff 12px);
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-expo), visibility 0.4s var(--ease-expo);
    z-index: 55;
}

/* 각 카테고리 아래 서브항목 (투명 배경, 흰 텍스트) */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(12px);
    padding-top: 2.6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s var(--ease-expo), transform 0.45s var(--ease-expo);
    z-index: 56;
}

/* 네비 영역(또는 패널) 호버 시 전부 등장 */
.nav-mega:hover .mega-bg {
    opacity: 1;
    visibility: visible;
}
.nav-mega:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    white-space: nowrap;
    text-align: left;
    text-transform: none;
    transition: color 0.25s ease;
}
.nav-dropdown a:hover,
.nav-dropdown a.is-active { color: var(--gold); }

/* ── 라비움식 메인 히어로 비대칭 등장 (좌상단 좌측슬라이드 / 우하단 우측슬라이드) ── */
.lz .he-top { transform: translateX(-4rem); }
.lz .he-bot { transform: translateX(4rem); }
.lz.in .he-top,
.lz.in .he-bot { transform: translateX(0); }
