/* motion layer styles */
.fx-tilt { transform: perspective(900px) translateY(-4px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) !important; transition: transform .12s linear !important; }
.fx-tilt::before { background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0), rgba(255,255,255,.1), transparent 55%) !important; opacity: 1 !important; }
.fx-burst { position: fixed; z-index: 4000; width: 0; height: 0; pointer-events: none; }
.fx-burst i { position: absolute; width: 7px; height: 7px; border-radius: 50%; margin: -3px; animation: fxBurst .7s var(--ease) forwards; }
@keyframes fxBurst { from { transform: rotate(var(--a)) translateY(0) scale(1); opacity: 1; } to { transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(.2); opacity: 0; } }
.fx-type { animation: fxType .35s var(--ease); } @keyframes fxType { 40% { transform: scale(1.012); filter: brightness(1.15); } }
.fx-mag { transform: translate(var(--mx, 0), var(--my, 0)) !important; transition: transform .15s linear !important; }
.fx-sweep { position: relative; animation: fxSweep 1s var(--ease) backwards; }
@keyframes fxSweep { from { clip-path: inset(0 100% 0 0); opacity: 0; transform: translateY(10px); } to { clip-path: inset(0 0 0 0); opacity: 1; transform: none; } }
[dir="ltr"] .fx-sweep { animation-name: fxSweepL; } @keyframes fxSweepL { from { clip-path: inset(0 0 0 100%); opacity: 0; transform: translateY(10px); } to { clip-path: inset(0 0 0 0); opacity: 1; transform: none; } }
/* section accent bar grows */
.section-title::before { transform-origin: center bottom; animation: fxBar 1s var(--ease) backwards .2s; } @keyframes fxBar { from { transform: scaleY(0); } }
.section-link { position: relative; } .section-link::after { content: ""; position: absolute; inset-inline: 0; bottom: -3px; height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: var(--o, right); transition: transform .45s var(--ease); } .section-link:hover::after { transform: scaleX(1); } [dir="ltr"] .section-link { --o: left; }
/* button shine */
.btn-primary, .btn-gold, .nv-cta-sm { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after, .btn-gold::after, .nv-cta-sm::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); pointer-events: none; }
.btn-primary:hover::after, .btn-gold:hover::after, .nv-cta-sm:hover::after { transform: translateX(120%); }
.btn { transition: transform .4s var(--spring), box-shadow .4s, background .3s; } .btn:active { transform: scale(.95); }
/* idle breathing on key icons */
.qa-icon svg, .mn-ic svg, .nv-nav .nv-link.active svg { animation: fxBreath 4.5s ease-in-out infinite; } .quick-action-btn:nth-child(2) .qa-icon svg { animation-delay: .5s; } .quick-action-btn:nth-child(3) .qa-icon svg { animation-delay: 1s; } .quick-action-btn:nth-child(4) .qa-icon svg { animation-delay: 1.5s; } .quick-action-btn:nth-child(5) .qa-icon svg { animation-delay: 2s; } .quick-action-btn:nth-child(6) .qa-icon svg { animation-delay: 2.5s; }
@keyframes fxBreath { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.05); } }
/* hello banner light sweep */
.nv-hello { position: relative; overflow: hidden; } .nv-hello::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.12) 50%, transparent 65%); transform: translateX(-130%); animation: fxHello 7s ease-in-out 1.5s infinite; pointer-events: none; } @keyframes fxHello { 0%, 55% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
/* toast and modal springs */
.toast { transition: transform .6s var(--spring), opacity .4s; } .modal-overlay .modal, .modal { animation: nvPop .6s var(--spring); }
/* atmosphere reacts to scroll */
.nv-atmos { transform: translateY(calc(var(--sy, 0) * -.04px)); }
/* skeleton shimmer */
.skeleton { background-size: 200% 100%; animation: egShine 1.4s linear infinite; }
/* keyboard focus is always visible and animated */
:focus-visible { outline: 2px solid var(--cy); outline-offset: 3px; animation: fxFocus .35s var(--ease); } @keyframes fxFocus { from { outline-offset: 10px; outline-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .qa-icon svg, .mn-ic svg, .nv-hello::after, .nv-nav .nv-link.active svg { animation: none !important; } }
html.noanim .qa-icon svg, html.noanim .mn-ic svg, html.noanim .nv-hello::after, html.noanim .fx-sweep, html.noanim .section-title::before { animation: none !important; }

/* light theme contrast for tinted icons */
[data-theme="light"] .quick-action-btn:nth-child(3) .qa-icon svg { stroke: #5c8200 !important; }
[data-theme="light"] .quick-action-btn:nth-child(4) .qa-icon svg { stroke: #b86e00 !important; }
[data-theme="light"] .quick-action-btn .qa-icon svg:not([stroke="x"]) { filter: none; }
[data-theme="light"] .quick-action-btn:nth-child(1) .qa-icon svg, [data-theme="light"] .quick-action-btn:nth-child(5) .qa-icon svg, [data-theme="light"] .quick-action-btn:nth-child(6) .qa-icon svg { stroke: #0b86a8 !important; }
[data-theme="light"] .quick-action-btn:nth-child(2) .qa-icon svg { stroke: #d6296b !important; }
