/* Background "flight paths": PallyPilot pilots your everyday jobs.
   A very faint, slow layer behind the whole page: dotted flight paths, small work shapes
   (document, sheet, slide, PDF, chat, pointer) travelling along them, and soft ✓ marks.
   Generic shapes only, no product logos. Decorative: hidden from screen readers. */
.bgfx { position: fixed; inset: 0; z-index: 0; pointer-events: none; color: var(--brand); opacity: 0.12; }
@media (prefers-color-scheme: dark) { .bgfx { color: #a99cff; opacity: 0.14; } }
.bgfx svg { width: 100%; height: 100%; display: block; }
.bgfx .fp { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 12; animation: bgfx-dash 6s linear infinite; }
.bgfx .fp.slow { animation-duration: 9s; }
.bgfx .mv { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.bgfx .mv .fill { fill: currentColor; stroke: none; }
.bgfx .ok { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; opacity: 0; animation: bgfx-ok 12s ease-in-out infinite; }
.bgfx .ok.o2 { animation-delay: 4s; }
.bgfx .ok.o3 { animation-delay: 8s; }
@keyframes bgfx-dash { to { stroke-dashoffset: -56; } }
@keyframes bgfx-ok {
  0%, 70%, 100% { opacity: 0; transform: scale(0.6); }
  78% { opacity: 1; transform: scale(1.1); }
  86% { opacity: 1; transform: scale(1); }
  94% { opacity: 0; transform: scale(1); }
}
/* Everything readable stays above the layer. */
main, .site-footer { position: relative; z-index: 1; }  /* the header is already sticky with z-index 50 */
/* Grey sections let the flight paths show through faintly. */
.section-soft { background: color-mix(in srgb, var(--bg-soft) 86%, transparent); }
/* Less motion wanted: keep the still drawing, no travelling shapes. */
@media (prefers-reduced-motion: reduce) {
  .bgfx .fp, .bgfx .ok { animation: none; }
  .bgfx .ok { opacity: 1; transform: none; }
  .bgfx .movers { display: none; }
}
@media print { .bgfx { display: none; } }
