/* App feature orbit: right side of the Mutual Funds section.
   Two counter-rotating 3D rings of feature nodes around a central brand core.
   Shares the site's CSS 3D-transform technique (see hero.css .orbit) with its own,
   smaller-node visual language suited to a feature-navigation ring. */

.aorbit {
  --node: 128px;
  position: relative; width: 100%; height: clamp(420px, 40vw, 560px);
  perspective: 1600px; perspective-origin: 50% 42%;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
  opacity: 0; transform: scale(0.9); transition: opacity 0.9s var(--ease), transform 1s var(--ease);
}
.aorbit.in { opacity: 1; transform: scale(1); }
.aorbit.is-drag { cursor: grabbing; }

.aorbit__floor {
  position: absolute; left: 50%; top: 52%; z-index: 0; pointer-events: none;
  width: 84%; aspect-ratio: 2.1 / 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.08), transparent 74%);
}
.aorbit__ring {
  position: absolute; left: 50%; top: 50%; pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.aorbit__ring--in { border: 1.5px dashed rgba(0, 0, 0, 0.14); }
.aorbit__ring--out { border: 1.5px dashed rgba(241, 135, 23, 0.3); }

.aorbit__core {
  position: absolute; left: 50%; top: 50%; z-index: 60; margin-top: -2%;
  width: clamp(84px, 9vw, 108px); aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 28%;
  background: #fff; box-shadow: 0 30px 60px -24px var(--glow-v), 0 0 70px -16px var(--glow-o), 0 0 0 1px var(--line);
  animation: aorbit-float 6.5s ease-in-out infinite;
}
.aorbit__core img { width: 64%; height: 64%; object-fit: contain; }

@keyframes aorbit-float { 50% { transform: translate(-50%, -58%); } }

.anode {
  position: absolute; left: 50%; top: 50%; width: var(--node);
  margin-left: calc(var(--node) / -2); margin-top: calc(var(--node) * -0.19);
  display: flex; align-items: center; gap: 0.6em; will-change: transform, opacity;
  padding: 0.42em 0.7em 0.42em 0.42em; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 16px 32px -20px rgba(0, 0, 0, 0.25);
  font-size: max(11px, calc(var(--node) * 0.088));
  transition: box-shadow 0.4s var(--ease), border-color 0.3s var(--ease), background 0.3s;
}
.anode__ic {
  flex-shrink: 0; width: 2.3em; height: 2.3em; display: grid; place-items: center; border-radius: 50%;
  background: var(--o-soft); color: var(--ink); font-size: 1em; transition: background 0.3s, color 0.3s;
}
.anode__label { min-width: 0; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.anode.is-front { z-index: 90; }
.anode.is-hot, .anode:focus-visible {
  border-color: rgba(241, 135, 23, 0.65); background: #fff;
  box-shadow: 0 0 0 4px rgba(241, 135, 23, 0.15), 0 30px 54px -20px var(--glow-o), 0 0 50px -12px var(--glow-v);
}
.anode.is-hot .anode__ic, .anode:focus-visible .anode__ic { background: var(--o); color: #000; }
.anode:focus-visible { outline: none; }

/* connecting thread from core toward a hovered/focused node, drawn with the brand gradient */
.aorbit__core.is-active { box-shadow: 0 0 0 4px rgba(241, 135, 23, 0.16), 0 30px 60px -24px var(--glow-v), 0 0 70px -16px var(--glow-o); }

.aorbit__hint {
  position: absolute; left: 0; right: 0; bottom: -6px; text-align: center;
  font-size: 12px; font-weight: 600; color: var(--mute); opacity: 0.75;
}
.aorbit__hint i { vertical-align: -2px; margin-right: 4px; }

/* ---------- entrance stagger ---------- */
.aorbit__core, .aorbit__ring, .anode {
  opacity: 0; transition: opacity 0.7s var(--ease) calc(var(--i, 0) * 55ms), scale 0.7s var(--ease) calc(var(--i, 0) * 55ms);
  scale: 0.4;
}
.aorbit.in .aorbit__core, .aorbit.in .aorbit__ring, .aorbit.in .anode { opacity: 1; scale: 1; }
.aorbit.in .anode { transition: opacity 0.7s var(--ease) calc(var(--i, 0) * 55ms), box-shadow 0.4s var(--ease), border-color 0.3s var(--ease); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .aorbit { height: clamp(360px, 58vw, 480px); --node: 116px; }
}
@media (max-width: 600px) {
  .aorbit { height: 380px; --node: 104px; }
  .anode--extra { display: none; }
}
@media (max-width: 420px) {
  .aorbit { height: 340px; --node: 92px; }
}

