﻿:root {
    --primary-color: #333333;
    --accent-color: #0056D2;
    --bg-color: #ffffff;
    /* Normalizing base to white */
    --header-bg: #ffffff;
    --header-border: #eeeeee;
    --hero-overlay: rgba(0, 0, 0, 0.4);
    --text-muted: #888888;
    --transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, border-color 0.3s ease;
    --max-width: 1200px;
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Noto+Sans+KR:wght@100;300;400;700&display=swap');

/* Skeleton Loader */
.skeleton-loader {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-break: keep-all;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--primary-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    letter-spacing: -0.01em;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Hard Reset: Strict Role Separation */
/* 1. English, Numbers, Highlights, & UI Elements (Outfit) */
h3,
h4,
nav a,
.cta-nav-button,
.submit-btn,
.btn-submit,
.login-submit-btn,
.data-key,
.detail-data-grid .data-key,
.thumb-no,
.ba-meta-info,
.brand-title,
.brand-subtitle,
.view-all,
.archive-card-info span,
.archive-card-overlay .overlay-loc,
.page-no,
.ba-bottom-banner,
.ba-tag,
.preview-overlay,
.footer-col.brand .brand-slogan,
.footer-col .label,
.copyright,
.editorial-header h1,
.editorial-meta,
.login-header h1,
.login-form label,
.admin-save-btn,
.menu-item,
.ba-bottom-banner,
.overlay-loc {
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.05em;
}

/* 2. Korean Body & Specific Titles (Noto Sans KR) */
h1,
h2,
.about-text p,
.ba-desc,
.detail-desc,
.data-value,
.ba-title,
.overlay-title,
.footer-col .value p {
    font-family: 'Noto Sans KR', sans-serif;
    letter-spacing: -0.02em;
}

/* Unified Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.section-header h3 {
    font-size: 1.05rem;
    font-weight: 300;
    color: #888;
    margin: 0;
}

/* Language-specific Role within Headers */
.section-header .en {
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-header .kr {
    font-family: 'Noto Sans KR', sans-serif;
    letter-spacing: -0.01em;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* GNB Style */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    background: #ffffff;
    /* Default: White for all pages */
    border-bottom: 1px solid #eeeeee;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease, border-bottom 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 90px;
    /* Static tall height as requested */
}

/* Home Page Initial State: Transparent */
.home-page header:not(.scrolled) {
    background: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
}

.logo-img,
.logo a img {
    height: 45px;
    /* Unified logo size */
    width: auto;
    max-width: 200px;
    display: block;
    transition: var(--transition);
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #333333;
    /* Default: Dark for all pages */
    font-weight: 400;
    font-size: 1rem;
    transition: var(--transition);
}

.home-page header:not(.scrolled) nav a {
    color: #ffffff;
    /* White only on home page top */
}

nav a:hover {
    opacity: 0.7;
}

.cta-nav-button {
    border: 0.8px solid #333333;
    /* ??媛?섍퀬 ?몃????뚮몢由?*/
    padding: 0.6rem 1.6rem;
    border-radius: 0px;
    background: transparent;
    color: #333333;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.home-page header:not(.scrolled) .cta-nav-button {
    border-color: #ffffff;
    color: #ffffff;
    /* White only on home page top */
}

.cta-nav-button:hover {
    background: #333333;
    color: #ffffff;
}

.home-page header:not(.scrolled) .cta-nav-button:hover {
    background: #ffffff;
    color: #000000;
}

/* Removed redundant scrolled hover logic */

/* Hero Section */
section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-white {
    background-color: #ffffff !important;
}

.section-light {
    background-color: #f4f4f4 !important;
    /* Clearly distinct gray */
}

section:first-of-type,
.hero+section {
    border-top: none;
    /* 理쒖긽??諛??덉뼱濡?吏곹썑 ?뱀뀡 ?뚮몢由??쒖쇅 */
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: #eee;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero::before {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-container {
    padding-left: 5%;
    z-index: 2;
    width: 100%;
}

.hero-content {
    position: relative;
    text-align: left;
    color: white;
    max-width: 800px;
}

.hero-experience {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.5s;
    line-height: 1.4;
    color: #f5f5f5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-performance {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.7s;
    line-height: 1.3;
    word-break: keep-all;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.hero-performance strong {
    font-size: 1.2em;
    font-weight: 700;
    color: #ffffff;
}

.hero-brand {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.9s;
    margin-bottom: 2.5rem;
}

.brand-title {
    /* font-family reset */
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    font-weight: 600;
}

.brand-subtitle {
    /* font-family reset */
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

.about {
    padding: 80px 0;
    background-color: #ffffff;
}

.about-header {
    text-align: center;
    width: 100%;
    margin-bottom: 40px;
    /* ?쒕ぉ ?명듃? 蹂몃Ц ?ъ씠 媛꾧꺽 異뺤냼 */
}

.about-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    /* ?쒕ぉ ?명듃? 蹂몃Ц ?ъ씠 媛꾧꺽 異뺤냼 */
    color: #000;
}

/* Removed .about-header h3 */

.about-wrapper {
    display: flex;
    align-items: stretch;
    gap: 60px;
    justify-content: space-between;
}

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}

.about-text p {
    font-size: 1.25rem;
    color: #444;
    line-height: 1.9;
    letter-spacing: -0.01em;
    word-break: keep-all;
    text-align: left;
    margin-bottom: 1.85rem;
}

.about-text p strong {
    font-weight: 700;
    color: #000;
    background: linear-gradient(transparent 60%, rgba(58, 109, 240, 0.1) 40%);
}

.about-en {
    font-size: 0.85rem;
    color: #666;
    font-weight: 300;
    margin-top: 1.25rem;
    font-style: italic;
}

.about-image {
    flex: 0 0 432px;
    width: 432px;
    height: 432px;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    align-self: flex-start;
}

.about-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    border-radius: 0;
    overflow: hidden;
}

.about-slide.active {
    opacity: 1;
    visibility: visible;
}

.about-slide img,
.about-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    /* Hide video controls and PiP */
}


/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: transform 1s cubic-bezier(0.5, 0, 0, 1), opacity 1s cubic-bezier(0.5, 0, 0, 1);
    will-change: transform, opacity;
}

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

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

.about-text.reveal {
    transition-delay: 0.2s;
}

.about-image.reveal {
    transition-delay: 0.4s;
}

/* .about-image styles consolidated above */

.about-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    border-radius: 0;
    /* ?대?吏? ?듭씪媛먯쓣 ?꾪빐 吏곴컖?쇰줈 蹂寃?*/
    overflow: hidden;
}

.about-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

.about-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.about-slide.active img {
    transform: scale(1.05);
    /* Subtle zoom for active slide */
}

/* Infinite Loop Slider */
.about-slider {
    margin-top: 20px;
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.slider-track {
    display: flex;
    width: calc(180px * 16 + 20px * 16);
    /* 8媛??대?吏 + 8媛?蹂듭젣蹂?= 珥?16媛??꾩씠???덈퉬 */
    animation: marquee 25s linear infinite;
    /* ?대?吏 ?섏뿉 留욎떠 ?띾룄 理쒖쟻??*/
}

.about-slider:hover .slider-track {
    animation-play-state: paused;
}

.slider-item {
    width: 180px;
    height: 120px;
    margin-right: 20px;
    flex-shrink: 0;
    border-radius: 2px;
    border: 1px solid #EFEFEF;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}



.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-180px * 8 - 20px * 8));
        /* 8媛??꾩씠???덈퉬留뚰겮 ?대룞?섏뿬 臾댄븳 猷⑦봽 援ы쁽 */
    }
}

/* Project Portfolio Section */
.project-section {
    padding: 120px 0;
    background-color: #ffffff;
}

.project-section .container {
    max-width: var(--max-width);
}

.project-section::before {
    background-color: #eee;
}

.project-hero {
    padding-top: 100px;
    /* 150px -> 100px */
    padding-bottom: 30px;
    /* 60px -> 30px */
}

.project-detail-section {
    padding: 120px 0 !important;
}

.project-header {
    width: 100%;
    padding: 0;
    margin-bottom: 10px;
    background-color: transparent;
}

.project-top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.view-all {
    display: inline-block;
    padding: 8px 18px;
    font-size: 0.75rem;
    color: #000;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 400;
    letter-spacing: 1px;
}

.view-all:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Portfolio Section Refined - Interactive Gallery */
.gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: var(--max-width);
    /* Expanded to 1200px */
    margin: 0 auto;
}

/* 1. Thumbnails Navigation */
.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.thumb-item {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.thumb-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 8px;
    filter: grayscale(100%);
    opacity: 0.6;
    border-radius: 2px;
    border: 1px solid #EFEFEF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumb-item.active .thumb-img,
.thumb-item:hover .thumb-img {
    filter: grayscale(0%);
    opacity: 1;
}

.thumb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-no {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: #999;
}

.thumb-item.active .thumb-no {
    color: #000;
    font-weight: 500;
}

/* 2. Detail Viewer */
.gallery-viewer {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.viewer-main {
    flex: 0 0 46%;
    /* Increased by 20% from 38.5% */
}

.main-image-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    border-radius: 2px;
    border: 1px solid #EFEFEF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-image-box:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.main-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.viewer-data {
    flex: 1;
    padding-top: 0;
    padding-left: 60px;
}

.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    /* Further vertically compressed */
    margin-bottom: 20px;
    /* Minimal space before content */
}

.data-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* Minimally compressed internal gap */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 10px;
    /* Minimized vertical space */
}

.data-key {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: #999;
    text-transform: uppercase;
}

.data-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1a1a1a;
}

.data-content {
    flex: 0 0 100%;
    /* Force full width below top row */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 25px;
    margin-top: 10px;
    min-height: 120px;
}

.data-content p {
    font-size: 1rem;
    font-weight: 300;
    color: #444;
    line-height: 1.9;
    letter-spacing: -0.01em;
    max-width: 100%;
    word-break: keep-all;
    white-space: pre-wrap;
}

/* --- Project Archive Page Specific Styles --- */
.archive-hero {
    position: relative;
    height: 250px;
    /* Reduced to 250px for a thinner, elegant look */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 90px;
    /* Header height offset */
}

.archive-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    filter: brightness(0.85);
    /* Subtly darker for title legibility */
}

.archive-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.archive-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.archive-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 200;
    letter-spacing: 0.25em;
    margin-bottom: 15px;
}

.archive-hero-content p {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.9;
}

.archive-grid-section {
    padding: 100px 0;
    background-color: #fff;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px 25px;
    margin-bottom: 80px;
}

.archive-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.archive-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #f0f0f0;
    border-radius: 2px;
    border: 1px solid #EFEFEF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.archive-card:hover .archive-card-img {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.archive-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.archive-card:hover .archive-card-img img {
    transform: scale(1.04);
    filter: brightness(0.85);
    /* Micro-darkening on hover */
}

.archive-card-info h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.archive-card:hover .archive-card-info h4 {
    font-weight: 700;
    /* Bold title on hover */
}

.archive-card-info span {
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 1.5px;
}

/* Pagination Area */
.pagination {
    display: none;
    /* Hidden by default, shown if > 1 page */
    justify-content: center;
    align-items: center;
    margin-top: 100px;
    gap: 30px;
}

.page-numbers {
    display: flex;
    gap: 15px;
}

.page-no {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-no.active {
    color: #1a1a1a;
    font-weight: 600;
}


.page-no:hover:not(.active) {
    color: #333;
}

.page-arrow {
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    padding: 5px;
    transition: color 0.3s ease;
}

.page-arrow:hover {
    color: #1a1a1a;
}

.page-arrow svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 1200px) {
    .archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .archive-hero-content h1 {
        font-size: 2.5rem;
    }
}

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

/* Gallery Viewer styles consolidated above */

.project-info h3 {
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0 0 5px 0;
}

.project-info p {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}

@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* Mobile Bottom Bar */
.mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--accent-color);
    padding: 1.2rem;
    text-align: center;
    z-index: 2000;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.mobile-bar a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    display: block;
}



/* Comparison Section (Before & After) - Static Refinement */
.comparison-section {
    padding: 80px 0;
    /* Reverted to 80px */
    background-color: #ffffff;
    color: #1a1a1a;
}

/* Section Headers */
/* font-family reset */

/* Layout & Spacing */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

.container-wide {
    max-width: 1200px;
}

section {
    padding: 80px 0;
    /* Global rhythm restored to 80px */
    overflow: hidden;
}

.project-section {
    padding: 60px 0 80px !important;
}

.ba-slider-outer {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.ba-slider-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ba-slider-stage {
    display: flex !important;
    /* Ensure flex for sliding */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.ba-slider-item {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
    padding-bottom: 60px;
    /* Reduced from 200px for tight layout */
    cursor: pointer;
}

.ba-static-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    /* ?낆옣???먮굦???꾪빐 媛꾧꺽 議곗젙 */
    width: 100%;
}

.ba-photo-box {
    flex: 1;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0;
    /* Sharp corners for architectural precision */
    border: 1px solid #EFEFEF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ba-photo-box:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.ba-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ba-bottom-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px;
    text-align: center;
    /* font-family reset */
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Removed redundant max-width override */

@media (max-width: 768px) {
    .ba-static-container {
        flex-direction: column;
        gap: 20px;
    }

    .transformation-arrow {
        transform: rotate(90deg);
        flex: 0 0 30px;
    }

    .ba-info {
        position: static;
        margin-top: 20px;
        text-align: center;
    }

    /* 媛ㅻ윭由??뱀뀡 紐⑤컮?????*/
    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-viewer {
        flex-direction: column;
        gap: 30px;
    }

    .viewer-main {
        flex: none;
        width: 100%;
    }

}

@media (max-width: 768px) {
    .container {
        padding: 0 25px;
    }

    .viewer-data {
        padding-left: 0;
        max-width: 100%;
        text-align: center;
    }

    .data-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .data-item {
        align-items: center;
    }

    .data-content p {
        margin: 15px auto 0;
    }
}

.transformation-arrow {
    flex: 0 0 40px;
    /* 30-40px ?섏??쇰줈 ???異뺤냼 */
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transformation-arrow svg {
    width: 20px;
    /* Reduced width for minimalist look */
    height: 20px;
    opacity: 0.8;
}

.ba-bottom-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-family reset */
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.comparison-section {
    padding: 60px 0 40px !important;
}

/* ?꾨줈?앺듃 ?뺣낫 ?ㅽ???- 媛ㅻ윭由??꾩뭅?대툕 移대뱶 媛먯꽦 */
.ba-info {
    position: relative;
    text-align: left;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.ba-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.ba-meta-info {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    letter-spacing: 0.05em;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ba-meta-info span {
    color: #ddd;
    font-weight: 300;
}

.ba-desc {
    font-size: 0.95rem;
    color: #444;
    line-height: 2.1;
    letter-spacing: -0.01em;
    word-break: keep-all;
    max-width: 90%;
    white-space: pre-wrap;
}

.nav-arrow {
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    transition: all 0.3s ease;
    padding: 0;
    z-index: 10;
}

.nav-arrow:hover {
    color: #000;
    transform: scale(1.1);
}

.nav-arrow svg {
    width: 60px;
    height: 60px;
}

@media (max-width: 768px) {
    .ba-static-container {
        flex-direction: column;
        gap: 20px;
    }

    .transformation-arrow {
        transform: rotate(90deg);
        flex: 0 0 30px;
    }

    .ba-info {
        position: static;
        margin-top: 20px;
        text-align: center;
    }

    .comparison-section {
        padding: 60px 0;
    }

    .about-wrapper {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .about-title {
        text-align: center;
        margin-bottom: 40px;
    }

    .about-image {
        width: 100%;
        height: 300px;
        flex: none;
        transform: none;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-header {
        margin-bottom: 30px;
    }

    .desktop-br {
        display: none;
    }

    .mobile-bar {
        display: block;
    }

    header {
        padding: 0;
    }

    nav ul {
        display: none;
    }
}

/* --- Contact Section --- */
.contact-section {
    padding: 120px 0;
    background-color: #fcfcfc;
    /* Slightly off-white for clarity */
}

.contact-tagline {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: #555;
    text-align: center;
    max-width: 700px;
    margin: -20px auto 60px;
    line-height: 1.7;
    font-weight: 300;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .contact-tagline {
        padding: 0 20px;
        margin-bottom: 40px;
        font-size: 1rem;
    }

    .pc-only {
        display: none;
    }
}

/* Service Process Section */
.service-process {
    max-width: 1100px;
    margin: 60px auto 80px;
    /* Reduced margin as per refinement */
    position: relative;
    padding: 0 20px;
}

.process-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    align-items: flex-start;
}

/* Horizontal Connector */
.process-wrapper::before {
    content: '';
    position: absolute;
    top: 30px;
    /* Center of 60px icon */
    left: 50px;
    right: 50px;
    height: 1px;
    background-color: #e5e5e5;
    z-index: 0;
}

.process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.step-icon .num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #1a1a1a;
}

.process-step:hover .step-icon {
    border-color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.step-title {
    font-family: 'Noto Sans KR', sans-serif;
    /* Switched to Korean font */
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.step-desc {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: #666;
    line-height: 1.6;
    word-break: keep-all;
    max-width: 200px;
    /* Slightly wider for Korean text coherence */
    margin: 0 auto;
}

/* Form Wrapper with subtle separation */
.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 60px 40px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.02);
}

.contact-form {
    width: 100%;
}

/* FAQ Accordion Section */
.contact-faq {
    margin-top: 80px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-toggle {
    display: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    user-select: none;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #fafafa;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: #888;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    padding: 0 30px;
}

.faq-answer p {
    padding-bottom: 24px;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    font-weight: 300;
}

/* Accordion Logic */
.faq-toggle:checked~.faq-question {
    background: #fafafa;
}

.faq-toggle:checked~.faq-question .faq-icon {
    transform: rotate(180deg);
    color: #000;
}

.faq-toggle:checked~.faq-answer {
    max-height: 200px;
    /* Adjust as needed */
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    /* Direct sharp corners */
    font-size: 0.95rem;
    color: #333;
    background-color: #fff;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bbb;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    /* Focusing using OG point color */
    box-shadow: 0 0 0 1px var(--accent-color);
}

.privacy-agreement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
    gap: 10px;
}

.checkbox-container input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.privacy-link {
    font-size: 0.8rem;
    color: #888;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.privacy-link:hover {
    color: #000;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .process-wrapper {
        flex-direction: column;
        gap: 50px;
        align-items: flex-start;
        padding-left: 20px;
    }

    .process-wrapper::before {
        left: 30px;
        /* Center of icon vertically */
        top: 0;
        bottom: 0;
        width: 1px;
        height: 100%;
        display: block;
    }

    .process-step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 30px;
    }

    .step-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .step-desc {
        max-width: none;
        margin-left: 0;
    }

    .contact-form-wrapper {
        padding: 40px 20px;
    }
}

.form-submit {
    text-align: center;
}

.submit-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 80px;
    background-color: var(--accent-color);
    color: #fff;
    border: 1px solid var(--accent-color);
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
}

.submit-btn span {
    font-size: 0.7rem;
    /* font-family reset */
    letter-spacing: 0.1em;
    margin-top: 5px;
    opacity: 0.8;
}

.submit-btn:hover {
    background-color: transparent;
    color: var(--accent-color);
}

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

    .form-group.full-width {
        grid-column: span 1;
    }

    .submit-btn {
        width: 100%;
    }

    .contact-section {
        padding: 80px 0;
    }
}

/* --- Footer Section --- */
.footer {
    padding: 80px 0;
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col.brand .brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.footer-col.brand .brand-slogan {
    /* font-family reset */
    font-weight: 300;
    font-size: 0.75rem;
    color: #bbb;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-col .label {
    /* font-family reset */
    font-size: 0.7rem;
    font-weight: 400;
    color: #999;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
}

.footer-col .value {
    margin-top: 15px;
}

.footer-col .value p {
    font-size: 0.85rem;
    font-weight: 400;
    color: #333;
    line-height: 1.8;
    white-space: nowrap;
}

.footer-col .value .type {
    font-weight: 600;
    color: #1a1a1a;
    margin-right: 8px;
    font-size: 0.8rem;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #f9f9f9;
    display: flex;
    justify-content: flex-end;
}

.copyright {
    /* font-family reset */
    font-size: 0.7rem;
    font-weight: 300;
    color: #ccc;
    letter-spacing: 0.05em;
    opacity: 0.5;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }
}

@media (max-width: 768px) {

    section,
    .about,
    .project-section,
    .comparison-section,
    .contact-section {
        padding: 80px 0 !important;
    }

    .footer {
        padding: 80px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        justify-content: center;
    }

    .copyright {
        text-align: center;
    }
}

/* Emergency Content Fix */
/* Managed by main gallery definitions */

.ba-slider-viewport {
    min-height: 400px;
}

/* --- Write Page (Editor) Styles --- */
.write-page .header.scrolled {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.write-container {
    padding-top: 120px;
    background-color: #ffffff;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.write-hero {
    padding: 60px 0 30px;
    text-align: center;
}

.write-header h2 {
    /* font-family reset */
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: 0.2em;
    margin-bottom: 15px;
}

.write-header p {
    font-size: 0.95rem;
    color: #888;
    letter-spacing: 0.05em;
}

.write-form-section {
    padding-bottom: 100px;
}

.project-form {
    background: #fff;
    padding: 60px;
    border: 1px solid #eee;
    max-width: 900px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    /* font-family reset */
    font-size: 0.75rem;
    font-weight: 500;
    color: #999;
    letter-spacing: 0.1em;
}

.form-group input,
.form-group select,
.form-group textarea {
    border: 1px solid #e0e0e0;
    padding: 15px;
    font-size: 0.95rem;
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #000;
}

/* File Upload Controls */
.file-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.file-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.file-group.ba-upload {
    grid-column: span 2;
}

.file-group label {
    /* font-family reset */
    font-size: 0.75rem;
    font-weight: 500;
    color: #999;
    letter-spacing: 0.1em;
}

.upload-box {
    position: relative;
    border: 1px dashed #ccc;
    aspect-ratio: 4 / 3;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.upload-box:hover {
    border-color: #000;
    background: #fcfcfc;
}

.upload-box input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-preview {
    text-align: center;
    color: #bbb;
    /* font-family reset */
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    pointer-events: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    padding: 15px 25px;
    z-index: 5;
    pointer-events: none;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    font-family: 'Outfit';
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-overlay svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    margin-bottom: 5px;
}

.upload-box.multi .preview-overlay {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
}

.ba-upload-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Gallery Multiple Previews */
#galleryThumbsPreview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.gallery-thumb {
    aspect-ratio: 1 / 1;
    border: 1px solid #eee;
    background-size: cover;
    background-position: center;
    position: relative;
}

.gallery-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.form-actions {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 50px;
}

.btn-submit {
    background: #000;
    color: #fff;
    border: none;
    padding: 20px 60px;
    /* font-family reset */
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    background: #333;
    letter-spacing: 0.25em;
}

.btn-submit .loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -10px 0 0 -10px;
}

.btn-submit.loading .btn-text {
    visibility: hidden;
}

.btn-submit.loading .loader {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .project-form {
        padding: 30px;
    }

    .form-grid,
    .file-upload-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width,
    .file-group.ba-upload {
        grid-column: span 1;
    }

    .ba-upload-boxes {
        grid-template-columns: 1fr;
    }
}

/* --- Archive Project Grid --- */
.archive-grid-section {
    padding: 100px 0;
    background-color: #fff;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Restored to 3 columns as requested */
    gap: 40px;
    /* Increased gap for even more breathing room */
    margin-bottom: 80px;
}

.archive-card {
    background: #fff;
    border: none;
    /* Removed border for seamless image grid */
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    /* Added for overlay positioning */
    overflow: hidden;
}

.archive-card:hover {
    transform: translateY(-5px);
}

.archive-card-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f8f8f8;
    position: relative;
    border: 1px solid #EFEFEF;
    /* Individual image border */
}

.archive-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.archive-card:hover .archive-card-img img {
    transform: scale(1.1);
}

/* New Hover Overlay System */
.archive-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    /* Black semi-transparent filter */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    text-align: center;
    padding: 20px;
}

.archive-card:hover .archive-card-overlay {
    opacity: 1;
}

.overlay-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
}

.overlay-loc {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Outfit';
    font-size: 0.8rem;
    letter-spacing: 2px;
    transform: translateY(10px);
    transition: all 0.4s ease 0.2s;
}

.archive-card:hover .overlay-title,
.archive-card:hover .overlay-loc {
    transform: translateY(0);
}

/* Base card info HIDDEN as requested */
.archive-card-info {
    display: none;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 150px 0;
    font-size: 1rem;
    color: #999;
    letter-spacing: 0.1em;
    border: 1px dashed #eee;
}

@media (max-width: 1100px) {
    .archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 850px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Section padding managed by .editorial-detail-page */
.reveal {
    will-change: transform, opacity;
}

.archive-card {
    will-change: transform;
}

/* Ensure the specific editorial page class provides the actual padding */
/* --- Project Detail Editorial Hero --- */
.editorial-hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5%;
    overflow: hidden;
    background-color: #000;
}

.editorial-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.editorial-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.editorial-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.editorial-detail-page {
    background-color: var(--bg-color);
    padding: 100px 0 80px !important;
    width: 100%;
    position: relative;
    z-index: 1;
}

.editorial-container {
    max-width: 900px !important;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* 1. Centered Header */
.editorial-header {
    text-align: center;
    margin: 0 0 30px !important;
    width: 100%;
    max-width: 900px;
    padding: 0;
    position: relative;
    z-index: 10;
    opacity: 1 !important;
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.editorial-header h1 {
    /* font-family reset */
    font-size: 2.8rem;
    /* Reduced for a more elegant look */
    font-weight: 300;
    /* Thinner weight for high-end feel */
    letter-spacing: 0.25em;
    /* Increased spacing */
    color: #111;
    margin: 0;
    line-height: 1.2;
}

.editorial-meta {
    /* font-family reset */
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.editorial-meta span:not(.divider) {
    color: #444;
}

.editorial-meta .divider {
    color: #ddd;
    font-weight: 100;
}

/* 2. Focused Body */
.editorial-body {
    max-width: 900px;
    /* Aligned with metadata grid */
    margin: 0 auto 50px;
    /* Reduced margin-bottom */
    text-align: center;
}

.editorial-body p {
    font-size: 1.15rem;
    line-height: 2.3;
    color: #555;
    word-break: keep-all;
    letter-spacing: -0.02em;
    white-space: pre-wrap;
}

/* 3. Visual Visual Flow (Linear Stack) */
.editorial-visuals {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Reduced gap between images */
    width: 100%;
    max-width: 900px !important;
    padding: 0;
}

.main-visual {
    margin-bottom: 30px;
    /* Reduced margin-bottom */
    width: 100%;
    max-width: 630px !important;
    /* Reduced from 900px (30% reduction) */
    position: relative;
}

.main-visual .visual-item {
    width: 100%;
    max-width: 630px !important;
    /* Reduced from 900px (30% reduction) */
    margin: 0 auto;
}

/* Metadata Grid Styling */
.editorial-data-section {
    width: 100%;
    max-width: 900px;
    /* Match container */
    margin-bottom: 30px;
    /* Reduced margin-bottom */
    padding: 20px 0;
    /* Slightly reduced padding */
}

.detail-data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.detail-data-grid .data-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.detail-data-grid .data-key {
    /* font-family reset */
    font-size: 0.7rem;
    color: #999;
    letter-spacing: 0.15em;
}

.detail-data-grid .data-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: #111;
}

.visual-item {
    width: 100%;
}

.visual-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 0 !important;
    /* Strict sharp corners */
}

/* 4. Before/After Grid (Within flow) */
.editorial-ba-section {
    padding-top: 40px;
    margin-bottom: 20px;
}

.editorial-ba-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ba-item {
    position: relative;
}

.ba-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 0 !important;
}

.ba-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #000;
    color: #fff;
    padding: 6px 12px;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    /* font-family reset */
}

/* 5. Gallery Stack */
.editorial-gallery-stack {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Responsive Editorial */
@media (max-width: 900px) {
    .editorial-header h1 {
        font-size: 2.8rem;
    }

    .editorial-container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .editorial-ba-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Project Swiper Styles --- */
.project-swiper,
.detail-swiper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Ensure Home Swiper fills the aspect-ratio container */
.main-image-box .project-swiper {
    position: absolute;
    top: 0;
    left: 0;
}

.project-swiper .swiper-slide img,
.detail-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Custom Navigation arrows */
.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
    background: rgba(0, 0, 0, 0.2);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Custom Pagination */
.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff !important;
}

/* --- Admin Login Page --- */
.login-page {
    background: #ffffff;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 60px 40px;
    text-align: center;
}

.login-logo {
    width: 80px;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    font-weight: 300;
    margin-bottom: 10px;
}

.login-header p {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 40px;
}

.login-form {
    text-align: left;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #333;
    margin-bottom: 10px;
}

.login-form input {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 0;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #000;
}

.login-submit-btn {
    width: 100%;
    padding: 18px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.login-submit-btn:hover {
    background: #333;
}

.login-submit-btn.loading .btn-text {
    visibility: hidden;
}

.login-submit-btn.loading .btn-loader {
    display: block;
}

.btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.login-message {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #ff4d4d;
    min-height: 1.2em;
}

.login-footer {
    margin-top: 40px;
}

.login-footer a {
    text-decoration: none;
    color: #999;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #000;
}

/* --- Logout Button in Navigation --- */
.logout-btn {
    background: none;
    border: 1px solid #eee;
    padding: 8px 15px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.logout-btn:hover {
    background: #f8f8f8;
    border-color: #ccc;
}

/* Secret Login Link */
#secretLoginLink {
    cursor: pointer !important;
}

#secretLoginLink:hover {
    opacity: 0.8;
}

/* --- Admin Power Toolbar (Project List) --- */
.admin-card-toolbar {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.archive-card:hover .admin-card-toolbar {
    opacity: 1;
}

.admin-tool-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-tool-btn:hover {
    background: #000;
    color: #fff;
}

.admin-tool-btn svg {
    width: 14px;
    height: 14px;
}

.admin-tool-btn.delete:hover {
    background: #ff4d4d;
}

/* --- Block Editor (Detail Page) --- */
.admin-save-bar {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background: #000;
    color: #fff;
    padding: 12px 0;
    z-index: 1000;
    display: none;
    /* Shown only to admin */
    text-align: center;
}

.admin-save-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 8px 24px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.admin-save-btn:hover {
    opacity: 0.8;
}

.editable-text-block {
    width: 100%;
    border: 1px dashed transparent;
    padding: 10px;
    transition: border-color 0.3s ease;
    outline: none;
    min-height: 1em;
}

.editable-text-block:hover,
.editable-text-block:focus {
    border-color: #ddd;
    background: #fafafa;
}

.block-inserter {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 20px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.block-inserter:hover {
    opacity: 1;
}

.block-inserter::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: #eee;
    z-index: 1;
}

.insert-btn {
    width: 28px;
    height: 28px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
}

.block-inserter .inserter-menu {
    position: absolute;
    bottom: 45px;
    background: #fff;
    border: 1px solid #000;
    display: none;
    flex-direction: column;
    z-index: 100;
}

.block-inserter.active .inserter-menu {
    display: flex;
}

.menu-item {
    padding: 10px 20px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.menu-item:hover {
    background: #f8f8f8;
}

.detail-block-text {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    font-size: 1.15rem;
    line-height: 2.2;
    color: #555;
    text-align: center;
    word-break: keep-all;
    min-height: 1.5em;
    padding: 10px;
    border: 1px dashed transparent;
    outline: none;
}

.admin-mode .detail-block-text:hover,
.admin-mode .detail-block-text:focus {
    border-color: #ddd;
    background: #fafafa;
}

.admin-mode .detail-block-text:empty:not(:focus)::before {
    content: '여기에 내용을 입력하세요...';
    color: #ccc;
}


/* --- Modal System --- */
.modal {
    display: none;
    position: fixed;
    z-index: 10002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: block;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 1000px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.close-modal {
    color: #333;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover {
    color: #000;
}

#projectSliderWrapper {
    cursor: pointer;
}

.project-swiper {
    width: 100%;
    height: 100%;
}

.project-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.project-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}