@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,400i,700');

*,
::before,
::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font: 400 .875rem/1.6 'Open Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  color: #666;
  background: #FEFEFE;
}

#projects {
  background: #333;
}

#contact {
  background: #151315;
}

article,
aside,
dialog,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section {
  display: block;
}

/* typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 400;
}

p,
ol,
ul,
dl,
blockquote,
q {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

p:last-child {
  margin-bottom: 0;
}

ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}

figure {
  display: inline-block;
}

figcaption {
  font-size: 1.375rem;
  margin-top: .75rem;
  text-align: center;
}

h1 {
  font-size: 1.75rem;
  font-weight: 300;
  margin-bottom: .875rem;
  letter-spacing: -2px;
}

h2 {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: .875rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 400;
}

h4 {
  font-size: .875rem;
  font-weight: 700;
}

h5 {
  font-size: .813rem;
  line-height: 1.4;
  opacity: .7;
}

h6 {
  font-size: 0.75rem;
}

section p,
section li {
  font-size: .9375rem;
}

@media screen and (min-width: 40em) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.375rem;
  }
}

@media screen and (min-width: 75em) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.375rem;
  }
}

small {
  font-size: 80%;
  opacity: .7;
}

b,
strong {
  font-weight: bolder;
}

sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}

sub {
  bottom: -.25em;
}

sup {
  top: -.5em;
}

hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, .15), rgba(0, 0, 0, 0));
  display: block;
  width: 100%;
  margin: 0 0 2.5rem;
}

.hr2 {
  background-image: linear-gradient(to right, rgba(0, 0, 0, .15), rgba(0, 0, 0, 0));
  margin: 2rem 0;
}

nav ul {
  list-style: none;
}

@media screen and (min-width: 48em) {
  .taC {
    text-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  .centered {
    text-align: center;
  }
}

/* objects */
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  vertical-align: middle;
}

img,
video {
  max-width: 100%;
  height: auto;
}

img {
  border-style: none;
  vertical-align: middle;
}

@-moz-document url-prefix() {
  img {
    width: 100%;
    max-width: -moz-max-content;
  }
}

figure {
  margin: 0 0 1rem;
}

/* table */
table {
  border: none;
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  table-layout: fixed;
  margin-bottom: 2rem;
}

caption {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  opacity: .5;
  caption-side: bottom;
  font-style: italic;
}

table tr {
  padding: .35em;
  background: #f8f8f8;
  border: 1px solid #ddd;
}

table th,
table td {
  padding: .625em;
  text-align: center;
  border-bottom: 1px solid #ddd;
  overflow: hidden;
  text-overflow: ellipsis;
}

table th {
  text-transform: uppercase;
  background: #ddd;
}

/* forms */
label {
  display: inline-block;
  margin-bottom: .5rem;
}

input,
button,
select,
optgroup,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

input[type="text"],
select,
textarea {
  border: 1px solid #ddd
}

button,
input {
  overflow: visible;
}

textarea {
  overflow: auto;
  resize: vertical;
}

fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

legend {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin-bottom: .5rem;
  font-size: 1.5rem;
  line-height: inherit;
  color: inherit;
  white-space: normal;
}

/* links & buttons */
a,
button {
  color: inherit;
  transition: .4s;
}

a {
  text-decoration: none;
  background-color: transparent;
}

a,
button,
input:not([type="range"]),
label,
select,
summary,
textarea {
  touch-action: manipulation;
}

section p a:link,
section p a:visited {
  color: #111;
  font-weight: 700;
}

section p a:hover {
  color: #999;
}

a.button,
a.button2,
a.button3,
button,
input[type="submit"] {
  -webkit-appearance: none;
  display: inline-block;
  background: #999;
  color: #fefefe !important;
  font-weight: 700;
  font-size: 87.5%;
  padding: .5rem 1.375rem;
  margin: 0 0 1rem;
  vertical-align: middle;
  text-align: center;
  cursor: pointer;
  user-select: none;
  line-height: 1;
  border-radius: 20rem;
  border: none;
  transition: opacity 1s ease;
  letter-spacing: normal;
  border-bottom: none !important;
}

a.button2,
a.now {
  background: #fefefe;
  color: #111 !important;
}

a.button2:hover,
a.button:hover,
button:hover,
input[type="submit"]:hover {
  opacity: 0.5;
}

a.now:hover {
  opacity: 1;
}

/* layout */
.pad,
.pad2 {
  padding: 1.5rem;
}

main .hide,
main .xs-hide {
  display: none;
}

.xs-pt0 {
  padding-top: 0;
}

.xs-pb0 {
  padding-bottom: 0;
}

.mb15{
  margin-bottom: 1.5rem;
}

.ds {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1)
}

.centered {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.mt2 {
  margin-top: 2rem;
}

.pt0 {
  padding-top: 0 !important;
}

.pb0 {
  padding-bottom: 0 !important;
}

.cover {
  background-position: center center;
  background-size: cover !important;
  min-height: 300px;
  width: 100%;
  background-repeat: no-repeat;
}

.half {
  width: 50%;
}

.full {
  width: 100%;
}

@media screen and (min-width: 40em) {
  .xs-pt0 {
    padding-top: 1.5rem;
  }

  .xs-pb0 {
    padding-bottom: 1.5rem;
  }

  .cover {
    min-height: 450px;
  }

  .taR {
    text-align: right;
  }
}

@media screen and (min-width: 48em) {

  .row,
  section {
    display: flex;
    display: -ms-flexbox;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    width: 100%;
  }

  .x1 {
    -ms-flex: 1;
    flex: 1;
  }

  .x15 {
    -ms-flex: 1.5;
    flex: 1.5;
  }

  .x2 {
    -ms-flex: 2;
    flex: 2;
  }

  .x3 {
    -ms-flex: 3;
    flex: 3;
  }

  .c123 {
    width: 50%;
  }

  .order2 {
    order: 2;
  }

  main .xs-hide {
    display: inline;
  }

  main .md-hide {
    display: none;
  }

  .pad,
  .pad2 {
    padding: 2.5rem;
  }

  .xs-pt0 {
    padding-top: 2.5rem;
  }

  .xs-pb0 {
    padding-bottom: 2.5rem;
  }

  .end {
    -ms-flex-pack: end;
    justify-content: flex-end;
  }

  .col-l {
    max-width: 34rem;
    float: right
  }

  .col-r {
    max-width: 34rem;
  }

  .col-w {
    max-width: 88rem;
    margin: 0 auto
  }
}

@media screen and (min-width: 64em) {
  .c123 {
    width: calc(100%/3);
  }

  .pad,
  .pad2 {
    padding: 2.5rem;
  }

  .xs-pt0 {
    padding-top: 4rem;
  }

  .xs-pb0 {
    padding-bottom: 4rem;
  }
}

@media screen and (min-width: 80em) {
  .pad2 {
    padding: 4rem 5rem;
  }

  .xs-pt0 {
    padding-top: 4.5rem;
  }
}

@media screen and (min-width: 90em) {
  .pad2 {
    padding: 8rem 5rem;
  }

  .cover {
    min-height: 500px;
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  will-change: transform;
}

.navbar {
  position: absolute;
  top: 0;
  height: 60px;
  width: 100%;
  cursor: pointer;
  user-select: none;
  z-index: 100;
  transition: all .5s ease;
  background: #fefefe;
}

.atTop .navbar {
  background-color: transparent;
  position: relative;
}

.navbar.active {
  background-image: none !important;
}

.burger {
  background: #000;
  display: block;
  height: 3px;
  transition: background 0.4s ease;
  position: absolute;
  width: 26px;
  right: 1rem;
  top: 28px;
  will-change: transform;
}

.burger::before,
.burger::after {
  background: #000;
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  transition: all 0.4s ease;
  width: 100%;
}

.atTop .burger,
.atTop .burger::before,
.atTop .burger::after {
  background: #fefefe;
}

.atTop .navbar.active .burger {
  background: #000;
}

.burger:before {
  top: 8px;
}

.burger:after {
  top: -8px;
}

.navbar.active {
  background: 0 0;
}

.navbar.active .burger:before {
  transform: rotate(-45deg);
  background: #fefefe;
}

.navbar.active .burger:after {
  transform: rotate(45deg);
  background: #fefefe;
}

.navbar.active .burger:after,
.navbar.active .burger:before {
  top: 0;
}

.menu {
  position: fixed;
  background: #000;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  opacity: 0;
  visibility: hidden;
  transition: all .4s;
  overflow: auto;
  z-index: 99;
  will-change: transform;
}

.menu.open {
  opacity: 1;
  visibility: visible;
  height: 100vh;
}

.menu.open li {
  animation: fadeInRight .5s ease forwards;
  animation-delay: .25s;
}

.menu.open li:nth-of-type(2) {
  animation-delay: .3s;
}

.menu.open li:nth-of-type(3) {
  animation-delay: .35s;
}

.menu.open li:nth-of-type(4) {
  animation-delay: .45s;
}

.menu.open li:nth-of-type(5) {
  animation-delay: .50s;
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: 100%;
  height: 70%;
  text-align: center;
  padding: 3.5rem 0 .5rem;
}

.menu ul ul {
  padding: 1rem 0;
}

.menu ul li {
  display: block;
  position: relative;
  opacity: 0;
  margin-bottom: .5rem;
}

.menu ul li a {
  display: inline-block;
  color: #fefefe;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -1px;
}

.menu ul ul li a {
  font-size: 1.5rem;
  opacity: .5;
}

#home .menu ul li a.home,
.menu ul li.selected a,
#projects .menu ul li a.projects {
  font-weight: 700;
}

.menu ul ul li a.download {
  font-size: .813rem;
  text-transform: uppercase;
  letter-spacing: normal;
  font-weight: 700;
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    left: 5%;
  }

  100% {
    opacity: 1;
    left: 0;
  }
}

.logo {
  display: inline-block;
  max-width: 60px;
}

@media screen and (min-width: 40em) {
  .logo {
    max-width: 80px;
  }
}

@media screen and (min-width: 48em) {
  .navbar {
    display: none;
  }

  .menu {
    visibility: visible;
    height: 70px;
    opacity: 1;
    background: rgba(255, 255, 255, .8);
    overflow: visible;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin: 0 auto;
    position: relative;
  }

  .atTop .menu {
    background: transparent;
  }

  .menu ul {
    display: inline-block;
    padding: 0;
    margin: 0 0 0 auto;
    position: relative;
    width: auto;
    top: auto;
    transform: none;
    text-align: right;
  }

  .menu ul li {
    display: inline-block;
    height: auto;
    min-height: auto;
    position: relative;
    opacity: 1;
    -webkit-font-smoothing: subpixel-antialiased;
  }

  .menu ul li a {
    font-size: 1.125rem;
    color: #111;
    display: block;
    height: 70px;
    line-height: 62px;
    border-top: 4px solid transparent;
    padding: 0 2.5rem;
    text-transform: uppercase;
    letter-spacing: normal;
    font-weight: 400;
  }

  .atTop .menu ul li a {
    color: #fefefe;
  }

  .menu ul li a:hover {
    opacity: .5;
  }

  #home .menu ul li a.home,
  .menu>ul>li.selected>a,
  #projects .menu ul li a.projects {
    border-top: 4px solid #111;
  }

  .atTop .menu>ul>li.selected>a,
  .atTop#projects .menu ul li a.projects {
    border-top: 4px solid #fefefe !important;
  }

  .menu ul ul {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 80%;
    left: -10px;
    transition: all .4s ease-in-out;
    transform: translateY(-.5em);
  }

  .menu li li {
    float: none;
    text-indent: none;
    margin: 0;
    text-align: left;
    display: block;
    width: 240px;
    height: 50px;
  }

  .menu li li a:link,
  .menu li li a:visited {
    padding-left: 25px;
    padding-right: 25px;
    background: #555;
    color: #fefefe !important;
    font-size: .875rem;
    width: 100%;
    height: 100%;
    line-height: 50px;
    opacity: 1;
    border-top: none;
  }

  .menu li li a:hover {
    background: #666;
  }

  .menu li li.selected a {
    background: #444;
  }

  .menu li:hover ul {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .menu ul li.lang a {
    font-size: inherit;
    margin-top: 0;
  }

  .download {
    font-size: .875rem;
  }
}

/* custom */
main {
  background: #fefefe;
  overflow: hidden;
  position: relative;
}

.bg1 {
  background: #f3f3f3;
}

.bg2 {
  background: #ddd;
}

.bg3 {
  background: #777;
}

.bg4 {
  background: #333;
}

.inv,
.inv h1,
.inv h2,
.inv h3,
.inv h4,
.inv h5,
.inv a:link,
.inv a:visited,
.inv li {
  color: #fefefe;
}

.footer-logo {
  max-width: 80px;
  margin-bottom: 1rem;
}

.social a {
  max-width: 36px;
  display: inline-block;
  margin-right: .375rem;
  opacity: .6;
}

.social a:last-child {
  margin-right: 0;
}

.social img {
  width: 36px;
  height: 36px;
}

.hero .cyc::after {
  content: "";
  display: block;
  width: 100%;
  height: 80px;
  z-index: 8;
  position: absolute;
  bottom: 0;
  left: 0;
}

.logo {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  z-index: 2;
}

.hero-txt {
  display: none;
}

.cyc a,
.cyc div {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: opacity 3s ease-in;
}

.cyc img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.box {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.box::before {
  content: "";
  width: 1px;
  margin-left: -1px;
  float: left;
  height: 0;
  padding-top: 100%;
}

.box::after {
  content: "";
  display: table;
  clear: both;
}

.a4x3::before {
  padding-top: 75%;
}

.a16x9::before {
  padding-top: 56.25%;
}

.a20x7::before {
  padding-top: 35%;
}

.gallery {
  width: 100%;
  text-align: center;
  color: #fefefe;
}

.gallery p, .gallery li{
  color: #ccc;
}

.gallery strong{
  color: #fefefe;
}

.gallery img {
  display: inline-block;
  padding: .25rem .25rem 0;
}

.credit {
  text-align: center;
  padding: 3rem 1rem 1rem;
}

.credit a:link,
.credit a:visited {
  color: #666;
  font-size: .625rem;
  letter-spacing: 2px;
}

.linearvista {
  max-width: 180px;
  margin: 0 auto 1rem;
}

footer p {
  font-size: .5rem;
  opacity: .4;
  letter-spacing: 1px
}

.banner {
  position: relative;
  width: 100%;
  min-height: 180px;
}

.title {
  position: absolute;
  right: 1rem;
  top: 78px;
}

section ul {
  padding-left: 20px;
}

.people p em {
  opacity: .6;
  font-size: 85%;
}

#contact .title {
  position: relative;
  top: 0;
  text-align: right;
  padding-top: 25%;
  padding-bottom: 50px;
}

#contact .box {
  width: 100%;
  height: 100vh;
  background: #444 url(../uploads/contact.jpg);
  background-position: right top;
  background-size: cover;
}

#contact .social a {
  opacity: 1;
}

.project-types a {
  display: block;
  margin-top: 5px;
  position: relative;
  transition: all 1s ease;
  width: 100%;
}

.project-types a img {
  transition: all .4s ease;
  width: 100%;
}

.project-types a:first-child {
  margin-top: 0;
}

.project-types a h1 {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
}

.project-title {
  padding-top: 140px;
}

#projects main {
  background: #333;
}

.thumbs {
  margin: 2rem auto;
  text-align: center;
  font-size: 0;
  transition: all 0.9s ease-out 0s;
}

.thumbs a {
  display: inline-block;
  vertical-align: top;
  margin: .25rem;
}
.thumbs>p{
  font-size: 0;
}

.thumbs p p{
  font-size: .75rem;
  padding: .75rem 1rem 1.5rem;
  line-height: 1.4;
  color: #ccc;
}

.thumbs h3 {
  color: #eee;
  margin-bottom: 1.5rem;
}

.filter {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  background: rgba(0, 0, 0, .5);
  padding: 0 .5rem .5rem;
}

.filter a {
  margin-top: .5rem;
  margin-bottom: 0;
  font-size: 1rem;
}

footer {
  padding-bottom: 5rem
}

@media screen and (min-width: 40em) {
  .filter {
    display: none;
  }

  .project-title {
    padding-top: 80px;
    padding-left: 200px;
  }

  .thumbs img,
  .thumbs a {
    max-width: 250px;
  }

  .thumbs img {
    transition: all 0.4s ease-in-out;
    opacity: .8;
  }

  .thumbs img:hover {
    opacity: 1;
    transform: scale(1.02);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.8);
  }

  footer {
    padding-bottom: 0;
  }
}

@media screen and (min-width: 48em) {
  .project-types a h1 {
    top: 2rem;
    left: 2rem;
    font-size: 3rem;
    letter-spacing: -3px
  }

  .project-types a:hover img {
    opacity: .5;
  }

  #contact .box {
    height: auto;
  }

  #contact .title {
    padding-top: 15%;
  }

  #contact .inv {
    color: #fff;
  }

  #contact .social a:hover {
    opacity: .5;
  }

  .container {
    width: 100%;
    margin: 0 auto;
  }

  .banner {
    height: 260px;
  }

  .title {
    right: 2.5rem;
  }

  .title h1 {
    font-size: 3rem;
  }

  figure {
    margin: .125rem .125rem 2rem;
  }

  figure img {
    max-width: 480px;
  }

  .social a:hover {
    opacity: 1;
  }

  .share button {
    right: 0;
    left: auto;
  }

  .logo {
    top: 1.5rem;
    left: 2rem;
  }

  .hero {
    position: relative;
  }

  .hero-txt {
    display: block;
    position: absolute;
    z-index: 2;
    left: 2rem;
    top: 220px;
  }

  .hero-txt h1 {
    line-height: 1.375;
    margin-bottom: 0;
  }

  .linearvista {
    max-width: 200px;
  }

  .hero .cyc::after {
    height: 150px;
  }

  .gallery {
    max-width: 900px;
    margin: 2rem auto
  }

  .gallery img {
    width: 100%;
    margin-bottom: .5rem;
  }
}

@media screen and (min-width: 64em) {
  .scroll {
    position: absolute;
    left: 50%;
    margin-left: -30px;
    bottom: 8rem;
    display: block;
    text-align: center;
    font-size: 60px;
    z-index: 10000;
    text-decoration: none;
    text-shadow: 0 3px 5px rgba(0, 0, 0, .7);
    width: 60px;
    height: 60px;
    border-bottom: 4px solid #fff;
    border-right: 4px solid #fff;
    transform: translate(-50%, 0%) rotate(45deg);
    animation: scroll 2s ease-in-out infinite;
  }

  @keyframes scroll {
    0% {
      transform: translate(0, -10px) rotate(45deg);
      opacity: 0;
    }

    50% {
      opacity: 1;
    }

    100% {
      transform: translate(0, 10px) rotate(45deg);
      opacity: 0;
    }
  }
}

@media screen and (min-width: 120em) {
  .cover {
    min-height: 600px;
  }

  .project-types {
    display: flex;
  }

  #projects .project-types a {
    flex: 1 0 50%;
    margin-top: 0;
  }

  section p,
  section li {
    font-size: 1rem;
  }

  .hero-txt {
    top: 300px !important;
  }
}

a.goTop {
  display: inline-block;
  width: 44px;
  height: 44px;
  background: #555;
  border-radius: 50%;
  opacity: .6;
  position: fixed;
  right: .5rem;
  bottom: .5rem;
  z-index: 999;
  animation: all 2s ease;
}

#projects a.goTop {
  bottom: 3.5rem;
}

a.goTop:after {
  content: '';
	display: inline-block;
  position: absolute;
  width: 16px;
  height: 16px;
  top: 18px;
  left: 14px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(-45deg);
}

a.goTop:hover{
  opacity: 1;
  cursor: pointer;
  transform: scale(1.1, 1.1);
}

@media screen and (min-width: 48em) {
a.goTop {
  right: 1.5rem;
  bottom: 1.5rem;
}
}