.stage {
  position: relative;
  height: 640vh;
}

.stage__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  touch-action: pan-y;
  /* sticky = its own stacking context, so the films' multiply blend needs a
     backdrop in here; without it the studio white shows as a white block. */
  background: var(--bg);
}

/* ---------- films ---------- */

.film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* White cyclorama melts into the page colour. */
  mix-blend-mode: multiply;
  filter: var(--film-filter);
  will-change: transform, opacity;
}

.stage__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.stage__poster[data-gl-ready="true"] {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .stage__poster[data-gl-ready="true"] {
    opacity: 1;
  }
}


/* ---------- split wordmark ---------- */

.wm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  /* bottom padding keeps the letters clear of the HUD lines */
  padding: 0 calc(var(--gutter) * 0.9) calc(var(--gutter) * 0.8 + 76px);
  pointer-events: none;
  /* Counter-parallax against the gaze. */
  transform: translateX(calc(var(--px, 0) * 18px));
}

.wm__l,
.wm__r {
  display: block;
  font-size: min(25vw, 50vh);
  line-height: 0.74;
  transform-origin: bottom;
  scale: 1 1.18;
  will-change: transform;
}

/* ---------- copy around the stage ---------- */

.stage__intro {
  position: absolute;
  top: calc(var(--gutter) * 0.7 + 52px);
  left: var(--gutter);
  max-width: 330px;
  margin: 0;
}

.stage__intro b {
  font-weight: 700;
}

.stage__cue {
  position: absolute;
  top: calc(var(--gutter) * 0.7 + 52px);
  right: var(--gutter);
  margin: 0;
}

.side-title {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  visibility: hidden;
  pointer-events: none;
}

.side-title h2 {
  font-size: clamp(26px, 2.6vw, 44px);
}

.side-title--l {
  left: var(--gutter);
}

.side-title--r {
  right: var(--gutter);
  text-align: right;
  align-items: flex-end;
}

.hud {
  position: absolute;
  bottom: calc(var(--gutter) * 0.8);
  display: flex;
  flex-direction: column;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.hud--l {
  left: var(--gutter);
}

.hud--r {
  right: var(--gutter);
  text-align: right;
}

.stage__count {
  position: absolute;
  right: var(--gutter);
  bottom: calc(var(--gutter) * 0.8 + 58px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  visibility: hidden;
}

/* ---------- floating garments ---------- */

.garments {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.garment {
  position: absolute;
  left: 50%;
  top: 50%;
  visibility: hidden;
  will-change: transform, opacity;
}

.garment__img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(14, 13, 12, 0.14));
}

.garment .smart-ph {
  width: 100%;
}

/* ---------- hotspots ---------- */

.hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hotspots.is-on .hotspot {
  pointer-events: auto;
}

.hotspot {
  position: absolute;
  width: 0;
  height: 0;
  visibility: hidden;
  pointer-events: none;
}

.hotspot__dot {
  position: absolute;
  left: -7px;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px rgba(251, 250, 247, 0.9);
}

.hotspot__dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  opacity: 0;
  animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
  0% {
    transform: scale(0.6);
    opacity: 0.6;
  }
  80%,
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.hotspot__line {
  position: absolute;
  top: 0;
  width: 46px;
  height: 1px;
  background: rgba(14, 13, 12, 0.35);
}

.hotspot--right .hotspot__line {
  left: 8px;
}

.hotspot--left .hotspot__line {
  right: 8px;
}

.hotspot__card {
  position: absolute;
  top: 0;
  translate: 0 calc(-50% + var(--dy, 0px));
  min-width: 172px;
  padding: 10px 12px 9px;
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.hotspot--right .hotspot__card {
  left: 54px;
}

.hotspot--left .hotspot__card {
  right: 54px;
}

.hotspot__card:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.hotspot__card .label {
  font-size: 9px;
}

.hotspot__name {
  font-size: 19px;
  white-space: nowrap;
}

.hotspot__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hotspot__price {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hotspot__price i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(14, 13, 12, 0.15);
}

.hotspot__add {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hotspot__add:hover {
  color: var(--accent);
}

/* ---------- dev helpers ---------- */

.ph-badge {
  position: absolute;
  left: 50%;
  top: calc(var(--gutter) * 0.7 + 50px);
  translate: -50% 0;
  padding: 5px 10px;
  border: 1px dashed rgba(14, 13, 12, 0.25);
  background: rgba(251, 250, 247, 0.7);
  font-size: 9px;
  white-space: nowrap;
}

.debug {
  position: absolute;
  left: 50%;
  top: 80px;
  translate: -50% 0;
  padding: 8px 12px;
  background: #fff3a6;
  z-index: 5;
}

/* ---------- small screens ---------- */

@media (max-width: 720px) {
  .stage {
    height: 560vh;
  }

  .wm {
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    padding: 18vh var(--gutter) 13vh;
  }

  .wm__l,
  .wm__r {
    font-size: 30vw;
  }

  .wm__r {
    align-self: flex-end;
  }

  .stage__cue {
    display: none;
  }

  .side-title {
    top: auto;
    bottom: 76px;
  }

  .side-title h2 {
    font-size: 22px;
    max-width: 40vw;
  }

  .hotspot__line {
    display: none;
  }

  .hotspot__card {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2;
  }

  .hotspot.is-active .hotspot__card {
    opacity: 1;
    pointer-events: auto;
  }

  .hotspot--right .hotspot__card {
    left: 16px;
  }

  .hotspot--left .hotspot__card {
    right: 16px;
  }

  .ph-badge {
    display: none;
  }

  /* The feet hotspot sits where the HUD lines are on phones. */
  .hud {
    transition: opacity 0.3s ease;
  }

  .is-hot .hud {
    opacity: 0;
  }
}
