/* ========================================PAGE CONTENT FADE-IN======================================== */

@keyframes npc-content-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animate actual page content only */
#primary-wrapper #content > article > .entry {
    animation: npc-content-fade-in 500ms ease-out backwards;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    #primary-wrapper #content > article > .entry {
        animation: none !important;
    }
}


/* =========================================
   NPC — ANIMATED CORNER PATTERNS
   ========================================= */

/* PREVENT HORIZONTAL OVERFLOW */
body:is(.home, :has(.npc-stats)) {
  overflow-x: hidden;
}

/* SHARED PATTERN STYLING */
body:is(.home, :has(.npc-stats))::before,
body:is(.home, :has(.npc-stats))::after {
  content: "";
  position: fixed;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.10;
  z-index: 1;
}

/* LOWER LEFT */
body:is(.home, :has(.npc-stats))::before {
  left: 0;
  bottom: 0;
  width: min(42vw, 620px);
  height: min(58vw, 820px);

  background-image: url("https://nickportercreative.com/wp-content/uploads/npcgeometricpattern5_animated.svg");
  background-position: left bottom;
}

/* UPPER RIGHT */
body:is(.home, :has(.npc-stats))::after {
  top: 0;
  right: 0;
  width: min(26vw, 391px);
  height: min(36vw, 544px);

  background-image: url("https://nickportercreative.com/wp-content/uploads/npcgeometricpattern4_animated.svg");
  background-position: right top;
}

/* KEEP MAIN CONTENT ABOVE PATTERNS */
body:is(.home, :has(.npc-stats)) #primary,
body:is(.home, :has(.npc-stats)) #content,
body:is(.home, :has(.npc-stats)) .site-content,
body.home .npc-home-center-row {
  position: relative;
  z-index: 2;
}

/* MOBILE / SMALL SCREENS */
@media screen and (max-width: 768px) {

  /* LOWER LEFT — UNCHANGED */
  body:is(.home, :has(.npc-stats))::before {
    width: 52vw;
    height: 70vw;
  }

  /* UPPER RIGHT — APPROXIMATELY 15% SMALLER */
  body:is(.home, :has(.npc-stats))::after {
    width: 36vw;
    height: 48vw;
  }

}


/* =========================================
   NPC — HOME BANNER
========================================= */


/* NPC homepage — vertically center and position content */
@media screen and (min-width: 1025px) {
  .npc-home-center-row {
    min-height: 95vh !important;
    min-height: 95svh !important;
    display: flex !important;
    align-items: center !important;
  }

  .npc-home-center-row > .vc_column_container {
    width: 100%;
    transform: translateY(-50px);
  }
}

@media screen and (max-width: 1024px) {
  .npc-home-center-row {
    height: auto !important;
    min-height: 0 !important;
  }
}


