/* ==========================================================================
   Home "blast stage" (markup: includes/blast-stage.php, behaviour: assets/js/home-blast.js)
   Default = a normal static section. JavaScript adds .is-live to turn on the pinned 3D sequence.
   ========================================================================== */
.fxs { position: relative; }
/* all text in this section uses the TwikiBOT primary font (DM Sans). Icons keep their own icon font. */
.fxs, .fxs :is(h2, p, span, em, ul, li) { font-family: var(--tp-ff-body, 'DM Sans', sans-serif); }
.fxs__pin { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 560px; padding: 90px 16px 80px;
  background: radial-gradient(120% 90% at 50% 45%, #0f3566 0%, #0a1f40 48%, #050f22 100%); color: #fff; isolation: isolate; }

/* backdrop: soft aurora and a 3D grid floor */
.fxs__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fxs__aurora { position: absolute; border-radius: 50%; filter: blur(80px); }
.fxs__aurora--a { top: -18%; left: -8%; width: 52vw; height: 52vw; background: radial-gradient(closest-side, rgba(22, 158, 245, .45), transparent); animation: fxsDrift 14s ease-in-out infinite; }
.fxs__aurora--b { right: -10%; bottom: -24%; width: 46vw; height: 46vw; background: radial-gradient(closest-side, rgba(255, 215, 73, .22), transparent); animation: fxsDrift 18s ease-in-out infinite reverse; }
@keyframes fxsDrift { 50% { transform: translate(6vw, 4vh) scale(1.12); } }
.fxs__floor { position: absolute; left: -50%; right: -50%; bottom: -12%; height: 55%; transform: perspective(520px) rotateX(70deg); transform-origin: 50% 100%;
  background-image: linear-gradient(rgba(108, 196, 250, .28) 1px, transparent 1px), linear-gradient(90deg, rgba(108, 196, 250, .28) 1px, transparent 1px); background-size: 70px 70px;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 82%); mask-image: linear-gradient(to top, #000 0%, transparent 82%); animation: fxsFloor 3.5s linear infinite; }
@keyframes fxsFloor { to { background-position: 0 70px, 0 0; } }
.fxs__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; display: none; }
.fxs__core, .fxs__flash, .fxs__hint, .fxs__progress { display: none; }

/* content (static by default) */
.fxs__content { position: relative; z-index: 3; width: 100%; max-width: 1100px; text-align: center; }
.fxs__kicker { display: inline-block; margin-bottom: 18px; padding: .5em 1.3em; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #a9dcfb; font-size: 14px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.fxs .fxs__title { margin: 0 0 16px; color: #fff; font-size: clamp(32px, 5.2vw, 150px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.fxs__line { display: block; perspective: 900px; }
.fxs__line > span { display: inline-block; padding: 0 .06em; }
.fxs__title em { font-style: normal; background: linear-gradient(90deg, #6cc4fa, #169ef5 35%, #ffd749 80%, #ffe79a); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: fxsShine 5s ease-in-out infinite; }
@keyframes fxsShine { 50% { background-position: 100% 0; } }
.fxs .fxs__lead { max-width: 620px; margin: 0 auto; color: rgba(255, 255, 255, .82); font-size: clamp(16.5px, 1.25vw, 34px); line-height: 1.65; }

/* services: plain wrapped list by default */
.fxs__ringwrap { margin-top: 30px; }
.fxs__ring { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fxs__ring li { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 18px; border: 1px solid rgba(169, 220, 251, .34); border-radius: 14px; background: linear-gradient(150deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  color: #fff; font-size: 16px; font-weight: 700; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 18px 34px -18px rgba(0, 0, 0, .75); }
.fxs__ring i { color: #ffd749; font-size: 19px; }

/* ==========================================================================
   LIVE: pinned sequence
   ========================================================================== */
.fxs.is-live { height: 260vh; }
.fxs.is-live .fxs__pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; padding: 0 16px; }
.fxs.is-live .fxs__canvas { display: block; }

/* the 3D coin */
.fxs.is-live .fxs__core { --s: clamp(130px, 15vw, 250px); display: block; position: absolute; z-index: 2; top: 52%; left: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); perspective: 900px; transform-style: preserve-3d; opacity: 0; }
.fxs__coin { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.fxs__coin img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.fxs__layer { transform: translateZ(calc(var(--z) * -2.2px)); filter: brightness(.5) saturate(1.35); }
.fxs__face { transform: translateZ(2px); }   /* no drop-shadow: it outlined the image's square edge; the round halo gives the glow */
.fxs__halo { position: absolute; inset: -55%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .5), rgba(22, 158, 245, .34) 40%, transparent 100%); }
.fxs__orbit { position: absolute; border-radius: 50%; border: 1.5px solid rgba(108, 196, 250, .7); transform-style: preserve-3d; }
.fxs__orbit::after { content: ""; position: absolute; top: -6px; left: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 16px 6px rgba(108, 196, 250, .85); }
.fxs__orbit--a { inset: -22%; animation: fxsOrbitA 6s linear infinite; }
.fxs__orbit--b { inset: -40%; border-color: rgba(255, 215, 73, .75); animation: fxsOrbitB 9s linear infinite; }
.fxs__orbit--b::after { box-shadow: 0 0 16px 6px rgba(255, 215, 73, .9); }
.fxs__orbit--c { inset: -60%; border-color: rgba(169, 220, 251, .4); border-style: dashed; animation: fxsOrbitC 14s linear infinite; }
@keyframes fxsOrbitA { from { transform: rotateX(72deg) rotateY(-16deg) rotateZ(0); } to { transform: rotateX(72deg) rotateY(-16deg) rotateZ(360deg); } }
@keyframes fxsOrbitB { from { transform: rotateX(64deg) rotateY(30deg) rotateZ(360deg); } to { transform: rotateX(64deg) rotateY(30deg) rotateZ(0); } }
@keyframes fxsOrbitC { from { transform: rotateX(78deg) rotateY(6deg) rotateZ(0); } to { transform: rotateX(78deg) rotateY(6deg) rotateZ(360deg); } }

.fxs.is-live .fxs__flash { display: block; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 52%, #fff 0%, rgba(255, 255, 255, .92) 10%, rgba(169, 220, 251, .6) 28%, rgba(22, 158, 245, 0) 65%); }
.fxs.is-boom .fxs__flash { animation: fxsFlash .9s cubic-bezier(.1, .75, .25, 1) both; }
@keyframes fxsFlash { 0% { opacity: 1; transform: scale(.5); } 22% { opacity: 1; } 100% { opacity: 0; transform: scale(1.7); } }
.fxs.is-boom .fxs__pin > .fxs__bg { animation: fxsShake .6s cubic-bezier(.3, .7, .4, 1) both; }
@keyframes fxsShake { 0%, 100% { transform: none; } 15% { transform: translate(-10px, 6px) scale(1.04); } 32% { transform: translate(9px, -5px) scale(1.03); } 52% { transform: translate(-5px, 3px) scale(1.015); } 74% { transform: translate(3px, -2px); } }

/* content flies in from depth after the blast */
.fxs.is-live .fxs__content { position: absolute; left: 16px; right: 16px; top: 50%; width: auto; max-width: none; transform: translateY(-50%); padding-top: 40px; pointer-events: none; }
.fxs.is-live .fxs__kicker, .fxs.is-live .fxs__lead, .fxs.is-live .fxs__ringwrap { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .9s cubic-bezier(.16, 1, .3, 1); }
.fxs.is-live .fxs__line > span { opacity: 0; transform: translate3d(0, .6em, -700px) rotateX(-70deg); filter: blur(10px); transition: opacity .55s ease, transform 1.15s cubic-bezier(.16, 1, .3, 1), filter .8s ease; }
.fxs.is-live.is-open .fxs__kicker { opacity: 1; transform: none; transition-delay: .12s; }
.fxs.is-live.is-open .fxs__line > span { opacity: 1; transform: none; filter: blur(0); transition-delay: .2s; }
.fxs.is-live.is-open .fxs__line + .fxs__line > span { transition-delay: .34s; }
.fxs.is-live.is-open .fxs__lead { opacity: 1; transform: none; transition-delay: .55s; }
.fxs.is-live.is-open .fxs__ringwrap { opacity: 1; transform: none; transition-delay: .7s; }

/* services become a turning 3D ring */
.fxs.is-live .fxs__ringwrap { --r: clamp(430px, 37vw, 900px); height: 120px; margin-top: 18px; perspective: 1500px; }
.fxs.is-live .fxs__ring { display: block; position: relative; width: 170px; height: 54px; margin: 34px auto 0; transform-style: preserve-3d; will-change: transform; }
.fxs.is-live .fxs__ring li { position: absolute; inset: 0; transform: rotateY(var(--a, 0deg)) translateZ(var(--r)); backface-visibility: hidden; }

/* scroll hint and progress */
.fxs.is-live .fxs__hint { display: flex; flex-direction: column; align-items: center; gap: 8px; position: absolute; z-index: 5; left: 50%; bottom: 26px; transform: translateX(-50%); color: rgba(255, 255, 255, .75); font-size: 14px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.fxs__hint i { width: 2px; height: 28px; background: linear-gradient(#ffd749, transparent); animation: fxsHint 1.4s ease-in-out infinite; }
@keyframes fxsHint { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.fxs.is-live .fxs__progress { display: block; position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .1); }
.fxs__progress i { display: block; height: 100%; background: linear-gradient(90deg, #169ef5, #ffd749); transform-origin: left; transform: scaleX(0); }

/* the favicon travelling from the hero into the stage */
.twk-hero-logo.fx3d-flyer { position: fixed !important; top: 0 !important; left: 0 !important; z-index: 60; margin: 0; translate: none !important; animation: none !important;
  pointer-events: none; opacity: 0; transition: opacity .25s ease; transform-origin: 50% 50%; will-change: transform; filter: drop-shadow(0 16px 24px rgba(22, 158, 245, .5)); }
.twk-hero-logo.fx3d-flyer.is-on { opacity: 1; }

@media (max-width: 767px) {
  .fxs.is-live { height: 230vh; }
  .fxs.is-live .fxs__ringwrap { --r: 360px; }
  .fxs.is-live .fxs__ring { width: 140px; height: 46px; }
  .fxs.is-live .fxs__ring li { gap: 6px; padding: 8px 8px; font-size: 14.5px; }
}
@media (max-height: 560px) { .fxs.is-live .fxs__lead { display: none; } .fxs.is-live .fxs__hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .fxs__aurora, .fxs__floor, .fxs__title em { animation: none; } }
