/* Motion: quiet and slow. Everything here is switched off for visitors who
   ask their device for reduced motion, and nothing sticks (the header stays put). */
@media (prefers-reduced-motion:no-preference){
  /* 1. Scroll reveal: the shapes fade up as they come into view (assets/js/motion.js adds .is-in). */
  .has-motion [data-reveal]{opacity:0;transform:translateY(22px);transition:opacity .9s cubic-bezier(.2,.7,.2,1),transform .9s cubic-bezier(.2,.7,.2,1);transition-delay:var(--d,0ms)}
  .has-motion [data-reveal].is-in{opacity:1;transform:none}

  /* 2. Hero: the lines come in one after the other. Plays once, on load. */
  @keyframes kn-rise{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
  .photohead .eyebrow,.photohead h1,.photohead .hero__sub,.photohead .hero__btns,.photohead .phead__sub,.phead .eyebrow,.phead h1,.thero .eyebrow,.thero h1,.thero__tag{animation:kn-rise 1s cubic-bezier(.2,.7,.2,1) both}
  .photohead .eyebrow,.phead .eyebrow,.thero .eyebrow{animation-delay:.1s}
  .photohead h1,.phead h1,.thero h1{animation-delay:.3s}
  .photohead .hero__sub,.photohead .phead__sub,.thero__tag{animation-delay:.95s}
  .photohead .hero__btns{animation-delay:1.15s}

  /* 3. Buttons and cards. */
  .btn{transition:background-color .3s,color .3s,border-color .3s,transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s}
  .btn:hover{transform:translateY(-2px);box-shadow:0 14px 24px -16px rgba(0,35,73,.55)}
  .btn:active{transform:none}
  .arrow::after{transition:width .5s cubic-bezier(.2,.7,.2,1)}
  .post:hover .post__img img,.post:hover figure img{transform:scale(1.05)}
  .mtown img,.more__grid img{transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
  .mtown:hover img{transform:scale(1.05)}
}
