/* ==========================================================================
   LW7 Environmental — process.css
   Scrollytelling Process Page — Full-Viewport Video Background
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Intro Section
   -------------------------------------------------------------------------- */
.process-intro {
  padding: var(--space-3xl) 0 var(--space-xl);
  text-align: center;
}

.process-intro p {
  max-width: 640px;
  margin: var(--space-md) auto 0;
  color: var(--slate);
  font-size: var(--text-lg);
}

/* --------------------------------------------------------------------------
   2. Scrollytelling Section — Full-Viewport Video Background
   -------------------------------------------------------------------------- */
.process-scrolly {
  position: relative;
  background-color: #FFFFFF;
}

/* --- Video Panel: full-viewport, pinned behind everything --- */
.process-scrolly__media {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  background-color: #FFFFFF;
  border: none;
  outline: none;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.process-scrolly__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 10% 50%;
  display: block;
  background-color: #FFFFFF;
  border: none;
  outline: none;
  will-change: transform;
  transform: translateZ(0);
}

/* --------------------------------------------------------------------------
   3. Text Panel — Floats over the right side
   -------------------------------------------------------------------------- */
.process-scrolly__text {
  position: relative;
  z-index: 10;
  margin-left: auto;
  margin-right: 5%;
  max-width: 500px;
  /* Pull the text panel up so it overlaps the sticky video */
  margin-top: -100vh;
}

/* --------------------------------------------------------------------------
   4. Step Cards — Glassmorphism floating cards
   -------------------------------------------------------------------------- */
.process-step {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-2xl) var(--space-2xl);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 70vh;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.process-step:last-child {
  margin-bottom: 40vh;
}

.process-step.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Spacers for scroll room --- */
.process-scrolly__spacer--top {
  height: 80vh;
}

.process-scrolly__spacer--bottom {
  height: 20vh;
}

/* --------------------------------------------------------------------------
   5. Step Card Typography
   -------------------------------------------------------------------------- */
.process-step__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: rgba(27, 42, 74, 0.08);
  line-height: 1;
  margin-bottom: var(--space-xs);
  user-select: none;
}

.process-step__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 var(--space-md);
  padding-bottom: var(--space-sm);
  position: relative;
}

.process-step__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background-color: var(--red);
}

.process-step__desc {
  color: var(--slate);
  font-size: var(--text-base);
  line-height: 1.7;
  margin: 0;
}

/* --------------------------------------------------------------------------
   6. Tablet (768px)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .process-step {
    padding: var(--space-2xl) var(--space-2xl);
  }

  .process-step__desc {
    font-size: var(--text-lg);
  }
}

/* --------------------------------------------------------------------------
   7. Desktop (1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .process-step {
    padding: 3rem;
  }

  .process-step__number {
    font-size: clamp(3rem, 2.5rem + 2vw, 4.5rem);
  }
}

/* --------------------------------------------------------------------------
   8. Mobile (<768px) — Center cards at bottom
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .process-scrolly__video {
    object-position: center center;
  }

  .process-scrolly__text {
    margin-left: auto;
    margin-right: auto;
    max-width: none;
    width: 90%;
    margin-top: -100vh;
  }

  .process-scrolly__spacer--top {
    height: 60vh;
  }

  .process-step {
    margin-bottom: 60vh;
    padding: var(--space-xl) var(--space-lg);
    border-radius: 12px;
  }

  .process-step:last-child {
    margin-bottom: 30vh;
  }

  .process-step__number {
    font-size: var(--text-3xl);
  }
}

/* --------------------------------------------------------------------------
   9. Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .process-step {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
