:root {
    --red: rgb(240, 66, 66);
    /*--red: rgb(230, 80, 80);*/
    --black: rgb(30, 30, 30);
    --gray: rgb(120,120,120);
    --white: rgb(250,250,250);
    --egg: rgb(250,250,250);
    --tg: trade-gothic-next-condensed, sans-serif;
    --ap: akagi-pro, sans-serif;
}

* {
    margin: 0;
    padding: 0;
}

*::selection {
    background: var(--red);
    color: white;
}



html {
    font-size: 150%;
    background-color: var(--egg);
    overflow-x: hidden;
/*     height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-padding-block-start: 1rem; */

    /* 62.5% of the base size of 16px = 10px.*/
}

body {
    font-family: var(--ap);
    font-size: 1.6rem;
    line-height: 1.4;
    color: var(--black);
    -webkit-text-size-adjust: 100%;
}

.container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    margin-inline: .8rem;
}

.wrapper {
    margin: .8rem;
}

.card {
    scroll-snap-align: start;
    flex: none;
    background-color: var(--white);
/*     box-shadow: 0 0.1rem 1rem rgba(0,0,0,0.1);
    border-radius: 1rem; */
    overflow: hidden;
}

.card__image {
    width: 100%;
    max-height: 30lvh;
    object-fit: cover;
    box-shadow: 0 0 1rem rgba(0,0,0,0.1);
    /* border-bottom: .1rem var(--black) solid; */
}

.card__text {
    margin-top: -.5rem;
    margin-bottom: .5rem;
}

.card__title {
    font-size: 2.4rem;
}

.card__city {
    font-size: 1.8rem;
    line-height: 1.5;
}

.project__header {
    margin: .8rem;
}

.media__container {
    position: relative;
}

.media__image {
    width: 100%;
}

.media__credit {
    position:absolute;
    bottom: 1rem;
    right: 1rem;
    color: rgba(255,255,255,0.3);
    font-size: 1rem;
    font-family: var(--a);
    font-weight: 100;
    text-align: center;
}



#project-title {
    padding-bottom: 4vw;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, .main_nav, .dash {
    font-family: var(--tg);
    line-height: 1;
}

h1 {
    font-size: 2.4rem;
    font-weight: 400;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

h2 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

h3 {
    font-size: 2.4rem;
    font-weight: 400;
}

h4 {
    font-weight: 400;
    /* display: inline; */
}

ul {
    font-family: var(--tg);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

ul li span {
    font-weight: 100;
}


#project_head > h3 {
    margin-top: -.6rem;
}

a:link,
a:visited,
a:focus,
a:hover,
a:active {
    color: var(--black);
    text-decoration: none;
}

a:hover{
    color: var(--red);
}

em {
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.05rem;
}

b {
    font-style: normal;
    font-weight: 600;
}

.uppercase {
    text-transform: uppercase;
}

.noselect {
    -webkit-user-select: none;
    user-select: none;
}

/* Header Layout */
header {
    background-color: var(--egg);
    display: inline-block;
    position: sticky;
    transition: top 0.3s;
    top: 0;
    width:100vw;
    z-index: 10;
}

.logobar {
    padding: .8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header label {
    font-size: 2.4rem;
    font-weight: 400;
    font-family: var(--tg);
    letter-spacing: 0.1rem;
    line-height: 1;
    text-transform: uppercase;
}

.divider {
    margin: .25rem .8rem;
    background-color: var(--red);
    height: .25rem;
}



.scroll-padding {
    scroll-padding-block-start: 5rem;
}

/* Nav menu */
.nav{
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: var(--egg);
    overflow: hidden;
    display: flex;
    z-index: 5;
}

.menu {
    flex-direction: column;
    -webkit-box-pack: center;
    justify-content: center;
    display: flex;
    margin: 0 .8rem;
    overflow: hidden;
    width: 100%;
    /* align-items: flex-start; */
}

.menu__item {
    padding-bottom: 5rem;
    display: flex;
    align-items: baseline;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 6rem;
    scrollbar-width: none;
    transition-property: transform;
    transition-duration: 0.5s;
    transform: translateX(80vw);
}

.d1 {
    transition-delay: 0.1s;
}

.d2 {
    transition-delay: 0.2s;
}

.d3 {
    transition-delay: 0.3s;
}

.menu__item--text {
    padding-left: 10rem;
    scroll-snap-align: start;
}

.menu .active a{
    color: var(--red);
}

.subnav {
    scroll-snap-align: start;
    padding-left: 4rem;
    font-weight: 400;
    font-size: 2.4rem;
    color: var(--gray);
    text-wrap: nowrap;
    white-space: nowrap;
}

.subnav:last-child {
    padding-right: 20rem;
}

.pad4 {
    padding-left: 4rem;
}

.subnav a.active {
    color: var(--black);
    border-bottom: 4px solid var(--red);
}

.nav{
    max-height: 0;
    transition: max-height .5s ease-out;
}

/* Menu Icon */
.hamb{
    margin-top: 8px;
    cursor: pointer;
}/* Style label tag */

.hamb-line {
    background: var(--black);
    display: block;
    height: 5px;
    position: relative;
    width: 54px;

} /* Style span tag */

.hamb-line::before,
.hamb-line::after{
    background: var(--black);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}
.hamb-line::before{
    top: 17px;
}
.hamb-line::after{
    top: -17px;
}

.side-menu {
    display: none;
} /* Hide checkbox */

/* Toggle menu icon */
.side-menu:checked ~ nav{
    max-height: 100vh;
}
.side-menu:checked ~ div > .hamb .hamb-line {
    background: transparent;
}
.side-menu:checked ~ div > .hamb .hamb-line::before {
    transform: rotate(-45deg);
    top:0;
}
.side-menu:checked ~ div > .hamb .hamb-line::after {
    transform: rotate(45deg);
    top:0;
}
.side-menu:checked ~ .navbar {
    top: 0px;
}
.side-menu:checked ~ nav > .menu >.menu__item {
    transform: translateX(0);
}


/* Text PopUp */
#text_container{
    margin: 0;
    width: 100%;
    height: 100%;
    min-height: 92svh;
    position: sticky;
    background-color: var(--white);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 2;
    transition: bottom 0.5s;
}

div.info{
    margin: 0 .8rem;
}

div.info > div {
    margin-bottom: 2svh;
}
div.info > div > p {
    margin-bottom: 1svh;
}

#text_container > div.info {
    flex-direction: column;
    display: flex;
    width: 80vw;
    margin-left: 5vw;
}

.info-box {
    display:none;
}

.info-arrow {
    display: flex;
    justify-content: center;
    height: 5vh;
}

.info-arrow > div {
    display: block;
    transform: rotate(45deg);
    margin-top: 1.4vh;
    width: 50px;
    height: 50px;
    border-top: 6px solid var(--red);
    border-left: 6px solid var(--red);
    transform: rotate(45deg) ;
}

.info-box:checked ~ #text_container {
    bottom: 86vh;
}

.info-box:checked ~ #text_container > .info-box-handle > label > .info-arrow > span {
    transform: rotate(90deg);
}

.info-box:checked ~ #text_container > .info-box-handle > label > .info-arrow > div {
    transform: rotate(-135deg) translate(30px, 30px);
}

.main_nav {
    font-size: 2.4rem;
    font-weight: 400;
    letter-spacing: 0.1rem;
}

.city {
    color: var(--red);
    white-space: pre-line;
}

.index a:hover{
    color: var(--black);
}

.emps li {
    text-transform: none;
}

footer > div {
    margin: 5vw;
}

#parked {
    position: absolute;
    overflow: hidden;
    visibility: hidden;
    width: 10px;
    height: 10px;
}

.no-flex {
    flex-basis: 100%;
}

.on-mobile__landscape {
    display: none;
}

@media (min-width: 768px)
and    (orientation: landscape) {
    html {
        font-size: 80%;
        scroll-snap-type: y proximity;
        overflow-y: auto;
    }

    #navbar {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: space-between;
        position: relative;
        scroll-snap-align: start;
    }

    .nav {
        position: relative;
        margin-right: .8rem;
        overflow: unset;
        max-height: unset;
        width: unset;
        height: unset;
        background-color: unset;
        display: unset;
        z-index: unset;
    }
    
    .menu {
        overflow: unset;
        flex-direction: row;
        margin: 0;
    }

    .menu__item {
        transform: unset;
        padding-bottom: unset;
        overflow: unset;
        font-size: 1.8rem;
        font-weight: 400;
    }

    .menu__item--text {
        padding-left: 2rem;
        scroll-snap-align: start;
    }

    .container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .card__image {
        min-height: 45svh;
        max-height: 45svh;
    }

    .card__title {
        font-size: 1.6rem;
    }
    .card__city {
        font-size: 1.4rem;
    }

    .project__header {
        scroll-snap-align: start;
        scroll-margin-block-start: .4rem;
    }

    .project__info {
        scroll-snap-align: start;
    }

    .media {
        display: flex;
        gap: 1rem;
        overflow-x: scroll;
        margin: .8rem;
    }
    .media__image {
        height: 80vh;
        height: 80vh;
        transition: max-height 1s;
        width: auto;
    }

    .on-mobile__landscape {
        display: block;
    }

    .on-mobile__portrait {
        display: none;
    }

    
    .remove {

    }
}


@media (max-width:200px) {

/*
#  
#  ██     ██   ██  ██   ██
#  ██    █__█    ██    █  █
#  ████ ██  ██   ██     ██
#
*/
.dash {
    width: 3rem;
    position: relative;
}
.dash > div {
    position: absolute;
    top: 1.5rem;
    width: 2.4rem;
    height: .3rem;
    background-color: var(--black);

    
}

.animatedDash {
    animation: dashRotate .6s ease-out; 
}

.animatedMenu {
    animation: menuBUREAU .3s ease-in-out forwards;
}

.animatedMenu > ul > li > a:hover {
    color: var(--black);
}



header {
    grid-area: header;
    margin-bottom: 8rem;
}

nav {
    grid-area: nav;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: min-content min-content;
    gap: 2rem;
}

.main_nav {
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: right;
}

.sub_nav {
    display: flex;
    flex-direction: column;
    
    text-align: right;

}

.dash {
    grid-area: dash;
}

content {
    grid-area: main;
}



footer {
    grid-area: footer;
}

footer > div {
    margin-left: 5vw;
}

body {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 8rem;
    display: grid;
    grid-template-columns: min-content min-content minmax(70%,100%);
    grid-template-rows: auto;
    grid-template-areas:
        ". . header"
        "nav dash main"
        ". . footer";
    gap: 1.6rem;
}

.info {
    display: flex;

    
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    gap: 2rem;
}
.info > div:last-child {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem;
}

.info > div:first-child {
    max-width: 65ch;
}

.info > div > p {
    flex: 1 1 50%;
}

.text_container {
    margin-top: 2rem;
}

.office > img {
    max-width: 100%;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
#
#  ██   ██ ███████  █████  ██████  ███████ ██████  
#  ██   ██ ██      ██   ██ ██   ██ ██      ██   ██ 
#  ███████ █████   ███████ ██   ██ █████   ██████  
#  ██   ██ ██      ██   ██ ██   ██ ██      ██   ██ 
#  ██   ██ ███████ ██   ██ ██████  ███████ ██   ██                                               
#                                                    
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

body > header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0 2rem;
}

.main_nav a:hover {
    color: var(--red);
}

.sortnav {
    cursor: pointer;
    user-select: none;
}

.sortnav:hover {
    color: var(--red);
}

.active {
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.05rem;
}

.arrow {
    margin-top: -.3rem;
    margin-left: .5em;
}

.icons {
    display: flex;
}

.icon-filter {
    width: 2.4rem;
}

.icon-search {
    width: 2.4rem;
}

.menu.on-mobile > div{
    width: 2rem;
    height: .2rem;
    background-color: black;
    margin-top: .5rem;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
#
#   ██████  ██████  ███    ██ ████████ ███████ ███    ██ ████████ 
#  ██      ██    ██ ████   ██    ██    ██      ████   ██    ██    
#  ██      ██    ██ ██ ██  ██    ██    █████   ██ ██  ██    ██    
#  ██      ██    ██ ██  ██ ██    ██    ██      ██  ██ ██    ██    
#   ██████  ██████  ██   ████    ██    ███████ ██   ████    ██    
#                                                                 
#                                                                                                                           
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* FLEX *
.index {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    gap: 1rem;
}

.index::after {
    content: "";
    flex: auto;
  }

*/

/* GRID */

.index {
    margin-top: .6rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem,1fr));
    align-items: start;
    gap: 2rem;
}

.index_head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.icons {
    display: flex;
    flex-flow: row;
    gap: 1rem;
    fill: var(--black);
    user-select: none;
}

.icons > *:hover {
    fill: var(--red);
    cursor: pointer;
}
.cat-filter {
    width: 100%;
    overflow: hidden;
}
.cat-filter-box > div {
    flex: 0 1 11rem;
}

.cat-filter-box {
    display: flex;
    gap: 2rem;

    transform: translateX(110%);
    transition: transform ease-out 0.5s;
}

.cat-filter-box.show {
    transform: translateX(0);
}

.cat-filter {
    display: flex;
    flex-flow: row nowrap;
    font-size: 2rem;
    height: 3rem;
}

.item {
    -webkit-transition: all 1s ease-in-out;
    transition: all 1s ease-in-out;
}

.item img{
    filter: grayscale(50%) saturate(80%);
    -webkit-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

.item:hover img{
    filter: grayscale(0%) saturate(100%);
    -webkit-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

.index .item img {
    width: 100%;
    aspect-ratio: 3 / 2;
}

.index .item .text {
    position: relative;
    top: -.3rem;
    line-height: 1.6;
}

.portrait {
    object-fit: contain;
    object-position: left;
}

.landscape {
    object-fit: cover;
    object-position: center;
}

.relpos {
    position: relative;
    align-items: flex-start;
}

.top_img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    -webkit-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

.content_head {
    /* margin-block: 2rem; */
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
    align-content: flex-start;
}

.office > .content_head {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 2rem;
    margin-block: 4rem 2rem;
}

.office > .content_head > div {
    display: flex;
    flex-flow: row wrap;
    column-gap: .5rem;
    align-items: baseline;
    margin-block: 0 0.4rem;
}





@media( min-width: 59em) {
    .office > .content_head {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .office > .content_head > div {
        flex-flow: column wrap;
    }
}


.office > .content_head > div > h2 {
    margin-block: 0;
    font-size: clamp(1.8rem, .8rem, 3rem);
}

.content_head span {
    white-space: nowrap;
    color: var(--red);
}

.emps {
    display: grid;
    grid-template-areas:
        'one'
        'two'
        'three'
        'four'
    ;
    justify-content: start;
    gap: 1rem 2rem;
}

.emps > div > h4, .offices > div > h4 {
    margin-block: .5rem 1rem;
}

@media( min-width: 46em) {
    .emps {
        grid-template-areas:
            'one two'
            'three four'
        ;
    }
}
@media( min-width: 60em) {
    .emps {
        grid-template-areas:
        'one two three'
        'one two four'
        ;        
    }
}

.emps > div:nth-child(1) {
    grid-area: one;
}
.emps > div:nth-child(2) {
    grid-area: two;
}
.emps > div:nth-child(3) {
    grid-area: three;
}
.emps > div:nth-child(4) {
    grid-area: four;
}

.offices {
    margin-block: 2rem;
    display: grid;
    justify-items: start;
    grid-template-columns: 1fr 1fr;
}

/* .emps {
    display: flex;
    flex-flow: row wrap;
    justify-items: flex-start;
} 

.emps div:nth-child(1) {
    min-width: 20rem;
}
*/



.highlight_container {
    position: relative;
    width: calc(100% + 10rem);
    left: -5rem;
    user-select: none;
    display: grid;
    grid-template-columns: 5rem 1fr 5rem;
    align-items: center;
    justify-content: flex-start;
    
}

.highlight_container img {
    object-fit: contain;
    max-width: 100%;
    user-select: none;
    vertical-align: bottom;
    position: relative;
}

.highlight_container > div:nth-child(2) {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    user-select: none;
    vertical-align: bottom;
    overflow: hidden;
}

.image_credit {
    position: absolute;
    font-size: 1.3rem;
    color: rgba(30,30,30,.5);
    margin-top: 1rem;
}

.img-nav {
    display: grid;
    grid-template-columns: 3rem 1fr 3rem;
    width: 50vw;
    height: 2rem;
    justify-content: center;
    align-items: start;
    margin-inline: auto;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    color: var(--black);
}

.img-counter {
    margin-inline: auto;
    /* font-family: trade-gothic-next-condensed, sans-serif; */
    font-size: 2rem;
    font-weight: 600;
}

.img-counter-desktop {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    margin-top: 1rem;
}

.area-arrow--prev.on-desktop > div, .area-arrow--next.on-desktop  {
    user-select: none;
    width: 20px;
    margin-inline: auto;
}
.area-arrow--prev:hover polygon {
    fill: rgb(240, 66, 66);
    cursor: pointer;
}

/* .img-nav .area-arrow--next {
    flex: 0 0 5rem;
} */

.area-arrow--next:hover polygon {
    fill: var(--red);
    cursor: pointer;
}

/* .area-arrow--prev > div, .area-arrow--next > div {
    position: relative;
    width: 20px;
    top: calc(50% - 20px);
    left: calc(3rem - 20px);
    z-index: 20;
} */

.img-nav .area-arrow--prev > div, .img-nav .area-arrow--next > div {
    width: 30px;
    margin-inline: auto;
    top: 0;
}

.post_container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40ch, 1fr));
    /* grid-template-rows: masonry; */
    grid-auto-rows: 2rem;
    align-tracks: start;
    justify-tracks: start;
    gap: 1rem;
}

.post_container > .item {
    /* background-color: #FFF; */
    /* border-color: #aaa;
    border-width: 1px;
    border-style: dashed;
    border-radius: .5rem; */
    /* padding: 1rem; */
}


/************************************************************************ /*
// Footer
/************************************************************************ */

footer {
    margin: 2em 0;
    padding-top: 1em;
    border-top: 1px dashed var(--black);
    font-size: 1.4rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.insta {
    width: 2rem;
}
.insta::after {
    content: '';
}
.copyright {
    font-size: 1.2rem;
}

/***************************/
/* DEV */
/***************************/
.dev {
    position: fixed;
    top: 1vh;
    left: 1vh;
    margin: 1vh 0;
    z-index: 10;
    opacity: 0;
}
.dev > button {
    width: 40px;
    height: 40px;
    border-radius: 5px;
}
.dev > button:hover {
    background-color: var(--red);
}


/**** MEDIA QUERIES ****/

/* Portrait and Landscape */

@media only screen
    and (orientation: landscape) {
        .highlight_container img {
            max-height: 96vh;
        }
        .on-mobile {
            display: none;
        }
    }


@media only screen 
  and (max-device-width: 600px) 
  and (-webkit-min-device-pixel-ratio: 2) 
  and (orientation: portrait) { 
    html {
        font-size: 150%;
    }
    body {
        padding: 1rem;
        grid-template-areas:
            "header"
            "main"
            "footer";
        grid-template-columns: 1fr;
    }

    header {
        margin: 0;
    }
    nav {
        width: 100%;
    }

    .title {
        width: 100%;
        display: flex;
        justify-items: stretch;
    }

    .title > h1 {
        font-size: 100%;
    }
    
    .index {
        grid-template-columns: repeat(auto-fit, minmax(20rem,1fr));
    }

    .index, .main_nav {
        gap: 2rem;
        justify-content: space-between;
        margin-top: 1rem;
    }

    .sub_nav {
        justify-content: space-between;
        margin-top: .5rem;
        margin-bottom: 2rem;
    }

    .sortnav {
        height: 2rem;
    }
    .on-desktop {
        display: none;
    }
    .highlight_container {
        width: 100%;
        left: 0;
        display: block;
    }
    .highlight_container > div > div:nth-child(2) {
        max-width: 100%;
    }

    .office > .content_head {
        grid-template-columns: 1fr;
        
    }
    .emps {
        grid-template-areas:
            'one'
            'two'
            'three'
            'four'
        ;
    }

}
@media only screen
    and (min-device-width: 800px) {
    .on-mobile {
        display: none;
    }
}

/* Scrollbar jumping FIX */
@media screen and (min-width: 960px) {
    html {
        margin-left: calc(100vw - 100%);
        margin-right: 0;
    }
}