/* OpenWork0x FX layer — motion and guided-tour visuals added on top of the original design.
   Nothing here changes layout; every effect is disabled under prefers-reduced-motion. */

/* ---- scroll reveal (only when fx.js has armed it, so content is never hidden without JS) ---- */
.fx-armed .fx-reveal{opacity:0;transform:translateY(22px);transition:opacity .7s cubic-bezier(.2,.7,.2,1) var(--fx-d,0s),transform .7s cubic-bezier(.2,.7,.2,1) var(--fx-d,0s)}
.fx-armed .fx-reveal.fx-in{opacity:1;transform:none}
.fx-armed .fx-reveal.fx-zoom{transform:scale(.96)}
.fx-armed .fx-reveal.fx-zoom.fx-in{transform:none}

/* ---- hero ---- */
.fx-armed .hero-art>img{animation:fx-hero-in 1.1s cubic-bezier(.2,.7,.2,1) both}
@keyframes fx-hero-in{from{opacity:0;transform:scale(1.04);filter:saturate(.7)}to{opacity:1;transform:none;filter:none}}
.fx-armed .floating{animation:fx-pop .7s cubic-bezier(.2,1.4,.4,1) both,fx-float 6s ease-in-out infinite}
.fx-armed .float-top{animation-delay:.55s,1.3s}
.fx-armed .float-bottom{animation-delay:.85s,2.4s}
@keyframes fx-pop{from{opacity:0;transform:translateY(14px) scale(.92)}to{opacity:1;transform:none}}
@keyframes fx-float{0%,100%{translate:0 0}50%{translate:0 -7px}}
.fx-armed .floating .spark{display:inline-block;animation:fx-twinkle 2.6s ease-in-out infinite}
@keyframes fx-twinkle{0%,100%{transform:scale(1) rotate(0)}50%{transform:scale(1.25) rotate(20deg)}}
.fx-armed .hero h1 em{background:linear-gradient(90deg,currentColor 0 0) no-repeat 0 92%/0 3px;animation:fx-underline 1s .9s ease forwards}
@keyframes fx-underline{to{background-size:100% 3px}}
.fx-armed .avatar-stack i{animation:fx-pop .5s cubic-bezier(.2,1.4,.4,1) both}
.fx-armed .avatar-stack i:nth-child(2){animation-delay:.12s}.fx-armed .avatar-stack i:nth-child(3){animation-delay:.24s}

/* ---- ping gateway: live radar ---- */
.fx-armed .gateway-radar span{animation:fx-radar 3.6s ease-out infinite}
.fx-armed .gateway-radar span:nth-child(2){animation-delay:1.2s}
.fx-armed .gateway-radar span:nth-child(3){animation-delay:2.4s}
@keyframes fx-radar{0%{transform:scale(.55);opacity:0}25%{opacity:1}100%{transform:scale(1.08);opacity:0}}
.fx-armed .gateway-offer{animation:fx-bob 5s ease-in-out infinite}
@keyframes fx-bob{0%,100%{transform:rotate(-3deg) translateY(0)}50%{transform:rotate(-2deg) translateY(-8px)}}
.gateway-offer.fx-ping{animation:fx-ring .9s ease!important}
@keyframes fx-ring{0%{transform:rotate(-3deg) scale(1)}20%{transform:rotate(-6deg) scale(1.04)}40%{transform:rotate(0) scale(1.04)}60%{transform:rotate(-5deg) scale(1.02)}100%{transform:rotate(-3deg) scale(1)}}
.ping-launch{position:relative}
.fx-armed .ping-launch::after{content:"";position:absolute;inset:-4px;border-radius:11px;border:2px solid #d7f37b;opacity:0;animation:fx-halo 2.8s ease-out infinite}
@keyframes fx-halo{0%{opacity:.7;transform:scale(.96)}100%{opacity:0;transform:scale(1.12)}}

/* ---- cards & media ---- */
.builder-card,.project-card{transition:transform .25s ease,box-shadow .25s ease}
.builder-card:hover,.project-card:hover{transform:translateY(-4px);box-shadow:0 18px 34px #18392a14}
.portrait img{transition:transform .6s ease}
.builder-card:hover .portrait img{transform:scale(1.05)}
.fx-armed .trust-icon{display:inline-block;transition:transform .8s cubic-bezier(.2,1.4,.4,1) .2s}
.fx-armed .fx-reveal:not(.fx-in) .trust-icon{transform:scale(.3) rotate(-90deg)}
.fx-armed .final-cta h2 em{background:linear-gradient(90deg,currentColor 0 0) no-repeat 0 92%/0 3px;transition:background-size 1s .4s ease}
.fx-armed .final-cta.fx-in h2 em{background-size:100% 3px}

/* ---- team photo & ecosystem mark (images that shipped with the export) ---- */
.journey-photo{margin:0 0 26px;border-radius:18px;overflow:hidden;position:relative;aspect-ratio:16/9;background:#e6eee8}
.journey-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 8s ease}
.journey-photo.fx-in img{transform:scale(1.06)}
.journey-photo figcaption{position:absolute;left:14px;bottom:12px;background:#fffffff0;border-radius:30px;padding:4px 11px;font-size:11px;color:var(--ink)}
.ecosystem-mark{display:flex;align-items:center;gap:10px;margin-top:16px;font-size:11px;letter-spacing:.6px;color:var(--muted)}
.ecosystem-mark img{height:18px;width:auto;opacity:.85}

/* ---- guided-tour spotlight ---- */
.fx-spot{position:relative;z-index:2;border-radius:16px;box-shadow:0 0 0 3px #d7f37b,0 0 0 9px #d7f37b40!important;animation:fx-spot 1.8s ease-in-out infinite;scroll-margin:90px}
@keyframes fx-spot{0%,100%{box-shadow:0 0 0 3px #d7f37b,0 0 0 9px #d7f37b40}50%{box-shadow:0 0 0 3px #d7f37b,0 0 0 16px #d7f37b10}}
.fx-tour-on .skip-link{display:none}
.fx-listen{display:inline-flex;align-items:center;gap:10px;margin-top:20px;background:none;border:0;padding:6px 0;color:var(--green);font-weight:700;font-size:14px;min-height:44px;cursor:pointer}
.fx-listen .fx-eq{display:inline-flex;gap:2px;align-items:flex-end;height:14px}
.fx-listen .fx-eq i{width:3px;height:5px;background:currentColor;border-radius:2px}
.fx-listen.is-playing .fx-eq i{animation:fx-eq .9s ease-in-out infinite}
.fx-listen.is-playing .fx-eq i:nth-child(2){animation-delay:.15s}.fx-listen.is-playing .fx-eq i:nth-child(3){animation-delay:.3s}.fx-listen.is-playing .fx-eq i:nth-child(4){animation-delay:.45s}
@keyframes fx-eq{0%,100%{height:4px}50%{height:14px}}
.fx-listen-dark{color:#d7f37b}

/* ---- workspace stage changes ---- */
#stage-content>*{animation:fx-stage .45s ease both}
#stage-content>*:nth-child(2){animation-delay:.05s}#stage-content>*:nth-child(3){animation-delay:.1s}#stage-content>*:nth-child(4){animation-delay:.15s}#stage-content>*:nth-child(5){animation-delay:.2s}#stage-content>*:nth-child(n+6){animation-delay:.25s}
@keyframes fx-stage{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.status-card{animation:fx-pop .55s cubic-bezier(.2,1.4,.4,1) both}
.fx-typing{caret-color:var(--green)}

@media(prefers-reduced-motion:reduce){
 .fx-armed .fx-reveal{opacity:1!important;transform:none!important;transition:none!important}
 .fx-armed *,.fx-spot,#stage-content>*,.status-card{animation:none!important}
 .journey-photo img,.portrait img{transition:none!important}
}

/* ---- revenue lab ---- */
.fx-armed .lab-hero-art>img{animation:fx-hero-in 1.1s cubic-bezier(.2,.7,.2,1) both}
.fx-armed .hero-amount{animation:fx-float 6s 1.4s ease-in-out infinite}
.fx-armed .fx-in #mix-chart{animation:fx-chart-in .9s .2s cubic-bezier(.2,.7,.2,1) both}
@keyframes fx-chart-in{from{opacity:0;transform:rotate(-40deg) scale(.85)}to{opacity:1;transform:none}}

