/* =============================
   홈 배경 비디오/그라데이션 전용
   ============================= */
html, body {
    min-height: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
#page-home {
    min-height: 100vh !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
}
.home-bg-video {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: cover !important;
    z-index: -2 !important;
    pointer-events: none !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
}
.home-bg-gradient {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -1 !important;
    pointer-events: none !important;
}
@media (max-width: 768px) {
    html, body {
        min-height: 100dvh !important;
        height: auto !important;
        width: 100vw !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
    #page-home {
        min-height: 100dvh !important;
        height: auto !important;
        width: 100vw !important;
        overflow: visible !important;
    }
    .home-bg-video, .home-bg-gradient {
        width: 100vw !important;
        height: 100dvh !important;
        min-width: 100vw !important;
        min-height: 100dvh !important;
        max-width: 100vw !important;
        max-height: 100dvh !important;
    }
}
/* ================================================================
   home.css — 홈 히어로 섹션 전용
   ================================================================ */

/* [공통 레이아웃] */
:root {
    --home-nav-left: clamp(16px, 3vw, 32px);
    --home-nav-width: 50px;
    --home-content-left: calc(var(--home-nav-left) + var(--home-nav-width) + 4px);
}
.title-container { display: flex; flex-direction: column; align-items: center; text-align: center; }
.line-1-wrapper { display: flex; align-items: center; justify-content: center; }
.text-fill { white-space: nowrap; display: inline-block; }

/* 홈 메인 콘텐츠 좌측 정렬 */
#page-home .home-single-view {
    min-height: 100vh !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

#page-home.page-section {
    animation: none !important;
}

#page-home .hero-section {
    width: 100%;
    min-height: calc(100vh - 170px);
    display: flex;
    align-items: center;
}
#page-home .hero-content-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 80px);
    box-sizing: border-box;
}
#page-home .title-container {
    align-items: center;
    text-align: center;
}

#page-home .title-container .text-fill.line-1 {
    text-shadow: none !important;
}

#page-home .home-intro-btn {
    margin-top: 16px;
    width: 300px;
    font-size: 21px;
    padding: 18px 0;
    border-radius: 9999px;
    border: 1.5px solid #ffffff;
    background: transparent;
    color: #ffffff;
    line-height: 1;
    cursor: pointer;
    overflow: hidden;
    opacity: 1;
    transform: none;
    animation: none !important;
    transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

#page-home .home-intro-btn:hover {
    border-color: #c93522;
    background: #c93522;
    color: #ffffff;
}

#page-home .home-intro-btn-track {
    display: block;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

#page-home .home-intro-btn .home-intro-btn-text {
    display: inline-block;
    white-space: nowrap;
    animation: homeBtnMarquee 2.7s linear infinite;
}

@keyframes homeBtnMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

/* ╋╋╋ 홈 타이틀 등장 애니메이션 ╋╋╋ */
#page-home .home-word-lr,
#page-home .home-word-rl {
    display: inline-block;
    opacity: 0;
}

body.home-title-played #home-sec-hero .home-word-lr,
body.home-title-played #home-sec-hero .home-word-rl {
    opacity: 1;
    transform: translateX(0);
}

#home-sec-hero .home-word-lr {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif !important;
    font-weight: 800;
    letter-spacing: 0.008em;
    line-height: 1.1;
    margin-right: -0.08em;
    font-size: 1.18em;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

#home-sec-hero .home-word-rl {
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.18em;
}

#home-sec-hero .main-title,
#home-sec-hero .title-container,
#home-sec-hero .text-fill.line-1 {
    overflow: visible;
}

#home-sec-hero .text-fill.line-1 {
    line-height: 1.12;
    padding-bottom: 0.08em;
}

/* 히어로 섹션 LR 그라데이션 */
#home-sec-hero .home-word-lr {
    background: linear-gradient(90deg, #454a53 0%, #767982 18%, #ffffff 43%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

#home-sec-hero .home-word-rl {
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
}

/* 히어로 애니메이션 (매번 재생) */
body.is-home-active:not(.home-title-played) #home-sec-hero .home-word-lr {
    animation: homeSlideLR 900ms cubic-bezier(0.16, 0.84, 0.32, 1) forwards;
}

body.is-home-active:not(.home-title-played) #home-sec-hero .home-word-rl {
    animation: homeSlideRL 900ms cubic-bezier(0.16, 0.84, 0.32, 1) 120ms forwards;
}

@keyframes homeSlideLR {
    0%   { opacity: 0; transform: translateX(-100vw); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes homeSlideRL {
    0%   { opacity: 0; transform: translateX(100vw); }
    100% { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    #page-home .home-word-lr,
    #page-home .home-word-rl {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

#page-home .btn-group {
    justify-content: flex-start;
}

/* 홈 버튼 스타일 오버라이드 */
#page-home .btn-primary,
#page-home .btn-outline {
    background: #d8422f !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color 0.25s ease, color 0.25s ease !important;
}
#page-home .btn-primary:hover,
#page-home .btn-outline:hover {
    background: #ffffff !important;
    color: #0b0b0b !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* =========================================
   [PC 버전] 769px 이상
   ========================================= */
@media (min-width: 769px) {
    .line-1 { font-size: clamp(50px, 6.8vw, 90px); }
}

/* =========================================
   [모바일 버전] 768px 이하
   ========================================= */
@media (max-width: 768px) {
    :root {
        --home-nav-left: 10px;
        --home-nav-width: 30px;
    }
    .line-1 { order: 0; margin-bottom: 5px; }

    html.is-home-active, body.is-home-active, body.is-home-active #app-container { height: auto !important; overflow-y: auto !important; overflow-x: hidden !important; touch-action: auto !important; }
    #page-home .home-single-view { height: auto !important; min-height: 100dvh !important; }
    #page-home .hero-section {
        min-height: calc(100dvh - 120px) !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    #page-home .hero-content-left { padding: 0 5% 0 var(--home-content-left) !important; }
    #page-home .home-intro-btn { margin-top: 20px; }
    #page-home .home-font-compare {
        max-width: 92vw;
        padding: 12px;
    }
    #page-home .home-font-option {
        font-size: 12px;
        padding: 6px 10px;
    }
    #page-home .btn-group { align-items: flex-start !important; }
    body.is-home-active .page-footer { position: relative !important; }
    .home-sec-ai-bg { width: 70%; max-width: 70%; right: 2%; }
}

/* 헤더/푸터 홈 활성화 시 */
body.is-home-active #gnb { background: transparent !important; border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important; }
body.is-home-active #app-container { scroll-snap-type: none !important; }

/* ================================================================
   [홈 풀페이지 섹션 — 히어로만]
   ================================================================ */
.home-full-section {
    min-height: 100vh !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    position: relative;
    overflow: hidden;
}
/* [공통 레이아웃] */
:root {
    --home-nav-left: clamp(16px, 3vw, 32px);
    --home-nav-width: 50px;
    --home-content-left: calc(var(--home-nav-left) + var(--home-nav-width) + 4px);
}
.title-container { display: flex; flex-direction: column; align-items: center; text-align: center; }
.line-1-wrapper { display: flex; align-items: center; justify-content: center; }
.text-fill { white-space: nowrap; display: inline-block; }

/* 홈 메인 콘텐츠 좌측 정렬 */
#page-home .home-single-view {
    min-height: 100vh !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

#page-home.page-section {
    animation: none !important;
}

#page-home .hero-section {
    width: 100%;
    min-height: calc(100vh - 170px);
    display: flex;
    align-items: center;
}
#page-home .hero-content-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 80px);
    box-sizing: border-box;
}
#page-home .title-container {
    align-items: center;
    text-align: center;
}

#page-home .title-container .text-fill.line-1 {
    text-shadow: none !important;
}

#page-home .home-intro-btn {
    margin-top: 16px;
    width: 300px;
    font-size: 21px;
    padding: 18px 0;
    border-radius: 9999px;
    border: 1.5px solid #ffffff;
    background: transparent;
    color: #ffffff;
    line-height: 1;
    cursor: pointer;
    overflow: hidden;
    opacity: 1;
    transform: none;
    animation: none !important;
    transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

#page-home .home-intro-btn:hover {
    border-color: #c93522;
    background: #c93522;
    color: #ffffff;
}

#page-home .home-intro-btn-track {
    display: block;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

#page-home .home-intro-btn .home-intro-btn-text {
    display: inline-block;
    white-space: nowrap;
    animation: homeBtnMarquee 2.7s linear infinite;
}

@keyframes homeBtnMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

/* ╋╋╋ 홈 타이틀 등장 애니메이션 ╋╋╋ */
#page-home .home-word-lr,
#page-home .home-word-rl {
    display: inline-block;
    opacity: 0;
}

body.home-title-played #home-sec-hero .home-word-lr,
body.home-title-played #home-sec-hero .home-word-rl {
    opacity: 1;
    transform: translateX(0);
}

#home-sec-hero .home-word-lr {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif !important;
    font-weight: 800;
    letter-spacing: 0.008em;
    line-height: 1.1;
    margin-right: -0.08em;
    font-size: 1.18em;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

#home-sec-hero .home-word-rl {
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.18em;
}

#home-sec-hero .main-title,
#home-sec-hero .title-container,
#home-sec-hero .text-fill.line-1 {
    overflow: visible;
}

#home-sec-hero .text-fill.line-1 {
    line-height: 1.12;
    padding-bottom: 0.08em;
}

/* 히어로 섹션 LR 그라데이션 */
#home-sec-hero .home-word-lr {
    background: linear-gradient(90deg, #454a53 0%, #767982 18%, #ffffff 43%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

#home-sec-hero .home-word-rl {
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
}

/* 히어로 애니메이션 (매번 재생) */
body.is-home-active:not(.home-title-played) #home-sec-hero .home-word-lr {
    animation: homeSlideLR 900ms cubic-bezier(0.16, 0.84, 0.32, 1) forwards;
}

body.is-home-active:not(.home-title-played) #home-sec-hero .home-word-rl {
    animation: homeSlideRL 900ms cubic-bezier(0.16, 0.84, 0.32, 1) 120ms forwards;
}

@keyframes homeSlideLR {
    0%   { opacity: 0; transform: translateX(-100vw); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes homeSlideRL {
    0%   { opacity: 0; transform: translateX(100vw); }
    100% { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    #page-home .home-word-lr,
    #page-home .home-word-rl {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

#page-home .btn-group {
    justify-content: flex-start;
}

/* 홈 버튼 스타일 오버라이드 */
#page-home .btn-primary,
#page-home .btn-outline {
    background: #d8422f !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color 0.25s ease, color 0.25s ease !important;
}
#page-home .btn-primary:hover,
#page-home .btn-outline:hover {
    background: #ffffff !important;
    color: #0b0b0b !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* =========================================
   [PC 버전] 769px 이상 - 요청사항 반영
   ========================================= */
@media (min-width: 769px) {
    .line-1 { font-size: clamp(50px, 6.8vw, 90px); }
}

/* =========================================
   [모바일 버전] 768px 이하
   ========================================= */
@media (max-width: 768px) {
    :root {
        --home-nav-left: 10px;
        --home-nav-width: 30px;
    }
    .line-1 { order: 0; margin-bottom: 5px; }

    html.is-home-active, body.is-home-active, body.is-home-active #app-container { height: auto !important; overflow-y: auto !important; overflow-x: hidden !important; touch-action: auto !important; }
    #page-home .home-single-view { height: auto !important; min-height: 100dvh !important; }
    #page-home .hero-section {
        min-height: calc(100dvh - 120px) !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    #page-home .hero-content-left { padding: 0 5% 0 var(--home-content-left) !important; }
    #page-home .home-intro-btn { margin-top: 20px; }
    #page-home .home-font-compare {
        max-width: 92vw;
        padding: 12px;
    }
    #page-home .home-font-option {
        font-size: 12px;
        padding: 6px 10px;
    }
    #page-home .btn-group { align-items: flex-start !important; }
    body.is-home-active .page-footer { position: relative !important; }
    .home-sec-ai-bg { width: 70%; max-width: 70%; right: 2%; }
}

/* 헤더/푸터도 홈 활성화 시 화이트 유지 */
body.is-home-active #gnb { background: transparent !important; border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important; }
body.is-home-active .page-footer { position: relative !important; min-height: 200px; }
body.is-home-active #app-container { scroll-snap-type: none !important; }

/* ================================================================
   [홈 좌측 내비게이션]
   ================================================================ */
.home-side-nav {
    position: fixed;
    left: var(--home-nav-left);
    top: 50%;
    transform: translateY(-50%);
    z-index: 100010;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.is-home-active .home-side-nav {
    opacity: 1;
}

body:not(.is-home-active) .home-side-nav {
    opacity: 0;
    pointer-events: none;
}

.home-side-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.home-nav-link {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 16px);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    padding: clamp(6px, 0.7vh, 10px) 0;
}

.home-nav-bar {
    display: block;
    width: clamp(14px, 1.4vw, 20px);
    height: clamp(4px, 0.4vw, 6px);
    background: linear-gradient(90deg, #555960 0%, #8a8d94 40%, rgba(255,255,255,0.35) 100%);
    border-radius: 1px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.4s ease, box-shadow 0.4s ease;
}

.home-nav-link:hover .home-nav-bar {
    width: clamp(20px, 2vw, 28px);
    background: linear-gradient(90deg, #8a8d94 0%, #ffffff 100%);
}

.home-nav-link.active .home-nav-bar {
    width: clamp(24px, 2.5vw, 36px);
    background: linear-gradient(90deg, #8a8d94 0%, #ffffff 60%);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.home-nav-label {
    font-size: clamp(12px, 1.1vw, 17px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
    transform: translateX(-4px);
    opacity: 0;
}

.home-nav-link:hover .home-nav-label {
    color: rgba(255, 255, 255, 0.6);
    transform: translateX(0);
    opacity: 1;
}

.home-nav-link.active .home-nav-label {
    color: #ffffff;
    transform: translateX(0);
    opacity: 1;
    font-weight: 500;
}

/* ================================================================
   [홈 풀페이지 섹션]
   ================================================================ */
.home-full-section {
    min-height: 100vh !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-end !important;
    position: relative;
    overflow: hidden;
}

.home-full-section#home-sec-hero {
    justify-content: center !important;
}

.home-full-section--center {
    justify-content: center !important;
}

/* ---- AI 섹션 배경 이미지 ---- */
.home-sec-ai-bg {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%) translateY(120px);
    width: clamp(280px, 45vw, 50%);
    max-width: 50%;
    height: auto;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1.4s cubic-bezier(0.16, 0.84, 0.32, 1), transform 1.4s cubic-bezier(0.16, 0.84, 0.32, 1);
}

.home-sec-ai-bg img {
    width: 95%;
    height: auto;
    object-fit: contain;
}

#home-sec-ai.home-sec-visible .home-sec-ai-bg {
    opacity: 1;
    transform: translateY(-50%) translateY(0);
}

/* ---- 여정 섹션 배경 이미지 ---- */
#home-sec-journey .home-sec-journey-bg {
    position: absolute;
    left: auto;
    right: auto;
    left: 32%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%) translateY(120px);
    width: clamp(220px, 35vw, 42%);
    max-width: 42%;
    height: auto;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1.4s cubic-bezier(0.16, 0.84, 0.32, 1), transform 1.4s cubic-bezier(0.16, 0.84, 0.32, 1);
}

#home-sec-journey .home-sec-journey-bg img {
    width: 95%;
    height: auto;
    object-fit: contain;
}

#home-sec-journey.home-sec-visible .home-sec-journey-bg {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

#home-sec-journey .home-section-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 50%;
    margin-left: auto;
    margin-right: 0;
    padding-right: clamp(24px, 5vw, 80px);
}

#home-sec-journey .home-more-btn {
    align-self: flex-start;
}

/* ---- 함께 걷기 섹션 배경 이미지 ---- */
#home-sec-together .home-sec-together-bg {
    position: absolute;
    right: 12%;
    top: 50%;
    left: auto;
    bottom: auto;
    transform: translateY(-50%) translateY(120px);
    width: clamp(200px, 31vw, 38%);
    max-width: 38%;
    height: auto;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1.4s cubic-bezier(0.16, 0.84, 0.32, 1), transform 1.4s cubic-bezier(0.16, 0.84, 0.32, 1);
}

#home-sec-together .home-sec-together-bg img {
    width: 95%;
    height: auto;
    object-fit: contain;
}

#home-sec-together.home-sec-visible .home-sec-together-bg {
    opacity: 1;
    transform: translateY(-50%) translateY(0);
}

/* ---- 마지막 섹션 이후 푸터 표시 ---- */
#page-home {
    padding-bottom: 0;
}
#page-home {
    padding-bottom: 0;
}

/* ---- shape 아이콘 ---- */
.home-shape-wrap {
    margin-bottom: 18px;
}

.home-shape-icon {
    width: clamp(44px, 5vw, 68px);
    height: auto;
    display: block;
}

/* ---- AI 섹션 타이핑 효과 ---- */
.home-typing-title {
    display: flex;
    align-items: baseline;
}

.home-typing-title .home-typing-text {
    background: linear-gradient(90deg, #454a53 0%, #767982 8%, #ffffff 22%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.home-typing-cursor {
    display: inline-block;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-weight: 200;
    margin-left: 6px;
    animation: typingBlink 1s step-end infinite;
    opacity: 0;
}

.home-typing-cursor.blinking {
    opacity: 1;
}

@keyframes typingBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

#home-sec-ai .home-section-inner {
    padding-top: 12vh;
}

.home-section-inner {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 80px) 0 var(--home-content-left);
    padding-bottom: clamp(120px, 15vh, 180px);
    box-sizing: border-box;
}

/* 섹션별 왼쪽 오프셋 */
#home-sec-ai .home-section-inner {
    padding-left: calc(var(--home-content-left) - 40px) !important;
}
#home-sec-together .home-section-inner {
    padding-left: calc(var(--home-content-left) - 56px) !important;
}

.home-section-title {
    font-size: clamp(28px, 5vw, 72px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 28px;
    letter-spacing: -1px;
    word-break: keep-all;
}

.home-section-desc {
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
}

/* ---- 더보기 버튼 ---- */
.home-more-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    min-width: 160px;
    height: 48px;
    padding: 0 32px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
    text-decoration: none;
    transition: color 0.25s ease;
    overflow: hidden;
}

.home-more-btn::before,
.home-more-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 80%;
    filter: blur(8px);
    opacity: 0.4;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.home-more-btn::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 100%);
}

.home-more-btn::after {
    right: 0;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 100%);
}

.home-more-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.home-more-btn:hover::before,
.home-more-btn:hover::after {
    opacity: 1;
}

/* ================================================================
   [모바일 반응형 - 홈 내비게이션]
   ================================================================ */
@media (max-width: 1200px) {
    .home-nav-label {
        display: none;
    }
}

@media (max-width: 768px) {
    .home-side-nav {
        left: 10px;
    }
    .home-nav-label {
        display: none;
    }
    .home-side-nav ul {
        gap: 18px;
    }
    .home-side-nav ul::before {
        left: 3.5px;
    }
    .home-section-inner {
        padding: 0 5% 0 var(--home-content-left);
    }
    .home-full-section {
        height: 100dvh !important;
        min-height: 100dvh !important;
    }
}

/* ================================================================
   [홈 히어로 러닝 상단 이미지 + 동시 등장]
   ================================================================ */
#home-sec-hero .text-fill.line-1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#home-sec-hero .home-word-lr-wrap {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(4px, 0.5vw, 12px);
    opacity: 0;
    filter:
        drop-shadow(0 0 8px #090b10)
        drop-shadow(0 0 20px rgba(9, 11, 16, 0.75))
        drop-shadow(0 0 40px rgba(9, 11, 16, 0.4));
}

#home-sec-hero .home-shape-lr {
    display: block;
    width: clamp(54px, 6vw, 100px);
    height: auto;
    align-self: center;
    pointer-events: none;
    user-select: none;
}

body.home-title-played #home-sec-hero .home-word-lr-wrap {
    opacity: 1;
    transform: translateX(0);
}

body.is-home-active:not(.home-title-played) #home-sec-hero .home-word-lr-wrap {
    animation: homeSlideLR 900ms cubic-bezier(0.16, 0.84, 0.32, 1) forwards;
}

/* 러닝 텍스트는 래퍼와 함께 움직이고, 체인은 기존 RL 애니메이션 유지 */
body.is-home-active:not(.home-title-played) #home-sec-hero .home-word-lr-wrap .home-word-lr,
body.home-title-played #home-sec-hero .home-word-lr-wrap .home-word-lr {
    opacity: 1;
    transform: none;
    animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
    #home-sec-hero .home-word-lr-wrap {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* 홈 배경 비디오 및 하단 그라데이션 */
.home-bg-video {
    position: fixed;
    z-index: -1;
    top: 50%;
    left: 50%;
    min-width: 100vw;
    min-height: 100vh;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.7;
    pointer-events: none;
    background: #000;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 65%, rgba(0,0,0,0.4) 88%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 65%, rgba(0,0,0,0.4) 88%, transparent 100%);
}
.home-bg-gradient {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 45vh;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 70%, rgba(0,0,0,0.85) 100%);
}
@media (max-width: 768px) {
    .home-bg-gradient { height: 60vw; }
}

/* 헤더 스크롤 상태 (홈) */
body.is-home-active #gnb {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid transparent !important;
    transition: background-color 0.35s ease, border-bottom-color 0.35s ease, backdrop-filter 0.35s ease !important;
}
body.is-home-active.home-scrolled #gnb {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}
