/* NPP homepage - two full-size photos in a layered stack.
   LED and printer alternate front/back every 3 seconds (JS).
   No orange line frame; the rear image sits slightly slanted instead. */
.npp-v11 .npp-duo-stage { isolation:isolate; }
.npp-v11 .npp-duo-stage .npp-hero-duo-canvas {
  --hero-stack-offset: 18px;
  --hero-stack-rotate: 3.25deg;
  position:relative;
  width:100%;
  height:clamp(350px,39vw,490px);
  padding:0 var(--hero-stack-offset) var(--hero-stack-offset) 0;
  isolation:isolate;
  box-sizing:border-box;
  overflow:visible;
}
/* Hide the old decorative frame line behind the hero image. */
.npp-v11 .hero-photo-stage::before{content:none!important;display:none!important;}
/* Both slots are always identical in measured width and height. */
.npp-v11 .npp-duo-stage .npp-hero-duo-canvas .npp-duo-card,
.npp-v11 .npp-duo-stage .npp-hero-duo-canvas .npp-duo-card.is-primary,
.npp-v11 .npp-duo-stage .npp-hero-duo-canvas .npp-duo-card.is-secondary {
  position:absolute;
  inset:0 var(--hero-stack-offset) var(--hero-stack-offset) 0;
  display:block;
  width:auto;
  height:auto;
  aspect-ratio:auto;
  margin:0;
  padding:0;
  box-sizing:border-box;
  overflow:hidden;
  border-radius:22px;
  border:0;
  outline-offset:5px;
  background:#182837;
  text-decoration:none;
  transform-origin:center;
  transition:
    transform .82s cubic-bezier(.22,.75,.2,1),
    opacity .82s ease,
    box-shadow .82s ease,
    filter .82s ease;
  will-change:transform;
}
.npp-v11 .npp-duo-stage .npp-hero-duo-canvas .npp-duo-card.is-primary {
  z-index:4;
  transform:translate3d(0,0,0) rotate(0deg) scale(1);
  opacity:1;
  filter:none;
  animation:npp-hero-front .82s cubic-bezier(.22,.75,.2,1) both;
  box-shadow:0 24px 60px rgba(14,42,64,.20);
}
.npp-v11 .npp-duo-stage .npp-hero-duo-canvas .npp-duo-card.is-secondary {
  z-index:2;
  transform:translate3d(var(--hero-stack-offset),var(--hero-stack-offset),0) rotate(var(--hero-stack-rotate)) scale(.985);
  opacity:1;
  filter:none;
  animation:npp-hero-back .82s cubic-bezier(.22,.75,.2,1) both;
  box-shadow:0 12px 28px rgba(17,36,52,.16);
}
.npp-v11 .npp-duo-stage .npp-hero-duo-canvas .npp-duo-card > img,
.npp-v11 .npp-duo-stage .npp-hero-duo-canvas .npp-duo-card:hover > img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  filter:none;
  transform:none;
  transition:none;
}
@keyframes npp-hero-front {
  from {transform:translate3d(var(--hero-stack-offset),var(--hero-stack-offset),0) rotate(var(--hero-stack-rotate)) scale(.985);opacity:.88;}
  to {transform:translate3d(0,0,0) rotate(0deg) scale(1);opacity:1;}
}
@keyframes npp-hero-back {
  from {transform:translate3d(0,0,0) rotate(0deg) scale(1);opacity:1;}
  to {transform:translate3d(var(--hero-stack-offset),var(--hero-stack-offset),0) rotate(var(--hero-stack-rotate)) scale(.985);opacity:1;}
}
/* Text stays outside the front photo, avoiding a giant photo label. */
.npp-v11 .npp-duo-stage .npp-duo-card .npp-hero-printer-caption,
.npp-v11 .npp-duo-stage .npp-duo-card .npp-hero-card-caption {display:none!important;}
.npp-v11 .npp-duo-stage .hero-photo-label {
  z-index:6;
  max-width:65%;
  line-height:1.4;
}
.npp-v11 .npp-duo-stage .hero-floating-note {z-index:7;}
@media (max-width:991px) {
  .npp-v11 .npp-duo-stage .npp-hero-duo-canvas {height:430px;}
}
@media (max-width:760px) {
  .npp-v11 .npp-duo-stage .npp-hero-duo-canvas {--hero-stack-offset:13px; --hero-stack-rotate: 2.5deg;}
  .npp-v11 .npp-duo-stage .npp-hero-duo-canvas .npp-duo-card,
  .npp-v11 .npp-duo-stage .npp-hero-duo-canvas .npp-duo-card.is-primary,
  .npp-v11 .npp-duo-stage .npp-hero-duo-canvas .npp-duo-card.is-secondary {border-radius:15px;}
  .npp-v11 .npp-duo-stage .hero-photo-label {max-width:75%;}
}
@media (max-width:540px) {
  .npp-v11 .npp-duo-stage .npp-hero-duo-canvas {height:285px;}
}
@media (prefers-reduced-motion:reduce) {
  .npp-v11 .npp-duo-stage .npp-hero-duo-canvas .npp-duo-card {transition:none!important;animation:none!important;}
}
