:root {
  --gold: #d5a55a;
  --bg: #0f1411;
  --panel: #161d19;
}

.cinema {
  height: 580vh;
  position: relative;
  background: #101612;
}

.cinema-stage {
  height: 100svh;
  position: sticky;
  top: 0;
  overflow: hidden;
  min-height: 620px;
}

#orchard {
  position: absolute;
  inset: 0;
  touch-action: pan-y;
  cursor: grab;
}

#orchard canvas {
  width: 100%;
  height: 100%;
}

.cinema-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 15, 12, 0.72) 0%, rgba(10, 15, 12, 0.28) 48%, transparent 78%),
    linear-gradient(0deg, rgba(11, 16, 13, 0.88) 0%, transparent 24%, transparent 76%, rgba(10, 14, 11, 0.55) 100%);
}

.cinema-top {
  position: absolute;
  top: 122px;
  left: 6%;
  right: 6%;
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: rgba(245, 239, 227, 0.82);
}

.chapter-copy {
  position: absolute;
  top: 31%;
  left: 6%;
  max-width: 680px;
  pointer-events: none;
}

.chapter-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 6.2vw, 88px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 14px 0 10px;
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.65);
}

.chapter-copy > p:nth-of-type(2) {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 600;
  color: #e6ba79;
  letter-spacing: -0.01em;
}

.chapter-copy > p:nth-of-type(3) {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(245, 239, 227, 0.9);
  margin-top: 16px;
  max-width: 440px;
}

.chapter-copy a {
  pointer-events: auto;
}

.cinema-bottom {
  position: absolute;
  bottom: 36px;
  left: 6%;
  right: 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cinema-bottom button {
  font: 700 10.5px var(--font-sans);
  letter-spacing: 1.1px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(213, 165, 90, 0.38);
  background: rgba(15, 21, 17, 0.72);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.cinema-bottom button:hover {
  border-color: var(--gold);
  background: rgba(213, 165, 90, 0.18);
}

.cinema-bottom .mono {
  font-size: 10.5px;
}

.chapter-track {
  position: absolute;
  right: 5%;
  top: 34%;
  display: grid;
  gap: 16px;
}

.chapter-track button {
  display: flex;
  gap: 12px;
  align-items: center;
  color: rgba(245, 239, 227, 0.45);
  text-align: left;
  position: relative;
  transition: color 0.25s ease;
}

.chapter-track span {
  font: 700 10.5px var(--font-sans);
}

.chapter-track b {
  font: 600 11px var(--font-sans);
  letter-spacing: 0.8px;
}

.chapter-track button[aria-current] {
  color: #f6dcb1;
}

.chapter-track button[aria-current]:before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--gold);
  position: absolute;
  left: -26px;
}

.journey-progress {
  position: absolute;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  width: 100%;
}

.journey-progress i {
  display: block;
  background: linear-gradient(90deg, var(--gold), #e8751a);
  height: 100%;
  width: 0;
}

.scene-disclosure {
  position: absolute;
  bottom: 14px;
  left: 6%;
  font-size: 10px;
  color: rgba(245, 239, 227, 0.55);
  letter-spacing: 0.3px;
}

.product-photo {
  margin: 0 0 32px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #141a16;
}

.product-photo img {
  display: block;
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.product-photo figcaption {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.8px;
  background: rgba(16, 22, 18, 0.95);
  border-top: 1px solid var(--line);
}

.product-tabs {
  margin-bottom: 24px;
}

.collection {
  position: relative;
  background: var(--bg);
}

.source-link {
  font-size: 12px;
  margin-top: 12px;
}

.cinema-stage[data-scene='3'] .chapter-copy {
  top: 25%;
  max-width: 520px;
}

.cinema-stage[data-scene='3'] h1 {
  font-size: clamp(38px, 4.8vw, 64px);
}

.cinema-stage[data-scene='2'] .chapter-copy,
.cinema-stage[data-scene='4'] .chapter-copy {
  max-width: 520px;
}

.cinema-stage[data-scene='2'] h1,
.cinema-stage[data-scene='4'] h1 {
  font-size: clamp(40px, 5.2vw, 72px);
}

.cinema-stage[data-scene='1'] h1 {
  font-size: clamp(42px, 5.5vw, 78px);
}

.fallback-garden {
  display: grid;
  place-content: center;
  text-align: center;
  min-height: 100%;
  background: radial-gradient(ellipse at 60% 30%, #857040, #25301b 50%, #080c08);
  padding: 24px;
  color: #f2d7a5;
}

.fallback-garden p {
  margin-top: 16px;
  font-size: 14px;
}

.cinema-stage.webgl-unavailable .chapter-copy {
  display: none;
}

@media (max-width: 760px) {
  .cinema-stage {
    min-height: 580px;
  }
  .cinema {
    height: 500vh;
  }
  .cinema-top {
    top: 90px;
    font-size: 9px;
  }
  .cinema-top span:last-child {
    display: none;
  }
  .chapter-copy {
    left: 5%;
    top: 24%;
    max-width: 88%;
  }
  .chapter-copy h1 {
    font-size: 42px;
  }
  .chapter-copy > p:nth-of-type(2) {
    font-size: 20px;
  }
  .chapter-copy > p:nth-of-type(3) {
    font-size: 13px;
    max-width: 310px;
  }
  .chapter-track {
    top: auto;
    bottom: 118px;
    right: 5%;
    left: 5%;
    display: flex;
    justify-content: space-between;
    gap: 6px;
  }
  .chapter-track button {
    gap: 4px;
  }
  .chapter-track b {
    font-size: 9px;
  }
  .chapter-track button[aria-current]:before {
    display: none;
  }
  .cinema-bottom {
    bottom: 66px;
    gap: 12px;
  }
  .cinema-bottom .mono {
    font-size: 9px;
  }
  .cinema-bottom button {
    font-size: 9.5px;
    padding: 8px 10px;
  }
  .scene-disclosure {
    bottom: 44px;
    font-size: 8.5px;
  }
  .product-photo img {
    height: 250px;
  }
  .product-photo figcaption {
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cinema {
    height: 350vh;
  }
}
