/* =========================================================
   PAUZ MOTION LAYER
   Scroll reveals, smooth scroll, card tilt, marquee.
   Progressive enhancement: content stays visible when JS,
   GSAP or Lenis fails to load, or when the visitor prefers
   reduced motion.
   ========================================================= */

/* Lenis smooth scroll */
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-smooth [data-lenis-prevent]{overscroll-behavior:contain}
.lenis.lenis-stopped{overflow:hidden}

/* Hide reveal targets only while motion JS is active */
html.pz-motion:not(.pz-motion-ready) .premium-hero{visibility:hidden}

/* Hero title line masks */
.pz-line{display:block;overflow:hidden;padding-bottom:.08em;margin-bottom:-.08em}
.pz-line>span{display:block;will-change:transform}

/* Scroll progress bar */
.pz-progress{position:fixed;top:0;left:0;right:0;height:2px;z-index:1000;pointer-events:none;
  background:linear-gradient(90deg,#c6a36b,#f0d58b);transform-origin:0 50%;transform:scaleX(0)}

/* Sticky header that condenses on scroll */
/* Desktop only: on phones the two-row header would eat the screen. */
@media (min-width:900px){
  html body>header{position:sticky;top:0;z-index:900;transition:background .35s ease,box-shadow .35s ease,backdrop-filter .35s ease}
  html body>header .nav{transition:min-height .35s ease,padding .35s ease}
  html body.pz-scrolled>header{background:rgba(8,21,41,.78);backdrop-filter:blur(14px) saturate(140%);
    -webkit-backdrop-filter:blur(14px) saturate(140%);box-shadow:0 1px 0 rgba(217,189,131,.18)}
  html body.pz-scrolled>header .nav{min-height:64px;padding-top:10px;padding-bottom:10px;background:transparent}
}

/* Digital card tilt + glare */
.digital-wrap{perspective:1100px}
.digital-card{transform-style:preserve-3d;will-change:transform;position:relative}
.pz-glare{position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;
  background:radial-gradient(circle at var(--gx,50%) var(--gy,50%),rgba(255,236,190,.28),transparent 45%);
  mix-blend-mode:screen;transition:opacity .4s ease}
.digital-card:hover .pz-glare{opacity:1}

/* Gold marquee strip */
.pz-marquee{overflow:hidden;border-top:1px solid rgba(217,189,131,.2);border-bottom:1px solid rgba(217,189,131,.2);
  background:rgba(16,34,58,.55);margin:56px 0 0;padding:18px 0;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.pz-marquee-track{display:flex;width:max-content;animation:pz-marquee 38s linear infinite}
.pz-marquee:hover .pz-marquee-track{animation-play-state:paused}
.pz-marquee-track span{font-family:"Fraunces",Georgia,serif;font-size:clamp(20px,2.4vw,30px);
  color:#e2c58e;white-space:nowrap;padding:0 28px;letter-spacing:-.01em}
.pz-marquee-track span i{font-style:normal;color:rgba(217,189,131,.45);padding-left:56px}
@keyframes pz-marquee{to{transform:translateX(-50%)}}

/* <picture> wrappers must not change existing layout */
.card-emblem picture,.org-poster-frame picture{display:contents}

/* Org chart reveal */
.org-poster-frame{overflow:hidden}
.org-poster-frame img{will-change:transform}

/* Magnetic buttons */
.pz-magnetic{will-change:transform}

@media (prefers-reduced-motion:reduce){
  .pz-marquee-track{animation:none}
  html body>header,html body>header .nav{transition:none}
}
@media (max-width:700px){
  .pz-marquee{margin-top:40px;padding:14px 0}
  .pz-marquee-track span{padding:0 18px}
  .pz-marquee-track span i{padding-left:36px}
}
