/* NanoTech-kw | Light UI effects (js/fx.js). CSS only, no libraries. */
@keyframes fx-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.stat, .tabs > button, .tab-btn { animation: fx-rise .55s cubic-bezier(.2, .7, .2, 1) both; }
.stat:nth-child(1), .tabs > button:nth-child(1) { animation-delay: .04s; }
.stat:nth-child(2), .tabs > button:nth-child(2) { animation-delay: .09s; }
.stat:nth-child(3), .tabs > button:nth-child(3) { animation-delay: .14s; }
.stat:nth-child(4), .tabs > button:nth-child(4) { animation-delay: .19s; }
.stat:nth-child(5), .tabs > button:nth-child(5) { animation-delay: .24s; }
.tabs > button:nth-child(6) { animation-delay: .29s; }
.tabs > button:nth-child(7) { animation-delay: .34s; }
.tabs > button:nth-child(n+8) { animation-delay: .39s; }

/* Cards scroll into view smoothly (browsers without scroll timelines just show them) */
@supports (animation-timeline: view()) {
    .ht-card, .proto-card, .link-card, .video-card {
        animation: fx-rise linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 35%;
    }
}

/* Network Lab: ripple where a ping ends */
.nl-ripple { fill: none; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: fx-ripple .9s ease-out forwards; pointer-events: none; }
.nl-ripple.ok { stroke: #34d399; } .nl-ripple.bad { stroke: #f87171; }
@keyframes fx-ripple { from { r: 8; opacity: .9; } to { r: 46; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .stat, .tabs > button, .tab-btn, .ht-card, .proto-card, .link-card, .video-card { animation: none !important; }
    .nl-ripple { animation-duration: .01s; }
}
