/* Investor Step — full-bleed immersive hero (direction A). Loaded with cinematic.css when the cinematic layer is on.
 *
 * The original slider markup is untouched; this only restyles it: the active banner fills the hero edge to edge,
 * pointer parallax and a slow Ken Burns breathe the image, a light sweep and gold particles sit on top, and the real
 * slide copy becomes large editorial type over a soft grade. No WebGL, no extra images: the only assets are the
 * banners the slider already loads.
 */

/* ---------- Layout: the hero becomes a true viewport-height stage on desktop ---------- */
@media (min-width: 1025px) {
    /* Keep the header and hero as separate layout sections, then preserve the banner's native 3:1 ratio. */
    .is-cinematic .investor-hero {
        clear: both;
        width: 100%;
        max-width: none;
        margin: 0 !important;
    }

    .is-cinematic .investor-hero__track {
        aspect-ratio: auto !important;
        height: clamp(420px, 27vw, 500px) !important;
        min-height: 0 !important;
        background: #1a1a1a !important;
    }

    .is-cinematic .investor-hero__slide {
        inset: 0;
        overflow: hidden;
        /* slower, dissolving cross-fade than the slider's own */
        transition: opacity 1400ms cubic-bezier(0.4, 0, 0.2, 1), visibility 1400ms !important;
    }

    .is-cinematic .investor-hero__media {
        position: absolute;
        inset: 0;
        height: 100% !important;
        overflow: hidden;
    }

    /* Show the complete banner without zoom, parallax or edge cropping. */
    .is-cinematic .investor-hero__image {
        width: 100%;
        height: 100%;
        object-fit: cover !important;
        object-position: var(--hero-focus-x, 50%) 0%;
        transform: none !important;
        transform-origin: 50% 50%;
        will-change: auto;
        filter: saturate(1.06) contrast(1.03);
    }

    .is-cinematic .investor-hero__slide.is-active .investor-hero__image {
        animation: none !important;
    }

    /* ---------- Grade: no dark fade (there is no overlaid type to protect); just a gold bloom and a soft vignette
       that frame the artwork and keep the banner's own text fully legible ---------- */
    .is-cinematic .investor-hero__media::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background:
            radial-gradient(ellipse 42% 55% at 84% 6%, rgba(247, 147, 29, 0.22), rgba(247, 147, 29, 0) 70%),
            radial-gradient(ellipse 120% 100% at 50% 50%, rgba(0, 0, 0, 0) 64%, rgba(0, 0, 0, 0.32) 100%);
        pointer-events: none;
    }

    /* ---------- Light sweep: a soft diagonal band that crosses once per slide ---------- */
    .is-cinematic .investor-hero__media::after {
        content: "";
        position: absolute;
        top: -20%;
        bottom: -20%;
        left: -30%;
        width: 18%;
        z-index: 2;
        background: linear-gradient(90deg, rgba(255, 235, 200, 0) 0%, rgba(255, 235, 200, 0.16) 50%, rgba(255, 235, 200, 0) 100%);
        transform: skewX(-14deg) translateX(0);
        filter: blur(14px);
        opacity: 0;
        pointer-events: none;
    }

    .is-cinematic .investor-hero__slide.is-active .investor-hero__media::after {
        animation: cin-sweep 2.6s cubic-bezier(0.4, 0, 0.2, 1) 0.6s 1 both;
    }

    /* ---------- Particles: a lightweight 2D canvas painted by cinematic.js ---------- */
    .cin-hero-dust {
        position: absolute;
        inset: 0;
        z-index: 3;
        width: 100%;
        height: 100%;
        pointer-events: none;
        mix-blend-mode: screen;
        opacity: 0.9;
    }

    /* The banners already carry their own headline, body and CTA button as artwork. Overlaying the slide copy on top
       duplicated and collided with that text, so on desktop the copy stays hidden (as the original slider has it);
       the whole banner remains the link, and the copy is still read by assistive tech via the sr-only heading. */

    /* ---------- Controls: glass circles; dots become a timed progress bar ---------- */
    .is-cinematic .investor-hero__control {
        z-index: 5;
        width: 54px !important;
        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        background: rgba(20, 20, 22, 0.42) !important;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        color: #ffffff !important;
    }

    .is-cinematic .investor-hero__control:hover {
        background: rgba(247, 147, 29, 0.9) !important;
        border-color: rgba(247, 147, 29, 0.9) !important;
    }

    .is-cinematic .investor-hero__dots {
        z-index: 5;
        bottom: clamp(28px, 5vh, 48px);
        gap: 10px;
        padding: 0;
        background: transparent !important;
    }

    .is-cinematic .investor-hero__dot,
    .is-cinematic .investor-hero button.investor-hero__dot {
        position: relative;
        width: 34px !important;
        height: 3px !important;
        min-height: 3px !important;
        max-height: 3px !important;
        overflow: hidden;
        border-radius: 2px !important;
        background: rgba(255, 255, 255, 0.28) !important;
        transition: width 300ms ease !important;
    }

    .is-cinematic .investor-hero__dot.is-active,
    .is-cinematic .investor-hero button.investor-hero__dot.is-active {
        width: 72px !important;
        background: rgba(255, 255, 255, 0.28) !important;
    }

    /* the fill runs for the slider's interval (5s) and restarts on each change */
    .is-cinematic .investor-hero__dot.is-active::after {
        content: "";
        position: absolute;
        inset: 0;
        background: #f7931d;
        transform-origin: right center;
        animation: cin-dot-fill 5s linear both;
    }
}

/* Gentle breathing: 6% -> 11% over-scale keeps every edge of the artwork inside the stage with pointer parallax. */
@keyframes cin-kenburns {
    from { --kb: 1.06; }
    to { --kb: 1.11; }
}

@keyframes cin-sweep {
    from { opacity: 0; transform: skewX(-14deg) translateX(0); }
    15% { opacity: 1; }
    85% { opacity: 1; }
    to { opacity: 0; transform: skewX(-14deg) translateX(820%); }
}

@keyframes cin-dot-fill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* --kb must be a registered number for the keyframes to interpolate it. */
@property --kb {
    syntax: "<number>";
    inherits: false;
    initial-value: 1.06;
}

@media (prefers-reduced-motion: reduce) {
    .is-cinematic .investor-hero__image,
    .is-cinematic .investor-hero__media::after,
    .is-cinematic .investor-hero__dot.is-active::after {
        animation: none !important;
    }

    .cin-hero-dust {
        display: none !important;
    }
}
