/* Atmosphere + scroll motion for dark-v3.html (23 Nov 2026, Jack: "the website needs some animations as you scroll to make it
   pop more, also the backgrounds are very plain, we need to introduce some gradient fades and noise/texture too").

   Backgrounds: one fine film-grain tile (assets/texture/grain.webp, generated, 256 px shown at 128 px) sits BEHIND the content,
   never over text or pictures: it is the page canvas, and every opaque section background repeats it as its top layer. Warm
   tangerine light (the hero's band of light) spills into the sections from where the eye lands; the grey strips get soft
   gradient edges instead of hard lines.

   Motion (motion-reveal.js adds the classes, only to things below the fold, so nothing is hidden if the script fails):
   headings rise out of a mask, pictures and videos pull focus (soft and slightly large to sharp), lists step in one after another
   with a capped delay. Reduced motion keeps a plain fade. */

.showcase{--grain:url(assets/texture/grain.webp);--glow:var(--g-d2a855,#d2a855);--rv-ease:cubic-bezier(.16,1,.3,1)}
body.showcase{background:#11100e url(assets/texture/grain.webp) 0 0/128px 128px}

/* Introducing: warm light spilling down from the hero, a soft floor shadow at the bottom */
.showcase #inside{background:
  radial-gradient(58% 34% at 50% 0%,color-mix(in srgb,var(--glow) 11%,transparent),transparent 72%),
  radial-gradient(70% 22% at 50% 100%,#00000059,transparent 70%)}

/* Meet your instruments: the lighter strip with soft edges and a lamp-lit top */
.showcase #instruments::before{background:
  var(--grain) 0 0/128px 128px,
  radial-gradient(54% 40% at 50% 0%,color-mix(in srgb,var(--glow) 9%,transparent),transparent 72%),
  linear-gradient(180deg,#11100e 0,#1b1a17 96px,#1b1a17 calc(100% - 96px),#11100e 100%)}

/* Everything, one click away: a warm pool of light behind each clip, on the clip's side */
.showcase #deeper{isolation:isolate;overflow-x:clip}   /* the glows reach past the rows; keep them off the page edge */
.showcase #deeper .deep-row{position:relative}
.showcase #deeper .deep-row::before{content:"";position:absolute;z-index:-1;inset:-18% -10%;pointer-events:none;
  background:radial-gradient(36% 44% at var(--gx,32%) 50%,color-mix(in srgb,var(--glow) 10%,transparent),transparent 72%)}
.showcase #deeper .deep-row:nth-child(even)::before{--gx:68%}

/* Effects: same strip language as the instruments, the rack sitting in its own light (box-shadow strip replaced by a full-width layer) */
.showcase #effects{background:none;box-shadow:none;clip-path:none;overflow-x:visible;overflow-y:clip;isolation:isolate}
.showcase #effects::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:calc(50% - 50vw);right:calc(50% - 50vw);pointer-events:none;background:
  var(--grain) 0 0/128px 128px,
  radial-gradient(36% 52% at 33% 48%,color-mix(in srgb,var(--glow) 12%,transparent),transparent 72%),
  linear-gradient(180deg,#11100e 0,#1b1a17 96px,#1b1a17 calc(100% - 96px),#11100e 100%)}

/* Scenes: a low warm glow behind the room viewer */
.showcase #scenes{background:radial-gradient(46% 40% at 50% 62%,color-mix(in srgb,var(--glow) 8%,transparent),transparent 72%)}

/* Sound banks: grain on its own dark ground, and orange light rising from the bottom edge into the testimonials strip */
.showcase #expansions{background:
  var(--grain) 0 0/128px 128px,
  radial-gradient(60% 30% at 50% 100%,color-mix(in srgb,var(--glow) 17%,transparent),transparent 74%),
  #100f0d}

/* Testimonials: grain on the orange, which deepens toward the bottom edge */
.showcase #voices::before{background:
  var(--grain) 0 0/128px 128px,
  linear-gradient(180deg,transparent 62%,#00000033),
  radial-gradient(60% 85% at 50% 0%,color-mix(in srgb,var(--g-e0b968,#e0b968) 75%,transparent),transparent 72%),
  var(--glow)}

/* Offers: the orange carries on as light at the top edge, then the ground darkens toward the questions */
.showcase .offers{border-top:0;background:
  var(--grain) 0 0/128px 128px,
  radial-gradient(70% 24% at 50% 0%,color-mix(in srgb,var(--glow) 15%,transparent),transparent 75%),
  linear-gradient(180deg,#201e1a,#191713)}
/* the questions column is narrow, so its fade is a full-width layer rather than its own background */
.showcase #faq{position:relative;isolation:isolate}
.showcase #faq::before{content:"";position:absolute;z-index:-1;top:0;height:340px;left:calc(50% - 50vw);right:calc(50% - 50vw);pointer-events:none;background:var(--grain) 0 0/128px 128px,linear-gradient(180deg,#191713,#11100e)}

/* ---------- scroll motion ---------- */
.rv{transition:opacity .7s var(--rv-ease),transform .9s var(--rv-ease),filter .9s var(--rv-ease),clip-path .9s var(--rv-ease)!important}
.rv-head:not(.in){clip-path:inset(100% -4% -30% -4%)!important;transform:translateY(.34em)!important}
.rv-head.in{clip-path:inset(-30% -4% -30% -4%)!important}
.rv-fade:not(.in){opacity:0!important;transform:translateY(14px)!important}
.rv-fade{transition-delay:.14s!important}
.rv-media:not(.in){opacity:0!important;transform:translateY(26px) scale(1.035)!important;filter:blur(10px)!important}
.rv-media{transition-duration:.9s,1.1s,1.1s,1.1s!important}
.rv-rise:not(.in){opacity:0!important;transform:translateY(28px)!important}
.rv-rise{transition-delay:.1s!important}
.rv-list:not(.in)>.rv-item{opacity:0!important;transform:translateY(22px)!important;filter:blur(6px)!important}
.rv-item{transition:opacity .65s var(--rv-ease),transform .8s var(--rv-ease),filter .8s var(--rv-ease)!important;transition-delay:calc(var(--i,0) * 70ms)!important}
@media (prefers-reduced-motion:reduce){
  .rv,.rv-item{transition:opacity .35s ease!important;transition-delay:0s!important}
  .rv-head:not(.in),.rv-fade:not(.in),.rv-media:not(.in),.rv-rise:not(.in),.rv-list:not(.in)>.rv-item{clip-path:none!important;transform:none!important;filter:none!important;opacity:0!important}}
/* full-width pictures don't scale up while hidden, or they would poke past the window edge */
#expansions .bk-coverflow.rv-media:not(.in),#instruments .spot-visual.rv-media:not(.in){transform:translateY(26px)!important}
