/* shared interactivity layer for the-creative-body and muse-map */
html{scroll-padding-top:84px}

/* nav: underline grows from the left, scrollspy keeps the current section lit */
.nav-links a{position:relative;padding:.35rem 0}
.nav-links a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.nav-links a:hover::after,.nav-links a.active::after{transform:scaleX(1)}
.nav-links a.active{color:var(--nav-active,currentColor)}
nav{transition:box-shadow .4s}
nav.scrolled{box-shadow:0 12px 40px -18px rgba(0,0,0,.35)}

/* faq answers grew with the bigger type, so give them room */
.faq-item.open .faq-a{max-height:900px}

/* cards: lift, soft spotlight that follows the cursor */
.c-card,.s-card,.incl-item,.p-card,.phase-card,.testi-card,.t-bubble,.outcome-item,.t-card{
  transition:translate .5s cubic-bezier(.2,.7,.2,1),box-shadow .5s cubic-bezier(.2,.7,.2,1),border-color .4s,background-color .4s,opacity 1.1s ease,transform 1.1s ease,filter 1.1s ease}
@media (hover:hover) and (pointer:fine){
  .c-card:hover,.s-card:hover,.incl-item:hover,.p-card:hover,.phase-card:hover,.testi-card:hover,.t-bubble:hover,.outcome-item:hover,.t-card:hover{
    translate:0 -7px;
    box-shadow:0 26px 60px -26px var(--lift,rgba(40,20,10,.35));
    background-image:radial-gradient(460px circle at var(--mx,50%) var(--my,0%),var(--spot,rgba(255,255,255,.14)),transparent 45%)}
  .btn,.nav-cta{translate:var(--tx,0) var(--ty,0);transition:translate .35s cubic-bezier(.2,.7,.2,1),transform .35s cubic-bezier(.2,.7,.2,1),background .3s,box-shadow .35s,color .3s}
}

/* section titles: words rise into place as the section arrives */
html.js-polish .wr{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.14em;margin-bottom:-.14em}
html.js-polish .wr>span{display:inline-block;transform:translateY(112%);transition:transform 1.05s cubic-bezier(.2,.7,.2,1);transition-delay:calc(var(--i,0)*75ms + .1s)}
html.js-polish .on .wr>span,html.js-polish .wr.in>span{transform:none}

@media (prefers-reduced-motion:reduce){
  html.js-polish .wr>span{transform:none;transition:none}
  .c-card:hover,.s-card:hover,.incl-item:hover,.p-card:hover,.phase-card:hover,.testi-card:hover{translate:none}
  .btn,.nav-cta{translate:none!important}
}

/* phones: the stage cards were forced into two cramped columns by an inline span, so stack them */
@media (max-width:768px){
  .session-grid .s-card{grid-column:auto!important}
}
