:root {
  color-scheme: dark;
  background: #101114;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #101114;
}

body {
  overflow-x: clip;
}

.experience {
  position: relative;
  height: 500vh;
  height: 500svh;
}

.scene {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #101114;
}

.interior-bg, .interior-veil {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.interior-bg { z-index: 0; }
.interior-veil { z-index: 2; }

.stage {
  z-index: 1;
  position: relative;
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100svh;
  place-items: center;
  overflow: hidden;
  background: transparent;
}

.product {
  position: relative;
  display: block;
  width: auto;
  height: 56vh;
  height: 56svh;
  max-width: 85vw;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  clip-path: url(#bag-outline);
}

.product-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  touch-action: pan-y;
}

.stage.is-ready .product-canvas {
  opacity: 1;
}

.stage.is-ready .product {
  visibility: hidden;
}

.stage.motion-active .product {
  clip-path: url(#bag-outline-moving);
}

.hero-intro {
  position: absolute;
  inset: 0;
  z-index: 3;
  color: #f7f7f2;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.hero-intro-title {
  position: absolute;
  top: max(6svh, env(safe-area-inset-top));
  left: 24px;
  right: 24px;
  margin: 0;
  font-size: clamp(26px, 3.3vw, 44px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -.045em;
}

.hero-intro-title span { color: #adb0b7; }

.hero-scroll-cue {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: max(5svh, calc(env(safe-area-inset-bottom) + 18px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.hero-scroll-cue p {
  margin: 0;
  color: #f3f3ef;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .01em;
}

.hero-scroll-cue p span { color: #a9adb5; }
.hero-scroll-gesture { height: 52px; }
.hero-scroll-gesture svg { height: 100%; stroke: #a9adb5; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-scroll-mouse { display: block; width: 34px; }
.hero-scroll-touch { display: none; width: 38px; overflow: visible; }
.hero-scroll-wheel { stroke: #ffcd00; stroke-width: 2.5; animation: hero-wheel 2.1s ease-in-out infinite; }
.hero-scroll-arrow { animation: hero-arrow 2.1s ease-in-out infinite; }
.hero-scroll-finger { animation: hero-swipe 2.4s ease-in-out infinite; }
.hero-scroll-swipe { stroke: #ffcd00; animation: hero-swipe-arrow 2.4s ease-in-out infinite; }
.hero-intro.is-dismissed * { animation-play-state: paused; }

@keyframes hero-wheel {
  0%, 15% { transform: translateY(0); opacity: 1; }
  65% { transform: translateY(9px); opacity: 0; }
  66%, 100% { transform: translateY(0); opacity: 0; }
}
@keyframes hero-arrow {
  0%, 15%, 100% { transform: translateY(0); opacity: .4; }
  55% { transform: translateY(3px); opacity: 1; }
}
@keyframes hero-swipe {
  0%, 15%, 100% { transform: translateY(3px); opacity: .6; }
  60% { transform: translateY(-6px); opacity: 1; }
}
@keyframes hero-swipe-arrow {
  0%, 15%, 100% { transform: translateY(2px); opacity: .25; }
  60% { transform: translateY(-3px); opacity: 1; }
}

@media (hover: none) and (pointer: coarse) {
  .hero-scroll-mouse { display: none; }
  .hero-scroll-touch { display: block; }
}

@media (max-height: 500px) {
  .hero-intro-title { top: 4svh; font-size: clamp(20px, 4svh, 26px); }
  .hero-scroll-cue { bottom: max(3svh, env(safe-area-inset-bottom)); gap: 6px; }
  .hero-scroll-gesture { height: 34px; }
  .hero-scroll-cue p { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-gesture * { animation: none; }
}

.asset-mask {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
