/* hvo-lux-motion.css - WP-L3 (plan section 3). Loaded after hvo-lux.css. Transform/opacity/clip-path only; no animated filter/box-shadow/background-position.
   Hooks: .lx-glow(+b, [data-flame]) .lx-cove .lx-div .lx-btn(.gold) .lx-rv .lx-sweep .lx-wipe .lx-curtain .lx-rule .lx-draw .lx-line>span .lx-ey [data-par] [data-count] .lx-lamp
   States (html): .js  .lx-ready  .lx-all (safety: show everything)  .lx-paused (tab hidden)  .lx-lite (animation budget governor)  [data-motion=full|calm|off]
   Element: .in (revealed)  .lx-off (offscreen -> animations paused) */

/* ---------- 3.1 candlelight breathing glow ---------- */
.lx-glow{position:absolute;width:var(--lx-size,320px);aspect-ratio:1;border-radius:50%;pointer-events:none;z-index:1;
  background:radial-gradient(circle,rgba(255,233,191,.95) 0,rgba(243,217,164,.55) 22%,rgba(232,184,107,.18) 48%,transparent 70%);
  opacity:var(--lx-o,.75);transform:translate3d(-50%,-50%,0) scale(1);will-change:transform,opacity;
  animation:lx-breathe var(--lx-p,5.6s) var(--lx-ease-io,cubic-bezier(.65,0,.35,1)) infinite var(--lx-d,0s)}
.lx-glow b{position:absolute;inset:40%;border-radius:50%;background:radial-gradient(circle,#FFF6DF,rgba(255,246,223,0) 70%);
  animation:lx-flicker 7.3s steps(1,end) infinite calc(var(--lx-d,0s) * 1.7)}
@keyframes lx-breathe{0%,100%{transform:translate3d(-50%,-50%,0) scale(.94);opacity:calc(var(--lx-o,.75) * .8)}50%{transform:translate3d(-50%,-50%,0) scale(1.06);opacity:var(--lx-o,.75)}}
@keyframes lx-flicker{0%,100%{opacity:1}7%{opacity:.94}9%{opacity:1}23%{opacity:.9}26%{opacity:1}44%{opacity:.97}46%{opacity:.86}49%{opacity:1}71%{opacity:.93}74%{opacity:1}88%{opacity:.96}}
/* JS flame driver (sum of sines) replaces the keyframes on [data-flame] glows: no CSS animation, no GPU-layer churn from 8 animations */
.lx-glow.lx-fl,.lx-glow.lx-fl b{animation:none}

/* ---------- 3.2 CTA halo + divider light ---------- */
.lx-btn.gold{position:relative}
.lx-btn.gold::after{content:"";position:absolute;inset:-24px -32px;border-radius:6px;z-index:-1;pointer-events:none;
  background:radial-gradient(closest-side at 50% 55%,rgba(243,217,164,.5),rgba(243,217,164,.18) 55%,transparent);will-change:transform,opacity;
  animation:lx-halo 5.2s var(--lx-ease-io,cubic-bezier(.65,0,.35,1)) infinite}
@keyframes lx-halo{0%,100%{opacity:.45;transform:scale(.96)}50%{opacity:.9;transform:scale(1.04)}}
.lx-btn.gold:hover::after,.lx-btn.gold:focus-visible::after{opacity:1}
.lx-div{position:relative;clip-path:inset(-24px 0)}
.lx-div::after{content:"";position:absolute;left:0;top:0;width:240px;height:100%;pointer-events:none;opacity:.6;
  background:linear-gradient(90deg,transparent,var(--lx-glow-2,#FFE9BF),transparent);transform:translate3d(-20%,0,0);
  animation:lx-drift 9s linear infinite}
@keyframes lx-drift{from{transform:translate3d(-20%,0,0)}to{transform:translate3d(120vw,0,0)}}

/* ---------- 3.3 cove light ---------- */
.lx-cove{position:absolute;left:0;right:0;top:0;height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent,var(--lx-gold-2,#E2C58F) 18%,var(--lx-glow-2,#FFE9BF) 50%,var(--lx-gold-2,#E2C58F) 82%,transparent);transform-origin:50% 50%}
.lx-cove::before{content:"";position:absolute;left:0;right:0;top:0;height:56px;background:linear-gradient(180deg,rgba(243,217,164,.30),transparent);
  transform-origin:50% 0;will-change:transform,opacity;animation:lx-cove 6.4s var(--lx-ease-io,cubic-bezier(.65,0,.35,1)) infinite}
@keyframes lx-cove{0%,100%{transform:scaleY(.8);opacity:.7}50%{transform:scaleY(1.15);opacity:1}}
html.js .lx-cove:not(.in){transform:scaleX(0);opacity:0}
html.js .lx-cove{transition:transform 1.4s var(--lx-ease,cubic-bezier(.16,1,.3,1)),opacity 1.4s var(--lx-ease,cubic-bezier(.16,1,.3,1))}
html.js .lx-cove.lx-gs{transition:none}
#hvo-prog,.lx-prog{transform-origin:0 50%}

/* ---------- offscreen / hidden-tab pause ---------- */
.lx-off,.lx-off::before,.lx-off::after,.lx-off>b,.lx-off .lx-glow,.lx-off .lx-glow b,.lx-off .lx-cove::before,.lx-off .lx-div::after,.lx-off .lx-btn.gold::after{animation-play-state:paused}
.lx-paused *,.lx-paused *::before,.lx-paused *::after{animation-play-state:paused!important}
/* budget governor (JS adds .lx-lite when >8 infinite animations run): drop the least visible ones */
.lx-lite .lx-glow b,.lx-lite .lx-div::after{animation:none}

/* ---------- 3.6 cursor lamp, 3.7 magnetic ---------- */
.lx-lamp{position:fixed;left:0;top:0;width:640px;height:640px;border-radius:50%;pointer-events:none;z-index:95;display:none;
  background:radial-gradient(circle,rgba(243,217,164,.14),rgba(243,217,164,.05) 40%,transparent 70%);mix-blend-mode:screen;opacity:0;transition:opacity .6s;will-change:transform}
.lx-lamp.on{opacity:1}
@media (pointer:fine) and (min-width:1024px){.lx-lamp{display:block}}
.lx-mag{will-change:transform}
.lx-mag.lx-mag-r{transition:transform .55s var(--lx-ease,cubic-bezier(.16,1,.3,1))}
.lx-mag>span.lx-mag-in{display:inline-block}

/* ---------- 3.4 reveals (hidden only when JS is on, motion is allowed, and the safety flag is not set) ---------- */
@media (prefers-reduced-motion:no-preference){
  html.js:not(.lx-all):not([data-motion=off]) .lx-rv:not(.in){opacity:0;transform:translate3d(0,28px,0)}
  html.js:not([data-motion=off]) .lx-rv{transition:opacity 1.1s var(--lx-ease,cubic-bezier(.16,1,.3,1)) calc(var(--i,0) * 110ms),transform 1.1s var(--lx-ease,cubic-bezier(.16,1,.3,1)) calc(var(--i,0) * 110ms)}

  html.js:not(.lx-all):not([data-motion=off]) .lx-wipe:not(.in){clip-path:inset(0 0 100% 0)}
  html.js:not(.lx-all):not([data-motion=off]) .lx-wipe:not(.in) img{transform:scale(1.08)}
  html.js:not([data-motion=off]) .lx-wipe{clip-path:inset(0);transition:clip-path 1.3s var(--lx-ease,cubic-bezier(.16,1,.3,1)) calc(var(--i,0) * 110ms)}
  html.js:not([data-motion=off]) .lx-wipe img{transition:transform 1.6s var(--lx-ease,cubic-bezier(.16,1,.3,1)) calc(var(--i,0) * 110ms)}

  html.js:not(.lx-all):not([data-motion=off]) .lx-rule:not(.in){transform:scaleX(0)}
  html.js:not([data-motion=off]) .lx-rule{transform-origin:0 50%;transition:transform 1.2s var(--lx-ease,cubic-bezier(.16,1,.3,1)) calc(var(--i,0) * 110ms)}

  /* hero headline line masks */
  .lx-line{display:block;overflow:hidden;padding-bottom:.14em;margin-bottom:-.14em}
  .lx-line>span{display:block}
  html.js:not(.lx-all):not([data-motion=off]) .lx-line:not(.in)>span{transform:translate3d(0,110%,0)}
  html.js:not([data-motion=off]) .lx-line>span{transition:transform 1.1s var(--lx-ease,cubic-bezier(.16,1,.3,1)) calc(var(--i,0) * 140ms)}

  /* eyebrow letters (JS splits words/letters; --k = letter index) */
  html.js:not(.lx-all):not([data-motion=off]) .lx-ey:not(.in) .lx-l{opacity:0;transform:translate3d(-.4em,0,0)}
  html.js:not([data-motion=off]) .lx-ey .lx-l{display:inline-block;transition:opacity .8s var(--lx-ease,cubic-bezier(.16,1,.3,1)) calc(var(--k,0) * 38ms),transform .8s var(--lx-ease,cubic-bezier(.16,1,.3,1)) calc(var(--k,0) * 38ms)}
  .lx-ey .lx-w{display:inline-block;white-space:nowrap}

  /* light sweep: cards / frames (::after) and buttons (::before, because .gold owns ::after) */
  .lx-sweep:not(.lx-btn){position:relative;overflow:hidden}
  .lx-sweep:not(.lx-btn)::after,.lx-btn::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:2;opacity:0;
    background:linear-gradient(105deg,transparent 35%,rgba(255,240,210,.22) 50%,transparent 65%);transform:translate3d(-120%,0,0)}
  html.js:not([data-motion=off]) .lx-sweep.in:not(.lx-btn)::after{animation:lx-sweep 1.4s var(--lx-ease,cubic-bezier(.16,1,.3,1)) calc(var(--i,0) * 110ms + .5s) 1 backwards}
  .lx-btn{position:relative;clip-path:inset(-40px)}
  .lx-btn:hover::before,.lx-btn:focus-visible::before{animation:lx-sweep 1.1s var(--lx-ease,cubic-bezier(.16,1,.3,1)) 1 backwards}
  @keyframes lx-sweep{0%{opacity:1;transform:translate3d(-120%,0,0)}100%{opacity:1;transform:translate3d(120%,0,0)}}

  /* curtain wipe (buyout band): two panels slide out when the section enters */
  .lx-curtain{position:relative;overflow:hidden}
  html.js:not(.lx-all):not([data-motion=off]) .lx-curtain::before,html.js:not(.lx-all):not([data-motion=off]) .lx-curtain::after{content:"";position:absolute;top:0;bottom:0;width:50%;z-index:5;pointer-events:none;
    background:linear-gradient(180deg,var(--lx-ox-2,#5E252C),var(--lx-ox-d,#36151A));transition:transform 1.2s var(--lx-ease,cubic-bezier(.16,1,.3,1)) .1s}
  html.js:not(.lx-all):not([data-motion=off]) .lx-curtain::before{left:0}
  html.js:not(.lx-all):not([data-motion=off]) .lx-curtain::after{right:0}
  html.js:not(.lx-all):not([data-motion=off]) .lx-curtain.in::before{transform:translate3d(-101%,0,0)}
  html.js:not(.lx-all):not([data-motion=off]) .lx-curtain.in::after{transform:translate3d(101%,0,0)}

  /* stroke draw (IO class when GSAP is not scrubbing) */
  html.js:not(.lx-all):not([data-motion=off]) .lx-draw:not(.in):not(.lx-gs) path{stroke-dasharray:100;stroke-dashoffset:100}
  html.js:not([data-motion=off]) .lx-draw:not(.lx-gs) path{stroke-dasharray:100;transition:stroke-dashoffset 1.8s var(--lx-ease-io,cubic-bezier(.65,0,.35,1))}
  html.js:not([data-motion=off]) .lx-draw.in:not(.lx-gs) path{stroke-dashoffset:0}
  /* raster monogram (img.lx-draw): drawn left to right */
  html.js:not(.lx-all):not([data-motion=off]) img.lx-draw:not(.in){clip-path:inset(0 100% 0 0);opacity:.2}
  html.js:not([data-motion=off]) img.lx-draw{transition:clip-path 1.8s var(--lx-ease-io,cubic-bezier(.65,0,.35,1)),opacity 1.8s var(--lx-ease-io,cubic-bezier(.65,0,.35,1))}
}

/* ---------- 3.10 calm (and html.lx-slow = auto performance guard): reveals stay, lights go still ---------- */
html[data-motion=calm] .lx-glow,html.lx-slow .lx-glow,html[data-motion=calm] .lx-glow b,html.lx-slow .lx-glow b,html[data-motion=calm] .lx-btn.gold::after,html.lx-slow .lx-btn.gold::after,html[data-motion=calm] .lx-cove::before,html.lx-slow .lx-cove::before,html[data-motion=calm] .lx-div::after,html.lx-slow .lx-div::after{animation:none}
html[data-motion=calm] .lx-glow,html.lx-slow .lx-glow{opacity:.8}
html[data-motion=calm] .lx-btn.gold::after,html.lx-slow .lx-btn.gold::after{opacity:.7}
html[data-motion=calm] .lx-div::after,html.lx-slow .lx-div::after{display:none}
html[data-motion=calm] .lx-lamp,html.lx-slow .lx-lamp{display:none}
html[data-motion=calm],html.lx-slow,html[data-motion=calm] body,html.lx-slow body{scroll-behavior:smooth}

/* ---------- 3.10 off + prefers-reduced-motion: everything static and visible ---------- */
html[data-motion=off] .lx-glow,html[data-motion=off] .lx-glow b,html[data-motion=off] .lx-btn.gold::after,html[data-motion=off] .lx-cove::before,html[data-motion=off] .lx-div::after{animation:none}
html[data-motion=off] .lx-glow{opacity:.8}
html[data-motion=off] .lx-btn.gold::after{opacity:.7}
html[data-motion=off] .lx-div::after,html[data-motion=off] .lx-lamp,html[data-motion=off] .lx-sweep::after,html[data-motion=off] .lx-btn::before{display:none}
html[data-motion=off] .lx-curtain::before,html[data-motion=off] .lx-curtain::after{content:none}
html[data-motion=off] .lx-cove{transform:none;opacity:1;transition:none}
html[data-motion=off] .lx-draw path{stroke-dashoffset:0;transition:none}
html[data-motion=off] .lx-wipe{clip-path:none}
html[data-motion=off],html[data-motion=off] body{scroll-behavior:auto}
@media (prefers-reduced-motion:reduce){
  .lx-glow,.lx-glow b,.lx-btn.gold::after,.lx-cove::before,.lx-div::after{animation:none}
  .lx-glow{opacity:.8}
  .lx-btn.gold::after{opacity:.7}
  .lx-div::after,.lx-lamp,.lx-sweep::after,.lx-btn::before{display:none}
  .lx-cove{transform:none;opacity:1;transition:none}
  .lx-draw path{stroke-dashoffset:0;transition:none}
  .lx-rv,.lx-wipe,.lx-wipe img,.lx-rule,.lx-line>span,.lx-ey .lx-l{opacity:1;transform:none;clip-path:none;transition:none}
  .lx-rv,.lx-rule,.lx-line>span,.lx-ey .lx-l{clip-path:none}
  html,body{scroll-behavior:auto}
}
html[data-motion=off] .lx-rv,html[data-motion=off] .lx-wipe,html[data-motion=off] .lx-wipe img,html[data-motion=off] .lx-rule,html[data-motion=off] .lx-line>span,html[data-motion=off] .lx-ey .lx-l{opacity:1;transform:none;transition:none}
