/* Content stays visible before JS, after a script error, and with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .is-arriving { animation: gentle-arrival .48s cubic-bezier(.2,.65,.3,1) both; }
  .mascot-button.is-greeting .mascot-image { animation: mascot-hello .55s ease-out; }
  .work-visual { transition: transform .25s ease, box-shadow .25s ease; }
  .work-card:focus-within .work-visual { transform: translateY(-3px); box-shadow: 0 8px 20px #0827460b; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .work-card:hover .work-visual { transform: translateY(-3px); box-shadow: 0 8px 20px #0827460b; }
}
@keyframes gentle-arrival {
  from { opacity: .65; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes mascot-hello {
  0%,100% { transform: rotate(0); }
  30% { transform: translateY(-5px) rotate(-7deg); }
  65% { transform: translateY(-3px) rotate(6deg); }
}
.mascot-button { display:block; padding:0; border:0; background:transparent; min-width:44px; min-height:44px; overflow:visible; cursor:pointer; isolation:isolate; }
.mascot-button .mascot-image { width:100%; height:100%; object-fit:contain; transform-origin:50% 85%; }
.mascot-button::before { content:''; position:absolute; inset:8% 0 18%; border-radius:50%; background:var(--yellow); opacity:0; z-index:-1; pointer-events:none; }
.mascot-button.is-greeting::before { opacity:.6; }
.mascot-greeting { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media (prefers-reduced-motion: reduce) {
  .is-arriving, .mascot-button .mascot-image { animation:none!important; }
}
