// --------------------------------------------------------- //
// Custom Fonts
// --------------------------------------------------------- //

@font-face {
  font-family: 'NHaasGroteskDSW02-65Md';
  src: url('../fonts/NHaasGroteskDSW02-65Md.eot?#iefix') format('embedded-opentype'),  url('../fonts/NHaasGroteskDSW02-65Md.woff') format('woff'), url('../fonts/NHaasGroteskDSW02-65Md.ttf')  format('truetype'), url('../fonts/NHaasGroteskDSW02-65Md.svg#NHaasGroteskDSW02-65Md') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'NHaasGroteskDSW02-75Bd';
  src: url('../fonts/NHaasGroteskDSW02-75Bd.eot?#iefix') format('embedded-opentype'),  url('../fonts/NHaasGroteskDSW02-75Bd.woff') format('woff'), url('../fonts/NHaasGroteskDSW02-75Bd.ttf')  format('truetype'), url('../fonts/NHaasGroteskDSW02-75Bd.svg#NHaasGroteskDSW02-75Bd') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'NHaasGroteskTXW02-65Md';
  src: url('../fonts/NHaasGroteskTXW02-65Md.eot?#iefix') format('embedded-opentype'),  url('../fonts/NHaasGroteskTXW02-65Md.woff') format('woff'), url('../fonts/NHaasGroteskTXW02-65Md.ttf')  format('truetype'), url('../fonts/NHaasGroteskTXW02-65Md.svg#NHaasGroteskTXW02-65Md') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'NHaasGroteskTXW02-75Bd';
  src: url('../fonts/NHaasGroteskTXW02-75Bd.eot?#iefix') format('embedded-opentype'),  url('../fonts/NHaasGroteskTXW02-75Bd.woff') format('woff'), url('../fonts/NHaasGroteskTXW02-75Bd.ttf')  format('truetype'), url('../fonts/NHaasGroteskTXW02-75Bd.svg#NHaasGroteskTXW02-75Bd') format('svg');
  font-weight: normal;
  font-style: normal;
}

// --------------------------------------------------------- //
// Elements
// --------------------------------------------------------- //

body {
  font-family: 'NHaasGroteskTXW02-65Md';

  &.overlay-open {
    overflow: hidden;

    #wrapper {
      > header {
        background: transparent;
        color: $greyLight;
      }
    }
  }
}

h1, h2, h3, h4 {
  font-family: 'NHaasGroteskDSW02-75Bd';
  font-weight: normal;
}

h2,
h3 {
  font-size: 15px;
  line-height: 13px;
  margin: 4px 0 26px;
  font-family: 'NHaasGroteskTXW02-75Bd';
  font-weight: normal;
}

.dark {
  h2,
  h3 {
    font-family: 'NHaasGroteskTXW02-65Md';
  }
}

// --------------------------------------------------------- //
// Global Classes
// --------------------------------------------------------- //

.section-title {
  display: inline-block;
  padding-right: 25px;
  position: relative;

  &:after {
    width: 15px;
    height: 2px;
    display: block;
    content: '';
    background-color: #393940;
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -1px;
  }
}

.res-img {
  display: block;
  max-width: 100%;
  min-width: 100%;
}

.text-lg {
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 2.65em;
}

.container.home {
  .text-lg {
    max-width: 80%;
  }
}

.non-spaced {
  margin-bottom: 0;
}

.emphasis {
  color: $red;
}

.indented {
  text-indent: 2.2em;
}

p.inline {
  margin: 0;
}

hr {
  border: 0;
  margin: 27px 0 14px;
  width: 20px;
  height: 2px;
  background-color: $hrColor;
  text-align: left;

  &.large {
    width: auto;
    height: 2px;
    background-color: $hrColorAlt;
    margin-bottom: 40px;
    margin-top: 1px;
    margin-left: 5px;
    margin-right: -15px;
  }

  &.light {
    background-color: $hrColorLight;
  }
}

.unlist {
  padding: 0;
  margin: 0;
  list-style: none;

  li {
    padding: 0;
    margin: 0;
    line-height: 1.7;
  }
}

#view {
  @include transition(all linear $aniTime 0s);
	z-index: 1;

	&.ready.ng-enter {
	 opacity: 0;
	}

	&.ready.ng-leave {
   @include transition(all linear 0s 0s);
	 opacity: 1;
	}

	&.ready.ng-enter.ng-enter-active {
	 opacity: 1;
	}

	&.ready.ng-leave.ng-leave-active {
	 opacity: 0;
	}
}

// --------------------------------------------------------- //
// Navigation
// --------------------------------------------------------- //

.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: $overlayBg;
  z-index: 9;

  .overlay-close {
    width: 80px;
    height: 80px;
    position: absolute;
    right: 20px;
    top: 20px;
    overflow: hidden;
    border: none;
    background: transparent;
    color: $overlayClose;
    outline: none;
    z-index: 100;
    font-size: 80px;
    line-height: 80px;
  }

  > .container {
    overflow: auto;
    position: absolute;
    top: 82px;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
  }

  .inner {
    padding: 15px 40px 46px;
    font-size: 12px;
    color: $greyLight;
  }

  p {
    margin: 0 0 2.5rem;
    line-height: 1.7;
  }

  .copyright {
    display: block;
    margin-top: 8.15rem;
    font-size: 0.6rem;
    @include opacity(0);
  }

  > .nav-section {
    display: block;
    width: 100%;

    > div {
      margin-bottom: 36px;
    }
  }

  nav {
    display: block;
    width: 100%;

    ul {
    	list-style: none;
    	padding: 0;
    	margin: 0 auto 52px;
    	display: block;
      width: 100%;
    	position: relative;
      text-align: left;

      li {
      	display: block;
        opacity: 0;
        width: 100%;

        a {
        	font-weight: 300;
        	display: block;
          width: 100%;
          height: 32px;
          line-height: 1.2;
        	font-size: 30px;
        	color: $greyLight;
          @include opacity(1);
        	@include vendor(transition, opacity 0.6s);
          font-family: 'NHaasGroteskDSW02-75Bd';
          font-weight: normal;

          &:hover,
          &:focus {
            @include opacity(0.4);
          }
        }
        ul {
          margin: 8px 0 0 19px;

          li {
            a {
              font-size: 12px;
              height: 18px;
              line-height: 19px;
              font-family: 'NHaasGroteskTXW02-65Md';
            }
          }
        }
      }
    }
  }

  &.close {
    .menu-icon {
      &:before {
        @include vendor(transform, rotate(-45deg) translate3d(3px, 3px, 0));
      }
      &:after {
        @include vendor(transform, rotate(-45deg) translate3d(2.5px, -2.5px, 0));
      }
    }
  }
}

.overlay-hugeinc {
  @include opacity(0);
	visibility: hidden;
  @include transition(opacity $aniTime, visibility 0s $aniTime);

  &.open {
    nav {
      width: 100%;
      ul {
        width: 100%;
        li {
          width: 100%;

          &:nth-child(1) {
            @include animation-delay(0.3s);
            @include animation-duration(0.3s);
          }

          &:nth-child(2) {
            @include animation-delay(0.36s);
            @include animation-duration(0.3s);
          }

          &:nth-child(3) {
            @include animation-delay(0.42s);
            @include animation-duration(0.3s);
          }

          &:nth-child(4) {
            @include animation-delay(0.48s);
            @include animation-duration(0.3s);
          }

          @include vendor(animation, fadeFromBottom 0.9s 0s cubic-bezier(0.215, 0.61, 0.355, 1) forwards);
        }
      }
    }
  }

  .nav-section {
    @include opacity(0);
    -webkit-animation: fadeOutDown $aniTime cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
    animation: fadeOutDown $aniTime cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  }

  &.open {
    @include opacity(1);
  	visibility: visible;
    @include vendor(transition, opacity $aniTime);

    .nav-section {
    	@include vendor(animation, fadeFromBottom 0.6s 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) forwards);
    }

    .copyright {
    	@include vendor(animation, fadeFromBottom 0.6s 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) forwards);
    }
  }
}

// --------------------------------------------------------- //
// Theme Specific Styles
// --------------------------------------------------------- //

.home {
  &.container {
    @include opacity(0);
  }

  &.start {
    @include vendor(animation, fadeFromBottom 0.9s 0.3s cubic-bezier(0.215, 0.61, 0.355, 1) forwards);
  }
}
