/* Scroll budget */
.probe-section {
  height: 250vh; /* total scroll time */
  position: relative;
}

/* Sticky activation */
.probe-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Probe shell always visible */
.probe-shell {
  position: relative;
  z-index: 3;
}

.probe-shell img {
  width: 900px;
}

/* Interior reveal */
.probe-interior {
  position: absolute;
  left: 52%;
  transform: translateX(-50%);
  width: 0;
  overflow: hidden;
  z-index: 2;
}

.probe-interior img {
  width: 600px;
}

.fade-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: transform, opacity;
}

/* Initial positions */
.fade-right {
    transform: translateX(-40px);
}
/* When visible */
.fade-show {
    opacity: 1;
    transform: translate(0, 0);
}
.probe-labels {
  position: absolute;
  left: 55%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 20;
  pointer-events: none;
}
.probe-mobile-visual {
  display: none;
}

.probe-labels img {
  width: 1000px; /* same as probe */
}
/* Tablet */
@media (max-width: 1024px) {

  /* Reduce scroll length slightly */
  .probe-section {
    height: 220vh;
  }

  /* Scale down probe shell */
  .probe-shell img {
    width: 600px;
  }

  /* Scale interior image */
  .probe-interior img {
    width: 400px;
  }

  /* Adjust interior alignment */
  .probe-interior {
    left: 65%;
  }

  /* Scale labels image */
  .probe-labels img {
    width: 800px;
  }
  .probe-mobile-visual {
    display: none;
  }
}
/* Mobile */
@media (max-width: 480px) {
  .probe-section {
    height: 300vh; /* More scroll room for animation */
  }
  .probe-sticky {
    align-items: center;
    justify-content: center;
    padding-top: 0;
    /* Ensure sticky works on mobile */
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
  }
  .probe-shell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .probe-shell img {
    width: 280px;
    max-width: 85vw;
  }
  .probe-interior {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    max-width: 160px;
    overflow: hidden;
    pointer-events: none;
  }
  .probe-interior img {
    width: 200px;
    max-width: 70vw;
    min-width: 200px; /* Prevent shrinking */
  }
  .probe-labels {
    left: 60%;
    top: 49%;
    transform: translate(-50%, -50%);
  }
  .probe-labels img {
    width: 300px;
    max-width: 90vw;
  }
  .fade-right {
    transform: translateX(-16px);
  }
  .probe-mobile-visual {
    display: none;
  }
}
/* Extra small mobile */
@media (max-width: 400px) {
  .probe-section {
    height: 80vh;
  }
  .probe-sticky,
  .probe-shell,
  .probe-interior,
  .probe-labels {
    display: none;
  }
  .probe-mobile-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    transform: translateY(-52px);
  }

  /* Fade-right animation applied automatically */
  .probe-mobile-visual img {
    width: 90vw;
    max-width: 320px;
    height: auto;

    opacity: 0;
    transform: translateX(-20px);
    animation: mobileFadeRight 0.9s ease-out forwards;
    animation-delay: 0.15s;
  }
}
@keyframes mobileFadeRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
