/* SMMP Our Story (page 3121) — Journey/timeline scroll animation.
 * Desktop wrapper .elementor-element-ccb617b (zigzag), mobile .elementor-element-05e5a5e (rail).
 * Progressive enhancement: every effect is gated behind .smmp-tl-armed, which the JS
 * (assets/js/ourstory-timeline.js) adds only after it classifies the spine/dots/cards.
 * With JS off (or prefers-reduced-motion) the timeline renders its normal static design. */

.elementor-element-ccb617b.smmp-tl-armed,
.elementor-element-05e5a5e.smmp-tl-armed { position: relative; }

/* Base dashed spine dimmed to a faint guide once armed. */
.smmp-tl-armed .smmp-tl-spine { opacity: .2; transition: opacity .5s ease; }

/* The drawn progress beam (JS-created, one per wrapper). */
.smmp-tl-progress {
  position: absolute;
  width: 2px;
  margin-left: -1px;
  height: 0;
  background: linear-gradient(180deg, rgba(217,165,39,0) 0%, rgba(217,165,39,.6) 12%, #f5c645 55%, #ffe6a0 100%);
  box-shadow: 0 0 10px 1px rgba(240,198,68,.7);
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
}
/* Glowing bead riding the leading edge of the beam — gently breathing. */
.smmp-tl-progress::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 10px;
  height: 10px;
  transform: translate(-50%, 50%);
  border-radius: 50%;
  background: #fff3d0;
  box-shadow: 0 0 12px 3px rgba(240,198,68,.9), 0 0 5px 1px rgba(255,255,255,.9);
  animation: smmp-tl-bead 1.6s ease-in-out infinite;
}
@keyframes smmp-tl-bead {
  0%, 100% { box-shadow: 0 0 11px 2px rgba(240,198,68,.85), 0 0 5px 1px rgba(255,255,255,.85); }
  50%      { box-shadow: 0 0 18px 5px rgba(240,198,68,1),   0 0 9px 2px rgba(255,255,255,1); }
}

/* Dots: dim until the beam reaches them, then bright + halo. */
.smmp-tl-armed .smmp-tl-dot {
  position: relative;
  z-index: 3;
  transform: scale(.7);
  opacity: .4;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s ease, box-shadow .45s ease;
}
.smmp-tl-armed .smmp-tl-dot.smmp-tl-lit {
  transform: scale(1.15);
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(217,165,39,.16), 0 0 15px 3px rgba(240,198,68,.7);
}
/* One-time ping ring the moment a dot lights. */
.smmp-tl-armed .smmp-tl-dot.smmp-tl-lit::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid rgba(240,198,68,.55);
  animation: smmp-tl-ping .75s ease-out 1;
  pointer-events: none;
}
@keyframes smmp-tl-ping {
  from { transform: scale(1); opacity: .8; }
  to   { transform: scale(2.6); opacity: 0; }
}

/* Cards: slide in from their side (with a slight rise + scale) as they enter view. */
.smmp-tl-armed .smmp-tl-card {
  opacity: 0;
  transition: opacity .7s ease, transform .75s cubic-bezier(.2,.8,.2,1);
  will-change: transform, opacity;
}
.smmp-tl-armed .smmp-tl-card.smmp-tl-from-left  { transform: translate(-48px, 18px) scale(.965); }
.smmp-tl-armed .smmp-tl-card.smmp-tl-from-right { transform: translate(48px, 18px) scale(.965); }
.smmp-tl-armed .smmp-tl-card.smmp-tl-in { opacity: 1; transform: none; }

/* Activation flourish: when the beam reaches a card's dot, the card flashes a gold
 * glow and its icon pops — tying beam → dot → card into one beat. */
.smmp-tl-armed .smmp-tl-card.smmp-tl-active { animation: smmp-tl-cardflash 1.2s ease-out 1; }
@keyframes smmp-tl-cardflash {
  0%   { box-shadow: 0 0 0 0 rgba(240,198,68,0); }
  26%  { box-shadow: 0 0 26px 3px rgba(240,198,68,.34); }
  100% { box-shadow: 0 0 0 0 rgba(240,198,68,0); }
}
.smmp-tl-armed .smmp-tl-card .elementor-widget-icon { will-change: transform, filter; }
.smmp-tl-armed .smmp-tl-card.smmp-tl-active .elementor-widget-icon { animation: smmp-tl-iconpop .7s ease-out 1; }
@keyframes smmp-tl-iconpop {
  0%   { transform: scale(1);    filter: drop-shadow(0 0 0 rgba(240,198,68,0)); }
  32%  { transform: scale(1.22); filter: drop-shadow(0 0 9px rgba(240,198,68,.9)); }
  100% { transform: scale(1);    filter: drop-shadow(0 0 0 rgba(240,198,68,0)); }
}

@media (prefers-reduced-motion: reduce) {
  .smmp-tl-armed .smmp-tl-card,
  .smmp-tl-armed .smmp-tl-dot,
  .smmp-tl-armed .smmp-tl-spine { opacity: 1 !important; transform: none !important; box-shadow: none; }
  .smmp-tl-armed .smmp-tl-card.smmp-tl-active,
  .smmp-tl-armed .smmp-tl-card.smmp-tl-active .elementor-widget-icon { animation: none !important; }
  .smmp-tl-progress { display: none !important; }
  .smmp-tl-progress::after { animation: none !important; }
}
