/* pegasuswebsites.com · effects (2026-11-04): how the pieces fx.js puts on elements look. Each effect adds a class to
   its element and, when it needs one, a <pw-fx> layer inside it. */

pw-fx { display: block; position: absolute; pointer-events: none; }
pw-fx > canvas { display: block; width: 100%; height: 100%; }

/* letters split by fx.js: words stay whole, so lines still break between them */
.wd { display: inline-block; white-space: nowrap; }
.pwa .ch, .pwj .ch { display: inline-block; position: relative; }

/* ------------------------------------------------------------------------------------------------- liquid glass */
.pw-glass { isolation: isolate; background: var(--pwg-bg) !important; border-color: rgba(255, 255, 255, .22) !important;
            box-shadow: 0 .5px 1px rgba(0, 0, 0, calc(var(--pwg-sd) * .22)), 0 14px 34px -14px rgba(0, 0, 0, calc(var(--pwg-sd) * .95)) !important;
            -webkit-backdrop-filter: blur(var(--pwg-blur)) saturate(1.7) brightness(1.05) !important;
            backdrop-filter: blur(var(--pwg-blur)) var(--pwg-f,) saturate(1.7) brightness(1.05) !important; }
pw-fx.pwg { inset: 0; border-radius: inherit; z-index: 2; }
.pwg > i { position: absolute; inset: 0; border-radius: inherit; }
/* the rim catches the light on the side it comes from, and a little on the far side */
.pwg-rim { padding: 1.5px;
           background: conic-gradient(from var(--pwg-a, -40deg), rgba(255, 255, 255, var(--pwg-s)) 0deg, rgba(255, 255, 255, calc(var(--pwg-s) * .14)) 70deg,
                       rgba(255, 255, 255, calc(var(--pwg-s) * .08)) 125deg, rgba(255, 255, 255, calc(var(--pwg-s) * .62)) 180deg,
                       rgba(255, 255, 255, calc(var(--pwg-s) * .08)) 235deg, rgba(255, 255, 255, calc(var(--pwg-s) * .14)) 290deg, rgba(255, 255, 255, var(--pwg-s)) 360deg);
           -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
           mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.pwg-glow { box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, calc(var(--pwg-s) * .3)),
                        inset 1.5px 2px 2px -1.5px rgba(255, 255, 255, calc(var(--pwg-s) * .95)),
                        inset -1.5px -2px 2px -1.5px rgba(255, 255, 255, calc(var(--pwg-s) * .5)),
                        inset 0 0 calc(var(--pwg-e) * .7) calc(var(--pwg-e) * -.4) rgba(255, 255, 255, calc(var(--pwg-s) * .3)); }
.pwg-shine { background: radial-gradient(120% 85% at var(--pwg-mx, 28%) var(--pwg-my, -12%), rgba(255, 255, 255, calc(var(--pwg-s) * .22)), rgba(255, 255, 255, 0) 58%);
             mix-blend-mode: screen; }
.pwg-dark .pwg-glow { box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, calc(var(--pwg-s) * .24)),
                                  inset 1.5px 2px 2px -1.5px rgba(255, 255, 255, calc(var(--pwg-s) * .6)),
                                  inset -1px -1.5px 2px -1px rgba(255, 255, 255, calc(var(--pwg-s) * .28)),
                                  inset 0 -14px 26px -16px rgba(255, 255, 255, calc(var(--pwg-s) * .22)); }
.pwg-dark .pwg-rim { opacity: .72; }
.pwg-tl { color: #fff !important; }
.pwg-td { color: var(--ink, #15171c) !important; }

/* --------------------------------------------------------------------------------- colour glow, spotlight, tilt */
.pwau-on, .pwsp-on { isolation: isolate; }
pw-fx.pwau { inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; opacity: var(--pwau-o);   /* fading out to its top and bottom, */
             -webkit-mask-image: linear-gradient(transparent, #000 min(160px, 22%), #000 calc(100% - min(160px, 22%)), transparent);   /* so */
             mask-image: linear-gradient(transparent, #000 min(160px, 22%), #000 calc(100% - min(160px, 22%)), transparent); }   /* no glow is cut off in a line */
.pwau i { position: absolute; width: var(--pwau-s); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent);
          animation: pwau1 var(--pwau-t) ease-in-out infinite alternate; }
.pwau i:nth-child(1) { left: -12%; top: -25%; }
.pwau i:nth-child(2) { right: -14%; top: 5%; animation-name: pwau2; animation-duration: calc(var(--pwau-t) * 1.27); }
.pwau i:nth-child(3) { left: 18%; bottom: -35%; animation-name: pwau3; animation-duration: calc(var(--pwau-t) * .83); }
.pwau i:nth-child(4) { right: 22%; bottom: -10%; width: calc(var(--pwau-s) * .7); animation-duration: calc(var(--pwau-t) * 1.5); animation-direction: alternate-reverse; }
@keyframes pwau1 { to { transform: translate(38%, 22%) scale(1.18); } }
@keyframes pwau2 { to { transform: translate(-30%, 34%) scale(.86); } }
@keyframes pwau3 { to { transform: translate(24%, -36%) scale(1.25); } }
.pwau-still i { animation: none; }
@property --pwsp-x { syntax: '<length-percentage>'; inherits: false; initial-value: 30%; }
@property --pwsp-y { syntax: '<length-percentage>'; inherits: false; initial-value: 30%; }
pw-fx.pwsp { inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; opacity: 0; transition: opacity .5s;
             background: radial-gradient(var(--pwsp-r) circle at var(--pwsp-x) var(--pwsp-y), var(--pwsp-c), transparent 70%); }
pw-fx.pwsp.on { opacity: 1; }
pw-fx.pwsp.idle { animation: pwsp 11s ease-in-out infinite alternate; }
@keyframes pwsp { 0% { --pwsp-x: 15%; --pwsp-y: 25%; } 50% { --pwsp-x: 82%; --pwsp-y: 45%; } 100% { --pwsp-x: 38%; --pwsp-y: 82%; } }
pw-fx.pwt { inset: 0; z-index: 3; border-radius: inherit; overflow: hidden; opacity: 0; transition: opacity .4s; mix-blend-mode: soft-light;
            background: radial-gradient(80% 80% at var(--x, 50%) var(--y, 0%), rgba(255, 255, 255, var(--pwt-o)), transparent 62%); }
pw-fx.pwt.on { opacity: 1; }

/* ------------------------------------------------------------------- WebGL letters (heat glow, holo, chrome) */
pw-fx.pwm-layer { inset: -.62em -.5em; z-index: 1; }
.pwm-on .ch, .pwm-on .ch * { color: transparent !important; -webkit-text-fill-color: transparent !important; text-shadow: none !important;
                              -webkit-text-stroke: 0 !important; background: none !important; }
.pwm-anton { font-family: var(--heat, "Anton", Impact, sans-serif) !important; font-weight: 400 !important; letter-spacing: .05em; }
.pwm-caps { text-transform: uppercase; }
/* without WebGL: the same idea, drawn flat */
.pwm-flat.pwm-heat .ch { background: linear-gradient(170deg, #fff 0%, #efeaff 45%, #d8ccff 100%); -webkit-background-clip: text; background-clip: text;
                         color: transparent; filter: drop-shadow(0 .03em 0 #a796f7) drop-shadow(0 .03em 0 #8a76f0); }
.pwm-flat.pwm-chrome .ch { background: linear-gradient(180deg, #fff, #c9ccd4 48%, #8d929c 52%, #e9ebef); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pwm-flat.pwm-holo .ch { background: linear-gradient(90deg, #f5e89e, #a8e8d4, #73c7ff, #bda3ff, #ff80dc); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------------------------------------------- arrivals */
.pwa { isolation: isolate; }
.pwa-roll .ch { clip-path: inset(-.04em -.03em -.14em -.03em); }
.pwa-roll .ch.done { clip-path: none; }
.pwa-roll .ghost { visibility: hidden; }
.pwa-roll .strip { position: absolute; left: 0; top: 0; width: 100%; text-align: center; }
.pwa-roll .strip span { display: block; height: var(--pwa-lh); line-height: var(--pwa-lh); }
.pwa-roll .strip span:not(:last-child) { opacity: .42; }
.pwa-roll .ch.done .strip span:not(:last-child) { visibility: hidden; }
pw-fx.pwa-sel { border: 1.5px solid var(--violet-2, #7a63ff); z-index: 2; }
.pwa-sel i { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--violet-2, #7a63ff); }
.pwa-sel i:nth-child(1) { left: -5.5px; top: -5.5px; } .pwa-sel i:nth-child(2) { right: -5.5px; top: -5.5px; }
.pwa-sel i:nth-child(3) { left: -5.5px; bottom: -5.5px; } .pwa-sel i:nth-child(4) { right: -5.5px; bottom: -5.5px; }
.pwa-sel b { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 9px; padding: 4px 7px; border-radius: 6px;
             background: var(--violet, #6248e6); color: #fff; font: 700 12px/1 var(--ui, system-ui); font-style: normal; letter-spacing: 0;
             text-transform: none; white-space: nowrap; transition: opacity .2s; }
.pwa-type .cur::after { content: ""; position: absolute; right: -.07em; top: .12em; bottom: .1em; width: .06em; min-width: 2px;
                        background: var(--violet-2, #7a63ff); animation: pwblink 1s steps(1) infinite; }
@keyframes pwblink { 50% { opacity: 0; } }
pw-fx.pwa-door { z-index: -1; border-radius: .2em; opacity: 0; filter: blur(10px);
                 background: radial-gradient(60% 70% at 30% 55%, rgba(255, 214, 150, .9), rgba(255, 150, 90, .35) 55%, transparent 75%); }
pw-fx.pwa-dust { inset: -1em -1em -1em -2.6em; z-index: 1; }
pw-fx.pwa-lens { left: 0; top: 0; border-radius: 999px; z-index: 2; opacity: 0; will-change: transform; }

/* ----------------------------------------------------------------------------------------------- colour flow */
.pwgr { background: linear-gradient(var(--pwgr-a), var(--pwgr)) 0 50% / 200% 100% !important; -webkit-background-clip: text !important;
        background-clip: text !important; color: transparent !important; animation: pwgr var(--pwgr-t) linear infinite; }
.pwgr, .pwgr * { -webkit-text-fill-color: transparent; }
.pwgr-still { animation: none; }
@keyframes pwgr { to { background-position: 200% 50%; } }

/* -------------------------------------------------------------------------------------------------- float */
.pwfl { animation: pwfl var(--pwfl-t) ease-in-out infinite; }
@keyframes pwfl { 0%, 100% { translate: 0 0; rotate: calc(var(--pwfl-r) * -1); } 50% { translate: 0 calc(var(--pwfl-h) * -1); rotate: var(--pwfl-r); } }

/* ------------------------------------------------------------------------------------------- selection box */
pw-fx.pws { inset: -7px; border: 1.5px solid var(--pws-c); z-index: 3; }
pw-fx.pws.pws-in { inset: 5px; }
pw-fx.pws.pws-dash { border-style: dashed; }
.pws i { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--pws-c); }
.pws i:nth-child(1) { left: -5.5px; top: -5.5px; } .pws i:nth-child(2) { right: -5.5px; top: -5.5px; }
.pws i:nth-child(3) { left: -5.5px; bottom: -5.5px; } .pws i:nth-child(4) { right: -5.5px; bottom: -5.5px; }
.pws b { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 9px; padding: 4px 7px; border-radius: 6px;
         background: var(--pws-c); color: #fff; font: 700 12px/1 var(--ui, system-ui); font-style: normal; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.pws-cur { position: absolute; right: -27px; bottom: -33px; width: 28px; height: 32px; }
.pws-cur .mk { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3)); }
.pws-cur .mk polygon { fill: #15171c; stroke: #fff; stroke-width: 6; paint-order: stroke; }
.pws-cur .mk path { fill: var(--pws-c); }
.pws-cur .mk g { transform-box: view-box; transform-origin: 52px 66px; }
.motion .pws-cur .mk g { animation: pwflap .5s ease-in-out infinite alternate; }
@keyframes pwflap { to { transform: rotate(-22deg); } }
.pws-wait { clip-path: inset(-12px 100% 100% -12px); }
.pws-go { animation: pwsdraw 1.1s cubic-bezier(.22, 1, .36, 1) forwards; }
@keyframes pwsdraw { from { clip-path: inset(-12px 100% 100% -12px); } to { clip-path: inset(-12px -60px -60px -12px); } }

@media (prefers-reduced-motion: reduce) {
  .pwau i, .pwgr, .pwfl, pw-fx.pwsp.idle, .pws-cur .mk g { animation: none !important; }
}
