
/* ---- Editorial numbered service rows — index / title / photo / description
   + tags, one hairline-divided row per service. Light theme in the
   reference (white bg, dark text); this site is dark, so surfaces/text
   invert to the same neutral tokens used everywhere else on the page. ---- */
.services-row-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 260px) minmax(0, 300px) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--at-neutral-100, #212121);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-row:last-child {
  border-bottom: none;
}
.service-row.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-row__index {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--at-neutral-500, #585959);
}

.service-row__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  color: #fefefe;
  margin: 0;
}

.service-row__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
}
.service-row__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-row:hover .service-row__media img {
  transform: scale(1.06);
}

.service-row__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-row__desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--at-neutral-dark-500, #b3b3b3);
  margin: 0;
}

.service-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-row__tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--at-neutral-dark-500, #b3b3b3);
  white-space: nowrap;
}

.service-row__btn {
  align-self: flex-start;
  margin-top: 10px;
  padding: 11px 22px;
  font-size: 14px;
}

/* Tablet — drop the fixed pixel columns for flexible fractions so the row
   doesn't overflow/crush as the viewport narrows, keep the same row shape. */
@media (max-width: 991.98px) {
  .service-row {
    grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "index title title"
      "media media content";
    row-gap: 20px;
    column-gap: 24px;
  }
  .service-row__index {
    grid-area: index;
  }
  .service-row__title {
    grid-area: title;
  }
  .service-row__media {
    grid-area: media;
    aspect-ratio: 16 / 9;
  }
  .service-row__content {
    grid-area: content;
    justify-content: center;
  }
}

/* Mobile — everything centers and stacks in reading order: index, title,
   photo, description, tags. */
@media (max-width: 575.98px) {
  .service-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "index"
      "title"
      "media"
      "content";
    justify-items: center;
    text-align: center;
    gap: 16px;
    padding: 32px 0;
  }
  .service-row__media {
    aspect-ratio: 4 / 3;
  }
  .service-row__content {
    align-items: center;
  }
  .service-row__tags {
    justify-content: center;
  }
  .service-row__btn {
    align-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-row {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .service-row__media img {
    transition: none;
  }
}
