/* Moving between krafterai.hr's pages (14 Nov 2026; the user: going to the privacy page should not feel like going to
   another page, "da se desi fora tranzicija"). A cross-document view transition: the new page grows in as the K,
   from where the visitor clicked (transition.js passes the point on), like the flip on the home page; the old page
   stands still under it until the K covers the window. --ks is the K's size per logo unit; it ends at --ke, which
   transition.js works out from the window and the point (the K's inner edge just past the farthest corner; 110 px,
   enough for a large screen, if the script has not run). Browsers
   without cross-document view transitions (Firefox) simply open the page. */
@view-transition { navigation: auto; }
@property --ks { syntax: '<length>'; inherits: true; initial-value: 0px; }
:root { --kx: 50vw; --ky: 50vh; }
::view-transition-group(root) { animation-duration: .95s; }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) {
  animation: krafterai-k .95s cubic-bezier(.7, 0, .3, 1) both;
  clip-path: polygon(
    calc(var(--kx) + -3 * var(--ks)) calc(var(--ky) + -49 * var(--ks)),
    calc(var(--kx) + 49 * var(--ks)) calc(var(--ky) + -49 * var(--ks)),
    calc(var(--kx) + 49 * var(--ks)) calc(var(--ky) + -33 * var(--ks)),
    calc(var(--kx) + 25 * var(--ks)) calc(var(--ky) + -9 * var(--ks)),
    calc(var(--kx) + 49 * var(--ks)) calc(var(--ky) + 15 * var(--ks)),
    calc(var(--kx) + 49 * var(--ks)) calc(var(--ky) + 49 * var(--ks)),
    calc(var(--kx) + 15 * var(--ks)) calc(var(--ky) + 49 * var(--ks)),
    calc(var(--kx) + -6 * var(--ks)) calc(var(--ky) + 28 * var(--ks)),
    calc(var(--kx) + -27 * var(--ks)) calc(var(--ky) + 49 * var(--ks)),
    calc(var(--kx) + -49 * var(--ks)) calc(var(--ky) + 49 * var(--ks)),
    calc(var(--kx) + -49 * var(--ks)) calc(var(--ky) + -3 * var(--ks)));
}
@keyframes krafterai-k { from { --ks: 0px; } to { --ks: var(--ke, 110px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(root) { animation: none; clip-path: none; }
}
