/* ==========================================
   Heritage Page Specific Styles
   ========================================== */

:root {
    /* 브랜드 색상 체계 (자연, 생명, 신뢰) */
    --color-primary: #2D5F4F;           /* 주요 녹색: 자연, 생명 */
    --color-primary-dark: #1e4a3c;     /* 진한 녹색: 강조 */
    --color-primary-light: #e8f5f1;    /* 연한 녹색: 배경 */

    /* 보조 색상 */
    --color-secondary: #425b51;         /* 푸른 녹색: 신뢰, 안정 */
    --color-accent: #8b7355;            /* 갈색: 전통, 따뜻함 */
    --color-accent-light: #b89968;     /* 연한 갈색 */

    /* 기존 호환성 유지 */
    --cw-point-color: #2D5F4F;         /* 주요 강조색 (주황→녹색) */
    --footer-green: #425b51;

    /* 텍스트 색상 */
    --cw-heading-color: #121212;
    --cw-color-white: #ffffff;
    --cw-color-10: #f6f6f6;
    --cw-color-20: #EDEDED;
    --cw-color-30: #dedede;
    --cw-color-60: #999999;
    --cw-color-80: #555555;
    --cw-color-90: #343434;

}

html {
    scroll-behavior: smooth;
}

/* ==========================================
   Scroll Progress Bar
   ========================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* ==========================================
   Section Navigation (Desktop)
   ========================================== */
.section-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.section-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-nav li {
    margin: 14px 0;
}

.section-nav a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    text-decoration: none;
    padding: 4px 0;
}

.section-nav a::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(45, 95, 79, 0.2);
    border: 2px solid var(--color-primary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.section-nav a.active::after,
.section-nav a:hover::after {
    background: var(--color-primary);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(45, 95, 79, 0.4);
}

.section-nav span {
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 600;
    white-space: nowrap;
    background: white;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-nav a:hover span,
.section-nav a.active span {
    opacity: 1;
    transform: translateX(0);
}

/* Hero 섹션에서는 네비게이션 점 색상 변경 (흰색) */
.section-nav.hero-visible a::after {
    border-color: white;
    background: rgba(255, 255, 255, 0.3);
}

.section-nav.hero-visible a.active::after,
.section-nav.hero-visible a:hover::after {
    background: white;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.section-nav.hero-visible span {
    color: var(--color-primary);
}

@media (max-width: 1199px) {
    .section-nav {
        right: 20px;
    }
}

@media (max-width: 991px) {
    .section-nav {
        display: none;
    }
}

/* Container */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
}

.container-inner {
    width: 100%;
}

/* Section Title */
.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--cw-heading-color);
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 16px;
    color: var(--cw-color-80);
    text-align: center;
    margin-top: -40px;
    margin-bottom: 60px;
}

/* ==========================================
   1. Hero Section
   ========================================== */

.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)),
                url('../images/sections/workshop.png') no-repeat center center / cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ken Burns Effect */
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        background-size: 100% auto;
        background-position: center center;
    }
    100% {
        background-size: 115% auto;
        background-position: center top;
    }
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 20px;
}

/* Hero 순차적 등장 애니메이션 */
.hero-hook {
    animation: heroFadeInUp 1s ease-out 0.2s both;
}

.hero-title {
    animation: heroFadeInUp 1s ease-out 0.5s both;
}

.hero-stats {
    animation: heroFadeInUp 1s ease-out 0.8s both;
}

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

.hero-hook {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.95;
    font-style: italic;
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.hero-name {
    font-weight: 700;
    font-size: 1.2em;
    display: inline-block;
    border-bottom: 3px solid rgba(255, 255, 255, 0.6);
    padding-bottom: 4px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 3rem;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hero-stat-label {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 300;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.hero-since {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 0.05em;
}

/* Trust Banner */
.trust-banner {
    background: linear-gradient(135deg, #2d5f4f 0%, #425b51 100%);
    padding: 40px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    align-items: center;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.trust-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.trust-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trust-text strong {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.trust-text span {
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.4;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: inline-block;
    width: 2px;
    height: 30px;
    background: white;
    border-radius: 1px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateY(10px);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

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

/* ==========================================
   2. Philosophy Section
   ========================================== */

.philosophy-section {
    background: var(--cw-color-10);
    padding: 120px 0;
}

.philosophy-container {
    display: grid;
    grid-template-columns: 60% 1fr;
    gap: 60px;
    align-items: center;
}

.philosophy-text {
    font-size: 18px;
    line-height: 2;
    color: var(--cw-heading-color);
}

.philosophy-text p {
    margin-bottom: 2rem;
}

.philosophy-text p:first-child {
    font-size: 20px;
    font-weight: 600;
    color: var(--cw-point-color);
    margin-bottom: 2.5rem;
}

.philosophy-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.philosophy-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.philosophy-image:hover img {
    transform: scale(1.02);
}

/* ==========================================
   3. Timeline Section
   ========================================== */

.timeline-section {
    padding: 120px 0;
    background: white;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--cw-color-30);
    transform: translateX(-50%);
}

/* 타임라인 진행선 (스크롤에 따라 채워짐) */
.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--timeline-progress, 0%);
    background: linear-gradient(to bottom, var(--color-primary), var(--color-primary-dark, #1e4a3c));
    transition: height 0.4s ease-out;
}

.timeline-item {
    display: flex;
    margin-bottom: 80px;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 0 0 50%;
    padding: 0 40px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.timeline-item:nth-child(even) .timeline-year {
    text-align: left;
    padding-left: 40px;
    padding-right: 0;
}

.timeline-year h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--cw-point-color);
    margin: 0;
}

.timeline-content {
    flex: 0 0 50%;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.timeline-node {
    position: absolute;
    left: 50%;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--cw-point-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px var(--cw-color-10);
}

.timeline-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--cw-heading-color);
    margin: 0 0 8px 0;
}

.timeline-description {
    font-size: 14px;
    color: var(--cw-color-80);
    margin: 0;
}

/* Timeline 기본 스타일 - 항상 보이게 */
.timeline-section .timeline-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Stagger 지연 효과 */
.timeline-item:nth-child(1) { transition-delay: 0s; }
.timeline-item:nth-child(2) { transition-delay: 0.05s; }
.timeline-item:nth-child(3) { transition-delay: 0.1s; }
.timeline-item:nth-child(4) { transition-delay: 0.15s; }
.timeline-item:nth-child(5) { transition-delay: 0.2s; }
.timeline-item:nth-child(6) { transition-delay: 0.25s; }
.timeline-item:nth-child(7) { transition-delay: 0.3s; }
.timeline-item:nth-child(8) { transition-delay: 0.35s; }
.timeline-item:nth-child(9) { transition-delay: 0.4s; }
.timeline-item:nth-child(10) { transition-delay: 0.45s; }
.timeline-item:nth-child(11) { transition-delay: 0.5s; }

/* 스크롤 애니메이션용 - JS가 로드된 후에만 적용 */
.timeline-section .timeline-item.will-animate {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
}

.timeline-section .timeline-item.will-animate.scroll-revealed,
.timeline-section .timeline-item.scroll-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 타임라인 노드 pop 효과 */
.timeline-section .timeline-item.will-animate .timeline-node {
    transform: translateX(-50%) scale(0);
}

.timeline-section .timeline-item.scroll-revealed .timeline-node {
    transform: translateX(-50%) scale(1);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s;
}

/* 타임라인 연도/내용 슬라이드 효과 */
.timeline-section .timeline-item.will-animate .timeline-year,
.timeline-section .timeline-item.will-animate .timeline-content {
    opacity: 0;
}

.timeline-section .timeline-item.will-animate .timeline-year {
    transform: translateX(-30px);
}

.timeline-section .timeline-item.will-animate .timeline-content {
    transform: translateX(30px);
}

.timeline-section .timeline-item.will-animate:nth-child(even) .timeline-year {
    transform: translateX(30px);
}

.timeline-section .timeline-item.will-animate:nth-child(even) .timeline-content {
    transform: translateX(-30px);
}

.timeline-section .timeline-item.scroll-revealed .timeline-year,
.timeline-section .timeline-item.scroll-revealed .timeline-content {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease-out 0.1s, transform 0.5s ease-out 0.1s;
}

/* JS 미로드 안전장치: 2초 후 모든 숨겨진 요소 표시 */
@keyframes forceShow {
    to { opacity: 1; transform: translateY(0); }
}

.timeline-item.will-animate,
.section-title.animate-on-scroll,
.value-card.animate-on-scroll,
.education-card.animate-on-scroll,
.international-card.animate-on-scroll {
    animation: forceShow 0.5s ease-out 2s forwards;
}

/* ==========================================
   4. Achievements Section
   ========================================== */

.achievements-section {
    padding: 120px 0;
    background: var(--cw-color-10);
}

.achievement-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 32px;
    background: white;
    border: 2px solid var(--cw-color-30);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: var(--cw-heading-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: var(--cw-heading-color);
}

.tab-btn.active {
    background: var(--cw-heading-color);
    color: white;
    border-color: var(--cw-heading-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.achievement-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
    position: relative;
}

.achievement-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.achievement-year {
    display: inline-block;
    padding: 4px 12px;
    background: var(--cw-point-color);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 12px;
}

.achievement-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--cw-heading-color);
    margin: 12px 0 8px 0;
}

.achievement-card p {
    font-size: 14px;
    color: var(--cw-color-80);
    margin: 0;
}

/* ==========================================
   5. Innovation Section
   ========================================== */

.innovation-section {
    display: grid;
    grid-template-columns: 50% 50%;
    background: white;
    min-height: 600px;
}

.innovation-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2), transparent);
}

.innovation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.innovation-content {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--cw-color-10);
}

.innovation-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--cw-heading-color);
    margin: 0 0 24px 0;
    line-height: 1.4;
}

.innovation-content > p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--cw-color-80);
    margin: 0 0 16px 0;
}

.patent-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--cw-heading-color);
    margin: 40px 0 20px 0;
}

.patent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.patent-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--cw-color-80);
}

.patent-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cw-point-color);
    font-weight: 700;
    font-size: 16px;
}

/* ==========================================
   6. Education Section
   ========================================== */

.education-section {
    padding: 120px 0;
    background: white;
}

.stats-counter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 80px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--cw-point-color);
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 15px;
    color: var(--cw-color-80);
    margin: 0;
}

.education-content {
    margin-bottom: 60px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.education-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--cw-color-80);
    margin-bottom: 1.5rem;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.education-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--cw-color-10);
    border-radius: 8px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.education-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.education-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.education-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--cw-heading-color);
    margin: 0 0 12px 0;
}

.education-card p {
    font-size: 14px;
    color: var(--cw-color-80);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   7. International Section
   ========================================== */

.international-section {
    padding: 120px 0;
    background: var(--cw-color-10);
}

.international-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.international-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
}

.international-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.country-flag {
    font-size: 32px;
    margin-bottom: 12px;
}

.international-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--cw-heading-color);
    margin: 12px 0 16px 0;
}

.international-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.international-card li {
    font-size: 14px;
    color: var(--cw-color-80);
    line-height: 1.8;
    margin-bottom: 8px;
}

.international-card li:last-child {
    margin-bottom: 0;
}

/* ==========================================
   8. Publications Section
   ========================================== */

.publications-section {
    padding: 120px 0;
    background: white;
}

.book-carousel {
    position: relative;
    padding-bottom: 60px;
}

.book-item {
    text-align: center;
    padding: 20px;
}

.book-cover {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.book-item:hover .book-cover {
    transform: translateY(-8px);
}

.book-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--cw-heading-color);
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.book-item p {
    font-size: 13px;
    color: var(--cw-color-80);
    margin: 0;
}

/* Swiper Custom Styles */
.swiper-button-prev,
.swiper-button-next {
    color: var(--cw-heading-color);
    background: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--cw-color-30);
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 14px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--cw-heading-color);
    color: white;
}

.swiper-pagination-bullet {
    background: var(--cw-color-30);
}

.swiper-pagination-bullet-active {
    background: var(--cw-heading-color);
}

/* ==========================================
   9. Gallery Section
   ========================================== */

.gallery-section {
    padding: 120px 0;
    background: var(--cw-color-10);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    background: #f0f0f0;
}

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

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

/* Lightbox - 메이크샵 보안 필터 우회 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none; /* 기본 숨김 */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox.active {
    display: flex; /* 활성화 시 표시 */
    animation: fadeIn 0.3s ease-out;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 40px;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.lightbox-close:focus {
    outline: 2px solid white;
    outline-offset: 4px;
}

.lightbox-close:hover {
    opacity: 0.7;
}

/* ==========================================
   10. Legacy Section
   ========================================== */

.legacy-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9f6 0%, #eef2ed 50%, #f5f5f5 100%);
    overflow: hidden;
}

.legacy-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.legacy-content {
    max-width: 100%;
    text-align: left;
}

.legacy-content h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--cw-heading-color);
    margin: 0 0 32px 0;
    line-height: 1.5;
}

.legacy-content p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--cw-color-80);
    margin: 0 0 1.5rem 0;
}

.legacy-signature {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    margin: 32px 0;
    padding-left: 16px;
    border-left: 3px solid var(--color-primary);
}

/* Legacy Visual (우측 영역) */
.legacy-visual {
    position: relative;
}

.legacy-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.legacy-image-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.legacy-stats-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(45, 95, 79, 0.95), transparent);
    padding: 60px 24px 24px;
    display: flex;
    justify-content: space-around;
}

.legacy-stat {
    text-align: center;
    color: white;
}

.legacy-stat .stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.legacy-stat .stat-text {
    font-size: 0.875rem;
    opacity: 0.9;
}

.legacy-quote {
    margin-top: 24px;
    padding: 20px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-size: 15px;
    font-style: italic;
    color: var(--color-primary);
    text-align: center;
    line-height: 1.7;
    position: relative;
}

.legacy-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

.cta-button {
    display: inline-block;
    padding: 16px 48px;
    background: var(--cw-heading-color);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:active::after {
    transform: scale(2);
    opacity: 1;
    transition: 0s;
}

/* ==========================================
   Responsive Design
   ========================================== */

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

    .achievement-grid,
    .international-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .section-title {
        font-size: 32px;
    }

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

    .innovation-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .innovation-image {
        min-height: 400px;
    }

    .innovation-content {
        padding: 60px 40px;
    }

    .stats-counter {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .education-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .international-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .achievement-grid,
    .international-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    /* 모바일 Parallax 비활성화 (성능 최적화) */
    .hero-section {
        height: 85vh;
        min-height: 500px;
        background-attachment: scroll !important;
    }

    .hero-content {
        padding: 0 24px;
    }

    .hero-hook {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 1.25rem;
        line-height: 1.6;
    }

    .hero-stats {
        gap: 30px;
        margin-top: 2rem;
    }

    .hero-stat-number {
        font-size: 1.75rem;
    }

    .hero-stat-label {
        font-size: 0.75rem;
    }

    /* 모바일에서 스크롤 인디케이터 숨김 */
    .scroll-indicator {
        display: none;
    }

    /* 섹션 패딩 통일 */
    .philosophy-section,
    .timeline-section,
    .achievements-section,
    .education-section,
    .international-section,
    .publications-section,
    .gallery-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 30px;
        line-height: 1.4;
    }

    .section-subtitle {
        font-size: 14px;
        margin-top: -20px;
        margin-bottom: 40px;
    }

    .philosophy-text {
        font-size: 15px;
        line-height: 1.8;
    }

    .philosophy-text p {
        margin-bottom: 1.25rem;
    }

    /* Trust Banner 모바일 */
    .trust-banner {
        padding: 24px 0;
    }

    .trust-badges {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .trust-badge {
        padding: 12px;
        gap: 10px;
        flex-direction: column;
        text-align: center;
    }

    .trust-icon {
        font-size: 1.75rem;
    }

    .trust-text strong {
        font-size: 0.8rem;
    }

    .trust-text span {
        font-size: 0.7rem;
    }

    /* Timeline Mobile - 완전 재설계 */
    .timeline-container {
        padding-left: 0;
    }

    .timeline-line {
        left: 16px;
        width: 3px;
    }

    .timeline-item {
        flex-direction: column !important;
        padding-left: 50px;
        margin-bottom: 50px;
        position: relative;
    }

    .timeline-year {
        flex: none;
        text-align: left !important;
        padding: 0 !important;
        padding-right: 15px !important;
        margin-bottom: 8px;
    }

    .timeline-year h3 {
        font-size: 20px;
        margin-bottom: 0;
    }

    .timeline-content {
        flex: none;
        text-align: left !important;
        padding: 0 !important;
        padding-right: 15px !important;
    }

    .timeline-title {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 6px;
    }

    .timeline-description {
        font-size: 13px;
        line-height: 1.6;
        color: var(--cw-color-60);
    }

    .timeline-node {
        left: 16px;
        top: 6px;
        width: 10px;
        height: 10px;
    }

    /* 모바일에서 슬라이드 애니메이션 방향 통일 */
    .timeline-section .timeline-item.will-animate .timeline-year,
    .timeline-section .timeline-item.will-animate .timeline-content,
    .timeline-section .timeline-item.will-animate:nth-child(even) .timeline-year,
    .timeline-section .timeline-item.will-animate:nth-child(even) .timeline-content {
        transform: translateX(20px);
    }

    /* Achievements Mobile */
    .achievement-tabs {
        gap: 10px;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

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

    .achievement-card {
        padding: 20px;
    }

    /* Education Mobile */
    .stats-counter {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 50px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 13px;
    }

    .education-content {
        margin-bottom: 40px;
    }

    .education-content p {
        font-size: 15px;
        line-height: 1.7;
    }

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

    .education-card {
        padding: 30px 20px;
    }

    /* International Mobile */
    .international-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Gallery Mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Innovation Mobile */
    .innovation-content {
        padding: 40px 20px;
    }

    .innovation-content h2 {
        font-size: 24px;
    }

    .innovation-content > p {
        font-size: 15px;
    }

    /* Legacy Mobile */
    .legacy-section {
        padding: 80px 0;
    }

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

    .legacy-content {
        text-align: center;
    }

    .legacy-content h2 {
        font-size: 26px;
        margin-bottom: 24px;
    }

    .legacy-content p {
        font-size: 15px;
        line-height: 1.8;
    }

    .legacy-signature {
        text-align: center;
        border-left: none;
        padding-left: 0;
        border-top: 2px solid var(--color-primary);
        padding-top: 16px;
    }

    .legacy-visual {
        order: -1; /* 모바일에서 이미지 먼저 표시 */
    }

    .legacy-image-wrapper img {
        height: 280px;
    }

    .legacy-stats-overlay {
        padding: 40px 16px 16px;
    }

    .legacy-stat .stat-num {
        font-size: 1.5rem;
    }

    .legacy-stat .stat-text {
        font-size: 0.75rem;
    }

    .legacy-quote {
        font-size: 14px;
        padding: 16px 20px;
    }

    .legacy-quote::before {
        font-size: 3rem;
        top: -8px;
        left: 16px;
    }

    .cta-button {
        display: block;
        text-align: center;
    }

    /* Lightbox Mobile */
    .lightbox-close {
        top: 20px;
        right: 20px;
    }

    /* Swiper Mobile */
    .book-cover {
        max-width: 150px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 36px;
        height: 36px;
    }
}

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

    /* Hero 초소형 모바일 */
    .hero-section {
        height: 75vh;
        min-height: 450px;
    }

    .hero-hook {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .hero-name {
        font-size: 1em;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .section-subtitle {
        font-size: 13px;
        margin-bottom: 30px;
    }

    /* 타임라인 초소형 */
    .timeline-item {
        padding-left: 44px;
        margin-bottom: 40px;
    }

    .timeline-line {
        left: 12px;
    }

    .timeline-node {
        left: 12px;
        width: 8px;
        height: 8px;
    }

    .timeline-year h3 {
        font-size: 18px;
    }

    .timeline-title {
        font-size: 14px;
    }

    .timeline-description {
        font-size: 12px;
    }

    /* 통계 */
    .stats-counter {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-number {
        font-size: 26px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* 갤러리 */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* 카드들 */
    .achievement-card,
    .education-card,
    .international-card,
    .value-card {
        padding: 16px;
    }

    .achievement-card h3,
    .education-card h3,
    .international-card h3 {
        font-size: 15px;
    }

    .achievement-card p,
    .education-card p {
        font-size: 13px;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .patent-list li {
        font-size: 13px;
        padding-left: 22px;
    }

    /* Legacy */
    .legacy-section {
        padding: 50px 0;
    }

    .legacy-container {
        gap: 30px;
    }

    .legacy-content h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .legacy-content p {
        font-size: 14px;
    }

    .legacy-image-wrapper img {
        height: 220px;
    }

    .legacy-stats-overlay {
        padding: 30px 12px 12px;
    }

    .legacy-stat .stat-num {
        font-size: 1.25rem;
    }

    .legacy-quote {
        font-size: 13px;
        padding: 14px 16px;
        margin-top: 16px;
    }

    .cta-button {
        padding: 14px 32px;
        font-size: 14px;
    }

    /* CTA 버튼 */
    .section-cta {
        margin-top: 30px;
    }

    .cta-btn {
        padding: 16px 20px;
    }

    /* 플로팅 버튼 */
    .floating-shop-btn {
        padding: 12px !important;
    }
}

/* ==========================================
   Publications Section - Slick Carousel (메이크샵 최적화)
   ========================================== */

.book-carousel {
    padding: 0 40px; /* 화살표 공간 */
    margin-bottom: 60px;
}

.book-carousel .slick-slide {
    padding: 0 10px; /* 슬라이드 간격 */
}

.book-carousel .slick-list {
    margin: 0 -10px;
    overflow: hidden;
}

.book-item {
    text-align: center;
    padding: 20px;
    outline: none; /* Slick focus outline 제거 */
}

.book-cover {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-item:hover .book-cover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.book-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--cw-heading-color);
    line-height: 1.4;
}

.book-item p {
    font-size: 14px;
    color: var(--cw-color-60);
}

/* Slick 화살표 커스터마이징 */
.book-carousel .slick-prev,
.book-carousel .slick-next {
    width: 40px;
    height: 40px;
    z-index: 10;
}

.book-carousel .slick-prev {
    left: -40px;
}

.book-carousel .slick-next {
    right: -40px;
}

.book-carousel .slick-prev:before,
.book-carousel .slick-next:before {
    font-size: 40px;
    color: var(--cw-heading-color);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.book-carousel .slick-prev:hover:before,
.book-carousel .slick-next:hover:before {
    opacity: 1;
}

/* Slick 페이지네이션 */
.book-carousel .slick-dots {
    bottom: -40px;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.book-carousel .slick-dots li {
    margin: 0 5px;
}

.book-carousel .slick-dots li button:before {
    font-size: 12px;
    color: var(--cw-color-30);
    opacity: 1;
    transition: color 0.3s ease;
}

.book-carousel .slick-dots li.slick-active button:before {
    color: var(--cw-point-color);
}

.book-carousel .slick-dots li:hover button:before {
    color: var(--cw-heading-color);
}

/* 반응형 스타일 */
@media (max-width: 1199px) {
    .book-carousel {
        padding: 0 30px;
    }
}

@media (max-width: 767px) {
    .book-carousel {
        padding: 0 20px;
        margin-bottom: 40px;
    }

    .book-carousel .slick-prev {
        left: -20px;
    }

    .book-carousel .slick-next {
        right: -20px;
    }

    .book-carousel .slick-prev:before,
    .book-carousel .slick-next:before {
        font-size: 32px;
    }

    .book-item {
        padding: 15px;
    }

    .book-item h3 {
        font-size: 16px;
    }

    .book-item p {
        font-size: 13px;
    }

    .book-cover {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .book-carousel {
        padding: 0 10px;
    }

    .book-carousel .slick-prev,
    .book-carousel .slick-next {
        width: 30px;
        height: 30px;
    }

    .book-carousel .slick-prev:before,
    .book-carousel .slick-next:before {
        font-size: 24px;
    }
}

/* 모바일 하단 네비게이션 */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 991px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-primary, white);
        border-top: 1px solid var(--border-color, #e5e5e5);
        padding: 8px 0;
        padding-bottom: env(safe-area-inset-bottom, 8px);
        justify-content: space-around;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    }

    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 16px;
        color: var(--cw-color-60);
        text-decoration: none;
        font-size: 11px;
        font-weight: 500;
        transition: color 0.2s ease;
    }

    .mobile-bottom-nav a.active {
        color: var(--color-primary);
    }

    .mobile-bottom-nav a:hover {
        color: var(--color-primary);
    }

    .mobile-bottom-nav svg {
        stroke-width: 1.5;
    }

    .mobile-bottom-nav a.active svg {
        stroke-width: 2;
    }

    /* 하단 네비 공간 확보 */
    body {
        padding-bottom: 70px;
    }

    /* 플로팅 버튼 위치 조정 */
    .floating-shop-btn {
        bottom: 90px;
    }
}

/* 쇼핑몰 돌아가기 플로팅 버튼 - 우하단 고정 */
.floating-shop-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: rgba(66, 91, 81, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
}

.floating-shop-btn:hover {
    background: rgba(53, 74, 65, 0.98);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    transform: translateY(-4px) scale(1.05);
    opacity: 1;
}

.floating-shop-btn svg {
    transition: transform 0.3s ease;
}

.floating-shop-btn:hover svg {
    transform: translateX(-3px);
}

@media (max-width: 767px) {
    .floating-shop-btn {
        bottom: 30px;
        right: 20px;
        padding: 14px;
        border-radius: 50%;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }
    .floating-shop-btn span {
        display: none;
    }
    .floating-shop-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* ==========================================
   Section CTA Buttons (페르소나별 행동 유도)
   ========================================== */

.section-cta {
    margin-top: 60px;
    text-align: center;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 24px 40px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.cta-icon {
    font-size: 2rem;
    line-height: 1;
}

.cta-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.cta-text strong {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}

.cta-text small {
    font-size: 0.875rem;
    opacity: 0.85;
    line-height: 1.4;
}

.cta-arrow {
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.cta-btn:hover .cta-arrow {
    transform: translateX(8px);
}

/* CTA 스타일 변형 */
.cta-primary {
    background: linear-gradient(135deg, #2d5f4f 0%, #425b51 100%);
    color: white;
}

.cta-primary:hover {
    background: linear-gradient(135deg, #1e4a3c 0%, #354a41 100%);
}

.cta-secondary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2d5f4f;
    border: 2px solid #2d5f4f;
}

.cta-secondary:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #1e4a3c;
}

.cta-accent {
    background: linear-gradient(135deg, #8b7355 0%, #6f5c44 100%);
    color: white;
}

.cta-accent:hover {
    background: linear-gradient(135deg, #6f5c44 0%, #5a4936 100%);
}

/* 모바일 반응형 */
@media (max-width: 767px) {
    .section-cta {
        margin-top: 40px;
    }

    .cta-btn {
        flex-direction: column;
        padding: 20px 24px;
        gap: 12px;
        width: 100%;
        max-width: 320px;
    }

    .cta-text {
        text-align: center;
    }

    .cta-text strong {
        font-size: 1rem;
    }

    .cta-text small {
        font-size: 0.8125rem;
    }

    .cta-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .cta-btn {
        padding: 18px 20px;
    }

    .cta-icon {
        font-size: 1.75rem;
    }
}

/* ==========================================
   Philosophy Section - 재설계
   ========================================== */

/* Origin Story */
.origin-story {
    text-align: center;
    margin: 60px auto;
    max-width: 800px;
}

.story-quote {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-style: italic;
    line-height: 2;
    color: var(--cw-color-80);
    padding: 40px;
    background: var(--color-primary-light);
    border-left: 4px solid var(--color-primary);
    border-radius: 8px;
}

/* Philosophy Story Blocks */
.philosophy-story {
    max-width: 800px;
    margin: 80px auto;
}

.story-block {
    margin-bottom: 60px;
    padding: 0 20px;
}

.story-block h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--color-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.story-block p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 2;
    color: var(--cw-color-80);
    margin-bottom: 16px;
}

.story-block em {
    display: block;
    font-size: clamp(1.125rem, 1.75vw, 1.25rem);
    color: var(--color-primary);
    margin: 24px 0;
    padding-left: 20px;
    border-left: 3px solid var(--color-primary);
}

@media (max-width: 767px) {
    .philosophy-story {
        margin: 50px auto;
    }

    .story-block {
        margin-bottom: 40px;
        padding: 0;
    }

    .story-block h3 {
        font-size: 1.125rem;
    }

    .story-block p {
        font-size: 0.9375rem;
        line-height: 1.9;
    }
}

/* Before & After Container */
.before-after-container {
    margin: 80px 0;
}

.problem-solution {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}

.problem-box,
.solution-box {
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.problem-box {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
}

.solution-box {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #d4ebe5 100%);
}

.problem-box h3,
.solution-box h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    text-align: center;
}

.problem-box h3 {
    color: #c92a2a;
}

.solution-box h3 {
    color: var(--color-primary);
}

.problem-list,
.solution-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.problem-list li,
.solution-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.problem-icon,
.solution-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.problem-list strong,
.solution-list strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 4px;
    color: var(--cw-heading-color);
}

.problem-list p,
.solution-list p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--cw-color-80);
    margin: 0;
}

.solution-arrow {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
}

/* Core Values */
.core-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin: 60px 0;
}

.value-card {
    text-align: center;
    padding: 40px 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.value-card p {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--cw-color-80);
}

.value-card strong {
    color: var(--color-primary);
    font-weight: 700;
}

/* 모바일 반응형 */
@media (max-width: 991px) {
    .problem-solution {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .solution-arrow {
        transform: rotate(90deg);
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .origin-story {
        margin: 40px auto;
    }

    .story-quote {
        font-size: 1rem;
        padding: 24px 20px;
        line-height: 1.8;
        border-left-width: 3px;
    }

    .philosophy-story {
        margin: 50px auto;
    }

    .story-block {
        margin-bottom: 32px;
    }

    .story-block h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .story-block p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .story-block em {
        font-size: 0.95rem;
        margin: 16px 0;
        padding-left: 16px;
    }

    .problem-box,
    .solution-box {
        padding: 24px 16px;
    }

    .problem-box h3,
    .solution-box h3 {
        font-size: 1.125rem;
    }

    .core-values {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px 0;
    }

    .value-card {
        padding: 28px 20px;
    }

    .value-icon {
        font-size: 2.5rem;
        margin-bottom: 16px;
    }

    .value-card h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .value-card p {
        font-size: 0.875rem;
        line-height: 1.7;
    }

    .philosophy-image {
        margin-top: 40px;
    }

    .philosophy-image img {
        border-radius: 12px;
    }
}

/* ==========================================
   Scroll-Driven Animations
   ========================================== */

/* 섹션 타이틀 Reveal 효과 */
.section-title.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-title.scroll-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 텍스트 클립 Reveal (지원 브라우저) */
@supports (animation-timeline: view()) {
    .section-title.animate-on-scroll {
        opacity: 1;
        transform: none;
        animation: textReveal 1s ease-out forwards;
        animation-timeline: view();
        animation-range: entry 0% cover 40%;
    }

    @keyframes textReveal {
        from {
            opacity: 0;
            clip-path: inset(0 100% 0 0);
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            clip-path: inset(0 0 0 0);
            transform: translateY(0);
        }
    }
}

/* 카드 Stagger 애니메이션 */
.value-card.animate-on-scroll,
.education-card.animate-on-scroll,
.international-card.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.value-card.scroll-revealed,
.education-card.scroll-revealed,
.international-card.scroll-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger 지연 효과 */
.value-card:nth-child(1), .achievement-card:nth-child(1), .education-card:nth-child(1), .international-card:nth-child(1) { transition-delay: 0s; }
.value-card:nth-child(2), .achievement-card:nth-child(2), .education-card:nth-child(2), .international-card:nth-child(2) { transition-delay: 0.1s; }
.value-card:nth-child(3), .achievement-card:nth-child(3), .education-card:nth-child(3), .international-card:nth-child(3) { transition-delay: 0.2s; }
.value-card:nth-child(4), .achievement-card:nth-child(4) { transition-delay: 0.3s; }
.value-card:nth-child(5), .achievement-card:nth-child(5) { transition-delay: 0.4s; }
.value-card:nth-child(6), .achievement-card:nth-child(6) { transition-delay: 0.5s; }

/* Timeline 마커 pop 효과 */
.timeline-node {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.3s ease;
}

.timeline-item.scroll-revealed .timeline-node {
    animation: nodePopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes nodePopIn {
    0% { transform: translateX(-50%) scale(0.5); }
    70% { transform: translateX(-50%) scale(1.2); }
    100% { transform: translateX(-50%) scale(1); }
}

/* 이미지 Parallax 강화 */
.philosophy-image,
.innovation-image {
    overflow: hidden;
}

.philosophy-image img,
.innovation-image img {
    transition: transform 0.3s ease-out;
}

/* 스크롤 기반 Parallax (지원 브라우저) */
@supports (animation-timeline: view()) {
    .philosophy-image img {
        animation: parallaxScale 1s ease-out forwards;
        animation-timeline: view();
        animation-range: entry 0% exit 100%;
    }

    @keyframes parallaxScale {
        from {
            transform: scale(1.1) translateY(30px);
        }
        to {
            transform: scale(1) translateY(-30px);
        }
    }
}

/* ==========================================
   Gallery Filters
   ========================================== */

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 0 10px;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--cw-color-30);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cw-heading-color);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* 모바일 갤러리 필터 */
@media (max-width: 767px) {
    .gallery-filters {
        gap: 8px;
        margin-bottom: 24px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 0 20px 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .gallery-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
        flex-shrink: 0;
    }
}

/* 갤러리 아이템 필터 애니메이션 */
.gallery-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
    animation: galleryFadeIn 0.4s ease-out;
}

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

/* ==========================================
   Timeline Interactive Modal
   ========================================== */

.timeline-item {
    cursor: pointer;
}

.timeline-item:hover .timeline-node {
    box-shadow: 0 0 0 8px rgba(45, 95, 79, 0.2);
}

.timeline-item:hover .timeline-title {
    color: var(--color-primary);
}

.timeline-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.timeline-modal.active {
    opacity: 1;
    visibility: visible;
}

.timeline-modal .modal-content {
    background: var(--bg-primary, white);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.timeline-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.timeline-modal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--cw-color-10);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    color: var(--cw-heading-color);
}

.timeline-modal .modal-close:hover {
    background: var(--cw-color-20);
}

.timeline-modal .modal-year {
    display: inline-block;
    padding: 8px 20px;
    background: var(--color-primary);
    color: white;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    margin-bottom: 20px;
}

.timeline-modal .modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--cw-heading-color);
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.timeline-modal .modal-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--cw-color-80);
    margin: 0;
}

.timeline-modal .modal-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 24px;
}

/* 타임라인 모달 모바일 */
@media (max-width: 767px) {
    .timeline-modal .modal-content {
        width: 95%;
        max-height: 85vh;
        padding: 28px 24px;
        margin: 0 auto;
    }

    .timeline-modal .modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .timeline-modal .modal-year {
        font-size: 16px;
        padding: 6px 16px;
    }

    .timeline-modal .modal-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .timeline-modal .modal-description {
        font-size: 15px;
        line-height: 1.7;
    }
}

/* ==========================================
   Mobile Drawer Navigation
   ========================================== */

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--bg-primary, white);
    z-index: 10001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.mobile-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.drawer-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
}

.drawer-close {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: var(--cw-color-80);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.drawer-close:hover {
    color: var(--cw-heading-color);
}

.drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.drawer-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: var(--cw-heading-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.drawer-nav a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.drawer-nav a.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 600;
    border-left: 3px solid var(--color-primary);
}

.drawer-nav a svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color, #e5e5e5);
}

.drawer-cta {
    display: block;
    padding: 14px 20px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.drawer-cta:hover {
    background: var(--color-primary-dark);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 햄버거 버튼 */
.hamburger-btn {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-primary, white);
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background 0.3s ease;
}

.hamburger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--cw-heading-color);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 모바일에서 드로워 + 햄버거 표시, 하단 탭바 숨김 */
@media (max-width: 991px) {
    .hamburger-btn {
        display: flex;
    }

    /* 하단 탭바 대신 드로워 사용 */
    .mobile-bottom-nav {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }
}

/* 모바일 버튼 위치 통합 관리 */
@media (max-width: 767px) {
    .hero-section {
        animation: none;
        background-attachment: scroll !important;
    }

    .floating-shop-btn {
        bottom: 30px !important;
        right: 20px !important;
    }

    /* 햄버거 버튼 위치 조정 */
    .hamburger-btn {
        top: 16px;
        left: 16px;
        width: 40px;
        height: 40px;
    }
}
