.industries {
  height: 819px;
  padding: 120px 0 0;
  overflow: hidden;
  background: #f5f5f5;
}

.industries-inner {
  width: min(1285px, calc(100% - 48px));
  margin: 0 auto;
}

.industries-head {
  width: min(900px, 100%);
  margin: 0 auto 56px;
  text-align: center;
}

.industries-head .eyebrow {
  margin-bottom: 24px;
}

.industries-head h2 {
  color: #353536;
  font-size: 48px;
  font-weight: 700;
  line-height: 58px;
  letter-spacing: 0;
}

.industry-carousel {
  display: grid;
  grid-template-columns: 36px minmax(0, 1115px) 36px;
  align-items: center;
  gap: 49px;
}

.industry-carousel > button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #555;
  cursor: pointer;
}

.industry-carousel > button svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms ease, color 220ms ease;
}

.industry-carousel > button:first-child:hover svg {
  transform: translateX(-3px);
}

.industry-carousel > button:last-child:hover svg {
  transform: translateX(3px);
}

.industry-carousel > button:hover {
  color: #eab800;
}

.industry-carousel > button:disabled {
  color: #bdbdbd;
  cursor: default;
  opacity: .55;
}

.industry-carousel > button:disabled:hover svg {
  transform: none;
}

.industries .industry-grid {
  display: flex;
  gap: 70px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.industries .industry-grid::-webkit-scrollbar {
  display: none;
}

.industries .industry-grid article {
  position: relative;
  width: 325px;
  flex: 0 0 325px;
  height: 425px;
  overflow: hidden;
  border-radius: 20px;
  background: #ddd;
  scroll-snap-align: start;
}

.industries .industry-grid article::after {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(217, 217, 217, .2) 0%, rgba(0, 0, 0, .2) 100%);
  pointer-events: none;
}

.industries .industry-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industries .industry-grid article:nth-child(1) img {
  object-position: center;
}

.industries .industry-grid article:nth-child(2) img {
  object-position: 58% center;
}

.industries .industry-grid article:nth-child(3) img {
  object-position: center;
}

.industry-card-caption {
  position: absolute;
  z-index: 2;
  right: 35px;
  bottom: 34px;
  left: 35px;
  color: #fff;
  text-align: center;
}

.industry-card-caption strong {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 48px;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
}

.industry-card-caption span {
  position: static;
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 18px;
  background: #eab800;
  color: transparent;
  font-size: 0;
  font-weight: 400;
}

@media (max-width: 1180px) {
  .industries {
    height: auto;
    padding: 80px 0;
  }
  .industry-carousel {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 20px;
  }
  .industries-head {
    margin-bottom: 56px;
  }
  .industries-head .eyebrow {
    margin-bottom: 24px;
  }
  .industries .industry-grid {
    gap: 24px;
  }
  .industries .industry-grid article {
    width: calc((100% - 48px) / 3);
    flex-basis: calc((100% - 48px) / 3);
    height: 400px;
  }
}

@media (max-width: 760px) {
  .industries {
    padding: 64px 0;
  }
  .industries-inner {
    width: min(100% - 32px, 1285px);
  }
  .industries-head {
    margin: 0 0 36px;
    text-align: center;
  }
  .industries-head .eyebrow {
    margin-bottom: 24px;
  }
  .industries-head h2 {
    font-size: 36px;
    line-height: 44px;
    letter-spacing: -0.03em;
  }
  .industry-carousel {
    grid-template-columns: 1fr;
  }
  .industry-carousel > button {
    display: none;
  }
  .industries .industry-grid {
    gap: 16px;
  }
  .industries .industry-grid article {
    width: min(325px, calc(100vw - 80px));
    flex: 0 0 min(325px, calc(100vw - 80px));
    height: 425px;
    scroll-snap-align: start;
  }
  .industries .industry-grid article.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .industry-carousel > button svg,
  .industries .industry-grid img {
    transition: none;
  }
}
