// --------------------------------------------------------- //
// Medium Form Factor
// --------------------------------------------------------- //

@media screen and (min-width: $screen-tablet) {
  body {
    font-size: 14px;
  }

  .text-lg {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 1.15em;
  }

  h2 {
    font-size: 17px;
  }

  h2,
  h3 {
    margin: 8px 0 68px;
  }

  p {
    margin: 0 0 1.4em;

    &.inline,
    &.indented {
      font-size: 20px;
    }
  }

  hr.large {
    background: $hrColorLight;
    margin-top: 0;
    margin-bottom: 50px;
  }

  .link {
    &.link-arrow {
      font-size: 13px;
      margin-bottom: 0;
      line-height: 18px;
    }
  }

  .link {
    &.link-arrow.large {
      font-size: 15px;
    }
  }

  small {
    font-size: 11px;
  }

  #wrapper {
    > header {
      padding: 52px 78px;

      > h1 {
        font-size: 24px;
        line-height: 30px;
      }
    }

    > footer {
      font-size: 13px;
      padding: 169px 78px 164px;

      .row {
        div[class^='col-lg-'],
        div[class*='col-lg-'] {
          &:first-child {
            margin-right: 0;
          }
        }
      }

      #footer-bg {
        background-image: url('/img/bg-footer-small.jpg');
      }

      .badge {
        max-width: 52px;
        margin-bottom: 76px;
      }

      .heading {
        font-size: 50px;
        line-height: 50px;
        font-family: 'NHaasGroteskDSW02-75Bd';
        font-weight: normal;
      }

      hr {
        margin: 77px 0 16px;
        width: 20px;
        height: 2px;
      }

      .row+.row {
        margin-top: 40px;
      }

      p {
        margin: 0 0 1.35em;
      }

      small {
        margin-top: 140px;
      }
    }
  }

  .inner {
    padding: 162px 80px 140px;
  }

  .dark {
    .inner {
      padding: 86px 80px 136px;
    }
  }

  .banner {
    .banner-title {
      .small-01.floating,
      &.small-01.floating {
        left: 3.65em;
        line-height: 0.95;
        top: -1.4rem;
      }

      &.medium-01 {
        top: 172px;
        font-size: 113px;
        line-height: 0.92;
      }

      &.medium-02 {
        font-size: 91px;
      }

      &.large-01 {
        font-size: 378px;
        text-indent: -2.7em;

        &.alt {
          font-size: 437px;
          text-indent: -1.375em;
        }
      }

      &.large-02 {
        top: 92px;
        font-size: 562px;
      }
    }

    .banner-intro {
      padding: 79px 80px 78px;
      font-size: 28px;
      top: 132px;

      &:before {
        top: 96px;
        left: 82px;
      }
    }

    .banner-flow {
      margin-bottom: -15.15em;
    }

    &.has-intro {
      margin-bottom: 13.125em;
    }
  }

  .section-title {
    padding-right: 20px;

    &:after {
      width: 15px;
      height: 2px;
      margin-top: 2px;
    }
  }

  .article {
    .article-number {
      font-size: 14px;
    }

    .article-title {
      font-size: 17px;
    }
  }

  .overlay {
    .inner {
      font-size: 13px;
      padding: 112px 76px 92px;
    }

    nav {
      ul {
        margin: 0 auto 76px;

        li {
          a {
            line-height: 1.1;
            font-size: 60px;
            height: auto;
          }
        }
      }
    }

    hr {
      margin: 60px 0 18px;
      width: 20px;
      height: 2px;
    }

    .copyright {
      position: absolute;
      top: 234px;
      right: -32px;
      @include vendor(transform, rotate(90deg));
      overflow: visible;
      width: 240px;
      height: 18px;
      font-size: 10px;
      margin: 0;
    }

    &.overlay-hugeinc {
      &.open {
        .copyright {
          @include vendor(animation, fadeFromBottomCopy 0.9s 0.65s cubic-bezier(0.215, 0.61, 0.355, 1) forwards);
        }
      }
    }
  }

  .accordion {
    margin-top: 0;
    margin-left: -20px;
    margin-right: -20px;

    &:after {
      display: block;
      content: '';
      clear: both;
    }

    .accordion-group {
      border: 0 !important;

      .article-body {
        opacity: 1;
        max-height: 100%;
      }
    }


    &.alt {
      margin-top: 34px;

      .accordion-group {
        border-top: 0 !important;
        border-bottom: 0;
        padding-top: 18px;
        padding-bottom: 80px;
        margin-left: 148px;
        padding-left: 0;
        width: 80%;

        .accordion-state {
          display: none !important;
        }

        .article {
          position: relative;
          padding: 2px 0 0 30px;
          border-left: 4px #37373c solid;

          .article-number {
            font-size: 90px;
            position: absolute;
            left: -126px;
            top: -8px;
            width: 116px;
            line-height: 90px;
            color: #ccc;
            font-family: 'NHaasGroteskDSW02-75Bd';
            font-weight: normal;
          }

          .article-title {
            font-size: 22px;
            margin-bottom: 0.85em;
          }

          .article-body {
            font-size: 16px;
            line-height: 24px;
            position: relative;
            text-indent: 36px;
            height: auto !important;
            max-height: 100%;
            opacity: 1;

            &:before {
              content: '';
              display: block;
              width: 26px;
              height: 2px;
              background-color: #737373;
              position: absolute;
              left: 0;
              top: 10px;
            }
          }
        }
      }
    }
  }

  #partners {
    .inner {
      padding: 162px 80px 140px;
    }

    .partners {
      padding-bottom: 66px;
      padding-top: 28px;
      margin-bottom: 19px;

      > div {
        min-height: 100px;
      }

      &:first-child {
        > div {
          min-height: 100px;
        }
      }

      &+.partners {
        margin-bottom: 59px;
      }
    }
  }

  #menu-trigger {
    height: 30px;
    font-size: 14px;
    line-height: 30px;

    .menu-icon {
      .menu-icon-text,
      &:before,
      &:after {
        height: 2px;
      }
    }

    .menu-icon {
      width: 16px;
      margin: -2px 7px 0;
    }

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

  .container.home {
    bottom: 40px;

    .link {
      line-height: 1.8em;
    }
  }
}

// --------------------------------------------------------- //
// Large Form Factor
// --------------------------------------------------------- //

@media screen and (min-width: $screen-desktop) {
  body {
    &.home {
  	  background-image: url('/img/bg-home.jpg');
    }
  }

  .text-lg {
    font-size: 22px;
    line-height: 28px;
  }

  .hidden-lg {
    display: none;
  }

  .section-title {
    &:after {
      margin-top: 0;
    }
  }

  small {
    font-size: 12px;
  }

  .quad-list div[class^='col-']:nth-child(5n),
  .quad-list div[class*='col-']:nth-child(5n) {
    clear: left;
  }

  #wrapper {
    > header {
      padding: 68px 100px 60px;
      height: 164px;
    }

    > footer {
      padding-left: 100px;
      padding-right: 100px;

      .row+.row {
        margin-top: 20px;
      }

      #footer-bg {
        background-image: url('/img/bg-footer-medium.jpg');
      }

      small {
        margin-top: 98px;
        font-size: 10px;
      }
    }

    #footer .row+.row hr{
      margin-top: 0;
    }
  }

  .side {
    float: right;
  }

  .inner {
    padding: 182px 100px 160px;

    &.about {
      padding: 156px 100px 114px;

      .side {
        margin-top: 190px;
      }
    }
  }

  .dark {
    .inner {
      padding: 208px 100px 140px;

      .accordion {
        margin-bottom: -40px;
        margin-top: -11px;

        &.alt {
          margin-bottom: -67px;
          margin-top: -4px;
        }
      }
    }
  }

  .container {
    > .inner {
      > .row {
        > div[class^='col-lg-'],
        > div[class*='col-lg-'] {
          &:first-child {
            margin-right: -80px;
          }
        }
      }
    }
  }

  p {
    line-height: 1.55;

    &.indented,
    &.inline {
      line-height: 1.35;
    }
  }

  h2 {
    font-size: 18px;
    line-height: 1;
    margin: 6px 0 0;
  }

  .banner {
    .banner-title {
      &.small-01,
      .small-01 {
        font-size: 52px;
      }

      &.large-01 {
        top: 105px;
        font-size: 512px;
        text-indent: -1.675em;

        &.alt {
          top: 85px;
          font-size: 572px;
          text-indent: -0.675em;
        }
      }

      &.medium-01 {
        font-size: 155px;
        top: 262px;
      }

      &.medium-02 {
        font-size: 160px;
      }

      &.medium-01,
      &.medium-02 {
        &:before {
          width: 70px;
          height: 20px;
          content: '';
          display: block;
          position: absolute;
          top: 0.4em;
          left: -0.6em;
          background-color: $red;
        }
      }

      &.large-02 {
        font-size: 780px;
      }
    }

    &.banner-flow {
      margin-bottom: -162px;
    }

    .banner-intro {
      font-size: 32px;
      padding: 80px 100px 62px;
      top: 132px;
      max-width: 57%;

      &:before {
        top: 102px;
        left: 101px;
      }
    }

    &.has-intro {
      margin-bottom: 7.83em;

      &.alt {
        margin-bottom: 8.925em;
      }
    }
  }

  .overlay {
    .container {
      > .inner {
        padding: 112px 100px 92px;

        > .row {
          div[class^='col-lg-'],
          div[class*='col-lg-'] {
            &:first-child {
              margin-right: 0;
            }
          }
        }
      }
    }

    nav {
      padding-left: 80px;

      ul li a {
        font-size: 78px;
        height: 90px;
        line-height: 92px;
      }
    }

    .nav-section {
      font-size: 13px;
    }

    .col-lg-push-2 {
      padding-top: 66px;
      left: 15%;
    }

    .copyright {
      top: 276px;
      right: -10px;
    }
  }

  .accordion {
    margin-top: -11px;

    div[class^='col-lg-']:first-child,
    div[class*='col-lg-']:first-child {
      margin-right: 0;
    }

    .accordion-group {
      padding-bottom: 60px;
    }

    &.alt {
      margin-top: -3px;

      .accordion-group {
        border-top: 0 !important;
        border-bottom: 0;
        padding-top: 18px;
        padding-bottom: 130px;
        margin-left: 140px;

        &:nth-child(2n) {
          margin-left: 238px;
        }

        &:first-child {
          padding-top: 0;
        }

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

        .accordion-state {
          display: none !important;
        }

        .article {
          margin-top: -1px;
          position: relative;
          padding: 2px 0 0 34px;
          border-left: 4px #37373c solid;
          max-width: 600px;

          .article-number {
            font-size: 90px;
            position: absolute;
            left: -137px;
            top: -8px;
            width: 116px;
            line-height: 90px;
            color: #ccc;
            font-family: 'NHaasGroteskDSW02-75Bd';
            font-weight: normal;
          }

          .article-title {
            font-size: 22px;
            margin-bottom: 0.85em;
          }

          .article-body {

            &:before {
              content: '';
              display: block;
              width: 26px;
              height: 2px;
              background-color: #737373;
              position: absolute;
              left: 0;
              top: 10px;
            }
          }
        }
      }
    }
  }

  .article {
    margin-top: -18px;
  }

  #works .col-lg-offset-1 {
    margin-top: 17%;
  }

  .container.home {
    bottom: 70px;
  }

  #partners {
    .row {
      > div[class^='col-lg-'],
      > div[class*='col-lg-'] {
        &:first-child {
          margin-right: 0 !important;
        }
      }
    }

    .partners {
      padding-top: 0;
      margin-bottom: 86px;
    }

    .section-title {
      bottom: -18px;
    }

    .inner {
      padding: 158px 100px 144px;
    }
  }
}

// --------------------------------------------------------- //
// Extra Large Form Factor
// --------------------------------------------------------- //

@media screen and (min-width: $screen-lg-desktop) {
  body {
    &.home {
  	  background-image: url('/img/bg-home-large.jpg');
    }
  }

  .text-lg {
    font-size: 32px;
    line-height: 42px;
  }

  .hidden-lg {
    display: none;
  }

  small {
    font-size: 12px;
  }

  .quad-list div[class^='col-']:nth-child(5n),
  .quad-list div[class*='col-']:nth-child(5n) {
    clear: left;
  }

  #wrapper {
    > header {
      padding: 68px 150px 60px;
      height: 164px;
    }

    > footer {
      padding-left: 150px;
      padding-right: 150px;

      .row+.row {
        margin-top: 20px;
      }

      #footer-bg {
        background-image: url('/img/bg-footer-large.jpg');
      }

      small {
        margin-top: 148px;
        font-size: 10px;
      }
    }

    #footer .row+.row hr{
      margin-top: 0;
    }
  }

  .side {
    float: left;
  }

  .inner {
    padding-left: 150px;
    padding-right: 150px;

    &.about {
      padding: 235px 150px 170px;

      .side {
        margin-top: 285px;
      }
    }
  }

  .dark {
    .inner {
      padding: 208px 150px 140px;

      .accordion {
        margin-top: -12px;

        &.alt {
          margin-bottom: 64px;
          margin-top: -1px;
        }
      }
    }
  }

  p {
    line-height: 1.55;

    &.indented,
    &.inline {
      line-height: 1.35;
    }
  }

  h2 {
    margin: 7px 0 0;
  }

  .banner {
    .banner-title {
      &.small-01,
      .small-01 {
        font-size: 52px;

        &.floating {
          top: -1.5rem;
        }
      }

      &.large-01 {
        top: 105px;
        font-size: 512px;

        &.alt {
          top: 85px;
          font-size: 572px;
        }
      }

      &.medium-01 {
        font-size: 155px;
        top: 262px;
      }

      &.medium-02 {
        font-size: 160px;
      }

      &.medium-01,
      &.medium-02 {
        &:before {
          width: 104px;
          height: 30px;
          content: '';
          display: block;
          position: absolute;
          top: 0.375em;
          left: -0.7em;
          background-color: $red;
        }
      }

      &.large-02 {
        font-size: 780px;
      }
    }

    &.banner-flow {
      margin-bottom: -280px;
    }

    .banner-intro {
      font-size: 32px;
      padding: 120px 150px 112px 110px;
      top: 132px;
      max-width: 58%;

      &:before {
        top: 142px;
        left: 111px;
      }
    }
  }

  .overlay {
    > .container {
      > .inner {
        padding: 146px 150px 92px;
      }
    }

    nav {
      ul li a {
        font-size: 78px;
        height: 90px;
        line-height: 92px;
      }
    }

    .nav-section {
      font-size: 13px;
    }

    .col-lg-push-2 {
      padding-top: 66px;
      left: 15%;
    }

    .copyright {
      top: 324px;
      right: 38px;
    }
  }

  .article {
    margin-top: -17px;
  }

  .accordion {
    div[class^='col-lg-']:first-child,
    div[class*='col-lg-']:first-child {
      margin-right: 0;
    }

    &.alt {
      margin-top: -2px;

      .accordion-group {
        border-top: 0 !important;
        border-bottom: 0;
        padding-top: 18px;
        padding-bottom: 130px;
        margin-left: 140px;
        width: auto;

        &:nth-child(2n) {
          margin-left: 35%;
        }

        &:first-child {
          padding-top: 0;
        }

        &:last-child {
          padding-bottom: 0;
        }

        .accordion-state {
          display: none !important;
        }

        .article {
          position: relative;
          padding: 2px 0 0 34px;
          border-left: 4px #37373c solid;
          max-width: 600px;

          .article-number {
            font-size: 90px;
            position: absolute;
            left: -137px;
            top: -8px;
            width: 116px;
            line-height: 90px;
            color: #ccc;
            font-family: 'NHaasGroteskDSW02-75Bd';
            font-weight: normal;
          }

          .article-title {
            font-size: 20px;
            margin-bottom: 0.85em;
          }

          .article-body {
            font-size: 16px;
            position: relative;
            text-indent: 36px;
            height: auto !important;
            max-height: 100%;
            opacity: 1;

            &:before {
              content: '';
              display: block;
              width: 26px;
              height: 2px;
              background-color: #737373;
              position: absolute;
              left: 0;
              top: 10px;
            }
          }
        }
      }
    }
  }

  .container.home {
    bottom: 120px;
  }

  #partners {
    .inner {
        padding-left: 150px;
        padding-right: 150px;
    }
  }
}
