/***********************
FONTS
************************/

@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,700&display=swap');

@font-face {
  font-family: 'Avenir';
  src:
    url('AvenirLTStd-Heavy.woff2') format('woff2'),
    url('AvenirLTStd-Heavy.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}


/***********************
GENERAL
************************/

.cover {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.underline {
  text-decoration: underline;
}

.orange {
  color: #FF6701;
}

.pink {
  color: #FF9FCF;
}

@media (min-width: 600px) {
  .mobi-br {
    display: none;
  }
}

/***********************
BODY
************************/

body {
  background-color: #FFF;
  font-family: 'Roboto', sans-serif;
}

body.loading {
  position: fixed;
  overflow: hidden;
}

/***********************
LOADER
************************/

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0000b4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
}

#loader img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10%;
  height: auto;
  min-width: 150px;
  max-width: 250px;
  transform: translate(-50%, -50%);
}

.loading #loader {
  opacity: 1;
}

/***********************
HEADER
************************/

header {
  overflow: hidden;
  margin-bottom: 10rem;
  z-index: 20;
}

header .logo {
  margin-right: auto;
  width: 200px;
}

header .logo img {
  display: block;
  width: 100%;
}

header .contact a {
  display: block;
  color: #0000b4;
  text-decoration: none;
  margin: 0.5rem 0;
}

@media (max-width: 900px) {

}

/***********************
INTRODUCTION
************************/

#introduction {
  font-family: 'Avenir', sans-serif;
  padding: 0.5rem 0 150px;
  overflow: hidden;
  z-index: 100;
}

#introduction p {
  color: #1017EA;
  margin: 0 -0.25em 0 -0.125em;
  padding: 0;
}

#introduction p.h3 {
  font-size: 4.57vw;
  letter-spacing: 0.025em;
}

#introduction p.h3.introduction__small {
  font-size: 4.2rem;
  max-width: 900px;
  padding: 0 2rem;
  margin: 0 auto;
}

#introduction p.h3.introduction__small br {
  display: none;
}

/*
#introduction img.seal {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200px;
  height: auto;
  transform: translateX(-50%);
}
*/

#introduction img.seal {
  position: fixed;
  left: 0;
  top: calc(120px + 18vw);
  width: 200px;
  height: auto;
  transform: translateX(-50%);
}

@media (max-width: 600px) {

  #introduction {
    padding-bottom: 75px;
  }
  
  #introduction p.h3 {
    font-size: 8.47vw;
  }
  
  #introduction img.seal {
    width: 100px;
  }
}

/***********************
MAIN
************************/

main {
  min-height: 100vh;
  z-index: 10;
}

/***********************
WORKS
************************/

#works {
  padding: 1rem 0;
}

#works .work {
  margin: 8rem 0;
  padding: 6rem 0;
}

#works .work:first-child,
#works .work:first-of-type {
  margin-top: 0;
  padding-top: 2rem;
}

#works .work .work-principal {
  min-height: calc( 50vw + 150px );
}

#works .work .background {
  position: absolute;
  top: 100px;
  left: 50%;
  right: 0;
  height: calc( 100% - 150px );
  overflow: hidden;
  z-index: 0;
}

#works .work .background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#works .work .container-md {
  transform: translateZ(0);
  z-index: 10;
}

#works .work .work-brand {
  font-family: 'Avenir', sans-serif;
  color: #FF9FCF;
}

#works .work h3 {
  font-family: 'Avenir', sans-serif;
}

#works .work .work-content {
  margin: 0;
  padding: 2rem 0;
  padding-right: 6rem;
  margin-right: 50%;
}

#works .work .work-gallery {
  padding-top: 4rem;
  padding-bottom: 2rem;
}

#works .work .work-gallery picture:before {
  content: "";
  display: block;
  padding-bottom: 100%;
}

#works .work .work-gallery picture img {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: calc( 100% - 2rem );
  height: calc( 100% - 2rem );
  object-fit: cover;
}

#works .work:nth-child(2n + 1) .background {
  left: 0;
  right: 50%;
}

#works .work:nth-child(2n + 1) .work-content {
  margin: 0;
  padding: 2rem 0;
  padding-left: 6rem;
  margin-left: 50%;
}

#works .grid {
  padding: 1rem 0;
  margin: 0 -1rem;
  column-count: 2;
  column-gap: 0;
}

#works .grid > * {
  margin: 1.5rem 1rem;
}

#works .grid > *:first-child {
  margin-top: 0;
}

#works .grid .work-content,
#works .grid .work .work-content,
#works .work:nth-child(2n + 1) .grid .work-content {
  margin: 0 1rem 1rem;
  padding: 0 6rem 4rem 0;
}

#works .grid .work-content .work-brand {
  margin-top: 0;
  padding-top: 0;
}

#works .grid picture {
  display: block;
}

#works .grid picture img {
  width: 100%;
}

@media (min-width: 1800px) {
  #works .work .work-principal {
    min-height: calc( 900px + 150px );
  }
  
  #works .work .background {
    left: 50%;
    right: calc( 50% - 900px );
  }

  #works .work:nth-child(2n + 1) .background {
    left: calc( 50% - 900px );
    right: 50%;
  }
}

@media (max-width: 600px) {
  #works .work {
    margin: 3rem 0;
  }

  #works .work.work-grid {
    padding-top: 3rem;
  }
  
  #works .work .background {
    height: 100vw;
    left: 4rem;
    right: 0;
  }

  #works .work:nth-child(2n + 1) .background {
    left: 0;
    right: 4rem;
  }

  #works .work .work-content {
    margin: 6rem 0 0;
    padding: 2rem 2rem 4rem;
    background-color: #FFF;
  }

  #works .work:nth-child(2n + 1) .work-content {
    margin: 6rem 0 0;
    padding: 2rem 2rem 4rem;
    background-color: #FFF;
  }

  #works .grid {
    column-count: 1;
  }

  #works .grid .work-content {
    margin-top: 0;
    padding-top: 0;
  }
}

/***********************
CLIENTS
************************/

#clients {
  padding: 2rem 0 8rem;
  padding-bottom: calc( 8rem + 80px );
  margin-bottom: -80px;
  overflow: hidden;
}

#clients .h4 {
  font-family: 'Avenir', sans-serif;
  letter-spacing: 0.05em;
}

#clients .client {
  flex: 0 1 180px;
  padding: 0;
  margin: 2rem 3rem;
}

#clients .client img {
  display: block;
  width: 100%;
}

#clients .seal {
  position: absolute;
  top: 100%;
  left: calc(50% + 600px);
  transform: translate(-50%, -100%);
  width: 240px;
  height: auto;
}

@media (max-width: 1200px) {
  #clients .seal {
    left: 100%;
  }
}

@media (max-width: 900px) {
  #clients .seal {
    width: 120px;
  }
}

@media (max-width: 600px) {
  #clients .client {
    flex: 0 1 110px;
    margin: 2rem 1rem;
  }
}

/***********************
FOOTER
************************/

footer {
  color: #FFF;
  background-color: #0000b4;
  padding: 2rem 0;
}

footer .logo-making-magic {
  left: 10px;
  display: block;
  max-width: 240px;
  margin: 0 auto;
}

footer .h1 {
  font-family: 'Avenir', sans-serif;
  font-size: 6.2rem;
  letter-spacing: 0.05em;
}

footer .button-contact {
  display: inline-block;
  color: #FF9FCF;
  font-family: 'Avenir', sans-serif;
  font-size: 4.2rem;
  font-weight: 700;
  background: transparent;
  border: 1px solid #FF9FCF;
  padding: 4rem 3rem;
}

footer .button-contact:hover {
  background-color: #FF9FCF;
  color: #0000b4;
}

footer .copy {
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  margin-top: 5rem;
}

footer .copy span {
  display: inline-block;
  vertical-align: middle;
  padding: 0 1rem;
  margin: 0;
  border-right: 1px solid #FFF;
}

footer .copy span:last-child {
  border-right: none;
}

@media (max-width: 600px) {
  footer .h1 {
    font-size: 3.2rem;
  }

  footer .button-contact {
    font-size: 3.2rem;
    padding: 3rem 2.5rem;
  }

  footer .copy span {
    display: block;
    padding: 1rem 0;
    border-right: none;
  }
}