/* =============================================================================
   PROLINK MOTION FX — Cinematic Premium CSS v3.1.0
   All animations use transform + opacity only → GPU-accelerated.
   Zero layout-triggering properties (no width/height/top/left animations).
   ============================================================================= */

/* ── Root tokens ────────────────────────────────────────────────────────────── */
:root {
  --plmfx-dur:          0.85s;
  --plmfx-ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --plmfx-ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --plmfx-ease-cinema:  cubic-bezier(0.77, 0, 0.175, 1);
  --plmfx-ease-butter:  cubic-bezier(0.23, 1, 0.32, 1);
  --plmfx-delay:        0s;
  --plmfx-tilt-max:     20deg;
  --plmfx-glare-op:     0.22;
  --plmfx-spot-size:    480px;
  --plmfx-spot-color:   rgba(255,255,255,0.10);
  --plmfx-glass-bg:     rgba(255,255,255,0.06);
  --plmfx-glass-border: rgba(255,255,255,0.12);
  --plmfx-glass-blur:   20px;
  --plmfx-glow-color:   99, 102, 241;
  --plmfx-particle-clr: rgba(255,255,255,0.55);
}

/* ── Duration / delay modifiers ─────────────────────────────────────────────── */
.plmfx-dur-fast  { --plmfx-dur: 0.4s  !important; }
.plmfx-dur-slow  { --plmfx-dur: 1.4s  !important; }
.plmfx-dur-xslow { --plmfx-dur: 2.0s  !important; }
.plmfx-delay-1   { --plmfx-delay: 0.15s; }
.plmfx-delay-2   { --plmfx-delay: 0.30s; }
.plmfx-delay-3   { --plmfx-delay: 0.50s; }
.plmfx-delay-4   { --plmfx-delay: 0.70s; }
.plmfx-delay-5   { --plmfx-delay: 1.00s; }

/* =============================================================================
   SCROLL PROGRESS BAR
   ============================================================================= */
#plmfx-progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 99999;
  background: transparent;
  pointer-events: none;
}
#plmfx-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #ec4899, #f59e0b);
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(99,102,241,0.8);
}

/* =============================================================================
   PREMIUM LOADING SCREEN
   ============================================================================= */
#plmfx-loader {
  position: fixed;
  inset: 0;
  background: #050508;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--plmfx-ease), transform 0.7s var(--plmfx-ease);
}
#plmfx-loader.plmfx-loaded {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
}
.plmfx-loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.plmfx-loader__ring {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.08);
  border-top-color: #6366f1;
  animation: plmfx-spin 0.9s linear infinite;
}
@keyframes plmfx-spin { to { transform: rotate(360deg); } }
.plmfx-loader__text {
  color: rgba(255,255,255,0.4);
  font-family: system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: plmfx-pulse-op 1.4s ease-in-out infinite;
}
@keyframes plmfx-pulse-op { 0%,100%{opacity:0.3} 50%{opacity:1} }

/* =============================================================================
   SMALL ROTATIONS — Standby, Always On. No hover, no scroll, no JS needed.
   Apply the class and the element is permanently rotated from that moment.
   ============================================================================= */

/* ── Static standby rotations (no hover required) ──────────────────────── */
/*                                                                            */
/*  WHY @supports + individual `rotate` property:                             */
/*  CSS `transform` is one slot — two classes writing to it means only one    */
/*  survives. GSAP, tilt classes, float animations all write to `transform`.  */
/*  The individual `rotate` property lives in its own slot and COMPOSES with  */
/*  `transform` automatically — so rotation + fade-up + shadow-lift + tilt   */
/*  all work simultaneously on the same element.                              */
/*                                                                            */
/*  Fallback for old browsers (iOS < 14.1, Chrome < 104):                    */
/*  plain transform: rotate() — works alone, but won't compose with others.  */
/*  Modern browsers (the vast majority): individual `rotate` — composes.      */

/* right — small (3°) */
.lcf-rotate-sm {
  -webkit-transform: rotate(3deg) !important;
          transform: rotate(3deg) !important;
}
@supports (rotate: 3deg) {
  .lcf-rotate-sm {
    -webkit-transform: none !important;
            transform: none !important;
    rotate: 3deg !important;
  }
}

/* left — small (–3°) */
.lcf-rotate-sm-left {
  -webkit-transform: rotate(-3deg) !important;
          transform: rotate(-3deg) !important;
}
@supports (rotate: 3deg) {
  .lcf-rotate-sm-left {
    -webkit-transform: none !important;
            transform: none !important;
    rotate: -3deg !important;
  }
}

/* right — tiny (1.5°) */
.lcf-rotate-xs {
  -webkit-transform: rotate(1.5deg) !important;
          transform: rotate(1.5deg) !important;
}
@supports (rotate: 3deg) {
  .lcf-rotate-xs {
    -webkit-transform: none !important;
            transform: none !important;
    rotate: 1.5deg !important;
  }
}

/* left — tiny (–1.5°) */
.lcf-rotate-xs-left {
  -webkit-transform: rotate(-1.5deg) !important;
          transform: rotate(-1.5deg) !important;
}
@supports (rotate: 3deg) {
  .lcf-rotate-xs-left {
    -webkit-transform: none !important;
            transform: none !important;
    rotate: -1.5deg !important;
  }
}

/* ── Hover-only rotations (no standing tilt — activates on mouse-over) ─── */

.lcf-rotate-hover-right {
  transition: -webkit-transform 0.3s ease, transform 0.3s ease, rotate 0.3s ease;
  transition: transform 0.3s ease, rotate 0.3s ease;
}
.lcf-rotate-hover-right:hover {
  -webkit-transform: rotate(3deg) !important;
          transform: rotate(3deg) !important;
}
@supports (rotate: 3deg) {
  .lcf-rotate-hover-right:hover {
    -webkit-transform: none !important;
            transform: none !important;
    rotate: 3deg !important;
  }
}

.lcf-rotate-hover-left {
  transition: -webkit-transform 0.3s ease, transform 0.3s ease, rotate 0.3s ease;
  transition: transform 0.3s ease, rotate 0.3s ease;
}
.lcf-rotate-hover-left:hover {
  -webkit-transform: rotate(-3deg) !important;
          transform: rotate(-3deg) !important;
}
@supports (rotate: 3deg) {
  .lcf-rotate-hover-left:hover {
    -webkit-transform: none !important;
            transform: none !important;
    rotate: -3deg !important;
  }
}

/* =============================================================================
   MOUSE TRACKING
   ============================================================================= */
.plmfx-mouse-track,
.plmfx-mouse-track-slow {
  will-change: transform;
}
.plmfx-mouse-track      { transition: transform 0.07s linear; }
.plmfx-mouse-track-slow { transition: transform 0.7s var(--plmfx-ease-butter); }

/* =============================================================================
   PARALLAX
   Works on ALL devices — phone, tablet, desktop.
   Mobile speed is reduced via Settings (default 40% of desktop).
   Per-element speed: add data-plmfx-speed="0.5" (0.1 = slow → 2 = fast)
   ============================================================================= */
.plmfx-parallax,
.plmfx-parallax-fast,
.plmfx-parallax-deep,
.plmfx-parallax-down,
.plmfx-parallax-x,
.plmfx-float-image,
.plmfx-float-card,
.plmfx-depth-near,
.plmfx-depth-mid,
.plmfx-depth-far,
.plmfx-depth-ultra,
[data-plmfx-depth] {
  will-change: transform;
  overflow: visible !important;
}

/* ── Depth ultra — strongest class (38px range) ────────────────────────── */
.plmfx-depth-ultra { will-change: transform; overflow: visible !important; }

/* ── Prevent parent containers from clipping parallax movement ─────────── */
.elementor-section:has(.plmfx-parallax),
.elementor-section:has(.plmfx-parallax-fast),
.elementor-section:has(.plmfx-parallax-deep),
.elementor-section:has(.plmfx-parallax-down),
.elementor-section:has(.plmfx-parallax-x),
.elementor-section:has(.plmfx-float-image),
.elementor-section:has(.plmfx-float-card),
.elementor-container:has(.plmfx-parallax),
.elementor-container:has(.plmfx-parallax-fast),
.elementor-container:has(.plmfx-parallax-deep),
.elementor-container:has(.plmfx-float-image),
.elementor-container:has(.plmfx-float-card),
.e-con:has(.plmfx-parallax),
.e-con:has(.plmfx-parallax-fast),
.e-con:has(.plmfx-parallax-deep),
.e-con:has(.plmfx-parallax-down),
.e-con:has(.plmfx-parallax-x),
.e-con:has(.plmfx-float-image),
.e-con:has(.plmfx-float-card),
.e-con-inner:has(.plmfx-parallax),
.e-con-inner:has(.plmfx-float-image),
.elementor-widget-wrap:has(.plmfx-parallax),
.elementor-widget-wrap:has(.plmfx-parallax-fast),
.elementor-widget-wrap:has(.plmfx-parallax-deep),
.elementor-widget-wrap:has(.plmfx-float-image),
.elementor-widget-wrap:has(.plmfx-float-card),
.elementor-widget-container:has(.plmfx-parallax),
.elementor-widget-container:has(.plmfx-float-image) {
  overflow: visible !important;
}

/* ── Float-image: wrapper must NEVER clip — overflow:visible always ────── */
/* The Ken Burns zoom is on the <img> itself; clipping is handled by a      */
/* dedicated inner div injected by motion-engine.js, not the wrapper.       */
.plmfx-float-image,
.plmfx-float-image.plmfx-parallax,
.plmfx-float-image.plmfx-parallax-fast,
.plmfx-float-image.plmfx-parallax-deep,
.plmfx-float-image.plmfx-parallax-down,
.plmfx-float-image.plmfx-parallax-x {
  overflow: visible !important;
}

/* ── Clip zoom on the image's direct parent figure/div, not the wrapper ── */
.plmfx-float-image > figure,
.plmfx-float-image > .wp-block-image,
.plmfx-float-image > .elementor-widget-container > figure {
  overflow: hidden;
}

/* =============================================================================
   TILT 3D — Core
   ============================================================================= */
.plmfx-tilt,
.plmfx-tilt-glare,
.plmfx-tilt-subtle,
.plmfx-tilt-image {
  will-change: transform;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale3d(1,1,1);
  transition:
    transform var(--plmfx-dur) var(--plmfx-ease-butter),
    box-shadow var(--plmfx-dur) var(--plmfx-ease);
}
.plmfx-tilt-subtle { --plmfx-tilt-max: 7deg; }

/* Glare overlay */
.plmfx-tilt-glare {
  overflow: hidden;
  position: relative;
}
.plmfx-tilt-glare::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--plmfx-gx, 50%) var(--plmfx-gy, 50%),
    rgba(255,255,255,var(--plmfx-glare-op)) 0%,
    transparent 55%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 5;
  mix-blend-mode: overlay;
}
.plmfx-tilt-glare:hover::after { opacity: 1; }

/* Image inner parallax */
.plmfx-tilt-image > img,
.plmfx-tilt-image > figure img,
.plmfx-tilt-image > .wp-block-image img {
  transition: transform var(--plmfx-dur) var(--plmfx-ease-butter);
  will-change: transform;
  transform: scale(1.08);
}

/* CSS-only hover tilts (requires hover to activate) */
.plmfx-hover-tilt-l {
  transition: transform var(--plmfx-dur) var(--plmfx-ease-spring);
}
.plmfx-hover-tilt-l:hover {
  transform: perspective(900px) rotateY(-16deg) rotateZ(-1.5deg) scale(1.03);
}
.plmfx-hover-tilt-r {
  transition: transform var(--plmfx-dur) var(--plmfx-ease-spring);
}
.plmfx-hover-tilt-r:hover {
  transform: perspective(900px) rotateY(16deg) rotateZ(1.5deg) scale(1.03);
}

/* =============================================================================
   STANDBY TILTS — Always-on. No hover, no scroll, no JS needed.
   Element is permanently tilted the moment the class is applied.
   ============================================================================= */

/* ── Left standby tilts (Y-axis rotation — face turns left) ─────────────── */
.plmfx-tilt-left-xs {
  transform: perspective(1000px) rotateY(-6deg);
  will-change: transform;
  transition: transform var(--plmfx-dur) var(--plmfx-ease-spring);
}
.plmfx-tilt-left-sm {
  transform: perspective(1000px) rotateY(-12deg);
  will-change: transform;
  transition: transform var(--plmfx-dur) var(--plmfx-ease-spring);
}
.plmfx-tilt-left-md {
  transform: perspective(1000px) rotateY(-20deg);
  will-change: transform;
  transition: transform var(--plmfx-dur) var(--plmfx-ease-spring);
}
.plmfx-tilt-left-lg {
  transform: perspective(1000px) rotateY(-32deg);
  will-change: transform;
  transition: transform var(--plmfx-dur) var(--plmfx-ease-spring);
}
.plmfx-tilt-left-xl {
  transform: perspective(1000px) rotateY(-45deg);
  will-change: transform;
  transition: transform var(--plmfx-dur) var(--plmfx-ease-spring);
}

/* ── Right standby tilts ─────────────────────────────────────────────────── */
.plmfx-tilt-right-xs {
  transform: perspective(1000px) rotateY(6deg);
  will-change: transform;
  transition: transform var(--plmfx-dur) var(--plmfx-ease-spring);
}
.plmfx-tilt-right-sm {
  transform: perspective(1000px) rotateY(12deg);
  will-change: transform;
  transition: transform var(--plmfx-dur) var(--plmfx-ease-spring);
}
.plmfx-tilt-right-md {
  transform: perspective(1000px) rotateY(20deg);
  will-change: transform;
  transition: transform var(--plmfx-dur) var(--plmfx-ease-spring);
}
.plmfx-tilt-right-lg {
  transform: perspective(1000px) rotateY(32deg);
  will-change: transform;
  transition: transform var(--plmfx-dur) var(--plmfx-ease-spring);
}
.plmfx-tilt-right-xl {
  transform: perspective(1000px) rotateY(45deg);
  will-change: transform;
  transition: transform var(--plmfx-dur) var(--plmfx-ease-spring);
}

/* ── Up standby tilts (X-axis — top face tips back) ─────────────────────── */
.plmfx-tilt-up-xs  { transform: perspective(1000px) rotateX(6deg);  will-change: transform; transition: transform var(--plmfx-dur) var(--plmfx-ease-spring); }
.plmfx-tilt-up-sm  { transform: perspective(1000px) rotateX(12deg); will-change: transform; transition: transform var(--plmfx-dur) var(--plmfx-ease-spring); }
.plmfx-tilt-up-md  { transform: perspective(1000px) rotateX(20deg); will-change: transform; transition: transform var(--plmfx-dur) var(--plmfx-ease-spring); }
.plmfx-tilt-up-lg  { transform: perspective(1000px) rotateX(32deg); will-change: transform; transition: transform var(--plmfx-dur) var(--plmfx-ease-spring); }

/* ── Down standby tilts (X-axis — top face tips forward) ────────────────── */
.plmfx-tilt-down-xs  { transform: perspective(1000px) rotateX(-6deg);  will-change: transform; transition: transform var(--plmfx-dur) var(--plmfx-ease-spring); }
.plmfx-tilt-down-sm  { transform: perspective(1000px) rotateX(-12deg); will-change: transform; transition: transform var(--plmfx-dur) var(--plmfx-ease-spring); }
.plmfx-tilt-down-md  { transform: perspective(1000px) rotateX(-20deg); will-change: transform; transition: transform var(--plmfx-dur) var(--plmfx-ease-spring); }
.plmfx-tilt-down-lg  { transform: perspective(1000px) rotateX(-32deg); will-change: transform; transition: transform var(--plmfx-dur) var(--plmfx-ease-spring); }

/* ── Diagonal standby tilts (combined X + Y) ─────────────────────────────── */
.plmfx-tilt-diag-tl {
  /* Top-left diagonal — tips toward top-left */
  transform: perspective(1000px) rotateX(12deg) rotateY(-12deg);
  will-change: transform;
  transition: transform var(--plmfx-dur) var(--plmfx-ease-spring);
}
.plmfx-tilt-diag-tr {
  /* Top-right diagonal */
  transform: perspective(1000px) rotateX(12deg) rotateY(12deg);
  will-change: transform;
  transition: transform var(--plmfx-dur) var(--plmfx-ease-spring);
}
.plmfx-tilt-diag-bl {
  /* Bottom-left diagonal */
  transform: perspective(1000px) rotateX(-12deg) rotateY(-12deg);
  will-change: transform;
  transition: transform var(--plmfx-dur) var(--plmfx-ease-spring);
}
.plmfx-tilt-diag-br {
  /* Bottom-right diagonal */
  transform: perspective(1000px) rotateX(-12deg) rotateY(12deg);
  will-change: transform;
  transition: transform var(--plmfx-dur) var(--plmfx-ease-spring);
}

/* ── Standby tilt with glare sheen (3D depth look) ──────────────────────── */
.plmfx-tilt-left-sheen {
  transform: perspective(1000px) rotateY(-18deg);
  will-change: transform;
  transition: transform var(--plmfx-dur) var(--plmfx-ease-spring);
  position: relative;
  overflow: hidden;
}
.plmfx-tilt-left-sheen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.14) 0%,
    rgba(255,255,255,0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 5;
}

.plmfx-tilt-right-sheen {
  transform: perspective(1000px) rotateY(18deg);
  will-change: transform;
  transition: transform var(--plmfx-dur) var(--plmfx-ease-spring);
  position: relative;
  overflow: hidden;
}
.plmfx-tilt-right-sheen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    -135deg,
    rgba(255,255,255,0.14) 0%,
    rgba(255,255,255,0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 5;
}

/* ── Standby floating tilt — tilted AND softly floating forever ──────────── */
@keyframes plmfx-float-tilt-l {
  0%, 100% { transform: perspective(1000px) rotateY(-14deg) translateY(0px);   }
  50%      { transform: perspective(1000px) rotateY(-14deg) translateY(-10px);  }
}
@keyframes plmfx-float-tilt-r {
  0%, 100% { transform: perspective(1000px) rotateY(14deg) translateY(0px);    }
  50%      { transform: perspective(1000px) rotateY(14deg) translateY(-10px);   }
}
.plmfx-tilt-float-left  {
  animation: plmfx-float-tilt-l 4s ease-in-out infinite;
  will-change: transform;
}
.plmfx-tilt-float-right {
  animation: plmfx-float-tilt-r 4s ease-in-out infinite;
  will-change: transform;
}

/* ── Standby cinematic hero tilt (dramatic deep perspective) ─────────────── */
.plmfx-tilt-cinema-left {
  transform: perspective(600px) rotateY(-22deg) rotateX(4deg) scale(1.02);
  will-change: transform;
  transition: transform 0.9s var(--plmfx-ease-spring);
  transform-origin: center center;
}
.plmfx-tilt-cinema-right {
  transform: perspective(600px) rotateY(22deg) rotateX(4deg) scale(1.02);
  will-change: transform;
  transition: transform 0.9s var(--plmfx-ease-spring);
  transform-origin: center center;
}

/* ── Standby tilts are hover-neutral — no reset, no shadow on mouse-over ─── */
/* The glass-shadow hover-reset block has been intentionally removed.         */
/* All standby tilt classes hold their tilt at all times, including on hover. */

/* ── Phones: soften 3D standby tilts (still active, just less extreme) ──── */
@media (max-width: 767px) {
  .plmfx-tilt-left-xs,  .plmfx-tilt-left-sm,  .plmfx-tilt-left-md  { transform: perspective(1000px) rotateY(-8deg); }
  .plmfx-tilt-left-lg,  .plmfx-tilt-left-xl                         { transform: perspective(1000px) rotateY(-12deg); }
  .plmfx-tilt-right-xs, .plmfx-tilt-right-sm, .plmfx-tilt-right-md { transform: perspective(1000px) rotateY(8deg); }
  .plmfx-tilt-right-lg, .plmfx-tilt-right-xl                        { transform: perspective(1000px) rotateY(12deg); }
  .plmfx-tilt-cinema-left  { transform: perspective(800px) rotateY(-14deg) rotateX(2deg); }
  .plmfx-tilt-cinema-right { transform: perspective(800px) rotateY(14deg)  rotateX(2deg); }
  .plmfx-tilt-float-left  { animation-duration: 5s; }
  .plmfx-tilt-float-right { animation-duration: 5s; }
}

/* =============================================================================
   MAGNETIC
   ============================================================================= */
.plmfx-magnetic,
.plmfx-magnetic-strong {
  will-change: transform;
  transition: transform 0.45s var(--plmfx-ease-spring);
  display: inline-block;
}

/* =============================================================================
   REVEAL ANIMATIONS — hidden states
   All use transform + opacity only.
   ============================================================================= */
.plmfx-fade-up,
.plmfx-fade-down,
.plmfx-fade-left,
.plmfx-fade-right,
.plmfx-scale-in,
.plmfx-scale-out,
.plmfx-blur-clear,
.plmfx-clip-left,
.plmfx-clip-up,
.plmfx-flip-up,
.plmfx-rotate-in,
.plmfx-cinematic,
.plmfx-smooth-section,
.plmfx-elastic {
  opacity: 0;
  will-change: transform, opacity;
  transition:
    opacity   var(--plmfx-dur) var(--plmfx-ease-butter) var(--plmfx-delay),
    transform var(--plmfx-dur) var(--plmfx-ease-butter) var(--plmfx-delay),
    filter    var(--plmfx-dur) var(--plmfx-ease-butter) var(--plmfx-delay);
}

/* Spring / elastic overrides */
.plmfx-elastic,
.plmfx-smooth-section {
  transition-timing-function: var(--plmfx-ease-spring);
}
.plmfx-cinematic {
  transition-timing-function: var(--plmfx-ease-cinema);
  --plmfx-dur: 1.1s;
}

/* Initial transforms */
.plmfx-fade-up        { transform: translateY(70px); }
.plmfx-fade-down      { transform: translateY(-70px); }
.plmfx-fade-left      { transform: translateX(80px); }
.plmfx-fade-right     { transform: translateX(-80px); }
.plmfx-scale-in       { transform: scale(0.78); filter: blur(3px); }
.plmfx-scale-out      { transform: scale(1.22); }
.plmfx-blur-clear     { filter: blur(20px); transform: translateY(28px); }
.plmfx-flip-up        { transform: perspective(700px) rotateX(80deg); transform-origin: top center; }
.plmfx-rotate-in      { transform: rotate(-8deg) translateY(40px); }
.plmfx-cinematic      { transform: scale(0.92) translateY(55px); filter: blur(2px); }
.plmfx-smooth-section { transform: translateY(60px) scale(0.96); }
.plmfx-elastic        { transform: scale(0.82) translateY(38px); }

/* Clip reveals — use clip-path not overflow manipulation */
.plmfx-clip-left {
  clip-path: inset(0 100% 0 0);
  opacity: 1 !important;
  transition: clip-path var(--plmfx-dur) var(--plmfx-ease-cinema) var(--plmfx-delay) !important;
}
.plmfx-clip-up {
  clip-path: inset(100% 0 0 0);
  opacity: 1 !important;
  transition: clip-path var(--plmfx-dur) var(--plmfx-ease-cinema) var(--plmfx-delay) !important;
}

/* Visible state */
.plmfx-fade-up.plmfx-visible,
.plmfx-fade-down.plmfx-visible,
.plmfx-fade-left.plmfx-visible,
.plmfx-fade-right.plmfx-visible,
.plmfx-scale-in.plmfx-visible,
.plmfx-scale-out.plmfx-visible,
.plmfx-flip-up.plmfx-visible,
.plmfx-rotate-in.plmfx-visible,
.plmfx-cinematic.plmfx-visible,
.plmfx-smooth-section.plmfx-visible,
.plmfx-elastic.plmfx-visible {
  opacity: 1;
  transform: translate(0) scale(1) rotate(0deg) perspective(700px) rotateX(0deg);
  filter: blur(0);
}
.plmfx-blur-clear.plmfx-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
.plmfx-clip-left.plmfx-visible  { clip-path: inset(0 0% 0 0); }
.plmfx-clip-up.plmfx-visible    { clip-path: inset(0% 0 0 0); }

/* =============================================================================
   STAGGER CHILDREN
   ============================================================================= */
.plmfx-stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
}
.plmfx-stagger-children.plmfx-visible > * {
  opacity: 1;
  transform: translateY(0);
}
/* JS sets individual transition-delay on each child */

/* =============================================================================
   TEXT MASK REVEAL
   ============================================================================= */
.plmfx-text-mask {
  overflow: hidden;
}
.plmfx-text-mask .plmfx-line-wrap {
  overflow: hidden;
  display: block;
}
.plmfx-text-mask .plmfx-line-inner {
  display: block;
  transform: translateY(110%);
  transition: transform var(--plmfx-dur) var(--plmfx-ease-cinema) var(--plmfx-delay);
}
.plmfx-text-mask.plmfx-visible .plmfx-line-inner {
  transform: translateY(0);
}

/* =============================================================================
   ANIMATED GRADIENT TEXT
   ============================================================================= */
@keyframes plmfx-grad-flow {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}
.plmfx-gradient-text {
  background: linear-gradient(270deg, #6366f1, #ec4899, #f59e0b, #10b981, #06b6d4, #6366f1);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: plmfx-grad-flow 5s ease infinite;
}

/* Glow text */
.plmfx-text-glow {
  text-shadow:
    0 0 30px rgba(var(--plmfx-glow-color), 0.6),
    0 0 80px rgba(var(--plmfx-glow-color), 0.25);
  animation: plmfx-glow-pulse 3s ease-in-out infinite;
}
@keyframes plmfx-glow-pulse {
  0%,100% { text-shadow: 0 0 30px rgba(var(--plmfx-glow-color),0.6), 0 0 80px rgba(var(--plmfx-glow-color),0.25); }
  50%     { text-shadow: 0 0 50px rgba(var(--plmfx-glow-color),0.9), 0 0 120px rgba(var(--plmfx-glow-color),0.4); }
}

/* Animated underline draw */
.plmfx-underline-draw {
  position: relative;
  text-decoration: none;
}
.plmfx-underline-draw::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  height: 1.5px;
  width: 0%;
  background: currentColor;
  transition: width 0.5s var(--plmfx-ease-cinema);
}
.plmfx-underline-draw:hover::after,
.plmfx-underline-draw.plmfx-visible::after { width: 100%; }

/* =============================================================================
   HOVER EFFECTS
   ============================================================================= */

/* Lift */
.plmfx-hover-lift {
  transition:
    transform var(--plmfx-dur) var(--plmfx-ease-spring),
    box-shadow var(--plmfx-dur) var(--plmfx-ease);
  will-change: transform;
}
.plmfx-hover-lift:hover {
  transform: translateY(-14px) scale(1.01);
  box-shadow: 0 40px 70px -16px rgba(0,0,0,0.38);
}

/* Glow aura */
.plmfx-hover-glow {
  transition: box-shadow 0.4s var(--plmfx-ease), transform 0.4s var(--plmfx-ease);
}
.plmfx-hover-glow:hover {
  box-shadow:
    0 0 0 1px rgba(var(--plmfx-glow-color),0.3),
    0 0 30px 4px rgba(var(--plmfx-glow-color),0.4),
    0 0 80px 12px rgba(var(--plmfx-glow-color),0.15);
  transform: translateY(-4px);
}

/* Scale */
.plmfx-hover-scale {
  transition: transform var(--plmfx-dur) var(--plmfx-ease-spring);
  will-change: transform;
}
.plmfx-hover-scale:hover { transform: scale(1.055); }

/* Image soft zoom */
.plmfx-hover-zoom-img {
  overflow: hidden;
}
.plmfx-hover-zoom-img img,
.plmfx-hover-zoom-img > figure img {
  transition: transform 0.7s var(--plmfx-ease-butter);
  will-change: transform;
}
.plmfx-hover-zoom-img:hover img,
.plmfx-hover-zoom-img:hover > figure img { transform: scale(1.07); }

/* Card Expand */
.plmfx-hover-expand {
  display: grid;
  grid-template-rows: auto 0fr;
  transition:
    grid-template-rows 0.45s var(--plmfx-ease-butter),
    box-shadow         0.45s var(--plmfx-ease);
  overflow: hidden;
}
.plmfx-hover-expand:hover {
  grid-template-rows: auto 1fr;
  box-shadow: 0 24px 56px rgba(0,0,0,0.22);
}
.plmfx-hover-expand__body {
  overflow: hidden;
  min-height: 0;
}

/* Skew */
.plmfx-hover-skew {
  transition: transform 0.5s var(--plmfx-ease-butter);
}
.plmfx-hover-skew:hover { transform: skewX(-6deg) scaleX(1.02); }

/* Shake */
@keyframes plmfx-shake {
  0%,100%  { transform: translateX(0) rotate(0); }
  15%      { transform: translateX(-6px) rotate(-2.5deg); }
  30%      { transform: translateX(6px)  rotate(2.5deg); }
  45%      { transform: translateX(-4px) rotate(-1.5deg); }
  60%      { transform: translateX(4px)  rotate(1.5deg); }
  75%      { transform: translateX(-2px); }
}
.plmfx-hover-shake:hover { animation: plmfx-shake 0.5s var(--plmfx-ease); }

/* Pulse */
@keyframes plmfx-pulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.06); }
}
.plmfx-hover-pulse:hover { animation: plmfx-pulse 0.7s ease-in-out infinite; }

/* Float (continuous) */
@keyframes plmfx-float {
  0%,100% { transform: translateY(0px); }
  50%     { transform: translateY(-10px); }
}
.plmfx-hover-float:hover { animation: plmfx-float 2.5s ease-in-out infinite; }

/* =============================================================================
   GLASSMORPHISM CARD
   ============================================================================= */
.plmfx-glass-card {
  background: var(--plmfx-glass-bg);
  backdrop-filter: blur(var(--plmfx-glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--plmfx-glass-blur)) saturate(180%);
  border: 1px solid var(--plmfx-glass-border);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.07);
  transition:
    transform     var(--plmfx-dur) var(--plmfx-ease-spring),
    box-shadow    var(--plmfx-dur) var(--plmfx-ease),
    border-color  0.3s;
}
.plmfx-glass-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 24px 56px rgba(0,0,0,0.35),
    0 0 0 1px rgba(var(--plmfx-glow-color),0.2),
    inset 0 1px 0 rgba(255,255,255,0.12);
  border-color: rgba(var(--plmfx-glow-color),0.25);
}

/* =============================================================================
   SPOTLIGHT / CURSOR GLOW
   ============================================================================= */
.plmfx-spotlight,
.plmfx-cursor-glow {
  position: relative;
  overflow: hidden;
}
.plmfx-spotlight::before,
.plmfx-cursor-glow::before {
  content: '';
  position: absolute;
  width: var(--plmfx-spot-size);
  height: var(--plmfx-spot-size);
  border-radius: 50%;
  background: radial-gradient(circle, var(--plmfx-spot-color) 0%, transparent 65%);
  left: var(--plmfx-mx, -999px);
  top:  var(--plmfx-my, -999px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.4s;
}
.plmfx-spotlight:hover::before,
.plmfx-cursor-glow:hover::before { opacity: 1; }

.plmfx-cursor-glow::before {
  --plmfx-spot-color: rgba(var(--plmfx-glow-color), 0.18);
  --plmfx-spot-size: 320px;
}

/* Dark vignette spotlight */
.plmfx-spotlight-dark {
  position: relative;
}
.plmfx-spotlight-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle var(--plmfx-spot-size) at var(--plmfx-mx, 50%) var(--plmfx-my, 50%),
    transparent 0%,
    rgba(0,0,0,0.8) 100%
  );
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.5s;
}
.plmfx-spotlight-dark:hover::before { opacity: 1; }

/* Click ripple */
@keyframes plmfx-ripple-expand {
  0%   { transform: scale(0); opacity: 0.5; }
  100% { transform: scale(5); opacity: 0; }
}
.plmfx-cursor-ripple { position: relative; overflow: hidden; }
.plmfx-ripple-dot {
  position: absolute;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  margin-left: -35px; margin-top: -35px;
  pointer-events: none;
  animation: plmfx-ripple-expand 0.75s ease-out forwards;
  z-index: 100;
}

/* =============================================================================
   AURORA BACKGROUND
   ============================================================================= */
@keyframes plmfx-aurora-1 {
  0%,100% { transform: translate(-5%, -5%) scale(1.1) rotate(0deg); }
  50%     { transform: translate(5%, 5%)   scale(1.2) rotate(30deg); }
}
@keyframes plmfx-aurora-2 {
  0%,100% { transform: translate(5%, 5%)   scale(1.15) rotate(0deg); }
  50%     { transform: translate(-5%, -3%) scale(1.05) rotate(-20deg); }
}
.plmfx-aurora {
  position: relative;
  overflow: hidden;
}
.plmfx-aurora::before,
.plmfx-aurora::after {
  content: '';
  position: absolute;
  inset: -40%;
  border-radius: 40%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  filter: blur(70px);
}
.plmfx-aurora::before {
  background: radial-gradient(ellipse, #6366f1 0%, #ec4899 50%, transparent 80%);
  animation: plmfx-aurora-1 12s ease-in-out infinite;
}
.plmfx-aurora::after {
  background: radial-gradient(ellipse, #06b6d4 0%, #10b981 50%, transparent 80%);
  animation: plmfx-aurora-2 15s ease-in-out infinite;
}
.plmfx-aurora > * { position: relative; z-index: 1; }

/* =============================================================================
   GLOW ORB
   ============================================================================= */
@keyframes plmfx-orb-drift {
  0%,100% { transform: translate(0,0)     scale(1);    opacity: 0.5; }
  33%     { transform: translate(30px,-20px) scale(1.1); opacity: 0.7; }
  66%     { transform: translate(-20px,15px) scale(0.95); opacity: 0.45; }
}
.plmfx-glow-orb {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.5) 0%, rgba(236,72,153,0.25) 50%, transparent 80%);
  filter: blur(60px);
  pointer-events: none;
  animation: plmfx-orb-drift 10s ease-in-out infinite;
  z-index: 0;
}

/* =============================================================================
   FILM GRAIN / NOISE
   ============================================================================= */
@keyframes plmfx-noise {
  0%   { transform: translate(0,0); }
  10%  { transform: translate(-2%,-2%); }
  20%  { transform: translate(2%,-2%); }
  30%  { transform: translate(-2%,2%); }
  40%  { transform: translate(2%,2%); }
  50%  { transform: translate(-1%,1%); }
  60%  { transform: translate(1%,-1%); }
  70%  { transform: translate(-2%,1%); }
  80%  { transform: translate(2%,-1%); }
  90%  { transform: translate(-1%,2%); }
  100% { transform: translate(0,0); }
}
.plmfx-noise::after {
  content: '';
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  animation: plmfx-noise 0.4s steps(1) infinite;
  z-index: 100;
}
.plmfx-noise { position: relative; overflow: hidden; }

/* =============================================================================
   LIGHT LEAK
   ============================================================================= */
@keyframes plmfx-leak-drift {
  0%   { transform: translateX(-100%) rotate(25deg); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(200%) rotate(25deg); opacity: 0; }
}
.plmfx-light-leak {
  position: relative;
  overflow: hidden;
}
.plmfx-light-leak::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 0;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,220,180,0.06) 30%,
    rgba(255,200,150,0.12) 50%,
    rgba(255,220,180,0.06) 70%,
    transparent
  );
  pointer-events: none;
  z-index: 5;
  animation: plmfx-leak-drift 9s ease-in-out infinite;
  animation-delay: -3s;
}

/* =============================================================================
   ANIMATED SVG DIVIDER
   ============================================================================= */
.plmfx-svg-divider {
  overflow: hidden;
  line-height: 0;
}
.plmfx-svg-divider svg {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--plmfx-ease), transform 0.8s var(--plmfx-ease);
}
.plmfx-svg-divider.plmfx-visible svg {
  opacity: 1;
  transform: translateY(0);
}
.plmfx-svg-divider svg path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  transition: stroke-dashoffset 2s var(--plmfx-ease-cinema) 0.3s;
}
.plmfx-svg-divider.plmfx-visible svg path {
  stroke-dashoffset: 0;
}

/* =============================================================================
   BACKGROUND MOTION GRADIENT
   ============================================================================= */
@keyframes plmfx-bg-drift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}
.plmfx-bg-drift {
  background: linear-gradient(135deg, #0f0c29, #302b63, #1a1a2e, #0d1117, #0f0c29);
  background-size: 400% 400%;
  animation: plmfx-bg-drift 16s ease infinite;
}

/* =============================================================================
   SCROLL VELOCITY SKEW (JS driven)
   ============================================================================= */
.plmfx-scroll-velocity {
  will-change: transform;
  transition: transform 0.4s var(--plmfx-ease-butter);
}

/* =============================================================================
   ANIMATED COUNTER
   ============================================================================= */
.plmfx-counter {
  font-variant-numeric: tabular-nums;
}

/* =============================================================================
   HORIZONTAL SCROLL SECTION
   ============================================================================= */
.plmfx-horizontal-scroll {
  overflow: hidden;
  position: relative;
}
.plmfx-horizontal-scroll__inner {
  display: flex;
  will-change: transform;
}
.plmfx-horizontal-scroll__panel {
  flex-shrink: 0;
  width: 100vw;
}

/* =============================================================================
   TIMELINE
   ============================================================================= */
.plmfx-timeline {
  position: relative;
  padding-left: 32px;
}
.plmfx-timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 1.5px;
  background: rgba(255,255,255,0.1);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.5s var(--plmfx-ease-cinema);
}
.plmfx-timeline.plmfx-visible::before { transform: scaleY(1); }
.plmfx-timeline-item {
  position: relative;
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity   0.6s var(--plmfx-ease) var(--plmfx-delay),
    transform 0.6s var(--plmfx-ease) var(--plmfx-delay);
}
.plmfx-timeline-item::before {
  content: '';
  position: absolute;
  left: -26px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
  transform: scale(0);
  transition: transform 0.4s var(--plmfx-ease-spring) var(--plmfx-delay);
}
.plmfx-timeline.plmfx-visible .plmfx-timeline-item {
  opacity: 1;
  transform: translateX(0);
}
.plmfx-timeline.plmfx-visible .plmfx-timeline-item::before { transform: scale(1); }

/* =============================================================================
   FLOATING PARTICLES (canvas injected by JS)
   ============================================================================= */
.plmfx-particles {
  position: relative;
}
.plmfx-particles > canvas.plmfx-particle-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.plmfx-particles > *:not(canvas) { position: relative; z-index: 1; }

/* =============================================================================
   CINEMATIC SECTION OVERLAP TRANSITION
   ============================================================================= */
.plmfx-section-overlap {
  position: relative;
  z-index: 1;
  margin-bottom: -80px;
  padding-bottom: 80px;
}
.plmfx-section-overlap + .plmfx-section-overlap {
  z-index: 2;
}

/* =============================================================================
   SMOOTH STICKY (GSAP-driven)
   ============================================================================= */
.plmfx-sticky-story {
  position: relative;
  /* Height is enlarged via JS to create scroll space */
}
.plmfx-sticky-story__inner {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* =============================================================================
   MOBILE OPTIMISATIONS  (phones only — ≤767px)
   Tablet (768px+) keeps full effects. Only JS-driven / mouse-only effects are
   neutralised here; pure-CSS classes (standby tilts, lcf-rotate-*, etc.) are
   intentionally left untouched so they work on every device.
   ============================================================================= */
@media (max-width: 767px) {
  /* Utility escape hatch — opt individual elements out of all motion */
  .plmfx-no-mobile {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  /* Horizontal scroll — converted to native swipe on phones */
  .plmfx-horizontal-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .plmfx-horizontal-scroll__inner { transform: none !important; }

  /* Ambient animations: slow down on phones to save battery */
  .plmfx-aurora::before,
  .plmfx-aurora::after { animation-duration: 20s; }
  .plmfx-bg-drift      { animation-duration: 24s; }
  .plmfx-noise::after  { animation: none; }

  /* Speed token: slightly faster transitions on smaller screens */
  :root {
    --plmfx-dur: 0.65s;
    --plmfx-glass-blur: 12px;
  }
}

/* ── JS-interactive tilt: no mouse on any touch device ─────────────────────
   NOTE: standby tilt classes (plmfx-tilt-left-*, plmfx-tilt-right-*, etc.)
   are NOT listed here — they are CSS-only and must remain active everywhere.
   Only the JS-driven interactive classes (.plmfx-tilt etc.) are suppressed.  */
@media (hover: none) and (pointer: coarse) {
  .plmfx-tilt,
  .plmfx-tilt-glare,
  .plmfx-tilt-subtle,
  .plmfx-tilt-image   { transform: none !important; }
}

/* =============================================================================
   REDUCED MOTION
   ============================================================================= */
@media (prefers-reduced-motion: reduce) {
  *[class*="plmfx-fade"],
  *[class*="plmfx-scale"],
  *[class*="plmfx-slide"],
  *[class*="plmfx-flip"],
  *[class*="plmfx-rotate"],
  *[class*="plmfx-blur"],
  *[class*="plmfx-clip"],
  .plmfx-cinematic,
  .plmfx-smooth-section,
  .plmfx-elastic {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    transition: none !important;
    animation: none !important;
  }
  .plmfx-gradient-text,
  .plmfx-text-glow,
  .plmfx-aurora::before,
  .plmfx-aurora::after,
  .plmfx-bg-drift,
  .plmfx-glow-orb,
  .plmfx-light-leak::before,
  .plmfx-loader__ring,
  .plmfx-hover-pulse:hover,
  .plmfx-hover-shake:hover,
  .plmfx-hover-float:hover { animation: none !important; }
}

/* =============================================================================
   ELEMENTOR EDITOR SAFE MODE
   Applied via body.plmfx-editor-mode — set by motion-engine.js when
   _isElementorEditor is true. Scoped entirely to editor context.
   Frontend/live site: completely unaffected.
   ============================================================================= */
body.plmfx-editor-mode .plmfx-parallax,
body.plmfx-editor-mode .plmfx-parallax-fast,
body.plmfx-editor-mode .plmfx-parallax-deep,
body.plmfx-editor-mode .plmfx-parallax-down,
body.plmfx-editor-mode .plmfx-parallax-x,
body.plmfx-editor-mode .plmfx-float-image,
body.plmfx-editor-mode .plmfx-float-card,
body.plmfx-editor-mode .plmfx-depth-far,
body.plmfx-editor-mode .plmfx-depth-mid,
body.plmfx-editor-mode .plmfx-depth-near,
body.plmfx-editor-mode .plmfx-depth-ultra,
body.plmfx-editor-mode [data-plmfx-depth],
body.plmfx-editor-mode [data-plmfx-parallax] {
  transform: none !important;
  will-change: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
}

/* Ensure reveal elements are visible in editor without waiting for scroll */
body.plmfx-editor-mode [class*="plmfx-reveal"],
body.plmfx-editor-mode [class*="plmfx-fade"],
body.plmfx-editor-mode [class*="plmfx-slide"] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* Elementor editor-active class (belt-and-suspenders, no JS needed) */
body.elementor-editor-active .plmfx-parallax,
body.elementor-editor-active .plmfx-parallax-fast,
body.elementor-editor-active .plmfx-parallax-deep,
body.elementor-editor-active .plmfx-parallax-down,
body.elementor-editor-active .plmfx-parallax-x,
body.elementor-editor-active .plmfx-float-image,
body.elementor-editor-active .plmfx-float-card,
body.elementor-editor-active .plmfx-depth-far,
body.elementor-editor-active .plmfx-depth-mid,
body.elementor-editor-active .plmfx-depth-near,
body.elementor-editor-active .plmfx-depth-ultra,
body.elementor-editor-active [data-plmfx-depth] {
  transform: none !important;
  will-change: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
}

/* =============================================================================
   NEW IN v3.1.0 — Additional Premium Effect Classes
   ============================================================================= */

/* ── Fade Up Strong: bigger travel + entry blur ──────────────────────────── */
.plmfx-fade-up-strong {
  opacity: 0;
  transform: translateY(110px);
  filter: blur(4px);
  will-change: transform, opacity, filter;
  transition:
    opacity   var(--plmfx-dur) var(--plmfx-ease-butter) var(--plmfx-delay),
    transform var(--plmfx-dur) var(--plmfx-ease-butter) var(--plmfx-delay),
    filter    var(--plmfx-dur) var(--plmfx-ease-butter) var(--plmfx-delay);
  transition-timing-function: var(--plmfx-ease-cinema);
  --plmfx-dur: 1.0s;
}
.plmfx-fade-up-strong.plmfx-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ── Zoom Reveal: zooms in from oversized while clearing blur ────────────── */
.plmfx-zoom-reveal {
  opacity: 0;
  transform: scale(1.35);
  filter: blur(8px);
  will-change: transform, opacity, filter;
  transition:
    opacity   1.1s var(--plmfx-ease-cinema) var(--plmfx-delay),
    transform 1.1s var(--plmfx-ease-cinema) var(--plmfx-delay),
    filter    1.1s var(--plmfx-ease-cinema) var(--plmfx-delay);
}
.plmfx-zoom-reveal.plmfx-visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* ── Stagger children: blur on individual children ───────────────────────── */
.plmfx-stagger-children > * {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(2px);
  will-change: transform, opacity, filter;
  transition:
    opacity   0.75s var(--plmfx-ease-butter) var(--plmfx-delay),
    transform 0.75s var(--plmfx-ease-butter) var(--plmfx-delay),
    filter    0.75s var(--plmfx-ease-butter) var(--plmfx-delay);
}
.plmfx-stagger-children.plmfx-visible > * {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ── Premium shimmer sweep (loading-skeleton style, usable on any element) ── */
@keyframes plmfx-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.plmfx-shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.08) 40%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0.08) 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: plmfx-shimmer 2.8s ease-in-out infinite;
}

/* ── Kinetic border: animated gradient border ────────────────────────────── */
@keyframes plmfx-border-spin {
  0%   { --plmfx-border-angle: 0deg; }
  100% { --plmfx-border-angle: 360deg; }
}
@property --plmfx-border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.plmfx-kinetic-border {
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}
.plmfx-kinetic-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--plmfx-border-angle, 0deg),
    #6366f1, #ec4899, #f59e0b, #10b981, #6366f1
  );
  animation: plmfx-border-spin 4s linear infinite;
  z-index: -1;
}

/* ── Slide-in from left with reveal clip ─────────────────────────────────── */
.plmfx-slide-reveal {
  overflow: hidden;
}
.plmfx-slide-reveal > * {
  transform: translateX(-100%);
  transition: transform 0.9s var(--plmfx-ease-cinema) var(--plmfx-delay);
  will-change: transform;
}
.plmfx-slide-reveal.plmfx-visible > * {
  transform: translateX(0);
}

/* ── Neon glow hover ─────────────────────────────────────────────────────── */
.plmfx-hover-neon {
  transition:
    box-shadow 0.35s var(--plmfx-ease),
    transform  0.35s var(--plmfx-ease),
    text-shadow 0.35s var(--plmfx-ease);
}
.plmfx-hover-neon:hover {
  box-shadow:
    0 0 8px  rgba(var(--plmfx-glow-color), 0.8),
    0 0 24px rgba(var(--plmfx-glow-color), 0.5),
    0 0 60px rgba(var(--plmfx-glow-color), 0.25);
  transform: translateY(-3px);
}

/* ── Colour-shift gradient hover ─────────────────────────────────────────── */
@keyframes plmfx-hue-shift {
  0%   { filter: hue-rotate(0deg)   saturate(100%); }
  50%  { filter: hue-rotate(180deg) saturate(140%); }
  100% { filter: hue-rotate(360deg) saturate(100%); }
}
.plmfx-hue-hover:hover {
  animation: plmfx-hue-shift 2s linear infinite;
}

/* ── Scroll-velocity skew: stronger CSS fallback transition ─────────────── */
.plmfx-scroll-velocity {
  will-change: transform;
  transition: transform 0.22s var(--plmfx-ease-butter);
}

/* ── Cinematic page transition overlay (pair with JS page transitions) ────── */
#plmfx-page-transition {
  position: fixed;
  inset: 0;
  background: #050508;
  z-index: 9999999;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.65s var(--plmfx-ease-cinema);
}
#plmfx-page-transition.plmfx-entering {
  transform: translateY(0);
}
#plmfx-page-transition.plmfx-leaving {
  transform: translateY(-100%);
  transition: transform 0.5s var(--plmfx-ease-cinema);
}

/* =============================================================================
   v3.1.0 — ENHANCED EXISTING CLASSES
   ============================================================================= */

/* Tilt glare: stronger overlay opacity for richer look */
.plmfx-tilt-glare::after {
  --plmfx-glare-op: 0.30;
}

/* Glass card: deeper blur, richer shadow on hover */
.plmfx-glass-card {
  --plmfx-glass-blur: 24px;
}
.plmfx-glass-card:hover {
  box-shadow:
    0 32px 70px rgba(0,0,0,0.40),
    0 0 0 1px rgba(var(--plmfx-glow-color), 0.25),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Aurora: deeper, richer colours */
.plmfx-aurora::before {
  opacity: 0.45;
  filter: blur(80px);
}
.plmfx-aurora::after {
  opacity: 0.38;
  filter: blur(80px);
}

/* Glow orb: larger, more atmospheric */
.plmfx-glow-orb {
  width: 600px;
  height: 600px;
  filter: blur(80px);
}

/* Progress bar: thicker, more vivid gradient */
#plmfx-progress-fill {
  height: 3.5px;
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899, #f59e0b);
  box-shadow: 0 0 18px rgba(99,102,241,0.9), 0 0 6px rgba(236,72,153,0.6);
}

/* Underline draw: slightly thicker line */
.plmfx-underline-draw::after {
  height: 2px;
  transition: width 0.6s var(--plmfx-ease-cinema);
}

/* Hover lift: more elevation, richer shadow */
.plmfx-hover-lift:hover {
  transform: translateY(-18px) scale(1.02);
  box-shadow: 0 48px 80px -20px rgba(0,0,0,0.45);
}
