.pages.home {
  .hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    gap: 0;
    margin: 20px auto 60px auto;
    text-align: center;

    .heroColumn:first-child {
      grid-row: 1;
      grid-column: 1;
      z-index: 1;
      align-self: end;
      padding-top: 220px;
    }

    .heroColumn:last-child {
      grid-row: 1;
      grid-column: 1;
      order: -1;
      z-index: 0;
      align-self: start;
      position: relative;

      &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60%;
        background: linear-gradient(to bottom, transparent, var(--color-bg));
        pointer-events: none;
      }
    }
  }

  @media (min-width: 768px) {
    .heading {
      margin-top: 0;
    }

    .hero {
      text-align: left;

      .heroColumn:first-child {
        align-self: center;
        padding-top: 0;
        max-width: 75%;
      }

      .heroColumn:last-child {
        justify-self: end;
        align-self: start;

        &::after {
          top: 0;
          bottom: auto;
          height: 100%;
          background: linear-gradient(to left, transparent 50%, var(--color-bg) 100%);
          background: none;
        }
      }
    }
  }

  @media (min-width: 1280px) {
    .hero {
      grid-template-columns: 1fr 338px;
      gap: 0 200px;
      text-align: left;

      .heroColumn:first-child {
        grid-row: auto;
        grid-column: auto;
        z-index: auto;
        align-self: auto;
        padding-top: 0;
        max-width: inherit;
      }

      .heroColumn:last-child {
        grid-row: auto;
        grid-column: auto;
        order: 0;
        z-index: auto;

        &::after {
          display: none;
        }
      }
    }
  }

  .hero img {
    max-width: 280px;
    height: auto;
    margin: 0 auto;
  }

  @media (min-width: 768px) {
    .hero img {
      max-width: 300px;
      margin: 0;
    }
  }

  @media (min-width: 1280px) {
    .hero img {
      max-width: 100%;
    }
  }

  .heading {
    font-family: var(--font-oxygen);
    font-size: clamp(1.5rem, 5vw, var(--font-size-xxl));
    font-weight: 700;
    position: relative;

    .mobile-only {
      display: inline;
    }
    .desktop-only {
      display: none;
    }

    @media (min-width: 768px) {
      .mobile-only {
        display: none;
      }
      .desktop-only {
        display: inline;
      }
    }

    div {
      --badge-font-size: clamp(1rem, 5vw, var(--font-size-xxl));
      --badge-padding: 6px 12px;
      --badge-item-height: var(--computed-item-height, calc(var(--badge-font-size) * 1.2 + 12px));

      display: inline-block;
      transform: rotate(-2deg);
      position: relative;
      height: var(--badge-item-height);
      margin-top: 4px;
      z-index: 2;

      @media (min-width: 768px) {
        position: absolute;
        margin-left: 18px;
      }

      ul {
        list-style: none;
        padding: 0;
        margin: 0;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        min-width: 100%;
        background: var(--color-purple);
        border-radius: 4px;
        overflow: hidden;
        height: var(--badge-item-height);
        transition: height 0.3s ease, top 0.3s ease;
      }

      @media (min-width: 768px) {
        ul {
          left: 0;
          transform: none;
        }
      }

      &.badge-ticker--expanded ul {
        height: calc(var(--badge-item-height) * 7);
      }

      a {
        display: block;
        font-size: var(--badge-font-size);
        color: var(--color-white);
        text-decoration: none;
        padding: var(--badge-padding);
        white-space: nowrap;
        text-align: center;
        &:hover {
          background: var(--color-white);
          color: var(--color-purple);
        }
      }
    }
  }

  .subheading {
    font-family: var(--font-nunito-sans);
    font-size: clamp(0.95rem, 3vw, var(--font-size-xl));
    font-weight: 400;
  }

  .hero .actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .hero .actions .button {
    font-size: 1rem;
    text-align: center;
    padding: 14px 30px;
    width: 100%;
    max-width: 360px;
  }

  @media (min-width: 768px) {
    .hero .actions {
      flex-direction: row;
      gap: 20px;
    }

    .hero .actions .button {
      font-size: var(--font-size-2x);
      padding: 18px 44px;
      width: auto;
      max-width: none;
    }
  }

  @media (min-width: 768px) and (max-width: 1023px) {
    .hero .actions .button {
      padding-left: 20px;
      padding-right: 20px;
    }
  }


  .clients {
    padding: 40px 20px;
    overflow: hidden;

    .list-of-clients {
      height: 80px;
      position: relative;
      overflow: hidden;
      width: 100%;
    }

    ul {
      animation: 120s linear 1s infinite normal both running slidein;
      display: flex;
      list-style: none;
      align-items: center;
      padding: 0;
      margin: 0;

      li {
        display: block;
        min-width: 205px;
        text-align: center;
        margin-right: 68px;
      }
    }
  }

  .who-am-i {
    background: url("/assets/who-am-i-bg-0d9e4838.png") no-repeat center center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 50px auto;
    min-height: auto;
    width: 90%;
    max-width: 668px;
    padding: 40px 0;
  }

  @media (min-width: 768px) {
    .who-am-i {
      margin: 100px auto;
      min-height: 510px;
      padding: 0;
    }
  }

  .who-am-i {
    h1 {
      background: var(--color-purple);
      rotate: -4deg;
      border-radius: 4px;
      font-family: var(--font-oxygen);
      font-size: var(--font-size-16xl);
      text-align: center;
      text-transform: uppercase;
      margin: 0 auto 30px auto;
      padding: 15px;
      width: 239px;
    }

    p {
      font-family: var(--font-nunito-sans);
      font-size: var(--font-size-2xl-3);
      text-align: center;
    }
  }

  .content-channels {
    display: flex;
    flex-direction: column;
    margin-bottom: 100px;
    position: relative;
    min-height: auto;

    .button {
      box-sizing: content-box;
      padding: 0;
      padding-top: 10px;
      text-align: center;
      width: 135px;
      height: 30px;
    }

    .youtube, .twitch {
      min-height: auto;
      width: 100%;
      position: relative;
      clip-path: none;
    }
    .youtube {
      background: var(--color-gainsboro);

      .content { padding: 40px 20px; text-align: center; }

      p {
        color: var(--color-gray-100);
        font-family: var(--font-nunito-sans);
        font-size: var(--font-size-2xl-3);
      }

      .button { background: var(--color-black); }
    }
    .twitch {
      background: var(--color-gray-800);
      display: flex;
      justify-content: flex-start;
      align-items: flex-start;
      text-align: center;

      .content { padding: 40px 20px; text-align: center; }

      .actions { justify-content: center; }

      p {
        color: var(--color-gray-400);
        font-family: var(--font-nunito-sans);
        font-size: var(--font-size-2xl-3);
      }
    }

    .content {
      width: 100%;

      h1 {
        margin: 0 0 30px 0;

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

      .actions {
        margin-top: 30px;
        display: flex;
        align-content: center;
        justify-content: center;

        a {
          display: flex;
          align-items: center;
          justify-content: center;
          margin: 0;
          padding: 5px 0;

          img {
            display: inline-block;
            padding-left: 10px;
          }
        }
      }
    }

    .title {
      order: -1;
      text-align: center;
      font-family: var(--font-oxygen);

      h1 {
        font-size: 32px;
        color: transparent;
        text-align: center;
        margin: 0 0 20px 0;
      }

      span {
        display: inline;
        -webkit-text-stroke: 1px var(--color-white);
        text-stroke: 1px var(--color-white);
      }

      .first { margin-right: 0; }
      .last { margin-left: 0.3em; }
    }
  }

  @media (min-width: 768px) {
    .content-channels {
      flex-direction: row;
      min-height: 528px;

      .youtube, .twitch {
        min-height: 528px;
        position: absolute;
      }
      .youtube {
        clip-path: polygon(100% 0%, 0% 100%, 0% 0%);
        .content { padding: 60px 0 60px 100px; text-align: left; }
      }
      .twitch {
        justify-content: flex-end;
        align-items: flex-end;
        text-align: right;
        clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
        right: 0;
        .content { padding: 60px 100px 60px 0; text-align: right; }
        .actions { justify-content: end; }
      }
      .content {
        width: 325px;
      }
      .content .actions {
        justify-content: flex-start;
      }
      .twitch .content .actions {
        justify-content: flex-end;
      }
      .title {
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-90deg);
        pointer-events: none;
        font-family: var(--font-oxygen);
        font-size: var(--font-size-l);
        z-index: 1;

        h1 {
          font-size: 32px;
          color: transparent;
          text-align: center;
        }

        span { display: inline-block; }

        .first {
          -webkit-text-stroke: 1px var(--color-white);
          text-stroke: 1px var(--color-white);
          text-align: left;
          margin-right: -20px;
        }
        .last {
          -webkit-text-stroke: 1px var(--color-gray-800);
          text-stroke: 1px var(--color-gray-800);
          text-align: right;
          margin-left: 60px;
        }
      }
    }
  }
}

@keyframes slidein {
  0% { transform: translateX(0); }
  100% { transform: translateX(-5460px); }
}

@media (min-width: 834px) {
  .pages.home {
    .clients {
      padding: 120px 0;

      .list-of-clients {
        width: 776px;
      }
    }
    .content-channels {
      width: 776px;

      .youtube {
        .content { padding: 60px 0 60px 30px; }
      }
      .twitch {
        .content { padding: 60px 30px 60px 0; }
      }
    }
  }
}
@media (min-width: 1024px) {
  .pages.home {
    .clients {
      padding: 40px 0;

      .list-of-clients {
        width: 971px;
      }
    }
    .content-channels {
      width: 971px;
    }
  }
}
@media (min-width: 1280px) {
  .pages.home {
    .clients {
      padding: 52px;

      .list-of-clients {
        width: 1174px;
      }
    }
    .content-channels {
      width: 1160px;
    }
  }
}
@media (min-width: 1440px) {
  .pages.home {
    .clients {
      padding: 75px;

      .list-of-clients {
        width: 1280px;
      }
    }
  }
}
