/* =========================================================
   VisioNex "eye rail" — circuit traces on the left edge that
   run downwards as you scroll, with the VisioNex eye riding
   along the bus at the front of the current.
   ========================================================= */
.eye-rail {
  position: fixed; z-index: 80;
  left: 10px; top: 96px; bottom: 20px; width: 96px;
  pointer-events: none;
}
.er-circuit { position: absolute; inset: 0; overflow: visible; }
.er-trace { fill: none; stroke: #1E9BF2; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; opacity: .8; }
.er-flow {
  fill: none; stroke: #7FE6FF; stroke-width: 1.8; stroke-linecap: round;
  stroke-dasharray: 9 110; animation: er-flow 1.7s linear infinite;
  filter: drop-shadow(0 0 3px rgba(18,200,245,.9));
}
.er-pads circle { fill: #12C8F5; stroke: rgba(255,255,255,.85); stroke-width: 1; }
@keyframes er-flow { to { stroke-dashoffset: -119; } }
.is-moving .er-flow { animation-duration: .45s; }

/* the eye badge */
.er-eye {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px;
  pointer-events: auto; cursor: pointer; border-radius: 50%;
  filter: drop-shadow(0 6px 14px rgba(7,91,197,.45));
  will-change: transform; transition: filter .25s;
}
.er-eye svg { width: 100%; height: 100%; overflow: visible; }
.is-moving .er-eye { filter: drop-shadow(0 0 16px rgba(18,200,245,.9)); }
.er-eye:hover { filter: drop-shadow(0 0 16px rgba(18,200,245,.9)); }
.er-eye .er-spin { transform-origin: 24px 24px; animation: er-spin 9s linear infinite; }
.er-eye .er-wheel { transform-origin: 24px 24px; }
.er-eye .er-pupil { transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
@keyframes er-spin { to { transform: rotate(-360deg); } }

/* make room for the rail where the page margin is narrow */
@media (max-width: 1351px) {
  body.has-rail .wrap { padding-left: calc(var(--gut) + 80px); }
}
/* slim rail on tablets and phones */
@media (max-width: 980px) {
  .eye-rail { left: 2px; top: 88px; bottom: 14px; width: 30px; }
  .er-eye { width: 26px; height: 26px; }
  .er-trace { stroke-width: 1.1; }
  .er-flow { stroke-width: 1.3; stroke-dasharray: 6 70; }
  @keyframes er-flow { to { stroke-dashoffset: -76; } }
  body.has-rail .wrap { padding-left: calc(var(--gut) + 22px); }
}

@media (prefers-reduced-motion: reduce) {
  .er-flow { display: none; }
  .er-eye .er-spin { animation: none; }
}
@media print { .eye-rail { display: none; } }
