@media (prefers-reduced-motion: no-preference) {
  :root { --background-zoom: photo-zoom 7s cubic-bezier(.22,.62,.32,1) both; }
  .photo-enter:not(.legal-cover) { animation: var(--background-zoom); }
  .copy-enter { animation: copy-arrival .85s cubic-bezier(.2,.72,.28,1) var(--copy-delay, 0ms) backwards; }
  @keyframes photo-zoom {
    from { scale: 1; }
    to { scale: var(--photo-end-scale, 1.045); }
  }
  @keyframes copy-arrival {
    from { opacity: 0; translate: 0 .8rem; }
    to { opacity: 1; translate: 0 0; }
  }
}

@media (min-width: 801px) and (prefers-reduced-motion: no-preference) {
  .entry-pending { opacity: 0; }
  .copy-enter, .company-story p.copy-enter {
    animation-duration: .8s;
    animation-timing-function: cubic-bezier(.36,.08,.23,1);
  }
  .entry-pending:focus-within, .copy-enter:focus-within {
    opacity: 1;
    animation: none;
  }
}

@media (min-width: 801px) and (prefers-reduced-motion: no-preference) {
  .copy-enter, .company-story p.copy-enter, .method-card.card-enter {
    animation-name: desktop-arrival;
  }
  @keyframes desktop-arrival {
    from { opacity: 0; translate: 0 1rem; }
    to { opacity: 1; translate: 0 0; }
  }
}

@media (max-width: 750px) and (prefers-reduced-motion: no-preference),
  (pointer: coarse) and (hover: none) and (max-height: 540px) and (max-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .legal-cover.photo-enter::before { animation: var(--background-zoom); }
  .company-photo img.photo-enter { animation: none; }
}

@media (max-width: 800px) {
  :root { --photo-end-scale: 1.022; }
  .hero-photos img { transform-origin: var(--mobile-focus, center); }
  .hero-photos img.previous { scale: var(--photo-end-scale); }
  .company-scene .chapter-backdrop { transform-origin: var(--focus, center); }
  .chapter-image { transform-origin: var(--image-position, center); }
}
@media (max-width: 800px) and (prefers-reduced-motion: no-preference) {
  .entry-pending:not(:focus-within) { opacity: 0; }
  .copy-enter, .company-story p.copy-enter, .method-card.card-enter {
    animation-duration: .65s;
    animation-timing-function: cubic-bezier(.27,.12,.24,1);
    animation-delay: var(--copy-delay, 0ms);
  }
  .copy-enter:focus-within, .method-card.card-enter:focus-within { animation: none; }
}
