/* gabs.review - Cinematic Documentary Screening Room */
/* Colors: #0d0b08 #c47832 #6b8f5e #8a7e6e #1a1610 #0f0d0a #e8dfd1 #2a251e #d4a05a */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0d0b08;
    color: #e8dfd1;
    font-family: 'Source Serif 4', 'Georgia', serif;
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ======== CHAPTER SECTIONS ======== */

.chapter {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: clamp(4rem, 10vh, 8rem) clamp(2rem, 8vw, 12rem);
}

.chapter-content {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.chapter-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======== OPENING CHAPTER ======== */

.chapter-opening {
    min-height: 100vh;
    background: radial-gradient(ellipse at center, #1a1610 0%, #0d0b08 70%, #0f0d0a 100%);
    flex-direction: column;
}

.chapter-opening .chapter-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    transform: none;
}

.chapter-opening .chapter-content.visible {
    opacity: 1;
}

.opening-korean {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(80px, 15vw, 180px);
    font-weight: 600;
    color: #c47832;
    line-height: 1;
    opacity: 0;
    animation: fadeInKorean 2s ease 0.5s forwards;
    text-shadow: 0 0 80px rgba(196, 120, 50, 0.3);
}

.opening-domain {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 5vw, 72px);
    font-weight: 600;
    color: #e8dfd1;
    letter-spacing: 0.02em;
    line-height: 1.15;
    opacity: 0;
    animation: fadeInDomain 1.5s ease 1.5s forwards;
}

.opening-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(12px, 1.5vw, 16px);
    font-weight: 400;
    color: #8a7e6e;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInSubtitle 1.5s ease 2.2s forwards;
}

.ginkgo-opening {
    width: 80px;
    height: auto;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInLeaf 1.5s ease 2.8s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeInScroll 1s ease 3.5s forwards, bobScroll 2s ease-in-out 4.5s infinite;
}

.scroll-indicator span {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8a7e6e;
}

/* ======== CHAPTER NARRATIVE ======== */

.chapter-narrative {
    background-color: #0d0b08;
}

.chapter-narrative:nth-child(even) {
    background: linear-gradient(180deg, #0d0b08 0%, #0f0d0a 50%, #0d0b08 100%);
}

.chapter-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 400;
    color: #c47832;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.chapter-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 4vw, 56px);
    font-weight: 600;
    color: #e8dfd1;
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.divider-line {
    width: 120px;
    height: 2px;
    margin-bottom: 2.5rem;
    overflow: visible;
}

.divider-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1s ease 0.3s;
}

.visible .divider-path {
    stroke-dashoffset: 0;
}

.chapter-text {
    font-family: 'Source Serif 4', 'Georgia', serif;
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 400;
    color: #e8dfd1;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.chapter-text em {
    font-style: italic;
    color: #c47832;
}

/* ======== GINKGO LEAF SVGs ======== */

.ginkgo-leaf {
    display: block;
    margin: 2.5rem auto;
    overflow: visible;
}

.ginkgo-right {
    width: 80px;
    height: auto;
    margin-left: auto;
    margin-right: 0;
}

.ginkgo-left {
    width: 100px;
    height: auto;
    margin-left: 0;
    margin-right: auto;
}

.leaf-path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 2s ease;
}

.leaf-vein {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.5s ease 0.5s;
}

.visible .leaf-path {
    stroke-dashoffset: 0;
}

.visible .leaf-vein {
    stroke-dashoffset: 0;
}

/* Leaf cluster */

.leaf-cluster {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin: 3rem auto;
}

.ginkgo-cluster-1,
.ginkgo-cluster-2,
.ginkgo-cluster-3 {
    width: 55px;
    height: auto;
}

.ginkgo-cluster-1 {
    transform: rotate(-15deg);
}

.ginkgo-cluster-2 {
    transform: translateY(-10px);
}

.ginkgo-cluster-3 {
    transform: rotate(15deg);
}

/* ======== VERDICT CHAPTER ======== */

.chapter-verdict {
    background: radial-gradient(ellipse at center, #1a1610 0%, #0d0b08 70%);
    min-height: 100vh;
}

.chapter-verdict .chapter-content {
    text-align: center;
}

.verdict-text {
    text-align: center;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.verdict-korean {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(60px, 10vw, 120px);
    font-weight: 600;
    color: #c47832;
    line-height: 1;
    margin: 2rem 0 1rem;
    text-shadow: 0 0 60px rgba(196, 120, 50, 0.25);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1.5s ease 0.5s, transform 1.5s ease 0.5s;
}

.visible .verdict-korean {
    opacity: 1;
    transform: scale(1);
}

.verdict-final {
    font-family: 'Source Serif 4', 'Georgia', serif;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 300;
    font-style: italic;
    color: #8a7e6e;
    text-align: center;
    margin-bottom: 3rem;
}

.ginkgo-final {
    width: 140px;
    height: auto;
    margin: 2rem auto;
}

/* ======== FOOTER ======== */

.site-footer {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #0f0d0a;
    border-top: 1px solid #2a251e;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.footer-domain {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    color: #8a7e6e;
    letter-spacing: 0.05em;
}

.footer-separator {
    color: #2a251e;
}

.footer-korean {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: #c47832;
}

/* ======== WATERMARK ======== */

.watermark-ginkgo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    max-width: 500px;
    height: auto;
    pointer-events: none;
    z-index: -1;
    opacity: 0.08;
}

.watermark-path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: drawWatermark 6s ease 1s forwards;
}

/* ======== ANIMATIONS ======== */

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

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

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

@keyframes fadeInLeaf {
    from { opacity: 0; }
    to { opacity: 0.6; }
}

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

@keyframes bobScroll {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes drawWatermark {
    to { stroke-dashoffset: 0; }
}

/* ======== RESPONSIVE ======== */

@media (max-width: 768px) {
    .chapter {
        padding: 3rem 1.5rem;
    }

    .chapter-content {
        max-width: 100%;
    }

    .leaf-cluster {
        gap: 0.5rem;
    }

    .ginkgo-cluster-1,
    .ginkgo-cluster-2,
    .ginkgo-cluster-3 {
        width: 40px;
    }

    .ginkgo-right {
        width: 60px;
    }

    .ginkgo-left {
        width: 70px;
    }

    .ginkgo-final {
        width: 100px;
    }

    .watermark-ginkgo {
        width: 80vw;
    }
}

@media (max-width: 480px) {
    .chapter {
        padding: 2rem 1rem;
    }

    .scroll-indicator {
        bottom: 2rem;
    }
}
