/* NPP V12.8 — Icon-only animations. Existing layout, colors, hover lift and dark mode are unchanged.
   Three home cards: sequential LED matrix, live electricity pulse, printer paper feed.
   Services page: sequential LED matrix, electricity pulse, warning-sign pendulum.
   Only runs while hovered or keyboard-focused; respects reduced motion. */

/* Preserve real line work; only individual LEDs/status lights use a filled shape. */
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-pictogram circle,
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(3) .v12-pictogram circle,
.npp-v11 .cards > .card:nth-child(1) .ico .px {
  fill:currentColor!important;
  stroke:none!important;
  transform-box:fill-box;
  transform-origin:center;
}
/* Start with a visible stationary icon; animations begin on hover/focus. */
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-pictogram circle {
  opacity:.65;
  animation:none;
}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-service-card:hover .v12-pictogram circle,
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-service-card:focus-visible .v12-pictogram circle,
.npp-v11 .cards > .card:nth-child(1):hover .px,
.npp-v11 .cards > .card:nth-child(1):focus-visible .px {
  animation:npp-icon-led-wave 1.35s ease-in-out infinite!important;
  animation-delay:var(--npp-delay,0ms)!important;
}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-pictogram circle:nth-of-type(1), .npp-v11 .cards > .card:nth-child(1) .px:nth-of-type(1){--npp-delay:0ms}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-pictogram circle:nth-of-type(2), .npp-v11 .cards > .card:nth-child(1) .px:nth-of-type(2){--npp-delay:70ms}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-pictogram circle:nth-of-type(3), .npp-v11 .cards > .card:nth-child(1) .px:nth-of-type(3){--npp-delay:140ms}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-pictogram circle:nth-of-type(4), .npp-v11 .cards > .card:nth-child(1) .px:nth-of-type(4){--npp-delay:210ms}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-pictogram circle:nth-of-type(5), .npp-v11 .cards > .card:nth-child(1) .px:nth-of-type(5){--npp-delay:280ms}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-pictogram circle:nth-of-type(6), .npp-v11 .cards > .card:nth-child(1) .px:nth-of-type(6){--npp-delay:350ms}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-pictogram circle:nth-of-type(7), .npp-v11 .cards > .card:nth-child(1) .px:nth-of-type(7){--npp-delay:420ms}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-pictogram circle:nth-of-type(8), .npp-v11 .cards > .card:nth-child(1) .px:nth-of-type(8){--npp-delay:490ms}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-pictogram circle:nth-of-type(9), .npp-v11 .cards > .card:nth-child(1) .px:nth-of-type(9){--npp-delay:560ms}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-pictogram circle:nth-of-type(10), .npp-v11 .cards > .card:nth-child(1) .px:nth-of-type(10){--npp-delay:630ms}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-pictogram circle:nth-of-type(11), .npp-v11 .cards > .card:nth-child(1) .px:nth-of-type(11){--npp-delay:700ms}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-pictogram circle:nth-of-type(12), .npp-v11 .cards > .card:nth-child(1) .px:nth-of-type(12){--npp-delay:770ms}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-pictogram circle:nth-of-type(13), .npp-v11 .cards > .card:nth-child(1) .px:nth-of-type(13){--npp-delay:840ms}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-pictogram circle:nth-of-type(14), .npp-v11 .cards > .card:nth-child(1) .px:nth-of-type(14){--npp-delay:910ms}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-pictogram circle:nth-of-type(15), .npp-v11 .cards > .card:nth-child(1) .px:nth-of-type(15){--npp-delay:980ms}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-pictogram circle:nth-of-type(16), .npp-v11 .cards > .card:nth-child(1) .px:nth-of-type(16){--npp-delay:1050ms}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-pictogram circle:nth-of-type(17), .npp-v11 .cards > .card:nth-child(1) .px:nth-of-type(17){--npp-delay:1120ms}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-pictogram circle:nth-of-type(18), .npp-v11 .cards > .card:nth-child(1) .px:nth-of-type(18){--npp-delay:1190ms}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-pictogram circle:nth-of-type(19), .npp-v11 .cards > .card:nth-child(1) .px:nth-of-type(19){--npp-delay:1260ms}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(1) .v12-pictogram circle:nth-of-type(20), .npp-v11 .cards > .card:nth-child(1) .px:nth-of-type(20){--npp-delay:1330ms}
@keyframes npp-icon-led-wave {
  0%, 100% {opacity:.24;transform:scale(.79)}
  42% {opacity:1;transform:scale(1.3)}
  70% {opacity:.48;transform:scale(.98)}
}

/* Electric ring travels while the lightning bolt flashes: different motion per element. */
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(2) .v12-pictogram circle,
.npp-v11 .cards > .card:nth-child(2) .ico .ring {
  stroke-dasharray:70 14;
  stroke-dashoffset:0;
  transform-box:fill-box;
  transform-origin:center;
}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(2) .v12-service-card:hover .v12-pictogram circle,
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(2) .v12-service-card:focus-visible .v12-pictogram circle,
.npp-v11 .cards > .card:nth-child(2):hover .ring,
.npp-v11 .cards > .card:nth-child(2):focus-visible .ring {
  animation:npp-icon-electric-ring 1.35s linear infinite!important;
}
@keyframes npp-icon-electric-ring {
  from {stroke-dashoffset:0;opacity:1}
  to {stroke-dashoffset:-168;opacity:.65}
}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(2) .v12-pictogram path,
.npp-v11 .cards > .card:nth-child(2) .ico .bolt {
  transform-box:fill-box;
  transform-origin:center;
}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(2) .v12-service-card:hover .v12-pictogram path,
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(2) .v12-service-card:focus-visible .v12-pictogram path,
.npp-v11 .cards > .card:nth-child(2):hover .bolt,
.npp-v11 .cards > .card:nth-child(2):focus-visible .bolt {
  animation:npp-icon-electric-flash .92s steps(1,end) infinite!important;
}
@keyframes npp-icon-electric-flash {
  0%, 36%, 58%, 100% {opacity:1;transform:translateY(0) scale(1)}
  42%, 49% {opacity:.25;transform:translateY(1px) scale(.92)}
  53% {opacity:1;transform:translateY(-3px) scale(1.08)}
  75% {opacity:.63;transform:translateY(-1px) scale(1.03)}
}

/* Printer (home): feed the sheet, briefly vibrate the frame, blink status light. */
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(3) .v12-pictogram .npp-print-paper-feed {
  transform-box:fill-box;
  transform-origin:center;
}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(3) .v12-service-card:hover .npp-print-paper-feed,
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(3) .v12-service-card:focus-visible .npp-print-paper-feed {
  animation:npp-icon-paper-feed 1.5s ease-in-out infinite!important;
}
@keyframes npp-icon-paper-feed {
  0%,100% {transform:translateY(0)}
  24% {transform:translateY(0)}
  72% {transform:translateY(6px)}
  88% {transform:translateY(2px)}
}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(3) .v12-service-card:hover .v12-pictogram > rect,
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(3) .v12-service-card:focus-visible .v12-pictogram > rect {
  animation:npp-icon-printer-run .19s linear infinite!important;
}
@keyframes npp-icon-printer-run {0%,100%{transform:translateX(0)}50%{transform:translateX(.8px)}}
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(3) .v12-service-card:hover .v12-pictogram > circle,
.npp-v11 .v12-service-grid > .col-lg-4:nth-child(3) .v12-service-card:focus-visible .v12-pictogram > circle {
  animation:npp-icon-printer-lamp .72s step-end infinite!important;
}
@keyframes npp-icon-printer-lamp {0%,45%,100%{opacity:1}46%,84%{opacity:.2}}

/* Warning sign (Services page) pendulum — like the reference animation. */
.npp-v11 .cards > .card:nth-child(3) .ico .sign {
  transform-box:view-box;
  transform-origin:48px 7px;
}
.npp-v11 .cards > .card:nth-child(3):hover .sign,
.npp-v11 .cards > .card:nth-child(3):focus-visible .sign {
  animation:npp-icon-warning-swing 1.45s ease-in-out infinite!important;
}
@keyframes npp-icon-warning-swing {
  0%,100% {transform:rotate(-8deg)}
  50% {transform:rotate(8deg)}
}

@media(prefers-reduced-motion:reduce){
 .npp-v11 .v12-service-grid .v12-pictogram circle,
 .npp-v11 .v12-service-grid .v12-pictogram path,
 .npp-v11 .v12-service-grid .v12-pictogram rect,
 .npp-v11 .v12-service-grid .v12-pictogram .npp-print-paper-feed,
 .npp-v11 .cards > .card .ico .px,
 .npp-v11 .cards > .card .ico .bolt,
 .npp-v11 .cards > .card .ico .ring,
 .npp-v11 .cards > .card .ico .sign {animation:none!important;transform:none!important;}
}
