@property --atm-base { syntax: "<color>"; inherits: true; initial-value: #0a0a0c; }
@property --atm-mid { syntax: "<color>"; inherits: true; initial-value: #1a1818; }
@property --atm-glow { syntax: "<color>"; inherits: true; initial-value: #8d7a64; }
@property --atm-text { syntax: "<color>"; inherits: true; initial-value: #f2ece4; }
@property --atm-accent { syntax: "<color>"; inherits: true; initial-value: #9a8b78; }
@property --shade-far { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --shade-mid { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --key-op { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --fill-op { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --top-op { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --bounce-op { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --shade-near { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --rim-w { syntax: "<percentage>"; inherits: true; initial-value: 8%; }
@property --shadow-op { syntax: "<number>"; inherits: true; initial-value: 0.5; }
@property --spec-op { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --fall-op { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --shift { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --wave-y { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --depth { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --tilt { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --scale { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --bright { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --sat { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --alpha { syntax: "<number>"; inherits: true; initial-value: 1; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--atm-text);
  background: var(--atm-base);
  font-family: Georgia, "Times New Roman", serif;
  --atm-base: #0a0a0c;
  --atm-mid: #1a1818;
  --atm-glow: #8d7a64;
  --atm-text: #f2ece4;
  --atm-accent: #9a8b78;
  --float-y: 9px;
  --float-r: 1.1deg;
  --center-i: 3;
  /* colour follows the fractional mix instantly (a 0.7s transition would lag the 1:1 scroll) */
}
main {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

/* ---------- atmosphere ---------- */
.atm {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* Two-layer atmosphere: swap by opacity, no live color interpolation of huge blurs */
.atm-layer,
.spot-sky-layer,
.spot-pool-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}
.atm-layer.is-on,
.spot-sky-layer.is-on,
.spot-pool-layer.is-on {
  opacity: 1;
}
/* scene / vignette opacity is written by JS from the fractional position (no CSS fade:
   a 0.7s transition would lag the 1:1 scroll). */
.spot-pool-layer { overflow: visible; }

.atm-base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 42%, var(--L-mid, var(--atm-mid)) 0%, transparent 70%),
    linear-gradient(180deg, var(--L-base, var(--atm-base)) 0%, var(--L-mid, var(--atm-mid)) 46%, var(--L-base, var(--atm-base)) 100%);
}
.atm-glow {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(96vw, 1100px);
  height: min(96vw, 1100px);
  transform: translate(-50%, -54%);
  background: radial-gradient(circle at 50% 50%, var(--L-glow, var(--atm-glow)) 0%, transparent 72%);
  opacity: .22;
}
.atm-floor {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 14%;
  height: 22%;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--L-glow, var(--atm-glow)) 30%, transparent), transparent 78%);
  opacity: .45;
}
.atm-noise {
  position: absolute;
  inset: 0;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("textures/grain.webp");
  background-size: 180px 180px;
}

/* Same grain over bottles and UI, so cutouts don't sit in a cleaner layer than the backdrop. */
main.film-grain::after,
main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: .5;
  background-image: url("textures/grain-alpha.png");
  background-size: 180px 180px;
}

header, footer {
  position: relative;
  z-index: 2;
  padding: 18px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
header { border-bottom: 1px solid color-mix(in srgb, var(--atm-text) 12%, transparent); }
h1 {
  font: normal clamp(20px, 3vw, 34px) Georgia, serif;
  margin: 0;
  letter-spacing: .02em;
}
header small { letter-spacing: .12em; font-size: 12px; opacity: .7; }

/* ---------- carousel ---------- */
.showcase {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Natural studio top light + floor pool (no drawn fixtures) ===== */
.spot-back {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
  transition: opacity .65s ease;
}
.spot-sky {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(130vw, 1500px);
  height: 72%;
  transform: translate(-50%, -8%);
  background:
    radial-gradient(ellipse 86% 92% at 50% 0%,
      color-mix(in srgb, var(--L-glow, var(--atm-glow)) 24%, transparent) 0%,
      color-mix(in srgb, var(--L-glow, var(--atm-glow)) 9%, transparent) 36%,
      transparent 78%),
    radial-gradient(ellipse 48% 60% at 50% 0%,
      color-mix(in srgb, #fff 10%, var(--L-glow, var(--atm-glow))) 0%,
      transparent 70%);
  opacity: .5;
  mix-blend-mode: screen;
}
.spot-floor {
  position: absolute;
  left: 50%;
  bottom: 2.2%;
  width: min(42vw, 460px);
  height: min(9vw, 96px);
  transform: translateX(-50%);
  z-index: 1;
}
.spot-pool {
  position: absolute;
  inset: -30% -18% -40% -18%;
  background: radial-gradient(ellipse at 50% 50%,
    color-mix(in srgb, var(--L-glow, var(--atm-glow)) 32%, transparent) 0%,
    color-mix(in srgb, var(--L-glow, var(--atm-glow)) 12%, transparent) 42%,
    transparent 80%);
  mix-blend-mode: screen;
  opacity: .55;
}
.spot-reflection {
  position: absolute;
  left: 22%;
  right: 22%;
  top: -40%;
  height: 150%;
  width: auto;
  max-width: 56%;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  object-position: bottom;
  transform: scaleY(-.32) scaleX(.88);
  transform-origin: 50% 80%;
  opacity: .16;
  filter: blur(3px) saturate(.7) brightness(.85);
  -webkit-mask-image: radial-gradient(ellipse at 50% 72%, #000 8%, transparent 68%);
  mask-image: radial-gradient(ellipse at 50% 72%, #000 8%, transparent 68%);
  pointer-events: none;
  transition: opacity .7s ease;
}
.spot-contact {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 32%;
  height: 36%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, #000000d0, transparent 78%);
  transform: translateX(-50%);
  animation: contact-float 7.6s ease-in-out infinite;
  animation-delay: calc(var(--center-i, 3) * -1.7s);
  pointer-events: none;
}
@keyframes contact-float {
  0%, 100% { transform: translateX(-50%) scale(1.08, 1); opacity: .8; }
  50% { transform: translateX(-50%) scale(.66, .72); opacity: .28; }
}

.rail {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  overflow: visible;
  padding: 2vh 0 0;
  touch-action: none;
  user-select: none;
  perspective: 1200px;
  perspective-origin: 50% 58%;
  transform-style: preserve-3d;
}
.product {
  flex: 0 0 auto;
  width: min(22vw, 280px);
  height: 100%;
  position: absolute;
  left: 50%;
  top: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transform-origin: 50% 80%;
  transform-style: preserve-3d;
  transform:
    translateX(calc(-50% + var(--shift, 0px)))
    translateY(var(--wave-y, 0px))
    translateZ(var(--depth, 0px))
    rotate(var(--tilt, 0deg))
    scale(var(--scale, .72));
  z-index: var(--z, 1);
  opacity: var(--alpha, 1);
  transition: opacity .45s ease;
  will-change: transform;
  contain: layout style;
}
body.lights-ready .product {
  transition:
    --shift .45s cubic-bezier(.16, 1, .3, 1),
    --wave-y .45s cubic-bezier(.16, 1, .3, 1),
    --depth .45s cubic-bezier(.16, 1, .3, 1),
    --tilt .45s cubic-bezier(.16, 1, .3, 1),
    --scale .45s cubic-bezier(.16, 1, .3, 1),
    --bright .45s cubic-bezier(.16, 1, .3, 1),
    --sat .45s cubic-bezier(.16, 1, .3, 1),
    --alpha .45s ease,
    opacity .45s ease,
    --shade-far .45s ease,
    --shade-mid .45s ease,
    --shade-near .45s ease,
    --key-op .45s ease,
    --fill-op .45s ease,
    --top-op .45s ease,
    --bounce-op .45s ease,
    --rim-w .45s ease,
    --shadow-op .45s ease,
    --spec-op .45s ease,
    --fall-op .45s ease;
}
body.lights-ready.is-gliding .product,
body.lights-ready.is-gliding .product-photo,
body.lights-ready.is-gliding .lit-shade,
body.lights-ready.is-gliding .lit-fill,
body.lights-ready.is-gliding .lit-key,
body.lights-ready.is-gliding .lit-top,
body.lights-ready.is-gliding .lit-bounce,
body.lights-ready.is-gliding .lit-fall,
body.lights-ready.is-gliding .lit-spec,
body.lights-ready.is-gliding .product-reflect,
body.lights-ready.is-gliding .product-shadow {
  transition: none !important;
}
body.is-gliding .product:hover .product-lift { transform: none; }

.product:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--atm-accent) 70%, white);
  outline-offset: 6px;
}
.product-stage {
  position: relative;
  width: 100%;
  height: min(58svh, 530px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 38px;
}
.product-glow {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 70%;
  height: 55%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 70%, var(--atm-accent), transparent 76%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
}
.product.is-active .product-glow { opacity: .12; }
.product-lift {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform .45s ease;
}
@media (hover: hover) and (pointer: fine) {
  .product:hover .product-lift { transform: translateY(-4px); }
}

/* Photo + directional lighting overlays, masked to the cutout alpha */
.product-lit {
  position: relative;
  display: inline-flex;
  height: 100%;
  transform-origin: 50% 80%;
  animation: bottle-float 7.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -1.7s);
  isolation: isolate;
}
/* drop-shadow(0 18px 16px .46) baked into a static image (a live blur filter on seven animated
   bottles was re-run by the compositor every frame) */
.bottle-shadow {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: calc(100% * 1600 / 1400);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.product-photo {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  /* brightness/sat moved to .lit-dim / .lit-sat overlays so scroll doesn't re-filter the photo */
}


/* Cheap stand-ins for filter:brightness / saturate (compositor opacity, no re-raster) */
.lit-dim,
.lit-sat {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  mask-mode: alpha;
}
.lit-dim {
  background: #000;
  mix-blend-mode: multiply;
  opacity: calc(1 - var(--bright, 1));
}
.lit-sat {
  background: #7a7a7a;
  mix-blend-mode: saturation;
  opacity: calc((1 - var(--sat, 1)) * 0.9);
}
.product.is-active .lit-dim,
.product.is-active .lit-sat { opacity: 0; }

.lit-shade,
.lit-fill,
.lit-key,
.lit-top,
.lit-bounce,
.lit-fall,
.lit-spec {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  mask-mode: alpha;
  -webkit-mask-source-type: alpha;
}
.lit-shade,
.lit-fill,
.lit-key,
.lit-top,
.lit-bounce,
/* mask-image of the .lit-* overlays is injected per bottle by homepage.js as static rules
   (url(data:…)). Do NOT go back to var(--cutout): a 270 KB data URI inside a custom property is
   re-substituted by every style recalc (≈100 ms per frame while scrolling). */
.lit-spec {
  background: linear-gradient(180deg,
    color-mix(in srgb, #fff 70%, var(--atm-glow)) 0%,
    color-mix(in srgb, #fff 40%, var(--atm-glow)) 32%,
    color-mix(in srgb, var(--atm-glow) 30%, transparent) 78%);
  mix-blend-mode: soft-light;
  opacity: var(--spec-op, 0);
}
.lit-fall {
  background: linear-gradient(180deg,
    rgb(0 0 0 / 0) 0%,
    rgb(0 0 0 / 0) calc(var(--fg-y0, 6%) + 14%),
    rgb(0 0 0 / calc(var(--fall-op, 0) * .4)) 52%,
    rgb(0 0 0 / var(--fall-op, 0)) var(--fg-y1, 90%),
    rgb(0 0 0 / var(--fall-op, 0)) 100%);
  mix-blend-mode: multiply;
}
body.lights-ready .lit-shade,
body.lights-ready .lit-fill,
body.lights-ready .lit-key,
body.lights-ready .lit-top,
body.lights-ready .lit-bounce,
body.lights-ready .lit-fall,
body.lights-ready .lit-spec {
  transition: opacity .45s ease, background .45s ease;
}
.lit-shade {
  /* default / from-right: far side is the left of the bottle */
  background: linear-gradient(90deg,
    rgb(0 0 0 / var(--shade-far, 0)) 0%,
    rgb(0 0 0 / var(--shade-far, 0)) var(--fg-x0, 18%),
    rgb(0 0 0 / var(--shade-mid, 0)) var(--fg-xm, 50%),
    rgb(0 0 0 / var(--shade-near, 0)) calc(var(--fg-x1, 82%) - var(--rim-w, 6%)),
    rgb(0 0 0 / 0) var(--fg-x1, 82%),
    rgb(0 0 0 / 0) 100%);
  mix-blend-mode: multiply;
}
.product.from-left .lit-shade {
  background: linear-gradient(90deg,
    rgb(0 0 0 / 0) 0%,
    rgb(0 0 0 / 0) var(--fg-x0, 18%),
    rgb(0 0 0 / var(--shade-near, 0)) calc(var(--fg-x0, 18%) + var(--rim-w, 6%)),
    rgb(0 0 0 / var(--shade-mid, 0)) var(--fg-xm, 50%),
    rgb(0 0 0 / var(--shade-far, 0)) var(--fg-x1, 82%),
    rgb(0 0 0 / var(--shade-far, 0)) 100%);
}
.lit-fill {
  background: linear-gradient(90deg,
    transparent 0%,
    transparent var(--fg-xm, 50%),
    color-mix(in srgb, var(--own-glow, var(--atm-glow)) 45%, transparent) var(--fg-x1, 82%),
    transparent 100%);
  mix-blend-mode: screen;
  opacity: var(--fill-op, 0);
}
.product.from-left .lit-fill {
  background: linear-gradient(90deg,
    transparent 0%,
    color-mix(in srgb, var(--own-glow, var(--atm-glow)) 45%, transparent) var(--fg-x0, 18%),
    transparent var(--fg-xm, 50%),
    transparent 100%);
}
.lit-key {
  background: linear-gradient(90deg,
    transparent 0%,
    transparent calc(var(--fg-x1, 82%) - var(--rim-w, 6%)),
    color-mix(in srgb, var(--own-glow, var(--atm-glow)) 50%, #fff) calc(var(--fg-x1, 82%) - var(--rim-w, 6%) * .45),
    color-mix(in srgb, #fff 92%, var(--own-glow, var(--atm-glow))) calc(var(--fg-x1, 82%) - var(--rim-w, 6%) * .16),
    color-mix(in srgb, var(--own-glow, var(--atm-glow)) 35%, #fff) var(--fg-x1, 82%),
    transparent calc(var(--fg-x1, 82%) + .6%));
  mix-blend-mode: screen;
  opacity: var(--key-op, 0);
}
.product.from-left .lit-key {
  background: linear-gradient(90deg,
    transparent calc(var(--fg-x0, 18%) - .6%),
    color-mix(in srgb, var(--own-glow, var(--atm-glow)) 35%, #fff) var(--fg-x0, 18%),
    color-mix(in srgb, #fff 92%, var(--own-glow, var(--atm-glow))) calc(var(--fg-x0, 18%) + var(--rim-w, 6%) * .16),
    color-mix(in srgb, var(--own-glow, var(--atm-glow)) 50%, #fff) calc(var(--fg-x0, 18%) + var(--rim-w, 6%) * .45),
    transparent calc(var(--fg-x0, 18%) + var(--rim-w, 6%)),
    transparent 100%);
}
.lit-top {
  background: linear-gradient(180deg,
    transparent 0%,
    transparent var(--fg-y0, 6%),
    color-mix(in srgb, #fff 35%, var(--atm-glow)) calc(var(--fg-y0, 6%) + 3%),
    transparent calc(var(--fg-y0, 6%) + 26%));
  mix-blend-mode: soft-light;
  opacity: var(--top-op, 0);
}
.lit-bounce {
  background: linear-gradient(180deg,
    transparent 0%,
    transparent calc(var(--fg-y1, 90%) - 28%),
    color-mix(in srgb, var(--atm-glow) 20%, transparent) calc(var(--fg-y1, 90%) - 12%),
    color-mix(in srgb, var(--atm-glow) 45%, #fff) var(--fg-y1, 90%),
    transparent 100%);
  mix-blend-mode: screen;
  opacity: var(--bounce-op, 0);
}

/* Center bottle: no body veil. Specular follows the photo's own highlights; lower body softly falls off. */
.product.is-active .lit-shade,
.product.is-active .lit-fill,
.product.is-active .lit-key,
.product.is-active .lit-top,
.product.is-active .lit-bounce {
  opacity: 0;
  background: none;
}

.product-reflect {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 100%;
  height: 22%;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: calc(0.35 * var(--shadow-op, .5) / .5 * 0.5 + 0.08);
  transition: opacity .45s ease;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.product-reflect img {
  display: block;
  height: calc(100% * 100 / 22);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  object-position: bottom;
  transform: scaleY(-1);
  filter: blur(1.2px);
  opacity: .7;
}
.product-shadow {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 52%;
  height: 9%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 50%, #000000d0 0%, #00000080 38%, transparent 72%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
  opacity: var(--shadow-op, .5);
  transition: opacity .45s ease;
}
.product.is-active .product-shadow { opacity: .2; }
.product strong { display: none; }

@keyframes bottle-float {
  0%, 100% { transform: translateY(var(--float-y)) rotate(calc(-1 * var(--float-r))); }
  50% { transform: translateY(calc(-1 * var(--float-y))) rotate(var(--float-r)); }
}



/* ---------- caption ---------- */
.stage-caption {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 5vw 10px;
  min-height: 7.2rem;
}
.stage-titles, .stage-volumes { position: relative; }
.stage-name {
  margin: 0;
  font: 500 clamp(22px, 3vw, 42px)/1.15 Georgia, serif;
  letter-spacing: .08em;
  color: var(--N-text, var(--atm-text));
  text-shadow: 0 2px 18px #0008;
}
.stage-name:after {
  content: "";
  display: block;
  margin: 12px auto 0;
  width: 84px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--N-accent, var(--atm-accent)), transparent);
  box-shadow: 0 4px 16px var(--N-glow, var(--atm-glow));
}
.stage-name[data-title="1"],
.stage-volume[data-title="1"] {
  position: absolute;
  left: 0; right: 0; top: 0;
  margin: 0;
}
.stage-volume {
  margin: 10px 0 0;
  font: 13px/1.4 system-ui, sans-serif;
  letter-spacing: .14em;
  opacity: .75;
  min-height: 1.2em;
}
.stage-volumes { margin-top: 10px; min-height: 1.2em; }
.stage-volumes .stage-volume { margin: 0; }
.stage-progress {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 16px;
  padding: 0;
  border: 0;
}
.stage-progress button {
  width: 22px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: color-mix(in srgb, var(--atm-text) 28%, transparent);
  cursor: pointer;
  transition: width .4s ease, background .4s ease;
}
.stage-progress button[aria-current="true"] {
  width: 36px;
  background: var(--atm-accent);
}

footer {
  font-family: system-ui, sans-serif;
}
footer p { margin: 0; font-size: 13px; opacity: .7; }
footer .nav-arrows { display: flex; gap: 10px; }
footer .nav-arrows button {
  font-size: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--atm-text) 28%, transparent);
  background: color-mix(in srgb, var(--atm-mid) 70%, #000);
  color: var(--atm-text);
  cursor: pointer;
}
footer .nav-arrows button:disabled { opacity: .35; cursor: default; }
footer .nav-arrows button:not(:disabled):hover {
  border-color: var(--atm-accent);
  color: var(--atm-accent);
}

/* story entrance: others slide out */
.in-story main { pointer-events: none; }
.in-story main header,
.in-story main footer,
.in-story .stage-caption,
.in-story .spot-back {
  opacity: 0;
  transition: opacity .65s ease;
}
.in-story .rail .product:not(.is-story-item) {
  transition: transform .75s cubic-bezier(.4, 0, .75, .45), opacity .7s ease;
  transform: translateX(calc(-50% + var(--exit, 0px))) scale(var(--scale, .72)) !important;
  opacity: 0 !important;
}
.product.is-flying .product-photo,
.product.is-flying .product-lit,
.product.is-flying .product-reflect,
.product.is-flying .product-shadow,
.product.is-flying .product-glow { visibility: hidden; }

@media (max-width: 700px) {
  body {
    --float-y: 6px;
    --float-r: 0.8deg;
  }
  .product { width: min(46vw, 220px); }
  .product-stage { height: min(46svh, 400px); padding-bottom: 22px; }
  .stage-caption { min-height: 6.4rem; padding-bottom: 6px; }
  .stage-name { font-size: clamp(20px, 6vw, 28px); }
  footer p { display: none; }
  header { padding: 14px 5vw; }
  .spot-floor {
    width: min(70vw, 280px);
    height: min(14vw, 64px);
    bottom: 2%;
  }
}
@media (prefers-reduced-motion: reduce) {
  body {
    --float-y: 0px;
    --float-r: 0deg;
  }
  body, .product, .product-glow, .product-lit, .product-lift, .product-reflect, .product-shadow,
  .atm-base, .atm-glow, .atm-floor, .stage-name,
  .spot-sky, .spot-pool, .spot-reflection, .lit-shade, .lit-fill, .lit-key, .lit-top, .lit-bounce, .lit-fall, .lit-spec {
    transition: none !important;
  }
  .product-lit, .spot-contact { animation: none; }
}

/* During continuous glide, drop the most expensive per-frame filters/overlays.
   They return as soon as motion settles, so the at-rest look is unchanged. */
/* 2026-11-22: nothing is switched off while moving any more (those toggles caused a repaint hitch
   at the start and end of every gesture); the expensive things were made static instead. */


/* ===================== 景深展台（2026-11-21 晚） =====================
   背景 = 各款开盖视频首帧去掉瓶子后的墙面 + 台面 + 侧光（浅景深）。
   两层 <img> 只做 opacity 交叉；整体只做 transform 平移。旧的大面积径向光、地面光池、倒影全部关掉。 */
.scene-rig {
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  transform-origin: 50% 0;
  will-change: transform;
}
.scene-rig.is-travelling { transition: transform .8s cubic-bezier(0.22, 1, 0.36, 1); }
.scene-rig .atm-layer { position: absolute; inset: 0; }
.atm-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  pointer-events: none;
}
/* soft edge darkening so header/footer text keeps contrast on bright walls; static */
.scene-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--V-base, var(--atm-base)) 38%, transparent) 0%, transparent 16%, transparent 80%, color-mix(in srgb, var(--V-base, var(--atm-base)) 30%, transparent) 100%);
}
.atm-base, .atm-glow, .atm-floor,
.spot-sky-layer, .spot-pool-layer, .spot-reflection { display: none !important; }
.spot-contact { opacity: .45; }
.product-reflect { display: none; }
.product.is-active .product-glow { opacity: 0; }
.stage-name { text-shadow: 0 1px 14px color-mix(in srgb, var(--atm-base) 75%, transparent); }
header { border-bottom-color: color-mix(in srgb, var(--atm-text) 16%, transparent); }
footer .nav-arrows button {
  background: color-mix(in srgb, var(--atm-mid) 70%, transparent);
  border-color: color-mix(in srgb, var(--atm-text) 34%, transparent);
}
/* the story opens over the same scene; its canvas fades in on top */
.scene-vignette { opacity: 0; will-change: opacity; pointer-events: none; }
.in-story .scene-vignette { opacity: 0 !important; transition: opacity .65s ease; }
@media (prefers-reduced-motion: reduce) {
  .scene-rig.is-travelling { transition: none; }
}

/* portrait: wall extension above the scene (stretched top rows of the same frame) */
.atm-scene-top {
  position: absolute;
  left: 0; bottom: 100%;
  width: 100%; height: 120vh;
  display: block;
  user-select: none;
  pointer-events: none;
}
.atm { background: var(--atm-base, #111); }

/* ===== 2026-11-22 低延迟 ===== */
.fps-hud {
  position: fixed; top: 8px; right: 8px; z-index: 99999;
  font: 12px/1.35 ui-monospace, Consolas, monospace;
  color: #8dffa0; background: rgba(0,0,0,.72);
  padding: 6px 9px; border-radius: 6px; white-space: pre;
  pointer-events: none;
}
.scene-vigs { position: absolute; inset: 0; pointer-events: none; }
.atm-instant .atm-layer, .atm-instant .scene-vignette { transition: none !important; }

/* baked lighting states (see homepage.js). The raw photo stays in the DOM for layout and for the story flyer, but is never painted. */
.product-photo { opacity: 0; }
.bake {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  display: block; z-index: 2; opacity: 0;
  pointer-events: none; user-select: none;
}
.rail.warming .bake { opacity: .002 !important; }

/* ===== 2026-11-22 顶光 =====
   The top-centre light is painted into the (already existing) vignette layers: static gradients, no extra
   layers, no blend modes. warm cone from the top centre + darker sides + a soft light spot on the floor. */
.scene-vigs { --floor-y: 72vh; }
.scene-vignette {
  background:
    radial-gradient(ellipse 44vw 15vh at 50% var(--floor-y), rgba(255,232,190,.30) 0%, rgba(255,232,190,.13) 48%, rgba(255,232,190,0) 100%),
    radial-gradient(ellipse 60vw 80vh at 50% 0%, rgba(255,236,200,.20) 0%, rgba(255,236,200,.08) 48%, rgba(255,236,200,0) 100%),
    linear-gradient(90deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.14) 22%, rgba(0,0,0,0) 38%, rgba(0,0,0,0) 62%, rgba(0,0,0,.14) 78%, rgba(0,0,0,.34) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--V-base, var(--atm-base)) 38%, transparent) 0%, transparent 16%, transparent 80%, color-mix(in srgb, var(--V-base, var(--atm-base)) 30%, transparent) 100%);
}
@media (max-aspect-ratio: 1/1) {
  .scene-vignette {
    background:
      radial-gradient(ellipse 70vw 13vh at 50% var(--floor-y), rgba(255,232,190,.30) 0%, rgba(255,232,190,.13) 48%, rgba(255,232,190,0) 100%),
      radial-gradient(ellipse 110vw 70vh at 50% 0%, rgba(255,236,200,.20) 0%, rgba(255,236,200,.08) 48%, rgba(255,236,200,0) 100%),
      linear-gradient(90deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.10) 16%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.10) 84%, rgba(0,0,0,.30) 100%),
      linear-gradient(180deg, color-mix(in srgb, var(--V-base, var(--atm-base)) 38%, transparent) 0%, transparent 16%, transparent 80%, color-mix(in srgb, var(--V-base, var(--atm-base)) 30%, transparent) 100%);
  }
}

/* ===================== 2026-11-22 暗场托盘 =====================
   One fixed neutral dark stage for all seven products: near-black top, a wide grey-white glow
   behind the centre (lit wall / air), a darker floor below the pedestal, darker sides.
   Static (painted once, positions only change on resize). The per-product video scenes are hidden
   on the homepage and only fade in (≈380 ms) when a story opens. */
body {
  --atm-base: #0b0b0d; --atm-mid: #1c1b1d; --atm-glow: #d8cdb8; --atm-text: #ece8e2; --atm-accent: #c8a868;
  --cx: 50vw; --hz: 74vh; --floor-y: 82vh; --glow-y: 56vh;
  background: #0b0b0d;
}
.dark-stage {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 30vw 4.5vh at var(--cx) var(--floor-y), rgba(214,208,198,.20) 0%, rgba(214,208,198,.07) 55%, rgba(214,208,198,0) 100%),
    radial-gradient(ellipse 46vw 34vh at var(--cx) var(--glow-y), rgba(178,173,166,.62) 0%, rgba(140,136,131,.36) 38%, rgba(90,88,86,.12) 70%, rgba(60,58,57,0) 100%),
    linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.22) 20%, rgba(0,0,0,0) 36%, rgba(0,0,0,0) 64%, rgba(0,0,0,.22) 80%, rgba(0,0,0,.62) 100%),
    linear-gradient(180deg, #0a0a0c 0%, #111012 16%, #2a2928 calc(var(--hz) - 32vh), #6d6a67 calc(var(--hz) - 9vh), #8c8986 calc(var(--hz) - 1px),
      #3a3938 calc(var(--hz) + 1px), #262526 calc(var(--hz) + 7vh), #18171a calc(var(--hz) + 18vh), #0c0c0e 100%);
}
@media (max-width: 700px) {
  .dark-stage {
    background:
      radial-gradient(ellipse 52vw 3.4vh at var(--cx) var(--floor-y), rgba(214,208,198,.20) 0%, rgba(214,208,198,.07) 55%, rgba(214,208,198,0) 100%),
      radial-gradient(ellipse 80vw 30vh at var(--cx) var(--glow-y), rgba(178,173,166,.62) 0%, rgba(140,136,131,.36) 38%, rgba(90,88,86,.12) 70%, rgba(60,58,57,0) 100%),
      linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.16) 18%, rgba(0,0,0,0) 32%, rgba(0,0,0,0) 68%, rgba(0,0,0,.16) 82%, rgba(0,0,0,.55) 100%),
      linear-gradient(180deg, #0a0a0c 0%, #111012 16%, #2a2928 calc(var(--hz) - 28vh), #6d6a67 calc(var(--hz) - 8vh), #8c8986 calc(var(--hz) - 1px),
        #3a3938 calc(var(--hz) + 1px), #262526 calc(var(--hz) + 6vh), #18171a calc(var(--hz) + 14vh), #0c0c0e 100%);
  }
}
.scene-vigs, .scene-vignette { display: none !important; }
/* video scenes: hidden at home, faded in when a story opens (dark stage -> story background) */
.scene-rig,
.scene-rig.is-travelling {
  opacity: 0; visibility: hidden;
  transition: transform .8s cubic-bezier(0.22, 1, 0.36, 1), opacity .38s ease, visibility 0s linear .38s;
}
.in-story .scene-rig,
.in-story .scene-rig.is-travelling {
  opacity: 1; visibility: visible;
  transition: transform .8s cubic-bezier(0.22, 1, 0.36, 1), opacity .38s ease, visibility 0s;
}
/* fixtures: upper tray with a light ring, faint light cone, pedestal. Static images. */
.stage-fixtures { position: absolute; inset: 0; pointer-events: none; transition: opacity .38s ease; }
.in-story .stage-fixtures { opacity: 0; }
.stage-fixtures img { position: absolute; display: block; user-select: none; pointer-events: none; }
.tray-top { left: var(--cx); top: var(--tray-top); width: var(--tray-w); transform: translateX(-50%); }
.tray-base { left: var(--cx); top: var(--base-top); width: var(--base-w); transform: translateX(-50%); }
.light-cone { left: var(--cx); top: var(--cone-top); width: var(--cone-w); height: var(--cone-h); transform: translateX(-50%); }
.tray-brand {
  position: absolute; left: var(--cx); top: var(--brand-y); transform: translate(-50%, -100%);
  font: 600 11px/1 Georgia, serif; letter-spacing: .5em; padding-left: .5em; color: rgba(236,232,226,.55);
}
/* product name on the pedestal's front face */
.stage-caption { min-height: 4.2rem; position: static; }
.stage-titles {
  position: absolute; left: var(--cx); top: var(--label-y); width: 80vw; transform: translate(-50%, -50%);
  z-index: 3; pointer-events: none;
}
.stage-name, .stage-name[data-title="1"] {
  font: 700 clamp(18px, 1.9vw, 30px)/1.1 Georgia, serif; letter-spacing: .16em;
  color: #f4f1ec; text-shadow: 0 1px 10px rgba(0,0,0,.65);
}
.stage-name:after { width: 54px; margin-top: 8px; background: linear-gradient(90deg, transparent, var(--atm-accent), transparent); box-shadow: none; }
.stage-volumes { display: none; }
.stage-caption .stage-progress { position: absolute; left: var(--cx); top: var(--dots-y); transform: translateX(-50%); margin: 0; z-index: 3; }
.stage-progress button { background: rgba(236,232,226,.22); }
.stage-progress button[aria-current="true"] { background: var(--atm-accent); }
header { border-bottom-color: rgba(236,232,226,.10); }
.stage-name { text-shadow: 0 1px 10px rgba(0,0,0,.65); }
footer .nav-arrows button { background: rgba(28,27,29,.75); border-color: rgba(236,232,226,.28); color: #ece8e2; }
/* bottles float between the trays: no floor contact shadows */
.spot-contact, .product-shadow, .product-glow { display: none !important; }
@media (max-width: 700px) {
  .stage-name, .stage-name[data-title="1"] { font-size: clamp(15px, 4.4vw, 20px); letter-spacing: .12em; }
  .tray-brand { font-size: 9px; }
  .stage-caption { min-height: 3.6rem; }
}
/* the dots sit just under the pedestal, partly over the footer row: footer only catches its buttons */
footer { pointer-events: none; }
footer .nav-arrows, footer button { pointer-events: auto; }
.stage-caption .stage-progress { z-index: 4; }

/* ===================== 2026-11-22 真实空间 =====================
   Photographic dark studio backdrop (polished black floor receding into a defocused room, one
   soft light from above the centre). Placed by JS so its floor light pool sits under the plinth.
   One static element; only re-laid out on resize. */
.dark-stage {
  background:
    linear-gradient(180deg, rgba(8,8,10,.55) 0%, rgba(8,8,10,0) 22%),
    linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 78%, rgba(0,0,0,.45) 100%),
    url("stage/bg-desktop.webp") var(--bg-x, 0) var(--bg-y, 0) / var(--bg-w, 100vw) var(--bg-h, 100vh) no-repeat,
    #0b0b0d;
}
@media (max-width: 700px) {
  .dark-stage {
    background:
      linear-gradient(180deg, rgba(8,8,10,.5) 0%, rgba(8,8,10,0) 20%),
      linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 82%, rgba(0,0,0,.35) 100%),
      url("stage/bg-mobile.webp") var(--bg-x, 0) var(--bg-y, 0) / var(--bg-w, 100vw) var(--bg-h, 100vh) no-repeat,
      #0b0b0d;
  }
}
.tray-brand { display: none; }
.tray-glow {
  position: absolute; left: var(--cx); top: var(--glow-y); width: var(--glow-w); height: calc(var(--glow-w) * .42);
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255,236,206,.34) 0%, rgba(255,232,200,.12) 45%, rgba(255,232,200,0) 100%);
}
.light-cone { opacity: .85; }
.base-shadow {
  position: absolute; left: var(--cx); top: var(--floor-y); width: calc(var(--base-w) * 1.25); height: calc(var(--base-w) * .16);
  transform: translate(-50%, -55%); pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,0) 100%);
}
.base-refl {
  position: absolute; left: calc(var(--cx) - var(--refl-rx)); top: calc(var(--surf) - var(--refl-ry));
  width: calc(var(--refl-rx) * 2); height: calc(var(--refl-ry) * 2);
  border-radius: 50%; overflow: hidden; pointer-events: none;
}
.base-refl .refl {
  position: absolute; left: 50%; top: calc(var(--refl-top) - var(--surf) + var(--refl-ry));
  width: var(--refl-w); height: auto; opacity: 0; transform-origin: 50% 0;
  will-change: transform, opacity; user-select: none; pointer-events: none;
}
/* product name on the plinth's front face */
.stage-name, .stage-name[data-title="1"] { color: #f6f2ea; text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 14px rgba(0,0,0,.7); }

/* bottles are hit-tested on their own (rail plane no longer covers them in 3D) */
.rail { pointer-events: none; }
.product { pointer-events: none; }
.product-hit { position: absolute; top: 5.5%; bottom: 9.5%; display: block; pointer-events: auto; cursor: pointer; }

/* continuous scrub line */
.stage-caption .stage-progress { display: block; width: min(340px, 62vw); height: 30px; transform: translate(-50%, -50%); }
.scrub { position: relative; width: 100%; height: 30px; cursor: pointer; touch-action: none; outline: none; }
.scrub-track { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px; background: rgba(236,232,226,.28); }
.scrub-tick { position: absolute; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: rgba(236,232,226,.45); }
.scrub-thumb {
  position: absolute; left: -17px; top: 50%; width: 34px; height: 4px; margin-top: -2px; border-radius: 2px;
  background: linear-gradient(90deg, #a8864c, #e8cf94, #a8864c); box-shadow: 0 0 10px rgba(232,207,148,.45);
  will-change: transform;
}
.scrub-thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #e8cf94; box-shadow: 0 0 0 3px rgba(232,207,148,.18); }
.scrub.is-dragging .scrub-thumb::after, .scrub:hover .scrub-thumb::after { box-shadow: 0 0 0 6px rgba(232,207,148,.22); }
.scrub:focus-visible .scrub-track { box-shadow: 0 0 0 3px rgba(232,207,148,.35); }
@media (max-width: 700px) {
  .stage-caption .stage-progress { width: 56vw; height: 36px; }
  .scrub { height: 36px; }
  .scrub-thumb::after { width: 16px; height: 16px; margin: -8px 0 0 -8px; }
}


/* ===================== 2026-11-22 光束底座 =====================
   No top tray. One photographic scene (wall + floor + plinth + beam) placed by JS; a faint extra
   beam on top keeps the cone strongest on the centre bottle. */
.dark-stage {
  background:
    linear-gradient(180deg, rgba(8,8,10,.0) 0%, rgba(8,8,10,0) 100%),
    url("stage/scene-desktop.webp") var(--bg-x, 0) var(--bg-y, 0) / var(--bg-w, 100vw) var(--bg-h, 100vh) no-repeat,
    #0b0b0d;
}
@media (max-width: 700px) {
  .dark-stage {
    background:
      url("stage/scene-mobile.webp") var(--bg-x, 0) var(--bg-y, 0) / var(--bg-w, 100vw) var(--bg-h, 100vh) no-repeat,
      #0b0b0d;
  }
}
.light-cone { left: var(--cx); top: 0; width: var(--cone-w); height: var(--cone-h); transform: translateX(-50%); opacity: .34; }
.base-contact {
  position: absolute; left: var(--cx); top: var(--surf); width: var(--sh-w); height: var(--sh-h);
  transform: translate(-50%, -45%); pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0,0,0,.42) 0%, rgba(0,0,0,.2) 50%, rgba(0,0,0,0) 100%);
}
.base-refl { opacity: .5; -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 55%, transparent 100%); }
.stage-titles { top: var(--label-y); }
.stage-name, .stage-name[data-title="1"] { font-weight: 300; letter-spacing: .3em; padding-left: .3em; color: #f1ede6; }
.stage-name:after { display: none; }
/* bigger bottles, lifted so the plinth + name + line fit under them (the top tray is gone) */
.product-stage { height: min(62svh, 580px); padding-bottom: 38px; }
.rail { margin-top: 0; }
.showcase { transform: translateY(-5.5svh); }
.light-cone { opacity: .2; }
@media (max-width: 700px) {
  .product-stage { height: min(48svh, 420px); padding-bottom: 22px; }
  .showcase { transform: translateY(-3svh); }
}
.base-contact { width: calc(var(--sh-w) * .8); height: calc(var(--sh-h) * .8); background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0,0,0,.26) 0%, rgba(0,0,0,.1) 55%, rgba(0,0,0,0) 100%); }
.base-refl { opacity: .8; }

/* the scene photo is its own cached compositor layer (a CSS background was re-rastered, +1 frame of lag) */
.dark-stage { background: #0b0b0d !important; overflow: hidden; }
.scene-img {
  position: absolute; display: block; left: var(--bg-x, 0); top: var(--bg-y, 0);
  width: var(--bg-w, 100vw); height: var(--bg-h, 100vh); max-width: none;
  transform: translateZ(0); will-change: transform; user-select: none; pointer-events: none;
}


/* ===================== 2026-11-22 落座底座 =====================
   The centre bottle sits upright on the plinth; sides stay floating and tilted.
   --float-amt goes 1→0 as the bottle seats, so the bob and the hover-lift ease off. */
.product-lit {
  animation-name: bottle-float;
}
@keyframes bottle-float {
  0%, 100% { transform: translateY(calc(var(--float-y) * var(--float-amt, 1))) rotate(calc(-1 * var(--float-r) * var(--float-amt, 1))); }
  50% { transform: translateY(calc(-1 * var(--float-y) * var(--float-amt, 1))) rotate(calc(var(--float-r) * var(--float-amt, 1))); }
}
@media (hover: hover) and (pointer: fine) {
  .product:hover .product-lift { transform: translateY(calc(-4px * var(--float-amt, 1))); }
}
/* tighter contact shadow on the plinth top, only while a bottle is sitting */
.base-contact {
  width: calc(var(--sh-w) * 0.72);
  height: calc(var(--sh-h) * 0.55);
  top: var(--surf);
  transform: translate(-50%, -20%);
  opacity: var(--seat, 0);
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0,0,0,.55) 0%, rgba(0,0,0,.28) 42%, rgba(0,0,0,0) 100%);
}
.base-refl { opacity: .7; }

/* Suspended display: the lamp and its pool of light share the same stage coordinates. */
.dark-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #09090d 0, rgba(9,9,13,.98) calc(var(--ring-y, 100px) - 34px), transparent calc(var(--ring-y, 100px) + 48px)),
    radial-gradient(ellipse at 50% 62%, rgba(174,173,181,.18), transparent 73%);
  pointer-events: none;
}

.ring-light {
  position: absolute;
  left: var(--cx, 50%);
  top: var(--ring-y, 100px);
  width: var(--ring-w, 124px);
  height: calc(var(--ring-w, 124px) * .245);
  translate: -50% -60%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 68%, #18191d 0 47%, #818187 51%, #fbf4e8 54%, #b8b6b7 59%, #303038 65%, transparent 70%),
    linear-gradient(180deg, #19191e 3%, #3c3d43 56%, #959398 79%, #36363d 100%);
  box-shadow: 0 8px 16px -6px rgba(233,226,214,.64), 0 0 34px -5px rgba(230,221,202,.26);
}
.ring-light::before {
  content: "";
  position: absolute;
  inset: -31% 3% 42%;
  border-radius: 50%;
  background: linear-gradient(180deg, #2c2d35, #111116 66%, #777680);
  z-index: -1;
}
.ring-light::after {
  content: "";
  position: absolute;
  inset: 13% 7% 9%;
  border: 1px solid rgba(238,235,226,.38);
  border-bottom-color: #f7efe4;
  border-radius: 50%;
}

.light-cone {
  top: var(--ring-y, 100px);
  height: max(40px, calc(var(--surf, 70svh) - var(--ring-y, 100px)));
  opacity: .23;
}

.stage-spill {
  position: absolute;
  inset: 0;
  isolation: isolate;
}
.stage-spill i {
  position: absolute;
  left: var(--cx, 50%);
  top: var(--floor-y, 73svh);
  width: min(68vw, 700px);
  height: min(19svh, 168px);
  translate: -50% -23%;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 40%,
    color-mix(in srgb, var(--spill-color) 45%, transparent),
    color-mix(in srgb, var(--spill-color) 20%, transparent) 28%, transparent 70%);
}
.stage-spill i::after {
  content: "";
  position: absolute;
  left: 27%;
  right: 27%;
  top: 25%;
  height: 16%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--spill-color) 34%, transparent), transparent 72%);
}

.light-shadow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  mask: var(--cutout) center / 100% 100% no-repeat;
}
.light-shadow-left {
  background: linear-gradient(90deg, transparent 14%, #08080c35 19%, #08080cee 28%, #08080cc2 49%, transparent 81%);
  opacity: var(--shadow-left, 0);
}
.light-shadow-right {
  background: linear-gradient(270deg, transparent 14%, #08080c35 19%, #08080cee 28%, #08080cc2 49%, transparent 81%);
  opacity: var(--shadow-right, 0);
}

.base-contact {
  width: calc(var(--sh-w) * 1.02);
  height: calc(var(--sh-h) * .92);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(0,0,0,.50), rgba(0,0,0,.19) 46%, transparent 72%);
}
.base-refl { opacity: .53; }
.scrub-track { background: linear-gradient(90deg, #dbc29180, #acc4ec8c 50%, #dfa1b283); }
.scrub-thumb {
  background: linear-gradient(90deg, transparent, #f4ece0, transparent);
  box-shadow: 0 0 10px #e6d8c978;
}
.scrub-thumb::after { background: #efe7dd; box-shadow: 0 0 0 3px #efe7dd24; }

@media (max-width: 700px) {
  .stage-spill i { width: 95vw; }
}
.stage-spill i {
  mask-image: linear-gradient(180deg, transparent, #000 24%, #000 74%, transparent);
}
/* Each baked state has a fixed exposure. Scrolling only blends the states. */
.bake:is(:nth-of-type(2), :nth-of-type(3), :nth-of-type(11), :nth-of-type(12)) { filter: brightness(.53); }
.bake:is(:nth-of-type(4), :nth-of-type(10)) { filter: brightness(.74); }

@media (max-width: 700px) {
  .stage-caption .stage-progress { width: 52vw; }
  footer .nav-arrows { width: 100%; justify-content: space-between; pointer-events: none; }
  footer .nav-arrows button { pointer-events: auto; }
}
