/* ============================================================
   Scroll Steps Section
   Desktop styles first, mobile at the bottom
   ============================================================ */

/* ---- Section header --------------------------------------- */
.sc-steps-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 864px;
  max-width: 864px;
  margin: 0 auto 18px;
}

.sc-steps-header__intro {
  display: block;
  color: var(--Shades-Dark-Side-Soft-Grey, #888);
  text-align: center;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  font-feature-settings: "liga" off, "clig" off;
  font-family: Nunito, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 21px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sc-steps-header__title {
  margin: 24px 0 0;
  color: var(--Shades-Dark-Side-Rich-Black, #000);
  text-align: center;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  font-feature-settings: "liga" off, "clig" off;
  font-family: Nunito, sans-serif;
  font-size: 48px;
  font-style: normal;
  font-weight: 700;
  line-height: 64px;
}

.sc-steps-header__desc {
  margin: 48px 0 0;
  margin-bottom: 0 !important;
  color: var(--Shades-Dark-Side-Rich-Black, #000);
  text-align: center;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  font-feature-settings: "liga" off, "clig" off;
  font-family: Nunito, sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 32px;
}

/* hide mobile-only variants on desktop */
.sc-steps-header--mobile-only,
.sc-steps-header__intro--mobile,
.sc-step__intro--mobile,
.sc-step__title--mobile,
.sc-step__description--mobile {
  display: none;
}

/* show desktop-only variants on desktop */
.sc-steps-header--desktop-only,
.sc-steps-header__intro--desktop,
.sc-step__intro--desktop,
.sc-step__title--desktop,
.sc-step__description--desktop {
  display: block;
}

/* ---- Section shell ---------------------------------------- */
.sc-steps-section {
  position: relative;
  overflow-x: clip;
  padding: 0 2.4rem;
  box-sizing: border-box;
}

/* ---- Sticky viewport container ---------------------------- */
.sc-steps-sticky {
  position: sticky;
  top: 160px;
  /* height: calc(100vh - 160px); */
  display: flex;
  align-items: center;
}

.sc-steps-sticky__inner {
  display: flex;
  align-items: center;
  width: 100%;
}

/* ---- Two-column grid -------------------------------------- */
.sc-steps-grid {
  display: flex;
  align-items: center;
  gap: 64px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Image right (default) */
.sc-steps-grid--image-right .sc-steps-left {
  order: 1;
}
.sc-steps-grid--image-right .sc-steps-right {
  order: 2;
}

/* Image left variant */
.sc-steps-grid--image-left .sc-steps-left {
  order: 2;
}
.sc-steps-grid--image-left .sc-steps-right {
  order: 1;
}

/* ---- Left column ------------------------------------------ */
.sc-steps-left {
  flex-shrink: 0;
  max-width: 448px;
  width: 100%;
}

/* ---- Steps list ------------------------------------------- */
.sc-steps-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* ---- Single step ------------------------------------------ */
.sc-step {
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.8s ease;
}

.sc-step.active {
  opacity: 1;
}

/* ---- Step intro (label) — INACTIVE ------------------------ */
.sc-step__intro {
  display: block;
  margin-bottom: 24px;
  color: var(--Shades-Dark-Side-Soft-Grey, #888);
  font-family: Nunito, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 21px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.35s ease;
}

@media (max-width: 767px) {
  .sc-step__intro {
    margin-bottom: 0;
  }

  .sc-step__description {
    margin-top: 8px !important;
  }
}

/* ---- Step title — INACTIVE -------------------------------- */
.sc-step__title {
  margin: 0;
  padding-top: 0 !important;
  color: var(--Shades-Dark-Side-Soft-Grey, #888);
  font-family: Nunito, sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 48px;
  transition: color 0.35s ease;
}

/* ---- Step description — INACTIVE -------------------------- */
.sc-step__description {
  margin: 32px 0 0;
  margin-bottom: 0 !important;
  color: var(--Shades-Dark-Side-Soft-Grey, #888);
  font-family: Nunito, sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 32px;
  transition: color 0.35s ease;
}

/* ---- ACTIVE step ------------------------------------------ */
.sc-step.active .sc-step__intro {
  color: var(--Accent-Green, #22e243);
}

.sc-step.active .sc-step__title {
  color: var(--Shades-Dark-Side-Rich-Black, #000);
}

.sc-step.active .sc-step__description {
  color: var(--Shades-Dark-Side-Rich-Black, #000);
}

/* ---- Right column (media area) ---------------------------- */
.sc-steps-right {
  flex-shrink: 0;
}

/* Outer wrapper — frame sits on top, slides clip inside wrap */
.sc-steps-media-outer {
  position: relative;
  width: 637.384px;
  height: 637.384px;
}

/* ---- Frame overlay (above clipped slides) ----------------- */
.sc-steps-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.sc-steps-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ---- Clipping container for slides ------------------------ */
.sc-steps-media-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

/* ---- Individual media slide ------------------------------- */
.sc-steps-media {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.sc-steps-media.active {
  transform: translateX(0);
  pointer-events: auto;
}

.sc-steps-media.was-active {
  transform: translateX(-100%);
}

.sc-steps-media picture {
  display: contents;
}

.sc-steps-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ---- Video slides ----------------------------------------- */
.sc-steps-video--desktop {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sc-steps-video--mobile {
  display: none;
}

@media (max-width: 900px) {
  .sc-steps-video--desktop { display: none; }
  .sc-steps-video--mobile  { display: block; width: 100%; height: 100%; object-fit: contain; }
}

/* ============================================================
   Mobile styles
   ============================================================ */
@media (max-width: 767px) {
  /* ---- Header --------------------------------------------- */
  .sc-steps-header {
    width: 304px;
    max-width: 304px;
    justify-content: center;
    margin-bottom: 32px;
  }

  .sc-steps-header__intro {
    font-size: 14px;
    font-weight: 600;
    line-height: 21px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  .sc-steps-header__title {
    margin-top: 16px;
    font-size: 28px;
    font-weight: 700;
    line-height: 40px;
  }

  .sc-steps-header__desc {
    margin-top: 32px;
    color: var(--Shades-Dark-Side-Antracite, #222);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
  }

  .sc-steps-header--desktop-only,
  .sc-steps-header__intro--desktop,
  .sc-step__intro--desktop,
  .sc-step__title--desktop,
  .sc-step__description--desktop {
    display: none;
  }

  .sc-steps-header--mobile-only,
  .sc-steps-header__intro--mobile,
  .sc-step__intro--mobile,
  .sc-step__title--mobile,
  .sc-step__description--mobile {
    display: block;
  }

  /* ---- Section -------------------------------------------- */
  .sc-steps-section {
    margin-top: 32px;
  }

  /* ---- Sticky — text priority, stick to 20vh from top ----- */
  .sc-steps-sticky {
    top: 10vh;
  }

  .sc-steps-sticky__inner {
    justify-content: center;
    align-items: flex-start;
  }

  /* ---- Single column: text top, image bottom -------------- */
  .sc-steps-grid {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    max-width: 100%;
  }

  .sc-steps-grid--image-right .sc-steps-left,
  .sc-steps-grid--image-left .sc-steps-left {
    order: 1;
  }
  .sc-steps-grid--image-right .sc-steps-right,
  .sc-steps-grid--image-left .sc-steps-right {
    order: 2;
  }

  .sc-steps-left {
    max-width: 304px;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .sc-steps-list {
    gap: 0;
    width: 100%;
    max-width: 304px;
  }

  /* only active step visible */
  .sc-step {
    display: none;
    text-align: center;
  }

  .sc-step.active {
    display: block;
  }

  .sc-step__intro {
    text-align: center;
    font-size: 14px;
    line-height: 21px;
  }

  .sc-step__title {
    text-align: center;
    font-size: 28px;
    line-height: 40px;
  }

  .sc-step__description {
    text-align: center;
    font-size: 16px;
    line-height: 24px;
  }

  /* ---- Right column --------------------------------------- */
  .sc-steps-right {
    width: 304px;
  }

  .sc-steps-media-outer {
    width: 304px;
    max-width: 215px;
    height: 449px;
    margin: auto;
  }
}


@media (min-width: 768px) {
  .sc-step__description {
      max-height: 0px;
      overflow: hidden;
      transition: all 220ms !important;
  }

  .sc-step.active .sc-step__description {
      max-height: 450px;
  }
}

.sc-steps-media-anim-disabled .sc-steps-media {
  transform: translateX(0) !important;
}
