.legacy-node-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  pointer-events: none;
}

.legacy-node {
  --legacy-accent: 143, 255, 226;
  --legacy-size: 156px;
  position: absolute;
  left: 50%;
  top: 48%;
  width: var(--legacy-size);
  height: var(--legacy-size);
  translate: -50% -50%;
  border: 1px solid rgba(var(--legacy-accent), 0.68);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.2), transparent 30%),
    radial-gradient(circle, rgba(19, 55, 61, 0.95) 0 58%, rgba(6, 20, 24, 0.99) 100%);
  box-shadow:
    0 0 20px rgba(var(--legacy-accent), 0.34),
    0 0 54px rgba(var(--legacy-accent), 0.14);
  cursor: pointer;
  pointer-events: auto;
  will-change: translate, scale, opacity;
  animation:
    ari-legacy-arrive 680ms cubic-bezier(0.18, 0.82, 0.22, 1) both,
    ari-legacy-drift 7.2s ease-in-out 680ms infinite;
}

.legacy-node--milestone {
  --legacy-accent: 255, 199, 103;
  border-radius: 24%;
  rotate: 45deg;
}

.legacy-node::before,
.legacy-node::after {
  position: absolute;
  content: "";
  border-radius: inherit;
  pointer-events: none;
}

.legacy-node::before {
  inset: -13px;
  border: 1px solid rgba(var(--legacy-accent), 0.24);
  box-shadow: 0 0 22px rgba(var(--legacy-accent), 0.12);
  animation: ari-legacy-halo 4.8s ease-in-out infinite;
}

.legacy-node::after {
  inset: -25px;
  border: 1px dashed rgba(var(--legacy-accent), 0.16);
  opacity: 0.56;
  animation: ari-legacy-orbit 18s linear infinite;
}

.legacy-node img {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  border-radius: inherit;
  object-fit: cover;
  background: #0f2429;
}

.legacy-node--milestone img,
.legacy-node--milestone .legacy-node-label {
  rotate: -45deg;
}

.legacy-node-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 18px);
  min-width: 230px;
  translate: -50% 0;
  color: #effffb;
  font: 600 12px/1.3 system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-align: center;
  text-shadow: 0 2px 10px #000;
  text-transform: uppercase;
}

.legacy-node--milestone .legacy-node-label {
  left: 80%;
  top: 110%;
}

.legacy-node-label small {
  display: block;
  margin-top: 4px;
  color: rgb(var(--legacy-accent));
  font-size: 9px;
  letter-spacing: 0.18em;
}

.legacy-node.is-leaving {
  animation: ari-legacy-leave 420ms cubic-bezier(0.4, 0, 1, 1) forwards;
}

.legacy-publication {
  --legacy-panel-accent: 143, 255, 226;
}

.legacy-publication.legacy-milestone {
  --legacy-panel-accent: 255, 199, 103;
}

.legacy-publication .legacy-plaque-category {
  margin: 0 0 8px;
  color: rgb(var(--legacy-panel-accent));
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.legacy-publication .legacy-plaque-subtitle {
  margin: -4px 0 18px;
  color: rgba(45, 79, 85, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legacy-publication .legacy-portrait {
  width: 126px;
  height: 126px;
  border: 1px solid rgba(var(--legacy-panel-accent), 0.62);
  border-radius: 50%;
  object-fit: cover;
  background: #0f2429;
  box-shadow: 0 0 26px rgba(var(--legacy-panel-accent), 0.18);
}

.legacy-publication.legacy-milestone .legacy-portrait {
  border-radius: 22%;
}

.legacy-publication .legacy-plaque-message {
  margin-top: 18px;
  line-height: 1.65;
}

.legacy-publication .legacy-disclaimer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(var(--legacy-panel-accent), 0.18);
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  opacity: 0.62;
  text-transform: uppercase;
}

@keyframes ari-legacy-arrive {
  from {
    opacity: 0;
    scale: 0.8;
    filter: blur(3px);
  }
  70% {
    opacity: 1;
    scale: 1.025;
    filter: blur(0);
  }
  to {
    opacity: 1;
    scale: 1;
    filter: blur(0);
  }
}

@keyframes ari-legacy-leave {
  from {
    opacity: 1;
    scale: 1;
  }
  to {
    opacity: 0;
    scale: 0.82;
    filter: blur(2px);
  }
}

@keyframes ari-legacy-drift {
  0%, 100% { translate: calc(-50% - 16px) calc(-50% - 9px); }
  28% { translate: calc(-50% + 9px) calc(-50% - 17px); }
  58% { translate: calc(-50% + 19px) calc(-50% + 12px); }
  82% { translate: calc(-50% - 7px) calc(-50% + 17px); }
}

@keyframes ari-legacy-halo {
  0%, 100% { opacity: 0.48; scale: 0.985; }
  50% { opacity: 0.82; scale: 1.025; }
}

@keyframes ari-legacy-orbit {
  to { rotate: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .legacy-node,
  .legacy-node::before,
  .legacy-node::after {
    animation: none;
  }
}
