:root {
    --text-color: #1a1a1a;
    --bg-container: #f5f5f5; /* off-white, somewhat like the image */
    --font-main: 'Inter', 'Outfit', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --cw: min(0.85vw, 0.95vh);
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: #ffffff;
    /* Force exactly one screen */
    height: 100vh; 
    overflow: hidden; 
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

body.gallery-page {
    background-image: none;
    background-color: #ffffff;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: block;
}

body.project-page {
    background-image: none;
    background-color: #ffffff;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 5vh 0;
}

body.home-feed-mode {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: block;
}

.home-hero-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The white 'frame' or container that holds the site */
.site-wrapper {
    background-color: var(--bg-container);
    /* Base width on screen width, but limit it by screen height to prevent vertical overflow! */
    width: 85vw;
    max-width: 95vh; 
    /* Container queries allow all internal elements to scale perfectly with this box */
    
    
    padding: calc(3 * var(--cw)) calc(4 * var(--cw));
    display: flex;
    flex-direction: column;
    box-shadow: 0 calc(4 * var(--cw)) calc(8 * var(--cw)) rgba(0,0,0,0.5);
    border-radius: 4px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(4 * var(--cw));
}

.logo {
    font-size: clamp(24px, calc(2.5 * var(--cw)), 40px);
    font-weight: 700;
    letter-spacing: -1px;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(12px, calc(1.8 * var(--cw)), 30px); /* 살짝 여백 조율 */
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: clamp(14px, calc(1.5 * var(--cw)), 20px); /* 최소 크기 보장 */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav a:hover {
    opacity: 0.6;
}

.nav a.btn-outline {
    border: 1px solid var(--text-color);
    padding: clamp(6px, calc(0.8 * var(--cw)), 12px) clamp(12px, calc(1.5 * var(--cw)), 24px);
    border-radius: 0;
}

.nav a.btn-outline:hover {
    background: var(--text-color);
    color: var(--bg-container);
    opacity: 1;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown > a {
    cursor: pointer;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #111111;
    border-radius: 0;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    z-index: 200;
}

/* Create an invisible bridge to prevent hover loss when cursor moves down over the margin gap */
.nav-dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    display: block !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
    color: rgba(0,0,0,0.75) !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}

.nav-dropdown-content a:hover {
    background: rgba(0,0,0,0.05) !important;
    opacity: 1 !important;
    color: #000 !important;
}

/* Mobile dropdown in overlay */
.mobile-nav-dropdown-title {
    color: #fff;
    font-size: 32px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-nav-overlay.open .mobile-nav-dropdown-title {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-sub {
    display: none;
    padding: 10px 0;
}

.mobile-nav-sub.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.mobile-nav-sub a {
    font-size: 22px !important;
    font-weight: 300 !important;
    opacity: 0.7;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.mobile-nav-sub a:hover {
    opacity: 1;
}

.main-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sub-headline {
    font-size: clamp(16px, calc(2.2 * var(--cw)), 32px); /* 2.5에서 약 10% 축소 */
    font-weight: 400;
    line-height: 1.2;
}

.main-headline {
    /* Sophisticated, wide letter-spaced elegant header */
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: clamp(30px, calc(7 * var(--cw)), 80px);
    font-weight: 600;
    line-height: 1.0;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: calc(2 * var(--cw));
    margin-left: -0.05em; /* Subtle correction to align the first letter perfectly left */
}

.hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(4 * var(--cw));
    font-size: calc(1.2 * var(--cw));
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

#heroFooterText {
    font-size: calc(2.2 * var(--cw));
    font-weight: 600;
    letter-spacing: 2px;
}

.hero-footer .btn-outline {
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    padding: calc(0.8 * var(--cw)) calc(1.5 * var(--cw));
    transition: all 0.3s ease;
}

.hero-footer .btn-outline:hover {
    background: var(--text-color);
    color: var(--bg-container);
}

/* =========================================
   Media Wrapper Styles (Main Page)
   ========================================= */
.media-wrapper {
    width: 100%;
    position: relative;
    aspect-ratio: 16 / 9; /* 영상과 사진이 일정한 비율(16:9)을 유지하도록 고정 */
    overflow: hidden;
    border-radius: 4px;
    background-color: #000;
}

#media-content {
    width: 100%;
    height: 100%;
    transition: opacity 0.4s ease-in-out;
}

#media-content iframe,
#media-content img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 사진이 액자 크기에 꽉 차게 잘리도록 설정 */
}

#media-content iframe {
    pointer-events: none; /* 유튜브 클릭 방지 */
}

/* 슬라이드 버튼 디자인 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4); /* 반투명 검은 배경 */
    color: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: calc(3 * var(--cw));
    padding: calc(1 * var(--cw)) calc(1.5 * var(--cw));
    cursor: pointer;
    z-index: 20; /* 영상 위로 올라오도록 높은 z-index */
    transition: all 0.3s ease;
    border-radius: 4px;
    font-family: var(--font-main);
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

.prev-btn { left: calc(2 * var(--cw)); }
.next-btn { right: calc(2 * var(--cw)); }

/* Mobile Hamburger Menu */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 1000;
    position: relative;
    padding: 0;
    line-height: 1;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100dvh;
    background: #050505;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-overlay a {
    color: #fff;
    text-decoration: none;
    font-size: 32px; /* 38px에서 15% 축소 */
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-nav-overlay.open a {
    opacity: 1;
    transform: translateY(0);
}


/* Mobile Responsiveness Override */
#mobile-feed-container {
    display: none;
}

@media (max-width: 768px) {
    body {
        overflow: auto; /* Re-enable normal scroll for gallery */
        align-items: flex-start; /* Align top */
        background-color: #fff !important;
        background-image: none !important;
        color: #000;
        padding: 0 !important;
    }
    
    /* General Mobile Site Wrapper */
    .site-wrapper {
        width: 100vw;
        height: auto;
        min-height: 100dvh;
        max-height: none;
        max-width: none;
        border-radius: 0;
        border: none;
        padding: max(25px, env(safe-area-inset-top)) 0 max(25px, env(safe-area-inset-bottom)) 0;
        background: transparent;
        backdrop-filter: none;
        position: relative;
    }
    
    .nav { display: none !important; }
    .hamburger-btn { display: block; margin-right: 20px; color: #000; }
    
    .logo {
        font-size: 24px;
        z-index: 1000;
        position: relative;
        color: #000;
    }
    
    .header {
        padding: 0 20px 30px 20px;
        border-bottom: none;
        background: #fff;
    }
    
    .mobile-nav-overlay {
        background: rgba(255, 255, 255, 0.98);
        color: #000;
        justify-content: flex-start;
        padding: 90px 20px 120px 20px;
        gap: 3.5vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .mobile-nav-overlay a,
    .mobile-nav-overlay .mobile-nav-dropdown-title {
        color: #000;
        border-bottom-color: rgba(0,0,0,0.1);
    }
    .mobile-nav-overlay.open {
        background: rgba(255, 255, 255, 0.98);
    }
    
    .gallery-header {
        padding: 0 20px;
    }
    
    .hero-text-container {
        padding: 0 20px;
        margin-top: 5vh; 
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .sub-headline {
        font-size: clamp(18px, 5vw, 28px) !important;
        line-height: 1.3 !important;
        font-weight: 300 !important;
        margin-bottom: 20px !important;
        letter-spacing: -0.02em;
    }
    
    .main-headline {
        font-family: 'Outfit', 'Inter', sans-serif !important;
        font-size: clamp(28px, 9vw, 54px) !important;
        line-height: 1.1 !important;
        font-weight: 700 !important;
        letter-spacing: 0.08em !important;
        text-transform: uppercase !important;
        margin-bottom: 30px !important;
    }
    
    .hero-footer {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 20px !important;
    }
    
    #heroFooterText {
        font-size: 6vw !important;
    }
    
    /* Mobile Hero Video on Homepage */
    .mobile-hero-video {
        width: 100vw;
        height: 56.25vw; /* 16:9 */
        position: relative;
        background: #000;
        overflow: hidden;
        margin-bottom: 30px;
    }
    .mobile-hero-video iframe, .mobile-hero-video img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0; left: 0;
        pointer-events: none;
    }
    
    .btn-outline {
        color: #000 !important;
        border-color: #ddd !important;
    }
    .btn-outline:hover {
        background: #f5f5f5 !important;
        color: #000 !important;
    }
    
    /* Mobile Photo Grid Layout (Mimicking reference) */
    .photo-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        padding-bottom: 40px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .grid-item-wrapper {
        border-radius: 0 !important;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        width: 100% !important;
    }
    .grid-item-wrapper img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        aspect-ratio: 3/2; /* 3:2 가로 비율 */
        object-fit: cover;
        border-radius: 0 !important;
        display: block;
    }
    .grid-title {
        background: transparent;
        padding: 18px 15px 22px 15px;
        text-align: center;
        font-size: 15px;
        font-weight: 500;
        color: #1a1a1a;
        letter-spacing: -0.5px;
        margin-top: 0;
        border-radius: 0 !important;
        border-bottom: 1px solid #eaeaea;
    }
}

/* =========================================
   Gallery Page Styles (space_accommodation.html)
   ========================================= */
.gallery-wrapper {
    /* 갤러리는 내용이 길 수 있으므로 스크롤 허용하되 데스크톱은 무제한 연장 지원 */
    max-height: none !important;
    overflow-y: visible !important; 
}

/* 커스텀 스크롤바 (Webkit) */
.gallery-wrapper::-webkit-scrollbar {
    width: 6px;
}
.gallery-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 10px;
}

.gallery-header {
    margin-bottom: calc(4 * var(--cw));
    padding-bottom: calc(2 * var(--cw));
    border-bottom: 1px solid #111111;
}

.gallery-title {
    font-size: clamp(20px, calc(3 * var(--cw)), 36px);
    font-weight: 500;
    margin-bottom: calc(1 * var(--cw));
    letter-spacing: -0.02em;
}

.gallery-desc {
    font-size: clamp(13px, calc(1.1 * var(--cw)), 15px);
    color: #888;
    font-weight: 400;
    margin-top: 6px;
    line-height: 1.6;
    letter-spacing: 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(2 * var(--cw));
    padding-bottom: calc(4 * var(--cw));
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0 0 0;
    font-size: 12px;
    border-top: 1px solid #111111;
    margin-top: 40px;
    color: #666;
}
.site-footer .footer-left { text-align: left; letter-spacing: 0; }
.site-footer .footer-right { text-align: right; letter-spacing: 0; }

@media (max-width: 768px) {
    .site-footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding-top: 30px;
    }
    .site-footer .footer-left, .site-footer .footer-right { text-align: center; }
}

.grid-item-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.grid-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.grid-title {
    font-size: clamp(13px, calc(1.2 * var(--cw)), 16px);
    font-weight: 500;
    color: #1a1a1a;
    text-align: center;
    transition: color 0.3s ease;
    letter-spacing: -0.5px;
    margin-top: 0;
    background: transparent;
    padding: 15px;
    border-radius: 0;
    border-bottom: 1px solid #eaeaea;
}

.grid-item {
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    background-color: #eee;
    aspect-ratio: 3 / 2; /* 3:2 가로 비율 */
    position: relative; /* 추가: 오버레이 배치를 위해 */
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
}

.grid-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: calc(2 * var(--cw));
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none; /* 클릭 이벤트가 아래 이미지로 전달되도록 함 */
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.grid-item:hover .grid-overlay {
    opacity: 1;
}

.active-link {
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

/* =========================================
   Lightbox Styles
   ========================================= */
.lightbox {
    display: none; /* JS에서 flex로 변경 */
    position: fixed;
    z-index: 99999; /* Must be above .global-contact-bar (9999) */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    border-radius: 4px;
    animation: zoomIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

#lightbox-video {
    width: 90vw;
    height: 50.625vw; /* 16:9 ratio */
    max-height: 90vh;
    max-width: calc(90vh * 16 / 9);
    background: black;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    font-family: var(--font-main);
}

.lightbox-close:hover {
    color: #888;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 48px;
    font-weight: 300;
    cursor: pointer;
    width: 60px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    user-select: none;
    border-radius: 8px;
}

.lightbox-nav:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-family: 'Outfit', 'Inter', sans-serif;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        font-size: 32px;
        width: 44px;
        height: 60px;
    }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close {
        top: 12px;
        right: 16px;
        font-size: 36px;
    }
}

/* --- Mobile Vertical Reel Styles --- */
@media (max-width: 768px) {
    /* Header Fixed */
    body.home-feed-mode .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        z-index: 1000;
        background: transparent !important;
        border: none;
        padding: max(20px, env(safe-area-inset-top)) 20px 20px 20px !important;
        background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%) !important;
    }
    body.home-feed-mode .logo, body.home-feed-mode .hamburger-btn {
        color: #fff !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }
    body.home-feed-mode .site-wrapper {
        padding: 0 !important;
    }
    
    /* Feed Container (Horizontal Scroll) */
    body.home-feed-mode .main-content {
        position: relative;
    }
    .mobile-feed-slider {
        width: 100vw !important;
        height: 100dvh !important;
        position: relative !important;
        margin: 0 !important;
    }
    .mobile-feed-container {
        display: flex !important;
        flex-direction: row !important;
        width: 100vw !important;
        height: 100dvh !important;
        overflow-x: scroll !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    .mobile-feed-slide {
        flex: 0 0 100vw !important;
        width: 100vw !important;
        height: 100dvh !important;
        scroll-snap-align: start !important;
        position: relative;
        background: #000;
        overflow: hidden;
    }
    
    /* Text Overlay */
    .mobile-text-overlay {
        position: fixed !important;
        bottom: 80px;
        left: 20px;
        z-index: 500;
        color: #fff !important;
        text-align: left !important;
        align-items: flex-start !important;
        pointer-events: none;
        margin: 0 !important;
        padding: 0 !important;
        text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    }
    .mobile-text-overlay .sub-headline {
        font-size: 4.5vw !important; /* 5vw에서 10% 축소 */
        font-weight: 500 !important;
        margin-bottom: 10px !important;
        color: rgba(255,255,255,0.9) !important;
    }
    .mobile-text-overlay .main-headline {
        font-size: 10vw !important;
        font-weight: 800 !important;
        margin-bottom: 0 !important;
        letter-spacing: 1px !important;
        display: block !important; /* Override previous display:none */
        color: #fff !important;
    }
    
    /* Gallery Section pushed below 100dvh */
    #mobile-gallery-section {
        background: #fff;
        position: relative;
        z-index: 100;
        padding-top: 40px;
    }
}



/* -------------------------------------------------------------
   회사소개 (About) & 진행방식 (Process) 프리미엄 갤러리 레이아웃
   ------------------------------------------------------------- */
body.about-page, body.process-page {
    background-image: none;
    background-color: #ffffff; /* 순백색 갤러리 화이트월 */
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: block;
}

.intro-section {
    padding: 80px 4% 120px 4%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 페이지 메인 타이틀 */
.page-header-box {
    margin-bottom: 80px;
    text-align: center;
}

.page-category {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 6px; /* 자간을 극대화하여 시크하게 표현 */
    color: #999;
    margin-bottom: 16px;
    display: block;
}

.page-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: #111;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: clamp(14px, 1.4vw, 17px);
    font-weight: 300;
    color: #666;
    margin-top: 24px;
    line-height: 1.7;
}

/* 에디토리얼 레이아웃 그리드 */
.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px; /* 드넓은 숨구멍 여백 */
    margin-bottom: 120px;
    align-items: center;
}

.editorial-img-box {
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    border-radius: 0; /* 완벽한 직각 마감 */
    box-shadow: none; /* 입체 그림자 완전 박멸 */
    border: 1px solid #f0f0f0;
    background-color: #fafafa;
}

.editorial-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-img-box:hover img {
    transform: scale(1.02); /* 극도로 절제된 미세 스케일 */
}

.editorial-text-box {
    padding: 0;
}

.editorial-text-box h3 {
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 600; /* 차분하고 얇은 두께 */
    color: #111;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    line-height: 1.35;
}

.editorial-text-box p {
    font-size: 14.5px;
    line-height: 1.8;
    color: #555;
    word-break: keep-all;
    font-weight: 300;
}

/* 3분할 수치 카키 배너 (Metrics Grid) - 갤러리 리플릿 도록 스타일 */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 100px 0;
    border-top: 1px solid #111; /* 얇고 묵직한 검은색 가로 실선 */
    border-bottom: 1px solid #111;
}

.metric-card {
    background: transparent;
    padding: 50px 20px;
    border-radius: 0;
    border: none;
    border-right: 1px solid #eee; /* 카드 사이 얇은 세로 경계선 */
    box-shadow: none;
    text-align: center;
    transition: none;
}

.metric-card:last-child {
    border-right: none;
}

.metric-card:hover {
    transform: none;
    box-shadow: none;
}

.metric-value {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: clamp(32px, 3.5vw, 44px);
    font-weight: 600;
    color: #111;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.metric-label {
    font-size: 11px;
    font-weight: 500;
    color: #888;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* 진행방식 (Process) 타임라인 레이아웃 - 갤러리 브로슈어 스타일 */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0;
}

.timeline-line {
    position: absolute;
    left: 40px; /* 숫자 노드 중앙선 */
    top: 0;
    bottom: 0;
    width: 1px; /* 얇고 세련된 1px 실선 */
    background: #eaeaea;
    z-index: 1;
}

.timeline-step {
    position: relative;
    display: flex;
    gap: 50px;
    margin-bottom: 80px;
    z-index: 2;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-number-node {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background: #ffffff;
    color: #111;
    border-radius: 0; /* 완벽한 직각 사각형 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 300;
    box-shadow: none; /* 그림자 배제 */
    border: 1px solid #111; /* 미니멀 블랙 테두리 */
    transition: all 0.4s ease;
    z-index: 5;
}

.timeline-step:hover .step-number-node {
    transform: none;
    background: #111;
    color: #ffffff;
    border-color: #111;
    box-shadow: none;
}

.step-card {
    background: transparent;
    padding: 0; /* 장식용 내부 패딩 제거 */
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #eee; /* 얇은 바닥 경계선 */
    padding-bottom: 30px;
    box-shadow: none;
    width: 100%;
    transition: none;
    cursor: default;
}

.step-card:hover {
    border-color: #111; /* 마우스를 올릴 때만 바닥 선만 미세하게 하이라이트 */
    box-shadow: none;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.step-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    word-break: keep-all;
}

.step-split-container {
    display: flex;
    gap: 40px;
    margin: 25px 0;
    align-items: stretch;
}

.step-split-line {
    flex: 1;
}

.split-line-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 12px;
    border-bottom: 1px solid #111;
    padding-bottom: 8px;
    display: inline-block;
    letter-spacing: -0.3px;
}

.step-split-divider {
    width: 1px;
    background: #111;
    align-self: stretch;
    opacity: 0.15;
}

/* 애니메이션 */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 반응형 (Responsive Breakpoints) */
@media (max-width: 1024px) {
    .editorial-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .intro-section {
        padding: 40px 20px 60px 20px;
    }
    
    .page-header-box {
        margin-bottom: 40px;
    }
    
    .page-subtitle {
        margin-top: 15px;
    }

    .editorial-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .editorial-grid:nth-child(even) {
        direction: ltr; /* Reverse grid display order for mobile */
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 50px 0;
    }
    
    .metric-card {
        padding: 30px 20px;
    }

    /* 진행방식 모바일 타임라인 축소 */
    .timeline-line {
        left: 20px;
    }
    
    .timeline-step {
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .step-number-node {
        width: 44px;
        height: 44px;
        font-size: 16px;
        border-width: 4px;
    }
    
    .step-card {
        padding: 20px;
    }
    
    .step-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .step-desc {
        font-size: 13px;
        line-height: 1.6;
    }

    .step-split-container {
        flex-direction: column;
        gap: 20px;
    }

    .step-split-divider {
        width: 100%;
        height: 1px;
    }
}


/* Scroll to Top Button - Minimal Museum Style */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #ffffff;
    color: #111111;
    border: 1px solid #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 300;
    cursor: pointer;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease, color 0.2s ease;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #111111;
    color: #ffffff;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 70px; /* Mobile contact bar starts at bottom: 0, height: 50px */
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* -------------------------------------------------------------
   MoMA Premium Full-Screen Gallery Wrapper Layout Alignment
   ------------------------------------------------------------- */
.gallery-wrapper > .header,
.gallery-wrapper > .main-content,
.gallery-wrapper > .site-footer,
.gallery-wrapper > main,
.gallery-wrapper > footer {
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.gallery-page, body.project-page, body.about-page, body.process-page {
    /* 배경 이미지가 깔렸을 때 웅장한 가로/세로 전체 덮음을 지원하기 위한 바디 리셋 */
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
}





/* -------------------------------------------------------------
   Global Floating Contact Bar — 하단 고정 반투명 연락처 띠 (Desktop & Mobile Unified)
   ------------------------------------------------------------- */
.global-contact-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(17, 17, 17, 0.88);
    -webkit-backdrop-filter: blur(12px) saturate(1.8);
    backdrop-filter: blur(12px) saturate(1.8);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.25);
    font-family: 'Outfit', 'Inter', 'Noto Sans KR', sans-serif;
    transition: background 0.3s ease, height 0.3s ease;
}

.global-contact-bar .contact-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.global-contact-bar a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.global-contact-bar a:hover {
    color: #ffffff;
    opacity: 1;
    transform: translateY(-0.5px);
}

.global-contact-bar .contact-phone {
    font-weight: 600;
    font-size: 14.5px;
    color: #ffffff;
}

.global-contact-bar .contact-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.15);
}

/* Adjust scroll-to-top position to avoid overlap with bottom contact bar */
.scroll-to-top {
    bottom: 66px !important; /* 46px contact bar + 20px gap */
}

/* Ensure page contents are not hidden behind the bar on Desktop */
body {
    padding-bottom: 46px !important;
}

@media (max-width: 768px) {
    .global-contact-bar {
        height: 52px;
        gap: 10px;
        background: rgba(17, 17, 17, 0.92); /* Matches the highly-rated mobile screenshot */
    }
    
    .global-contact-bar .contact-label {
        font-size: 11.5px;
        color: rgba(255, 255, 255, 0.6);
    }
    
    .global-contact-bar a {
        font-size: 13.5px;
    }
    
    .global-contact-bar .contact-phone {
        font-size: 14.5px;
    }
    
    .global-contact-bar .contact-divider {
        height: 16px;
    }
    
    /* Ensure page contents are not hidden behind the bar on Mobile */
    body {
        padding-bottom: 52px !important;
    }
    
    /* Adjust scroll-to-top position on Mobile */
    .scroll-to-top {
        bottom: 72px !important; /* 52px contact bar + 20px gap */
    }
}

/* -------------------------------------------------------------
   Gallery Wrapper — 서브페이지 공통 카드 레이아웃
   ------------------------------------------------------------- */
.gallery-wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 5vh auto;
    background-color: #ffffff;
    height: auto;
    min-height: 90vh;
    overflow: visible;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border-radius: 4px;
}

/* -------------------------------------------------------------
   Homepage Main Desktop Museum Card Layout Override
   ------------------------------------------------------------- */
@media (min-width: 769px) {
    body.home-feed-mode .home-hero-section {
        display: block !important;
        width: 100% !important;
        min-height: auto !important;
    }
    
    body.home-feed-mode .site-wrapper {
        background-color: #ffffff !important;
        width: 90% !important;
        max-width: 1200px !important;
        margin: 5vh auto !important;
        height: auto !important;
        min-height: 90vh !important;
        overflow: visible !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.04) !important;
        border-radius: 4px !important;
        padding: 40px !important;
    }

    /* Force logo and dynamicNav links to be visible dark gray on the white museum card background */
    body.home-feed-mode .logo,
    body.home-feed-mode .logo a {
        color: #1a1a1a !important;
        text-shadow: none !important;
    }
    
    body.home-feed-mode .nav a {
        color: #1a1a1a !important;
        text-shadow: none !important;
    }
}

