/* Home hero — luxury banner typography */
.hero .hero-content {
    color: #fff;
}

.hero .hero-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    max-width: min(92vw, 820px);
}

.hero-headline {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
}

.hero-headline--primary {
    min-height: calc(clamp(36px, 9vw, 58px) * 1.2);
    margin-bottom: 0.15em;
}

.hero-headline--bottom {
    min-height: calc(clamp(13px, 2vw, 16px) * 1.5);
}

.hero-headline__phrase {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: block;
    opacity: 0;
    transform: translateY(1.15em) scale(0.98);
    filter: blur(8px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.7s ease;
    pointer-events: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    will-change: transform, opacity, filter;
}

.hero-headline__phrase.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    pointer-events: auto;
}

.hero-headline__phrase.is-leaving {
    opacity: 0;
    transform: translateY(-1em) scale(1.03);
    filter: blur(6px);
    transition-duration: 0.65s;
}

/* Main white heading — swap animation */
.hero-headline--swap .hero-headline__phrase {
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        letter-spacing 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-headline--swap .hero-headline__phrase:not(.is-active) {
    filter: blur(6px);
}

.hero-headline--swap .hero-headline__phrase.is-active {
    letter-spacing: 0.1em;
    filter: blur(0);
}

.hero-headline--swap .hero-headline__phrase.is-leaving {
    letter-spacing: 0.16em;
    filter: blur(4px);
}

/* Large white title — clean, no box behind text */
.hero-title__primary,
.hero-headline--primary .hero-headline__phrase {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(34px, 7.5vw, 56px);
    font-weight: 600;
    font-style: normal;
    text-transform: uppercase;
    line-height: 1.08;
    letter-spacing: 0.1em;
    color: #fff;
    -webkit-text-fill-color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28), 0 2px 20px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
}

/* Gold sub line */
.hero-subline {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2.5vw, 20px);
    margin-top: clamp(12px, 2vw, 20px);
    padding-top: 0;
    border: none;
    width: min(100%, 520px);
}

.hero-subline__accent {
    flex-shrink: 0;
    width: clamp(28px, 5vw, 48px);
    height: 1px;
    background: linear-gradient(90deg, rgba(201, 169, 98, 0.15), #d4b87a 50%, rgba(176, 141, 87, 0.2));
}

.hero-title__sub,
.hero-headline--bottom .hero-headline__phrase {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(11px, 1.65vw, 13px);
    line-height: 1.5;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #d4b87a;
    -webkit-text-fill-color: #d4b87a;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
    white-space: nowrap;
}

.hero-headline--bottom {
    flex: 1;
    min-width: 0;
}

.hero-headline--bottom .hero-headline__phrase.is-active {
    transition-delay: 0.08s;
}

.hero-headline--bottom .hero-headline__phrase.is-leaving {
    transition-delay: 0s;
}

/* Carousel */
.hero--carousel {
    position: relative;
    display: block;
    height: 100vh;
    overflow: hidden;
    isolation: isolate;
}

.hero--carousel .hero-carousel__media {
    position: absolute;
    inset: 0;
}

.hero--carousel .hero-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero--carousel .hero-slide.is-active {
    z-index: 2;
}

.hero--carousel .hero-slide .hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.58);
    transform: scale(1.08);
    opacity: 0;
    transition:
        opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
        transform 6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hero--carousel .hero-slide.is-active .hero-img {
    opacity: 1;
    transform: scale(1);
}

.hero--carousel .hero-slide.is-leaving .hero-img {
    opacity: 0;
    transition-duration: 1s;
}

.hero--carousel .hero-content {
    position: absolute;
    z-index: 5;
    bottom: clamp(48px, 8vw, 88px);
    left: clamp(24px, 5vw, 52px);
    right: clamp(24px, 5vw, 52px);
    pointer-events: none;
}

@media (max-width: 640px) {
    .hero-headline--primary .hero-headline__phrase,
    .hero-headline--bottom .hero-headline__phrase {
        white-space: normal;
        letter-spacing: 0.08em;
    }

    .hero-title__sub,
    .hero-headline--bottom .hero-headline__phrase {
        letter-spacing: 0.22em;
    }

    .hero-subline {
        flex-wrap: wrap;
    }
}

/* Category gender banners (Men / Women / Unisex) — heading swap */
.gender-banner .gender-banner-title {
    margin: 0 auto 40px;
    padding: 0;
    border: none;
}

.gender-banner .gender-banner-title__swap {
    margin: 0 auto;
    text-align: center;
    min-height: calc(clamp(28px, 6vw, 90px) * 1.15);
}

.gender-banner .gender-banner-title__swap .hero-title__primary,
.gender-banner .gender-banner-title__swap .hero-headline__phrase {
    font-family: 'Inter', sans-serif;
    font-size: clamp(28px, 6vw, 90px);
    font-weight: 400;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1.1;
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3), 0 2px 22px rgba(0, 0, 0, 0.18);
    justify-content: center;
}

.gender-banner .gender-banner-title__swap.hero-headline--primary {
    width: auto;
    max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .hero-headline__phrase,
    .hero--carousel .hero-slide .hero-img {
        transition: none;
        transform: none;
        filter: none;
    }

}
