/* Massimobility | Motion & Polish production pass. Visual effects only; core layouts and data preserved. */
:root { --polish-ease:cubic-bezier(.2,.75,.25,1); }
.site-header{box-shadow:0 10px 38px rgba(2,16,28,.10); transition:box-shadow .3s var(--polish-ease),background-color .3s var(--polish-ease)}
.nav a,.nav-dropdown-toggle,.nav-cta,.button,.filter{transition:color .22s ease,background-color .22s ease,border-color .22s ease,box-shadow .28s ease,transform .28s var(--polish-ease)}
.button:hover,.nav-cta:hover{transform:translateY(-2px);box-shadow:0 10px 25px rgba(0,0,0,.15)}
.button:active,.nav-cta:active{transform:translateY(0)}
:where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #42bce8;outline-offset:3px}
/* Consistent card treatment without changing their positions, actions, or readability. */
:where(.load-card,.area-card,.movement-card,.quiz-card,.feature-card,.region-card,.topic-card,.flashcard-option){transition:transform .32s var(--polish-ease),box-shadow .32s var(--polish-ease),border-color .32s ease}
@media(hover:hover) and (pointer:fine){:where(.load-card,.area-card,.movement-card,.feature-card,.region-card,.topic-card):hover{transform:translateY(-3px);box-shadow:0 18px 42px rgba(6,27,42,.11)}}
/* Respect visual composition of the original square image: NEVER crop the runner's head. */
body[data-page="index.html"] .hero-media{display:grid;place-items:center;isolation:isolate;background:radial-gradient(ellipse at 60% 42%,#123f54 0%,#061b2a 76%)}
body[data-page="index.html"] .hero-media img{position:relative;width:100%;height:100%;max-height:760px;min-height:0;object-fit:contain;object-position:center center;filter:drop-shadow(0 12px 30px rgba(0,0,0,.20))}
body[data-page="index.html"] .hero-media:after{pointer-events:none;background:linear-gradient(90deg,var(--navy),transparent 26%);opacity:.5}
@media(min-width:901px){body[data-page="index.html"] .hero-media{min-height:650px}body[data-page="index.html"] .hero-media img{max-width:min(100%,760px)}}
/* Entry motion enhances the existing layout; content stays accessible without JS. */
@media(prefers-reduced-motion:no-preference){
 body[data-page="index.html"] .hero-copy .eyebrow{animation:polish-in .58s var(--polish-ease) both}
 body[data-page="index.html"] .hero h1{animation:polish-in .78s .08s var(--polish-ease) both}
 body[data-page="index.html"] .hero-text{animation:polish-in .76s .16s var(--polish-ease) both}
 body[data-page="index.html"] .hero-actions{animation:polish-in .72s .22s var(--polish-ease) both}
 body[data-page="index.html"] .hero-media img{animation:polish-image-in 1s .08s var(--polish-ease) both}
 .polish-js .polish-reveal{opacity:0;transform:translateY(15px);transition:opacity .58s ease,transform .65s var(--polish-ease)}
 .polish-js .polish-reveal.polish-visible{opacity:1;transform:none}
 @keyframes polish-in{from{opacity:0;transform:translateY(17px)}to{opacity:1;transform:none}}
 @keyframes polish-image-in{from{opacity:0;transform:scale(.975)}to{opacity:1;transform:scale(1)}}
}
@media(max-width:900px){body[data-page="index.html"] .hero-media{min-height:0}body[data-page="index.html"] .hero-media img{min-height:0;max-height:490px;object-fit:contain}}
@media(max-width:580px){body[data-page="index.html"] .hero-media img{height:auto;max-height:none;width:100%;object-fit:contain}body[data-page="index.html"] .hero-media:after{background:linear-gradient(180deg,transparent 75%,var(--navy))}}
@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
