/* =====================================================
   OUR METHODOLOGY
===================================================== */

.methodology-section {
  background: #040315;

  color: #fdf9fa;

  padding:
    95px var(--page-padding) 105px;

  border-top:
    1px solid rgba(253, 249, 250, 0.10);

  border-bottom:
    1px solid rgba(253, 249, 250, 0.10);

  overflow: hidden;
}

.methodology-heading {
  text-align: center;

  max-width: 760px;

  margin:
    0 auto 70px;
}

.methodology-heading h2 {
  margin:
    0 0 16px;

  font-size:
    clamp(44px, 5vw, 68px);

  line-height: 1;

  letter-spacing: -0.05em;

  color: #fdf9fa;
}

.methodology-heading p {
  margin: 0;

  color:
    rgba(253, 249, 250, 0.62);

  font-size: 15px;

  line-height: 1.7;
}


/* =====================================================
   METHODOLOGY TRACK
===================================================== */

.methodology-scroll {
  width: 100%;

  overflow: hidden;
}

.methodology-track {
  display: flex;

  align-items: stretch;

  width: max-content;

  gap: 28px;

  position: relative;

  animation: none;
}

/* Desktop only shows the original four steps. */
.method-step-copy {
  display: none;
}

.methodology-track::before {
  content: "";

  position: absolute;

  top: 24px;

  left: 25px;

  right: 25px;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(236, 244, 1, 0.18),
      rgba(253, 249, 250, 0.12),
      rgba(236, 244, 1, 0.18),
      transparent
    );

  z-index: 0;
}


/* =====================================================
   METHODOLOGY STEP
   CLEAN / NO OUTER BOX
===================================================== */

.method-step {
  position: relative;

  z-index: 1;

  width: 300px;

  flex:
    0 0 300px;

  padding: 0;

  border: none;

  border-radius: 0;

  background: transparent;

  box-shadow: none;

  animation:
    methodologyCardFloat 5s ease-in-out infinite;

  transition:
    transform 0.3s ease;
}

.method-step:nth-child(1) {
  animation-delay: 0s;
}

.method-step:nth-child(2) {
  animation-delay: -1.3s;
}

.method-step:nth-child(3) {
  animation-delay: -2.6s;
}

.method-step:nth-child(4) {
  animation-delay: -3.9s;
}

.method-step:hover {
  background: transparent;
}


/* =====================================================
   METHODOLOGY NUMBERS
===================================================== */

.step-number {
  width: 48px;
  height: 48px;

  display: grid;

  place-items: center;

  margin-bottom: 28px;

  border-radius: 6px;

  border:
    1px solid rgba(236, 244, 1, 0.35);

  background:
    rgba(253, 249, 250, 0.02);

  color: #ecf401;

  font-size: 20px;

  font-weight: 800;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.step-number.active {
  background: #ecf401;

  color: #040315;

  border-color: #ecf401;
}

.method-step:hover .step-number {
  background: #ecf401;

  color: #040315;

  border-color: #ecf401;

  transform:
    translateY(-4px) rotate(-3deg);
}


/* =====================================================
   METHODOLOGY TEXT
===================================================== */

.method-step h3 {
  margin:
    0 0 12px;

  color: #fdf9fa;

  font-size: 21px;

  line-height: 1.2;
}

.method-step p {
  margin: 0;

  max-width: 290px;

  color:
    rgba(253, 249, 250, 0.58);

  font-size: 14px;

  line-height: 1.7;
}


/* =====================================================
   DESKTOP FLOATING ANIMATION
===================================================== */

@keyframes methodologyCardFloat {
  0%,
  100% {
    transform:
      translateY(0);
  }

  50% {
    transform:
      translateY(-6px);
  }
}

@keyframes methodologyResponsiveMove {
  from {
    transform:
      translateX(0);
  }

  to {
    transform:
      translateX(calc(-50% - 10px));
  }
}


/* =====================================================
   INDUSTRIES WE SUPPORT
===================================================== */

.industries-section {
  background: #040315;

  color: #fdf9fa;

  padding:
    95px 0 110px;

  border-top:
    1px solid rgba(253, 249, 250, 0.08);

  overflow: hidden;
}

.industries-heading {
  text-align: center;

  max-width: 760px;

  margin:
    0 auto 55px;

  padding:
    0 var(--page-padding);
}

.industries-heading h2 {
  margin:
    0 0 16px;

  font-size:
    clamp(44px, 5vw, 68px);

  line-height: 1;

  letter-spacing: -0.05em;

  color: #fdf9fa;
}

.industries-heading p {
  margin: 0;

  color:
    rgba(253, 249, 250, 0.62);

  font-size: 15px;

  line-height: 1.7;
}


/* =====================================================
   INDUSTRIES ANIMATED TRACK
===================================================== */

.industries-scroll {
  width: 100%;

  overflow: hidden;
}

.industries-track {
  display: flex;

  align-items: stretch;

  width: max-content;

  gap: 16px;

  padding-left:
    var(--page-padding);

  animation:
    industriesMove 34s linear infinite;
}

.industry-card {
  min-width: 285px;

  min-height: 84px;

  padding:
    24px 26px;

  display: flex;

  align-items: center;

  border:
    1px solid rgba(253, 249, 250, 0.12);

  border-radius: 10px;

  background:
    rgba(253, 249, 250, 0.025);

  color: #fdf9fa;

  font-size: 20px;

  font-weight: 750;

  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.12);

  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.industry-card:nth-child(odd) {
  transform:
    translateY(-3px);
}

.industry-card:nth-child(even) {
  transform:
    translateY(3px);
}

.industry-card:hover {
  background: #ecf401;

  border-color: #ecf401;

  color: #040315;

  transform:
    translateY(-6px) scale(1.02);

  box-shadow:
    0 18px 40px rgba(236, 244, 1, 0.10);
}

@keyframes industriesMove {
  from {
    transform:
      translateX(0);
  }

  to {
    transform:
      translateX(-50%);
  }
}

.industries-scroll:hover .industries-track {
  animation-play-state: paused;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

  .methodology-section {
    padding:
      80px 0 90px;
  }

  .methodology-heading {
    margin-bottom: 55px;

    padding:
      0 var(--page-padding);
  }

  .methodology-track {
    gap: 20px;

    padding-left:
      var(--page-padding);

    animation:
      methodologyResponsiveMove
      32s
      linear
      infinite;
  }

  .method-step {
    width: 290px;

    flex:
      0 0 290px;

    padding: 0;

    border: none;

    border-radius: 0;

    background: transparent;

    box-shadow: none;
  }

  .method-step-copy {
    display: block;
  }

  .methodology-scroll:hover
  .methodology-track {
    animation-play-state: paused;
  }

  .industries-track {
    animation-duration:
      38s;
  }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

  .methodology-section {
    padding:
      65px 0 75px;
  }

  .methodology-heading {
    text-align: left;

    padding:
      0 18px;

    margin-bottom: 38px;
  }

  .methodology-heading h2 {
    font-size: 40px;
  }

  .methodology-heading p {
    font-size: 14px;
  }

  .methodology-track {
    gap: 16px;

    padding-left: 18px;

    animation:
      methodologyResponsiveMove
      26s
      linear
      infinite;
  }

  .method-step {
    width: 275px;

    flex:
      0 0 275px;

    padding: 0;

    border: none;

    border-radius: 0;

    background: transparent;

    box-shadow: none;
  }

  .step-number {
    margin-bottom: 22px;
  }

  .industries-section {
    padding:
      65px 0 75px;
  }

  .industries-heading {
    text-align: left;

    padding:
      0 18px;

    margin-bottom: 38px;
  }

  .industries-heading h2 {
    font-size: 40px;
  }

  .industries-heading p {
    font-size: 14px;
  }

  .industries-track {
    gap: 14px;

    padding-left: 18px;

    animation-duration:
      30s;
  }

  .industry-card {
    min-width: 240px;

    min-height: 78px;

    padding:
      22px 22px;

    font-size: 18px;
  }
}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

  .methodology-track,
  .industries-track,
  .method-step {
    animation:
      none !important;
  }
}
