/* Synthia shared motion layer (every page): ambient chip field, scroll reveal,
   3D tilt cards, cursor glow. All of it is skipped under prefers-reduced-motion. */

/* Ambient canvas sits between the page background (moved to <html> by sx-fx.js) and the content. */
.sx-ambient{position:fixed;inset:0;width:100vw;height:100vh;z-index:-1;pointer-events:none;opacity:.7}

/* Scroll reveal: hidden only once JS has armed it, so no-JS visitors see everything. */
.sx-fx-armed .sx-rv{opacity:0;translate:0 26px;scale:.985;filter:blur(3px)}
.sx-fx-armed .sx-rv.sx-in{opacity:1;translate:0 0;scale:1;filter:none;
  transition:opacity .7s cubic-bezier(.2,.7,.2,1),translate .7s cubic-bezier(.2,.7,.2,1),scale .7s cubic-bezier(.2,.7,.2,1),filter .7s}

/* 3D tilt cards: transform comes from JS; the glare follows the pointer. */
.sx-tilt{transform-style:preserve-3d;will-change:transform;transition:transform .5s cubic-bezier(.2,.7,.2,1),box-shadow .35s,border-color .35s}
.sx-tilt.sx-hot{transition:transform .08s linear,box-shadow .35s,border-color .35s;
  box-shadow:0 22px 50px -18px rgba(0,0,0,.7),0 0 0 1px rgba(124,140,255,.28),0 0 38px -6px rgba(154,72,198,.45)}
.sx-tilt.sx-hot.sx-tilt{background-image:radial-gradient(520px circle at var(--sx-mx,50%) var(--sx-my,50%),rgba(255,255,255,.075),transparent 42%)}

/* Cursor glow (fine pointers only). */
.sx-cursor{position:fixed;left:0;top:0;width:520px;height:520px;margin:-260px 0 0 -260px;border-radius:50%;pointer-events:none;z-index:1;
  background:radial-gradient(closest-side,rgba(62,130,240,.10),rgba(154,72,198,.07) 45%,transparent 70%);mix-blend-mode:screen;opacity:0;transition:opacity .4s}
.sx-cursor.on{opacity:1}

/* Click ripple (all pointers). */
.sx-ripple{position:fixed;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;pointer-events:none;z-index:70;
  border:1.5px solid rgba(31,227,255,.8);box-shadow:0 0 18px rgba(154,72,198,.7);animation:sx-ripple .7s cubic-bezier(.2,.7,.2,1) forwards}
@keyframes sx-ripple{to{transform:scale(9);opacity:0}}

/* Top bar: a light pulse runs along its bottom edge. */
.sx-bar::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(31,227,255,.9),rgba(214,46,150,.9),transparent) no-repeat;background-size:30% 100%;
  animation:sx-scan 6s linear infinite}
@keyframes sx-scan{from{background-position:-40% 0}to{background-position:140% 0}}

@media (prefers-reduced-motion:reduce){
  .sx-ambient,.sx-cursor{display:none}
  .sx-bar::after{animation:none;opacity:0}
}
