/* FROM — Services, section 1, after the "who FROM is for" cards (css/who.css): the kinds of things people send, as
   two rows of pills. */

/* ---------- What people send: two rows that drift past in opposite directions ---------- */

.send__kinds {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: 20px clamp(40px, 6vw, 96px);
  margin-top: clamp(80px, 10vw, 144px);
}

.send__kinds-title {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.05;
  font-weight: 750;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.send__kinds-text {
  max-width: 38ch;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
}

.things-rows {
  display: grid;
  gap: 14px;
  margin-top: clamp(36px, 4vw, 56px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.things {
  display: flex;
  overflow: hidden;
}

.things__track {
  flex: none;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0 14px 0 0;
  list-style: none;
  animation: things-drift 46s linear infinite;
}

.things--back .things__track {
  animation-direction: reverse;
  animation-duration: 52s;
}

.things:hover .things__track {
  animation-play-state: paused;
}

@keyframes things-drift {
  to {
    transform: translateX(-100%);
  }
}

.thing {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: clamp(58px, 5.4vw, 80px);
  padding: 0 clamp(22px, 2.2vw, 32px);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 650;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.thing--wash {
  background: var(--orange-wash);
  box-shadow: none;
}

.thing--orange {
  background: var(--orange);
  box-shadow: none;
  color: #fff;
}

/* The pills with a drawing start with it in a round frame. */
.thing:has(.thing__art) {
  padding-left: 8px;
}

.thing__art {
  flex: none;
  width: clamp(44px, 4.2vw, 64px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
}

.thing__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.2);
}

/* ---------- Tablet and phone ---------- */

@media (max-width: 1000px) {
  .send__kinds {
    grid-template-columns: 1fr;
  }
}
