/*
 * Motion layer (2026-10-29, client corrections §2): a little more life on
 * every page without changing the layout. Slow drift on large photographs,
 * lift and zoom on cards and portraits, a gentle float on the hero's
 * cards. Transforms and opacity only (no layout work), and nothing at all
 * for visitors who ask for reduced motion. Loaded on every public page
 * (includes/header.php).
 */
@media (prefers-reduced-motion: no-preference) {
  /* Large photographs drift slowly (Ken Burns), inside their own frames. */
  .hz-frame-in img, .hz-band-photo img, .hs-photo img, .hg-photo img, .hw-photo img, .po-mosaic-tile img {
    animation: mo-drift 22s ease-in-out infinite alternate; transform-origin: 60% 40%;
  }
  .hg-photo img { animation-duration: 28s; }

  /* The hero's cards float, each a little out of step. */
  .hz-card { animation: mo-float 6s ease-in-out infinite; }
  .hz-card--path { animation-delay: -2s; }
  .hz-card--two { animation-delay: -4s; }
  .hz-card:hover { animation-play-state: paused; }

  /* Cards lift; their photos zoom a touch. */
  .hc-card, .pg-card, .dx-card, .pf-card, .hp-photo, .hf-photo, .hj-option {
    transition: transform 260ms cubic-bezier(.2,.7,.2,1), box-shadow 260ms ease;
  }
  .hc-card:hover, .pg-card:hover, .dx-card:hover, .pf-card:hover, .hj-option:hover {
    transform: translateY(-5px); box-shadow: 0 26px 48px -30px rgb(6 17 31 / 0.55);
  }
  .hc-card img, .pg-card img, .dx-card-media img, .pf-card img, .hp-photo img, .hf-photo img, .mou-card img {
    transition: transform 700ms cubic-bezier(.2,.7,.2,1);
  }
  .hc-card:hover img, .pg-card:hover img, .dx-card:hover .dx-card-media img, .pf-card:hover img,
  .hp-photo:hover img, .hf-photo:hover img, .mou-card:hover img { transform: scale(1.06); }

  /* Result portraits breathe while they are moving past. */
  .hr-mq-photo { animation: mo-ring 5s ease-in-out infinite; }
  .hr-mq-item:nth-child(3n) .hr-mq-photo { animation-delay: -1.6s; }
  .hr-mq-item:nth-child(3n+1) .hr-mq-photo { animation-delay: -3.2s; }
}

@keyframes mo-drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
@keyframes mo-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -7px, 0); } }
@keyframes mo-ring { 0%, 100% { box-shadow: 0 0 0 0 rgb(212 168 67 / 0); } 50% { box-shadow: 0 0 0 5px rgb(212 168 67 / 0.22); } }
