/* =========================================================
   VELAEA EA Lab Motion
   - Page-specific premium reveal, count-up support, chart line draw.
   - Scoped to ea-lab only and respects reduced motion.
========================================================= */
html.ealab-motion-enabled body:not(.is-motion-ready) .ealab-reveal,
html.ealab-motion-enabled body:not(.is-motion-ready) .ealab-chart-motion{
  opacity:1!important;
  transform:none!important;
  filter:none!important;
}
html.ealab-motion-enabled body.is-motion-ready .ealab-reveal{
  opacity:0;
  transform:translate3d(0,18px,0) scale(.992);
  filter:blur(7px);
  transition:
    opacity .72s cubic-bezier(.22,1,.36,1),
    transform .72s cubic-bezier(.22,1,.36,1),
    filter .72s cubic-bezier(.22,1,.36,1),
    box-shadow .24s ease,
    border-color .24s ease;
  transition-delay:var(--ealab-delay,0ms);
  will-change:opacity,transform,filter;
}
html.ealab-motion-enabled body.is-motion-ready .ealab-reveal.is-inview{
  opacity:1;
  transform:translate3d(0,0,0) scale(1);
  filter:blur(0);
}
html.ealab-motion-enabled .lab-hero .hero-copy.ealab-reveal{
  transform:translate3d(-12px,16px,0) scale(.992);
}
html.ealab-motion-enabled .lab-hero .access-card.ealab-reveal{
  transform:translate3d(14px,18px,0) scale(.99);
}
html.ealab-motion-enabled .status-strip > div.is-inview,
html.ealab-motion-enabled .backtest-summary-grid > article.is-inview,
html.ealab-motion-enabled .backtest-card.pro-card.is-inview,
html.ealab-motion-enabled .project-card.is-inview{
  box-shadow:0 20px 60px rgba(0,0,0,.24), 0 0 0 1px rgba(242,199,106,.06) inset;
}
html.ealab-motion-enabled .field.ealab-reveal{
  transform:translate3d(0,10px,0);
  filter:blur(3px);
}
html.ealab-motion-enabled .backtest-card.pro-card.ealab-reveal{
  transform:translate3d(0,20px,0) scale(.988);
}
html.ealab-motion-enabled .backtest-score-badge{
  transition:transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease, border-color .5s ease;
}
html.ealab-motion-enabled .is-inview > .backtest-card-head .backtest-score-badge,
html.ealab-motion-enabled .backtest-card-head.is-inview .backtest-score-badge,
html.ealab-motion-enabled .backtest-detail-title-row.is-inview .backtest-score-badge{
  transform:translateY(-1px) scale(1.025);
  box-shadow:0 16px 38px rgba(242,199,106,.18);
  border-color:rgba(242,199,106,.38);
}
html.ealab-motion-enabled .quota-ring .ring-fill{
  transition:stroke-dashoffset 1.05s cubic-bezier(.22,1,.36,1), filter .4s ease;
}
html.ealab-motion-enabled .approval-flow .flow-step.ealab-reveal{
  transform:translate3d(0,8px,0) scale(.96);
  transition-duration:.54s;
}
html.ealab-motion-enabled .backtest-risk-bar i{
  transform-origin:left center;
  transform:scaleX(0);
  transition:transform .86s cubic-bezier(.22,1,.36,1);
}
html.ealab-motion-enabled .is-inview .backtest-risk-bar i,
html.ealab-motion-enabled .backtest-risk-row.is-inview .backtest-risk-bar i{
  transform:scaleX(1);
}
html.ealab-motion-enabled .backtest-mini-chart,
html.ealab-motion-enabled .backtest-detail-chart{
  position:relative;
  isolation:isolate;
}
html.ealab-motion-enabled .backtest-mini-chart::after,
html.ealab-motion-enabled .backtest-detail-chart::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
  background:linear-gradient(105deg,transparent 0%,rgba(255,255,255,.10) 42%,rgba(242,199,106,.18) 50%,transparent 62%);
  transform:translateX(-130%);
  opacity:0;
}
html.ealab-motion-enabled .backtest-mini-chart.is-chart-inview::after,
html.ealab-motion-enabled .backtest-detail-chart.is-chart-inview::after{
  animation:ealabChartSweep .9s cubic-bezier(.22,1,.36,1) .08s both;
}
html.ealab-motion-enabled .backtest-mini-chart .bt-area,
html.ealab-motion-enabled .backtest-detail-chart .bt-area{
  opacity:0;
  transform:translateY(9px);
  transition:opacity .9s ease .16s, transform .9s cubic-bezier(.22,1,.36,1) .16s;
}
html.ealab-motion-enabled .backtest-mini-chart.is-chart-inview .bt-area,
html.ealab-motion-enabled .backtest-detail-chart.is-chart-inview .bt-area{
  opacity:1;
  transform:translateY(0);
}
html.ealab-motion-enabled .backtest-mini-chart .bt-line,
html.ealab-motion-enabled .backtest-detail-chart .bt-line{
  transition:stroke-dashoffset 1.18s cubic-bezier(.22,1,.36,1), filter .3s ease;
}
html.ealab-motion-enabled .backtest-detail-chart .bt-line{
  transition-duration:1.32s;
}
html.ealab-motion-enabled .backtest-month-grid span{
  position:relative;
  overflow:hidden;
}
html.ealab-motion-enabled .backtest-month-grid span::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:3px;
  background:linear-gradient(90deg,#f2c76a,rgba(242,199,106,.08));
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .75s cubic-bezier(.22,1,.36,1);
}
html.ealab-motion-enabled .backtest-month-grid span.is-inview::before,
html.ealab-motion-enabled .is-inview .backtest-month-grid span::before{
  transform:scaleX(1);
}
html.ealab-motion-enabled .verified-ap-flow span.ealab-reveal,
html.ealab-motion-enabled .project-tags span.ealab-reveal,
html.ealab-motion-enabled .trust-row span.ealab-reveal{
  transform:translateY(8px) scale(.96);
  transition-duration:.52s;
}
html.ealab-motion-enabled .terminal.ealab-reveal{
  transform:translate3d(0,12px,0) scale(.994);
}
html.ealab-motion-enabled .terminal.is-inview{
  box-shadow:inset 0 0 0 1px rgba(242,199,106,.08), 0 20px 50px rgba(0,0,0,.18);
}
html.ealab-motion-enabled .backtest-detail-panel.ealab-reveal{
  opacity:1;
  transform:none;
  filter:none;
}
html.ealab-motion-enabled .backtest-detail-drawer:not([hidden]) .backtest-detail-panel{
  animation:ealabDrawerIn .38s cubic-bezier(.22,1,.36,1) both;
}
html.ealab-motion-enabled .backtest-detail-drawer:not([hidden]) .backtest-detail-backdrop{
  animation:ealabFadeIn .28s ease both;
}
@keyframes ealabChartSweep{
  0%{opacity:0;transform:translateX(-130%)}
  22%{opacity:1}
  100%{opacity:0;transform:translateX(130%)}
}
@keyframes ealabDrawerIn{
  from{opacity:0;transform:translate3d(18px,0,0) scale(.985);filter:blur(6px)}
  to{opacity:1;transform:translate3d(0,0,0) scale(1);filter:blur(0)}
}
@keyframes ealabFadeIn{from{opacity:0}to{opacity:1}}
@media (max-width:720px){
  html.ealab-motion-enabled body.is-motion-ready .ealab-reveal{
    transform:translate3d(0,12px,0) scale(.996);
    filter:blur(4px);
    transition-duration:.46s;
    transition-delay:calc(var(--ealab-delay,0ms) * .55);
  }
  html.ealab-motion-enabled .backtest-mini-chart .bt-line,
  html.ealab-motion-enabled .backtest-detail-chart .bt-line{transition-duration:.86s}
  html.ealab-motion-enabled .backtest-mini-chart.is-chart-inview::after,
  html.ealab-motion-enabled .backtest-detail-chart.is-chart-inview::after{animation-duration:.62s}
}
@media (prefers-reduced-motion:reduce){
  html.ealab-motion-enabled body.is-motion-ready .ealab-reveal,
  html.ealab-motion-enabled .backtest-risk-bar i,
  html.ealab-motion-enabled .backtest-mini-chart .bt-area,
  html.ealab-motion-enabled .backtest-detail-chart .bt-area,
  html.ealab-motion-enabled .backtest-mini-chart .bt-line,
  html.ealab-motion-enabled .backtest-detail-chart .bt-line,
  html.ealab-motion-enabled .quota-ring .ring-fill{
    opacity:1!important;
    transform:none!important;
    filter:none!important;
    transition:none!important;
    animation:none!important;
  }
  html.ealab-motion-enabled .backtest-mini-chart::after,
  html.ealab-motion-enabled .backtest-detail-chart::after{display:none!important}
}
