/*——— DEFAULT STYLES – DESKTOP ———*/

/* typography */
body {
    margin: 0;
    font-family: 'Yantramanav', sans-serif;
    font-weight: 400;
}
h1, h2, h3, p {
    padding: 0 40px;
    margin: 0;
    line-height: 1.1;
}
h1 {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.1;
    margin: 10px 0;
}
p, ul, li {
    font-size: 22px;
    line-height: 1.1;
    margin: 10px 0;
}
a:link {
    color: #53E0BB;
    text-decoration: none;
}
a:visited {
    color: #53E0BB;
}
a:hover {
    color: #53E0BB;
}
a:active {
    color: #53E0BB;
}

/* controls */
.controls {
    position: fixed;
    z-index: 1;
    bottom: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    background: #ffffff;
    color: rgba(0,0,0,.5);
    -webkit-transition: .5s;
    transition: .5s;
}
    .controls:hover {
        background: none;
    }
        .controls:hover .paginate {
            color: rgba(0,0,0,.0);
            cursor: none;
        }
        .controls .paginate {
            width: 50%;
            background: 0;
            border-radius: 0;
            border: 0;
            margin: 0;
            padding: 12px 0;
            -webkit-transition: .5s;
            transition: .5s;
            transition-delay: .1s;
            -webkit-transition-delay: .1s;
            color: rgba(0,0,0,.5);
            cursor: auto;
        }
            .controls .paginate:hover {
            }
            .controls .paginate:active {
                background: #ffffff;
                color: rgba(0,0,0,.5);
                cursor: auto;
            }
            .controls .paginate:focus {
                outline: 0;
            }

/* grid */
.projects {
    height: 0;
    overflow: hidden;
    transition: .2s;
    -webkit-transition: .2s;
    margin-top: 40vh;
}
    .projects.reveal {
        margin-top: 0;
        height: auto;
    }
.page-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 100vh;
    justify-content: center;
}
    .page-grid.reverse {
        flex-direction: row-reverse;
    }
    .page-grid.tall {
        height: 180vh;
    }
    .page-grid > .item.col1 {
        flex-basis: 33%;
    }
    .page-grid > .item.col2 {
        flex-basis: 66%;
    }
    .page-grid > .item.col3 {
        flex-basis: 100%;
    }
    .page-grid .vid-ex {
        margin-top: 5%;
        width: 100%; 
        height: 80%;
        background: #efefef;
    }
.text-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100vh;
}
    .text-slide p, .text-slide h1, .text-slide li {
        width: 90%;
        font-size: 42px;
        margin: 0 auto 20px;
        opacity: 1;
        line-height: 1.2;
        transition: .1s;
        -webkit-transition: .1s;
        text-align: left;
        max-width: 880px;
    }
        .text-slide h1.center, .text-slide p.center {
            text-align: center;
        }
        .text-slide h1.title {
            font-weight: normal;
            font-size: 62px;
        }
        .text-slide p.hang-quote::before {
            content: "“";
            float: left;
            display: inline-block;
            margin-left: -20px;
        }
            p.hang-quote {
                overflow: hidden;
                font-size: 36px;
            }
    li.build-out, p.build-out {
    transition: .6s;
    -webkit-transition: .6s;
    }
        li.build-out.fade, p.build-out.fade {
            color: #efefef;
            transform: translate(0, 2px);
            -ms-transform: translate(0, 2px);
            -webkit-transform: translate(0, 2px);
        }
    li.build-in, p.build-in {
    transition: .4s;
    -webkit-transition: .4s;
    opacity: 0;
    transform: translate(0, 2px);
    -ms-transform: translate(0, 2px);
    -webkit-transform: translate(0, 2px);
    }
        li.build-in.fade, p.build-in.fade {
            opacity: 1;
            transform: translate(0, 0px);
            -ms-transform: translate(0, 0px);
            -webkit-transform: translate(0, 0px);
        }
.item-grid {
    height: 100%;
    display: flex;.
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    overflow: hidden;
}
    .item-grid > .item {
        height: 100%;
        width: 100%;
        margin: 4px 0;
    }
    .item-grid > .item-grid {
        flex-direction: row;
    }
        .item-grid > .item-grid.vert-center {
            flex-direction: column;
            justify-content: center;
        }
        .item-grid > .item-grid.small {
            flex-direction: row;
            flex-basis: 50%;
        }
.writeup {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
    .page-grid.tall .writeup {
        margin-top: 25%;
        justify-content: flex-start;
    }
.mobile-device {
    margin: 0 auto;
    width:338px;
    height:568px;
    border-top: 50px solid black;
    border-bottom: 50px solid black;
    border-left: 10px solid black;
    border-right: 10px solid black;
    border-radius: 20px;
}

/* assets */
.img-sb-logo {
    background: url(image/ui-logo-script.svg);
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
}
.img-gmil {
    background: url(image/gmil.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.img-nuremb {
    background: url(image/ex-nuremb.jpg);
    background-size: 90%;
    background-repeat: no-repeat;
    background-position: center;
}
.img-comics {
    background: url(image/ex-comics.jpg);
    background-size: 75%;
    background-repeat: no-repeat;
    background-position: center;
}
.img-maira {
    background: url(image/ex-maira.jpg);
    background-size: 95%;
    background-repeat: no-repeat;
    background-position: center;
}
.img-cardiff1 {
    background: url(image/ex-cardiff-1.jpg);
    background-size: 95%;
    background-repeat: no-repeat;
    background-position: right;
}
.img-cardiff2 {
    background: url(image/ex-cardiff-2.jpg);
    background-size: 95%;
    background-repeat: no-repeat;
    background-position: left;
}
.img-treasure {
    background: url(image/ex-treasure.jpg);
    background-size: 95%;
    background-repeat: no-repeat;
    background-position: center;
}
.img-serial {
    background: url(image/serial-timeline.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.img-sb-frames {
    background: url(image/sb-wireframes.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.img-luke1 {
    background: url(image/ex-luke-1.jpg);
    background-size: 90%;
    background-repeat: no-repeat;
    background-position: center;
}
.img-luke2 {
    background: url(image/ex-luke-2.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.img-luke3 {
    background: url(image/ex-luke-3.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.img-mona {
    background: url(image/mona.jpg);
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: right;
}
.img-whatsapp {
    background: url(image/whatsapp-sm.gif);
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
}
.img-strangebird {
    background: url(image/sb-multi.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.img-sb-noti-player {
    background: url(image/sb-notification-player.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.img-sb-noti-msg {
    background: url(image/sb-notification-chart.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.img-sb-chatframe1 {
    background: url(image/sb-chatframe1.png);
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
}
.img-sb-chatframe2 {
    background: url(image/sb-chatframe2.png);
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: left;
}
.img-labrdr-multi2 {
    background: url(image/labrdr-views-2b.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.img-labrdr-multi {
    background: url(image/labrdr-views-4b.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.img-labrdr-load {
    background: url(image/labrdr-loading.gif);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.img-labrdr-done {
    background: url(image/labrdr-all-done.gif);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.img-labrdr-log-geo {
    background: url(image/labrdr-log-location.gif);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.img-labrdr-notification {
    background: url(image/labrdr-notification.gif);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* one-off styles */
.bg-gray {
    background: #efefef;
}
.bg-card {
    background: #f4eedf;
}
.bg-orange {
    background: #F57A22;
    color: #ffffff;
}
.bg-teal {
    background: #d7f7f0;
}
.bg-black {
    background: #000000;
    color: #ffffff;
}
.build-q {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}
h1.title.build-q  {
    font-size: 36px;
}
.build-q span {
    display: inline-block;
    margin: 0 3px;
}
.build-q span.buildin-q {
    color: none;
    font-size: 1%;
    transition: .1s;
    -webkit-transition: .1s;
}
    .build-q span.buildin-q.appear {
        font-size: 100%;
        color: #53E0BB;
    }

/*——— OVERRIDE STYLES – MOBILE ———*/

@media (max-width: 768px) {
    /*typography*/
    h1, h2, h3, p {
        padding: 0 20px;
        line-height: 1.1;
    }
    .text-slide {
        padding: 20px 0 10px;
    }
        .text-slide p, .text-slide h1, .text-slide li {
            font-size: 24px;
            margin: 0 auto 20px;
            opacity: 1;
            line-height: 1.2;
            transition: .1s;
            -webkit-transition: .1s;
            text-align: left;
        }
            .text-slide h1.center, .text-slide p.center {
                text-align: center;
            }
            .text-slide h1.title {
                font-weight: normal;
                font-size: 54px;
            }
    /* controls */
    .controls {
        display: none;
    }
    /* grid */
    .page-grid, .page-grid.reverse {
        height: auto;
        flex-direction: column-reverse;
    }
        .page-grid > .item.col2 {
            height: 80vh;
        }
            .page-grid.tall {
                height: auto;
            }
                .page-grid.tall > .item.col2 {
                    height: 160vh;
                }
                    .page-grid.mobile-tall > .item.col2 {
                        height: 160vh;
                    }
                    .page-grid.tall.mobile-untall > .item.col2 {
                        height: 80vh;
                    }
    .item-grid > .item-grid {
        flex-direction: column;
    }
    .text-slide p.hang-quote::before {
            margin-left: -10px;
        }
    .writeup {
        justify-content: flex-start;
        padding: 24px 0;
    }
    
    /* assets */
    .page-grid .vid-ex {
        margin-top: 0;
        margin-bottom: 10%;
        height: auto;
    }
    .img-serial {
        background-size: cover;
    }
    .img-sb-welcome {
        background: url(image/sb-welcome.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    .img-sb-frames {
        background-size: cover;
    }
    .img-mona {
        background-position: top;
    }
    .img-whatsapp {
        background-position: top;
    }
    .img-sb-noti-player {
        background-position: top;
    }
    .img-sb-noti-msg {
        background-position: top;
    }
    .img-labrdr-multi2 {
        background-position: top;
    }
    .img-labrdr-multi {
        background-size: cover;
    }
    .img-labrdr-load {
        background-size: cover;
    }
    .img-labrdr-done {
        background-size: cover;
    }
    .img-labrdr-log-geo {
        background-size: cover;
    }
    .img-labrdr-notification {
        background-size: cover;
    }
    /* one-off styles */
    .mobile-none {
        display: none;
    }
}