/* Cool Huskies motion layer. Progressive: every effect is optional and off for reduced motion. */
html{scroll-behavior:smooth}
:target{scroll-margin-top:90px}
::selection{background:#bfe3e6;color:#10292e}
:root{accent-color:#25636d}
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.28s}

/* Pressed feedback on buttons and chips */
.mg-btn,.share-button,.gal-chip,.gal-shuffle,.menu-button,.site-search-trigger,.nav-library-toggle{transition:scale .12s ease,background-color .2s,color .2s,box-shadow .2s}
.mg-btn:active,.share-button:active,.gal-chip:active,.gal-shuffle:active,.menu-button:active,.site-search-trigger:active{scale:.96}

/* Pointer spotlight on cards (position set by motion-r1.js) */
@media (hover:hover) and (pointer:fine){
 .tools-card,.mg-tile,.mg-card,.rail-card{position:relative;isolation:isolate}
 .tools-card::after,.mg-tile::after,.mg-card::after,.rail-card::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:2;opacity:0;transition:opacity .3s ease;background:radial-gradient(260px circle at var(--mx,50%) var(--my,50%),rgba(255,255,255,.38),rgba(255,255,255,0) 60%);mix-blend-mode:soft-light}
 .tools-card:hover::after,.mg-tile:hover::after,.mg-card:hover::after,.rail-card:hover::after{opacity:1}
}

@media (prefers-reduced-motion:no-preference){
 @supports (animation-timeline:view()){
  /* Cards and figures rise into place as they scroll in */
  @keyframes ch-rise{from{opacity:0;translate:0 26px;scale:.985}to{opacity:1;translate:0 0;scale:1}}
  .mg-tile,.mg-card,.mg-tool,.rail-card,.tools-card,.article-fig,.article-faq-item,.gal-item,.mg-wall-i,.tools-group-head,.article-sub{animation:ch-rise linear both;animation-timeline:view();animation-range:entry 0% entry 70%}
  /* Hero photos settle from a gentle zoom as the page scrolls */
  @keyframes ch-settle{from{scale:1}to{scale:1.07}}
  .article-hero-figure img,.tools-hero-figure img,.gal-hero-fig img,.mg-cover img{animation:ch-settle linear both;animation-timeline:view();animation-range:exit 0% exit 100%}
  .article-hero-figure,.tools-hero-figure,.gal-hero-fig{overflow:hidden}
  /* Reading progress on articles */
  @keyframes ch-progress{from{scale:0 1}to{scale:1 1}}
  .article-page::before{content:"";position:fixed;inset:0 0 auto 0;height:3px;z-index:60;transform-origin:0 50%;background:linear-gradient(90deg,#25636d,#5fb3b9,#e0a458);animation:ch-progress linear both;animation-timeline:scroll(root);pointer-events:none}
 }
 /* Arrow nudge on inline links and "more" links */
 .mg-more,.back{transition:translate .2s ease}
 .mg-more:hover{translate:3px 0}
 .back:hover{translate:-3px 0}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}@view-transition{navigation:none}}
