/* Services Scroll section - front-page only
   Staggered 3-column card layout with a video that travels diagonally on scroll.
--------------------------------------------- */

.services-scroll-section {
  position: relative;
}

/* ---- Scroll track ---- */

.services-scroll__track {
  position: relative;
}

/* ---- Section header ---- */

.services-scroll__header {
  max-width: 644px;
  margin-bottom: 86px;
  position: relative;
  z-index: 10;
}

.services-scroll__header .section-header__badge {
  pointer-events: auto;
}

.services-scroll__heading {
  font-family: "Helvetica Neue", sans-serif;
  font-weight: 500;
  font-size: 62px;
  line-height: 1.2;
  color: #fff;
  text-transform: none;
  margin: 20px 0 0;
}

.services-scroll__desc {
  font-size: 18px;
  line-height: 1.5;
  color: #b4b4b4;
  margin: 16px 0 0;
  max-width: 580px;
}

/* ---- Video wrapper ---- */

.services-scroll__video-outer {
  position: absolute;
  top: 0px;
  bottom: 0;
  right: 0px;
  width: 860px;
  pointer-events: none;
  z-index: 1;
}

.services-scroll__video-sticky {
  width: 860px;
  height: 860px;
  will-change: transform;
}

.services-scroll__video-wrap {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}
.services-scroll__video-wrap:before {
  content: "";
  position: absolute;
  background: #010101;
  width: 330px;
  height: 80px;
  display: block;
  left: 0;
  z-index: 1;
  border-radius: 9px;
}
.services-scroll__video-wrap:after {
  content: "";
  position: absolute;
  background: #010101;
  width: 230px;
  height: 100px;
  display: block;
  left: 0;
  z-index: 1;
}

.services-scroll__video-wrap video {
  width: calc(100% + 160px);
  height: calc(100% + 160px);
  object-fit: cover;
  display: block;
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
}

/* ---- Card grid ---- */

.services-scroll__cols {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(5, auto);
  gap: 40px;
  align-items: start;
}

/* ---- Individual card ---- */

a.services-scroll__card {
  text-decoration: none;
  color: inherit;
}

.services-scroll__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 421px;
  padding: 40px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
}

.services-scroll__card-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f8cd04;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.services-scroll__card-dot svg {
  width: 14px;
  height: 14px;
  color: #fff;
  fill: none;
  stroke: #fff;
}

.services-scroll__card:hover .services-scroll__card-dot,
a.services-scroll__card:hover .services-scroll__card-dot {
  transform: scale(1.2);
}

.services-scroll__card-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.services-scroll__card-title {
  font-family: "Helvetica Neue", sans-serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 36px;
  color: #fff;
  margin: 0;
}

.services-scroll__card-desc {
  font-size: 18px;
  line-height: 27px;
  color: #b4b4b4;
  margin: 0;
  max-width: 370px;
}

/* ============================================================
   # MEDIA: 1200px
   ============================================================ */

@media screen and (max-width: 1200px) {
  .services-scroll__video-outer {
    width: 500px;
  }

  .services-scroll__video-sticky {
    width: 500px;
    height: 500px;
  }

  .services-scroll__video-wrap:before {
    width: 185px;
    height: 26px;
  }

  .services-scroll__video-wrap:after {
    width: 20px;
    height: 40px;
  }

  .services-scroll__card {
    min-height: 330px;
  }

  .services-scroll__card-title {
    font-size: 22px;
    line-height: 30px;
  }
}

/* ============================================================
   # MEDIA: 992px
   ============================================================ */

@media (max-width: 992px) {
}

/* ============================================================
   # MEDIA: 576px
   ============================================================ */

@media (max-width: 576px) {
  .services-scroll__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 56px;
  }
  .services-scroll__heading {
    font-size: 47px;
    line-height: 1.15;
    text-align: center;
    margin: 28px 0 0;
  }
  .services-scroll__desc {
    font-size: 18px;
    line-height: 1.45;
    margin: 7px 0 0;
    text-align: center;
  }
  .services-scroll__video-outer {
    top: auto;
    bottom: auto;
    position: relative;
    width: 460px;
    margin: 0 auto;
  }
  .services-scroll__video-sticky {
    transform: none !important;
    width: 460px;
    height: 460px;
  }
  .services-scroll__video-wrap video {
    width: calc(100% + 120px);
    height: calc(100% + 120px);
  }
  .services-scroll__video-wrap:before {
    width: 178px;
    height: 31px;
    top: -19px;
    border-radius: 16px;
  }
  .services-scroll__video-wrap:after {
    width: 37px;
    height: 18px;
  }
  .services-scroll__cols {
    margin-top: 40px;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
  }
  .services-scroll__card {
    min-height: 416px;
    padding: 52px;
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .services-scroll__card-dot {
    width: 70px;
    height: 70px;
  }
  .services-scroll__card-body {
    gap: 23px;
  }
  .services-scroll__card-title {
    font-size: 28px;
    line-height: 36px;
  }
  .services-scroll__card-desc {
    font-size: 21px;
    line-height: 33px;
  }
}
