/* ─────────────────────────────────────────────────────────────────────────
   Process Ribbon — scroll-driven horizontal journey
   Outer wrapper provides scroll budget; inner sticky panel translates cards.
   ───────────────────────────────────────────────────────────────────────── */

/* CSS custom props shared across the ribbon */
:root {
  --pr-gold: #c48e2a;
  --pr-gold-rgb: 196, 142, 42;
}

/* ── Sticky panel ── */
.pr-sticky-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  /* clip cards that are translated off-screen so they don't cause page scroll */
  overflow: hidden;
  clip: rect(0, auto, auto, 0);
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0;
  isolation: isolate;
}

.pr-glow {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(120%, 920px);
  height: min(55vh, 520px);
  background: radial-gradient(ellipse at 50% 40%, rgba(var(--pr-gold-rgb), 0.08) 0%, transparent 62%);
  opacity: 0.95;
  z-index: 0;
}

/* ── Header ── */
.pr-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1600px;
  padding: 0 4vw;
  margin: 0 auto;
  flex-shrink: 0;
}

.pr-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 0.4rem;
}

.pr-kicker {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--pr-gold);
  margin-bottom: 0.2rem;
}

.pr-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(20px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}

.pr-gold-text {
  color: var(--pr-gold);
  text-shadow: 0 0 30px rgba(196, 142, 42, 0.3);
}

.pr-lead {
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Horizontal scroll viewport ── */
.pr-horiz-viewport {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  padding: 0.2rem 0;
}

/* The actual row of cards — translated by framer-motion x */
.pr-horiz-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 4vw;
  will-change: transform;
}

/* ── Step groups ── */
.pr-horiz-step-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}

/* Vertical offset alternation */
.pr-horiz-step--up  { transform: translateY(-10px); }
.pr-horiz-step--down { transform: translateY(10px); }

.pr-horiz-step {
  flex: 0 0 clamp(200px, 18vw, 250px);
  transition: filter 0.4s ease;
}

.pr-horiz-step:hover {
  filter: brightness(1.06);
}

/* ── Card ── */
.pr-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pr-card-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.6;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #0a0a0a;
  border: 1px solid rgba(196, 142, 42, 0.15);
}

.pr-horiz-step:hover .pr-card-main {
  transform: scale(1.03);
  border-color: var(--pr-gold);
  box-shadow: 0 30px 60px rgba(196, 142, 42, 0.25);
}

.pr-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.5s ease, transform 0.8s ease;
}

.pr-horiz-step:hover .pr-card-video {
  opacity: 0.85;
  transform: scale(1.08);
}

.pr-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.2) 60%);
  z-index: 1;
}

.pr-card-icon-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pr-gold);
  padding: 1rem;
  z-index: 2;
  filter: drop-shadow(0 0 15px rgba(196, 142, 42, 0.3));
}

.pr-card-footer {
  position: relative;
  z-index: 2;
  padding: 1rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.pr-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.pr-card-num {
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--pr-gold);
  letter-spacing: 0.1em;
}

.pr-card-description {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  line-height: 1.4;
}

/* ── Label card ── */
.pr-label-card {
  flex: 0 0 clamp(160px, 14vw, 210px);
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
  border: 1px solid rgba(196, 142, 42, 0.2);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
}

.pr-label-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pr-label-step {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--pr-gold);
}

.pr-label-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pr-gold);
  box-shadow: 0 0 10px var(--pr-gold);
}

.pr-label-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.pr-label-body {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.48);
  margin: 0;
}

/* ── Progress dots ── */
.pr-progress-dots {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  margin-bottom: 0.1rem;
  z-index: 10;
}

.pr-progress-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

/* Responsive visibility rules */
@media (max-width: 768px) {
  .pr-mobile-wrap {
    display: block !important;
  }
  .pr-desktop-shell {
    display: none !important;
  }
  #process-ribbon-root {
    height: auto !important;
  }

  .pr-horiz-track {
    gap: 1.25rem;
    padding: 2rem 5vw;
  }

  .pr-horiz-step {
    flex: 0 0 240px;
  }

  .pr-label-card {
    flex: 0 0 180px;
    padding: 1.25rem;
  }

  .pr-horiz-step--up  { transform: translateY(-20px); }
  .pr-horiz-step--down { transform: translateY(20px); }

  .pr-inner {
    padding: 0 1.25rem;
  }

  .pr-header {
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .pr-title {
    font-size: clamp(22px, 7vw, 32px) !important;
    line-height: 1.2 !important;
    word-break: break-word;
  }

  .pr-lead {
    font-size: 13px;
  }

  .pr-label-title { font-size: 15px; }
  .pr-label-body  { font-size: 11.5px; }
}

@media (min-width: 769px) {
  .pr-mobile-wrap {
    display: none !important;
  }
  .pr-desktop-shell {
    display: block !important;
  }
}