/* FROM — About, opening section: a wide photo of a delivery company owner at the FROM dashboard, with the
   "trip delivered" card his company sees resting on it. The photo opens out from a smaller frame as it scrolls into view. */

.about-shot {
  position: relative;
  margin: clamp(48px, 6vw, 88px) 0 0;
}

.about-shot__frame {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--orange-tint);
  clip-path: inset(0 round var(--radius-lg));
}

.about-shot__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 2%;
}

.about-shot--company .about-shot__frame img {
  object-position: 50% 40%;
}

/* What the company sees when one of its riders finishes a trip: who, where, and what it earned. */
.about-shot__card {
  position: absolute;
  left: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 3vw, 40px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 12px 12px 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(7, 13, 23, 0.18);
}

.about-shot__face {
  position: relative;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
}

.about-shot__face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.about-shot__who {
  display: grid;
  gap: 2px;
  padding-right: 8px;
}

.about-shot__who strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
}

.about-shot__who strong .icon {
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  stroke-width: 3;
}

.about-shot__who span {
  font-size: 14px;
  color: var(--ink-3);
}

.about-shot__pay {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Playing in ---------- */

.about-shot[data-reveal] .about-shot__frame {
  clip-path: inset(6% 5% round var(--radius-lg));
  transition: clip-path 1.2s var(--ease-out);
}

.about-shot[data-reveal] .about-shot__frame img {
  transform: scale(1.12);
  transition: transform 1.6s var(--ease-out);
}

.about-shot[data-reveal] .about-shot__card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s 0.7s, transform 0.8s 0.7s var(--ease-out);
}

.about-shot.is-in .about-shot__frame {
  clip-path: inset(0 round var(--radius-lg));
}

.about-shot.is-in .about-shot__frame img {
  transform: none;
}

.about-shot.is-in .about-shot__card {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 860px) {
  .about-shot__frame {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 560px) {
  .about-shot__frame {
    aspect-ratio: 4 / 5;
  }

  .about-shot__frame img {
    object-position: 67% 50%;
  }

  .about-shot--company .about-shot__frame img {
    object-position: 84% 50%;
  }

  .about-shot__card {
    right: 12px;
    left: 12px;
    bottom: 12px;
    gap: 12px;
    padding: 10px;
  }

  .about-shot__face {
    width: 44px;
    height: 44px;
  }

  .about-shot__who {
    flex: 1;
    min-width: 0;
    padding-right: 0;
    white-space: nowrap;
  }

  .about-shot__who strong {
    gap: 4px;
    font-size: 15px;
  }

  .about-shot__who strong .icon {
    width: 16px;
    height: 16px;
  }

  .about-shot__who span {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
  }

  .about-shot__pay {
    height: 38px;
    padding: 0 13px;
    font-size: 14px;
  }
}
