/* ============================================
   INDEX — 럭셔리 리디자인
   ============================================ */

/* --- 공통 유틸 --- */
.section-label {
    display: block;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    color: #999;
    margin-bottom: 60px;
}

.text-link {
    display: inline-block;
    font-family: 'Pretendard', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #999;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.3s;
    margin-top: 48px;
}
.text-link:hover { color: #C9A96E; }


/* ============================================
   비주얼 밴드 — 3분할 이미지
   ============================================ */
/* ── 텍스트 브릿지 ── */
.text-bridge {
    background: #0a0a0a;
    padding: 80px 24px;
    text-align: center;
}

.text-bridge-inner {
    max-width: 70%;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.text-bridge-inner.visible {
    opacity: 1;
    transform: translateY(0);
}

.text-bridge-sub {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: rgba(212, 175, 55, 0.6);
    margin-bottom: 32px;
}

.text-bridge-copy {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.01em;
    margin: 0;
}

.text-bridge-line {
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.4), transparent);
    margin: 40px auto 0;
}

/* ── 비주얼 밴드 슬라이드 ── */
.visual-band {
    padding: 0;
    background: #0a0a0a;
}

.visual-band-slider {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    height: 75vh;
    min-height: 500px;
    opacity: 0;
    transition: opacity 1s ease;
    cursor: grab;
    user-select: none;
}

.visual-band-slider:active {
    cursor: grabbing;
}

.visual-band-slider.visible {
    opacity: 1;
}

.visual-band-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.visual-band-track.dragging {
    transition: none;
}

.visual-band-track img {
    width: 100%;
    min-width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top;
    flex-shrink: 0;
    pointer-events: none;
}

/* 좌우 화살표 */
.vb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.visual-band-slider:hover .vb-arrow {
    opacity: 1;
}

.vb-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.vb-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

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

/* 인디케이터 도트 */
.vb-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.vb-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.vb-dot.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.3);
}

/* 드래그 힌트 */
.vb-drag-hint {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.6s ease;
    animation: hintPulse 2s ease-in-out infinite;
}

.vb-drag-hint.hidden {
    opacity: 0;
}

.vb-drag-hint i {
    font-size: 16px;
    animation: hintSlide 2s ease-in-out infinite;
}

@keyframes hintSlide {
    0%, 100% { transform: translateX(-4px); }
    50%      { transform: translateX(4px); }
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 1; }
}

@media (max-width: 768px) {
    .text-bridge {
        padding: 80px 24px;
    }
    .text-bridge-line {
        height: 40px;
    }
    .visual-band-slider {
        height: 60vh;
        min-height: 360px;
    }
    .vb-arrow {
        width: 40px;
        height: 40px;
        font-size: 14px;
        opacity: 1;
    }
    .vb-prev { left: 12px; }
    .vb-next { right: 12px; }
    .vb-drag-hint { display: none; }
}

@media (max-width: 576px) {
    .text-bridge {
        padding: 60px 20px;
    }
}


/* ============================================
   전후비교 — 시네마틱 분할
   ============================================ */
.compare-section {
    padding: 100px 0 60px;
    text-align: center;
    background: #fff;
}

.compare-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 90%;
    margin: 0 auto;
    overflow: hidden;
}

.compare-side {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

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

.compare-tag {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.6);
}

.compare-caption {
    font-family: 'Pretendard', sans-serif;
    font-size: 0.85rem;
    color: #999;
    margin-top: 28px;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .compare-section { padding: 100px 0 60px; }
    .compare-split { grid-template-columns: 1fr; }
    .compare-side { aspect-ratio: 4 / 3; }
}


/* ============================================
   서비스 — 미니멀 리스트
   ============================================ */
.service-list-section {
    padding: 100px 0 60px;
    text-align: center;
    background: #F7F5F0;
}

.service-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.service-row {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    align-items: center;
    padding: 28px 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: background 0.3s, color 0.3s;
}
.service-row:last-child {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.service-row:hover {
    background: rgba(255,255,255,0.6);
}
.service-row:hover .service-name {
    color: #C9A96E;
}

.service-name {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    transition: color 0.3s;
}

.service-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: #777;
    text-align: left;
    padding-left: 20px;
}

.service-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: #999;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .service-list-section { padding: 100px 0 60px; }
    .service-row {
        grid-template-columns: 1fr auto;
        gap: 4px;
    }
    .service-desc { display: none; }
    .service-name { font-size: 1rem; }
}


/* ============================================
   포트폴리오 — 매거진 비대칭 그리드
   ============================================ */
.collection-section {
    padding: 100px 0 60px;
    text-align: center;
    background: #fff;
}

.magazine-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 8px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.mag-item {
    overflow: hidden;
    position: relative;
}
.mag-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.mag-item:hover img {
    transform: scale(1.03);
}

/* 명시적 배치 */
.mag-large {
    grid-column: 1;
    grid-row: 1 / 3;
}
.mag-item:nth-child(2) { grid-column: 2; grid-row: 1; }
.mag-item:nth-child(3) { grid-column: 2; grid-row: 2; }
.mag-item:nth-child(4) { grid-column: 1; grid-row: 3; }
.mag-item:nth-child(5) { grid-column: 2; grid-row: 3; }

@media (max-width: 768px) {
    .collection-section { padding: 100px 0 60px; }
    .magazine-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .mag-large { grid-column: 1 / -1; grid-row: auto; }
    .mag-item:nth-child(2),
    .mag-item:nth-child(3),
    .mag-item:nth-child(4),
    .mag-item:nth-child(5) { grid-column: auto; grid-row: auto; }
}


/* ============================================
   후기 — 대형 인용문
   ============================================ */
.quote-section {
    padding: 100px 0;
    text-align: center;
    background: #F7F5F0;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quote-carousel {
    position: relative;
    max-width: 75%;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 200px;
}

.quote-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.quote-item.active {
    position: relative;
    opacity: 1;
}

.quote-mark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    line-height: 1;
    color: #C9A96E;
    opacity: 0.4;
    margin-bottom: 20px;
}

.quote-item p {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 400;
    line-height: 1.8;
    color: #333;
    letter-spacing: -0.01em;
}

.quote-author {
    display: block;
    margin-top: 32px;
    font-family: 'Pretendard', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: #999;
    letter-spacing: 0.05em;
}

.quote-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 48px;
}
.qdot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}
.qdot.active { background: #C9A96E; }

@media (max-width: 768px) {
    .quote-section { padding: 100px 0; min-height: auto; }
}


/* ============================================
   CTA — 풀블리드 다크
   ============================================ */
.cta-dark {
    position: relative;
    background: #1A1A1A;
    color: #fff;
    padding: 100px 24px;
    text-align: center;
    overflow: hidden;
}

.cta-dark-inner {
    position: relative;
    z-index: 1;
    max-width: 70%;
    margin: 0 auto;
}

.cta-dark h2 {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.cta-phone {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    transition: color 0.3s;
}
.cta-phone:hover { color: #C9A96E; }

.cta-sub {
    margin-bottom: 40px;
}
.cta-sub span {
    font-family: 'Pretendard', sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.cta-hours {
    font-family: 'Pretendard', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 8px;
}
.cta-address {
    font-family: 'Pretendard', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .cta-dark { padding: 100px 24px; }
}


/* ============================================
   푸터 — 럭셔리 미니멀
   ============================================ */
.footer-luxury {
    background: #111;
    color: #fff;
    padding: 80px 24px 48px;
    text-align: center;
}

.footer-luxury-inner {
    max-width: 75%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    letter-spacing: 0.25em;
    font-weight: 400;
}
.footer-brand-kr {
    font-family: 'Noto Serif KR', serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 24px;
}

.footer-nav {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}
.footer-nav a {
    font-family: 'Pretendard', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.3s;
}
.footer-nav a:hover { color: #fff; }

.footer-social-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.3s;
    margin-bottom: 32px;
}
.footer-social-link:hover { color: #fff; }

.footer-bottom-line {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
    width: 100%;
}
.footer-bottom-line span {
    font-family: 'Pretendard', sans-serif;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .footer-luxury { padding: 60px 24px 40px; }
    .footer-nav { gap: 20px; }
}


/* ============================================
   스크롤 애니메이션
   ============================================ */

/* 기본 페이드인 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 전후비교: 좌우 슬라이드인 */
.compare-before {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.compare-after {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
    transition-delay: 0.15s;
}
.compare-before.revealed,
.compare-after.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* 서비스 행: 시차 등장 */
.service-row {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease, background 0.3s, color 0.3s;
}
.service-row.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 포트폴리오 아이템: 시차 등장 (opacity만, transform은 그리드 깨짐 방지) */
.mag-item.anim-ready {
    opacity: 0;
    transition: opacity 0.7s ease;
}
.mag-item.revealed {
    opacity: 1;
}

/* 섹션 라벨: 레터스페이싱 확장 */
.section-label {
    opacity: 0;
    letter-spacing: 0.15em;
    transition: opacity 0.8s ease, letter-spacing 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.section-label.revealed {
    opacity: 1;
    letter-spacing: 0.35em;
}

/* compare-caption 페이드인 */
.compare-caption {
    opacity: 0;
    transition: opacity 0.8s ease 0.4s;
}
.compare-caption.revealed {
    opacity: 1;
}
