/* ==========================================================================
   ABERTURA
   Teto de LED em perspectiva, selo de credenciamento e vídeo em moldura.
   ========================================================================== */

   .hero {
    position: relative;
    min-height: clamp(680px, 100svh, 980px);
    padding: 128px 0 72px;

    display: flex;
    align-items: center;

    overflow: hidden;
    isolation: isolate;
}

.ceiling {
    position: absolute;

    left: -20%;
    right: -20%;
    top: 0;

    height: 58%;

    z-index: -2;

    perspective: 420px;
    perspective-origin: 62% 100%;

    pointer-events: none;

    -webkit-mask:
        linear-gradient(
            180deg,
            #000 0%,
            rgba(0, 0, 0, .5) 45%,
            transparent 95%
        );

    mask:
        linear-gradient(
            180deg,
            #000 0%,
            rgba(0, 0, 0, .5) 45%,
            transparent 95%
        );
}

.ceiling i {
    position: absolute;

    left: 0;
    right: 0;
    top: 0;

    height: 260%;

    transform: rotateX(-74deg);
    transform-origin: 50% 0;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .95) 0 54%,
            transparent 54%
        )
        0 0 / 120px 70px;

    -webkit-mask:
        linear-gradient(
            180deg,
            #000 0 18%,
            transparent 18%
        )
        0 0 / 120px 70px;

    mask:
        linear-gradient(
            180deg,
            #000 0 18%,
            transparent 18%
        )
        0 0 / 120px 70px;

    opacity: .2;

    animation: drift 9s linear infinite;
}

@keyframes drift {
    to {
        background-position: 0 70px;
        -webkit-mask-position: 0 70px;
        mask-position: 0 70px;
    }
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -1;

    background:
        radial-gradient(
            60% 50% at 70% 40%,
            rgba(255, 102, 1, .10),
            transparent 70%
        ),
        linear-gradient(
            180deg,
            rgba(8, 9, 10, .2) 0%,
            rgba(8, 9, 10, .85) 55%,
            var(--bg) 100%
        );
}

.hero::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 120px;

    z-index: -1;

    background:
        repeating-conic-gradient(
            var(--or) 0 25%,
            #0b0b0c 0 50%
        )
        0 0 / 34px 34px;

    opacity: .07;

    -webkit-mask:
        linear-gradient(
            0deg,
            #000,
            transparent
        );

    mask:
        linear-gradient(
            0deg,
            #000,
            transparent
        );
}

.hero .wrap {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(0, .9fr);

    gap: 64px;

    align-items: center;
}

.hero-content {
    min-width: 0;
}

.cred {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    padding: 8px 16px 8px 10px;

    border:
        1px solid
        rgba(255, 102, 1, .4);

    border-radius: 999px;

    background:
        rgba(255, 102, 1, .08);

    font-family: var(--mono);

    font-size: .72rem;

    letter-spacing: .08em;

    text-transform: uppercase;

    color: var(--tx);
}

.cred i {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--or);

    box-shadow:
        0 0 0 0
        rgba(255, 102, 1, .6);

    animation:
        pulse
        2.2s
        ease-out
        infinite;
}

@keyframes pulse {
    70%,
    100% {
        box-shadow:
            0 0 0 9px
            rgba(255, 102, 1, 0);
    }
}


/* ==========================================================================
   TÍTULO
   ========================================================================== */

.hero h1 {
    max-width: 760px;

    margin: 26px 0 22px;

    font-size:
        clamp(
            2.35rem,
            4.2vw,
            4.15rem
        );

    font-weight: 300;

    letter-spacing: -.042em;

    line-height: 1;
}

.hero h1 em {
    display: block;

    margin-top: 3px;

    font-style: normal;

    font-weight: 500;

    color: var(--or);
}


/* ==========================================================================
   DESCRIÇÃO
   ========================================================================== */

.hero .lede {
    max-width: 52ch;

    font-size: 1.05rem;

    line-height: 1.7;

    color: var(--tx2);
}


/* ==========================================================================
   CTAs
   ========================================================================== */

.hero .ctas {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;
}


/* ==========================================================================
   META
   ========================================================================== */

.meta {
    display: flex;

    flex-wrap: wrap;

    gap: 10px 28px;

    margin-top: 36px;

    padding-top: 22px;

    border-top:
        1px solid
        var(--line);

    font-size: .86rem;

    color: var(--tx2);
}

.meta b {
    color: var(--tx);

    font-weight: 700;
}

.meta .st {
    color: var(--or);

    letter-spacing: 2px;
}


/* ==========================================================================
   VÍDEO
   ========================================================================== */

.finder {
    position: relative;

    justify-self: end;

    width: min(440px, 100%);

    aspect-ratio: 9 / 13;

    border-radius: 6px;

    overflow: hidden;

    background: #000;
}

.finder video,
.finder img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.finder::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, .45),
            transparent 22%,
            transparent 70%,
            rgba(0, 0, 0, .7)
        );
}

.finder .c {
    position: absolute;

    z-index: 2;

    width: 26px;
    height: 26px;

    border-color: var(--or);
    border-style: solid;
    border-width: 0;
}

.finder .c1 {
    top: 14px;
    left: 14px;

    border-top-width: 2px;
    border-left-width: 2px;
}

.finder .c2 {
    top: 14px;
    right: 14px;

    border-top-width: 2px;
    border-right-width: 2px;
}

.finder .c3 {
    bottom: 14px;
    left: 14px;

    border-bottom-width: 2px;
    border-left-width: 2px;
}

.finder .c4 {
    bottom: 14px;
    right: 14px;

    border-bottom-width: 2px;
    border-right-width: 2px;
}

.finder .hud {
    position: absolute;

    z-index: 2;

    left: 26px;
    right: 26px;

    display: flex;

    justify-content: space-between;

    gap: 10px;

    font-family: var(--mono);

    font-size: .66rem;

    letter-spacing: .12em;

    text-transform: uppercase;

    color: #fff;
}

.finder .hud.t {
    top: 22px;
}

.finder .hud.b {
    bottom: 22px;

    align-items: flex-end;
}

.finder .rec {
    display: inline-flex;

    align-items: center;

    gap: 7px;
}

.finder .rec::before {
    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #ff3b30;

    animation:
        blink
        1.4s
        steps(2)
        infinite;
}

@keyframes blink {
    50% {
        opacity: .2;
    }
}

.finder .scan {
    position: absolute;

    z-index: 1;

    left: 0;
    right: 0;

    height: 30%;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(255, 102, 1, .08),
            transparent
        );

    animation:
        scan
        5s
        linear
        infinite;
}

@keyframes scan {
    from {
        top: -30%;
    }

    to {
        top: 100%;
    }
}

.finder .hud b {
    font-weight: 500;
}


/* ==========================================================================
   STATUS
   ========================================================================== */

.open-st {
    display: inline-flex;

    align-items: center;

    gap: 8px;
}

.open-st i {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #77736b;
}

.open-st.on i {
    background: #25D366;
}


/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width: 900px) {

    .hero {
        min-height: 0;

        padding: 104px 0 56px;
    }

    .hero .wrap {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 40px;
    }

    .finder {
        justify-self: stretch;

        width: 100%;

        aspect-ratio: 4 / 5;

        max-height: 70vh;
    }

    .hero h1 {
        max-width: 620px;

        font-size:
            clamp(
                2.3rem,
                7vw,
                3.8rem
            );
    }

}


@media (max-width: 640px) {

    .hero h1 {
        font-size:
            clamp(
                2rem,
                9vw,
                2.8rem
            );

        line-height: 1.02;

        margin:
            22px
            0
            20px;
    }

    .hero .lede {
        font-size: .98rem;

        line-height: 1.65;
    }

    .hero .ctas .btn {
        flex:
            1 1 100%;
    }

    .cred {
        font-size: .64rem;

        letter-spacing: .04em;
    }

}


@media (min-width: 901px) and (max-height: 820px) {

    .hero {
        padding:
            104px
            0
            56px;
    }

    .hero h1 {
        font-size:
            clamp(
                2.25rem,
                3.8vw,
                3.7rem
            );

        margin:
            20px
            0
            18px;
    }

    .meta {
        margin-top: 26px;
    }

    .finder {
        width:
            min(
                380px,
                100%
            );
    }

}