/* Novva Inc. — the opening sequence. (c) Novva Inc. */
@property --hole { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@property --lp { syntax: '<number>'; inherits: true; initial-value: 0; }
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; color: #f5f0ff; font-family: Manrope, system-ui, sans-serif;
  background: radial-gradient(120% 90% at 50% 110%, #2a0f4f 0%, #0d0820 45%, #06040d 100%); --hole: 0%;
  -webkit-mask: radial-gradient(circle at 50% 46%, transparent var(--hole), #000 calc(var(--hole) + 0.5%)); mask: radial-gradient(circle at 50% 46%, transparent var(--hole), #000 calc(var(--hole) + 0.5%)); }
.loader.reveal { animation: iris 1.1s cubic-bezier(.7,0,.25,1) forwards; pointer-events: none; }
@keyframes iris { to { --hole: 150%; } }
.ready .loader:not(.reveal) { opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.ld-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.ld-aurora { position: absolute; inset: -30%; pointer-events: none; animation: ldDrift 14s ease-in-out infinite alternate; will-change: transform;
  background: radial-gradient(28% 24% at 30% 35%, rgba(236,72,153,.55), transparent 70%), radial-gradient(30% 26% at 70% 30%, rgba(124,58,237,.6), transparent 70%),
              radial-gradient(32% 26% at 55% 70%, rgba(34,211,238,.38), transparent 70%), radial-gradient(26% 22% at 25% 75%, rgba(99,102,241,.5), transparent 70%); filter: saturate(140%); }
@keyframes ldDrift { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(12deg) scale(1.08); } 100% { transform: rotate(-8deg) scale(1.03); } }
.ld-grid { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%; transform: perspective(500px) rotateX(64deg); transform-origin: 50% 100%; opacity: .35;
  background-image: linear-gradient(rgba(192,132,252,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(192,132,252,.5) 1px, transparent 1px); background-size: 60px 60px; animation: ldGrid 2.4s linear infinite;
  -webkit-mask: linear-gradient(transparent, #000 40%); mask: linear-gradient(transparent, #000 40%); }
@keyframes ldGrid { to { background-position: 0 60px, 0 0; } }
.ld-core { position: relative; display: grid; justify-items: center; text-align: center; width: min(440px, 88vw); }

/* orb: the full Novva badge flips in like a minted coin, inside a progress ring with three orbits */
.ld-orb { position: relative; width: 212px; height: 212px; display: grid; place-items: center; margin-bottom: 22px; perspective: 900px; }
.ld-aura { position: absolute; inset: 18px; border-radius: 50%; background: conic-gradient(from 0deg, #f472b6, #a855f7, #6366f1, #22d3ee, #34d399, #fbbf24, #f472b6); filter: blur(22px); opacity: .75; animation: spin 5s linear infinite, auraIn 1.4s ease-out both; }
@keyframes auraIn { from { opacity: 0; transform: scale(.4); } }
.ld-tilt { position: relative; width: 140px; height: 140px; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s cubic-bezier(.2,.9,.3,1); transform-style: preserve-3d; }
.ld-coin { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; transform-style: preserve-3d;
  box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 0 7px rgba(168,85,247,.35), 0 18px 50px -6px rgba(0,0,0,.8), 0 0 70px rgba(168,85,247,.85), 0 0 140px rgba(236,72,153,.45);
  animation: coinIn 1.7s cubic-bezier(.2,.9,.25,1) both, coinFloat 5s 1.7s ease-in-out infinite; }
.ld-coin img { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; }
@keyframes coinIn {
  0% { opacity: 0; transform: translateZ(-400px) rotateY(-720deg) scale(.2); filter: blur(14px) brightness(2.5); }
  55% { opacity: 1; filter: blur(0) brightness(1.4); }
  78% { transform: translateZ(40px) rotateY(14deg) scale(1.08); filter: brightness(1.1); }
  100% { transform: translateZ(0) rotateY(0) scale(1); filter: none; } }
@keyframes coinFloat { 0%, 100% { transform: rotateY(0) translateY(0); } 30% { transform: rotateY(16deg) translateY(-5px); } 70% { transform: rotateY(-12deg) translateY(3px); } }
/* neurons firing inside the brain disc */
.ld-neuro { position: absolute; left: 50%; top: 50%; width: 61%; height: 61%; transform: translate(-50%, -50%); border-radius: 50%; mix-blend-mode: screen; pointer-events: none; overflow: hidden; }
.ld-neuro i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(244,114,182,.9); box-shadow: 0 0 14px rgba(244,114,182,.9), inset 0 0 14px rgba(103,232,249,.6); transform: scale(0); opacity: 0; animation: neuro 2.4s 1.5s ease-out infinite; }
.ld-neuro i:nth-child(2) { animation-delay: 2.3s; border-color: rgba(167,139,250,.9); } .ld-neuro i:nth-child(3) { animation-delay: 3.1s; border-color: rgba(103,232,249,.9); }
.ld-neuro::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.55), rgba(236,72,153,.25) 35%, transparent 65%); animation: synapse 1.6s 1.5s ease-in-out infinite; opacity: 0; }
@keyframes neuro { 0% { transform: scale(.1); opacity: 1; } 100% { transform: scale(1.05); opacity: 0; } }
@keyframes synapse { 0%, 100% { opacity: .1; } 50% { opacity: .7; } }
/* holographic sheen sweeping over the badge */
.ld-shine { position: absolute; inset: -20%; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.75) 47%, rgba(240,171,252,.45) 50%, rgba(103,232,249,.35) 53%, transparent 62%); transform: translateX(-90%); animation: coinShine 3.2s 1.2s ease-in-out infinite; mix-blend-mode: overlay; pointer-events: none; }
@keyframes coinShine { 0% { transform: translateX(-90%); } 45%, 100% { transform: translateX(90%); } }
.ld-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ld-ring .track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 4; }
.ld-ring .prog { fill: none; stroke: url(#ldGrad); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 534; stroke-dashoffset: calc(534 - 534 * var(--lp) / 100); filter: drop-shadow(0 0 6px rgba(236,72,153,.9)); }
.ld-orbit { position: absolute; inset: var(--in); border-radius: 50%; border: 1px dashed rgba(255,255,255,.14); animation: spin var(--sp) linear infinite; }
.ld-orbit b { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px 3px var(--c); }
.ld-orbit.o1 { --in: -8px; --sp: 3.2s; --c: #f472b6; } .ld-orbit.o2 { --in: -26px; --sp: 5.5s; --c: #22d3ee; animation-direction: reverse; } .ld-orbit.o3 { --in: 14px; --sp: 2.2s; --c: #fbbf24; border-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

.ld-word { display: flex; gap: .14em; font-size: clamp(30px, 6vw, 44px); font-weight: 800; letter-spacing: .06em; line-height: 1; }
.ld-word span { display: inline-block; background: linear-gradient(100deg, #fff 20%, #f0abfc 40%, #a78bfa 55%, #67e8f9 75%, #fff 90%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: ldIn .8s cubic-bezier(.2,1.2,.3,1) both, ldShine 3s linear infinite; animation-delay: calc(var(--i) * 60ms), calc(var(--i) * 80ms); }
.ld-word span.sp { width: .3em; }
@keyframes ldIn { from { opacity: 0; transform: translateY(26px) rotateX(70deg); filter: blur(8px); } }
@keyframes ldShine { to { background-position: -300% 0; } }
.ld-tag { margin-top: 10px; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(233,213,255,.7); animation: ldIn 1s .6s both; }
.ld-pct { margin-top: 26px; font-size: 54px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; background: linear-gradient(120deg, #f9a8d4, #c4b5fd 50%, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ld-pct small { font-size: 22px; margin-left: 2px; }
.ld-bar { position: relative; width: 100%; height: 12px; margin-top: 16px; border-radius: 99px; padding: 2px; background: rgba(255,255,255,.06); box-shadow: inset 0 1px 2px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.1); }
.ld-bar .fill { position: relative; display: block; height: 100%; width: calc(var(--lp) * 1%); min-width: 8px; border-radius: 99px; overflow: visible;
  background: linear-gradient(90deg, #ec4899, #a855f7 35%, #6366f1 65%, #22d3ee); background-size: 200% 100%; animation: ldFlow 2s linear infinite; box-shadow: 0 0 18px rgba(168,85,247,.8), 0 0 40px rgba(236,72,153,.35); }
.ld-bar .fill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.22) 0 8px, transparent 8px 16px); background-size: 22.6px 22.6px; animation: ldStripes .7s linear infinite; mix-blend-mode: overlay; }
@keyframes ldFlow { to { background-position: -200% 0; } }
@keyframes ldStripes { to { background-position: 22.6px 0; } }
.ld-bar .spark { position: absolute; right: -9px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: radial-gradient(circle, #fff 20%, rgba(255,255,255,.4) 45%, transparent 70%); box-shadow: 0 0 20px 6px rgba(244,114,182,.75), 0 0 40px 12px rgba(168,85,247,.45); animation: ldSpark .5s ease-in-out infinite alternate; }
@keyframes ldSpark { to { transform: scale(1.35); } }
.ld-step { margin-top: 14px; height: 20px; font-size: 14px; font-weight: 700; color: rgba(233,213,255,.85); }
.ld-step span { display: inline-block; animation: ldStep .45s cubic-bezier(.2,1,.3,1); }
@keyframes ldStep { from { opacity: 0; transform: translateY(8px); } }
.ld-checks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 16px 0 0; padding: 0; }
.ld-checks li { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; padding: 5px 10px 5px 6px; border-radius: 99px; color: rgba(233,213,255,.55); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); transition: color .3s, background .3s, border-color .3s; }
.ld-checks li i { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.25); transition: all .3s; }
.ld-checks li i svg { width: 10px; height: 10px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .4s .1s; }
.ld-checks li.on { color: #fff; background: rgba(168,85,247,.2); border-color: rgba(192,132,252,.45); }
.ld-checks li.on i { border-color: transparent; background: linear-gradient(135deg, #ec4899, #8b5cf6); box-shadow: 0 0 12px rgba(236,72,153,.8); }
.ld-checks li.on i svg { stroke-dashoffset: 0; }
.ld-hint { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(233,213,255,.4); }
.loader.done .ld-orb { animation: ldBurst .7s cubic-bezier(.2,1,.3,1) forwards; }
.loader.done .ld-coin { animation: coinDone .9s cubic-bezier(.3,1.3,.4,1) forwards; }
@keyframes coinDone { 0% { transform: rotateY(0) scale(1); } 60% { transform: rotateY(360deg) scale(1.14); filter: brightness(1.5); } 100% { transform: rotateY(360deg) scale(1); filter: none; } }
.loader.done .ld-orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid #f0abfc; animation: ldShock .8s ease-out forwards; }
@keyframes ldBurst { 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes ldShock { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }
.loader.done .ld-pct { animation: ldBurst .6s; }
@media (prefers-reduced-motion: reduce) { .ld-coin, .ld-shine, .ld-neuro i, .ld-aura, .ld-grid, .ld-orbit, .ld-word span, .ld-bar .fill, .ld-bar .fill::after { animation: none !important; } }
@media (max-height: 620px) { .ld-checks, .ld-hint { display: none; } .ld-orb { width: 150px; height: 150px; margin-bottom: 14px; } .ld-tilt { width: 100px; height: 100px; } .ld-pct { font-size: 40px; margin-top: 14px; } }
