/* ============================================
   Scroll Image Sequence  (hero-sequence.js)
   ============================================ */

/* Outer wrapper — creates vertical scroll space for 80 frames */
.seq-wrap {
  height: 500vh; /* desktop: generous scroll space */
  position: relative;
}

/* Sticky viewport — pins while user scrolls through .seq-wrap */
.seq-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;   /* fallback */
  height: 100svh;  /* iOS: excludes dynamic address bar so canvas never jumps */
  overflow: hidden;
  background: #050811;
}

/* Canvas: width/height/margin-top controlled by JS to clear the sticky header */
#seq-canvas {
  display: block;
  width: 100%;
}

/* Thin branded progress bar at bottom */
.seq-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  z-index: 2;
}

.seq-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00f2fe 0%, #8a2be2 100%);
  transition: width 0.06s linear;
  will-change: width;
}

/* Pill label — bottom right corner */
.seq-heading {
  position: absolute;
  bottom: 28px;
  right: 32px;
  white-space: nowrap;
  background: rgba(5, 8, 17, 0.65);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 100px;
  padding: 8px 24px;
  font-size: clamp(11px, 1.3vw, 14px);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 3;
  pointer-events: none;
}

/* Animated scroll-down hint (desktop only) */
.seq-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 3;
  animation: seq-bounce 1.8s ease-in-out infinite;
  transition: opacity 0.5s ease;
  pointer-events: none;
  user-select: none;
}

@keyframes seq-bounce {
  0%,  100% { transform: translateX(-50%) translateY(0px);  }
  50%        { transform: translateX(-50%) translateY(10px); }
}

/* ── Mobile ─────────────────────────────── */
@media (max-width: 768px) {
  /* Shorter scroll space — mobile users scroll faster */
  .seq-wrap {
    height: 280vh;
  }

  /* Pill: smaller, safe from screen edges */
  .seq-heading {
    bottom: 18px;
    right: 16px;
    padding: 6px 16px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  /* Swipe is natural on mobile — hide the scroll hint */
  .seq-scroll-hint {
    display: none;
  }
}

/* ── Tablet landscape ───────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .seq-wrap {
    height: 380vh;
  }
}

/* ── Respect prefers-reduced-motion ─────── */
@media (prefers-reduced-motion: reduce) {
  .seq-wrap {
    display: none;
  }
}
