
.shine-platform-scroll-section {
  position: relative;
  height: 400vh;
  margin: 0;
}

.shine-platform-sticky-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #fff;
}

.shine-platform-visual {
  position: absolute;
  inset: 0 0 250px 0;
  overflow: hidden;
  background: #101820;
}

.shine-platform-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #101820;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 700ms cubic-bezier(.22,1,.36,1), transform 1100ms cubic-bezier(.22,1,.36,1);
}

.shine-platform-image.active {
  opacity: 1;
  transform: scale(1);
}

.shine-platform-image:not([style*="background-image"]) {
  background-image: linear-gradient(135deg, #0a1729, #183b59 50%, #07101d);
}

.shine-platform-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.10), rgba(0,0,0,.02) 55%, rgba(0,0,0,.16));
}

.shine-platform-content-container,
.shine-platform-cards-inner {
  width: min(1200px, calc(100% - 80px));
  margin-left: auto;
  margin-right: auto;
}

.shine-platform-content-container {
  position: relative;
  z-index: 5;
  height: 100%;
}

.shine-platform-hero-title {
  position: absolute;
  z-index: 5;
  top: 10%;
  left: 0;
  right: 0;
  margin: 0;
  max-width: none;
  color: #fff;
  font-size: clamp(38px, 4.8vw, 68px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -0.045em;
  text-shadow: 0 2px 14px rgba(0,0,0,.20);
}

.shine-platform-title-line {
  display: block;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.shine-platform-title-word {
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 650ms cubic-bezier(.22,1,.36,1), transform 750ms cubic-bezier(.22,1,.36,1);
}

.shine-platform-title-word.visible {
  opacity: 1;
  transform: translateY(0);
}

.shine-platform-color-bar {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 250px;
  height: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.shine-platform-cards {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  height: 250px;
  background: #fff;
}

.shine-platform-cards-inner {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.shine-platform-card {
  padding: 30px 5% 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 650ms cubic-bezier(.22,1,.36,1), visibility 0s linear 500ms;
}

.shine-platform-card.visible {
  opacity: .38;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 500ms ease, transform 650ms cubic-bezier(.22,1,.36,1), visibility 0s linear 0s;
}

.shine-platform-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 500ms ease, transform 650ms cubic-bezier(.22,1,.36,1), visibility 0s linear 0s;
}

.shine-platform-card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 11px;
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  color: #111;
}

.shine-platform-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.shine-platform-arrow svg {
  display: block;
  width: 24px;
  height: 24px;
}

.shine-platform-card-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.16;
  color: #777;
}

.shine-platform-card.active .shine-platform-card-text {
  color: #111;
}

.shine-platform-after-section {
  min-height: 1px;
  background: #fff;
}

@media (max-width: 700px) {
  /* One complete card per scroll stage on mobile */
  .shine-platform-scroll-section {
    height: 400vh;
  }

  .shine-platform-sticky-stage {
    min-height: 560px;
  }

  .shine-platform-visual {
    inset: 0 0 250px 0;
  }

  .shine-platform-content-container,
  .shine-platform-cards-inner {
    width: calc(100% - 40px);
  }

  .shine-platform-hero-title {
    top: 8%;
    left: 0;
    right: 0;
    font-size: clamp(28px, 7.5vw, 46px);
  }

  /* Mobile: every heading phrase gets its own line */
  .shine-platform-title-line {
    display: contents;
    white-space: nowrap;
  }

  .shine-platform-title-word {
    display: block;
    width: max-content;
    max-width: 100%;
  }

  .shine-platform-color-bar {
    bottom: 250px;
    height: 8px;
  }

  .shine-platform-cards {
    height: 250px;
  }

  /* Stack the four cards vertically.
     JS reveals only the current one and keeps previous cards dimmed. */
  .shine-platform-cards-inner {
    display: block;
    height: 100%;
    position: relative;
  }

  /* Mobile: replace the previous card instead of keeping it visible. */
  .shine-platform-card.visible:not(.active) {
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    pointer-events: none;
  }

  .shine-platform-card {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 28px 0 20px;
  }

  .shine-platform-card-title {
    font-size: 16px;
    margin-bottom: 11px;
  }

  .shine-platform-card-text {
    max-width: none;
    font-size: 15px;
    line-height: 1.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shine-platform-image,
  .shine-platform-title-word,
  .shine-platform-card {
    transition: none !important;
  }
}
