/* bada.style - Avant-Garde Fashion Lookbook */
/* Palette: #0c2340, #f5f0e8, #ffffff, #000000, #d4726a, #c0c0c0 */
/* Typography: Montserrat" light with thin hairline returns. */
/* Layout: corner. trim symmetry with the opening. complete. editorial. */
/* Fonts: (Google Fonts: Bodoni Moda, Montserrat) */

:root {
    --ocean: #0c2340;
    --sand: #f5f0e8;
    --white: #ffffff;
    --black: #000000;
    --coral: #d4726a;
    --silver: #c0c0c0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ocean);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   SPREADS - Magazine-style full-viewport sections
   ========================================================================== */

.spread {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.spread-cover {
    background: var(--ocean);
    justify-content: flex-end;
    align-items: flex-end;
}

.spread-dark {
    background: var(--ocean);
}

.spread-light {
    background: var(--sand);
    color: var(--black);
}

.spread-back {
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   INSET BORDER FRAME - Page-within-a-page framing
   ========================================================================== */

.inset-border {
    position: absolute;
    inset: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease 0.3s;
}

.inset-white {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.inset-black {
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.spread.active .inset-border {
    opacity: 1;
}

/* ==========================================================================
   TRIM MARKS - Pre-press production references
   ========================================================================== */

.trim-mark {
    position: absolute;
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    font-size: 14px;
    color: var(--silver);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease 0.5s;
}

.spread.active .trim-mark {
    opacity: 0.4;
}

.tm-tl { top: 15px; left: 15px; }
.tm-tr { top: 15px; right: 15px; }
.tm-bl { bottom: 15px; left: 15px; }
.tm-br { bottom: 15px; right: 15px; }
.tm-dark { color: rgba(0, 0, 0, 0.25); }

/* ==========================================================================
   TOP LINE - Thin white horizontal line at 60px from top
   ========================================================================== */

.top-line {
    position: absolute;
    top: 60px;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
    transition: width 1.5s ease 0.2s;
}

.spread.active .top-line {
    width: 100%;
}

/* ==========================================================================
   DIAGONAL LINE - Visual dynamism across hero section
   ========================================================================== */

.diagonal-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    transform-origin: 0 100%;
    transform: rotate(-25deg);
    transition: width 2s ease 1.5s;
}

.spread.active .diagonal-line {
    width: 180%;
}

/* ==========================================================================
   COVER TITLE - Enormous brand name, overflows right edge
   ========================================================================== */

.cover-title {
    font-family: 'Bodoni Moda', serif;
    font-weight: 400;
    font-size: 25vw;
    line-height: 0.85;
    color: var(--white);
    padding: 0 0 8vh 5vw;
    white-space: nowrap;
    overflow: visible;
    position: relative;
    z-index: 2;
}

.cover-title .cursor {
    display: inline-block;
    width: 2px;
    height: 0.75em;
    background: var(--coral);
    margin-left: 0.05em;
    animation: cursorBlink 0.8s step-end infinite;
    vertical-align: baseline;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ==========================================================================
   PAGE NUMBERS - Large elegant Bodoni pagination
   ========================================================================== */

.page-number {
    position: absolute;
    font-family: 'Bodoni Moda', serif;
    font-weight: 400;
    font-size: clamp(60px, 10vw, 120px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease 0.8s;
}

.spread.active .page-number {
    opacity: 0.06;
}

.pn-br { bottom: 30px; right: 40px; }
.pn-bl { bottom: 30px; left: 40px; }
.pn-dark { color: var(--black); }

/* ==========================================================================
   VERTICAL LABELS - Rotated section identifiers along edges
   ========================================================================== */

.vertical-label {
    position: absolute;
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    color: rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.vertical-label.visible {
    opacity: 1;
    transform: translateY(0);
}

.vl-left { left: 35px; top: 50%; transform: translateY(-50%); }
.vl-right { right: 35px; top: 50%; transform: translateY(-50%); }
.vl-dark { color: rgba(0, 0, 0, 0.2); }

.vertical-label.visible.vl-left { transform: translateY(-50%); }
.vertical-label.visible.vl-right { transform: translateY(-50%); }

/* ==========================================================================
   OVERSIZED LETTERS - Massive cropped letterforms
   ========================================================================== */

.oversized-letter {
    position: absolute;
    font-family: 'Bodoni Moda', serif;
    font-weight: 900;
    font-size: 35vw;
    line-height: 0.8;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease;
}

.oversized-letter.visible {
    opacity: 1;
}

.ol-dark {
    color: rgba(255, 255, 255, 0.03);
    right: -5vw;
    top: 50%;
    transform: translateY(-50%);
}

.ol-light {
    color: rgba(0, 0, 0, 0.03);
    left: -5vw;
    top: 50%;
    transform: translateY(-50%);
}

/* ==========================================================================
   SPREAD CONTENT - Body text blocks
   ========================================================================== */

.spread-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.sc-right {
    margin-left: auto;
    margin-right: 10vw;
}

.sc-left {
    margin-left: 10vw;
}

.sc-center {
    margin: 0 auto;
    text-align: center;
}

/* Labels */
.label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: 1.5rem;
}

.label-dark { color: rgba(0, 0, 0, 0.4); }
.label-coral { color: var(--coral); letter-spacing: 0.2em; }

/* Headlines */
.spread-headline {
    font-family: 'Bodoni Moda', serif;
    font-weight: 400;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    line-height: 1.35;
    margin-bottom: 1.5rem;
}

.sh-dark { color: var(--black); }

.coral-word {
    color: var(--coral);
    font-style: italic;
}

/* Lead lines */
.lead-line {
    width: 200px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s ease 0.5s;
}

.ll-dark { background: rgba(0, 0, 0, 0.15); }

.ll-center {
    margin-left: auto;
    margin-right: auto;
    transform-origin: center;
}

.fade-in.visible .lead-line,
.spread.active .lead-line {
    transform: scaleX(1);
}

/* Body text */
.spread-body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.sb-dark { color: rgba(0, 0, 0, 0.55); }

/* ==========================================================================
   CENTERFOLD - The editorial centerpiece
   ========================================================================== */

.spread-centerfold {
    min-height: 100vh;
    background: var(--ocean);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-direction: column;
}

.centerfold-letter {
    font-family: 'Bodoni Moda', serif;
    font-weight: 900;
    font-size: 80vw;
    line-height: 0.75;
    color: rgba(212, 114, 106, 0.05);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    pointer-events: none;
    opacity: 0;
    transition: opacity 2.5s ease, transform 2.5s ease;
}

.centerfold-letter.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.centerfold-text {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 2s ease 0.5s, transform 2s ease 0.5s;
}

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

.centerfold-headline {
    font-family: 'Bodoni Moda', serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    line-height: 1.4;
    color: var(--white);
}

.centerfold-line {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: rgba(212, 114, 106, 0.3);
    transition: width 2s ease 1s;
}

.spread-centerfold.active .centerfold-line {
    width: 120px;
}

/* ==========================================================================
   BACK COVER - Symmetry with the opening
   ========================================================================== */

.back-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    font-size: 16px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0);
    transition: color 2s ease 0.5s;
}

.spread-back.active .back-brand {
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   FADE-IN ANIMATION - Scroll-triggered reveal
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Oversized letters should not translateY when visible */
.oversized-letter.fade-in.visible {
    transform: translateY(-50%);
}

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

@media (max-width: 768px) {
    .cover-title {
        font-size: 18vw;
        padding: 0 0 6vh 4vw;
    }

    .oversized-letter {
        font-size: 50vw;
    }

    .sc-right {
        margin-right: 6vw;
    }

    .sc-left {
        margin-left: 6vw;
    }

    .spread-content {
        max-width: 85vw;
    }

    .vertical-label {
        display: none;
    }

    .centerfold-letter {
        font-size: 90vw;
    }

    .centerfold-headline {
        font-size: clamp(1.2rem, 5vw, 2rem);
    }

    .page-number {
        font-size: clamp(40px, 8vw, 80px);
    }
}

@media (max-width: 480px) {
    .cover-title {
        font-size: 15vw;
    }

    .spread-headline {
        font-size: clamp(1.1rem, 5vw, 1.6rem);
    }

    .lead-line {
        width: 120px;
    }

    .inset-border {
        inset: 12px;
    }

    .trim-mark {
        font-size: 11px;
    }

    .tm-tl { top: 8px; left: 8px; }
    .tm-tr { top: 8px; right: 8px; }
    .tm-bl { bottom: 8px; left: 8px; }
    .tm-br { bottom: 8px; right: 8px; }
}
