/* ============================================================
   Unipack — scroll-driven full-viewport hero
   Pinned stage; slides crossfade + parallax on scroll progress.
   ============================================================ */

.uh-scroll {
  position: relative;
  display: block;
  height: 340vh;
  background: #21181f;
}

.uh {
  --uh-bg: #21181f;
  --uh-accent: #dd00bc;
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  background: var(--uh-bg);
  overflow: hidden;
  isolation: isolate;
  font-family: "Lora", Georgia, serif;
}

/* ---------- slides ---------- */
.uh__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
  z-index: 1;
}
.uh__slide.is-active { z-index: 2; }

/* ---------- lifestyle photo (left) ---------- */
.uh__photo {
  position: absolute;
  inset: 0 auto 0 0;
  width: 48%;
  background-position: center;
  background-size: cover;
  will-change: transform;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 68%, transparent 99%);
  mask-image: linear-gradient(to right, #000 0, #000 68%, transparent 99%);
}
.uh__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(33,24,31,.45) 0, rgba(33,24,31,0) 45%, rgba(33,24,31,.9) 100%);
}

/* ---------- product cut-out ---------- */
.uh__product {
  position: absolute;
  top: 50%;
  left: 41%;
  max-height: 66%;
  max-width: 30%;
  width: auto;
  filter: drop-shadow(0 34px 60px rgba(0, 0, 0, .55));
  will-change: transform, opacity;
  z-index: 3;
  pointer-events: none;
}

/* ---------- copy block (right) ---------- */
.uh__copy {
  position: absolute;
  top: 50%;
  left: 58.5%;
  right: 5%;
  transform: translateY(-50%);
  z-index: 4;
  color: #fff;
}

.uh__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 0 0 .55rem;
  color: #fff;
}
.uh__title em {
  margin-left: .12em;
  font-style: italic;
  color: var(--uh-accent);
  font-weight: 500;
  transition: color .5s ease;
}

/* per-word mask reveal */
.uh__title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .06em;
}
.uh__title .w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 950ms cubic-bezier(.22, 1, .36, 1);
}
.uh__slide.is-active .uh__title .w > span { transform: none; }
.uh__slide.is-active .uh__title .w + .w > span { transition-delay: 110ms; }

.uh__text {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(.95rem, 1.15vw, 1.08rem);
  line-height: 1.62;
  color: rgba(255, 255, 255, .8);
  margin: 0 0 1.9rem;
  max-width: 30rem;
}

.uh__btn {
  display: inline-block;
  padding: 1rem 2.6rem;
  border-radius: 999px;
  background: var(--uh-accent);
  color: #fff !important;
  font-family: "Lora", Georgia, serif;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1;
  transition: transform .3s ease, filter .3s ease, background .5s ease;
  box-shadow: 0 12px 30px -10px var(--uh-accent);
}
.uh__btn:hover { transform: translateY(-2px); filter: brightness(1.08); }

.uh__text, .uh__btn-wrap {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.22, 1, .36, 1);
}
.uh__slide.is-active .uh__text     { opacity: 1; transform: none; transition-delay: 320ms; }
.uh__slide.is-active .uh__btn-wrap { opacity: 1; transform: none; transition-delay: 440ms; }

/* ---------- oversized ghost numeral ---------- */
.uh__ghost {
  position: absolute;
  right: 3%;
  bottom: -6%;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 34vh;
  line-height: 1;
  font-weight: 500;
  color: rgba(255, 255, 255, .05);
  z-index: 1;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

/* ---------- controls ---------- */
.uh__nav {
  position: absolute;
  bottom: 3rem;
  left: 58.5%;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  z-index: 6;
}
.uh__dots { display: flex; gap: .6rem; align-items: center; }
.uh__dot {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
  cursor: pointer; background: rgba(255,255,255,.3);
  transition: background .4s ease, width .4s ease;
}
.uh__dot.is-active { background: var(--uh-accent); width: 26px; border-radius: 999px; }

.uh__arrows { display: flex; gap: .5rem; }
.uh__arrow {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: transparent; color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background .3s ease, border-color .3s ease;
}
.uh__arrow:hover { background: var(--uh-accent); border-color: var(--uh-accent); }
.uh__arrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* scroll cue */
.uh__cue {
  position: absolute;
  left: 50%; bottom: 2.2rem;
  transform: translateX(-50%);
  z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  font-family: "Lora", Georgia, serif;
  font-size: .66rem; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
  transition: opacity .5s ease;
}
.uh__cue i {
  display: block; width: 1px; height: 42px;
  background: linear-gradient(to bottom, rgba(255,255,255,.55), transparent);
  animation: uh-cue 2s ease-in-out infinite;
}
@keyframes uh-cue {
  0%,100% { transform: scaleY(.3); transform-origin: top }
  50%     { transform: scaleY(1);  transform-origin: top }
}

/* progress rail */
.uh__progress {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: rgba(255,255,255,.08); z-index: 6;
}
.uh__progress i {
  display: block; height: 100%; width: 0;
  background: var(--uh-accent);
  transition: background .5s ease;
}

/* ============================================================
   Fallback: no pinning under 1024px / reduced motion
   ============================================================ */
.uh-scroll.is-static { height: auto; }
.uh-scroll.is-static .uh { position: relative; height: auto; }
.uh-scroll.is-static .uh__slide { position: relative; display: none; opacity: 1; }
.uh-scroll.is-static .uh__slide.is-active { display: block; }
.uh-scroll.is-static .uh__cue { display: none; }

@media (max-width: 1024px) {
  .uh-scroll { height: auto !important; }
  .uh { position: relative; height: auto; }
  .uh__slide { position: relative; display: none; opacity: 1 !important; }
  .uh__slide.is-active { display: block; }
  .uh__photo {
    position: relative; width: 100%; height: 46vw; max-height: 380px;
    transform: none !important;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 100%);
  }
  .uh__photo::after { background: linear-gradient(to bottom, rgba(33,24,31,.35) 0, rgba(33,24,31,.85) 100%); }
  .uh__product {
    position: absolute; top: 40vw; left: 50%;
    max-height: 42vw; max-width: 52%;
    transform: translate(-50%, -50%) !important; opacity: 1 !important;
  }
  .uh__copy {
    position: relative; top: auto; left: auto; right: auto;
    transform: none; padding: 3.2rem 1.5rem 2rem; text-align: center;
  }
  .uh__text { margin-left: auto; margin-right: auto; }
  .uh__ghost, .uh__cue { display: none; }
  .uh__nav { position: relative; bottom: auto; left: auto; justify-content: center; padding-bottom: 2.4rem; }
  .uh__text, .uh__btn-wrap { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
  .uh__product { max-height: 46vw; max-width: 62%; top: 38vw; }
  .uh__copy { padding-top: 4rem; }
  .uh__arrows { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .uh__title .w > span { transform: none !important; transition: none; }
  .uh__text, .uh__btn-wrap { opacity: 1 !important; transform: none !important; }
  .uh__cue i { animation: none; }
}

/* ============================================================
   Page-wide scroll reveals
   ============================================================ */
[data-rv] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--rv-d, 0ms);
}
[data-rv].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-rv] { opacity: 1 !important; transform: none !important; transition: none; }
}
