/* monopole.style - Avant-Garde Fashion Lookbook */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #0a0a0a;
    font-family: 'Crimson Text', serif;
    color: #3a3632;
    overflow-x: hidden;
}

/* Page Counter */
#page-counter {
    position: fixed;
    bottom: 24px;
    right: 24px;
    font-family: 'Archivo', sans-serif;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a8680;
    z-index: 100;
}

/* Spreads */
.spread {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cover */
#cover {
    background: #0a0a0a;
    flex-direction: column;
    gap: 0;
}

#cover-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #d4d0c8;
    line-height: 0.85;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#cover-title.visible {
    opacity: 1;
    transform: scale(1);
}

.cover-rule {
    width: 0;
    height: 1px;
    background: #b8b0a0;
    margin: 20px 0;
    transition: width 0.6s ease-out 0.5s;
}

.cover-rule.visible {
    width: 30vw;
}

.cover-subtitle {
    font-family: 'Archivo', sans-serif;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a8680;
    opacity: 0;
    transition: opacity 0.5s ease-out 1s;
}

.cover-subtitle.visible {
    opacity: 1;
}

/* Spread 1: The Silhouette */
#spread-1 {
    display: flex;
}

.split-left {
    width: 50%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.split-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.silhouette-svg {
    width: 60%;
    max-height: 80vh;
}

.sil-line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 1.5s ease-out;
}

.split-left.visible .sil-line {
    stroke-dashoffset: 0;
}

.split-right {
    width: 50%;
    height: 100%;
    background: #f5f0e8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10vh 8vw;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.split-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.spread-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #0a0a0a;
    line-height: 0.85;
    margin-bottom: 32px;
}

.editorial-text p {
    font-family: 'Crimson Text', serif;
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    font-weight: 400;
    color: #3a3632;
    line-height: 1.8;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.split-right.visible .editorial-text p:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.split-right.visible .editorial-text p:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.split-right.visible .editorial-text p:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

/* Spread 2: The Pattern */
#spread-2 {
    background: #2a2624;
    position: relative;
}

.pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cline x1='0' y1='48' x2='24' y2='0' stroke='%23b8b0a0' stroke-width='0.5' opacity='0.2'/%3E%3Cline x1='24' y1='48' x2='48' y2='0' stroke='%23b8b0a0' stroke-width='0.5' opacity='0.2'/%3E%3Cline x1='0' y1='0' x2='24' y2='48' stroke='%23b8b0a0' stroke-width='0.5' opacity='0.15'/%3E%3C/svg%3E");
    background-size: 48px 48px;
    opacity: 0;
    transition: opacity 0.6s ease-out;
    animation: patternZoom 30s linear infinite;
}

.pattern-bg.visible {
    opacity: 1;
}

@keyframes patternZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

.pattern-text-column {
    position: relative;
    z-index: 1;
    max-width: 400px;
    margin-left: auto;
    margin-right: 10vw;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.pattern-text-column.visible {
    opacity: 1;
    transform: translateY(0);
}

.dark-title {
    color: #d4d0c8;
}

.pattern-text-column p {
    font-family: 'Crimson Text', serif;
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    font-weight: 400;
    color: #d4d0c8;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Spread 3: The Detail */
#spread-3 {
    background: #e8e2d8;
    position: relative;
}

.diagonal-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.diag-path {
    stroke-dasharray: 142;
    stroke-dashoffset: 142;
    transition: stroke-dashoffset 1.2s ease-out;
}

#spread-3.active .diag-path {
    stroke-dashoffset: 0;
}

.detail-zone-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: #f5f0e8;
    opacity: 0;
    transition: opacity 0.5s ease-out 0.6s;
}

#spread-3.active .detail-zone-top {
    opacity: 1;
}

.detail-zone-bottom {
    position: absolute;
    bottom: 10vh;
    left: 10vw;
    max-width: 500px;
    z-index: 2;
}

.detail-zone-bottom .spread-title {
    color: #3a3632;
}

.detail-text {
    font-family: 'Crimson Text', serif;
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    font-weight: 400;
    color: #3a3632;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease-out 0.8s, transform 0.4s ease-out 0.8s;
}

#spread-3.active .detail-text {
    opacity: 1;
    transform: translateY(0);
}

/* Spread 4: The Collection */
#spread-4 {
    background: #f5f0e8;
    flex-direction: column;
    gap: 40px;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    max-width: 480px;
    width: 80vw;
}

.grid-square {
    aspect-ratio: 1;
    border: 1px solid #b8b0a0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15%;
    background: #f5f0e8;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.grid-square.visible {
    opacity: 1;
    transform: translateY(0);
}

.grid-square:hover {
    background: #e8e2d8;
}

.grid-square svg {
    width: 100%;
    height: 100%;
}

.fin-text {
    font-family: 'Archivo', sans-serif;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8a8680;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.fin-text.visible {
    opacity: 1;
}

/* Thin section dividers */
.spread + .spread::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #b8b0a0;
    z-index: 10;
}

/* Responsive */
@media (max-width: 768px) {
    #spread-1 {
        flex-direction: column;
    }

    .split-left,
    .split-right {
        width: 100%;
        height: 50%;
    }

    .split-right {
        padding: 5vh 6vw;
    }

    .pattern-text-column {
        margin: 0 auto;
        padding: 0 6vw;
    }

    .collection-grid {
        max-width: 320px;
    }
}
