/* EDRAK kinetic sand v4 — 2026-11-08.
   Remove ONLY stray dots from the whole CTA background; the golden dune dots stay.
   Make two sand-grain fields flow inside the bottom dune shape, with a seamless loop.
   Site: tamiyouz.com/work/edrak-advanced-web/ (AR and EN), no shared footer edits. */

/* Clear the full-panel dotted canvas and its inherited mask; leave card gradients,
   warm gold crescent, card border, title animations, and CTA buttons untouched. */
html body.tyz-site-v1:has(#edrak-project) .tyz6-footer-cta__texture{
  background:none!important;
  background-image:none!important;
  -webkit-mask-image:none!important;
  mask-image:none!important;
  opacity:1!important;
}
html body.tyz-site-v1:has(#edrak-project) .tyz6-footer-cta__texture::before{
  background-image:url("./edrak-next-chapter-gold-sand-v4.svg")!important;
  background-repeat:no-repeat!important;
  background-size:100% 100%!important;
  background-position:center center!important;
  opacity:.98;
}

/* Sand is constrained to the exact undulating shape from the reference image.
   The first fine-grain field drifts left/down, the second drifts right/up.
   Static gold specks remain in the SVG as an accessible no-motion fallback. */
html body.tyz-site-v1:has(#edrak-project) .tyz6-footer-cta__texture::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  inset:0!important;
  z-index:1;
  pointer-events:none;
  background-image:
    radial-gradient(circle at center,rgba(255,212,140,.86) 0 .87px,transparent 1.36px),
    radial-gradient(circle at center,rgba(255,235,182,.65) 0 1.06px,transparent 1.52px)!important;
  background-size:13px 12px,26px 24px!important;
  background-repeat:repeat,repeat!important;
  background-position:0 0,0 0;
  -webkit-mask-image:url("./edrak-next-chapter-sand-mask-v4.svg")!important;
  mask-image:url("./edrak-next-chapter-sand-mask-v4.svg")!important;
  -webkit-mask-size:100% 100%!important;
  mask-size:100% 100%!important;
  -webkit-mask-position:center center!important;
  mask-position:center center!important;
  -webkit-mask-repeat:no-repeat!important;
  mask-repeat:no-repeat!important;
  mix-blend-mode:screen;
  opacity:.87;
}

/* Visibly moving sand, gently shimmering, until the section leaves view.
   Both offsets end on whole tile multiples to avoid a visual jump at loop end. */
@media (prefers-reduced-motion:no-preference){
 html body.tyz-site-v1:has(#edrak-project)
  .tyz6-footer-cta.tyz-edrak-chapter-playing .tyz6-footer-cta__texture::after{
   animation:edrak-moving-sand-v4 12s linear infinite!important;
 }
 html body.tyz-site-v1:has(#edrak-project)
  .tyz6-footer-cta.tyz-edrak-chapter-playing .tyz6-footer-cta__texture::before{
   animation:edrak-wave-aurora-drift 14s ease-in-out infinite alternate;
 }
}
@keyframes edrak-moving-sand-v4{
  0%   {background-position:0 0,0 0;opacity:.85}
  48%  {opacity:1}
  100% {background-position:-65px 36px,78px -48px;opacity:.85}
}
/* Pause the moving grains in inactive browser tabs, matching existing footer JS. */
html body.tyz-site-v1:has(#edrak-project)
 .tyz6-footer-cta.tyz-edrak-chapter-tab-paused .tyz6-footer-cta__texture::after{
  animation-play-state:paused!important;
}
@media(max-width:850px){
  html body.tyz-site-v1:has(#edrak-project) .tyz6-footer-cta__texture::before{
    background-size:auto 100%!important;
    background-position:47% 50%!important;
  }
  html body.tyz-site-v1:has(#edrak-project) .tyz6-footer-cta__texture::after{
    -webkit-mask-size:auto 100%!important;
    mask-size:auto 100%!important;
    -webkit-mask-position:47% 50%!important;
    mask-position:47% 50%!important;
  }
}
@media(max-width:610px){
 html body.tyz-site-v1:has(#edrak-project) .tyz6-footer-cta__texture::before{
   background-position:48% 50%!important;
   opacity:.6;
 }
 html body.tyz-site-v1:has(#edrak-project) .tyz6-footer-cta__texture::after{
   -webkit-mask-position:48% 50%!important;
   mask-position:48% 50%!important;
   opacity:.78;
 }
}
@media(prefers-reduced-motion:reduce){
 html body.tyz-site-v1:has(#edrak-project) .tyz6-footer-cta__texture::after{
  animation:none!important;
  background-position:0 0,0 0!important;
 }
}
