/* 2026-11-18 motion additions. Every rule is gated by html.motion, which the head snippet sets
   only when the visitor has NOT asked for reduced motion. Opacity and transform only.
   Tokens: fast 100ms, normal 200ms, moderate 300ms. Enter easing (0,0,.2,1), move (.4,0,.2,1). */

/* 1. Video play button: a soft ring pulses twice, then stops. 1600ms ease-in-out. */
html.motion .portal-video-circle,html.motion .fall-play-circle{position:relative}
html.motion .portal-video-circle:after,html.motion .fall-play-circle:after{content:'';position:absolute;inset:0;border-radius:50%;border:2px solid #fff;opacity:0;pointer-events:none;animation:aig-ring 1600ms cubic-bezier(.4,0,.2,1) 1200ms 2}
@keyframes aig-ring{0%{opacity:.7;transform:scale(1)}100%{opacity:0;transform:scale(1.55)}}

/* 2. Buttons: press down 1px (100ms), colour eases (200ms). */
html.motion .button{transition:background-color 200ms cubic-bezier(.4,0,.2,1),border-color 200ms cubic-bezier(.4,0,.2,1),transform 100ms cubic-bezier(0,0,.2,1)}
html.motion .button:active{transform:translateY(1px)}

/* 3. FAQ accordion: the answer eases open, 250ms. */
html.motion details[open]>:not(summary){animation:aig-open 250ms cubic-bezier(0,0,.2,1)}
@keyframes aig-open{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

/* 4. Nav dropdown: fades in with a 6px slide, 150ms. */
html.motion .nav-drop[open]>.nav-drop-menu{animation:aig-drop 150ms cubic-bezier(0,0,.2,1)}
@keyframes aig-drop{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

/* 5. Filters (testimonials, articles): cards that appear fade up, 250ms, 30ms stagger capped at 6.
   content.js adds .is-filtered when it first renders the list, so the first cards also ease in on load. */
html.motion .is-filtered>:not([hidden]){animation:aig-card 250ms cubic-bezier(0,0,.2,1) both}
html.motion .is-filtered>:not([hidden]):nth-child(2){animation-delay:30ms}
html.motion .is-filtered>:not([hidden]):nth-child(3){animation-delay:60ms}
html.motion .is-filtered>:not([hidden]):nth-child(4){animation-delay:90ms}
html.motion .is-filtered>:not([hidden]):nth-child(5){animation-delay:120ms}
html.motion .is-filtered>:not([hidden]):nth-child(n+6){animation-delay:150ms}
@keyframes aig-card{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* 6. Card hover: lift 2px with a soft shadow, 200ms. Pointer devices only. */
@media(hover:hover){
 html.motion .post-card,html.motion .testimonial-card{transition:transform 200ms cubic-bezier(.4,0,.2,1),box-shadow 200ms cubic-bezier(.4,0,.2,1)}
 html.motion .post-card:hover,html.motion .testimonial-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px #0000001a}
}

/* 7. Ask Iris chip: slides in once after 4s, then stays still. 300ms. backwards fill keeps .ai-hide working. */
html.motion .ai-btn{animation:aig-chip 300ms cubic-bezier(0,0,.2,1) 4s backwards}
@keyframes aig-chip{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
