body.biin-hero-sequence-body,
.biin-hero-sequence-page {
    margin: 0;
    background: #F3ECE3;
    color: #241B14;
    font-family: 'Tajawal', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hero-scroll-sequence,
.hero-scroll-sequence * {
    box-sizing: border-box;
    letter-spacing: 0;
}

.hero-scroll-sequence {
    --biin-cream: #F3ECE3;
    --biin-espresso: #241B14;
    --biin-terracotta: #B98A5E;
    --biin-teal: #3E6E8E;
    position: relative;
    height: 460vh;
    min-height: 3600px;
    isolation: isolate;
    background: var(--biin-cream);
    direction: rtl;
}

.hero-scroll-sequence__stage {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100svh;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 18%, rgba(185, 138, 94, 0.18), transparent 26vw),
        radial-gradient(circle at 18% 74%, rgba(62, 110, 142, 0.12), transparent 30vw),
        var(--biin-cream);
    isolation: isolate;
}

.hero-scroll-sequence.is-scrolltrigger-pinned {
    height: 100vh;
    height: 100dvh;
    min-height: 100svh;
}

.hero-scroll-sequence.is-scrolltrigger-pinned .hero-scroll-sequence__stage {
    position: relative;
}

.hero-scroll-sequence__canvas,
.hero-scroll-sequence__placeholder,
.hero-scroll-sequence__static {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-scroll-sequence__canvas {
    z-index: 1;
    display: block;
    image-rendering: auto;
}

.hero-scroll-sequence__placeholder {
    z-index: 2;
    filter: none;
    transform: none;
    opacity: 1;
    transition: opacity 360ms ease;
    image-rendering: auto;
}

.hero-scroll-sequence__static {
    z-index: 1;
    display: none;
}

.hero-scroll-sequence__wash {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(243, 236, 227, 0.58), transparent 28%, transparent 72%, rgba(243, 236, 227, 0.62)),
        radial-gradient(circle at 50% 50%, transparent 34%, rgba(36, 27, 20, 0.16));
    mix-blend-mode: multiply;
}

.hero-scroll-sequence__loader {
    position: absolute;
    z-index: 8;
    left: 50%;
    bottom: clamp(28px, 5vh, 54px);
    display: grid;
    width: min(320px, calc(100% - 48px));
    gap: 10px;
    color: var(--biin-espresso);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    transform: translateX(-50%);
    transition: opacity 260ms ease, transform 260ms ease;
}

.hero-scroll-sequence__progress {
    position: relative;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(36, 27, 20, 0.14);
}

.hero-scroll-sequence__progress span {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: var(--hero-sequence-progress, 0%);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--biin-terracotta), var(--biin-teal));
    transition: width 160ms ease;
}

.hero-scroll-sequence__loader p {
    margin: 0;
}

.hero-scroll-sequence__captions {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
}

.hero-scroll-sequence__caption {
    position: absolute;
    top: 50%;
    width: min(420px, calc(100vw - 64px));
    padding: 20px 22px;
    color: var(--biin-espresso);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%);
    isolation: isolate;
    will-change: opacity, transform;
}

.hero-scroll-sequence__caption::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -20px -24px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 78% 46%, rgba(243, 236, 227, 0.76), rgba(243, 236, 227, 0.34) 58%, transparent 76%);
    opacity: 0.86;
    pointer-events: none;
}

.hero-scroll-sequence__caption--right {
    right: clamp(28px, 7vw, 110px);
    left: auto;
    text-align: right;
}

.hero-scroll-sequence__caption--left {
    left: clamp(28px, 7vw, 110px);
    right: auto;
    text-align: right;
}

.hero-scroll-sequence__caption--center {
    left: 50%;
    right: auto;
    top: 52%;
    width: min(820px, calc(100vw - 64px));
    text-align: center;
    transform: translate(-50%, -50%);
}

.hero-scroll-sequence__eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--biin-terracotta);
    font-size: clamp(13px, 1.1vw, 16px);
    font-weight: 900;
    line-height: 1.2;
}

.hero-scroll-sequence__caption h2 {
    margin: 0;
    color: var(--biin-espresso);
    font-size: clamp(34px, 4.8vw, 76px);
    font-weight: 900;
    line-height: 1.08;
    text-wrap: balance;
}

.hero-scroll-sequence__caption--center h2 {
    font-size: clamp(42px, 6vw, 92px);
}

.hero-scroll-sequence__cta {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    margin-top: clamp(22px, 3vw, 36px);
    padding: 0 24px;
    border: 1px solid rgba(36, 27, 20, 0.16);
    border-radius: 8px;
    background: var(--biin-espresso);
    color: #FFF8EF;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    pointer-events: auto;
    box-shadow: 0 22px 42px rgba(36, 27, 20, 0.18);
}

.hero-scroll-sequence.is-loading .hero-scroll-sequence__canvas {
    opacity: 0;
}

.hero-scroll-sequence.is-loading.has-initial-frame .hero-scroll-sequence__canvas {
    opacity: 1;
}

.hero-scroll-sequence.has-initial-frame .hero-scroll-sequence__placeholder {
    opacity: 0;
}

.hero-scroll-sequence.is-ready .hero-scroll-sequence__placeholder,
.hero-scroll-sequence.is-ready .hero-scroll-sequence__loader {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
    pointer-events: none;
}

.hero-scroll-sequence__noscript {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--biin-cream);
}

@media (max-width: 768px) {
    .hero-scroll-sequence {
        height: 420vh;
        min-height: 2920px;
    }

    .hero-scroll-sequence__wash {
        background:
            linear-gradient(0deg, rgba(243, 236, 227, 0.72) 0%, rgba(243, 236, 227, 0.24) 38%, transparent 70%),
            radial-gradient(circle at 50% 48%, transparent 36%, rgba(36, 27, 20, 0.13));
    }

    .hero-scroll-sequence__caption,
    .hero-scroll-sequence__caption--right,
    .hero-scroll-sequence__caption--left,
    .hero-scroll-sequence__caption--center {
        left: 16px;
        right: 16px;
        top: auto;
        bottom: clamp(26px, 8vh, 70px);
        width: auto;
        padding: 18px 18px 20px;
        border: 1px solid rgba(255, 255, 255, 0.38);
        border-radius: 18px;
        background: linear-gradient(145deg, rgba(243, 236, 227, 0.86), rgba(255, 250, 243, 0.66));
        box-shadow: 0 22px 54px rgba(36, 27, 20, 0.12);
        text-align: right;
        transform: translateY(0);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .hero-scroll-sequence__caption h2,
    .hero-scroll-sequence__caption--center h2 {
        font-size: clamp(28px, 9vw, 44px);
        line-height: 1.14;
    }

    .hero-scroll-sequence__eyebrow {
        margin-bottom: 8px;
        font-size: 12px;
    }

    .hero-scroll-sequence__cta {
        min-height: 48px;
        margin-top: 16px;
        padding-inline: 18px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-scroll-sequence {
        height: auto;
        min-height: 0;
    }

    .hero-scroll-sequence__stage {
        position: relative;
        display: grid;
        min-height: 100vh;
        min-height: 100svh;
        overflow: hidden;
        align-items: end;
        padding: clamp(24px, 5vw, 64px);
    }

    .hero-scroll-sequence__canvas,
    .hero-scroll-sequence__placeholder,
    .hero-scroll-sequence__loader {
        display: none !important;
    }

    .hero-scroll-sequence__static {
        display: block;
    }

    .hero-scroll-sequence__captions {
        position: relative;
        z-index: 6;
        display: grid;
        width: min(980px, 100%);
        gap: 14px;
        pointer-events: auto;
    }

    .hero-scroll-sequence__caption,
    .hero-scroll-sequence__caption--right,
    .hero-scroll-sequence__caption--left,
    .hero-scroll-sequence__caption--center {
        position: relative;
        inset: auto;
        width: min(680px, 100%);
        padding: 18px 20px;
        border: 1px solid rgba(36, 27, 20, 0.08);
        border-radius: 18px;
        background: rgba(243, 236, 227, 0.82);
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: 0 18px 36px rgba(36, 27, 20, 0.08);
    }

    .hero-scroll-sequence__caption h2,
    .hero-scroll-sequence__caption--center h2 {
        font-size: clamp(26px, 5vw, 48px);
    }
}
