/* ==========================================================
   Harbal — page transitions (simple fade, no curtain)
   • Every page load and refresh: the page fades in.
   • Clicking a link to another page: the page fades out,
     then the next page opens (assets/page-transitions.js).
   Opacity only, so sticky / fixed parts keep working.
   ========================================================== */

@view-transition { navigation: none; }

body > div, body > main, body > section, body > footer {
  animation: pt-in .6s ease both;
}
@keyframes pt-in { from { opacity: 0; } to { opacity: 1; } }

html.pt-leaving body > div, html.pt-leaving body > main,
html.pt-leaving body > section, html.pt-leaving body > footer {
  animation: pt-out .32s ease both;
}
@keyframes pt-out { from { opacity: 1; } to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  body > div, body > main, body > section, body > footer,
  html.pt-leaving body > div, html.pt-leaving body > main,
  html.pt-leaving body > section, html.pt-leaving body > footer { animation: none; }
}
