/* Parallax scrolling banner — vanilla port of the Osmo parallax-scrolling
   component (GSAP ScrollTrigger + Lenis). Theme-aware: uses GAT custom props. */

.parallax {
    position: relative;
}

.parallax__header {
    position: relative;
    height: clamp(420px, 70svh, 760px);
    background: var(--paper);
}

.parallax__visuals {
    position: absolute;
    inset: 0;
    overflow: clip;
}

.parallax__black-line-overflow {
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 2px;
    background: var(--line-strong);
    z-index: 7;
}

.parallax__layers {
    position: absolute;
    inset: 0;
}

.parallax__layer-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
    will-change: transform;
}

/* Heights sized so each layer still covers the section after its yPercent shift */
.parallax__layer-img[data-parallax-layer="1"] { height: 175%; z-index: 1; }
.parallax__layer-img[data-parallax-layer="2"] { height: 150%; z-index: 2; }

/* Front strip anchored to the bottom so the title stays readable above it */
.parallax__layer-img[data-parallax-layer="4"] {
    top: auto;
    bottom: -2%;
    height: 32%;
    z-index: 5;
}

/* Scrim for title readability */
.parallax__layers::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(to top, rgba(11, 0, 51, 0.62), rgba(11, 0, 51, 0.28) 42%, rgba(11, 0, 51, 0) 72%);
}

.parallax__layer-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 30%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0 clamp(1.5rem, 6vw, 4rem);
    z-index: 4;
}

.parallax__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.2rem, 6vw, 5rem);
    line-height: 1.16;
    letter-spacing: -0.02em;
    text-align: center;
    text-wrap: balance;
    color: #ffffff;
    text-shadow: 0 2px 30px rgba(11, 0, 51, 0.45);
}

.parallax__fade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 34%;
    z-index: 6;
    background: linear-gradient(to bottom, var(--paper), transparent);
    pointer-events: none;
}

.parallax__content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    background: var(--paper);
    padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.osmo-icon-svg {
    width: 44px;
    height: 44px;
    color: var(--ink-faded);
}

/* Lenis smooth-scroll base styles */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .parallax__layers,
    .parallax__layer-img,
    .parallax__layer-title {
        transform: none !important;
    }
}
