/* =====================================================================
   .px-logo  —  Praxis/AI hero wordmark. Vector only. Markup: portal/templates/_px_logo.html
   (copied into site/lobby/index.html); behaviour: px-logo.js.
   ===================================================================== */
.px-logo{position:relative;width:100%;margin-inline:auto;z-index:1}   /* each page sets the width */
.px-logo svg{display:block;width:100%;height:auto;overflow:visible}
.px-logo text{
  font-family:"Inter Tight","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-weight:620;font-size:165px;letter-spacing:-0.025em;
  text-rendering:geometricPrecision;
}
.px-logo .px-cap{font-size:194px}           /* P and A ~1.17x */

/* ---- layers (bottom to top) ---- */
.px-logo .px-glow{opacity:.42;filter:url(#pxGlowF)}          /* soft light BEHIND the letters only */
.px-logo .px-glow .px-let{fill:#3a9bc6}
.px-logo .px-glow .px-slash{fill:#5ad9ff}

.px-logo .px-ext .px-let{fill:url(#pxExt)}                   /* extrusion / depth */
.px-logo .px-ext .px-slash{fill:url(#pxExtC)}

.px-logo .px-rim{opacity:.6}                                 /* top-left rim light */
.px-logo .px-rim .px-let,.px-logo .px-rim .px-slash{fill:#fff}

.px-logo .px-face .px-let{fill:url(#pxChrome)}               /* chrome face */
.px-logo .px-face .px-slash{fill:url(#pxBeam)}               /* the slash: ice/cyan beam */
.px-logo .px-face text{stroke:url(#pxEdge);stroke-width:.9;paint-order:stroke;stroke-linejoin:round}

.px-logo .px-beam .px-let{fill:none}                         /* slash flash, right after the sweep passes */
.px-logo .px-beam .px-slash{fill:#eafcff}
.px-logo .px-beam{opacity:0;animation:px-beam 1.51s ease-in-out .85s infinite}

/* ---- clipped overlays: everything in here is cut by the crisp letter outlines ---- */
.px-logo .px-band{animation:px-drift 9s ease-in-out infinite alternate}
/* Metronome: the light swings steadily back and forth, easing at each end like a pendulum. */
.px-logo .px-sweep{transform:translateX(var(--px-from,197px));animation:px-sweep 1.51s cubic-bezier(.45,0,.55,1) .85s infinite alternate}
/* Comet tail: trails behind the head, flips when the swing reverses, stretches with speed (longest mid-swing). */
.px-logo .px-tail{transform-box:fill-box;transform-origin:100% 50%;transform:scaleX(.2);animation:px-tail 3.02s linear .85s infinite}
.px-logo .px-emit{opacity:.8;filter:url(#pxEmitF)}
.px-logo .px-streak{opacity:0;animation:px-streak 1.51s cubic-bezier(.4,0,.2,1) 1.605s infinite}

/* ---- intro: letters resolve in (tracking tightens, rise, depth snaps in) ---- */
.px-logo .px-rise{animation:px-rise .95s cubic-bezier(.2,.7,.15,1) both}
.px-logo .px-rise text{animation:px-track .95s cubic-bezier(.2,.7,.15,1) both}
.px-logo .px-ext{animation:px-depth 1.1s cubic-bezier(.2,.7,.15,1) .12s both}
.px-logo .px-glow{animation:px-fade 1.4s ease-out both}

/* ---- neural nodes + connectors (built by the script from the real glyph outlines) ---- */
.px-logo .px-node{transform-box:fill-box;transform-origin:center;
  animation:px-pop .7s cubic-bezier(.2,1.5,.4,1) calc(var(--px-t0,1s) + var(--d,0s)) both}
.px-logo .px-halo{fill:url(#pxHalo);transform-box:fill-box;transform-origin:center;
  animation:px-pulse 3.8s ease-in-out calc(var(--px-t0,1s) + var(--d,0s) + .7s) infinite}
.px-logo .px-core{fill:#eafcff;stroke:rgba(90,217,255,.9);stroke-width:1}
.px-logo .px-link{fill:none;stroke-width:1;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:0;
  animation:px-draw .9s cubic-bezier(.3,.6,.2,1) calc(var(--px-t0,1s) + var(--d,0s)) both}
.px-logo .px-sat{fill:#5ad9ff;
  animation:px-fade .6s ease-out calc(var(--px-t0,1s) + var(--d,0s)) both,
            px-twinkle 5s ease-in-out calc(var(--px-t0,1s) + var(--d,0s) + .6s) infinite}

@keyframes px-rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes px-track{from{letter-spacing:.07em}to{letter-spacing:-0.025em}}
@keyframes px-depth{from{opacity:0;transform:translate(-5px,-6px)}to{opacity:1;transform:none}}
@keyframes px-fade{from{opacity:0}}
@keyframes px-sweep{from{transform:translateX(var(--px-from,197px))}to{transform:translateX(var(--px-to,853px))}}
@keyframes px-tail{0%{transform:scaleX(.2);animation-timing-function:ease-out}25%{transform:scaleX(1);animation-timing-function:ease-in}49.9%{transform:scaleX(.2)}50%{transform:scaleX(-.2);animation-timing-function:ease-out}75%{transform:scaleX(-1);animation-timing-function:ease-in}100%{transform:scaleX(-.2)}}
@keyframes px-drift{from{transform:translateY(-6px)}to{transform:translateY(7px)}}
@keyframes px-beam{0%,38%{opacity:0}52%{opacity:.55}66%,100%{opacity:0}}
@keyframes px-streak{0%{opacity:0;transform:translate(0,0)}3%{opacity:1}
  12%{opacity:1;transform:translate(var(--dx,0px),var(--dy,0px))}14%{opacity:0;transform:translate(var(--dx,0px),var(--dy,0px))}
  100%{opacity:0;transform:translate(var(--dx,0px),var(--dy,0px))}}
@keyframes px-pop{from{opacity:0;transform:scale(.15)}to{opacity:1;transform:scale(1)}}
@keyframes px-pulse{0%,100%{opacity:.75;transform:scale(1)}50%{opacity:.35;transform:scale(1.4)}}
@keyframes px-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes px-twinkle{0%,100%{opacity:.45}50%{opacity:.9}}

/* Reduced motion: no animation at all; every base style above IS the finished state. */
@media (prefers-reduced-motion:reduce){
  .px-logo *{animation:none!important}
}
