.DOMLoaded {
    #slide {
        .wrap {
            &.is-intersect {
                border-color: var(--primary) !important;   
                transform: scale(1);         
            }             
        }     
    }
}

#slide {
    overflow: hidden;
    position: relative;

    @media only screen and (max-width: 980px) {
        margin-bottom: -50px;
    }

    .wrap {
        border-style: solid;
        border-color: transparent;
        border-width: 3px 3px 0px 3px;
        border-top-left-radius: 64px;
        border-top-right-radius: 64px;
        padding: 64px;
        box-sizing: border-box;
        overflow: hidden;
        position: relative;
        margin-top: 80px;           
        height: calc(100vh - 80px);
        transform: scale(0.9);
        transition: all 1s;

        .copyright {
            position: absolute;
            bottom: 32px;
            left: 64px;
        }

        [data-current-time] {
            position: absolute;
            bottom: 32px;
            right: 64px;            
            background: #000;
            border: 1px solid #fff;
            border-radius: 150px;
            display: inline-flex;
            align-items: center;
            padding: 8px 15px;
            font-size: 12px;

            &:before {
                content: "";
                width: 10px;
                height: 10px;
                background: var(--primary);
                border-radius: 50%;
                margin-right: 7px;
            }

            [data-current-time-timezone] {
                color: var(--primary);
                margin-left: 7px;
            }
        }

        @media only screen and (max-width: 980px) {
            .copyright, [data-current-time] {
                display: none;
            }
        }

        @media only screen and (max-width: 980px) {
            padding-inline: 32px;
        }

        .content {
            display: grid;   
            justify-content: center;  
            gap: 100px;  

            @media only screen and (max-width: 980px) {
                gap: 30px;  
            }

        }

        .texts {
            display: grid;
            gap: 12px;
            align-content: baseline;

            @media only screen and (max-width: 980px) {
                gap: 5px;
            }   

            .company {
                text-box: cap alphabetic;
                font-size: 40px;
                text-transform: uppercase;
                font-family: var(--font-alt);
                text-align: center;
                position: relative;
                z-index: 2;

                @media only screen and (max-width: 980px) {
                    font-size: 22px;
                }              
            }

            .title {
                --size: 1px;
                --width: 18px;
                --color: rgba(255,255,255,0.3);

                @media only screen and (max-width: 980px) {
                    --width: 14px;
                }

                background-image:
                    /* Top-left corner */
                    linear-gradient(var(--color), var(--color)),   /* vertical */
                    linear-gradient(var(--color), var(--color)),   /* horizontal */

                    /* Top-right corner */
                    linear-gradient(var(--color), var(--color)),
                    linear-gradient(var(--color), var(--color)),

                    /* Bottom-left corner */
                    linear-gradient(var(--color), var(--color)),
                    linear-gradient(var(--color), var(--color)),

                    /* Bottom-right corner */
                    linear-gradient(var(--color), var(--color)),
                    linear-gradient(var(--color), var(--color));

                background-repeat: no-repeat;
                background-size:
                    var(--size) var(--width),   /* top-left vertical */
                    var(--width) var(--size),   /* top-left horizontal */

                    var(--size) var(--width),   /* top-right vertical */
                    var(--width) var(--size),   /* top-right horizontal */

                    var(--size) var(--width),   /* bottom-left vertical */
                    var(--width) var(--size),   /* bottom-left horizontal */

                    var(--size) var(--width),   /* bottom-right vertical */
                    var(--width) var(--size);   /* bottom-right horizontal */

                background-position:
                    left top,         /* top-left vertical */
                    left top,         /* top-left horizontal */

                    right top,        /* top-right vertical */
                    right top,        /* top-right horizontal */

                    left bottom,      /* bottom-left vertical */
                    left bottom,      /* bottom-left horizontal */

                    right bottom,     /* bottom-right vertical */
                    right bottom;     /* bottom-right horizontal */



                padding: 32px;
                text-box: cap alphabetic;
                color: var(--primary);
                font-size: 360px;
                position: relative;
                z-index: 2;
                text-align: center;
                position: relative;
                width: fit-content;
                margin-inline: auto;
                transform: scale(0.8);
                transition: all 1s;

                .shadows {
                    display: grid;
                    grid-template-rows: 1fr;
                    transition: grid-template-rows 0.5s ease-out;
                    overflow: hidden;
                    position: absolute;
                    top: calc(100% - 26px);

                    .inner {
                        overflow: hidden;                        
                    }

                    .shadow {
                        height: 30px;
                        overflow: hidden;
                        display: flex;
                        align-items: end;
                        margin-bottom: 5px;
                        transition: all 0.5s;

                        span {
                            display: block;                      
                            text-box: cap alphabetic;
                            color: #fff;
                            font-size: 360px;
                        }

                        &:nth-child(1) {
                            height: 30px;
                        }

                        &:nth-child(2) {
                            height: 24px;
                        }

                        &:nth-child(3) {
                            height: 19px;
                        }
                    }                              
                }   



                @media only screen and (max-width: 980px) {
                    font-size: 160px;
                    display: none;
                    padding: 16px;
                }  

                &.is-intersect {
                   transform: scale(1);

                   .shadows {
                        grid-template-rows: 0fr;
                   }
                }

            }

            .mobile-title {
                display: none;

                @media only screen and (max-width: 980px) {
                    display: block;
                }                 
            }
        }

        .desc {
            font-size: 13px;
            text-transform: uppercase;
            margin-inline: auto;
            text-align: center;
            position: relative;
            z-index: 2;         
            line-height: 1.3;   

            @media only screen and (min-width: 980px) {
                max-width: 615px;
                font-size: 16px;                
            } 

        }

        .dots {
            z-index: -2;
            width: 100%;
            filter: grayscale();
            pointer-events: none;
            object-fit: cover;
            height: 50%;
            position: absolute;
            bottom: 0%;
            left: 0%;
            right: 0%;
        }

        .circles {
            z-index: 0;
            opacity: .5;
            pointer-events: none;
            transform-style: preserve-3d;
            justify-content: center;
            align-items: center;
            display: flex;
            position: absolute;
            inset: 0%;

            @media only screen and (max-width: 980px) {
                display: none;             
            } 

            .circle-1 {
              z-index: 0;
              width: 20em;
              height: 20em;
              border: .125em solid #3e4047;
              border-radius: 120em;
              position: absolute;
            }

            .circle-2 {
              width: 32em;
              height: 32em;
              border: .125em solid #3e4047;
              border-radius: 120em;
              position: absolute;
            }

            .circle-3 {
              width: 45em;
              height: 45em;
              border: .125em solid #3e4047;
              border-radius: 120em;
              position: absolute;
            }

            .circle-4 {
              width: 60em;
              height: 45em;
              border: .125em solid #3e4047;
              border-radius: 120em;
              position: absolute;
            }

            .circle-5 {
              width: 75em;
              height: 45em;
              border: .125em solid #3e4047;
              border-radius: 120em;
              position: absolute;
            }

        }

        #lottie {
            z-index: 2;
            width: 70%;
            position: absolute;
            left: 0;
            right: 0;
            bottom: -90vh;
            margin-inline: auto;
            transition: all 1s;

            &.is-intersect {
                bottom: -60vh;
            }

            @media only screen and (max-width: 980px) {
                bottom: 0vh;
     
                &.is-intersect {
                    bottom: 9vh;
                }
            }
        }

    }

    .ruler {
        __transform: translateY( calc(100% * var(--scroll)) );
    }
}