.tt-mobile-services {
  display: none;
}

@media (max-width: 1199.98px) {
  .tt-mobile-services {
    --tt-mobile-section-gutter: 20px;
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    padding: 42px 20px 54px;
    overflow: hidden;
    box-sizing: border-box;
    background: #3b3b3b;
    color: #dcdcdc;
    isolation: isolate;
  }

  .tt-mobile-services::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    opacity: .6;
    background:
      linear-gradient(90deg, transparent calc(33.333% - .5px), rgba(220, 220, 220, .075) calc(33.333% - .5px), rgba(220, 220, 220, .075) calc(33.333% + .5px), transparent calc(33.333% + .5px)),
      linear-gradient(90deg, transparent calc(33.333% + 7.5px), rgba(220, 220, 220, .075) calc(33.333% + 7.5px), rgba(220, 220, 220, .075) calc(33.333% + 8.5px), transparent calc(33.333% + 8.5px)),
      linear-gradient(90deg, transparent calc(66.666% - .5px), rgba(220, 220, 220, .075) calc(66.666% - .5px), rgba(220, 220, 220, .075) calc(66.666% + .5px), transparent calc(66.666% + .5px)),
      linear-gradient(90deg, transparent calc(66.666% + 7.5px), rgba(220, 220, 220, .075) calc(66.666% + 7.5px), rgba(220, 220, 220, .075) calc(66.666% + 8.5px), transparent calc(66.666% + 8.5px));
  }

  .tt-mobile-services__title,
  .tt-mobile-services__list {
    position: relative;
    z-index: 1;
  }

  .tt-mobile-services__title {
    position: relative;
    margin: 0 0 34px;
    color: #dcdcdc;
    font-family: "Space Mono", monospace;
    font-size: clamp(35px, 11vw, 56px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.055em;
    text-transform: uppercase;
  }

  .tt-mobile-services__title::before {
    content: "";
    position: absolute;
    top: -18px;
    right: calc(-1 * var(--tt-mobile-section-gutter));
    left: calc(-1 * var(--tt-mobile-section-gutter));
    height: 1px;
    background: rgba(220, 220, 220, .18);
    pointer-events: none;
  }

  .tt-mobile-services__list {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .tt-mobile-service-card {
    position: relative;
    display: grid;
    /* Keep the media and its CTA aligned to the requested 146px card width. */
    grid-template-columns: minmax(0, 1fr) 146px;
    column-gap: clamp(12px, 2vw, 24px);
    align-items: start;
  }

  .tt-mobile-service-card__link {
    position: absolute;
    z-index: 2;
    inset: 0;
    border-radius: 1px;
    -webkit-tap-highlight-color: transparent;
  }

  .tt-mobile-service-card__link:focus-visible {
    outline: 1px solid #ff5c17;
    outline-offset: 4px;
  }

  .tt-mobile-service-card__copy {
    min-width: 0;
    padding-top: 1px;
  }

  .tt-mobile-service-card__code {
    margin: 0 0 clamp(22px, 3vw, 36px);
    color: #9f9f9f;
    font-family: "Manrope", sans-serif;
    font-size: clamp(12px, 1.25vw, 15px);
    font-weight: 400;
    line-height: 1.3;
  }

  .tt-mobile-service-card__category,
  .tt-mobile-service-card__summary {
    margin: 0;
    color: #9f9f9f;
    font-family: "Manrope", sans-serif;
    font-size: clamp(12px, 1.25vw, 15px);
    font-weight: 400;
    line-height: 1.3;
  }

  .tt-mobile-service-card__name {
    margin: 3px 0 4px;
    max-width: 146px;
    overflow-wrap: anywhere;
    color: #dcdcdc;
    font-family: "Space Mono", monospace;
    font-size: clamp(14px, 1.85vw, 22px);
    font-weight: 700;
    line-height: 1.18;
  }

  .tt-mobile-service-card__media {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #333333;
  }

  .tt-mobile-service-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #333333;
    opacity: 0;
  }

  .tt-mobile-service-card__tiles {
    position: absolute;
    z-index: 1;
    inset: 0 0 26px;
    overflow: hidden;
    pointer-events: none;
  }

  .tt-mobile-service-card__tile {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: translate3d(var(--tt-tile-x, 0), var(--tt-tile-y, 0), 0);
  }

  .tt-mobile-service-card.is-revealed .tt-mobile-service-card__image {
    animation: tt-mobile-service-image-settle 1ms linear 410ms both;
  }

  .tt-mobile-service-card.is-revealed .tt-mobile-service-card__tile {
    animation: tt-mobile-service-tile-in 260ms steps(2, end) var(--tt-tile-delay, 0ms) both;
  }

  .tt-mobile-service-card__cta {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    min-height: 40px;
    padding: 0 8px;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    background: #dcdcdc;
    color: #333333;
    font-family: "Space Mono", monospace;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    pointer-events: none;
    transition: background-color 160ms ease, color 160ms ease, transform 140ms cubic-bezier(.23, 1, .32, 1);
  }

  @keyframes tt-mobile-service-tile-in {
    0% {
      opacity: 0;
      filter: contrast(1.35) saturate(.75);
    }
    48% {
      opacity: .68;
    }
    100% {
      opacity: 1;
      filter: none;
      transform: translate3d(0, 0, 0);
    }
  }

  @keyframes tt-mobile-service-image-settle {
    to { opacity: 1; }
  }

  .tt-mobile-service-card__cta::after {
    content: "\2192";
    font-size: clamp(13px, 1.45vw, 17px);
    line-height: 1;
  }

  .tt-mobile-service-card__link:active ~ .tt-mobile-service-card__media .tt-mobile-service-card__cta {
    transform: scale(.98);
  }

  @media (hover: hover) and (pointer: fine) {
    .tt-mobile-service-card__link:hover ~ .tt-mobile-service-card__media .tt-mobile-service-card__cta {
      background: #ff5c17;
      color: #333333;
    }
  }

  html body .tt-stage .tt-stage__inner #tt-services-block.tt-services-block {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 359px) {
  .tt-mobile-services {
    --tt-mobile-section-gutter: 16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .tt-mobile-service-card {
    grid-template-columns: minmax(0, 1fr) 146px;
    column-gap: 10px;
  }

  .tt-mobile-service-card__cta {
    padding: 0 7px;
    font-size: 12px;
  }
}

@media (min-width: 360px) and (max-width: 600px) {
  .tt-mobile-service-card__code,
  .tt-mobile-service-card__category,
  .tt-mobile-service-card__summary {
    font-size: clamp(13px, 3vw, 14px);
  }

  .tt-mobile-service-card__name {
    font-size: clamp(16px, 3.6vw, 18px);
    line-height: 1.16;
  }

  .tt-mobile-service-card__cta {
    min-height: 40px;
    font-size: 14px;
  }

  .tt-mobile-service-card__cta::after {
    font-size: clamp(15px, 3.5vw, 17px);
  }
}

@media (min-width: 600.01px) and (max-width: 1199.98px) {
  .tt-mobile-service-card__code,
  .tt-mobile-service-card__category,
  .tt-mobile-service-card__summary {
    font-size: clamp(14px, 1.35vw, 16px);
  }

  .tt-mobile-service-card__name {
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.16;
  }

  .tt-mobile-service-card__cta {
    min-height: 40px;
    font-size: 14px;
  }

  .tt-mobile-service-card__cta::after {
    font-size: clamp(16px, 1.4vw, 18px);
  }
}

@media (max-width: 1199.98px) and (prefers-reduced-motion: reduce) {
  .tt-mobile-service-card__cta {
    transition: none;
  }

  .tt-mobile-service-card__image,
  .tt-mobile-service-card.is-revealed .tt-mobile-service-card__image {
    opacity: 1;
    animation: none;
  }

  .tt-mobile-service-card__tiles {
    display: none;
  }
}

@media (max-width: 1199.98px) {
  .tt-mobile-service-card__cta {
    font-size: 14px !important;
  }
}
