/* ALMAS R6: LTR copy right/video left; RTL copy left/video right. */
.almas-site .hero-video-card{transform:perspective(1200px) rotateY(-25deg) rotateX(5deg);transform-origin:right center;transform-style:preserve-3d;transition:transform .5s cubic-bezier(.25,.8,.25,1),border-color .5s,box-shadow .5s}
.almas-site:dir(ltr) .hero-video-card{transform:perspective(1200px) rotateY(25deg) rotateX(5deg);transform-origin:left center}
.almas-site .hero-video-card:hover,.almas-site .hero-video-card:focus-visible{transform:perspective(1200px) rotateY(0deg) rotateX(0deg) scale(1.05);border-color:var(--gold-light);box-shadow:0 20px 60px #0009}
.almas-site .hero-play{transition:background-color .3s,transform .3s,box-shadow .3s}
.almas-site .hero-play::before,.almas-site .hero-play::after{content:'';position:absolute;inset:0;border-radius:50%;background:var(--gold-light);z-index:-1;--ring-scale:1.667;--ring-alpha:.7;animation:almas-play-ring 2s linear infinite;animation-play-state:paused;visibility:hidden;pointer-events:none}
.almas-site .hero-play::after{--ring-scale:2.333;--ring-alpha:.4}
.almas-site .hero-video-card:hover .hero-play,.almas-site .hero-video-card:focus-visible .hero-play{transform:translate(-50%,-50%) scale(1.1);background:#fff;box-shadow:0 0 30px #dfb562cc}
.almas-site .hero-video-card:hover .hero-play::before,.almas-site .hero-video-card:hover .hero-play::after,.almas-site .hero-video-card:focus-visible .hero-play::before,.almas-site .hero-video-card:focus-visible .hero-play::after{animation:none;visibility:hidden}
.almas-site .catalog-pulse{position:relative;isolation:isolate}
.almas-site .catalog-pulse::after{content:'';position:absolute;width:35px;height:35px;background:#dfb56280;border-radius:50%;animation:almas-catalog-ping 2s infinite;animation-play-state:paused;visibility:hidden;z-index:-1;pointer-events:none}
.almas-site .hero-section.is-motion-active .hero-play::before,.almas-site .hero-section.is-motion-active .hero-play::after,.almas-site .hero-section.is-motion-active .catalog-pulse::after{animation-play-state:running;visibility:visible}
.almas-site .hero-section .hero-video-card:hover .hero-play::before,.almas-site .hero-section .hero-video-card:hover .hero-play::after,.almas-site .hero-section .hero-video-card:focus-visible .hero-play::before,.almas-site .hero-section .hero-video-card:focus-visible .hero-play::after{visibility:hidden}
.almas-site .hero-catalog{transition:color .4s,background-color .4s,transform .4s,box-shadow .4s;max-width:100%}
.almas-site .hero-catalog:hover{transform:translateY(-5px);box-shadow:0 15px 35px #dfb56266}
.almas-site .hero-catalog:hover .catalog-pulse{color:var(--green)}
.almas-site .category-card{transition:transform .5s cubic-bezier(.165,.84,.44,1),border-color .5s,box-shadow .5s}
.almas-site .category-card:hover{transform:translateY(-15px);box-shadow:0 40px 80px #0000000d}
.almas-site .category-icon .k-icon{transition:color .4s,transform .4s}
.almas-site .category-card:hover .category-icon .k-icon{color:var(--gold);transform:scale(1.1)}
.almas-site .article-image img{transition:transform .6s}
.almas-site .article-card:hover .article-image img{transform:scale(1.1)}
.almas-site .nav-link::after{inset-inline-start:auto;left:50%;transform:translateX(-50%);transition:width .3s ease}
.almas-site .social-link{transition:color .3s,transform .3s}
.almas-site .social-link:hover{transform:translateY(-3px)}
.almas-site dialog[open]{animation:almas-dialog-reference .3s ease-out}
/* Native scroll navigation remains available if Swiper cannot initialize. */
.almas-site .article-carousel>.swiper-wrapper{display:contents}
.almas-site .article-carousel.swiper-initialized{display:block;overflow:hidden;scroll-snap-type:none;touch-action:pan-y}
.almas-site .article-carousel.swiper-initialized>.swiper-wrapper{display:flex;align-items:stretch}
.almas-site .article-carousel.swiper-initialized .swiper-slide{height:auto;flex-shrink:0;scroll-snap-align:none}
.almas-site .article-carousel.swiper-initialized .article-card{margin:0}
.almas-site .home-news{overflow:clip}
.almas-site .home-news .carousel-shell{min-width:0}

/* Keep this block after hover declarations: they must not replace the entrance
   transition list. Individual translate/scale also keep the tilted card intact. */
.almas-site .almas-reveal-ready{
  --almas-reveal-x:0px;--almas-reveal-y:0px;--almas-reveal-scale:1;
  opacity:1;translate:0 0;scale:1;
  transition:opacity var(--almas-reveal-duration,1000ms) ease var(--almas-reveal-delay,0ms),
    translate var(--almas-reveal-duration,1000ms) ease var(--almas-reveal-delay,0ms),
    scale var(--almas-reveal-duration,1000ms) ease var(--almas-reveal-delay,0ms),
    transform .5s cubic-bezier(.165,.84,.44,1),border-color .3s ease,box-shadow .5s ease,color .4s ease,background-color .4s ease;
}
.almas-site [data-almas-reveal=fade-left]{--almas-reveal-x:70px}
.almas-site [data-almas-reveal=fade-right]{--almas-reveal-x:-70px}
.almas-site [data-almas-reveal=fade-up]{--almas-reveal-y:70px}
.almas-site [data-almas-reveal=fade-up-right]{--almas-reveal-x:-70px;--almas-reveal-y:70px}
.almas-site [data-almas-reveal=zoom-in]{--almas-reveal-scale:.6}
.almas-site:dir(rtl) [data-almas-reveal=fade-left]{--almas-reveal-x:-70px}
.almas-site:dir(rtl) [data-almas-reveal=fade-right]{--almas-reveal-x:70px}
/* The card enters from its own side: left in LTR, right in RTL. */
.almas-site .hero-video-enter[data-almas-reveal=fade-up-right]{--almas-reveal-x:-70px}
.almas-site:dir(rtl) .hero-video-enter[data-almas-reveal=fade-up-right]{--almas-reveal-x:70px}
.almas-site .almas-reveal-ready:not(.almas-revealed){opacity:0;translate:var(--almas-reveal-x) var(--almas-reveal-y);scale:var(--almas-reveal-scale)}
.almas-site .almas-reveal-ready:focus-within{opacity:1;translate:0 0;scale:1;transition:none}

/* The hero starts completely outside the viewport, not 70px from its final
   position. JS measures the stationary parent once; transform is used here so
   the full travel cannot be overwritten by a generic reveal/hover declaration. */
.almas-site .hero-text[data-almas-reveal=hero-edge]{--almas-hero-entry-x:calc(100vw + 100%)}
.almas-site .hero-text[data-almas-reveal=hero-edge][data-almas-from=left]{--almas-hero-entry-x:calc(-100vw - 100%)}
.almas-site .hero-text.almas-reveal-ready{opacity:1;translate:none;scale:none;transform:translate3d(0,0,0);transition:transform var(--almas-reveal-duration,1500ms) ease var(--almas-reveal-delay,0ms)}
.almas-site .hero-text.almas-reveal-ready:not(.almas-revealed){opacity:1;translate:none;scale:none;transform:translate3d(var(--almas-hero-entry-x),0,0);transition:none}
.almas-site .hero-text.almas-reveal-ready:focus-within{transform:none;transition:none}


@keyframes almas-play-ring{0%{transform:scale(1);opacity:var(--ring-alpha)}70%,100%{transform:scale(var(--ring-scale));opacity:0}}
@keyframes almas-catalog-ping{0%{transform:scale(.5);opacity:1}100%{transform:scale(2.5);opacity:0}}
@keyframes almas-dialog-reference{from{opacity:0;transform:translateY(-50px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:991.98px) and (orientation:portrait){
  .almas-site .hero-section{height:auto;min-height:100svh;max-height:none;flex-direction:column;align-items:stretch;padding:140px 0 50px}
  .almas-site .hero-content{padding-top:0;align-self:auto}
  .almas-site .hero-copy{padding-top:0;max-width:100%;margin-inline:0}
  .almas-site .hero-video-enter{position:relative;inset:auto;margin:40px 0 0;margin-inline-start:48px;margin-inline-end:auto;width:min(290px,82vw);height:200px;flex:0 0 auto}
  .almas-site .hero-video-card,.almas-site:dir(ltr) .hero-video-card{transform:none;transform-origin:center}
  .almas-site .hero-video-card:hover,.almas-site .hero-video-card:focus-visible{transform:scale(1.05)}
  .almas-site .hero-scroll{display:none}
}
@media(max-width:800px) and (orientation:portrait){.almas-site .hero-video-enter{margin-inline-start:24px}}
@media(max-width:550px){.almas-site .hero-catalog{padding:14px 24px;gap:12px}}
@media(prefers-reduced-motion:reduce){
  .almas-site .almas-reveal-ready,.almas-site .almas-reveal-ready:not(.almas-revealed){opacity:1;translate:0 0;scale:1;transition:none}
  .almas-site .hero-text.almas-reveal-ready,.almas-site .hero-text.almas-reveal-ready:not(.almas-revealed){transform:none!important;transition:none}
  .almas-site .hero-play::before,.almas-site .hero-play::after,.almas-site .catalog-pulse::after{animation:none!important;visibility:hidden!important}
  .almas-site .hero-video-card:hover,.almas-site .category-card:hover,.almas-site .hero-catalog:hover{transform:none}
  .almas-site .swiper-wrapper{transition-duration:0ms!important}
}
