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

.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }

button:focus { outline: 0; font-weight: inherit; }

body, html {
  height: 100%;
}

body {
  -webkit-font-smoothing: subpixel-antialiased;
  min-width: 640px;
  background: #1a1a1a;
}

.mobile body {
  min-width: 320px;
}

body, a, h1, h2, h3, h4, button {
  font-family: "proxima-nova-condensed",sans-serif;
  font-weight: 200;  
  color: #FFF;
  text-decoration: none;
  letter-spacing: 1px;
  margin: 0;
  padding: 0;
  border: 0;
}

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

/* 200 = thin, 400 = regular, 600 = semi bold */

#wrapper {
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  height: 100%;
}

#header,
#content,
#projects,
#wrapper {
  /*max-width: 1000px;*/
  position: relative;
}

#content {
  margin-top: 160px;
}

/* =HEADER */

#header {
  position: fixed; 
  top: 0; 
  left: 0; 
  z-index: 1000; 
  height: 160px; 
  background: #1a1a1a url('../images/header/pattern.png') no-repeat 26px 112px; 
  -webkit-background-size: 3000px 6px;
  -o-background-size: 3000px 6px;
  -moz-background-size: 3000px 6px;
  background-size: 3000px 6px;  
  color: #FFF; 
  width: 100%;
}

#header h1 {
  font-weight: 200;
  border: 0;
  position: absolute;
  height: 40px;
  line-height: 40px;
  background: #1a1a1a url('../images/header/right.png') no-repeat left center;
  -webkit-background-size: 6px 6px;
  -o-background-size: 6px 6px;
  -moz-background-size: 6px 6px;
  background-size: 6px 6px;  
  right: 0;
  top: 95px;
  padding-left: 32px;
  padding-right: 26px;
  text-transform: uppercase;
  color: #e0b631;
  overflow: hidden;
}

#nav {
  position: absolute;
  left: 26px;
  bottom: 13px;
  color: #e0b631;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 400;
  z-index: 100;
}

#nav button {
  display: inline-block;
  background: url('../images/header/dot.png') no-repeat left center;
  font-size: 16px;
  font-weight: 200;
  text-transform: lowercase;
  border: 0;
  padding: 0 0 0 11px;
  margin: 0 0 0 10px;
}

#nav button.on {
  color: #e0b631;  
}

#nav button.first {
  background: none
}

#l_about {
  padding: 0 15px;
  text-transform: uppercase;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  border-radius: 15px;  
  display: inline-block;
  background: #e0b631;
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 400;
  position: absolute;
  z-index: 1000;
  left: 26px;
  top: 26px;
}

#l_about:hover {
  background: #FFF;
}

#l_home,
#l_home img {
  width: 586px;
  height: 60px;
  display: block;
}

#l_home {
  position: absolute;
  right: 26px;
  top: 26px;
  z-index: 1;  
}

/* =POPUP */

#popup {
  position: fixed;
  top: 0;
  /*top: 160px;*/
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;  
  background: rgb(26, 26, 26);
  background: rgba(26, 26, 26, .9);
  z-index: 10000;
}
/*
#popup.loading .popup {
  visibility: hidden
}*/

#popup .popup {
  margin: 26px auto;
  padding: 0 26px;
  position: relative;
  max-width: 1012px;  
}

#popup.loading .popup {
  visibility: hidden;
}

.popup iframe {
  margin-bottom: 16px;
  background: #000;  
}

.popup a.close {
  position: absolute;
  right: 26px;
  top: 0;
  background: none;
  width: 25px;
  height: 25px;
  letter-spacing: 0;
}

.popup a.close img {
  width: 25px;
  height: 25px;
}

.popup p a {
  color: #e0b631;
}

.popup h2,
.popup h3 {
  margin-bottom: 20px;
}

.popup p#social {
  margin-top: 26px;  
}

/* =ABOUT */

#p_about #popup {
  background: rgb(224, 182, 49);
  background: rgba(224, 182, 49, .9);
}

#p_about #popup .popup {
  margin-top: 162px;
}

#p_about #popup p,
#p_about #popup a,
#p_about #popup h1,
#p_about #popup h2,
#p_about #popup h3 {
  color: #000;
}

#p_about #popup p a {
  text-decoration: underline;
}

#p_about #popup p a:hover {
  background: #454545;
  color: #FFF;
  text-decoration: none
}

#p_about #popup p#social a {
  background: none;
}

#p_about #popup h2 {
  text-transform: uppercase;
}

/* =LOADING */

#p_about #popup.loading,
#popup.loading {
  background-image: url('../images/loading.gif');
  background-repeat: no-repeat;
  background-position: center center;
}

#p_about #popup.loading {
  background-image: url('../images/loading_about.gif');
}

/* =PROJECT */

.project {
  position: relative;  
  width: 400px;
  height: 325px;
  overflow: hidden;
  float: left;
}

.project > img,
.project > a {
  position: absolute;  
  z-index: 1;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;  
  display: block;  
}

.project > a {
  text-decoration: none;
  z-index: 100;
  background: none;
}

.project > a img {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
}

.project > a div {
  height: 100%;
  min-height: 100px;
  background: none no-repeat center center;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 100%;
}

.project > a img {
  visibility: hidden;
  margin: auto;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0
}

.project > a h2,
.project > a h3 {
  margin: 0;
  visibility: hidden;
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: 16px;
  color: #FFF;
  font-weight: 200;
}

.project > a h3 {
  bottom: 26px;
}

.project > a h2 {
  top: 50px;
  font-size: 18px;
}

.loaded.mobile .project > a img,
.loaded.mobile .project > a h3,
.project > a:hover img,
.project > a:hover h3 {
  visibility: visible;
}

/* =MOBILE */

@media screen and (max-width: 959px) {

  #p_about.new #popup .popup {
    margin-top: 26px;
  }  

  .new #header {
    background-position: 13px 59px;
    height: 105px;
  }

  .new #header h1 {
    font-size: 14px;
    top: 42px;
    padding-right: 13px;
  }

  .new #nav {
    font-size: 14px;
    position: relative;
    left: auto;
    bottom: auto;  
    /*top: 74px;*/
    padding: 74px 13px 13px 13px;
  }

  .new #nav button {
    font-size: 14px;
    padding-left: 6px;
    margin-left: 5px;    
  }

  .new #l_about {
    left: 13px;
    top: 13px;
  }

  .new #l_home,
  .new #l_home img {
    width: 293px;
    height: 30px;
    right: 13px;
    top: 13px;
  }

  .new #content {
    margin-top: 105px;
  }

  .new #project {
    /*padding: 0 13px;*/
  }

}

@media screen and (max-device-width: 639px) {

  .new #l_home,
  .new #l_home img {
    width: 146px;
    height: 15px;
    right: 13px;
    top: 13px;
  }  

  .new #header {
    height: 41px;
    overflow: hidden;
    background-image: none;
  }

  .new #header h1 {
    font-size: 14px;
    top: 27px;
  }  

  .new #header h1,
  .new #nav {
    display: none;
  }

  .new #content {
    margin-top: 41px;
  }

  .new #project h2,
  .new #project h3,
  .new #project p {
    font-size: 14px;
  }

}

.mobile #header {
  position: relative;
}

.mobile #content {
  margin-top: 0;
}

/* =OLD */

.old .project {
  width: 320px;
  height: 180px;
}

.old .project > a img {
  top: 25px;
  bottom: auto;
}

.old #content,
.old #header,
.old #wrapper {
  width: 960px;
  position: relative;
}

.old #wrapper {
  width: 100%;
}

.old #content {
  overflow: hidden;  
  margin-left: 26px;
  margin-bottom: 26px;
}

.old #header {
  width: 1012px;
  position: relative;
}

.old #content {
  margin-top: 0;
}

.old #project {
  margin: 0;
}

.old a.close {
  visibility: hidden;
}

#p_about.old #content p,
#p_about.old #content a,
#p_about.old #content h1,
#p_about.old #content h2,
#p_about.old #content h3 {
  color: #FFF;
}

/* =ISOTOPE MAGIC */

.isotope,
.isotope .isotope-item {
  /* change duration value to whatever you like */
  -webkit-transition-duration: 0.8s;
     -moz-transition-duration: 0.8s;
      -ms-transition-duration: 0.8s;
       -o-transition-duration: 0.8s;
          transition-duration: 0.8s;
}

.isotope {
  -webkit-transition-property: height, width;
     -moz-transition-property: height, width;
      -ms-transition-property: height, width;
       -o-transition-property: height, width;
          transition-property: height, width;
}

.isotope .isotope-item {
  -webkit-transition-property: -webkit-transform, opacity;
     -moz-transition-property:    -moz-transform, opacity;
      -ms-transition-property:     -ms-transform, opacity;
       -o-transition-property:      -o-transform, opacity;
          transition-property:         transform, opacity;
}

/**** disabling Isotope CSS3 transitions ****/

.isotope.no-transition,
.isotope.no-transition .isotope-item,
.isotope .isotope-item.no-transition {
  -webkit-transition-duration: 0s;
     -moz-transition-duration: 0s;
      -ms-transition-duration: 0s;
       -o-transition-duration: 0s;
          transition-duration: 0s;
}

/**** Isotope filtering ****/

.isotope-item {
  z-index: 2;
}

.isotope-hidden.isotope-item {
  pointer-events: none;
  z-index: 1;
}
