/* Custom CSS for Luxury Interior Design Index Page */
:root {
    --bg-color: #0e0e0e;
    --text-color: #ffffff;
    --accent-color: #c41e3a;
    /* Deep Red */
    --secondary-text: #a0a0a0;
    --font-primary: 'Noto Sans KR', sans-serif;
    /* 본고딕으로 변경 */
    --font-serif: 'Noto Sans KR', sans-serif;
    /* 명조체도 나눔고딕으로 통일 (요청사항) */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 고정 연락처 박스 */
.fixed-contact-box {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #e73434;
    color: #fff;
    padding: 15px 20px;
    z-index: 9999;
    border-radius: 8px 0 0 8px;
    box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.3);
}

.fixed-contact-box .contact-title {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.fixed-contact-box .contact-line {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.fixed-contact-box p {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.fixed-contact-box .contact-tel {
    margin-bottom: 4px;
}

.fixed-contact-box .contact-email {
    font-size: 12px;
}

/* 모바일에서 고정 연락처 박스 숨김 */
@media (max-width: 768px) {
    .fixed-contact-box {
        display: none;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Lenis Smooth Scroll - PC only */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* Mobile: 네이티브 스크롤만 사용 - 스크롤바 중복 방지 */
@media (max-width: 1024px) {

    html,
    body {
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    #wrapper,
    main {
        height: auto !important;
        overflow: visible !important;
        position: relative !important;
    }

    /* GSAP pin-spacer 비활성화 */
    .pin-spacer {
        display: contents !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 모든 섹션 pinning 해제 */
    section {
        position: relative !important;
        transform: none !important;
    }
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    font-weight: 100;
    /* 100 (Thin) 적용 */
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
.serif {
    font-family: var(--font-primary);
    font-weight: 100;
}

/* Layout Containers */
.container {
    max-width: 1400px;
    /* margin: 0 auto; */
    padding: 0 4%;
}

/* Main page sections only (not board skins) */
.main-content section,
#container1,
#container2,
#container3,
#container4,
#container5,
#container6,
#container7 {
    padding: 150px 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header/Nav - Specific to main navigation header */
.gon-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 4%;
    /* 패딩 미세 조정 */
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(14, 14, 14, 0), transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    /* 로고와 텍스트 사이 간격 */
}

.header-logo-img {
    height: 54x;
    /* 로고 크기 조절 */
    width: auto;
    object-fit: contain;
}

.header-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.header-brand {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    /* 브랜드명은 조금 더 선명하게 400 */
    color: #fff;
    line-height: 1.1;
    letter-spacing: 0.3;
}

.header-slogan {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.6rem;
    font-weight: 100;
    /* 슬로건은 Thin */
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
    margin-top: 3px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5m;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    transition: var(--transition-smooth);
}

nav a:hover {
    color: var(--accent-color);
    font-weight: 400;
}

/* Submenu Styles */
nav ul li.has-submenu {
    position: relative;
    padding-bottom: 20px;
    /* Bridge for hover area */
    margin-bottom: -20px;
    /* Compensate padding */
}

nav ul.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #c41e3a;
    /* Red background */
    width: 140px;
    /* Fixed width or min-width */
    flex-direction: column;
    gap: 0;
    padding: 5px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 4px;
    /* Optional rounded corners */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

nav ul li.has-submenu:hover ul.submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

nav ul.submenu li {
    width: 100%;
    margin: 0;
    padding: 0;
}

nav ul.submenu li a {
    display: block;
    padding: 6px 20px;
    color: #ffffff !important;
    /* White text */
    font-size: 14px;
    /* Smaller font for submenu */
    text-align: center;
    white-space: nowrap;
    text-transform: none;
    /* Keep original case or uppercase as desired */
    font-weight: 300;
}

nav ul.submenu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    /* Subtle white hover overlay */
    color: #ffffff !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--secondary-text);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 30px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 40px;
}

.image-reveal {
    overflow: hidden;
    position: relative;
}

.image-reveal img {
    width: 100%;
    height: auto;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-reveal:hover img {
    transform: scale(1.05);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-info {
    position: absolute;
    bottom: 40px;
    left: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-info {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    padding: 100px 4% 50px;
    border-top: 1px solid #333;
    text-align: center;
}

.footer-content h2 {
    font-size: 4rem;
    margin-bottom: 50px;
}

.contact-link {
    font-size: 1.5rem;
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 5px;
}

/* AOS Tweaks */
[data-aos="fade-up"] {
    transform: translateY(30px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

/* Typography Refinement */
h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

.sub-copy {
    font-size: 1.1rem;
    color: var(--secondary-text);
    max-width: 800px;
    margin: 0 auto 2rem;
    word-break: keep-all;
}

/* Hero Section Updates */
.hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* Portfolio Section & ULTIMATE Split Layout */
.portfolio-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 0;
    padding-bottom: 0;
    /* 세 번째 컨테이너와 이어지도록 여백 제거 */
    background-color: #000;
    overflow: hidden;
}

/* Vertical Line Decoration */
/* .vertical-line-decoration {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 80px;
    background-color: #555;
    z-index: 5;
} */

.portfolio-header {
    position: relative;
    text-align: center;
    padding: 50px 5% 120px;
}

.portfolio-header h2 {
    color: #fff;
    margin-bottom: 20px;
}

.portfolio-header h2 .works-title {
    font-size: 45px;
    display: block;
}

.portfolio-header h2 .works-subtitle {
    font-size: 24px;
    display: block;
}

.portfolio-header .desc {
    font-size: 1rem;
    color: #888;
    white-space: nowrap;
    margin: 0 auto;
}

.portfolio-wrapper {
    display: flex;
    width: 100%;
    height: auto;
    /* Auto height to reduce gap */
    align-items: center;
}

/* Left Column: Static Content */
.portfolio-static {
    width: 40%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}

.portfolio-static h2 {
    font-size: 2rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.portfolio-static .desc {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 60px;
    max-width: 400px;
}

.ultimate-wrapper {
    position: relative;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 30px;
}

/* Line Decoration */
.ultimate-line {
    width: 100%;
    height: 1px;
    background-color: #555;
    margin-top: 0;
    margin-bottom: 15px;
}

.ultimate-title {
    font-family: 'Noto Sans KR', sans-serif;
    /* Clean sans-serif for the logo-like text */
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 100;
    line-height: 1;
    letter-spacing: -2px;
    margin: 0;
}

.char-u {
    color: #ff4c4c;
}

.char-ltimate {
    color: rgba(255, 255, 255, 0.7);
}

.ultimate-sub {
    font-size: 11px;
    color: #666;
    margin-top: 0px;
    letter-spacing: 0.5px;
    text-align: right;
}

/* Right Column: Horizontal Scroll Gallery */
.portfolio-scroll {
    width: 60%;
    height: 35vh;
    /* Match gallery-item height */
    display: flex;
    align-items: center;
    overflow: visible;
    /* Allow content to extend beyond container */
}

.horizontal-gallery {
    display: flex;
    flex-wrap: nowrap;
    width: fit-content;
    padding-left: 10.5vw;
    /* Center first image in the scroll area */
}

.gallery-item {
    width: 500px;
    /* Landscape orientation */
    height: 35vh;
    flex-shrink: 0;
    margin-right: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #1a1a1a;
}

.gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Info (Minimalist for this layout) */
.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    opacity: 0;
    /* Hidden by default for cleaner look, show on hover maybe? Or keep visible */
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-item:hover .gallery-info {
    opacity: 1;
}

.gallery-info h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
}

.gallery-info p {
    font-size: 0.8rem;
    color: #ccc;
}

/* Responsive */
@media (max-width: 1024px) {
    .portfolio-wrapper {
        flex-direction: column;
        height: auto;
        padding: 100px 0;
    }

    .portfolio-static {
        width: 100%;
        margin-bottom: 50px;
        text-align: center;
        align-items: center;
    }

    .ultimate-line {
        display: none;
        /* Hide line on mobile */
    }

    .portfolio-scroll {
        width: 100%;
        height: 60vh;
    }

    .gallery-item {
        text-align: center;
        /* padding: 150px 0; */
    }

    /* Mobile: Show only 3 gallery items */
    .gallery-item:nth-child(n+4) {
        display: none !important;
    }

    /* Line Split Animation Styles */
    .line-wrapper {
        overflow: hidden;
    }

    .line-inner {
        display: inline-block;
        will-change: transform;
    }

    /* GnuBoard Layout Overrides */
    #hd,
    #ft,
    #aside,
    #container_title,
    .sound_only {
        display: none !important;
    }

    #wrapper,
    #container_wr,
    #container {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Ensure our custom header stays on top */
    /* header z-index removed to allow mobile menu overlay to work properly */
    /* header {
        z-index: 10001 !important;
    } */

    /* Responsive */
    @media (max-width: 1024px) {
        .bento-grid {
            grid-template-columns: repeat(2, 1fr);
            grid-template-rows: auto;
        }

        .bento-item.large,
        .bento-item.tall {
            grid-column: span 1;
            grid-row: span 1;
            aspect-ratio: 1;
        }
    }

    @media (max-width: 768px) {
        .bento-grid {
            grid-template-columns: 1fr;
        }
    }

    /* FNC Slider Style */
    .demo-cont {
        overflow: hidden;
        position: relative;
        height: 100vh;
        perspective: 1500px;
        background: #000;

    }

    .demo-cont__credits {
        position: absolute;
        right: 20px;
        bottom: 20px;
        color: #fff;
        z-index: 100;

    }

    .fnc-slider {
        overflow: hidden;
        box-sizing: border-box;
        position: relative;
        height: 100%;

    }

    .fnc-slider__slides {
        position: relative;
        height: 100%;
        transition: transform 1s 0.66s;

    }

    .fnc-slide {
        overflow: hidden;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        /* background-size:  cover;
         removed as we use inner */
        transition: transform 1s 0.66s;

    }

    .fnc-slide.m--blend-green .fnc-slide__inner {
        background-color: #6dcf88;
        /* Fallback */
    }

    .fnc-slide.m--blend-dark .fnc-slide__inner {
        background-color: #2b2b2b;
        /* Fallback */
    }

    .fnc-slide.m--blend-green .fnc-slide__mask-inner {
        background-color: #6dcf88;

    }

    .fnc-slide.m--blend-dark .fnc-slide__mask-inner {
        background-color: #2b2b2b;

    }

    .fnc-slide__inner {
        position: relative;
        height: 100%;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        transform: translate3d(0, 0, 0);

    }

    .fnc-slide__mask {
        overflow: hidden;
        z-index: 1;
        position: absolute;
        right: 60%;
        top: 15%;
        width: 50.25vh;
        height: 67vh;
        margin-right: -90px;
        /* clip-path:  polygon(0 0,  100% 0,  100% 100%,  0 100%,  0 0,  6vh 0,  6vh 61vh,  44vh 61vh,  44vh 6vh,  6vh 6vh);
         */
        /* Simplified clip-path for compatibility/example */
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0, 6vh 0, 6vh 61vh, 44vh 61vh, 44vh 6vh, 6vh 6vh);
        transform-origin: 50% 0;
        transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    }

    .fnc-slide__mask-inner {
        z-index: -1;
        position: absolute;
        left: 50%;
        top: 50%;
        width: 100vw;
        height: 100vh;
        margin-left: -50vw;
        margin-top: -50vh;
        background-size: cover;
        background-position: center top;
        transform-origin: 50% 0;
        transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    }

    .fnc-slide__content {
        z-index: 2;
        position: absolute;
        left: 40%;
        top: 40%;

    }

    .fnc-slide__heading {
        margin-bottom: 20px;
        text-transform: uppercase;

    }

    .fnc-slide__heading-line {
        overflow: hidden;
        position: relative;
        padding-right: 20px;
        font-size: 80px;
        color: #fff;
        word-spacing: 10px;

    }

    .fnc-slide__heading-line:nth-child(2) {
        margin-left: 30px;

    }

    .fnc-slide__heading-line span {
        display: block;

    }

    .fnc-slide__action-btn {
        position: relative;
        margin-left: 200px;
        padding: 25px 60px;
        font-size: 20px;
        line-height: 1;
        color: #fff;
        border: none;
        text-transform: uppercase;
        background: transparent;
        cursor: pointer;
        text-align: center;
        outline: none;

    }

    .fnc-slide__action-btn span {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        border: 2px solid #fff;
        border-top: none;
        border-bottom: none;

    }

    .fnc-slide__action-btn span:before,
    .fnc-slide__action-btn span:after {
        content: "";
        position: absolute;
        width: 10%;
        height: 2px;
        background: #fff;
        top: 0;
        transition: width 0.3s;

    }

    .fnc-slide__action-btn span:before {
        left: 0;

    }

    .fnc-slide__action-btn span:after {
        right: 0;

    }

    .fnc-slide__action-btn:hover span:before,
    .fnc-slide__action-btn:hover span:after {
        width: 100%;

    }

    /* Navigation */
    .fnc-nav {
        z-index: 5;
        position: absolute;
        right: 0;
        bottom: 0;

    }

    .fnc-nav__bgs {
        z-index: -1;
        overflow: hidden;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;

    }

    .fnc-nav__bg {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        transition: transform 1s 0.66s;
        transform-origin: 50% 0;

    }

    .fnc-nav__bg.m--navbg-green {
        background-color: #6dcf88;

    }

    .fnc-nav__bg.m--navbg-dark {
        background-color: #2b2b2b;

    }

    .fnc-nav__controls {
        font-size: 0;

    }

    .fnc-nav__control {
        overflow: hidden;
        position: relative;
        display: inline-block;
        vertical-align: top;
        width: 100px;
        height: 50px;
        font-size: 14px;
        color: #fff;
        text-transform: uppercase;
        background: transparent;
        border: none;
        outline: none;
        cursor: pointer;
        transition: background-color 0.5s;

    }

    .fnc-nav__control.m--active-control {
        background-color: transparent;
        /* Updated */
    }

    .fnc-nav__control-progress {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 2px;
        background-color: #fff;
        transform-origin: 0 50%;
        transform: scaleX(0);
        transition: transform 0.3s;

    }

    .fnc-nav__control.m--active-control .fnc-nav__control-progress {
        transform: scaleX(1);
        transition: transform 1s 0.66s;

    }

    /* Animations State */
    .fnc-slide.m--before-sliding {
        z-index: 2;
        transform: translate3d(100%, 0, 0);

    }

    .fnc-slide.m--active-slide {
        z-index: 1;
        transition: transform 1s 0.66s;
        transform: translate3d(0, 0, 0);

    }

    /* 내부 inner/mask-inner 전환 로직은 fnc-slider.css의 원본 정의를 사용합니다.
       (이전에 이 블록에서 transition: 0s + 반대 방향 transform으로 덮어쓰는 바람에
        모바일에서 슬라이드 outer가 들어오는 동안 이미지가 화면 밖에 머물러
        검은 빈 화면 → 뒤늦게 사진이 밀려 들어오는 현상이 발생했습니다.) */



    /* Vertical Line Decoration */
    .vertical-line-decoration {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 5px;
        /* Debug width */
        height: 70px;
        /* Increased height */
        background-color: #fff;
        /* Fully white */
        opacity: 1;
        /* Full opacity */
        z-index: 9999;
    }

    /* Footer Color Override - Ensure all footer text is white */
    #footer,
    #footer * {
        color: #fff !important;
    }

    #footer ul li {
        color: #fff !important;
    }

    #footer .footer-section ul li {
        color: #888 !important;
    }

    #footer h3 {
        color: #fff !important;
    }

    /* Mobile Menu Styles - Added to fix broken hamburger button */
    .mobile-menu-btn {
        display: none;
        /* Controlled by media query in head1.php */
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 10002;
        /* Higher than header */
    }

    .mobile-menu-btn span {
        width: 100%;
        height: 3px;
        background-color: #fff;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Mobile Nav Overlay */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        z-index: 10005;
        /* Highest z-index */
        display: none;
        /* Hidden by default */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-nav-overlay.active {
        display: flex;
        /* Override display none when active? No, handled by opacity usually, but here we need display flex */
        opacity: 1;
        visibility: visible;
    }

    /* Override head1.php display none !important if active */
    @media (max-width: 768px) {
        .gon-header-sub .mobile-nav-overlay.active {
            display: flex !important;
        }
    }

    .mobile-nav-overlay .close-btn {
        position: absolute;
        top: 30px;
        right: 30px;
        background: none;
        border: none;
        color: #fff;
        font-size: 40px;
        cursor: pointer;
    }

    /* 메인 메뉴 리스트만 적용 (서브메뉴 제외) */
    .mobile-nav-overlay > ul,
    .mobile-nav-overlay .mobile-nav-list {
        list-style: none;
        padding: 0 95px 0px 0px;
        text-align: right;
        display: flex;
        flex-direction: column;
        gap: 36px;
        width: 100%;
    }

    .mobile-nav-overlay > ul > li > a,
    .mobile-nav-list > li > a,
    .mobile-nav-list > li > .mobile-menu-link {
        color: #fff;
        font-size: 20px;
        text-decoration: none;
        text-transform: uppercase;
        font-weight: 300;
        letter-spacing: 2px;
        padding: 8px 20px;
        display: block;
        transition: color 0.3s;
    }

    .mobile-nav-overlay ul li a:hover {
        color: #c41e3a;
        /* Accent color */
    }

    /* Prevent body scroll when menu is open */
    body.no-scroll {
        overflow: hidden;
    }

    /* Mobile FNC Slider Typography Optimization */
    @media (max-width: 768px) {
        .fnc-slide__heading-line {
            font-size: 28px !important;
            /* Reduced from 80px */
            line-height: 1.2;
            padding-right: 0;
            word-break: keep-all;
            text-align: left !important;
        }

        .fnc-slide__content {
            left: 20px !important;
            top: 50% !important;
            transform: translateY(-50%);
            width: calc(100% - 40px);
            text-align: left !important;
        }

        .fnc-slide__heading {
            text-align: left !important;
        }

        .fnc-slide__heading-line:nth-child(2) {
            margin-left: 0 !important;
            margin-top: 10px;
            font-size: 12px !important;
            font-weight: 300;
            line-height: 1.4;
            text-align: left !important;
            word-spacing: 0 !important;
            letter-spacing: 0 !important;
        }

        /* 숨겨진 버튼 위치 조정 (필요시) */
        .fnc-slide__action-btn {
            margin-left: 0 !important;
            margin-top: 20px;
            padding: 15px 30px;
            font-size: 14px;
        }

        /* 모바일에서 슬라이더 네비게이션 숨김 (레이아웃 깨짐 방지) */
        .fnc-nav {
            display: none !important;
        }






    }

    /* ==========================================================================
       GSAP Animation Fallbacks for Mobile (<= 1024px)
       - Ensures content is visible and logically layout when JS animations are disabled
       ========================================================================== */
    @media (max-width: 1024px) {

        /* 1. Philosophy Section: Force Visibility & Removal of Masks */
        .philosophy-bg-left,
        .philosophy-bg-right {
            clip-path: inset(0 0 0 0) !important;
            /* Open mask fully */
            opacity: 1 !important;
            transform: none !important;
            transition: none !important;
        }

        .philosophy-overlay,
        .philosophy-title,
        .philosophy-v-line,
        .philosophy-desc {
            opacity: 1 !important;
            transform: none !important;
            visibility: visible !important;
        }

        /* Ensure v-line has height */
        .philosophy-v-line {
            height: 18px !important;
            margin: 6px auto 8px !important;
        }

        /* 2. Horizontal Gallery: Stack Vertically */
        .portfolio-section {
            height: auto !important;
            /* Remove pinned height */
            min-height: auto !important;
        }

        .portfolio-scroll {
            width: 100% !important;
            height: auto !important;
            transform: none !important;
            /* Remove GSAP applied transform */
            display: block !important;
            overflow: visible !important;
            padding: 0 !important;
        }

        .horizontal-gallery {
            display: flex;
            flex-direction: column;
            width: 100% !important;
            padding-left: 0 !important;
            /* gap: 50px; */
            transform: none !important;
            /* Remove horizontal scroll transform */
        }

        .gallery-item {
            width: 100% !important;
            height: auto !important;
            margin-right: 0 !important;
            margin-bottom: 30px;
            opacity: 1 !important;
        }

        /* Ensure static content is hidden if it was meant to be replaced or keep it? */
        /* Logic: In JS, static content fades out. If pinned, it stays. 
           Mobile request: "No scroll motion". So likely just show gallery list. 
           We can hide .portfolio-static if it duplicates, or just let it scroll up. */
        .portfolio-static {
            opacity: 1 !important;
            transform: none !important;
            position: relative !important;
            margin-bottom: 50px;
        }

        /* 3. Text Animations: Ensure Visibility */
        .gsap-split .line-inner,
        .gsap-reveal {
            opacity: 1 !important;
            transform: none !important;
            visibility: visible !important;
        }

        /* 4. Marquee Section: Static or Natural Scroll */
        .marquee-section {
            height: auto !important;
            min-height: 400px;
            /* Keep minimum height */
        }

        .marquee-text {
            /* If we want static, centering it looks best */
            transform: none !important;
            text-align: center !important;
            padding-left: 0 !important;
            white-space: normal !important;
            /* Wrap text on mobile */
            font-size: 18px !important;
            line-height: 1.2;
        }

        .marquee-subtext {
            opacity: 1 !important;
            transform: none !important;
            visibility: visible !important;
        }

        /* Hide unnecessary decoration on mobile */
        .vertical-line-decoration {
            display: none !important;
        }
    }

}

/* ===== Mobile Line Break Utility ===== */
/* PC Default: Hide mobile-only line breaks */
.mobile-br {
    display: none;
}

/* Mobile: Show line breaks */
@media (max-width: 1024px) {
    .mobile-br {
        display: inline !important;
    }

    /* Portfolio Korean text - smaller on mobile */
    .portfolio-korean-text {
        font-size: 22px !important;
        line-height: 1.4 !important;
    }

    /* Portfolio title - smaller on mobile */
    .works-title {
        font-size: 28px !important;
    }

    .works-subtitle {
        font-size: 16px !important;
    }

    /* Portfolio header padding adjustment */
    .portfolio-header {
        padding: 50px 5% 0px !important;
    }

    /* ULTIMATE section - move up and center */
    .ultimate-wrapper {
        text-align: center !important;
        margin-top: 30px !important;
        /* Fixed overlapping (was -30px) */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    .ultimate-title {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        text-align: center !important;
    }

    .ultimate-sub {
        text-align: center !important;
        margin: 0 auto !important;
        width: 90% !important;
        max-width: 100% !important;
    }

    .portfolio-static {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin-bottom: 30px !important;
        /* Adjusted for better spacing */
    }

    .portfolio-wrapper {
        padding: 1px 0 !important;
    }

    .gallery-item {
        margin-bottom: 15px !important;
        /* Added small gap between items */
        width: 100% !important;
        height: auto !important;
        margin-right: 0 !important;
        opacity: 1 !important;
    }

    .philosophy-section {
        height: auto !important;
        /* min-height: 100vh; */
        padding: 100px 0 !important;
    }

    /* Contact Section Mobile Fix */


    .contact-box {
        padding: 40px 20px !important;
        width: 90% !important;
        display: block !important;
        margin: 0 auto !important;
    }
}

/* ==========================================================================
   Contact Section - Full Screen (video-section과 동일 구조)
   ========================================================================== */
#contact_section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

/* Dark Overlay */
.inquiry-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.inquiry-section>* {
    position: relative;
    z-index: 2;
}

/* Contact Content - Full Width */
.contact-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 60px 40px;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Contact Section Mobile Fix - Matches video-section behavior */
@media (max-width: 768px) {
    #contact_section {
        height: auto;
        min-height: 80vh;
        padding: 80px 20px;
    }

    .contact-content,
    .contact-box {
        padding: 40px 20px !important;
        width: 90% !important;
        max-width: 100% !important;
    }
}

/* ==========================================================================
   Footer Mobile - 왼쪽 정렬
   ========================================================================== */
@media (max-width: 768px) {
    #footer {
        padding: 50px 20px 30px !important;
    }

    #footer .container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 30px !important;
    }

    /* 로고 그룹 */
    #footer .footer-logo-group {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    /* 정보 그룹 - 세로 배치, 왼쪽 정렬 */
    #footer .footer-info-group {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 30px !important;
        width: 100% !important;
    }

    /* 각 섹션 왼쪽 정렬 */
    #footer .footer-section {
        text-align: left !important;
        border-left: none !important;
        padding-left: 0 !important;
        width: 100% !important;
    }

    #footer .footer-section h3 {
        font-size: 13px !important;
        margin-bottom: 15px !important;
    }

    #footer .footer-section ul {
        font-size: 12px !important;
    }

    #footer .footer-section ul li {
        line-height: 1.8 !important;
    }

    /* Copyright */
    #footer>div:last-child {
        margin-top: 40px !important;
        padding-top: 20px !important;
        text-align: left !important;
    }

    #footer>div:last-child p {
        text-align: left !important;
    }
}