/* Kadrowanie zachowuje nieruchome podpisy, obrysy i pola kliknięcia. */
.kadr,
.hero-art picture {
  display: block;
  overflow: hidden;
}
.kadr { min-width: 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero-art img {
    animation: ustaw-kadr 2.8s cubic-bezier(.2,.65,.3,1) both;
  }
  .project-photo img,
  .kadr img {
    transition: transform .8s cubic-bezier(.2,.65,.3,1);
  }
  :is(.project-photo, .works a, .project-link):focus-visible img {
    transform: scale(1.035);
  }

  .button, .primary, .nav-contact, .filters button {
    transition: color .2s, background-color .2s, border-color .2s;
  }
  .button b, .inline b, .nav-contact span, #compose span {
    display: inline-block;
    transition: transform .25s ease-out;
  }
  :is(.button, .inline, .nav-contact, #compose):focus-visible :is(b, span) {
    transform: translateY(-2px);
  }
  .sekcja-w-kadrze {
    animation: wejscie-naglowka .55s ease-out both;
  }
  @keyframes ustaw-kadr {
    from { scale: 1.04; }
    to { scale: 1; }
  }
  @keyframes wejscie-naglowka {
    from { opacity: .78; translate: 0 6px; }
    to { opacity: 1; translate: 0 0; }
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  :is(.project-photo, .works a, .project-link):hover img {
    transform: scale(1.035);
  }
  :is(.inline, .nav-contact, #compose):hover :is(b, span) {
    transform: translate(2px, -2px);
  }
  .intro .button:hover b { transform: translateY(3px); }
  .contact .button:hover b { transform: translate(2px, -2px); }
}

@media (prefers-reduced-motion: no-preference) and (hover: none) {
  .zdjecie-w-kadrze img {
    animation: ustaw-kadr .95s ease-out both;
  }
}
