.dl-hero-widget {
    --dl-hero-text: #fff;
    --dl-hero-accent: #72e6ad;
    --dl-hero-shade: .74;
    --dl-hero-display: "Coolvetica", var(--e-global-typography-primary-font-family, "Helvetica Neue", Arial, sans-serif);
    --dl-hero-pad: 48px;
    position: relative;
    width: 100%;
    height: 285vh;
    background: #000;
    color: var(--dl-hero-text);
    overflow: clip;
    isolation: isolate;
}

.dl-hero-widget,
.dl-hero-widget *,
.dl-hero-widget *::before,
.dl-hero-widget *::after {
    box-sizing: border-box;
}

.dl-hero__stage {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    min-height: 680px;
    overflow: hidden;
    background: #000;
}

/* No desktop animado o pinning passa a ser controlado pelo ScrollTrigger. */
.dl-hero-widget.is-gsap-pinned {
    height: auto !important;
    overflow: visible;
}

.dl-hero-widget.is-gsap-pinned .dl-hero__stage {
    position: relative;
    top: auto;
}

.dl-hero__background-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .12;
    filter: contrast(1.2) saturate(.72);
    transform: scale(1.12);
}

.dl-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0 23%, rgba(0,0,0,var(--dl-hero-shade)) 61%, #000 100%);
    pointer-events: none;
}

.dl-hero__frame {
    position: absolute;
    inset: 0;
    z-index: 6;
    width: 100%;
    max-width: 1680px;
    margin-inline: auto;
    padding-inline: 48px;
    pointer-events: none;
}

.dl-hero__eyebrow {
    position: absolute;
    top: 8.2rem;
    left: var(--dl-hero-pad);
    margin: 0;
    color: rgba(255,255,255,.72);
    font: 600 10px/1.25 "Coolvetica", "Helvetica Neue", Arial, sans-serif;
    letter-spacing: .17em;
    text-transform: uppercase;
    max-width: min(36rem, 48vw);
}

.dl-hero__portal {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 540px;
    height: 540px;
    transform: translate(-50%, -50%) rotate(-8deg);
    transform-origin: 50% 50%;
    border-radius: 18%;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 40px 120px rgba(0,0,0,.72);
    will-change: width, height, transform, border-radius;
}

.dl-hero__portal::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    box-shadow: inset 0 0 90px rgba(255,255,255,.15);
    pointer-events: none;
}

.dl-hero__portal-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.82);
    filter: contrast(1.15);
    will-change: transform, opacity;
}

.dl-hero__edge {
    position: absolute;
    z-index: 4;
    width: 35%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, #69e4ff, transparent);
    filter: blur(.2px);
    opacity: .8;
    pointer-events: none;
}

.dl-hero__edge--a {
    left: 7%;
    top: 15%;
    transform: rotate(-37deg);
}

.dl-hero__edge--b {
    right: 4%;
    bottom: 17%;
    transform: rotate(32deg);
}

.dl-hero__title {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none;
}

.dl-hero__line {
    display: block;
    color: var(--dl-hero-text);
    font-family: var(--dl-hero-display);
    font-size: 94px;
    font-weight: 700;
    line-height: .84;
    letter-spacing: -.065em;
    white-space: nowrap;
    text-shadow: 0 3px 30px rgba(0,0,0,.28);
    will-change: transform, opacity, letter-spacing;
}

.dl-hero__line--one {
    align-self: flex-start;
}

.dl-hero__line--two {
    align-self: flex-end;
    margin-right: 120px;
    text-align: right;
}

.dl-hero__outline {
    display: inline-block;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: inherit;
    font-weight: 700;
    font-style: normal;
    line-height: inherit;
    color: transparent;
    letter-spacing: var(--dl-hero-outline-tracking, -.07em) !important;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgba(255,255,255,.85);
    text-shadow: none;
    font-kerning: normal;
    font-synthesis: none;
}

.dl-hero__invite {
    position: absolute;
    z-index: 7;
    left: 50%;
    top: 50%;
    width: min(84vw, 1380px);
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--dl-hero-text);
    font-family: var(--dl-hero-display);
    font-size: 98px;
    font-weight: 700;
    line-height: .84;
    letter-spacing: -.068em;
    pointer-events: none;
}

.dl-hero__invite-line {
    display: block;
    white-space: nowrap;
}

.dl-hero__invite-line--2 {
    margin-top: .04em;
}

.dl-hero__invite-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(110%);
    will-change: transform, opacity;
}

.dl-hero__intro-meta {
    position: absolute;
    left: var(--dl-hero-pad);
    bottom: 32px;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--dl-hero-text);
    font: 600 10px/1.2 "Coolvetica", "Helvetica Neue", Arial, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    pointer-events: auto;
    will-change: transform, opacity;
}

.dl-hero__scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: .78;
}

.dl-hero__scroll-cue > i {
    position: relative;
    display: block;
    width: 30px;
    height: 1px;
    background: currentColor;
}

.dl-hero__scroll-cue > i::after {
    content: "";
    position: absolute;
    right: 0;
    top: -2px;
    width: 5px;
    height: 5px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
}

.dl-hero__demo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: inherit !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none;
    text-decoration: none !important;
    transition: color 180ms ease, opacity 180ms ease;
}

button.dl-hero__demo {
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.dl-hero__demo:hover,
.dl-hero__demo:focus-visible {
    color: var(--dl-hero-accent) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.dl-hero__demo i {
    width: 13px;
    height: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: 12px;
    transition: transform 180ms ease;
}

.dl-hero__demo i svg { width: 100%; height: 100%; }

.dl-hero__demo:hover i,
.dl-hero__demo:focus-visible i {
    transform: translate(2px, -2px);
}

/* Demo Reel */
.dl-demo-modal {
    position: fixed;
    inset: 0;
    z-index: 1000002;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vw, 64px);
    background: rgba(0,0,0,.94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 260ms ease, visibility 260ms ease;
}

.dl-demo-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dl-demo-modal__media {
    width: min(92vw, 1440px);
    max-height: 82vh;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    box-shadow: 0 32px 120px rgba(0,0,0,.55);
}

.dl-demo-modal__media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.dl-demo-modal__close {
    position: absolute;
    top: 22px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(255,255,255,.38) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff !important;
    padding: 10px 12px;
    font: 600 10px/1 Arial, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none !important;
}

.dl-demo-modal__close:hover,
.dl-demo-modal__close:focus-visible {
    background: var(--dl-hero-accent) !important;
    border-color: var(--dl-hero-accent) !important;
    color: #050505 !important;
    outline: none !important;
}

.dl-demo-modal__close svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
}

body.dl-demo-open { overflow: hidden !important; }

.dl-hero__final {
    position: absolute;
    left: var(--dl-hero-pad);
    bottom: 30px;
    z-index: 8;
    opacity: 0;
    transform: translateY(24px);
    pointer-events: auto;
    will-change: transform, opacity;
}

.dl-hero__cta {
    min-width: 196px;
    min-height: 48px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border: 1px solid rgba(255,255,255,.55) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--dl-hero-text) !important;
    box-shadow: none !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: .09em;
    font: 600 10px/1 Arial, sans-serif;
    transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

.dl-hero__cta:hover,
.dl-hero__cta:focus-visible {
    background: var(--dl-hero-accent) !important;
    border-color: var(--dl-hero-accent) !important;
    color: #050505 !important;
    outline: none !important;
    box-shadow: none !important;
}

.dl-hero__cta i {
    font-style: normal;
    font-size: 13px;
    transition: transform 200ms ease;
}

.dl-hero__cta:hover i,
.dl-hero__cta:focus-visible i {
    transform: rotate(45deg);
}

/* No editor a seção permanece editável e previsível; a coreografia é aplicada apenas no frontend. */
.elementor-editor-active .dl-hero-widget,
.dl-hero-widget.is-editor-preview,
.dl-hero-widget.is-static {
    height: 100vh !important;
    min-height: 680px;
    overflow: hidden;
}

.elementor-editor-active .dl-hero__stage,
.dl-hero-widget.is-editor-preview .dl-hero__stage,
.dl-hero-widget.is-static .dl-hero__stage {
    position: relative;
}

.elementor-editor-active .dl-hero__invite,
.elementor-editor-active .dl-hero__final,
.dl-hero-widget.is-editor-preview .dl-hero__invite,
.dl-hero-widget.is-editor-preview .dl-hero__final,
.dl-hero-widget.is-static .dl-hero__invite,
.dl-hero-widget.is-static .dl-hero__final {
    display: none;
}

@media (max-width: 1024px) {
    .dl-hero__frame {
        --dl-hero-pad: 32px;
        padding-inline: 32px;
    }

    .dl-hero__line {
        font-size: 68px;
    }

    .dl-hero__invite {
        font-size: 70px;
    }

    .dl-hero__portal {
        width: 460px;
        height: 460px;
    }
}

@media (max-width: 767px) {
    .dl-hero-widget {
        height: 145vh;
    }

    /*
     * Timeline mobile com pin nativo do ScrollTrigger, não sticky.
     * A unidade svh evita saltos da barra dinâmica do Safari iOS.
     */
    .dl-hero-widget.is-mobile-cinematic .dl-hero__stage {
        height: 100vh;
        height: 100svh;
        min-height: 0 !important;
    }

    .dl-hero__stage {
        min-height: 620px;
    }

    .dl-hero__frame {
        --dl-hero-pad: 18px;
        padding-inline: 18px;
    }

    .dl-hero__eyebrow {
        top: 6.3rem;
        max-width: calc(100% - 36px);
        font-size: 8px;
    }

    .dl-hero__title {
        justify-content: center;
        gap: 12px;
        transform: translateY(-2vh);
    }

    .dl-hero__line {
        width: 100%;
        max-width: 100%;
        font-size: clamp(32px, 9.8vw, 46px);
        line-height: .96;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .dl-hero__line--two {
        margin-left: auto;
        margin-right: 0;
    }

    .dl-hero__outline {
        max-width: 100%;
        white-space: nowrap;
    }

    .dl-hero__portal {
        width: 310px;
        height: 310px;
        top: 51%;
    }

    .dl-hero__invite {
        display: block;
        width: calc(100% - 36px);
        font-size: clamp(31px, 9.4vw, 44px);
        line-height: .94;
        top: 46%;
    }

    .dl-hero__invite-line {
        white-space: normal;
    }

    .dl-hero__invite-word {
        white-space: nowrap;
    }

    .dl-hero__intro-meta {
        right: var(--dl-hero-pad);
        bottom: 20px;
        gap: 16px;
        justify-content: space-between;
        font-size: 9px;
    }

    .dl-hero__scroll-cue > i {
        width: 22px;
    }

    .dl-hero__final {
        display: block;
        left: var(--dl-hero-pad);
        right: var(--dl-hero-pad);
        bottom: calc(68px + env(safe-area-inset-bottom, 0px));
        pointer-events: none;
    }

    .dl-hero-widget.is-mobile-final-visible .dl-hero__final {
        pointer-events: auto;
    }

    .dl-hero__cta {
        min-width: min(100%, 220px);
        min-height: 44px;
    }
}

@media (max-width: 430px) {
    .dl-hero__frame {
        --dl-hero-pad: 14px;
        padding-inline: 14px;
    }

    .dl-hero__eyebrow {
        max-width: calc(100% - 28px);
    }

    .dl-hero__line {
        font-size: clamp(32px, 9.8vw, 42px);
    }

    .dl-hero__portal {
        width: min(78vw, 300px);
        height: min(78vw, 300px);
    }

    .dl-hero__intro-meta {
        right: var(--dl-hero-pad);
        font-size: 8px;
        letter-spacing: .09em;
    }
}

@media (max-width: 360px) {
    .dl-hero__line {
        font-size: clamp(30px, 9.8vw, 37px);
    }

    .dl-hero__intro-meta {
        align-items: flex-end;
        gap: 10px;
    }

    .dl-hero__scroll-cue {
        max-width: 52%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dl-hero-widget {
        height: 100vh !important;
        min-height: 620px;
    }

    .dl-hero__stage {
        position: relative !important;
    }

    .dl-hero__invite,
    .dl-hero__final {
        display: none !important;
    }

    .dl-hero-widget *,
    .dl-hero-widget *::before,
    .dl-hero-widget *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }
}
