.hero-swiper:not(.swiper-initialized) .swiper-slide ~ .swiper-slide { display: none; }

.hero-slider {
    --hero-ease: cubic-bezier(0.22, 0.75, 0.2, 1);
    --hero-delay: 6.5s;
    padding: 0.5rem 0.5rem 0;
}

.hero-frame {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    max-width: calc(var(--max) + 6rem);
    margin-inline: auto;
    border-radius: 1.25rem;
    background: var(--white);
}

.hero-slide {
    --hero-tint: #e7edf3;
    --hero-accent: #2d5d8a;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1rem 4.25rem;
    background: var(--hero-tint);
    text-align: center;
}

.hero-slide[data-tone="ember"] { --hero-tint: #fde6d7; --hero-accent: var(--orange); }
.hero-slide[data-tone="sand"] { --hero-tint: #f4ebdc; --hero-accent: #b4782a; }
.hero-slide[data-tone="tide"] { --hero-tint: #ddefec; --hero-accent: #1d7a72; }

.hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    color: var(--navy);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero-kicker::before {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--hero-accent);
    content: "";
}

.hero-promise {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.hero-heading {
    max-width: 16ch;
    margin: 0;
    font-size: clamp(1.45rem, 0.95rem + 2.6vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    text-wrap: balance;
}

.hero-lead {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-text {
    max-width: 30rem;
    margin: 0;
    color: #3e4d5d;
    font-size: 0.9rem;
}

.hero-buy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem 1rem;
    margin-top: 0.3rem;
}

.hero-price {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.hero-cta {
    gap: 0.5rem;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    font-size: 0.74rem;
    box-shadow: 0 12px 24px -14px rgba(248, 103, 34, 0.9);
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.hero-cta svg { transition: transform 0.35s ease; }

.hero-cta:hover,
.hero-cta:focus-visible {
    background: var(--navy);
    box-shadow: 0 12px 24px -14px rgba(20, 39, 58, 0.9);
}

.hero-cta:hover svg,
.hero-cta:focus-visible svg { transform: translateX(3px); }

.hero-mark {
    position: absolute;
    z-index: -1;
    inset-inline-end: -3rem;
    top: -2rem;
    width: 11rem;
    opacity: 0.07;
    transform: rotate(-12deg);
    pointer-events: none;
    user-select: none;
}

.hero-media {
    display: flex;
    justify-content: center;
}

.hero-photo {
    position: relative;
    display: block;
    width: min(15rem, 72vw);
    height: min(15rem, 72vw);
}

.hero-photo::before {
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--white) 45%, rgba(255, 255, 255, 0));
    content: "";
}

.hero-photo img {
    --hero-feather-x: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    --hero-feather-y: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    -webkit-mask-image: var(--hero-feather-x), var(--hero-feather-y);
    -webkit-mask-composite: source-in;
    mask-image: var(--hero-feather-x), var(--hero-feather-y);
    mask-composite: intersect;
}

.hero-siblings { display: none; }

.hero-sibling {
    width: 2.9rem;
    height: 2.9rem;
    margin: 0;
    padding: 0.2rem;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    background: var(--white);
    box-shadow: 0 10px 20px -14px rgba(20, 39, 58, 0.8);
    cursor: pointer;
    transition: opacity 0.4s var(--hero-ease), transform 0.4s var(--hero-ease), border-color 0.3s ease;
    transition-delay: calc(var(--i, 0) * 40ms);
}

.hero-sibling img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-sibling.is-current,
.hero-sibling:focus-visible { border-color: var(--orange); }

.hero-bar {
    position: absolute;
    z-index: 2;
    inset-inline: 0.6rem;
    bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.2rem;
    padding-inline-start: 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 28px -18px rgba(20, 39, 58, 0.55);
}

.hero-tabs {
    display: flex;
    flex: 1;
    gap: 0.4rem;
    min-width: 0;
}

.hero-tab {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--navy);
    text-align: start;
    cursor: pointer;
}

.hero-tab-bar {
    position: relative;
    display: block;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(20, 39, 58, 0.14);
}

.hero-tab-fill {
    position: absolute;
    inset: 0;
    background: var(--navy);
    transform: scaleX(0);
    transform-origin: left center;
}

html[dir="rtl"] .hero-tab-fill { transform-origin: right center; }

.hero-tab.is-active .hero-tab-fill { transform: scaleX(1); }

.hero-slider.is-ready .hero-tab.is-active .hero-tab-fill {
    animation-name: hero-progress;
    animation-duration: var(--hero-delay);
    animation-timing-function: linear;
    animation-fill-mode: both;
}

.hero-slider.is-paused .hero-tab-fill,
.hero-slider.is-offscreen .hero-tab-fill,
.hero-slider:has(:focus-visible) .hero-tab-fill { animation-play-state: paused; }

.hero-tab-label {
    display: none;
    gap: 0.45rem;
    overflow: hidden;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.hero-tab-number { font-variant-numeric: tabular-nums; }

.hero-tab.is-active .hero-tab-label,
.hero-tab:hover .hero-tab-label { opacity: 1; }

.hero-tab:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }

.hero-controls {
    display: flex;
    gap: 0.25rem;
}

.hero-control {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(20, 39, 58, 0.06);
    color: var(--navy);
    cursor: pointer;
    transition: background-color 0.35s ease, color 0.35s ease;
}

.hero-control:hover,
.hero-control:focus-visible {
    background: var(--navy);
    color: var(--white);
}

.hero-step { display: none; }

html[dir="rtl"] .hero-step svg { transform: scaleX(-1); }

.hero-icon-play,
.hero-slider.is-paused .hero-icon-pause { display: none; }

.hero-slider.is-paused .hero-icon-play { display: block; }

.hero-slider.has-moved .swiper-slide-active .hero-copy > *,
.hero-slider.has-moved .swiper-slide-active .hero-photo img {
    animation: hero-rise 0.75s var(--hero-ease) both;
}

.hero-slider.has-moved .swiper-slide-active .hero-copy > :nth-child(2) { animation-delay: 60ms; }
.hero-slider.has-moved .swiper-slide-active .hero-copy > :nth-child(3) { animation-delay: 120ms; }
.hero-slider.has-moved .swiper-slide-active .hero-copy > :nth-child(4) { animation-delay: 180ms; }
.hero-slider.has-moved .swiper-slide-active .hero-copy > :nth-child(n + 5) { animation-delay: 240ms; }

.hero-slider.has-moved .swiper-slide-active .hero-photo img {
    animation-name: hero-pop;
    animation-duration: 0.9s;
    animation-delay: 80ms;
}

@keyframes hero-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes hero-rise {
    from { opacity: 0; transform: translate3d(0, 1.25rem, 0); }
    to { opacity: 1; transform: none; }
}

@keyframes hero-pop {
    from { opacity: 0; transform: translate3d(0, 1.5rem, 0) scale(0.94); }
    to { opacity: 1; transform: none; }
}

html[lang="ar"] .hero-kicker,
html[lang="ar"] .hero-heading,
html[lang="ar"] .hero-price { letter-spacing: 0; }

html[lang="ar"] .hero-heading { line-height: 1.3; }

html[dir="rtl"] .hero-cta svg { transform: scaleX(-1); }

html[dir="rtl"] .hero-cta:hover svg,
html[dir="rtl"] .hero-cta:focus-visible svg { transform: scaleX(-1) translateX(3px); }

@media (hover: hover) {
    .hero-slider:has(.swiper-slide-active .hero-shot:hover) .hero-tab-fill { animation-play-state: paused; }

    .hero-sibling {
        opacity: 0;
        transform: translateY(0.6rem) scale(0.9);
        pointer-events: none;
    }

    .hero-shot:hover .hero-sibling,
    .hero-shot:focus-within .hero-sibling {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

@media (max-width: 639.98px) {
    .hero-slide {
        align-items: center;
        gap: 0.5rem;
    }

    .hero-copy { display: contents; }

    .hero-kicker { order: 1; }
    .hero-heading { order: 2; }
    .hero-media { order: 3; margin-block: 0.25rem; }
    .hero-text { order: 4; }
    .hero-buy { order: 5; }

    .hero-promise,
    .hero-lead { display: none; }
}

@media (min-width: 560px) {
    .hero-tab-label { display: flex; }
}

@media (min-width: 640px) {
    .hero-slider { padding: 0.75rem 0.75rem 0; }

    .hero-slide {
        gap: 0;
        min-height: 26rem;
        padding: 2rem 2rem 5rem;
        text-align: start;
    }

    .hero-copy {
        align-items: flex-start;
        max-width: min(30rem, 54%);
        gap: 0.6rem;
    }

    .hero-buy { justify-content: flex-start; }

    .hero-media {
        display: block;
    }

    .hero-photo {
        --hero-photo-size: min(42rem, 64vw);
        position: absolute;
        inset-inline-end: -15%;
        top: calc(50% - var(--hero-photo-size) * 0.46);
        width: var(--hero-photo-size);
        height: var(--hero-photo-size);
    }

    .hero-mark {
        inset-inline: -5rem auto;
        top: auto;
        bottom: -7rem;
        width: 24rem;
    }

    .hero-siblings {
        position: absolute;
        z-index: 1;
        inset-inline-end: 2rem;
        bottom: 5rem;
        display: flex;
        gap: 0.4rem;
    }

    .hero-bar {
        inset-inline: 1.25rem;
        bottom: 1rem;
    }
}

@media (min-width: 800px) {
    .hero-frame { border-radius: 1.75rem; }

    .hero-slide {
        min-height: 31rem;
        padding: 2.5rem clamp(2rem, 5vw, 4.5rem) 5.5rem;
    }

    .hero-copy { gap: 0.7rem; }

    .hero-text { font-size: 0.98rem; }

    .hero-price { font-size: 1.45rem; }

    .hero-cta { font-size: 0.78rem; padding: 0.8rem 1.3rem; }

    .hero-photo {
        --hero-photo-size: min(42rem, 52vw);
        inset-inline-end: -8%;
    }

    .hero-siblings {
        inset-inline-end: clamp(2rem, 5vw, 4.5rem);
        bottom: 5.5rem;
    }

    .hero-bar {
        inset-inline: clamp(1.25rem, 4vw, 3.5rem);
        bottom: 1.25rem;
        gap: 1.5rem;
        padding-inline-start: 1.5rem;
    }

    .hero-tabs { gap: 1rem; }

    .hero-step { display: inline-grid; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-toggle { display: none; }

    .hero-slider.is-ready .hero-tab.is-active .hero-tab-fill { animation-name: none; }

    .hero-slider .hero-sibling,
    .hero-cta,
    .hero-cta svg { transition: none; }

    .hero-slider.has-moved .swiper-slide-active .hero-copy > *,
    .hero-slider.has-moved .swiper-slide-active .hero-photo img { animation: none; }
}
