/* K13 Clients: title on the left, two-lane vertical logo marquee of green tiles on the right. */
.k13-clients {
  padding-bottom: var(--section-padding);
}
.k13-clients__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4em;
}
.k13-clients__title {
  max-width: 11em;
  margin: 0;
  font-size: 4.5em;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--color-green);
}

/* Marquee */
.k13-double-marquee {
  width: 27.625em;
  position: relative;
}
.k13-double-marquee__before {
  pointer-events: none;
  padding-top: 154.299%;
}
.k13-double-marquee__single {
  width: calc(50% - .5em);
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}
.k13-double-marquee__single.is--k13-flipped {
  inset: auto 0% 0% auto;
  transform: scaleY(-1);
}
.k13-double-marquee__single-list {
  flex-flow: column;
  display: flex;
}
.k13-double-marquee__single-item {
  flex: none;
  width: 100%;
  margin-bottom: 1em;
}
.k13-marquee-logo {
  display: block;
  border-radius: var(--border-radius-m);
  -webkit-user-select: none;
  user-select: none;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.k13-clients .k13-marquee-logo,
.k13-clients [data-logo-theme] .k13-marquee-logo,
.k13-clients .is--k13-flipped [data-logo-theme] .k13-marquee-logo {
  background-color: var(--color-green);
}
.k13-marquee-logo__before {
  padding-top: 78%;
}
.k13-clients .k13-marquee-logo .k13-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5em;
  box-sizing: border-box;
}
.k13-double-marquee__single.is--k13-flipped .k13-marquee-logo {
  transform: scaleY(-1);
}
.k13-double-marquee__fade {
  background-image: linear-gradient(180deg, var(--color-light), transparent);
  width: calc(100% + 2px);
  height: 8em;
  position: absolute;
  top: -1px;
  left: -1px;
  pointer-events: none;
}
.k13-double-marquee__fade.is--k13-flipped {
  top: auto;
  bottom: -1px;
  transform: scaleY(-1);
}

@media screen and (max-width: 991px) {
  .k13-clients {
    overflow: hidden;
  }
  .k13-clients__card {
    flex-direction: column;
    gap: 3em;
    text-align: center;
  }
  .k13-clients__title {
    max-width: none;
    font-size: 3.5em;
  }
  .k13-clients__col-marquee {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 34em;
  }
  .k13-double-marquee {
    width: 65vw;
    transform: rotate(-90deg);
  }
  .k13-marquee-logo__before {
    padding-top: 100%;
  }
  .k13-marquee-logo .k13-cover-image {
    transform: rotate(90deg);
  }
}
@media screen and (max-width: 767px) {
  .k13-clients__title {
    font-size: 2.75em;
  }
  .k13-clients__col-marquee {
    height: 16.75em;
  }
  .k13-double-marquee {
    width: 69vw;
  }
  .k13-double-marquee__before {
    padding-top: 145%;
  }
}

/* The marquee is rotated 90° here, so its visible height equals its width (vw).
   A fixed em height let it spill over the title at in-between widths (e.g. 596px). */
@media screen and (max-width: 991px) {
  .k13-clients__col-marquee {
    height: calc(65vw + 1em);
  }
}
@media screen and (max-width: 767px) {
  .k13-clients__col-marquee {
    height: calc(69vw + 1em);
  }
  .k13-clients__card {
    gap: 2em;
  }
}
