/*
 * Editorial asymmetric hero slider — motion + graphics edition.
 * Layout: image stack (7fr) | text + controls (5fr) | marquee strip.
 * Decorations: Ken-Burns image zoom, 3D parallax tilt, folio bignum,
 * stagger word-reveal, asterisk-in-ring ornament, vertical season
 * badge, floating "shop the look" product pin, image bottom vignette,
 * grain film overlay, brand-promise marquee.
 */

.hero-asymmetric {
    display: grid;
    grid-template-columns: 7fr 5fr;
    min-height: clamp(620px, 80vh, 820px);
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Decorative diagonal lines — top-right corner */
.hero-deco-lines {
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 180px;
    color: var(--color-accent);
    z-index: 2;
    pointer-events: none;
    opacity: 0.65;
    transform: scaleX(-1);
}

/* ---------- Image stack ---------- */
.hero-image-stack {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.hero-image-frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #7a6d5e 0%, #9a8775 60%, #bca895 100%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 900ms ease;
    will-change: opacity;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1);
}

.hero-slide.is-active img {
    animation: heroKenBurns 10s ease-out forwards;
}
@keyframes heroKenBurns {
    from { transform: scale(1) translate(0, 0); }
    to   { transform: scale(1.06) translate(-1%, -0.5%); }
}

.hero-image-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #7a6d5e 0%, #9a8775 60%, #bca895 100%);
}

/* Bottom vignette adds depth + helps pin contrast */
.hero-image-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent 55%,
        rgba(0, 0, 0, 0.18) 85%,
        rgba(0, 0, 0, 0.32) 100%
    );
    z-index: 2;
}

/* Grain film texture */
.hero-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.32;
    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: 3;
}

/* ---------- Floating product pin ---------- */
.hero-pin {
    position: absolute;
    left: clamp(16px, 2vw, 28px);
    bottom: clamp(16px, 2vw, 28px);
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 18px 10px 10px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
    max-width: 320px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroPinIn 700ms 1400ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transition: transform 280ms ease, box-shadow 280ms ease;
}
.hero-pin:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22), 0 4px 10px rgba(0, 0, 0, 0.10);
}
@keyframes heroPinIn {
    to { opacity: 1; transform: translateY(0); }
}
.hero-pin-thumb {
    position: relative;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}
.hero-pin-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}
.hero-pin-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--color-accent);
    color: var(--color-surface);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 5px;
    border-radius: 999px;
    text-transform: uppercase;
    line-height: 1;
    border: 2px solid var(--color-surface);
}
.hero-pin-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.hero-pin-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-accent);
    font-weight: 700;
}
.hero-pin-name {
    font-size: 13px;
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-text);
}
.hero-pin-price {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
}
.hero-pin-arrow {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--color-text);
    color: var(--color-surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-left: auto;
    transition: transform 260ms ease;
}
.hero-pin:hover .hero-pin-arrow {
    transform: translateX(2px);
}

/* Vertical season badge — right edge of image */
.hero-season {
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: right center;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-surface);
    padding: 9px 18px;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-text);
    z-index: 4;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.hero-season-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--color-accent);
    animation: heroPulse 2s ease-in-out infinite;
}
@keyframes heroPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.6); opacity: 0.4; }
}

/* ---------- Text column ---------- */
.hero-text {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4.5rem) clamp(2rem, 5vw, 4.5rem) clamp(3rem, 5vw, 5rem);
    color: var(--color-text);
    z-index: 5;
}

/* Folio big numeral — bottom-right, behind content */
.hero-bignum {
    position: absolute;
    bottom: clamp(0rem, -1vw, -1.5rem);
    right: clamp(-1rem, 1vw, 1.5rem);
    font-family: var(--font-heading);
    font-size: clamp(10rem, 17vw, 17rem);
    line-height: 0.82;
    font-weight: 400;
    color: var(--color-text);
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    letter-spacing: -0.04em;
}
.hero-bignum.is-anim {
    animation: heroBigNum 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes heroBigNum {
    0%   { opacity: 0;    transform: translateY(20px); }
    100% { opacity: 0.05; transform: translateY(0); }
}

/* Asterisk + ring ornament — top-left */
.hero-aster-wrap {
    position: absolute;
    top: clamp(2rem, 5vw, 4.5rem);
    left: clamp(2rem, 5vw, 4.5rem);
    width: 48px;
    height: 48px;
    z-index: 2;
}
.hero-aster-ring {
    position: absolute;
    inset: -8px;
    width: 64px;
    height: 64px;
    color: var(--color-accent);
    opacity: 0.5;
    animation: heroSpinSlow 22s linear infinite reverse;
}
.hero-aster {
    position: absolute;
    inset: 4px;
    width: 40px;
    height: 40px;
    color: var(--color-accent);
    animation: heroSpinSlow 14s linear infinite;
}
@keyframes heroSpinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.hero-text-inner {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-text-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: var(--space-3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 500ms ease, visibility 0s linear 500ms;
}
.hero-text-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 600ms ease 200ms, visibility 0s linear 0s;
}

.hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-2);
    position: relative;
    padding-left: 36px;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 500ms ease 250ms, transform 600ms ease 250ms;
}
.hero-eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 24px;
    height: 1.5px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 500ms ease 400ms;
}
.hero-text-slide.is-active .hero-eyebrow {
    opacity: 1;
    transform: translateX(0);
}
.hero-text-slide.is-active .hero-eyebrow::before {
    transform: scaleX(1);
}

/* Headline with stagger word-reveal (masked) */
.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4.4vw, 4.2rem);
    line-height: 1.04;
    letter-spacing: -0.015em;
    margin: 0;
    max-width: 12ch;
    font-weight: 400;
    color: var(--color-text);
}
.hero-word-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 1.04;
}
.hero-word {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--wd, 0ms) + 350ms),
                opacity   600ms ease calc(var(--wd, 0ms) + 350ms);
}
.hero-text-slide.is-active .hero-word {
    transform: translateY(0);
    opacity: 1;
}

/* CTA row */
.hero-cta-row {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-4);
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms ease 700ms, transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1) 700ms;
}
.hero-text-slide.is-active .hero-cta-row {
    opacity: 1;
    transform: translateY(0);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px 16px 32px;
    border: 1.5px solid var(--color-text);
    background: transparent;
    color: var(--color-text);
    font-size: 12px;
    letter-spacing: 0.18em;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: color 300ms ease, border-color 300ms ease;
    cursor: pointer;
}
.hero-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;
}
.hero-cta:hover {
    color: var(--color-surface);
}
.hero-cta:hover::before {
    transform: translateX(0);
}
.hero-cta > span,
.hero-cta > i {
    position: relative;
    z-index: 1;
}
.hero-cta > i {
    font-size: 10px;
    transition: transform 300ms ease;
}
.hero-cta:hover > i {
    transform: translateX(4px);
}

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

/* ---------- Controls ---------- */
.hero-controls {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-7);
    position: relative;
    z-index: 1;
}

.hero-arrow {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1.5px solid var(--color-text);
    background: transparent;
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 250ms ease, color 250ms ease, transform 250ms ease;
    font-size: 13px;
}
.hero-arrow:hover {
    background: var(--color-text);
    color: var(--color-surface);
    transform: scale(1.05);
}
.hero-arrow:active {
    transform: scale(0.95);
}

.hero-counter {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--color-text);
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    letter-spacing: 0.04em;
    min-width: 60px;
    justify-content: center;
}
.hero-counter-current {
    font-size: 22px;
    font-weight: 500;
}
.hero-counter-sep {
    opacity: 0.4;
    padding: 0 4px;
}
.hero-counter-total {
    color: var(--color-text-muted);
    font-size: 14px;
}

.hero-dots {
    display: flex;
    gap: 14px;
    margin-top: var(--space-5);
    position: relative;
    z-index: 1;
}
.hero-dot {
    width: 40px;
    height: 3px;
    border: 0;
    background: rgba(0, 0, 0, 0.10);
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    transition: background 250ms ease;
}
.hero-dot:hover {
    background: rgba(0, 0, 0, 0.18);
}
.hero-dot-fill {
    position: absolute;
    inset: 0;
    background: var(--color-text);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 300ms ease;
    border-radius: 2px;
}
.hero-dot.is-active .hero-dot-fill {
    transform: scaleX(1);
    animation: heroDotFill 5500ms linear forwards;
}
@keyframes heroDotFill {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ---------- Marquee strip ---------- */
.hero-marquee {
    grid-column: 1 / -1;
    overflow: hidden;
    background: var(--color-text);
    color: var(--color-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
    position: relative;
    z-index: 6;
}
.hero-marquee-track {
    display: inline-flex;
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
    white-space: nowrap;
    animation: heroMarquee 32s linear infinite;
    padding-right: clamp(28px, 4vw, 56px);
}
.hero-marquee-item {
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 600;
}
.hero-marquee-sep {
    color: var(--color-accent);
    font-size: 10px;
    opacity: 0.9;
}
@keyframes heroMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- Mobile ---------- */
@media (max-width: 992px) {
    .hero-asymmetric {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hero-image-stack {
        aspect-ratio: 4 / 5;
        max-height: 70vh;
    }
    .hero-deco-lines {
        width: 120px;
        height: 120px;
    }
    .hero-aster-wrap {
        width: 36px;
        height: 36px;
        top: 1.5rem;
        left: 1.5rem;
    }
    .hero-aster-ring {
        inset: -6px;
        width: 48px;
        height: 48px;
    }
    .hero-aster {
        inset: 4px;
        width: 28px;
        height: 28px;
    }
    .hero-pin {
        left: 12px;
        bottom: 12px;
        padding: 8px 14px 8px 8px;
        max-width: 260px;
    }
    .hero-pin-thumb {
        width: 38px;
        height: 38px;
    }
    .hero-pin-name {
        max-width: 140px;
    }
    .hero-text {
        padding: var(--space-7) var(--container-pad, 20px) var(--space-7);
    }
    .hero-text-inner {
        min-height: 180px;
    }
    .hero-headline {
        font-size: clamp(2rem, 8vw, 2.8rem);
        max-width: 100%;
    }
    .hero-bignum {
        font-size: clamp(7rem, 28vw, 12rem);
        bottom: -1rem;
        right: -0.5rem;
        opacity: 0.06;
    }
    .hero-season {
        display: none;
    }
    .hero-controls {
        margin-top: var(--space-5);
    }
    .hero-arrow {
        width: 42px;
        height: 42px;
    }
    .hero-dots {
        margin-top: var(--space-4);
    }
    .hero-dot {
        width: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide.is-active img,
    .hero-text-slide,
    .hero-eyebrow,
    .hero-eyebrow::before,
    .hero-word,
    .hero-cta-row,
    .hero-cta::before,
    .hero-cta > i,
    .hero-dot-fill,
    .hero-arrow,
    .hero-aster,
    .hero-aster-ring,
    .hero-season-dot,
    .hero-marquee-track,
    .hero-bignum,
    .hero-pin {
        transition: none !important;
        animation: none !important;
    }
    .hero-word {
        transform: none;
        opacity: 1;
    }
    .hero-pin {
        opacity: 1;
        transform: none;
    }
}
