/* =====================================================================
   BADDEST BOTTLE — story-fx.css
   Scroll-LINKED drift: content and icons slide across the screen as you
   scroll and settle into a still, readable position when centered in the
   viewport. Pairs with story-fx.js. Additive & revertible.
   Respects prefers-reduced-motion (drift disabled, content static).
   ===================================================================== */

/* Elements story-fx.js manages. It writes inline transform/opacity every
   frame, so we only declare the base here. Transitions are turned OFF by
   the JS on these elements (per-frame updates must not lag). */
.bbfxDrift{
  will-change:transform, opacity;
  backface-visibility:hidden;
}

/* Optional accent: a thin motion trail under drifting headlines so the
   horizontal movement reads as intentional, not glitchy. */
.bbfxDrift.bbfxDriftHead{
  position:relative;
}

/* Story progress rail down the left edge (desktop) — a scrolling spine
   that ties the "chapters" together and builds momentum toward Share. */
.bbfxStoryRail{
  position:fixed;
  left:14px;
  top:18vh;
  bottom:18vh;
  width:3px;
  border-radius:3px;
  background:rgba(255,255,255,.08);
  z-index:2147482000;
  pointer-events:none;
  overflow:hidden;
}
.bbfxStoryRail::after{
  content:"";
  position:absolute;
  left:0; top:0; right:0;
  height:calc(var(--bbfx-story, 0) * 100%);
  background:linear-gradient(180deg,#e63329,#ff8a3d,#ffd23f);
  box-shadow:0 0 12px rgba(230,51,41,.8);
}
.bbfxStoryDot{
  position:absolute;
  left:50%;
  width:11px; height:11px;
  margin-left:-5.5px; margin-top:-5.5px;
  border-radius:50%;
  background:#0f0805;
  border:2px solid rgba(255,255,255,.25);
  transition:border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.bbfxStoryDot.is-live{
  border-color:#ff8a3d;
  box-shadow:0 0 12px rgba(255,138,61,.9);
  transform:scale(1.35);
}

@media (max-width: 1100px){
  .bbfxStoryRail{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  .bbfxDrift{ transform:none !important; opacity:1 !important; }
  .bbfxStoryRail{ display:none !important; }
}
