/* =====================
   Fixed Scroll Section
   ===================== */

.scroll-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  position: relative;
}

.scroll-left {
  height: 100svh;
  position: relative;
  overflow: hidden;
}

.scroll-left img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  scale: 1.05;
}

.scroll-step {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem;
}

.scroll-step .step-image {
  display: none; /* desktop: hidden, .scroll-left handles it */
}

@media (max-width: 767px) {
  .scroll-section {
    display: block;
  }

  .scroll-left {
    display: none;
  }

  .scroll-step {
    min-height: auto;
    padding: 2rem 1.5rem 3rem;
  }

  .scroll-step .step-image {
    display: block !important;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    opacity: 1 !important;
    transform: none !important;
    scale: 1 !important;
  }
}

/* =====================
   Process Steps (linear list variant)
   ===================== */

.process-section {
  padding: 8rem 2rem;
}

.process-inner {
  max-width: 760px;
  margin: 0 auto;
}

.process-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 5rem;
  overflow: hidden;
}

.process-steps {
  position: relative;
  padding-left: 2rem;
}

.process-step {
  position: relative;
  padding: 0 0 6rem 3rem;
}

.step-number {
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 800;
  line-height: 1;
  position: absolute;
  top: -1.5rem;
  left: 2.5rem;
  user-select: none;
  pointer-events: none;
}

.step-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.step-content p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.step-list li {
  padding: 0.4rem 0 0.4rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  list-style: none;
  position: relative;
}

.step-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  opacity: 0.4;
}

.process-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: currentColor;
  opacity: 0.15;
  transform: scaleY(0);
  transform-origin: top;
}

.step-marker {
  position: absolute;
  left: -4px;
  top: 0.4rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: transparent;
  opacity: 0;
  z-index: 1;
  transform: scale(1);
  transition: background 0.3s ease, opacity 0.3s ease;
}

.step-marker.is-active {
  background: currentColor;
  opacity: 1;
}

/* =====================
   Process Split / Deck (pinned cards)
   ===================== */

.process-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
  overflow: hidden;
}

.process-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 4rem 2rem;
}

.process-left-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 1.5rem;
}

.process-left h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.process-left p {
  opacity: 0.6;
  line-height: 1.8;
  max-width: 36ch;
}

.process-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 4rem 1rem;
}

.process-deck {
  position: relative;
  width: 100%;
  max-width: 740px;
  min-height: 600px;
}

.process-card {
  position: absolute;
  inset: 0;
  padding: 2.25rem 2rem;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  will-change: transform, opacity, filter;
  background: rgb(32, 81, 89);
  color: #fff;
}

.process-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.process-card-number {
  font-size: clamp(5rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1;
  opacity: 0.07;
  position: absolute;
  bottom: 0.5rem;
  right: 1.25rem;
  user-select: none;
}

.process-card-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.process-card-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.process-card p {
  font-size: 0.9rem;
  line-height: 1.75;
  opacity: 0.75;
  margin: 0;
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .process-split {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 2.5rem;
    padding: 4rem 1.5rem;
  }

  .process-left,
  .process-right {
    padding: 0;
  }

  .process-deck {
    position: static;
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .process-card {
    position: static;
    height: auto;
    transform: none !important;
    scale: 1 !important;
    filter: none !important;
  }
}

/* =====================
   Scroll Indicator
   ===================== */

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: currentColor;
  opacity: 0.6;
  user-select: none;
  margin-top: 30px;
}

.scroll-indicator span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: scroll-bounce 1.4s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50%      { transform: rotate(45deg) translateY(6px); opacity: 0.3; }
}

/* =====================
   Reduced motion
   ===================== */

@media (prefers-reduced-motion: reduce) {
  .scroll-arrow {
    animation: none;
  }

  .process-card {
    transform: none !important;
    opacity: 1 !important;
    scale: 1 !important;
    filter: none !important;
  }
}