/* eMotion Video: vertical pipeline ("cascade") used on index.html and video-courses.html.

   Base state is VISIBLE. site.js adds .pl-anim to hide, then .pl-go to play,
   so the content still reads if JavaScript never runs. */

.pl-track { position: relative; max-width: 780px; }

.pl-track::before {
  content: "";
  position: absolute; left: 27px; top: 14px; bottom: 34px;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, #007799, rgba(0,119,153,0.55) 70%, rgba(0,119,153,0));
  transform-origin: top;
}
.pl-track.pl-anim::before { transform: scaleY(0); }
.pl-track.pl-go::before { animation: plDraw 1.7s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes plDraw { to { transform: scaleY(1); } }

.pl-step { position: relative; padding-left: 74px; margin-bottom: clamp(22px,4vw,32px); }

/* The oversized ghost numeral: the design artifact that carries the eye down. */
.pl-ghost {
  position: absolute; right: -6px; top: -26px;
  font-size: 118px; font-weight: 900; line-height: 1; letter-spacing: -0.05em;
  color: rgba(255,255,255,0.035); pointer-events: none; z-index: 0;
}
.pl-track.pl-anim .pl-ghost { opacity: 0; transform: translateY(14px); }
.pl-track.pl-go .pl-ghost { animation: plGhost .7s ease both; animation-delay: calc(var(--i) * 0.19s + .28s); }
@keyframes plGhost { to { opacity: 1; transform: translateY(0); } }

.pl-node {
  position: absolute; left: 0; top: 2px; width: 56px; height: 56px; border-radius: 17px;
  background: linear-gradient(150deg, rgba(0,119,153,0.32), rgba(17,34,85,0.9));
  border: 1.5px solid rgba(204,240,240,0.16);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 7px rgba(17,34,85,0.55), 0 10px 26px -10px rgba(0,0,0,0.7);
  z-index: 2;
}
.pl-node svg { width: 31px; height: 31px; stroke: #CCF0F0; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pl-node svg .fill { fill: #007799; stroke: none; }
.pl-node svg .soft { stroke: rgba(204,240,240,0.42); }

.pl-track.pl-anim .pl-node { opacity: 0; transform: scale(.55) rotate(-8deg); }
.pl-track.pl-go .pl-step .pl-node { animation: plPop .52s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--i) * 0.19s + .12s); }
@keyframes plPop {
  0%   { opacity: 0; transform: scale(.55) rotate(-8deg); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

.pl-card {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  border-left: 3px solid #007799;
  border-radius: 14px; padding: 18px 20px 16px;
}
.pl-card h3 { font-size: clamp(18px,4.6vw,21px); font-weight: 800; letter-spacing: -0.015em; margin: 0 0 7px; color: #ffffff; }
.pl-card p { font-size: 15.3px; line-height: 1.6; color: #c3cbe4; margin: 0; }

.pl-track.pl-anim .pl-card { opacity: 0; transform: translateX(26px); }
.pl-track.pl-go .pl-step .pl-card { animation: plSlide .55s cubic-bezier(.2,.7,.3,1) both; animation-delay: calc(var(--i) * 0.19s + .26s); }
@keyframes plSlide { to { opacity: 1; transform: translateX(0); } }

/* The micro-details: what we actually cover inside each step. */
.pl-bits {
  list-style: none; margin: 13px 0 0; padding: 12px 0 0;
  border-top: 1px dashed rgba(204,240,240,0.16);
  display: flex; flex-wrap: wrap; gap: 6px 7px;
}
.pl-bits li {
  font-size: 12.4px; font-weight: 600; color: #CCF0F0;
  background: rgba(0,119,153,0.19); border: 1px solid rgba(0,119,153,0.42);
  padding: 5px 10px; border-radius: 999px;
}

.pl-outro { margin-top: clamp(30px,5vw,44px); padding-left: 74px; font-size: 15.5px; line-height: 1.6; color: #c3cbe4; max-width: 780px; }
.pl-outro b { color: #ffffff; font-weight: 700; }

/* Mobile first: the spine and nodes shrink, the cards stay full width. */
@media (max-width: 600px) {
  .pl-track::before { left: 21px; top: 10px; bottom: 40px; }
  .pl-step { padding-left: 56px; margin-bottom: 26px; }
  .pl-node {
    width: 44px; height: 44px; border-radius: 13px;
    box-shadow: 0 0 0 5px rgba(17,34,85,0.55), 0 8px 20px -10px rgba(0,0,0,0.7);
  }
  .pl-node svg { width: 24px; height: 24px; }
  .pl-ghost { font-size: 74px; top: -18px; right: 0; }
  .pl-card { padding: 15px 16px 14px; border-radius: 12px; }
  .pl-bits li { font-size: 11.6px; padding: 4px 9px; }
  .pl-outro { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-track::before { transform: scaleY(1); animation: none; }
  .pl-node, .pl-card, .pl-ghost { opacity: 1 !important; transform: none !important; animation: none !important; }
}
