/* Portfolio effects, second layer (pairs with portfolio-fx-20261116.js). Inert until the script adds its classes.
   Does not restyle anything the page or portfolio-motion-20261116.css already styles. */
@property --pfx-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.pfx-host { position: relative; }
.pfx-persp { perspective: 1100px; }

/* Click spark */
.pfx-spark { position: fixed; z-index: 2147483000; width: 0; height: 0; pointer-events: none; }
.pfx-spark i { position: absolute; left: -1px; top: -5px; width: 2px; height: 10px; border-radius: 2px; background: #0071e3; transform-origin: 50% 5px; }
.pfx-spark i:nth-child(even) { background: #6f35ff; }

/* Sheen across the small card labels: the label keeps its own colour, a lighter band passes through it */
.pfx-shine {
  background: linear-gradient(105deg, currentColor 42%, #8cc4ff 50%, currentColor 58%) 100% 0 / 260% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: pfx-shine 6s cubic-bezier(.65, 0, .35, 1) infinite;
}
/* The band image is 260% wide and does not repeat: it covers the whole label only while its position stays within 0% to 100% */
@keyframes pfx-shine { 0%, 40% { background-position: 100% 0; } 85%, 100% { background-position: 0% 0; } }

/* Orbiting edge light on the contact call to action */
.pfx-star {
  position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--pfx-a), transparent 0 62%, #6f35ff 80%, #9fcaff 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: pfx-orbit 4.5s linear infinite;
}
@keyframes pfx-orbit { to { --pfx-a: 360deg; } }

/* Dot field: sits with the page's own ambient layers, under all content */
body > canvas.pfx-dots {
  position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, .5) 100%); mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, .5) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .pfx-star, .pfx-spark { display: none; }
  .pfx-shine { animation: none; background: none; -webkit-text-fill-color: currentColor; }
}
@media print {
  .pfx-dots, .pfx-star, .pfx-spark { display: none !important; }
}
