/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    background-color: #EDE9E3;
    color: #2E2A26;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    overflow-x: hidden;
}

/* Sections */
.section {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Section 1: Opening void */
.section-opening {
    background-color: #EDE9E3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.filing-code {
    position: absolute;
    top: 6vw;
    left: 6vw;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: #7A7670;
    letter-spacing: 0.01em;
    z-index: 10;
}

.fade-in-watermark {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: 64px;
    letter-spacing: 0.08em;
    color: #3A3632;
    opacity: 0;
    animation: fadeInWatermark 4s ease-in-out 2s forwards;
    position: absolute;
    right: 8vw;
    top: 50%;
    transform: translateY(-50%);
    text-transform: lowercase;
}

@keyframes fadeInWatermark {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.35;
    }
}

/* Section 2: Fragment field */
.section-fragment {
    background-color: #EDE9E3;
    position: relative;
    padding: 10vw;
}

.panel {
    position: absolute;
    background-color: rgba(244, 241, 236, 0.75);
    border: 1px solid #B8BCB4;
    padding: 2rem;
    max-width: 280px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #2E2A26;
    animation: slideReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes slideReveal {
    from {
        opacity: 0;
        transform: translate(-100%, 0);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

.panel-1 {
    top: 8vh;
    left: 8vw;
    animation-delay: 0.2s;
    border-top: 1px solid #C8CCD0;
    border-left: 1px solid #C8CCD0;
    transform: translateX(2px) translateY(-4px);
}

.panel-2 {
    top: 35vh;
    right: 12vw;
    max-width: 260px;
    animation-delay: 0.4s;
    border-bottom: 1px solid #C8CCD0;
    border-right: 1px solid #C8CCD0;
    transform: translateX(-3px) translateY(3px);
}

.panel-3 {
    top: 60vh;
    left: 20vw;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation-delay: 0.6s;
    border-top: 1px solid #C8CCD0;
    border-left: 1px solid #C8CCD0;
    transform: translateX(1px) translateY(-2px);
    overflow: hidden;
}

.panel-4 {
    bottom: 8vh;
    right: 8vw;
    max-width: 280px;
    animation-delay: 0.8s;
    border-bottom: 1px solid #C8CCD0;
    border-right: 1px solid #C8CCD0;
    transform: translateX(-4px) translateY(2px);
}

.architecture-illustration {
    width: 100%;
    height: 100%;
    stroke: #5C5650;
    opacity: 0.5;
}

/* Section 3: Compression zone */
.section-compression {
    background-color: #F4F1EC;
    padding: 10vh 5vw;
    position: relative;
}

.compression-columns {
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 5;
    height: 70vh;
    align-items: flex-start;
}

.narrow-column {
    width: 180px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2E2A26;
    position: relative;
}

.column-1 {
    margin-top: 0;
    transform: translateX(8px);
}

.column-2 {
    margin-top: 40px;
    transform: translateX(-5px);
}

.column-3 {
    margin-top: 80px;
    transform: translateX(3px);
}

.contour-illustration {
    position: absolute;
    width: 120px;
    height: 180px;
    stroke: #5C5650;
    opacity: 0.4;
    overflow: hidden;
}

.contour-illustration.left {
    left: -80px;
    top: 20%;
}

.contour-illustration.right {
    right: -80px;
    bottom: 15%;
}

.watermark-1 {
    position: absolute;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: 54px;
    letter-spacing: 0.06em;
    color: rgba(58, 54, 50, 0.35);
    transform: rotate(2deg);
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    z-index: 3;
    text-transform: lowercase;
    white-space: nowrap;
}

.redaction-mark {
    position: absolute;
    background-color: #1A1816;
    border-radius: 0;
}

.redact-1 {
    width: 140px;
    height: 16px;
    right: 5vw;
    top: 20%;
}

.redact-2 {
    width: 100px;
    height: 18px;
    left: 50%;
    top: 55%;
}

.redact-3 {
    width: 160px;
    height: 14px;
    right: 10vw;
    bottom: 25%;
}

/* Section 4: Frost corridor */
.section-frost {
    background-color: #EDE9E3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 10vw;
}

.frost-above {
    position: absolute;
    top: 8vh;
    left: 10vw;
    right: 10vw;
    max-width: 600px;
    font-size: 16px;
    line-height: 1.5;
    color: #2E2A26;
    z-index: 10;
}

.frost-band {
    width: 100%;
    height: 60vh;
    background: rgba(200, 210, 220, 0.08);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 2vh 0;
    z-index: 20;
}

.frost-content {
    max-width: 500px;
    padding: 2rem;
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #2E2A26;
    background: transparent;
    position: relative;
    z-index: 25;
}

.frost-below {
    position: absolute;
    bottom: 8vh;
    left: 10vw;
    right: 10vw;
    max-width: 600px;
    font-size: 16px;
    line-height: 1.5;
    color: #2E2A26;
    z-index: 10;
}

/* Section 5: Dissolution */
.section-dissolution {
    background-color: #EDE9E3;
    position: relative;
    padding: 10vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8vh;
}

.dissolving-content {
    max-width: 600px;
    font-size: 16px;
    line-height: 1.5;
    color: #2E2A26;
    opacity: 1;
    transition: opacity 0.1s ease;
}

.dissolve-1 {
    margin-left: 8vw;
    margin-top: 5vh;
}

.dissolve-2 {
    margin-left: 15vw;
}

.dissolving-illustration {
    position: absolute;
    bottom: 15vh;
    right: 8vw;
    width: 180px;
    height: 180px;
    stroke: #5C5650;
    opacity: 1;
    transition: opacity 0.1s ease;
}

.filing-code-end {
    position: absolute;
    bottom: 8vh;
    right: 10vw;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: #7A7670;
    opacity: 1;
    transition: opacity 0.1s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fade-in-watermark {
        font-size: 48px;
        right: 5vw;
        letter-spacing: 0.06em;
    }

    .panel {
        max-width: 200px;
        font-size: 14px;
        padding: 1.5rem;
    }

    .compression-columns {
        flex-direction: column;
        gap: 3rem;
        height: auto;
    }

    .narrow-column {
        width: 100%;
        max-width: 300px;
    }

    .watermark-1 {
        font-size: 36px;
    }

    .frost-content {
        font-size: 13px;
        padding: 1.5rem;
    }

    .filing-code {
        font-size: 11px;
    }
}

/* Utility styles for smooth animations */
body {
    scroll-behavior: smooth;
}

p {
    margin: 0;
}
