body {
  font-family: "ITC Avant Garde Pro", Verdana, Geneva, Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.63; // 16 * 1.63 = 26px
  font-weight: 300;
}

h1, .h1,
h2, .h2,
h3, .h3
h4, .h4
h5, .h5 {
  font-family: "ITC Avant Garde Pro", Verdana, Geneva, Tahoma, sans-serif;
  font-weight: 500;
  margin-bottom: 0.3em;
  color: $primary;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.5em 0;
  font-weight: 500;
}

p {
  margin-bottom: 30px;
  color: $primary;
}

.large-body {
  font-size: 18px;
  font-weight: 500;
}

h1,
.h1 {
  font-size: 50px;
  line-height: 1.1;
  margin-bottom: 30px;
  line-height: 1.1;
}

h2,
.h2 {
  font-size: 40px;
  line-height: 50px;
  margin-bottom: 30px;
  line-height: 1.25;
}

h3,
.h3
//.wysiwyg h2
{
  font-size: 30px;
  line-height: 1.25;
  margin-bottom: 30px;
}

h4,
.h4 {
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 20px;
  color: $primary;
}

h5,
.h5 {
  font-size: 24px;
  line-height: 0.95;
  margin-bottom: 20px;
  color: $primary;
}

p,
.p {
  font-size: 16px;
  line-height: 1.63; // 16 * 1.63 = 26px
  margin-bottom: 22px;
}


small,
.small,
small p {
  font-size: 14px;
  line-height: 26px;
  font-weight: 300;
}

.subtitle {
  font-size: 14px;
  line-height: 22px;
  font-weight: bold;
  text-transform: uppercase;
}

.inchcape-title.h2 {
  text-transform: uppercase;
  color: $primary;
  font-weight: 600;
  line-height: 1;
}

.bodylarge {
  font-size: 18px;
  line-height: 28px;
}

.number {
  font-size: 60px;
  line-height: 54px;
}

.blue-highlight {
  color: $blue1;
}

em {
  font-family: "ITC Avant Garde Pro", Verdana, Geneva, Tahoma, sans-serif;
}

.h1-smaller {
  font-size: 46px;
  line-height: 1.15;
}

.-no-margin {
  margin-bottom: 0;
}

// Fluid typography between mobile - desktop breakpoints
@media screen and (min-width: $mobile + 1) and (max-width: $laptop - 1) {
  // font-size: calc(50px + (190 - 50) * (100vw - 450px) / (1920 - 450))
  h1:not(.single--h1):not(.h1-smaller), .h1 {
    font-size: calc(50px + (90 - 50) * (100vw - 651px) / (1299 - 651)) !important;
  }
  .h1-smaller {
    font-size: calc(46px + (58 - 46) * (100vw - 651px) / (1299 - 651)) !important;
  }
}

@media screen and (min-width: $laptop) {
  h1:not(.single--h1):not(.h1-smaller),
  .h1 {
    font-size: 90px;
    //line-height: .815em;
    line-height: 0.9;
  }

  .h1-smaller {
    font-size: 58px;
    line-height: 1.15;
  }

  .single .wysiwyg h2,
  .single .wysiwyg h3,
  .single .wysiwyg h4 {
    font-size: 24px;
    line-height: 34px;
  }

  h2,
  .h2 {
    font-size: 48px;
    line-height: 58px;
  }
  h3,
  .h3 {
    font-size: 40px;
    line-height: 48px;
  }
  h4,
  .h4 {
    font-size: 30px;
    line-height: 38px;
  }

  h5,
  .h5 {
    font-size: 24px;
    line-height: 34px;
  }
  p,
  .p {
    font-size: 16px;
    line-height: 1.63; // 16 * 1.63 = 26px
  }


  .number {
    font-size: 60px;
    line-height: 54px;
  }

  .subtitle {
    font-size: 14px;
  }
}
























// Typography

.anim-page-title {
  opacity: 0;
  transform: translate(0, -30px);
  transition: all 0.6s ease-in;
  transition-delay: 0.1s;
}

.swiper-slide-active {
  .anim-page-title {
    opacity: 1;
    transform: translate(0, 0);
  }
}

.anim-block-title span {
  opacity: 0;
  transform: translate(30px, 0);
  transition: all 0.6s ease-in;
  display: block;
}

// == animated

.hero-section {
  h1,
  .h1,
  .banner-title {
    &.-in-view {
      &::before,
      &:after {
        transform: skew(-35deg, 0) translatey(0);
        opacity: 1;
      }
      span {
        transform: translatex(0);
      }
    }
  }
}

.anim-block-title {
  &.-in-view {
    &::before,
    &:after {
      transform: skew(-35deg, 0) translatey(0);
      opacity: 1;
    }
    span {
      transform: translate(0, 0);
      opacity: 1;
    }
  }
}

// active carousel slides
.hero-section.swiper-slide-active {
  h1,
  .h1,
  .banner-title {
    &::before,
    &:after {
      transition-delay: 0.2s;
      transform: skew(-35deg, 0) translatey(0);
      opacity: 1;
    }
    span {
      transform: translatex(0);
    }
  }
}

// Counter animations
.js-anim-num {
  transition: all 0.3s ease-in;
  opacity: 0;
  &.-in-view {
    opacity: 1;
  }
}

// Blocks - 2x col cta, intro sections
.anim-block {
  transform: translate(0, 30px);
  transition: all 0.7s cubic-bezier(0, 0, 0.39, 0.84);

  @media screen and (min-width: 992px) {
    &.anim--delay {
      transition-delay: 0.2s;
    }
  }

  &.-in-view {
    transform: translate(0, 0);
  }
}

// Menu blocks, blockquotes
@media screen and (min-width: 992px) {
  .anim-rtl,
  .anim-ltr {
    transform: translate(30px, 0);
    transition: all .7s cubic-bezier(0.49, 0.02, 0.54, 0.99);

    &.anim--delay-2 {
      transition-delay: 0.1s;
    }
    &.anim--delay-3 {
      transition-delay: 0.2s;
    }
    &.anim--delay-4 {
      transition-delay: 0.3s;
    }

    &.-in-view {
      transform: translate(0, 0);
    }
  }

  .anim-ltr {
    transform: translate(-30px, 0);
  }
}

.anim-pop {
  transform: scale(1.3);
  transition: transform 0.7s cubic-bezier(0, 0, 0.39, 0.84);

  @media screen and (min-width: 992px) {
    &.anim--delay-2 {
      transition-delay: 0.2s;
    }
    &.anim--delay-3 {
      transition-delay: 0.4s;
    }
    &.anim--delay-4 {
      transition-delay: 0.6s;
    }
  }

  &.-in-view {
    transform: scale(1);
  }
}

.anim-slide {
  transform: translateX(60px);
  opacity: 0;
  transition: transform 1s cubic-bezier(0,0,.39,.84), -webkit-transform .7s cubic-bezier(0.25, 0.46, 0.45, 1), opacity 1s ease;

  @media screen and (min-width: 992px) {
    &.anim--delay-2 {
      transition-delay: 0.2s;
    }
    &.anim--delay-3 {
      transition-delay: 0.4s;
    }
    &.anim--delay-4 {
      transition-delay: 0.6s;
    }
  }

  &.-in-view {
    transform: translateX(0);
    opacity: 1;
  }
}

// Go faster stripes!!
@media screen and (min-width: 960px) {
  .callout-block__right,
  .highlights-block__right {
    &:after {
      transition: all 1.8s cubic-bezier(0.56, 0.01, 0.29, 1.01);
      transform: skew(-35deg, 0deg) translateY(-100%);
    }

    &.-in-view {
      &:after {
        transform: skew(-35deg, 0deg) translateY(65%);
      }
    }
  }
}

// fade ins
// Counter animations
.anim-fade--after {
  transition: all 0.3s ease-in;
  transition-delay: 0.4s;
  opacity: 0;
  &.-in-view {
    opacity: 1;
  }
}

// Animating in new posts when ajaxed onto the page
@keyframes fade-down {
  0% {
    opacity: 0;
    //transform: translate(0, 60px);
    transform: scale(1.3);
  }
  50% {
    opacity: 1;
  }
  100% {
    //transform: translate(0, 0);
    transform: scale(1);
  }
}

.anim-fade-down {
  animation: fade-down .3s cubic-bezier(0.55, 0.06, 0.68, 0.19) 0s;
}

// Graphical charts
.anim-graphics {
  .svg-text {
    transition: opacity .6s ease;
    opacity: 0;
  }
  &.-in-view {
    // Distribution wheel
    .inner-wheel {
      transform: rotate(0);
    }
    .svg-text {
      opacity: 1;
    }
  }
}

// Global map

@keyframes drop-in {
  0% {
    opacity: 0;
    transform: translate3d(0, -30px, 0);
  }
  50% {
    opacity: .5;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}


@media screen and (min-width: $laptop){
  .world-map__marker {
    transform: translate3d(0, -30px, 0);
    opacity: 0;
  }
  .world-map__item-inner {
    opacity: 0;
    transform: scale(1.2);
    transition: .6s ease;
  }
  .anim-map-markers {
    .world-map__marker {
      animation: drop-in .13s linear 0s 1 normal forwards;

      &.-africa {
        animation-delay: .1s;
      }
      &.-asia {
        animation-delay: .2s;
      }
      &.-americas {
        animation-delay: .3s;
      }
      &.-europe {
        animation-delay: .4s;
      }
    }
    .world-map__item-inner {
      opacity: 1;
      transform: scale(1);

      &.world-map__africa {
        transition-delay: .4s;
      }
      &.world-map__asia {
        transition-delay: .5s;
      }
      &.world-map__americas {
        transition-delay: .6s;
      }
      &.world-map__europe {
        transition-delay: .7s;
      }
    }
  }
}
