*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


@font-face{
  font-family:"favorit-regular";
  src: url("fonts/favorit-regular.woff") format('woff');
}

@font-face{
  font-family: "nostra";
  src: url("fonts/nostra.woff") format('woff');
}

:root{
  --black: #000000;
  --white: #FFFFFF;
}

@media (max-width: 800px){
  :root{
    font-size: 14px;
  }
}

body{
  font-family:"favorit-regular", sans-serif;
}

h1, h2, h3, h4, h5, h6{
  font-weight: 400;
}

p{
  margin-bottom: 1rem;
}

a{
  color: inherit;
  text-decoration: none;
}

.highlight{
  font-family: "nostra";
}

.highlight-data{
  font-family: "nostra";
  padding-left: 1.5rem;
}

.flex-container{
  display: flex;
  flex-wrap: wrap;

  margin-left: -.75rem;
  margin-right: -.75rem;
}

.flex-container > *{
  padding-left: .75rem;
  padding-right: .75rem;
}

.desktop{
  display: block;
}

.mobile{
  display: none;
}

@media (max-width: 800px){
  .desktop{
    display: none;
  }

  .mobile{
    display: block;
  }
}

/* ------- HEADER ------- */

header{
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 5rem;
  padding: 0 1.5rem 0 1.5rem;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background-color: var(--white);
}

header .logo img{
  width: 60%;
  height: 2.5rem;
  display: block;
}

header nav ul li a{
  transition: opacity .5s;

  border-radius: 1.5rem;
  border: 1px solid var(--black);
  padding-left: 1.50rem;
  padding-right: 1.50rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

header nav ul li:hover a:not(.active){
  opacity: .3;
} 

header nav ul li .active{
  background-color: var(--black);
  color: var(--white);
}

@media (max-width: 800px){
  header .logo img{
    width: auto;
    height: 1.5rem;
  }

  header nav ul{
    font-size: 1rem;
  }
  
}


/* ------- MAIN ------- */


main{
  margin-top: 5rem;
  min-height: calc(100vh - 8rem);
  min-height: calc((var(--vh, 1vh) * 100)-8rem);
}


/* ------- WORK ------- */

.work{
  padding: 3rem 1.5rem 0 1.5rem;
}

.work .mission{
  font-size: 4.25rem;
  line-height: 1;

  margin-bottom: 5rem;
  margin-right: 24rem;
}

.mission-image{
  display: none;
}
.mission-hover{
  
  z-index:0;
}

.mission-hover a{
  text-decoration: none;
  color:var(--black);
  z-index:0;
}

.mission-hover:hover > .mission-image{
  display: block;
  position: fixed;
}

.mission-image.mission-image-01{
  
  top: 10rem;
  right: 40rem;
}

.mission-image.mission-image-02{
  top: 10rem;
  right: 30rem;
}
.mission-image.mission-image-03{
  top: 10rem;
  right: 50rem;
}

.mission-image.mission-image-04{
  top: 10rem;
  right: 10rem;
}

.mission-image.mission-image-05{
  top: 10rem;
  right: 20rem;
}

.mission-image.mission-image-06{
  top: 10rem;
  right: 35rem;
}

.mission-image.mission-image-07{
  top: 10rem;
  right: 5rem;
}

.mission-image.mission-image-08{
  top: 10rem;
  right: 20rem;
}

.work .card{
  width: calc(100% / 3);
  text-align: left;
  margin-bottom: 2rem;
}



@media (max-width: 800px){

  .work .mission{
    font-size: 2.75rem;
    line-height: 1;
  
    margin-bottom: 5rem;
    margin-right: 2rem;
  }

  .work .card{
    width: 100%;
  }
}

.work .card-image{
  position: relative;
  padding-bottom: 66%;
  margin-bottom: 1rem;

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}


.work .card-hover{
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .3s;
}

.work .card-image:hover  .card-hover{
  
  opacity: 1;
}

.work .card-title{
  font-size: 1.25rem;
}

/* ------- WORK DETAIL ------- */

.work-detail{
  padding: 3rem 1.5rem 0 1.5rem;
}

.work-detail .work-detail-sticky{
  position: sticky;
  top: 8rem;
}

.work-detail .work-detail-info{
  width: calc(100% / 12 * 4);
  display: block;
  margin-bottom: 3rem;
}

.work-detail .work-detail-info .title{
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.work-detail .work-detail-info .subtitle{
  font-size: 1.75rem;
  margin-bottom: 1rem;

}

.work-detail .work-detail-info .text{
  font-size: 1.20rem;
  line-height: 1.50rem;
}

.work-detail .work-detail-media{
  width: calc(100% / 12 * 8);
}

.work-detail .work-detail-image{
  margin-bottom: 1.5rem;
}

.work-detail .work-detail-image img{
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 920px){
  .work-detail .work-detail-info{
    width: 100%;
    font-size: 1rem;
    line-height: 1.25;

    display:block;
  }

  .work-detail .work-detail-media{
    width: 100%;
    font-size: 1.25rem;
    margin-top: 2rem;
  }

}

/* ------- ABOUT ------- */
.about{ 
  padding: 3rem 1.5rem 0 1.5rem;

  display: flex;
  justify-content: space-between;
}

.about .name{
  width: calc(100%/12*4);
  font-size: 6rem;
  line-height: 1.10;
  padding-left: 0.5rem;
}

.about .info{
  width: calc(100%/12*5);
  font-size: 1.50rem;
  line-height: 1.25;
  margin-right: calc(100% /12*1);

}



.about .info .contacts a:hover{
  opacity: .3;
} 

.about .info .cv{
  transition: opacity .5s;

  border-radius: 1.5rem;
  border: 1px solid var(--black);
  width: 5rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;

  margin-top: 2rem;
  padding-top: .2rem;
}



.about .info .cv:hover{
  opacity: .3;
} 

.about div ~ div{
  margin-top: 1.5rem;

}

@media (max-width: 800px){
  .about {
    width: 100%;

    font-size: 1.50rem;
    line-height: 1.25;

    display:block;
  }

  .about .name{
    width: 100%;
    font-size: 4rem;
    padding-bottom: 2rem;
  }

  .about .info{
    flex: 0 0 100%;
    width: 100%;
    font-size: 1.25rem;
  }

  .about .info .contacts{
    font-size: 1.25rem;
  }
}