/* Molok El Sharq homepage motion. Active only when site-motion.js adds html.sm-on. */
@keyframes sm-rise{from{opacity:0;translate:0 26px}to{opacity:1;translate:0 0}}
@keyframes sm-drop{from{opacity:0;translate:0 -18px}to{opacity:1;translate:0 0}}
@keyframes sm-fade{from{opacity:0}to{opacity:1}}
@keyframes sm-kenburns{from{scale:1.16}to{scale:1.045}}
@keyframes sm-drift{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(-1.5%,-1%,0)}}
@keyframes sm-shine{0%,62%{background-position:120% 0}100%{background-position:-20% 0}}
@keyframes sm-sweep{0%,70%{translate:-180% 0}100%{translate:420% 0}}
@keyframes sm-line{from{scale:0 1}to{scale:1 1}}
@keyframes sm-ping{0%{box-shadow:0 0 0 0 #a7d99988,0 0 12px #91d09555}80%,100%{box-shadow:0 0 0 9px #a7d99900,0 0 12px #91d09555}}
@keyframes sm-float{0%,100%{translate:0 0}50%{translate:0 -7px}}
@keyframes sm-glow{0%,100%{box-shadow:0 0 0 0 #d4b47400}50%{box-shadow:0 0 28px 2px #d4b47455}}
@keyframes sm-bob{0%,100%{translate:0 0}50%{translate:0 5px}}

/* Hero entrance */
html.sm-on .hero-image{animation:sm-kenburns 2.6s cubic-bezier(.2,.7,.2,1) both,sm-drift 28s ease-in-out 2.6s infinite;will-change:transform,scale,translate}
html.sm-on .me-header{animation:sm-drop .8s ease-out .1s both}
html.sm-on .hero-kicker{animation:sm-rise .8s cubic-bezier(.2,.7,.2,1) .35s both}
html.sm-on .hero-kicker span{transform-origin:right;animation:sm-line .9s ease-out .6s both}
html.sm-on #hero-title{animation:sm-rise 1s cubic-bezier(.2,.7,.2,1) .5s both}
html.sm-on #hero-title em{background:linear-gradient(100deg,transparent 42%,#fff3cf 50%,transparent 58%) 120% 0/250% 100% no-repeat,linear-gradient(var(--gold),var(--gold));-webkit-background-clip:text;background-clip:text;color:transparent;animation:sm-shine 6s ease-in-out 1.6s infinite}
html.sm-on .hero-description{animation:sm-rise .9s cubic-bezier(.2,.7,.2,1) .75s both}
html.sm-on .hero-actions{animation:sm-rise .9s cubic-bezier(.2,.7,.2,1) .95s both}
html.sm-on .hero-note{animation:sm-rise .9s ease-out 1.15s both}
html.sm-on .hero-bottom{animation:sm-fade 1.2s ease-out 1.4s both}
html.sm-on .hero-bottom a span{display:inline-block;animation:sm-bob 1.8s ease-in-out 2.6s infinite}
html.sm-wait .hero *,html.sm-wait .hero-image,html.sm-wait .me-header{animation-play-state:paused!important}

.sm-embers{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none;animation:sm-fade 2s ease-out both}
.sm-progress{position:fixed;z-index:20;inset:0 0 auto;height:2px;background:linear-gradient(90deg,#8d6f33,#f0d48e,#8d6f33);transform:scaleX(0);transform-origin:right;pointer-events:none}

/* Buttons and live indicators */
html.sm-on .button.primary{position:relative;overflow:hidden}
html.sm-on .button.primary::after{content:"";position:absolute;inset:-20% auto -20% 0;width:38%;background:linear-gradient(100deg,transparent,#fff7dc8c,transparent);transform:skewX(-18deg);translate:-180% 0;animation:sm-sweep 4.5s ease-in-out 2s infinite;pointer-events:none}
html.sm-on .final-call .button.primary{animation:sm-glow 3.2s ease-in-out infinite}
html.sm-on .live-dot,html.sm-on .realm-status b{animation:sm-ping 2.2s ease-out infinite}

/* Scroll reveals */
html.sm-on [data-sm]{transition:opacity .9s cubic-bezier(.2,.7,.2,1),translate .9s cubic-bezier(.2,.7,.2,1)}
html.sm-on [data-sm]:not(.sm-in){opacity:0;translate:0 34px}
html.sm-on #realm-list[data-sm],html.sm-on .chronicle-grid[data-sm]{opacity:1;translate:none;transition:none}
html.sm-on #realm-list>.realm-card{transition:opacity .8s ease-out,translate .8s cubic-bezier(.2,.7,.2,1),border-color .3s,transform .3s,box-shadow .22s}
html.sm-on #realm-list:not(.sm-in)>.realm-card{opacity:0;translate:0 46px}
html.sm-on #realm-list>.realm-card:nth-child(2){transition-delay:.12s,.12s,0s,0s,0s}
html.sm-on #realm-list>.realm-card:nth-child(3){transition-delay:.24s,.24s,0s,0s,0s}
html.sm-on #realm-list>.realm-card:nth-child(4){transition-delay:.36s,.36s,0s,0s,0s}
html.sm-on #realm-list.sm-in .realm-art{animation:sm-float 5.5s ease-in-out 1s infinite}
html.sm-on #realm-list.sm-in>.realm-card:nth-child(2) .realm-art{animation-delay:1.7s}
html.sm-on #realm-list.sm-in>.realm-card:nth-child(3) .realm-art{animation-delay:2.4s}
html.sm-on #realm-list.sm-in>.realm-card:nth-child(4) .realm-art{animation-delay:3.1s}
html.sm-on .realm-card .realm-art{transition:filter .35s}
html.sm-on .realm-card:hover .realm-art,html.sm-on .realm-card:focus-within .realm-art{filter:drop-shadow(0 0 16px #e8c46f66) brightness(1.06)}
html.sm-on .realm-enter span{display:inline-block;transition:translate .3s}
html.sm-on .realm-card:hover .realm-enter span{translate:-6px 0}

html.sm-on .story-image[data-sm]{transition:opacity 1s ease-out,clip-path 1.3s cubic-bezier(.2,.7,.2,1)}
html.sm-on .story-image[data-sm]:not(.sm-in){translate:none;clip-path:inset(0 0 0 100%)}
html.sm-on .story-image[data-sm].sm-in{clip-path:inset(-20px -40px)}
html.sm-on .story-image img{transition:scale 1.2s cubic-bezier(.2,.7,.2,1)}
html.sm-on .story-image:hover img{scale:1.04}
html.sm-on .story-copy[data-sm]{transition-delay:.2s}
html.sm-on .chronicle-grid>.chronicle{transition:opacity .8s ease-out,translate .8s cubic-bezier(.2,.7,.2,1),background .3s}
html.sm-on .chronicle-grid:not(.sm-in)>.chronicle{opacity:0;translate:0 30px}
html.sm-on .chronicle-grid>.chronicle:nth-child(2){transition-delay:.15s,.15s,0s}
html.sm-on .chronicle-mark{display:inline-block;transition:rotate .5s,scale .5s,text-shadow .5s}
html.sm-on .chronicle:hover .chronicle-mark{rotate:-12deg;scale:1.15;text-shadow:0 0 18px #d4b474aa}

@media (prefers-reduced-motion:reduce){
 html.sm-on *,html.sm-on *::after{animation:none!important;transition:none!important}
 html.sm-on [data-sm],html.sm-on [data-sm]>*{opacity:1!important;translate:none!important;clip-path:none!important}
 .sm-embers,.sm-progress{display:none}
}
