/* Front-end motion: scroll reveal + hover effects. Classes are added by assets/js/motion.js,
   so the editors and no-JS visitors always see the content. */
.ar-motion .ar-reveal{opacity:0;transform:translateY(22px);transition:opacity .7s cubic-bezier(.2,.8,.2,1),transform .7s cubic-bezier(.2,.8,.2,1);transition-delay:var(--ar-d,0ms);will-change:opacity,transform}
.ar-motion .ar-reveal.ar-in{opacity:1;transform:none}
.ar-motion .ar-reveal-img{opacity:0;transform:scale(.97);transition:opacity .9s ease,transform 1.1s cubic-bezier(.2,.8,.2,1);transition-delay:var(--ar-d,0ms)}
.ar-motion .ar-reveal-img.ar-in{opacity:1;transform:none}

/* Cards: lift, soft shadow, border tint */
.ar-card{transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s ease,border-color .35s ease,background-color .35s ease}
.ar-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px -18px rgba(18,24,38,.28);border-color:#C9D3E3 !important}
.ar-card.ar-dark:hover{border-color:rgba(255,255,255,.32) !important;box-shadow:0 18px 40px -18px rgba(0,0,0,.6)}
.ar-motion .ar-card.ar-reveal.ar-in:hover{transform:translateY(-4px)}

/* Images inside clipped frames: slow zoom on hover of the card/frame */
.ar-zoom img{transition:transform .9s cubic-bezier(.2,.8,.2,1),filter .6s ease}
.ar-card:hover .ar-zoom img,.ar-zoom:hover img{transform:scale(1.06)}

/* Logo tiles: subtle colour reveal */
.ar-logo img{filter:grayscale(1) contrast(.9);opacity:.8;transition:filter .4s ease,opacity .4s ease,transform .4s ease}
.ar-logo:hover img{filter:none;opacity:1;transform:scale(1.05)}

/* Buttons and button-like links */
.ar-btn{transition:transform .25s ease,box-shadow .25s ease,background-color .25s ease,color .25s ease,border-color .25s ease}
.ar-btn:hover{transform:translateY(-2px);box-shadow:0 10px 22px -10px rgba(18,24,38,.45)}
.ar-btn>span:last-child{transition:transform .25s ease}
.ar-btn:hover>span:last-child{transform:translateX(-4px)}
.ar-page a:not(.ar-btn):not(.ar-stretch){transition:color .2s ease,opacity .2s ease}

/* Headings: accent underline draws in when revealed */
.ar-motion h2.ar-reveal{position:relative}

/* Hero entrance */
.ar-motion .ar-hero-in{animation:ar-rise .9s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--ar-d,0ms)}
@keyframes ar-rise{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}

/* Header shadow when scrolled */
.sitehdr[data-scrolled]{box-shadow:0 10px 30px -18px rgba(0,0,0,.6)}

@media (prefers-reduced-motion:reduce){
	.ar-motion .ar-reveal,.ar-motion .ar-reveal-img{opacity:1;transform:none;transition:none}
	.ar-card,.ar-btn,.ar-zoom img,.ar-logo img{transition:none}
	.ar-card:hover,.ar-btn:hover{transform:none}
	.ar-motion .ar-hero-in{animation:none}
}
