/* DigiFULL — Tasy | Core story por scroll
   Um vídeo local controlado por GSAP, com conteúdo HTML real por cima. */
.dgf-tasy-corestory {
    position: relative;
    min-height: 100svh;
    color: #fff;
    background: var(--dgf-dark-950);
}

.dgf-tasy-corestory__stage {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 620px;
    overflow: hidden;
    background: var(--dgf-dark-950);
}

.dgf-tasy-corestory__media,
.dgf-tasy-corestory__video,
.dgf-tasy-corestory__scrim {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.dgf-tasy-corestory__video {
    display: block;
    object-fit: cover;
    object-position: 50% 50%;
    background: var(--dgf-dark-950);
}

.dgf-tasy-corestory__scrim {
    z-index: 1;
    background:
        radial-gradient(circle at 50% 48%, rgba(7,21,45,.04) 0%, rgba(7,21,45,.12) 30%, rgba(7,21,45,.42) 76%, rgba(7,21,45,.64) 100%),
        linear-gradient(180deg, rgba(7,21,45,.25), rgba(7,21,45,.36));
    pointer-events: none;
}

.dgf-tasy-corestory__content {
    position: relative;
    z-index: 3;
    height: 100%;
}

.dgf-tasy-corestory__intro-slot,
.dgf-tasy-corestory__cards {
    position: absolute;
}

.dgf-tasy-corestory__intro-slot {
    inset: 0;
    display: grid;
    place-items: center;
    padding: 7vh 0 9vh;
    pointer-events: none;
}

.dgf-tasy-corestory__intro {
    position: relative;
    width: min(720px, 58vw);
    padding: clamp(26px, 3vw, 36px);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 22px;
    background: rgba(7,21,45,.72);
    box-shadow: 0 28px 70px -38px rgba(0,0,0,.86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.dgf-tasy-corestory__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--dgf-orange-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.dgf-tasy-corestory__eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dgf-orange);
    box-shadow: 0 0 0 6px rgba(245,130,31,.12);
}

.dgf-tasy-corestory__intro h2 {
    max-width: 650px;
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(32px, 3.8vw, 50px);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.02;
    text-wrap: balance;
}

.dgf-tasy-corestory__intro p {
    max-width: 650px;
    margin: 0;
    color: rgba(246,248,252,.82);
    font-size: clamp(15px, 1.35vw, 17px);
    line-height: 1.65;
    text-wrap: pretty;
}

.dgf-tasy-corestory__cards {
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 420px);
    align-items: center;
    justify-content: space-between;
    gap: clamp(180px, 22vw, 320px);
    pointer-events: none;
}

.dgf-tasy-corestory__card {
    position: relative;
    width: 100%;
    padding: 32px 32px 34px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    background: rgba(7,21,45,.78);
    box-shadow: 0 30px 70px -40px rgba(0,0,0,.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    will-change: transform, opacity;
}

.dgf-tasy-corestory__card--360 {
    border-left-color: rgba(245,130,31,.72);
}

.dgf-tasy-corestory__card--cnn {
    border-right-color: rgba(54,195,208,.72);
}

.dgf-tasy-corestory__chip {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    margin-bottom: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.10);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.dgf-tasy-corestory__card--360 .dgf-tasy-corestory__chip {
    color: #FFD9BA;
    background: rgba(245,130,31,.14);
}

.dgf-tasy-corestory__card--cnn .dgf-tasy-corestory__chip {
    color: #C9F8FB;
    background: rgba(54,195,208,.14);
}

.dgf-tasy-corestory__card h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.dgf-tasy-corestory__card p {
    margin: 0;
    color: rgba(246,248,252,.78);
    font-size: 15px;
    line-height: 1.68;
}

.dgf-tasy-corestory__progress {
    position: absolute;
    left: 50%;
    bottom: 24px;
    width: min(320px, 46vw);
    height: 2px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    transform: translateX(-50%);
}

.dgf-tasy-corestory__progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--dgf-orange), #F8FAFC 50%, #36C3D0);
    transform: scaleX(0);
    transform-origin: left center;
}

/* Assim que o runtime existe, os cards ficam invisíveis até a timeline
   posicioná-los. Evita flash dos três estados durante loadedmetadata. */
.dgf-tasy-corestory.is-enhanced .dgf-tasy-corestory__card {
    opacity: 0;
    visibility: hidden;
}

/* Sem JS/GSAP: conteúdo continua acessível em uma composição estática. */
.dgf-tasy-corestory:not(.is-enhanced) .dgf-tasy-corestory__stage {
    height: auto;
    min-height: 780px;
    padding: 80px 0;
}

.dgf-tasy-corestory:not(.is-enhanced) .dgf-tasy-corestory__content {
    min-height: 620px;
}

.dgf-tasy-corestory:not(.is-enhanced) .dgf-tasy-corestory__intro-slot {
    position: relative;
    inset: auto;
    display: block;
    padding: 40px 0 0;
}

.dgf-tasy-corestory:not(.is-enhanced) .dgf-tasy-corestory__cards {
    top: auto;
    bottom: 30px;
    height: auto;
    align-items: end;
}

@media (max-width: 1180px) {
    .dgf-tasy-corestory__intro {
        width: min(700px, 62vw);
    }

    .dgf-tasy-corestory__cards {
        grid-template-columns: minmax(0, 380px) minmax(0, 380px);
        gap: 130px;
    }
}

@media (max-width: 980px) {
    .dgf-tasy-corestory__intro {
        width: min(660px, 70vw);
        padding: 24px 26px;
    }

    .dgf-tasy-corestory__cards {
        grid-template-columns: minmax(0, 350px) minmax(0, 350px);
        gap: 96px;
    }

    .dgf-tasy-corestory__card {
        padding: 26px;
    }

    .dgf-tasy-corestory__card h3 {
        font-size: 22px;
    }

    .dgf-tasy-corestory__card p {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .dgf-tasy-corestory__stage {
        min-height: 100svh;
    }

    .dgf-tasy-corestory.is-mobile-video .dgf-tasy-corestory__media {
        overflow: hidden;
    }

    .dgf-tasy-corestory__video {
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: 50% 50%;
        transform: scale(1.08) translateY(-2.5%);
        transform-origin: center center;
        background: var(--dgf-dark-950);
    }

    .dgf-tasy-corestory__scrim {
        background:
            radial-gradient(circle at 50% 46%, rgba(7,21,45,.05) 0%, rgba(7,21,45,.18) 34%, rgba(7,21,45,.66) 100%),
            linear-gradient(180deg, rgba(7,21,45,.18), rgba(7,21,45,.44));
    }

    .dgf-tasy-corestory__intro-slot {
        place-items: center;
        padding: 0 0 7svh;
    }

    .dgf-tasy-corestory__intro {
        width: min(calc(100% - 22px), 500px);
        padding: 21px 19px 22px;
        border-radius: 18px;
    }

    .dgf-tasy-corestory__eyebrow {
        margin-bottom: 11px;
        font-size: 10px;
    }

    .dgf-tasy-corestory__intro h2 {
        margin-bottom: 11px;
        font-size: clamp(27px, 7.7vw, 35px);
        line-height: 1.04;
    }

    .dgf-tasy-corestory__intro p {
        font-size: 13.5px;
        line-height: 1.52;
    }

    .dgf-tasy-corestory__cards {
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 14px;
        padding: 34svh 0 9svh;
    }

    .dgf-tasy-corestory__card {
        width: 100%;
        padding: 18px 18px 19px;
        border-radius: 18px;
        background: rgba(7,21,45,.84);
    }

    .dgf-tasy-corestory__chip {
        min-height: 26px;
        margin-bottom: 10px;
        padding: 5px 10px;
        font-size: 10px;
    }

    .dgf-tasy-corestory__card h3 {
        margin-bottom: 8px;
        font-size: 18px;
    }

    .dgf-tasy-corestory__card p {
        font-size: 12.75px;
        line-height: 1.48;
    }

    .dgf-tasy-corestory__progress {
        bottom: 16px;
        width: 44vw;
    }

    .dgf-tasy-corestory:not(.is-enhanced) .dgf-tasy-corestory__stage {
        min-height: 1050px;
        padding: 48px 0;
    }

    .dgf-tasy-corestory:not(.is-enhanced) .dgf-tasy-corestory__content {
        min-height: 950px;
    }

    .dgf-tasy-corestory:not(.is-enhanced) .dgf-tasy-corestory__cards {
        top: 510px;
        bottom: auto;
        height: auto;
        padding: 0;
    }
}


@media (max-width: 420px) {
    .dgf-tasy-corestory__intro-slot {
        padding: 0 0 4svh;
    }

    .dgf-tasy-corestory__intro {
        width: 84vw;
        padding: 15px 15px 16px;
    }

    .dgf-tasy-corestory__intro h2 {
        margin-bottom: 8px;
        font-size: clamp(23px, 6.7vw, 27px);
        line-height: 1.02;
    }

    .dgf-tasy-corestory__intro p {
        font-size: 11.75px;
        line-height: 1.42;
    }
}

/* Reduced motion não remove o vídeo nem o scrollytelling.
   O JS reduz apenas deslocamentos e micro-pulsos cosméticos. */
@media (prefers-reduced-motion: reduce) {
    .dgf-tasy-corestory__card,
    .dgf-tasy-corestory__intro {
        transition: none;
    }
}
