/* Catalysty Motion Restoration — 2026-10-21.
   Deliberately changes effects ONLY, not section layout, image selections, colors or fonts.
   Animations are driven by IntersectionObserver + WAAPI, so content stays visible
   even when JavaScript is disabled or on full-page prints/screenshots. */
:root{--motion-ease:cubic-bezier(.16,1,.3,1);--motion-fast:280ms;--motion-mid:500ms}
html{scroll-behavior:smooth}
/* Navigation — smooth reveal, hover arrow, keyboard focus */
.site-header{transition:box-shadow .32s ease,background-color .32s ease}
.mainnav a,.footer-col a{transition:color .25s ease,opacity .25s ease}
.has-dropdown .downarrow{display:inline-block;transform-origin:center;transition:transform .3s var(--motion-ease)}
.has-dropdown:hover .downarrow,.has-dropdown:focus-within .downarrow,.has-dropdown.is-open .downarrow{transform:rotate(180deg)}
.has-dropdown.is-open .dropdown{visibility:visible;opacity:1;transform:translateY(0)}
.dropdown{transition:opacity .28s ease, transform .3s var(--motion-ease), visibility .28s}
.dropdown a{transition:background-color .23s,color .23s, transform .23s}
.dropdown a:hover{transform:translateX(3px)}
/* Important: retain original button dimensions while animating icon motion */
.btn,.nav-cta{transition:transform .3s var(--motion-ease),box-shadow .3s,background-color .3s,color .3s,border-color .3s}
.btn span[aria-hidden="true"],.nav-cta span[aria-hidden="true"],.readmore span,.case-arr,.corner-arrow{transition:transform .32s var(--motion-ease),background-color .32s ease}
.btn:hover span[aria-hidden="true"],.nav-cta:hover span[aria-hidden="true"],.readmore:hover span,.x-about-more:hover span{transform:translateX(5px)}
.btn:active,.nav-cta:active{transform:translateY(0) scale(.98)}
.x-case-card:hover .case-arr,.photo-card:hover .corner-arrow{transform:rotate(-35deg)}
/* Keep hover effects on all card/photo types and prevent image paint jitters */
.x-case-card,.x-blog-card,.x-process-card,.x-quote,.photo-card,.feature-card,.price-card{will-change:auto}
.x-case-card,.x-blog-card,.x-process-card,.photo-card{transition:transform .38s var(--motion-ease),box-shadow .36s ease}
.x-case-card:hover,.x-process-card:hover,.photo-card:hover{transform:translateY(-7px)}
.x-blog-card:hover{transform:translateY(-4px)}
.x-quote{transition:transform .38s var(--motion-ease),box-shadow .38s ease}
.x-quote:hover{transform:translateY(-5px);box-shadow:0 20px 45px rgba(0,0,0,.13)}
.case-thumb img,.blog-thumb img,.x-about-image>img,.x-process-card img,.photo-card>img{transition:transform .55s var(--motion-ease),filter .38s ease}
.x-case-card:hover .case-thumb img,.x-blog-card:hover .blog-thumb img,.x-process-card:hover img{transform:scale(1.045)}
/* Accordion: height animates smoothly via native max-height transition; text enters subtly */
.acc-row,.x-acc-row{transition:box-shadow .33s ease,background-color .33s ease,transform .33s var(--motion-ease)}
.acc-toggle:focus-visible,.menu-button:focus-visible,.btn:focus-visible,.nav-cta:focus-visible{outline:3px solid #c6f806;outline-offset:4px}
.acc-icon{transition:transform .38s var(--motion-ease),background-color .3s ease!important}
.acc-content{transition:max-height .52s var(--motion-ease),opacity .32s ease,padding .35s ease!important}
.acc-row.open .acc-copy,.x-acc-row.open .acc-copy{animation:accordion-content-in .43s var(--motion-ease) both}
@keyframes accordion-content-in{from{opacity:.45;translate:0 11px}to{opacity:1;translate:0 0}}
/* Scroll décor: isolated translate (does not overwrite base rotation/position) */
.x-panel-mark{will-change:translate}
.x-float-features{will-change:transform}
/* Mobile menu: animate without changing header placement or existing nav items */
.menu-button span{transition:transform .3s var(--motion-ease),opacity .22s ease}
.menu-button[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-button[aria-expanded="true"] span:nth-child(2){opacity:0}
.menu-button[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
@media(max-width:850px){
  .mainnav{display:flex!important;visibility:hidden;opacity:0;transform:translateY(-11px);pointer-events:none;transition:opacity .28s ease,transform .35s var(--motion-ease),visibility .28s}
  .mainnav.active{visibility:visible;opacity:1;transform:translateY(0);pointer-events:auto}
  .mainnav .has-dropdown .dropdown{display:none;visibility:hidden;opacity:0;transform:none}
  .mainnav .has-dropdown.is-open .dropdown{display:block;visibility:visible;opacity:1}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
  .x-panel-mark{translate:0 0!important}
}
