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

/* typography */

/*

font-family: 'Alegreya', serif;
font-family: 'Amiri', serif;
font-family: 'Gentium Basic', serif;
font-family: 'Yantramanav', sans-serif;

*/

body {
    margin: 0;
    font-family: 'Gentium Basic', serif;
    font-weight: 400;
    color: #444444;
    background: #efefef;
}
h1, h2, h3, p {
    padding: 0 40px;
}
h1, p {
    line-height: 1.1;
    font-size: 22px;
}
h2, h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.15;
    font-family: 'Yantramanav', sans-serif;
    font-weight: 400;
}
h1 {
    margin: 8px 0;
    color: #51b7b4;
}
h2 {
    color: #adadad;
}
h3 {
    color: #adadad;
    margin-bottom: 0;
}
    h3.dateline {
        margin-bottom: 8px;
    }
p {
    margin: 10px 0;
}
    p .small {
        font-size: 19px;
        text-transform: uppercase;
        letter-spacing: .7px;
    }
a:link {
    color: #003332;
    text-decoration: none;
    border-bottom: 1px dotted #003332;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}
a:visited {
    color: #003332;
}
a:hover {
    color: #003332;
    opacity: .7;
}
a:active {
    color: #003332;
}
    h3 a:link {
        display: inline-block;
        height: 20px;
    }
    p a:link {
        display: inline-block;
        height: 21px;
    }
    a:hover.vid-link {
        opacity: .98;
    }

/* grid */
.intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: .1s;
    height: 100vh;
}
    .intro p {
        width: 90%;
        max-width: 1100px;
        font-size: 36px;
        margin: 0 auto;
        opacity: 1;
        line-height: 1.3;
        transition: .1s;
    }
        .reveal-link {
            color: #003332 !important;
            border-bottom: 1px dotted black;
            display: inline-block;
            height: 40px;
        }
            .reveal-link:hover, .reveal-link.active {
                background: #003332 !important;
                color: #ffffff !important;
                cursor: pointer;
            }
            .reveal-link.active:hover {
                cursor: auto;
            }
        .intro.nav {
            position: fixed;
            z-index: 2;
            top: 0;
            padding: 18px 0 14px;
            height: 30px;
        }
            .intro.nav p {
                width: auto;
                font-size: 12px;
            }
                .intro.nav p .reveal-link {
                    height: 14px;
                }
.work-projects {
    height: 0;
    overflow: hidden;
    transition: .2s;
    position: absolute;
    top: 40vh;
}
    .work-projects.reveal {
        height: auto;
        top: 0vh;
    }
.experiments-projects {
    height: 0;
    overflow: hidden;
    transition: .2s;
    position: absolute;
    top: 40vh;
}
    .experiments-projects.reveal {
        height: auto;
        top: 0vh;
    }
.about-page {
    height: 0;
    overflow: hidden;
    transition: .2s;
    position: absolute;
    top: 40vh;
}
    .about-page.reveal {
        height: auto;
        top: 0vh;
    }
    .about-page.service {
        height: auto;
        top: 0vh;
    }
        .about-page.service .writeup {
            justify-content: flex-start;
            padding: 24px 0;
            overflow:scroll
        }
            /* width */
            .about-page.service .writeup::-webkit-scrollbar {
                width: 6px;
            }
            /* Track */
            .about-page.service .writeup::-webkit-scrollbar-track {
                background: #efefef; 
            }
            /* Handle */
            .about-page.service .writeup::-webkit-scrollbar-thumb {
                background: #adadad; 
            }
.page-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 100vh;
    margin-top: 20vh;
}
    .page-grid:first-of-type {
        margin-top: 0;
    }
/*
    .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%;
    }

.item-grid {
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}
    .item-grid > .item {
        height: 100%;
        width: 100%;
        margin: 4px 0;
    }
    .item-grid > .item-grid {
        flex-direction: row;
    }
        .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: 15%;
        justify-content: flex-start;
    }

/* assets */
.img-dylan-coyoacan {
    background: url(images/dylan-coyoacan.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.img-dylan {
    background: url(images/dylan.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.img-strangebird {
    background: url(images/sb-multi.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.img-labrdr-load {
    background: url(images/loading.gif);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.img-pos {
    background: url(images/pos-blue.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.img-hcs-book {
    background: url(images/hcs-book.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.img-hcs-pdf {
    background: url(images/hcs-pdf-tall.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.img-hcs-web {
    background: url(images/hcs-webmobile.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.img-at-newproject {
    background: url(images/atavist-newproject.jpg);
    background-repeat: no-repeat;
    background-size: contain;
}
/*
.img-at-title {
    background: url(images/atavist-titledesign.jpg);
    background-size: 75%;
    background-repeat: no-repeat;
    background-position: center;
}
*/
.img-at-home {
    background: url(images/atavist-home.gif);
    background-size: 85%;
    background-repeat: no-repeat;
    background-position: top;
}
.img-at-logoinc {
        background: url(images/logo-mark-and-type_orange.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
}
.img-at-logomag {
    background: url(images/tamlogo_screen.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.img-etsy-invitee {
    background: url(images/etsy-seller-invitee.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left;
}
.img-etsy-invitee-flow {
    background: url(images/etsy-buyer-invitee-flow.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.img-etsy-talk {
    background: url(images/etsy-talk.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.img-im-vid {
    background: url(images/im-vid1.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
}
.img-im-crowd {
    background: url(images/im-crowd1.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.img-tlw-issue01 {
    background: url(images/tlw-issue01.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
}
.img-tlw-issue02 {
    background: url(images/tlw-issue12.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
}
.img-tlw-issue03 {
    background: url(images/tlw-issue04.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
}
.img-tlw-issue04 {
    background: url(images/tlw-issue08.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
}
.img-tlw-issue05 {
    background: url(images/tlw-issue11.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
}
.img-tlw-issue06 {
    background: url(images/tlw-issue03.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
}
.img-tlw-issue07 {
    background: url(images/tlw-issue05.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
}
.img-tlw-issue08 {
    background: url(images/tlw-issue07.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
}
.img-tlw-insitu {
    background: url(images/tlw-insitu.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.img-pt-vid {
    background: url(images/ptalks-video.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
}
.img-pt-portrait {
    background: url(images/ptalks-portrait.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.img-aud-max {
    background: url(images/audiomented-max.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
}
.img-aud-people {
    background: url(images/audiomented-people.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
}
.img-types-color {
    background: url(images/types-of-color.gif);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
}
.img-mod-bed-q {
    background: url(images/mod-bed-q.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.img-mod-bed-a {
    background: url(images/mod-bed-a.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
}
.img-thesis-book {
    background: url(images/thesis-book.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.img-thesis-pres {
    background: url(images/thesis-pres.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
}
.img-redbox-in {
    background: url(images/redbox-in.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.img-redbox-out {
    background: url(images/redbox-out.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.img-redbox-pics {
    background: url(images/redbox-pics.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
}
.img-bluetab-01 {
    background: url(images/bluetab-01.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.img-bluetab-02 {
    background: url(images/bluetab-02.jpg);
    background-size: cover;
    background-position:top;
    background-repeat: no-repeat;
    background-position: center;
}
.img-bluetab-book {
    background: url(images/bluetab-book.jpg);
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
    background-position: center;
}

/* one-off styles */
.bg-gray {
    background: #efefef;
}
.bg-darkgray {
    background: #585858;
}
.bg-black {
    background: #000000;
}
.bg-card {
    background: #f4eedf;
}
.bg-orange {
    background: #F57A22;
}

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

@media (max-width: 768px) {
    /*typography*/
    h1, h2, h3, p {
        padding: 0 20px;
        line-height: 1.1;
    }
    .intro p {
        font-size: 30px;
    }
    .reveal-link {
        height: 32px;
    }
    /* grid */
    .intro.nav {
        height: auto;
        padding: 20px 0 10px;
        background: #ffffff;
        width: 100%;
    }
        .intro.nav p {
            margin: 0;
        }
        .intro.nav p .intro-hide {
            display: none;
        }
    .page-grid, .page-grid.reverse {
        height: auto;
        flex-direction: column-reverse;
    }
        .page-grid:first-of-type {
            margin-top: 10vh;
        }
        .page-grid > .item.col2 {
            height: 80vh;
            flex-basis: auto;
        }
            .about-page > .page-grid > .item.col2 {
                height: auto;
            }
            .about-page > .page-grid > .item.col1 {
                height: 60vh;
            }
            .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;
    }
    .writeup {
        justify-content: flex-start;
        padding: 24px 0;
    }
    
    /* assets */
    .img-dylan {
        background: url(images/dylan.jpg);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    .img-strangebird {
        background: url(images/sb-welcome.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top;
    }
    .img-labrdr-load {
        background: url(images/labrdr-views-2.jpg);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top;
    }
    .img-pos {
        background: url(images/pos-dir.jpg);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    .img-at-projects {
        background-size: contain;
        background-position: top;
    }
    .img-at-title {
        background-size: cover;
        background-position: center;
    }
    .img-at-newproject {
        background-size: cover;
        background-position: left;
    }
    .img-at-logomag {
        background-size: contain;
    }
    .img-at-home {
        background: url(images/atavist-home-mobile.jpg);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }
    .img-etsy-invitee {
        background: url(images/etsy-buyer-invitee.jpg);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    .img-etsy-talk {
        background-size: contain;
        background-position: top;
    }
    .img-im-vid {
        background-size: cover;
    }
    .img-im-crowd {
        background-position: top;
    }
    .img-tlw-issue01 {
        background-position: top;
    }
    .img-mod-bed-q {
        background-size: 90%;
    }
    .img-mod-bed-a {
        background-size: 90%;
    }
    .img-redbox-in {
        background-size: cover;
    }
    .img-redbox-out {
        background-size: cover;
    }
    
    /* one-off styles */
    .mobile-none {
        display: none;
    }
}