/*
 * Lookbook page (/lookbook.php).
 * - lb-hero: full-bleed editorial hero with image, vignette, grain,
 *   issue pill, headline, sub, meta strip
 * - lb-looks: asymmetric grid of 8 looks, each pinned to a product
 * - lb-closing: editorial closing CTA block
 */

/* ---------- Hero ---------- */
.lb-hero {
    position: relative;
    min-height: clamp(540px, 78vh, 760px);
    overflow: hidden;
    isolation: isolate;
    color: var(--color-surface);
    margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.lb-hero-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.lb-hero-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
}
.lb-hero.is-in .lb-hero-image img {
    animation: lbHeroKenBurns 14s ease-out forwards;
}
@keyframes lbHeroKenBurns {
    from { transform: scale(1.02); }
    to   { transform: scale(1.10); }
}

.lb-hero-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.55) 100%),
        linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
}

.lb-hero-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.30;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><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.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 180px 180px;
    z-index: 2;
}

.lb-hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: flex-start;
    height: 100%;
    padding-top: clamp(3rem, 8vw, 6rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
    justify-content: flex-end;
    min-height: clamp(540px, 78vh, 760px);
    color: var(--color-surface);
}

.lb-hero-issue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--color-text);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    line-height: 1;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 600ms ease 200ms, transform 700ms ease 200ms;
}
.lb-hero.is-in .lb-hero-issue {
    opacity: 1;
    transform: translateY(0);
}
.lb-hero-issue-dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--color-accent);
    animation: lbHeroPulse 2s ease-in-out infinite;
}
@keyframes lbHeroPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.7); opacity: 0.4; }
}

.lb-hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 0;
    font-weight: 400;
    color: var(--color-surface);
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 800ms ease 350ms, transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 350ms;
}
.lb-hero.is-in .lb-hero-headline {
    opacity: 1;
    transform: translateY(0);
}

.lb-hero-sub {
    max-width: 52ch;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 700ms ease 550ms, transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1) 550ms;
}
.lb-hero.is-in .lb-hero-sub {
    opacity: 1;
    transform: translateY(0);
}

.lb-hero-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    opacity: 0;
    transition: opacity 700ms ease 750ms;
}
.lb-hero.is-in .lb-hero-meta {
    opacity: 1;
}
.lb-hero-meta strong {
    color: var(--color-surface);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-right: 4px;
}
.lb-hero-meta-sep {
    opacity: 0.45;
}

/* ---------- Looks grid ---------- */
.lb-looks-section {
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem);
}

.lb-looks-head {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.lb-looks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 1.6vw, 1.6rem);
    grid-auto-flow: dense;
}

.lb-look {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--lb-delay, 0ms),
                transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--lb-delay, 0ms);
}
[data-reveal-section] .lb-look {
    opacity: 0;
    transform: translateY(28px);
}
[data-reveal-section].is-in .lb-look {
    opacity: 1;
    transform: translateY(0);
}

.lb-look-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #d6d0c4 0%, #ece6db 100%);
    isolation: isolate;
}
.lb-look--tall .lb-look-image  { aspect-ratio: 3 / 4.4; }
.lb-look--short .lb-look-image { aspect-ratio: 4 / 5; }

.lb-look-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1100ms cubic-bezier(0.2, 0.8, 0.2, 1),
                filter   400ms ease;
}
.lb-look:hover .lb-look-image img {
    transform: scale(1.06);
    filter: brightness(0.94);
}

.lb-look-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.45) 100%);
    transition: background 400ms ease;
    z-index: 1;
    pointer-events: none;
}
.lb-look:hover .lb-look-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.55) 100%);
}

.lb-look-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.20;
    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: 2;
}

.lb-look-num {
    position: absolute;
    top: 12px;
    left: 14px;
    z-index: 3;
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--color-surface);
    letter-spacing: 0.10em;
    font-weight: 500;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.lb-look-cta {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 9px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 320ms ease, transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}
.lb-look:hover .lb-look-cta {
    opacity: 1;
    transform: translateY(0);
}
.lb-look-cta i {
    font-size: 9px;
    transition: transform 250ms ease;
}
.lb-look:hover .lb-look-cta i {
    transform: translateX(3px);
}

.lb-look-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
}
.lb-look-name {
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.25;
    transition: color 220ms ease;
}
.lb-look:hover .lb-look-name {
    color: var(--color-accent);
}
.lb-look-price {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text);
    flex-shrink: 0;
}
.lb-look-price-sale {
    font-weight: 700;
}
.lb-look-price-orig {
    color: var(--color-text-muted);
    text-decoration: line-through;
    font-size: 11.5px;
    font-weight: 400;
}

/* ---------- Closing block ---------- */
.lb-closing {
    background: var(--color-bg);
    padding: clamp(3rem, 6vw, 5.5rem) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.lb-closing-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-3);
}
.lb-closing .home-section-eyebrow {
    padding-left: 0;
    padding-right: 0;
}
.lb-closing .home-section-eyebrow::before {
    display: none;
}
.lb-closing-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin: 0;
    font-weight: 400;
    color: var(--color-text);
}
.lb-closing-sub {
    max-width: 44ch;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}
.lb-closing-actions {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-3);
    flex-wrap: wrap;
    justify-content: center;
}

/* ---------- Mobile ---------- */
@media (max-width: 992px) {
    .lb-looks {
        grid-template-columns: repeat(2, 1fr);
    }
    .lb-look--tall .lb-look-image,
    .lb-look--short .lb-look-image {
        aspect-ratio: 4 / 5;
    }
    .lb-look-cta {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 560px) {
    .lb-looks {
        grid-template-columns: 1fr;
    }
    .lb-hero-headline {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lb-hero-image img,
    .lb-hero-issue,
    .lb-hero-headline,
    .lb-hero-sub,
    .lb-hero-meta,
    .lb-look,
    .lb-look-image img,
    .lb-look-overlay,
    .lb-look-cta,
    .lb-look-name {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
