/* The collection diagram, finished (13 Nov.). Six sources sit at equal angles on one ring;
   every label is set the same way — outside the ring, above its tile in the upper half and
   below it in the lower half — so no connector crosses a word. collect-orbit.js draws the
   ring and the connectors and runs the motion; without it the earlier diagram stays as it was.
   Everything here is scoped to `.is-orbit`, which the script sets once it has laid the diagram
   out. */
#technology .collect-map.is-orbit .collect-ring,
#technology .collect-map.is-orbit svg.collect-connectors {
  display: none;
}
#technology .collect-map.is-orbit .collect-diagram {
  --orbit-line: color-mix(in srgb, var(--text) 16%, transparent);
  --orbit-line-strong: color-mix(in srgb, var(--text) 62%, transparent);
  --orbit-tile: 48px;
  --orbit-gap: 10px;
}
#technology .collect-map.is-orbit svg.collect-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  fill: none;
  pointer-events: none;
}
#technology .collect-orbit .orbit-ring {
  stroke: var(--orbit-line);
  stroke-width: 1;
}
#technology .collect-orbit .orbit-halo {
  fill: color-mix(in srgb, var(--text) 3%, transparent);
  stroke: none;
}
#technology .collect-orbit .orbit-spoke {
  stroke: var(--orbit-line);
  stroke-width: 1;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
  transition: stroke 240ms ease;
}
#technology .collect-orbit .orbit-spoke.is-live {
  stroke: var(--orbit-line-strong);
}
#technology .collect-orbit .orbit-dot {
  fill: var(--text);
  opacity: 0;
}
#technology .collect-orbit .orbit-pulse {
  stroke: var(--orbit-line-strong);
  stroke-width: 1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
#technology .collect-orbit .orbit-pulse.is-live {
  animation: orbit-pulse 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes orbit-pulse {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.42);
  }
}

/* The hub: still, with one quiet breath when something arrives. */
#technology .collect-map.is-orbit .collect-center {
  box-shadow: none;
  border-color: var(--orbit-line-strong);
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
#technology .collect-map.is-orbit .collect-center.is-live {
  transform: translate(-50%, -50%) scale(1.045);
}

/* A source: its tile centred on the ring, its label on the outer side, one line. */
#technology .collect-map.is-orbit .collect-source {
  left: var(--orbit-x);
  top: var(--orbit-y);
  width: var(--orbit-tile);
  max-width: none;
  height: var(--orbit-tile);
  display: block;
  gap: 0;
  transform: translate(-50%, -50%);
  font-size: 14px;
  line-height: 1.3;
}
#technology .collect-map.is-orbit .collect-source svg {
  display: block;
  width: 26px;
  height: 26px;
  padding: 10px;
  border-color: var(--orbit-line-strong);
  border-radius: 14px;
  transition:
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 240ms ease,
    box-shadow 320ms ease;
}
#technology .collect-map.is-orbit .collect-source > span {
  position: absolute;
  left: 50%;
  width: max-content;
  max-width: 11.5em;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
  overflow-wrap: normal;
  transition: opacity 240ms ease;
}
#technology .collect-map.is-orbit .collect-source[data-side='above'] > span {
  bottom: calc(100% + var(--orbit-gap));
}
#technology .collect-map.is-orbit .collect-source[data-side='below'] > span {
  top: calc(100% + var(--orbit-gap));
}
#technology .collect-map.is-orbit .collect-source.is-live svg {
  transform: translateY(-2px);
  border-color: var(--text);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--text) 14%, transparent);
}
#technology .collect-map.is-orbit figcaption {
  margin-top: 6px;
}

/* The list answers the diagram: the line a source feeds marks its arrival. */
#technology .collect-summary li .collect-state {
  transition:
    box-shadow 320ms ease,
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
#technology .collect-summary li.is-live .collect-state {
  box-shadow: 0 0 0 1px var(--orbit-line-strong, currentColor);
  transform: scale(1.04);
}

/* First appearance: the ring draws itself, the hub settles, the sources arrive in turn. */
#technology .collect-map.is-orbit:not(.is-ready) .collect-source,
#technology .collect-map.is-orbit:not(.is-ready) .collect-center {
  opacity: 0;
}
#technology .collect-map.is-orbit.is-ready .collect-source {
  animation: orbit-arrive 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(260ms + var(--orbit-i) * 70ms);
}
#technology .collect-map.is-orbit.is-ready .collect-center {
  animation: orbit-settle 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
#technology .collect-map.is-orbit .orbit-ring {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
#technology .collect-map.is-orbit.is-ready .orbit-ring {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1100ms cubic-bezier(0.4, 0, 0.2, 1) 80ms;
}
#technology .collect-map.is-orbit:not(.is-ready) .orbit-spoke {
  opacity: 0;
}
#technology .collect-map.is-orbit.is-ready .orbit-spoke {
  opacity: 1;
  transition:
    opacity 400ms ease 700ms,
    stroke 240ms ease;
}
@keyframes orbit-arrive {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes orbit-settle {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
@media (max-width: 599px) {
  #technology .collect-map.is-orbit .collect-diagram {
    --orbit-tile: 42px;
    --orbit-gap: 8px;
  }
  #technology .collect-map.is-orbit .collect-source {
    font-size: 12px;
  }
  #technology .collect-map.is-orbit .collect-source svg {
    width: 22px;
    height: 22px;
    border-radius: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #technology .collect-map.is-orbit .collect-source,
  #technology .collect-map.is-orbit .collect-center,
  #technology .collect-map.is-orbit .orbit-ring,
  #technology .collect-map.is-orbit .orbit-spoke,
  #technology .collect-map.is-orbit .collect-source svg,
  #technology .collect-summary li .collect-state {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    stroke-dashoffset: 0;
  }
}
