/* ============================================================
   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; }
}


/* ============================================================
   DEVICE CAROUSEL — dark spotlit row (plinth top + bottom)
   ============================================================ */
.fc-sec {
  --fc-accent: #3a8fd8;
  position: relative; background: #05070a;
  padding: clamp(20px,3.5vw,40px) 0 clamp(26px,4vw,52px);
  overflow: hidden; isolation: isolate;
}
.fc-sec::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(64% 40% at 50% 0%, rgba(255,255,255,.16), transparent 62%),
    radial-gradient(50% 22% at 50% 72%, color-mix(in srgb, var(--fc-accent) 40%, transparent), transparent 72%),
    radial-gradient(95% 75% at 50% 50%, rgba(10,14,20,0), #05070a 80%);
  transition: background .5s ease;
}

/* the dark rounded plates, top and bottom */
.fc-plate {
  position: relative; z-index: 3; width: max-content; max-width: 92vw;
  margin: 0 auto; text-align: center;
  padding: 10px 26px; border-radius: 16px;
  background: linear-gradient(#14181f, #0a0d12);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.07);
}
.fc-plate--top { padding: 9px 30px; }
.fc-mark { width: clamp(58px,8vw,78px); margin: 0 auto; display: block; opacity: .96; }
.fc-plate-sub {
  display: block; margin-top: 2px;
  font-family: "Montserrat", system-ui, sans-serif; font-size: .5rem;
  letter-spacing: .42em; text-transform: uppercase; color: #6f7986;
}

.fc-stage { position: relative; z-index: 1; height: min(58svh, 480px); margin: clamp(2px,1vw,10px) 0; outline: none; }
.fc-stage canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.fc-stage.is-held canvas { cursor: grabbing; }

/* chevrons flank the hero, like the reference */
.fc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  color: #fff; font-size: 1.15rem; line-height: 1; cursor: pointer; transition: .2s;
}
.fc-arrow:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.42); }
.fc-arrow.prev { left: calc(50% - 132px); }
.fc-arrow.next { right: calc(50% - 132px); }

.fc-num {
  display: block; font-family: "Montserrat", system-ui, sans-serif;
  font-size: .56rem; letter-spacing: .3em; color: var(--fc-accent); transition: color .4s ease;
}
.fc-name {
  font-family: "Montserrat", system-ui, sans-serif; font-weight: 800;
  font-size: clamp(1.05rem, 3.4vw, 1.9rem); line-height: 1.06; letter-spacing: .01em;
  color: #fff; margin: 3px 0 4px; text-transform: uppercase;
  text-shadow: 0 0 26px color-mix(in srgb, var(--fc-accent) 60%, transparent);
}
.fc-strain {
  display: block; font-family: "Montserrat", system-ui, sans-serif;
  font-size: .52rem; letter-spacing: .24em; text-transform: uppercase; color: #8a939f;
}
.fc-stock {
  display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.14);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: .5rem; letter-spacing: .2em; text-transform: uppercase;
  color: #a9f3c8; background: rgba(55,193,122,.12);
}
.fc-stock.out { color: #ffb4ae; background: rgba(226,86,79,.14); }
.fc-hint {
  position: relative; z-index: 2; display: block; text-align: center; margin-top: 14px;
  font-family: "Montserrat", system-ui, sans-serif; font-size: .5rem;
  letter-spacing: .26em; text-transform: uppercase; color: #4d5560;
}

@media (max-width: 700px) {
  .fc-stage { height: min(50svh, 400px); }
  .fc-arrow.prev { left: 12px; } .fc-arrow.next { right: 12px; }
}
