/* -------------------------------- 

Fonts

-------------------------------- */
  @font-face {
      font-family : "Nexa Bold";
      src : url('../fonts/Nexa/Nexa_Bold.otf');
  }

  @font-face {
      font-family : "Nexa Light";
      src : url('../fonts/Nexa/Nexa_Light.otf');
  }
  /* -------------------------------- 

Primary style

-------------------------------- */
*, *::after, *::before {
  box-sizing: border-box;
}
::selection {
    color: #000;
}

::-moz-selection {
    color: #000;
}

html {
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
  font-family: "Nexa Light", sans-serif;
  color: #ffffff;
  background-color: #eee;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  /* never visible - this is used in jQuery to check the current MQ */
  content: 'mobile';
  display: none;
}
@media only screen and (min-width: 1050px) {
  body::before {
    /* never visible - this is used in jQuery to check the current MQ */
    content: 'desktop';
  }
}

a {
  color: #267481;
  text-decoration: none;
}

/* -------------------------------- 

Header

-------------------------------- */
header {
  position: fixed;
  width: 100%;
  height: auto;
  padding: 1rem 0;
  color: #fff;
  z-index: 9;
}
header h1 {
  position: relative;
  width: 32px;
  height: 40px;
  top: 2rem;
  left: 5%;
  text-indent: -9999px;
  margin-bottom: 0;
  color: #000;
  font-size: 2rem;
  background-image: url(../img/philippe-fercha-white.png);
  cursor: pointer;
}
header h1 a {
  width: 100%;
  height: 100%;
  display: block;
}
/* -------------------------------- 

Main Components 

-------------------------------- */
@media only screen and (min-width: 1050px) {
  body[data-hijacking="on"] {
    overflow: hidden;
  }
}

.cd-section {
  height: 100vh;
}
@media screen and (max-width: 768px) {
  .cd-section {
    height: 50vh !important;
  }
}
.cd-section h2 {
  /*line-height: 100vh;*/
  text-align: center;
  font-size: 3rem;
  font-family: "Nexa Bold", sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #000;
}
.cd-section h3 {
  line-height: 2rem;
  text-align: center;
  font-size: 2rem;
  font-family: "Nexa Light", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
}
.cd-section h4 {
  line-height: 2rem;
  text-align: center;
  font-size: 1.25rem;
  font-family: "Nexa Light", sans-serif;
  letter-spacing: 1px;
  padding-top: 1rem;
  color: #555;
}
.cd-section div a {
  display: block;
  width: 93px;
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  color: #000;
  font-family: "Nexa Bold", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 15px 30px;
  border: 1px solid #000;
  margin-top: 1.5rem;
}
.cd-section div a:hover {
  background-color: #000;
  color: #fff;
}
.work-info {
  position: fixed;
  left: 50%;
  top: 50%;
  bottom: auto;
  right: auto;
  padding: 80px;
  background-color: rgba(255,255,255,.9);
  -webkit-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  -o-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}
@media screen and (max-width: 768px) {
  .work-info {
    position: relative !important;
    padding: 40px 0;
    background-color: rgba(255,255,255,.7);
  }
  .work-info h2 {
    font-size: 2rem !important;
    letter-spacing: 1px;
  }
  .work-info h3 {
    font-size: 1rem;
    line-height: 1.2rem;
  }
  .work-info h4 {
    line-height: 0;
    font-size: 1rem;
    padding-top: 0.75rem;
  }
  .work-info a {
    margin-top: 1.25rem;
  }
}

.cd-section:first-of-type > div {
  background-color: #eee;
  height: 100vh;
}
.cd-section:first-of-type > div::before {
  /* alert -> all scrolling effects are not visible on small devices */
  content: '';
  position: absolute;
  width: 100%;
  text-align: center;
  top: 20px;
  z-index: 2;
  font-weight: bold;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: #6a7083;
}
.cd-section:nth-of-type(2) > div {
  background-color: #eee;
  height: 100vh;
}
.cd-section:nth-of-type(3) > div {
  background-color: #eee;
  height: 100vh;
}
.cd-section:nth-of-type(4) > div {
  background-color: #eee;
  height: 100vh;
}
.cd-section:nth-of-type(5) > div {
  background-color: #eee;
  height: 100vh;
}
.cd-section:nth-of-type(6) > div {
  background-color: #eee;
  height: 100vh;
}
@media screen and (max-width: 768px) {
  .cd-section:first-of-type > div, .cd-section:nth-of-type(2) > div,
  .cd-section:nth-of-type(3) > div, .cd-section:nth-of-type(4) > div,
  .cd-section:nth-of-type(5) > div, .cd-section:nth-of-type(6) > div {
    height: 50vh !important;
  }
}
[data-animation="parallax"] .cd-section > div, [data-animation="fixed"] .cd-section > div, [data-animation="opacity"] .cd-section > div {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
[data-animation="parallax"] .cd-section:first-of-type > div, [data-animation="fixed"] .cd-section:first-of-type > div, [data-animation="opacity"] .cd-section:first-of-type > div {
  background-image: url("../img/unsplash.com");
}
[data-animation="parallax"] .cd-section:nth-of-type(2) > div, [data-animation="fixed"] .cd-section:nth-of-type(2) > div, [data-animation="opacity"] .cd-section:nth-of-type(2) > div {
  background-image: url("../img/little-visuals.jpg");
}
[data-animation="parallax"] .cd-section:nth-of-type(3) > div, [data-animation="fixed"] .cd-section:nth-of-type(3) > div, [data-animation="opacity"] .cd-section:nth-of-type(3) > div {
  background-image: url("../img/new-old-stock-photos.jpg");
}
[data-animation="parallax"] .cd-section:nth-of-type(4) > div, [data-animation="fixed"] .cd-section:nth-of-type(4) > div, [data-animation="opacity"] .cd-section:nth-of-type(4) > div {
  background-image: url("../img/raumrot.jpg");
}
[data-animation="parallax"] .cd-section:nth-of-type(5) > div, [data-animation="fixed"] .cd-section:nth-of-type(5) > div, [data-animation="opacity"] .cd-section:nth-of-type(5) > div {
  background-image: url("../img/foodies-feed.jpg");
}
[data-animation="parallax"] .cd-section:nth-of-type(6) > div, [data-animation="fixed"] .cd-section:nth-of-type(6) > div, [data-animation="opacity"] .cd-section:nth-of-type(5) > div {
  background-image: url("../img/jay-mantri.jpg");
}
@media only screen and (min-width: 1050px) {
  .cd-section h2 {
    font-size: 6rem;
    font-weight: 300;
  }
  [data-hijacking="on"] .cd-section {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }
  [data-hijacking="on"] .cd-section > div {
    visibility: visible;
  }
  [data-hijacking="off"] .cd-section > div {
    opacity: 0;
  }
  [data-animation="rotate"] .cd-section {
    /* enable a 3D-space for children elements */
    -webkit-perspective: 1800px;
    -moz-perspective: 1800px;
    perspective: 1800px;
  }
  [data-hijacking="on"][data-animation="rotate"] .cd-section:not(:first-of-type) {
    -webkit-perspective-origin: center 0;
    -moz-perspective-origin: center 0;
    perspective-origin: center 0;
  }
  [data-animation="scaleDown"] .cd-section > div, [data-animation="gallery"] .cd-section > div, [data-animation="catch"] .cd-section > div {
    box-shadow: 0 0 0 rgba(25, 30, 46, 0.4);
  }
  [data-animation="opacity"] .cd-section.visible > div {
    z-index: 1;
  }
}

@media only screen and (min-width: 1050px) {
  .cd-section:first-of-type > div::before {
    display: none;
  }
}
@media only screen and (min-width: 1050px) {
  .cd-section > div {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Force Hardware Acceleration */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  [data-hijacking="on"] .cd-section > div {
    position: absolute;
  }
  [data-animation="rotate"] .cd-section > div {
    -webkit-transform-origin: center bottom;
    -moz-transform-origin: center bottom;
    -ms-transform-origin: center bottom;
    -o-transform-origin: center bottom;
    transform-origin: center bottom;
  }
}

.vertical-nav {
  /* lateral navigation */
  position: fixed;
  z-index: 1;
  right: 3%;
  top: 50%;
  bottom: auto;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  display: none;
}
.vertical-nav a {
  display: block;
  height: 40px;
  width: 40px;
  /* image replace */
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  background: url(../img/cd-icon-arrow.svg) no-repeat center center;
}
.vertical-nav a.prev {
  -webkit-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -o-transform: rotate(180deg);
  transform: rotate(180deg);
  margin-bottom: 10px;
}
.vertical-nav a.inactive {
  visibility: hidden;
  opacity: 0;
  -webkit-transition: opacity 0.2s 0s, visibility 0s 0.2s;
  -moz-transition: opacity 0.2s 0s, visibility 0s 0.2s;
  transition: opacity 0.2s 0s, visibility 0s 0.2s;
}
@media only screen and (min-width: 1050px) {
  .vertical-nav {
    display: block;
  }
}
