/* ==========================================================================
   ZEROMYTH HERO: APPLE-GRADE PINNED 4K VIDEO SCROLL SCRUB STYLES
   - Pinned 380vh scroll track
   - Sticky full-bleed 100vh canvas viewport
   - Frame-accurate narrative choreography
   ========================================================================== */

/* Pinned Scroll Track */
.hero-pinned-container {
  position: relative;
  width: 100%;
  height: 380vh;
  background-color: #0c0d0c;
}

/* Sticky Viewport Frame */
.hero-sticky-frame {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

/* Full-Bleed Video Canvas */
.hero-video-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #0c0d0c;
}

#heroMakhanaVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  display: block;
}

.hero-scrub-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  pointer-events: none;
  display: block;
}

.hero-vignette-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 30%, transparent 60%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, transparent 15%, transparent 85%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
  z-index: 3;
}

/* Floating Choreographed Stage Container */
.hero-stage-container {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-stage-card {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%) translateY(20px) scale(0.97);
  opacity: 0;
  visibility: hidden;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  width: 90%;
  max-width: 440px;
  text-align: left;
  background: rgba(8, 12, 10, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.hero-stage-card.active {
  transform: translateY(-50%) translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-eyebrow-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-yellow);
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  background: rgba(245, 206, 98, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  display: inline-block;
  border: 1px solid rgba(245, 206, 98, 0.35);
}

.hero-stage-headline {
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 0.65rem;
}

.hero-stage-headline .highlight-yellow {
  color: var(--color-yellow);
}

.hero-stage-headline .highlight-green {
  color: var(--color-green);
}

.hero-stage-lead {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #D2DDD6;
  margin-bottom: 1rem;
}

.hero-stage-prompt {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(16, 24, 19, 0.75);
  border: 1px solid rgba(245, 206, 98, 0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-yellow);
  margin-bottom: 0.75rem;
}

.hero-telemetry-pill {
  display: inline-flex;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #88C999;
  background: rgba(6, 14, 9, 0.65);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(137, 196, 65, 0.2);
  margin-bottom: 0.75rem;
}

.hero-stage-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Realtime Timeline Scrubber HUD */
.hero-hud-tracker {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-hud-timeline {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-pill);
}

.hero-hud-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--color-green), var(--color-yellow));
  border-radius: var(--radius-pill);
  box-shadow: 0 0 15px rgba(253, 219, 94, 0.6);
  transition: width 0.04s linear;
}

.hero-hud-milestones {
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
}

.m-point {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(23, 22, 11, 0.9);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s;
}

.m-point:hover, .m-point.active {
  color: #000;
  background: var(--color-yellow);
  border-color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 15px var(--color-yellow);
}

.m-point.passed {
  color: var(--color-green);
  border-color: var(--color-green);
}

.hero-hud-timecode {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(251, 248, 238, 0.75);
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .hero-pinned-container {
    height: 280vh;
  }
  .hero-stage-headline {
    font-size: 1.8rem;
  }
  .hero-hud-tracker {
    bottom: 0.75rem;
    width: 95%;
    padding: 0.4rem 0.75rem;
    gap: 0.5rem;
  }
  .hero-stage-card {
    left: 3%;
    right: 3%;
    width: auto;
    max-width: none;
    padding: 1.25rem 1rem;
    bottom: 4.8rem;
  }
  .media-engine-control {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-stage-headline {
    font-size: 1.45rem;
  }
  .hero-stage-desc {
    font-size: 0.85rem;
  }
  .hero-hud-label {
    display: none;
  }
}

.hero-crack-prompt:hover {
  background: var(--color-yellow);
  color: var(--color-charcoal);
  border-color: var(--color-yellow);
  transform: scale(1.05);
}

.hero-crack-prompt .pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-green);
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(253, 219, 94, 0.2); }
  50% { box-shadow: 0 0 35px rgba(253, 219, 94, 0.6); }
}

/* Media Engine Switcher Floating Bar */
.media-engine-control {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 10;
  background: rgba(34, 33, 17, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(253, 219, 94, 0.2);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.media-engine-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(251, 248, 238, 0.6);
  padding: 0 0.5rem;
  text-transform: uppercase;
}

.media-mode-btn {
  background: transparent;
  border: none;
  color: var(--color-cream);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
}

.media-mode-btn.active {
  background: var(--color-yellow);
  color: var(--color-charcoal);
}

/* ==========================================================================
   "THE CRUNCH" & "FOLLOW THE CRUNCH" JOURNEY SECTION
   ========================================================================== */
.crunch-journey-section {
  position: relative;
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--color-charcoal) 0%, #1c1b0d 50%, var(--color-charcoal) 100%);
  border-top: 1px solid rgba(253, 219, 94, 0.1);
  overflow: visible;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.journey-step-card {
  background: rgba(44, 43, 24, 0.4);
  border: 1px solid rgba(253, 219, 94, 0.15);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-smooth);
}

.journey-step-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-yellow);
  background: rgba(44, 43, 24, 0.75);
  box-shadow: var(--shadow-yellow);
}

.journey-step-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(253, 219, 94, 0.2);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.journey-step-card:hover .journey-step-number {
  color: var(--color-green);
}

.journey-step-title {
  font-size: 1.4rem;
  color: var(--color-yellow);
  margin-bottom: 0.75rem;
}

.journey-step-desc {
  color: rgba(251, 248, 238, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
}

.journey-step-badge {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-green);
  background: rgba(153, 202, 60, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

/* Orivana Bridge Banner */
.orivana-bridge-card {
  background: linear-gradient(135deg, var(--color-orivana-dark) 0%, #0d261b 100%);
  border: 2px solid var(--color-orivana-light);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  margin-top: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.orivana-bridge-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(136, 201, 153, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.orivana-bridge-text h3 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.orivana-bridge-text p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  font-size: 1.05rem;
}

.orivana-bridge-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .orivana-bridge-card {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1.5rem;
  }
  .orivana-bridge-actions {
    flex-direction: column;
    width: 100%;
  }
  .media-engine-control {
    bottom: 1rem;
    right: 50%;
    transform: translateX(50%);
  }
}

/* ==========================================================================
   VIDEO SCROLL SCRUB MASTER STYLES & HUD OVERLAYS
   ========================================================================== */
.video-scrub-master-wrapper {
  position: relative;
  width: 100%;
  height: 350vh; /* Pinned 350vh scroll corridor */
  margin: 2rem 0 4rem;
  background: #0d0e0d;
}

.video-scrub-sticky-frame {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(253, 219, 94, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  z-index: 5;
}

.video-scrub-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #000;
}

.video-scrub-media {
  display: none; /* Video rendered to hardware canvas */
}

.video-scrub-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-scrub-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 35%, rgba(13, 14, 13, 0.85) 100%),
              linear-gradient(to bottom, rgba(13, 14, 13, 0.9) 0%, transparent 20%, transparent 80%, rgba(13, 14, 13, 0.95) 100%);
  pointer-events: none;
  z-index: 2;
}

/* HUD Overlay Layer */
.video-scrub-hud {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem 2rem;
  pointer-events: none;
}

.video-scrub-hud * {
  pointer-events: auto;
}

.hud-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 14, 13, 0.65);
  backdrop-filter: blur(12px);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hud-brand-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-green);
}

.hud-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4757;
  box-shadow: 0 0 10px #ff4757;
  animation: pulseGlow 1.5s infinite;
}

.hud-time-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-cream);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hud-divider {
  color: rgba(255, 255, 255, 0.2);
}

/* Center Stage Card */
.hud-stage-card {
  max-width: 480px;
  background: rgba(34, 33, 17, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(253, 219, 94, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.4s var(--ease-spring);
}

.hud-stage-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.hud-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-yellow);
  background: rgba(253, 219, 94, 0.15);
  border: 1px solid rgba(253, 219, 94, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
}

.hud-stage-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-green);
}

.hud-stage-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-cream);
  line-height: 1.15;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.hud-stage-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-yellow);
  margin-bottom: 0.75rem;
}

.hud-stage-desc {
  font-size: 0.88rem;
  color: rgba(251, 248, 238, 0.85);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.hud-telemetry-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hud-telemetry-item {
  display: flex;
  flex-direction: column;
}

.hud-t-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(251, 248, 238, 0.6);
  text-transform: uppercase;
}

.hud-t-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-green);
}

/* HUD Interactive Scrub Bar */
.hud-scrub-bar-container {
  width: 100%;
  margin-top: auto;
  margin-bottom: 1rem;
}

.hud-scrub-track {
  position: relative;
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
}

.hud-scrub-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--color-green), var(--color-yellow));
  border-radius: var(--radius-pill);
  box-shadow: 0 0 15px rgba(253, 219, 94, 0.5);
  transition: width 0.05s linear;
}

.hud-scrub-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 15px #FDDB5E, 0 2px 6px rgba(0, 0, 0, 0.6);
  border: 2px solid var(--color-yellow);
  transition: transform 0.2s;
  pointer-events: none;
}

.hud-marker {
  position: absolute;
  top: -10px;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(34, 33, 17, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  z-index: 5;
}

.hud-marker.marker-1 { left: 10%; }
.hud-marker.marker-2 { left: 32%; }
.hud-marker.marker-3 { left: 57%; }
.hud-marker.marker-4 { left: 80%; }
.hud-marker.marker-5 { left: 95%; }

.hud-marker:hover, .hud-marker.active {
  background: var(--color-yellow);
  color: #000;
  border-color: #fff;
  transform: translateX(-50%) scale(1.2);
  box-shadow: 0 0 15px var(--color-yellow);
}

.hud-marker.passed {
  border-color: var(--color-green);
  color: var(--color-green);
}

/* Bottom Actions Bar */
.hud-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hud-actions-left, .hud-actions-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hud-btn {
  background: rgba(34, 33, 17, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-cream);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.25s;
}

.hud-btn:hover, .hud-btn.active {
  background: var(--color-yellow);
  color: #000;
  border-color: var(--color-yellow);
  box-shadow: 0 0 12px rgba(253, 219, 94, 0.4);
}

@media (max-width: 768px) {
  .video-scrub-sticky-frame {
    height: 520px;
  }
  .video-scrub-hud {
    padding: 1rem;
  }
  .hud-top-bar {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }
  .hud-stage-card {
    padding: 1.25rem;
    max-width: 100%;
  }
  .hud-stage-title {
    font-size: 1.25rem;
  }
  .hud-bottom-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .hud-actions-right {
    justify-content: space-between;
  }
}
