.office-signals {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.office-signals[hidden] { display: none; }

.signal-flow {
  --light: #a8e6c9;
  --core: #effff5;
  --edge: #287858;
  --trace-opacity: 0;
  --glow-opacity: 0;
  opacity: .68;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 200ms ease-out;
}
.signal-flow:is([data-flow="voice"], [data-flow="tv"]) {
  --light: #b2dfed;
  --core: #eef9fa;
  --edge: #26718c;
}
.day-exhibit:not([data-station="rack"]) .signal-flow { opacity: .4; }
.day-exhibit[data-station="server"] [data-flow="server"],
.day-exhibit[data-station="desk"] [data-flow="desk-front"],
.day-exhibit[data-station="voice"] [data-flow="voice"] {
  opacity: .97;
  --phase: 0s;
  --trace-opacity: .69;
  --glow-opacity: .26;
  --current-tail: var(--focus-tail);
  --current-head: var(--focus-head);
  --tail-width: 3.3;
  --head-width: 2.15;
  --port-radius: 2.35px;
}
.day-exhibit[data-station="tv"] [data-flow="tv"] {
  opacity: 1;
  --radio-reach: 1.78;
  --radio-peak: .92;
}

/* Dash lengths are normalized to each route so highlights stay about the same
   physical size on the short cabinet link and the long reception cable. */
[data-flow="server"] {
  --period: 4.7s;
  --phase: -1.2s;
  --tail: 12;
  --head: 4;
  --focus-tail: 18;
  --focus-head: 5.5;
}
[data-flow="desk-back"] {
  --period: 6.3s;
  --phase: -4.6s;
  --tail: 4.2;
  --head: 1.4;
}
[data-flow="desk-front"] {
  --period: 8.1s;
  --phase: -2.8s;
  --tail: 2.6;
  --head: .85;
  --focus-tail: 4;
  --focus-head: 1.2;
}
[data-flow="voice"] {
  --period: 9.7s;
  --phase: -7.2s;
  --tail: 1.9;
  --head: .65;
  --focus-tail: 2.9;
  --focus-head: .9;
}
.signal-path-glow { stroke: var(--edge); stroke-width: 4.4; opacity: var(--glow-opacity); }
.signal-trace { stroke: var(--light); stroke-width: 2.25; opacity: var(--trace-opacity); }
.signal-port { fill: var(--core); opacity: .75; r: var(--port-radius, 1.5px); }
.signal-packet {
  display: none;
  stroke-dasharray: var(--length) 125;
}
.packet-tail { --length: var(--current-tail, var(--tail)); stroke: var(--light); stroke-width: var(--tail-width, 2.35); }
.packet-head { --length: var(--current-head, var(--head)); stroke: var(--core); stroke-width: var(--head-width, 1.55); }
.signal-rack-led { fill: #c8f3c8; opacity: .62; }

/* The radio fronts expand into the glass beside the TV around the same point.
   The fixed-width pair of strokes reads on both the pale glass and dark bezel. */
.radio-flow { --radio-reach: 1.53; --radio-peak: .86; }
.radio-wavefront { transform: scale(var(--still-scale)); opacity: .72; }
.radio-wave-1 { --wave-phase: -.6s; --still-scale: .52; }
.radio-wave-2 { --wave-phase: -1.8s; --still-scale: .9; }
.radio-wave-3 { --wave-phase: -3s; --still-scale: 1.31; }
.radio-wave-light, .radio-wave-ink { vector-effect: non-scaling-stroke; }
.radio-wave-light { stroke: #e9f7f5; stroke-width: 2.8; }
.radio-wave-ink { stroke: #246c88; stroke-width: 1.45; }
.wifi-mark { stroke: var(--core); stroke-width: 1.55; }
.radio-dot { fill: var(--core); }

@media (prefers-reduced-motion: no-preference) {
  .day-exhibit[data-motion="running"] .signal-packet {
    display: inline;
    animation: office-cable-glint var(--period) linear var(--phase) infinite;
  }
  .day-exhibit[data-motion="running"] .radio-wavefront {
    animation: office-wifi-ripple 3.6s linear var(--wave-phase) infinite;
  }
  .day-exhibit[data-motion="running"] .signal-rack-led {
    animation: office-rack-light 5.7s ease-in-out -1.7s infinite;
  }
}
@keyframes office-cable-glint {
  0% { stroke-dashoffset: 0px; opacity: 0; }
  4%, 96% { opacity: 1; }
  100% { stroke-dashoffset: -100px; opacity: 0; }
}
@keyframes office-wifi-ripple {
  0% { opacity: 0; transform: scale(.34); }
  17%, 63% { opacity: var(--radio-peak); }
  100% { opacity: 0; transform: scale(var(--radio-reach)); }
}
@keyframes office-rack-light {
  0%, 100% { opacity: .42; }
  48% { opacity: .76; }
}
.day-exhibit[data-motion="paused"] .signal-trace { opacity: max(.22, var(--trace-opacity)); }
@media (prefers-reduced-motion: reduce) {
  .signal-flow { transition: none; }
}
@container (max-width: 400px) {
  .packet-tail { stroke-width: var(--tail-width, 2.8); }
  .packet-head { stroke-width: var(--head-width, 1.9); }
  .wifi-mark { stroke-width: 1.8; }
}
