.home {
    background-color: #2a282d;
    .main {
        overflow-x: hidden;
        &:before {
            @include tablet {
                background: rgba(0, 0, 0, 0.6);
                background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
                background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(0, 0, 0, 0.6)), color-stop(100%, rgba(0, 0, 0, 0)));
                background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
                background: -o-linear-gradient(top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
                background: -ms-linear-gradient(top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
                background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
                filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000000', endColorstr='#000000', GradientType=0);
                z-index: 0;
                height: 300px;
                //background-color: red;
                display: block;
                position: absolute;
                top: 0px;
                left: 0px;
                right: 0px;
                width: 100%;
                content: '';
            }
        }
        .after {
            @include tablet {
                transition: all 0.5s ease;
                width: 0;
                height: 0;
                border-top: 850px solid transparent;
                border-left: 850px solid #73674d;
                border-bottom: 0px solid transparent;
                content: '';
                z-index: 1;
                position: absolute;
                bottom: 0;
                opacity: 0.8;
            }
        }
        &__content {
            @include desktop {
                padding-left: 50px;
            }
        }
        &__bg {
            @extend .u__bg;
            background-image: url('/assets/img/bg_top-mobile.jpg');
            @include tablet {
                background-image: url('/assets/img/bg_top.jpg');
                z-index: 0;
            }
        }
        &__animation-overlay {
            @include tablet {
                display: none
            }
            @include desktop {
                display: block;
            }
        }
        &__titles {
            h1 {
                line-height: .95em;
                text-transform: uppercase;
                margin-top: 30px;
                font-size: 13vw;
                //transition: font-size 0.5s ease;
                @include tablet {
                    font-size: 9.2em;
                }
                @include desktop {
                    font-size: 6vw;
                }
                @include large {
                    font-size: 9.2em;
                }
                br {
                    display: none;
                    @include tablet {
                        display: none;
                    }
                }
            }
            h2 {
                line-height: 1.3em;
                font-weight: normal;
                font-size: 1.9em;
                margin-top: 0px;
                color: $muddy-white;
                @include tablet {
                    font-size: 4em;
                }
                @include desktop {
                    font-size: 3vw;
                }
                @include large {
                    font-size: 3.6em;
                }
            }
        }
        &__link {
            padding: 27px 60px 26px 110px;
            overflow: hidden;
            position: relative;
            &:hover {
                .flecha.one {
                    transform: translateY(200%)
                }
                .flecha.two {
                    transform: translateY(-7px);
                    height: 20px;
                }
                &:before {
                    transform: translateY(0%);
                transition: all 0.25s ease-out;
                opacity: 1;

                }
            }
            &:before {
                content: '';
                display: block;
                top: 0;
                bottom: 0;
                right: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: #937846;
                position: absolute;
                z-index: 0;
                transition: all 0.25s ease;
                transform: translateY(-100%);
                opacity: 0;

            }
            span {
                position: relative;
                z-index: 2;
            }
        }
        &__cta {
            position: relative;
            .circle {
                width: 30px;
                height: 30px;
                overflow: hidden;
                position: relative;
                border-radius: 30px;
                color: white;
                border: 1px solid rgba(255, 255, 255, 0.8);
                 position: absolute;
                left: 65px;
                top: 18px;
                opacity: .8;

            }
            .flecha {
                position: relative;
                height: 14px;
                width: 1.3px;
                background-color: white;
                opacity: 0.8;
                position: absolute;
                left: 50%;
                margin-top: 6px;
                transition: all 0.5s ease;
                &:before {
                    content: '';
                    display: block;
                    width: 1.3px;
                    height: 7px;
                    background-color: white;
                    position: absolute;
                    transform: rotate(-45deg);
                    transform-origin: bottom right;
                    bottom: 0;
                }
                &:after {
                    content: '';
                    display: block;
                    width: 1.3px;
                    height: 7px;
                    background-color: white;
                    position: absolute;
                    transform: rotate(45deg);
                    transform-origin: bottom left;
                    bottom: 0;
                }
                &.one {

                }
                &.two {
                    transform: translateY(-200%)
                }
            }

            img {
            }
        }
    }
    &.start-up {
        .main {
            &:before {
                @include tablet {}
            }
            .after {
                @include tablet {
                    border-top: 3850px solid transparent;
                    border-left: 3850px solid #927d4b;
                    animation: start-up .85s forwards cubic-bezier(0, 0, 0.24, 1);
                    animation-delay: 2s;
                    opacity: 1;
                }
            }
            &__bg {
                animation: bg-zoom-out 1.2s forwards cubic-bezier(0, 0, 0.24, 1);
                animation-delay: 2s;
                transition: transform 1s ease;
                transform: scale(1.2);
            }
            &__animation-overlay {
                @include tablet {
                    animation: fade-in .5s forwards cubic-bezier(0, 0, 0.24, 1);
                    opacity: 0;
                }
            }
            .animated-overlay {
                .arrow__down {
                    height: 100px;
                    animation: arrow-down-go 1.4s forwards cubic-bezier(0, 0, 0.24, 1);
                    animation-delay: 2s;
                }
                .arrow__right {
                    width: 164px;
                    animation: arrow-right-go 1.4s forwards cubic-bezier(0, 0, 0.24, 1);
                    animation-delay: 2s;
                }
            }
        }
    }
}

.start-up .animation-block {
    @include tablet {
        display: block;
        overflow: hidden;
    }
    &__inner {
        @include tablet {
            display: block;
            transform: translateY(110%);
            animation: text-move-up .65s forwards ease;
        }
    }
    &:nth-child(1) {
        .animation-block__inner {
            animation-delay: 1.1s;
        }
    }
    &:nth-child(2) {
        .animation-block__inner {
            animation-delay: 1.2s;
        }
    }
    &:nth-child(3) {
        .animation-block__inner {
            animation-delay: 1.3s;
        }
    }
    &:nth-child(4) {
        .animation-block__inner {
            animation-delay: 1.4s;
        }
    }
    &:nth-child(5) {
        .animation-block__inner {
            animation-delay: 1.53s;
        }
    }
}

.start-up .animation-fade {
    animation: text-fade 1s forwards ease;
    display: block;
    opacity: 0;
    &:nth-child(1) {
        animation-delay: 0s;
    }
    &:nth-child(2) {
        animation-delay: 0.5s;
    }
}

.intro {
    float: left;
    height: 440px;
    background-color: #242428;
    position: relative;
    display: table;
    width: 100%;
    //%extend .clear;
    @include tablet {
        height: 660px;
    }
    &__bg {
        overflow: hidden;
        @extend .u__bg;
        //background-image: url('/assets/img/clouds.png');
        z-index: 0;
        opacity: 0.7;
        @include desktop {
            opacity: 0.9;
        }
        video {
            display: none;
            @include desktop {
                width: 100% !important;
                height: auto !important;
                position: absolute;
                //top: 0;
                left: 0;
                bottom: 0;
                display: block;
                right: 0;
            }
        }
        // @include tablet {
        //     mix-blend-mode: multiply;
        //     opacity: 1;
        // }
    }
    &__animation-overlay {
        max-width: 923px;
        width: 100%;
        height: 328px;
        //background-color: black;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0.3;
        @include tablet {
            width: 90%;
        }
        @include desktop {
            width: 100%;
        }
    }
    &__content {
        max-width: 923px;
        //height: 538px;
        width: 80%;
        position: relative;
        text-align: center;
        margin: 140px auto;
        display: block;
        padding: 10px;
        @include tablet {
            height: 328px;
            display: table-cell;
            width: 100%;
            vertical-align: middle;
            margin: 239px auto;
        }
        .before {
            @include triangle(bottom,
            #73674d,
            180px);
            position: absolute;
            right: -30px;
            top: -100px;
            z-index: 0;
            height: 800px;
            opacity: 0.8;
            @include tablet {
                @include triangle(bottom,
                #73674d,
                330px);
                position: absolute;
                left: 50%;
                top: -40px;
                right: auto;
                margin-left: 400px;
                z-index: 1;
                animation: fade-top-triangle 1s ease;
            }
        }
        p {
            max-width: 372px;
            margin: 0 auto;
            font-family: Lora;
            font-size: 1.8em;
            color: $muddy-white;
            line-height: 1.5em;
            @include tablet {
                max-width: 764px;
                font-size: 2.8em *.8;
            }
            @include desktop {
                font-size: 2.8em;
            }
            strong {
                color: #73c0d1;
            }
        }
    }
}

.details {
    width: 100%;
    float: left;
    padding: 0px 0px 0px 40px;
    @include tablet {
        height: 900px;
    }
    position: relative;
    &__bg {
        @extend .u__bg;
        background-image: url('/assets/img/bg_home-details.jpg');
    }
    .row {
        display: table;
        width: 100%;
        height: 100%;
    }
    &__description {
        vertical-align: middle;
        font-size: 32px;
        line-height: 1.1em;
        color: white;
        font-weight: normal;
        max-width: 880px;
        transition: margin 0.5s ease;
        margin: 100px 0;
        br {
            display: none;
            @include desktop {
                display: block;
            }
        }
        @include tablet {
            padding-top: 20px;
            margin: -341px 0px 0px 0px;
            font-size: 52px;
        }
        @include large {
            margin: 0 0px 0px 40px;
        }
    }
    &__content {
        @include tablet {
            width: auto;
            float: none;
            display: table-cell;
            vertical-align: middle;
        }
    }
    &__side-description {
        background-color: black;
        height: auto;
        width: 100%;
        padding: 80px 30px 80px 20px;
        float: left;
        @include tablet {
            background-color: black;
            height: 400px;
            max-width: 500px;
            padding: 80px 30px;
            position: absolute;
            bottom: 60px;
            right: 43px;
        }
        @include desktop {
            background-color: black;
            height: 500px;
            width: 360px;
            padding: 80px 30px;
            position: absolute;
            bottom: -49px;
            right: 43px;
        }
        p {
            font-family: Lora;
            font-size: 15px;
            color: white;
            line-height: 1.6em;
            position: relative;
            @include tablet {
                font-size: 24px;
            }
            &:before {
                content: '';
                width: 100px;
                height: 2px;
                background-color: #73c0d1;
                position: absolute;
                top: -40px;
            }
        }
    }
    .row {}
}

.categories {
    position: relative;
    clear: both;
    margin-top: 0px;
    &.row {
            padding: 0;
            @include desktop {
                padding: 0 120px;
            }
            @include max {
                padding: 100px;
            }
        }
    @include desktop {
        margin-top: 155px;
    }
    @include large {
        margin-top: 175px;
    }
    &__top-box {
        width: 100%;
        float: left;
        padding: 20px 20px 40px 20px;
        transition: all 1s cubic-bezier(0.16, 0.4, 0.38, 0.82);
        @include desktop {
            transform: scale(.8);
            width: 694px;
            position: absolute;
            left: 0px;
            top: -208px;
            padding: 0 0 39px;
            z-index: 5;
        }
        @include large {
            transform: scale(1);
            width: 694px;
            position: absolute;
            left: 0px;
            top: -158px;
            padding: 0 0 39px;
            z-index: 5;
        }
        @include huge {
            left: -37px;
        }
    }
     &__top-box-background {
        @extend .u__bg;
        background-color: black;
        margin-top:50px;
     }
    &__top-decor {
        $box-width-mobile: 400px;
        $box-width: 550px;
        width: $box-width-mobile;
        height: $box-width-mobile;
        transform: scale(0.7);
        transform-origin: top right;
        right: 25px;
        top: 25px;
        z-index: 0;
        position: absolute;
        @include desktop {
            transform: scale(1);
            right: 80px;
            top: 80px;
            width: $box-width;
            height: $box-width;
        }
        &:before {
            @include triangle(bottom,
            #73674d,
            $box-width-mobile);
            position: absolute;
            right: 20px;
            top: 20px;
            opacity: 0.8;
            @include desktop {
                @include triangle(bottom,
                #73674d,
                $box-width);
                right: 20px;
                top: 20px;
            }
        }
        *,
        *:after,
        span {
            background-color: #b5a272;
        }
        *:before {
            border-color: #b5a272;
        }
        .u__angle-box-1 {
            &:before {
                display: none;
            }
        }
    }
    &__top-title {
        z-index: 1;
        position: relative;
        @include desktop {
            margin-left: 140px;
            margin-top: 174px;
            margin-bottom: 60px;
        }
        h4 {
            font-weight: bold;
            color: white;
            margin: 0px;
            text-transform: uppercase;
            font-size: 11vw;
            @include tablet {
                font-size: 11vw;
            }
            @include desktop {
                font-size: 92px;
                //position: absolute;
                width: 750px;
            }
        }
    }
    &__top-paragraph {
        width: 93%;
        z-index: 1;
        position: relative;
        @include desktop {
            margin-left: 140px;
            max-width: 425px;
        }
        p {
            font-size: 15px;
            font-family: Lora;
            color: white;
            line-height: 1.5em;
            @include desktop {
                 max-width: 300px;
                font-size: 24px;
                max-width: none;
            }
        }
    }
    &__category,
    .category {}
    .category {
        max-width: 1440px;
        margin: 0 auto;

        &__item:first-child {
            display: none;
            @include desktop {
                display: block;
            }
        }
        &__item {
            $height: 440px;
            display: table;
            background-color: #282828;
            position: relative;
            width: 50%;
            float: left;
            overflow: hidden;
            height: 40vw;
            transition: all 0.2s ease;
            @include desktop {
                width: 33.333%;
                //background-color: red;
                height: $height;

            }
            &:hover:not(:first-child) {
                @include desktop {
                    transform: scale(1.1);
                    z-index: 2;
                    -webkit-box-shadow: 0px 0px 30px 0px rgba(50, 50, 50, 0.55);
                    -moz-box-shadow: 0px 0px 30px 0px rgba(50, 50, 50, 0.55);
                    box-shadow: 0px 0px 30px 0px rgba(50, 50, 50, 0.55);
                    transition: all 0.6s ease;
                }
                .category__item-image {
                    @include desktop {
                        opacity: 0.5;
                        transition: opacity 0.6s ease;
                    }
                }
                .category__item-container {
                    @include desktop {
                        transition: transform 0.6s ease;
                    }
                }
            }
            &.main {}
            &.architects {
                .category__item-image {
                    background-image: url('/assets/img/category__architects.jpg');
                }
                @include desktop {
                    height: $height * 2;
                    padding-top: $height;
                }
            }
            &.general-contractors {
                @include desktop {
                    // margin-left: -100%;
                    margin-top: -$height;
                }
                .category__item-image {
                    background-image: url('/assets/img/category__general-contractor.jpg');
                }
            }
            &.interior-designers {
                .category__item-image {
                    background-image: url('/assets/img/category__interior-designers.jpg');
                }
            }
            &.landscape-architects {
                .category__item-image {
                    background-image: url('/assets/img/category__landscape-architects.jpg');
                }
            }
        }
        &__item-image {
            z-index: 1;
            opacity: 0.3;
            transition: opacity 0.5s ease;
        }
        &__item-container {
            display: table-cell;
            vertical-align: middle;
            text-align: center;
            z-index: 1;
            position: relative;
            transition: transform 0.3s ease;
        }
        &__item-logo {
            img {
                height: 40px;
                @include desktop {
                    height: 75px;
                }
                @include large {
                    height: 67px;
                }
            }
        }
        &__item-description {
            text-transform: uppercase;
            font-weight: bold;
            color: white;
            margin-top: 50px;
            font-size: 14px;
            @include desktop {
                font-size: 18px;
                letter-spacing: -0.5px;
            }
            @include large {
                font-size: 22px;
                letter-spacing: 0px;
            }
        }
    }
}

.outro {
    text-align: center;
    float: left;
    width: 100%;
    margin-top: 100px;
    margin-bottom: 100px;
    .row {
        @include tablet {
            padding: 0 138px;
        }
    }
    &__line-first {
        font-size: 30px;
        color: $bright-muddy-gold;
        line-height: 1.3em;
        @include tablet {
            font-size: 52px *.8;
        }
        @include desktop {
            font-size: 52px;
        }
    }
    &__line-second {
        font-size: 15px;
        margin: 0 auto;
        font-family: Lora;
        color: #bcbcbc;
        max-width: 820px;
        line-height: 1.5em;
        padding-top: 40px;
        @include tablet {
            font-size: 28px *.8;
        }
        @include desktop {
            font-size: 28px;
        }
    }
    &__logo {
        padding-top: 30px;
        img {
            width: 200px;
            @include tablet {
                width: auto;
            }
        }
    }
}

.quote {
    padding: 60px 0px;
    float: left;
    width: 100%;
    text-align: center;
    .row {
        @include desktop {
           // padding: 0px 50px;
           padding: 0px 140px;
        }
        @include large {
         padding: 0px 80px;
        }        
    }
    @include tablet {
        padding: 100px 0px;
    }
    @include desktop {
        padding: 124px 0px;
    }
    &__quote {
        font-size: 18px;
        color: #bcbcbc;
        font-family: lora;
        font-style: italic;
        line-height: 1.5em;
        margin: 0 auto;
        @include tablet {
            font-size: 22px *.8;
            max-width: 810px *.8;
        }
        @include desktop {
            max-width: 810px;
            font-size: 22px;
        }
    }
    &__author {
        font-size: 16px;
        color: #73c0d1;
        line-height: 1em;
        margin-top: 40px;
        font-weight: bold;
        text-transform: uppercase;
        @include tablet {
            font-size: 18px *.8;
        }
        @include desktop {
            font-size: 18px;
        }
    }
}

.bse.active {
    &:before {
        position: fixed;
        top: 0px;
        bottom: 0px;
        left: 0px;
        right: 0px;
        background-color: #333237;
        opacity: 0.9;
        content: '';
        width: 100%;
        z-index: 9;
    }
}


.next-page {
    padding: 140px 0px;
    background-size: cover;
    position: relative;
    z-index: 5;
    float: left;
    width: 100%;
    &.gallery {
        max-width: none;
    }
    @include tablet {
        padding: 199px 0px;
    }
    .row {

    }
    &:before {
        content: '';
        position: absolute;
        top: 0px;
        left: 0px;
        right: 0px;
        bottom: 0px;
        background-color: #927d4b;
        opacity: 0.5;
        transition: all 1s ease;
        display: block;
        z-index: 1;
    }
    &:hover {
        &:before {
            opacity: 0.7;
        }
        .next-page__bg {}
    }
    @include tablet {
        height: 500px;
        //overflow: hidden;
        width: 100%;
        float: left;
    }
    &__bg {
        @extend .u__bg;
        background-image: url('/assets/img/bg_next-page-services.jpg');
    }
    &__container {
        //transition-delay: 0.2s;
    }
    &__sup-title {
        @extend .pu__sup-title;
        transition: opacity 0.5s ease;
    }
    &__title {
            font-size: 40px;
            font-weight: bold;
            color: white;
            line-height: 40px;
            text-transform: uppercase;
            transition: opacity 1s ease;
        @include tablet {
            font-size: 92px;
            font-weight: bold;
            color: white;
            line-height: 100px;
            text-transform: uppercase;
            transition: opacity 1s ease;
        }
        a {
            color: white;
        }
    }
    .row {
        position: relative;
        z-index: 2;
        text-align: center;
    }
    &__animation-box {
        position: absolute;
        top: 0;
            z-index: -1;
        left: 50%;
        transform: translate(-50%, -80px);
        transition: opacity 1s ease;
        @include tablet {
         transform: translate(-50%, -182px);}
        img {
            width: 100px;
            @include tablet {
                width: auto;
            }
        }
    }
    .animation-block .animation-block__inner {
        animation: none;
        transform: translateY( 0px);
        transition-delay: 0.3s;
    }
    &.active {
        &:before {
            animation: move-up 1s forwards ease-out;
            animation-delay: 0.3s;
            opacity: 1;
        }
        &:hover {
            &:before {
                opacity: 1;
            }
        }
        .animation-block .animation-block__inner {
            animation: text-exit-up 0.5s forwards ease;
        }
        .next-page__animation-box,
        .next-page__sup-title {
            opacity: 0;
        }
    }
}
.next-page.spaces {
    .next-page__bg{
        background-image: url('/assets/img/next-up-spaces.jpg');
    }
}

.next-page.process {
    .next-page__bg{
        background-image: url('/assets/img/next-up-process.jpg');
    }
}

.next-page.visit {
    .next-page__bg{
        background-image: url('/assets/img/next-up-visit.jpg');
    }
}

.home > .bottom {
    background-image: url('/assets/img/bg_home-bottom-repeat.jpg');
    background-position: top center;
    background-repeat: repeat-x;
    float: left;
    width: 100%;
    overflow: hidden;
}

.bse.hide-everything-but-main section:not(.main){
    display: none;
}


.p-absolute-wrapper {
    position: absolute;
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    overflow: hidden;
    &.blah {
        bottom:-10%;
    }
    .bigger {
        transform: scale(1.5);
        position: absolute;
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    }
}
body:after {
    @include tablet {
        position:fixed;
        bottom:0px;
        height:100vh;
        width: 100%;
        z-index: 12;
        content: '';
        display: block;
        background-color: #927d4b;
        transform: translateY(100%);
        transition-delay: 3s;
        transition: transform 1s ease;
    }
}

body.anotherGDT:after {
    transform: translateY(0%);
    transition: transform 1s ease;
    transition-delay: 0s;
    position:fixed;
    bottom:0px;
    height:100vh;
    width: 100%;
    z-index: 12;
    content: '';
    display: block;
   // transition-delay: .5s;

}
.loader {
    display: none;
}
@include desktop {
    .loader {
        width: 0%;
        height: 6px;
        background-color: #1d1c1f;
        position: fixed;
        top: 0px;
        left: 0px;
        display: block;
        transition: width 0.5s ease;
        opacity: 0.9;
        z-index:10;
        overflow: hidden;
        &.first {
            width: 25%;
            height: 6px;
            z-index:10;
        }
        &.second {
            width: 55%;
            height: 6px;
            z-index:10;

        }
        &.third {
            width: 70%;
            height: 6px;
            z-index:10;


        }
        &.fourth {
             width: 100%;
            height: 6px;
            z-index:10;


        }
        &.expand {
            animation: pull-down forwards 0.5s ease;
            animation-delay: 0.5s;
            width: 100%;
            z-index:10;
        }
    }

    .breadcrumbs {
        width: 200px;
        text-align: center;
        margin: 14px auto;
        display: block;
        text-transform: uppercase;
        font-size: 14px;
        animation: fade-in forwards 0.5s ease;
        animation-delay: 1s;
        opacity: 0;
    }
}



@include tablet {}

@include desktop {}
