/* Networking use case, one merged section. The animation carries the argument;
   the copy only names each beat. */
.nk{--ink:#0A1020;--mut:#525E6E;--blue:#1F5FE0;--glow:#5AD1FF;--warn:#A63A2A}
.nk-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,318px);gap:clamp(20px,2.6vw,40px);align-items:start;margin-top:clamp(14px,1.7vw,24px)}
.nk-stage{position:relative;border-radius:18px;background:linear-gradient(180deg,#fff,#F1F5FB);border:1px solid rgba(10,16,32,.09);box-shadow:0 22px 48px -30px rgba(8,16,34,.34);overflow:hidden}
.nk-stage::before{content:"";position:absolute;inset:0;background-image:linear-gradient(90deg,rgba(31,95,224,.055) 1px,transparent 1px),linear-gradient(180deg,rgba(31,95,224,.045) 1px,transparent 1px);background-size:52px 52px;-webkit-mask:radial-gradient(76% 76% at 50% 46%,#000,transparent 78%);mask:radial-gradient(76% 76% at 50% 46%,#000,transparent 78%)}
.nk-svg{position:relative;display:block;width:100%;height:auto}

/* beats */
.nk-beat{opacity:0;transition:opacity .5s linear;pointer-events:none}
.nk[data-beat="0"] .nk-beat[data-b="0"],.nk[data-beat="1"] .nk-beat[data-b="1"],.nk[data-beat="2"] .nk-beat[data-b="2"]{opacity:1}

/* static geometry */
.nk-box{fill:#fff;stroke:rgba(10,16,32,.2);stroke-width:1.4}
.nk-t{fill:var(--ink);font-family:Satoshi,system-ui,sans-serif;font-size:31px;font-weight:700;letter-spacing:-.02em}
.nk-s{fill:var(--mut);font-family:Satoshi,system-ui,sans-serif;font-size:21px;font-weight:500}
.nk-wire{fill:none;stroke:rgba(10,16,32,.26);stroke-width:1.6}
.nk-lbl{font-family:Satoshi,system-ui,sans-serif;font-size:21px;font-weight:600;letter-spacing:.01em}

/* beat one, the key crosses the link */
.nk-chip{fill:rgba(31,95,224,.14);stroke:var(--blue);stroke-width:1.4}
.nk-chipt{fill:var(--blue);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:18px;font-weight:600}
.nk[data-beat="0"] .nk-trav{animation:nkTrav 3.4s cubic-bezier(.5,0,.5,1) infinite}
@keyframes nkTrav{0%{transform:translateX(0);opacity:0}8%{opacity:1}88%{opacity:1}100%{transform:translateX(500px);opacity:0}}
.nk-tap{fill:none;stroke:var(--warn);stroke-width:1.5;stroke-dasharray:5 7}
.nk[data-beat="0"] .nk-tap{animation:nkTap 1.5s linear infinite}
@keyframes nkTap{to{stroke-dashoffset:-24}}
.nk-catch{fill:rgba(166,58,42,.07);stroke:rgba(166,58,42,.55);stroke-width:1.4}
.nk-warnt{fill:var(--warn);font-family:Satoshi,system-ui,sans-serif;font-size:21px;font-weight:700;letter-spacing:.01em}
.nk-cert{fill:#fff;stroke:rgba(166,58,42,.5);stroke-width:1.4}
.nk[data-beat="0"] .nk-certg{animation:nkExpire 3.4s ease-in-out infinite}
@keyframes nkExpire{0%,52%{opacity:.42}70%,86%{opacity:1}100%{opacity:.42}}

/* beat two, both ends build it, nothing crosses */
.nk-src{fill:var(--glow);stroke:var(--blue);stroke-width:1.4}
.nk-ray{fill:none;stroke:var(--blue);stroke-width:1.5;stroke-linecap:round;opacity:.55}
.nk[data-beat="1"] .nk-srcg{animation:nkPulse 2.6s ease-in-out infinite}
@keyframes nkPulse{0%,100%{transform:scale(1);opacity:.85}50%{transform:scale(1.13);opacity:1}}
.nk-feed{fill:none;stroke:var(--blue);stroke-width:1.8;stroke-dasharray:6 10}
.nk[data-beat="1"] .nk-feed{animation:nkFeed 1.4s linear infinite}
@keyframes nkFeed{to{stroke-dashoffset:-32}}
.nk-hex{fill:var(--blue);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:21px;font-weight:600;letter-spacing:.03em}
.nk[data-beat="1"] .nk-hexg{animation:nkBloom 2.6s ease-in-out infinite}
@keyframes nkBloom{0%,10%{opacity:0}26%,84%{opacity:1}100%{opacity:0}}
.nk-empty{fill:var(--mut)}
.nk-none{fill:none;stroke:rgba(10,16,32,.26);stroke-width:1.6;stroke-dasharray:3 8}

/* beat three, delivered through what you already run */
.nk-tag{fill:rgba(31,95,224,.08);stroke:rgba(31,95,224,.45);stroke-width:1.3}
.nk-tagt{fill:var(--blue);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:18px;font-weight:600}
.nk-drop{fill:none;stroke:var(--blue);stroke-width:1.8;stroke-dasharray:5 9}
.nk[data-beat="2"] .nk-drop{animation:nkFeed 1.2s linear infinite}
.nk-gear{fill:rgba(31,95,224,.1);stroke:var(--blue);stroke-width:1.3}
.nk[data-beat="2"] .nk-gear{animation:nkLit 2.4s ease-in-out infinite}
@keyframes nkLit{0%,100%{opacity:.5}50%{opacity:1}}

/* beat rail, dots and one line each, no numbering */
.nk-rail{display:flex;flex-direction:column;gap:6px}
.nk-item{font:inherit;font-family:Satoshi,system-ui,sans-serif;display:grid;grid-template-columns:16px minmax(0,1fr);gap:13px;align-items:start;width:100%;text-align:left;padding:15px 16px;border:1px solid rgba(10,16,32,.09);border-radius:13px;background:rgba(255,255,255,.5);cursor:pointer;transition:border-color .35s linear,background-color .35s linear}
.nk-item:hover{border-color:rgba(31,95,224,.3);background:#fff}
.nk-item[aria-selected="true"]{border-color:rgba(31,95,224,.5);background:#fff;box-shadow:0 14px 30px -20px rgba(31,95,224,.5)}
.nk-dot{position:relative;width:11px;height:11px;margin-top:6px;border-radius:50%;background:rgba(10,16,32,.18);transition:background-color .35s linear}
.nk-item[aria-selected="true"] .nk-dot{background:var(--blue)}
.nk-item[aria-selected="true"] .nk-dot::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:1px solid rgba(31,95,224,.34)}
.nk-it{display:block;font-size:17px;font-weight:700;letter-spacing:-.018em;color:var(--ink)}
.nk-is{display:block;margin-top:5px;font-size:15.5px;line-height:1.5;color:var(--mut)}
.nk-item[aria-selected="true"] .nk-is{color:#394454}
.nk-item:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

@media (max-width:1080px){
  .nk-shell{grid-template-columns:minmax(0,1fr)}
  .nk-rail{gap:8px}
}
@media (min-width:1081px){.nk-rail{gap:8px}}
@media (prefers-reduced-motion:reduce){
  .nk-trav,.nk-tap,.nk-certg,.nk-srcg,.nk-feed,.nk-hexg,.nk-drop,.nk-gear{animation:none!important}
  .nk-hexg{opacity:1}
}

.nk-ico rect,.nk-ico path{fill:none;stroke:#1F5FE0;stroke-width:1.8;stroke-linecap:round;opacity:.9}

.nk-item:nth-child(1) .nk-it{color:#A63A2A}
.nk-item:nth-child(2) .nk-it{color:#1F5FE0}
