/* Grosvenor.Solutions motion layer (6 Dec 2026). Loaded by gs-motion.php; delete that file to switch it all off.
   Only opacity and transform/translate are animated. Everything is visible without JavaScript:
   gs-motion.js adds .gs-rv only to content BELOW the fold, and only when motion is allowed. */

/* 1. Scroll reveal. Uses the separate `translate` property so a hover lift (`transform`) can combine with it. */
html.gs-motion .gs-rv{opacity:0;translate:0 14px;
 transition:opacity .6s ease-out var(--gs-d,0ms),translate .7s cubic-bezier(.2,.7,.2,1) var(--gs-d,0ms),transform .2s ease,box-shadow .2s ease,border-color .2s ease,background-color .15s ease,color .15s ease}
html.gs-motion .gs-rv.gs-in{opacity:1;translate:0 0}
@media print{html.gs-motion .gs-rv{opacity:1 !important;translate:none !important}}

/* 2. Hover and keyboard focus: cards, pricing plans and tiles lift gently. */
.gsr :is(.gsr-card,.gsr-tier,.gsr-route,.gsr-banner){transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.gsr :is(.gsr-card,.gsr-tier,.gsr-route,.gsr-banner):is(:focus-visible,:has(:focus-visible)){transform:translateY(-3px);box-shadow:0 10px 26px rgba(15,23,41,.09)}
.gsr .gsr-card:is(:focus-visible,:has(:focus-visible)){border-color:#CBD2DC}
@media (hover:hover){
 .gsr :is(.gsr-card,.gsr-tier,.gsr-route,.gsr-banner):hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(15,23,41,.09)}
 .gsr .gsr-card:hover{border-color:#CBD2DC}
 .gsr .gsr-tier.gsr-pop:hover{box-shadow:0 14px 34px rgba(15,23,41,.12)}
}
/* Toolkit tiles already lift on hover (page CSS); give keyboard users the same. */
:is(.gsh-card,.gsh-cat-card):focus-visible{border-color:#14B8A6;transform:translateY(-3px);box-shadow:0 10px 28px rgba(20,184,166,.10)}

/* Buttons deepen (gs-design.css) and their arrow nudges; gs-motion.js wraps a trailing arrow in .gs-arr. */
.gs-arr{display:inline-block;transition:transform .2s ease}
a:is(:hover,:focus-visible) .gs-arr{transform:translateX(3px)}
.gsr .gsr-btn{transition:background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease}
.gsr .gsr-btn-p:is(:hover,:focus-visible){box-shadow:0 4px 14px rgba(15,23,41,.16)}

/* Inline text links with no underline of their own: an underline draws in (.gs-ul added by gs-motion.js). */
.gs-ul{background-image:linear-gradient(currentColor,currentColor);background-repeat:no-repeat;background-position:0 100%;background-size:0 1px;transition:background-size .25s ease,color .15s ease}
.gs-ul:is(:hover,:focus-visible){background-size:100% 1px}

/* 3. Count-up: the real figure stays in the page (transparent while a visual copy counts, aria-hidden). */
.gs-cu{position:relative;white-space:nowrap}
.gs-cu.gs-counting>.gs-cu-r{color:transparent}
.gs-cu-v{position:absolute;left:0;top:0;white-space:nowrap;pointer-events:none}

/* 4. Sticky header shadow (only applied if the header is actually sticky or fixed). */
.gs-hdr{transition:box-shadow .25s ease}
.gs-hdr.gs-scrolled{box-shadow:0 6px 20px rgba(15,23,41,.08)}

/* 5. Accent under the page's main headline: the H1, or the large tagline that follows a small keyword H1. */
.gsr :is(h1:not(.gsr-h1kw),.gsr-h1kw:not(:has(+ .gsr-tagline)),.gsr-h1kw + .gsr-tagline){position:relative}
.gsr :is(h1:not(.gsr-h1kw),.gsr-h1kw:not(:has(+ .gsr-tagline)),.gsr-h1kw + .gsr-tagline)::after{content:"";position:absolute;left:0;bottom:-12px;width:56px;height:3px;border-radius:2px;background:linear-gradient(90deg,#0D9488,#5EEAD4);transform-origin:left center;pointer-events:none}
.gsr .gsr-h1kw:not(:has(+ .gsr-tagline))::after{bottom:-8px}
.gsr .gsr-center :is(h1,.gsr-tagline)::after{left:calc(50% - 28px);transform-origin:center}
@media (prefers-reduced-motion:no-preference){
 .gsr :is(h1:not(.gsr-h1kw),.gsr-h1kw:not(:has(+ .gsr-tagline)),.gsr-h1kw + .gsr-tagline)::after{animation:gs-draw .7s cubic-bezier(.2,.7,.2,1) .25s both}
}
@keyframes gs-draw{from{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}

/* 6. Homepage hero: a very soft teal glow that drifts slowly (still under reduced motion). */
body.home .gsr .gsr-sec:has(> .gsr-hero){position:relative;isolation:isolate;overflow:clip}
body.home .gsr .gsr-sec:has(> .gsr-hero)::before{content:"";position:absolute;inset:-10%;z-index:-1;pointer-events:none;
 background:radial-gradient(36% 38% at 84% 40%,rgba(94,234,212,.18),rgba(94,234,212,0) 72%)}
@media (prefers-reduced-motion:no-preference){
 body.home .gsr .gsr-sec:has(> .gsr-hero)::before{animation:gs-drift 24s ease-in-out infinite alternate}
}
@keyframes gs-drift{from{transform:translate3d(-2%,1%,0) scale(1)}to{transform:translate3d(2%,-2%,0) scale(1.06)}}

/* Reduced motion: no movement anywhere; colour and shadow changes only. */
@media (prefers-reduced-motion:reduce){
 html.gs-motion .gs-rv{opacity:1 !important;translate:none !important;transition:none !important}
 .gsr :is(.gsr-card,.gsr-tier,.gsr-route,.gsr-banner):is(:hover,:focus-visible,:has(:focus-visible)),
 :is(.gsh-card,.gsh-cat-card):is(:hover,:focus-visible){transform:none !important}
 a:is(:hover,:focus-visible) .gs-arr{transform:none}
 .gs-ul{transition:none}
}
