/* 1. 기본 설정 */
:root {
    --bg-color: #ffffff;
    --text-main: #111111;
    --text-sub: #555555;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Pretendard', -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    word-break: keep-all;
}
a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
ul { list-style: none; }
img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 2. 헤더 (Smart Navbar) */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 9999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0; background: transparent; color: #fff;
}
header.scrolled {
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05); padding: 15px 0;
    color: #111; box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.header-container {
    max-width: 1600px; margin: 0 auto; padding: 0 40px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo a { font-size: 1.6rem; font-weight: 800; letter-spacing: 1px; }
.logo span { opacity: 0.6; font-weight: 400; }
.nav-menu ul { display: flex; gap: 50px; }
.nav-menu a {
    font-size: 0.9rem; font-weight: 500; letter-spacing: 1px;
    position: relative; padding: 5px 0; opacity: 0.7; transition: opacity 0.3s;
}
.nav-menu a:hover, .nav-menu a.active { opacity: 1; font-weight: 700; }
.nav-menu a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
    background-color: currentColor; transition: width 0.3s ease;
}
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.hamburger { display: none; cursor: pointer; }
.hamburger span { background-color: currentColor; display: block; width: 24px; height: 2px; margin-bottom: 5px; transition: 0.3s; }

/* 3. 공통 및 애니메이션 */
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.serif-italic { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; }
.scroll-animate { opacity: 0; transform: translateY(50px); transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.scroll-animate.active { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* 4. 히어로 섹션 (100vh) */
.hero {
    position: relative; height: 100vh; height: 100dvh; width: 100%;
    display: flex; justify-content: center; align-items: center;
}
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: fadeIn 2s ease-out forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); z-index: -1; }
.hero-text { text-align: center; color: #fff; width: 90%; z-index: 1; }
.hero-text h1 { font-size: clamp(2.5rem, 8vw, 5rem); font-weight: 700; line-height: 1.1; margin-bottom: 20px; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.hero-text p { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 300; }

/* 5. 브랜드 스토리 (100vh) */
.about-hero {
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
    position: relative; background-color: #fff; overflow: hidden;
}
.manifesto-text { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.manifesto-text h2 { font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1.25; font-weight: 300; margin-bottom: 40px; letter-spacing: -0.02em; }
.manifesto-text .highlight { font-weight: 700; position: relative; display: inline-block; }
.manifesto-text .highlight::after { content: ''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 15px; background-color: rgba(200, 200, 200, 0.2); z-index: -1; }
.manifesto-text .subtitle { font-size: 1.1rem; color: #555; line-height: 1.8; border-left: 2px solid #111; padding-left: 20px; margin-left: 5px; }
.circle-deco { position: absolute; top: -10%; right: -10%; width: 60vw; height: 60vw; border: 1px solid #e0e0e0; border-radius: 50%; z-index: 0; pointer-events: none; }

/* 6. 스크롤 시퀀스 (100vh 고정) */
.sequence-track { position: relative; height: 1200vh; background-color: #fafafa; }
.sticky-frame { position: sticky; top: 0; height: 100vh; width: 100%; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.split-stage { display: flex; width: 90%; max-width: 1200px; height: 60vh; align-items: center; gap: 60px; }
.img-side { flex: 1.2; position: relative; height: 100%; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 30px 60px rgba(0,0,0,0.1); }
.seq-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.1); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.seq-img.active { opacity: 1; transform: scale(1); z-index: 10; }
.text-side { flex: 1; position: relative; height: 100%; display: flex; align-items: center; }
.seq-text-group { position: absolute; top: 50%; left: 0; transform: translateY(calc(-50% + 40px)); width: 100%; opacity: 0; transition: all 0.6s ease-out; pointer-events: none; }
.seq-text-group.active { opacity: 1; transform: translateY(-50%); pointer-events: auto; z-index: 10; }
.seq-num { display: block; font-family: 'Playfair Display', serif; font-size: 4rem; color: #e0e0e0; line-height: 1; margin-bottom: 20px; }
.seq-text-group h3 { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 15px; color: #111; }
.seq-text-group p { font-size: 1.1rem; color: #555; line-height: 1.7; max-width: 400px; }
.seq-text-group.active p { animation: textSlideUp 0.8s ease-out 0.1s both; }
@keyframes textSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* 7. [NEW] Journal 섹션 (텍스트 리스트 디자인) */
.journal-text-section {
    padding: 180px 0; background: #fff; min-height: 100vh; /* 여기도 넉넉하게 */
}
.journal-header { margin-bottom: 80px; }
.journal-header .sub-label { display: block; font-size: 0.9rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 15px; color: #999; }
.journal-header h2 { font-size: 3.5rem; font-family: 'Playfair Display', serif; line-height: 1.1; }

.journal-list-text { display: flex; flex-direction: column; }
.j-item {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.4s ease;
}
.j-item:last-child { border-bottom: 1px solid #e0e0e0; }

.j-num { font-size: 1.2rem; font-weight: 600; color: #ccc; width: 80px; transition: color 0.4s; }
.j-info { flex: 1; padding-right: 40px; }
.j-info h3 { 
    font-size: 4rem; font-family: 'Playfair Display', serif; 
    font-weight: 400; color: #111; margin-bottom: 10px; 
    transition: transform 0.4s ease, color 0.4s;
}
.j-info p { font-size: 1.1rem; color: #777; opacity: 0; transform: translateY(10px); transition: all 0.4s; height: 0; overflow: hidden; }

.j-meta { display: flex; align-items: center; gap: 20px; width: 150px; justify-content: flex-end; font-size: 0.9rem; font-weight: 600; color: #111; }
.j-meta .arrow { font-size: 1.5rem; opacity: 0; transform: translateX(-20px); transition: all 0.4s; }

/* 호버 인터랙션 */
.j-item:hover { background-color: #fcfcfc; padding-left: 20px; padding-right: 20px; }
.j-item:hover .j-num { color: #111; }
.j-item:hover h3 { font-style: italic; transform: translateX(10px); color: #000; }
.j-item:hover p { opacity: 1; transform: translateY(0); height: auto; margin-top: 10px; }
.j-item:hover .j-meta .arrow { opacity: 1; transform: translateX(0); }

/* 8. Visit (CTA) */
.cta-section {
    position: relative; height: 80vh; display: flex; align-items: center; justify-content: center;
    color: #fff; text-align: center; overflow: hidden;
}
.cta-section::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1534349762230-e0cadf78f5da?q=80&w=2070');
    background-size: cover; background-position: center; z-index: -2;
    transform: scale(1.2); transition: transform 10s ease-out;
}
.cta-section:hover::after { transform: scale(1.0); }
.cta-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: -1; }
.cta-content h2 { font-size: 4rem; opacity: 0; letter-spacing: 10px; filter: blur(10px); transition: all 1s ease-out; }
.cta-content.active h2 { opacity: 1; letter-spacing: 0; filter: blur(0); }
.btn-primary {
    display: inline-block; padding: 20px 50px; margin-top: 50px;
    border: 1px solid #fff; border-radius: 50px; font-size: 1rem; font-weight: 600;
}
.btn-primary:hover { background: #fff; color: #000; }

/* 9. 푸터 */
footer { padding: 80px 40px; background: #f4f4f4; border-top: 1px solid #e0e0e0; font-size: 0.9rem; color: #555; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; max-width: 1600px; margin: 0 auto; }
.footer-info strong { display: block; margin-bottom: 10px; color: #111; font-size: 1.1rem; }
.footer-sns a { margin-right: 20px; text-decoration: underline; }

/* 반응형 */
@media (max-width: 768px) {
    .header-container { padding: 0 20px; }
    .hamburger { display: block; z-index: 10001; }
    .nav-menu { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: #fff; flex-direction: column; justify-content: center; z-index: 10000; }
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; text-align: center; gap: 30px; }
    .nav-menu a { font-size: 1.8rem; color: #111 !important; opacity: 1; }
    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); background-color: #111; }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background-color: #111; }
    
    .manifesto-text h2 { font-size: 2.2rem; }
    .split-stage { flex-direction: column; height: auto; padding: 40px 0; }
    .img-side { width: 100%; aspect-ratio: 4/3; flex: none; }
    .text-side { width: 100%; height: 200px; flex: none; text-align: center; }
    .seq-text-group { top: 0; transform: translateY(20px); }
    .seq-text-group.active { transform: translateY(0); }
    .sequence-track { height: 800vh; }
    
    .j-info h3 { font-size: 2rem; }
    .j-num, .j-meta { font-size: 0.8rem; width: auto; }
    .j-item { flex-direction: column; gap: 10px; }
    .j-meta { width: 100%; justify-content: flex-start; margin-top: 10px; color: #999; }
    .cta-content h2 { font-size: 2.5rem; }
}