/* Rayat Case Study — Premium Hero Motion V4. Only transforms and opacity are animated. */
/* Motion layers remain independently composited: entrance, parallax, and idle float. */
.rayat-reference-hero{isolation:isolate}
.rayat-reference-hero .rayat-art-stage{
  position:absolute;inset:0 auto 0 0;width:min(65vw,1140px);height:100%;
  z-index:-1;pointer-events:none;isolation:isolate;transform-origin:50% 58%;
}
.rayat-reference-hero .rayat-art-parallax,.rayat-reference-hero .rayat-art-drift{
  position:relative;width:100%;height:100%;pointer-events:none;
}
.rayat-reference-hero .rayat-art-parallax{
  transform:translate3d(var(--hero-parallax-x,0px),var(--hero-parallax-y,0px),0);
  transition:transform .9s cubic-bezier(.18,.7,.18,1);
}
.rayat-reference-hero .rayat-art-drift{
  animation:rayat-premium-idle 8s ease-in-out 1.5s infinite;
}
.rayat-reference-hero .rayat-art-stage .rayat-reference-art{
  display:block;position:relative;z-index:0;inset:auto;width:100%;height:100%;
  max-width:none;object-fit:fill;object-position:left center;
  margin:0;pointer-events:none;
}
.rayat-reference-hero .rayat-art-stage::before{
  content:"";position:absolute;z-index:-1;left:9%;bottom:4%;
  width:60%;height:32%;
  background:radial-gradient(ellipse,rgba(231,163,66,.21),rgba(232,185,104,.06) 42%,transparent 72%);
  opacity:.4;filter:blur(32px);pointer-events:none;
  animation:rayat-ambient-pulse 6.4s ease-in-out 1.6s infinite;
}
.rayat-reference-hero .rayat-light-trace{
  position:absolute;z-index:2;bottom:10.8%;left:9%;width:58%;
  height:1.5px;border-radius:999px;overflow:hidden;
  transform:rotate(-3deg);
  background:linear-gradient(90deg,transparent,rgba(236,182,85,.13),transparent);
  opacity:.85;pointer-events:none;
}
.rayat-reference-hero .rayat-light-trace::before{
  content:"";position:absolute;top:0;left:0;height:100%;width:30%;
  background:linear-gradient(90deg,transparent,rgba(255,226,166,.95),transparent);
  transform:translate3d(-180%,0,0);
  animation:rayat-light-pass 9s ease-in-out 2.5s infinite;
}
.rayat-reference-hero .rayat-spark{
  position:absolute;z-index:2;width:5px;height:5px;border-radius:50%;
  background:#ffdfa0;box-shadow:0 0 7px 2px rgba(251,200,118,.55);
  pointer-events:none;
  animation:rayat-sparkle 5.5s ease-in-out infinite;
}
.rayat-reference-hero .rayat-spark-one{left:18%;top:20%;animation-delay:1.4s}
.rayat-reference-hero .rayat-spark-two{left:70%;top:76%;width:3px;height:3px;animation-delay:3.5s}
.rayat-reference-hero .rayat-spark-three{left:40%;bottom:11%;width:3px;height:3px;animation-delay:2.5s}
/* Staggered editorial text reveal, RTL safe. */
.rayat-reference-hero .eyebrow,
.rayat-reference-hero .rayat-title-white,
.rayat-reference-hero h1 strong span,
.rayat-reference-hero .rayat-hero-description,
.rayat-reference-hero .actions .btn{
  animation:rayat-content-arrive 1s cubic-bezier(.16,1,.3,1) both;
}
.rayat-reference-hero .eyebrow{animation-delay:.28s}
.rayat-reference-hero .rayat-title-white{animation-delay:.44s}
.rayat-reference-hero h1 strong span:first-child{animation-delay:.62s}
.rayat-reference-hero h1 strong span:last-child{animation-delay:.76s}
.rayat-reference-hero .rayat-hero-description{animation-delay:1.03s}
.rayat-reference-hero .actions .btn:first-child{animation-delay:1.19s}
.rayat-reference-hero .actions .btn:last-child{animation-delay:1.33s}
.rayat-reference-hero .rayat-art-stage{
  animation:rayat-art-arrive 1.55s cubic-bezier(.16,1,.25,1) .12s both;
}
.rayat-reference-hero h1 strong{
  background-size:190% 100%;
  animation:rayat-gold-flow 10s ease-in-out 2s infinite alternate;
}
.rayat-reference-hero .btn{
  position:relative;isolation:isolate;overflow:hidden;
  transition:box-shadow .35s ease,background .35s ease,color .35s ease,transform .35s ease;
}
.rayat-reference-hero .btn::after{
  content:"";position:absolute;z-index:-1;
  width:44%;height:170%;left:-65%;top:-35%;
  transform:skewX(-26deg);pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.36),transparent);
  transition:left .7s cubic-bezier(.2,.7,.2,1);
}
.rayat-reference-hero .btn:hover::after,.rayat-reference-hero .btn:focus-visible::after{left:135%}
@keyframes rayat-art-arrive{
  from{opacity:0;transform:translate3d(-48px,30px,0) scale(.955);filter:brightness(.83)}
  to{opacity:1;transform:translate3d(0,0,0) scale(1);filter:brightness(1)}
}
@keyframes rayat-premium-idle{
  0%,100%{transform:translate3d(0,0,0)}
  50%{transform:translate3d(0,-11px,0)}
}
@keyframes rayat-content-arrive{
  from{opacity:0;transform:translate3d(0,23px,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}
@keyframes rayat-ambient-pulse{
  0%,100%{opacity:.28}50%{opacity:.66}
}
@keyframes rayat-light-pass{
  0%,25%{transform:translate3d(-180%,0,0)}
  44%,100%{transform:translate3d(510%,0,0)}
}
@keyframes rayat-sparkle{
  0%,20%,100%{opacity:0;transform:scale(.6)}
  38%{opacity:.72;transform:scale(1.15)}
  50%,80%{opacity:.18;transform:scale(.85)}
}
@keyframes rayat-gold-flow{
  0%{background-position:10% 50%}
  100%{background-position:90% 50%}
}
/* At tablet and phone sizes the picture sits naturally above text; no lateral movement. */
@media(max-width:1500px) and (min-width:1001px){
  .rayat-reference-hero .rayat-art-stage{width:67vw;max-width:1000px}
}
@media(max-width:1000px){
  .rayat-reference-hero .rayat-art-stage{
    position:relative;inset:auto;z-index:0;width:100%;max-width:850px;
    height:auto;align-self:center;margin:0 auto -15px;
  }
  .rayat-reference-hero .rayat-art-stage .rayat-reference-art{
    width:100%;height:auto;object-fit:contain;
  }
  .rayat-reference-hero .rayat-art-parallax{transform:none!important;transition:none}
  .rayat-reference-hero .rayat-light-trace{bottom:13%}
  .rayat-reference-hero .rayat-art-drift{animation:rayat-premium-idle-mobile 8s ease-in-out 1.5s infinite}
}
@media(max-width:640px){
  .rayat-reference-hero .rayat-art-stage{
    width:113%;max-width:none;min-width:0;margin-inline-start:-4%;
  }
  .rayat-reference-hero .rayat-light-trace{display:none}
  .rayat-reference-hero .rayat-art-stage::before{filter:blur(20px)}
  .rayat-reference-hero .rayat-art-drift{animation:rayat-premium-idle-mobile 9s ease-in-out 1.5s infinite}
}
@keyframes rayat-premium-idle-mobile{
  0%,100%{transform:translate3d(0,0,0)}
  50%{transform:translate3d(0,-4px,0)}
}
/* Accessibility, battery, and motion sensitive visitors: fully static artwork and text. */
@media(prefers-reduced-motion:reduce){
  .rayat-reference-hero .rayat-art-stage,
  .rayat-reference-hero .rayat-art-drift,
  .rayat-reference-hero .rayat-art-stage::before,
  .rayat-reference-hero .rayat-light-trace::before,
  .rayat-reference-hero .rayat-spark,
  .rayat-reference-hero h1 strong,
  .rayat-reference-hero .eyebrow,
  .rayat-reference-hero .rayat-title-white,
  .rayat-reference-hero h1 strong span,
  .rayat-reference-hero .rayat-hero-description,
  .rayat-reference-hero .actions .btn{
    animation:none!important;opacity:1!important;transform:none!important;filter:none!important;
  }
  .rayat-reference-hero .rayat-light-trace,.rayat-reference-hero .rayat-spark{display:none}
  .rayat-reference-hero .rayat-art-parallax{transform:none!important;transition:none!important}
  .rayat-reference-hero .btn::after{display:none!important}
}
