/*
 * Editorial lookbook teaser.
 * Layout: image collage (main + stacked secondary) on the left,
 * rich text + folio numeral + asterisk ring + outlined CTA on the right.
 * Motion: Ken-Burns zoom on main image, scroll-reveal lift, hover lift
 * on secondary image, big-numeral fade.
 */

.lookbook {
    padding: clamp(3rem, 6vw, 5.5rem) 0;
    background: var(--color-surface);
    position: relative;
    overflow: hidden;
}

.lookbook-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
    position: relative;
}

/* ---------- Media side ---------- */
.lookbook-media {
    position: relative;
}

.lookbook-image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #5a4a3d 0%, #8a7461 50%, #bca895 100%);
    isolation: isolate;
}

.lookbook-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 1400ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}
.lookbook.is-in .lookbook-image img {
    animation: lookbookKenBurns 16s ease-out forwards;
}
@keyframes lookbookKenBurns {
    from { transform: scale(1)    translate(0, 0); }
    to   { transform: scale(1.06) translate(-1%, -0.6%); }
}

.lookbook-image-placeholder {
    background: linear-gradient(135deg, #5a4a3d 0%, #8a7461 50%, #bca895 100%);
}

/* Vignette + grain overlay */
.lookbook-image-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.22) 100%);
    z-index: 2;
}

.lookbook-image-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.22;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 160px 160px;
    z-index: 3;
}

/* Issue badge — top-left of main image */
.lookbook-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--color-text);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    line-height: 1;
}
.lookbook-badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--color-accent);
    animation: lookbookPulse 2s ease-in-out infinite;
}
@keyframes lookbookPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.6); opacity: 0.4; }
}

/* Secondary stacked image — overlaps bottom-right of main */
.lookbook-image-secondary {
    position: absolute;
    right: -8%;
    bottom: -10%;
    width: 42%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
    z-index: 4;
    border: 8px solid var(--color-surface);
    isolation: isolate;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1) 350ms, opacity 700ms ease 350ms;
}
.lookbook.is-in .lookbook-image-secondary {
    transform: translateY(0);
    opacity: 1;
}
.lookbook-image-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lookbook-image-secondary:hover img {
    transform: scale(1.06);
}

/* Caption pin in the gutter (top-left, outside the image) */
.lookbook-pin {
    position: absolute;
    top: -22px;
    left: 0;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-text-muted);
}
.lookbook-pin-line {
    display: inline-block;
    width: 32px;
    height: 1.5px;
    background: var(--color-accent);
}

/* ---------- Text side ---------- */
.lookbook-text {
    position: relative;
    display: flex;
    flex-direction: column;
}

.lookbook-aster-wrap {
    position: absolute;
    top: -8px;
    left: 0;
    width: 40px;
    height: 40px;
}
.lookbook-aster-ring {
    position: absolute;
    inset: -8px;
    width: 56px;
    height: 56px;
    color: var(--color-accent);
    opacity: 0.5;
    animation: lookbookSpin 22s linear infinite reverse;
}
.lookbook-aster {
    position: absolute;
    inset: 4px;
    width: 32px;
    height: 32px;
    color: var(--color-accent);
    animation: lookbookSpin 14s linear infinite;
}
@keyframes lookbookSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Big ghosted folio number */
.lookbook-bignum {
    position: absolute;
    top: -1rem;
    right: -1rem;
    font-family: var(--font-heading);
    font-size: clamp(7rem, 13vw, 13rem);
    line-height: 0.85;
    font-weight: 400;
    color: var(--color-text);
    opacity: 0;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.04em;
    transition: opacity 800ms ease 400ms;
}
.lookbook.is-in .lookbook-bignum {
    opacity: 0.05;
}

.lookbook-text-inner {
    position: relative;
    z-index: 1;
    padding-top: clamp(2rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.lookbook-eyebrow {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-accent);
    position: relative;
    padding-left: 32px;
    display: inline-block;
    align-self: flex-start;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 600ms ease 250ms, transform 700ms ease 250ms;
}
.lookbook-eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 22px;
    height: 1.5px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 600ms ease 450ms;
}
.lookbook.is-in .lookbook-eyebrow {
    opacity: 1;
    transform: translateX(0);
}
.lookbook.is-in .lookbook-eyebrow::before {
    transform: scaleX(1);
}

.lookbook-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -0.015em;
    margin: 0;
    font-weight: 400;
    color: var(--color-text);
    max-width: 14ch;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms ease 350ms, transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1) 350ms;
}
.lookbook.is-in .lookbook-headline {
    opacity: 1;
    transform: translateY(0);
}

.lookbook-sub {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--color-text-muted);
    max-width: 42ch;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 700ms ease 500ms, transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1) 500ms;
}
.lookbook.is-in .lookbook-sub {
    opacity: 1;
    transform: translateY(0);
}

.lookbook-cta-row {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-3);
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 700ms ease 700ms, transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1) 700ms;
}
.lookbook.is-in .lookbook-cta-row {
    opacity: 1;
    transform: translateY(0);
}

.lookbook-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 26px 14px 28px;
    border: 1.5px solid var(--color-text);
    background: transparent;
    color: var(--color-text);
    font-size: 11px;
    letter-spacing: 0.18em;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: color 300ms ease;
    cursor: pointer;
}
.lookbook-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-text);
    transform: translateX(-101%);
    transition: transform 400ms cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 0;
}
.lookbook-cta:hover {
    color: var(--color-surface);
}
.lookbook-cta:hover::before {
    transform: translateX(0);
}
.lookbook-cta > span,
.lookbook-cta > i {
    position: relative;
    z-index: 1;
}
.lookbook-cta > i {
    font-size: 10px;
    transition: transform 300ms ease;
}
.lookbook-cta:hover > i {
    transform: translateX(3px);
}

.lookbook-cta-link {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 1px solid currentColor;
    transition: color 250ms ease, transform 250ms ease;
}
.lookbook-cta-link:hover {
    color: var(--color-accent);
    transform: translateX(2px);
}

/* Magazine meta strip */
.lookbook-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    line-height: 1.4;
}
.lookbook-meta strong {
    color: var(--color-text);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-right: 4px;
}
.lookbook-meta-sep {
    opacity: 0.35;
}

/* ---------- Mobile ---------- */
@media (max-width: 992px) {
    .lookbook-inner {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    .lookbook-image {
        aspect-ratio: 4 / 5;
    }
    .lookbook-image-secondary {
        width: 38%;
        right: -4%;
        bottom: -6%;
        border-width: 6px;
    }
    .lookbook-bignum {
        font-size: clamp(5rem, 20vw, 9rem);
        top: -0.5rem;
        right: 0;
    }
    .lookbook-aster-wrap {
        width: 32px;
        height: 32px;
    }
    .lookbook-aster-ring {
        inset: -6px;
        width: 44px;
        height: 44px;
    }
    .lookbook-aster {
        inset: 4px;
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 640px) {
    .lookbook-image-secondary {
        position: relative;
        right: auto;
        bottom: auto;
        width: 60%;
        margin: -10% 0 0 auto;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lookbook-image img,
    .lookbook-image-secondary,
    .lookbook-image-secondary img,
    .lookbook-bignum,
    .lookbook-eyebrow,
    .lookbook-eyebrow::before,
    .lookbook-headline,
    .lookbook-sub,
    .lookbook-cta-row,
    .lookbook-cta::before,
    .lookbook-cta > i,
    .lookbook-aster,
    .lookbook-aster-ring,
    .lookbook-badge-dot {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
