/* ============================================================
   DRIP — scroll-driven product showcase
   A pinned stage: the product holds still while the page scrolls,
   zooming in and cutting between angles/details as you go.
   Pure transform/opacity so it stays 60fps on a phone.
   ============================================================ */
.ps {
  position: relative;
  background: #fff;
  /* height is set per-step by JS (steps × 100svh) so the pin has runway */
}
.ps-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(16px, 4vw, 64px);
  padding: clamp(20px, 5vw, 80px);
  padding-top: max(76px, 9vh);
}

/* ---------- stage (the product) ---------- */
.ps-stage {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  isolation: isolate;
  /* the product zooms INSIDE this frame instead of spilling over the copy */
  overflow: hidden;
  border-radius: 26px;
}
.ps-glow {
  position: absolute;
  inset: 8% 4%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(48% 42% at 50% 46%, rgba(158, 199, 255, .30), transparent 70%),
    radial-gradient(38% 34% at 66% 62%, rgba(255, 158, 199, .24), transparent 72%),
    radial-gradient(36% 32% at 34% 36%, rgba(143, 240, 224, .24), transparent 72%);
  filter: blur(6px);
  animation: psBreathe 11s ease-in-out infinite;
  pointer-events: none;
}
@keyframes psBreathe { 0%,100%{opacity:.85;transform:scale(1)} 50%{opacity:1;transform:scale(1.06)} }

.ps-shot {
  position: absolute;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  will-change: transform, opacity;
  transform: translateZ(0);
  filter: drop-shadow(0 26px 40px rgba(20, 30, 50, .16));
  transition: opacity .38s ease;
}
.ps-shot.is-on { opacity: 1; }
/* real studio photography reads as an editorial plate, not a floating cutout */
.ps-shot--photo {
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(20, 30, 50, .22);
  filter: none;
}

/* ---------- copy ---------- */
.ps-copy { position: relative; z-index: 2; max-width: 40ch; }
.ps-eyebrow {
  font-family: "Montserrat", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .34em;
  font-size: .6rem;
  color: #8a9099;
  margin-bottom: 12px;
}
.ps-steps { position: relative; }
.ps-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.7,.3,1);
  pointer-events: none;
}
.ps-step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ps-step h3 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 4.2vw, 2.6rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  margin-bottom: 12px;
  color: #0b0c0e;
}
.ps-step h3 em {
  font-style: normal;
  background: linear-gradient(110deg,#ff9ec7,#c9a7ff,#9ec7ff,#8ff0e0,#d8ffb0,#ffd59e);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: psHolo 8s linear infinite;
}
@keyframes psHolo { to { background-position: 220% 0 } }
.ps-step p { color: #4a5058; font-size: clamp(.92rem, 2.4vw, 1.02rem); line-height: 1.6; }
.ps-spec {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 7px 14px;
  border: 1px solid #e3e7ee; border-radius: 100px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: #6c737d;
  background: #fff;
}

/* ---------- progress rail ---------- */
.ps-rail {
  position: absolute;
  left: clamp(14px, 3vw, 34px);
  top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px;
  z-index: 3;
}
.ps-rail i {
  width: 3px; height: 26px; border-radius: 100px;
  background: #e3e7ee; transition: background .3s ease, height .3s ease;
}
.ps-rail i.is-on { background: #0b0c0e; height: 40px; }

/* ---------- mobile: stack, product on top ---------- */
@media (max-width: 860px) {
  .ps-sticky {
    grid-template-columns: 1fr;
    grid-template-rows: 1.15fr auto;
    gap: 10px;
    padding: 68px 18px 30px;
    text-align: center;
  }
  .ps-copy { max-width: none; margin: 0 auto; }
  .ps-rail {
    left: 50%; top: auto; bottom: 14px;
    transform: translateX(-50%);
    flex-direction: row;
  }
  .ps-rail i { width: 26px; height: 3px; }
  .ps-rail i.is-on { width: 40px; height: 3px; }
  .ps-spec { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ps-shot, .ps-step { transition: none; }
  .ps-glow { animation: none; }
}
