*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orbit-duration: 42s;
  --unit-size: min(44vw, 82vh, 600px);
}

html,
body {
  width: 100%;
  height: 100%;
  background: #000000;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.stage {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2.5vw, 40px);
  background: #000000;
  overflow: hidden;
}

.stage-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 72px);
}

.medallion {
  position: relative;
  width: var(--unit-size);
  height: var(--unit-size);
  flex: 0 0 auto;
  border-radius: 50%;
  filter: drop-shadow(0 0 36px rgba(0, 229, 255, 0.14))
          drop-shadow(0 0 36px rgba(255, 140, 0, 0.14));
}

/* 3D Interactive Globe Panel (exact same square size as medallion) */
.globe-panel {
  position: relative;
  width: var(--unit-size);
  height: var(--unit-size);
  flex: 0 0 auto;
  overflow: visible;
}

.globe-aura {
  pointer-events: none;
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  opacity: 0.4;
  filter: blur(48px);
  background: radial-gradient(
    circle at 46% 42%,
    rgba(56, 189, 248, 0.24) 0%,
    rgba(255, 121, 11, 0.18) 42%,
    rgba(0, 36, 71, 0.2) 72%,
    transparent 100%
  );
}

.globe-badge {
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  opacity: 0;
  will-change: transform, opacity;
}

.globe-badge-inner {
  position: relative;
  display: flex;
  flex-direction: column;
}

.globe-badge-inner--from {
  align-items: flex-end;
}

.globe-badge-inner--to {
  align-items: flex-start;
}

.globe-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border-radius: 9999px;
  border: 1px solid rgba(255, 121, 11, 0.55);
  background: rgba(0, 36, 71, 0.92);
  padding: 4px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #f5f5f0;
  box-shadow: 0 8px 22px rgba(0, 36, 71, 0.36);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.globe-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.globe-dot--from {
  background: #ff790b;
  box-shadow: 0 0 8px #ff790b;
}

.globe-dot--to {
  background: #ffb36b;
  box-shadow: 0 0 8px #ffb36b;
}

.globe-stem {
  width: 1px;
  height: 10px;
}

.globe-stem--from {
  margin-right: 20%;
  background: linear-gradient(to bottom, rgba(255, 121, 11, 0.85), transparent);
}

.globe-stem--to {
  margin-left: 20%;
  background: linear-gradient(to bottom, rgba(255, 179, 107, 0.85), transparent);
}

@media (max-width: 899px) {
  :root {
    --unit-size: min(82vw, calc(46vh - 14px), calc(46dvh - 14px), 380px);
  }

  .stage {
    padding: 12px 14px;
  }

  .stage-grid {
    flex-direction: column;
    gap: clamp(10px, 2dvh, 20px);
  }

  .globe-pill {
    font-size: 9px;
    padding: 3px 8px;
  }
}

.medallion-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Subtle breathing pulse on outer dual-color neon ring */
.neon-ring-pulse {
  animation: neon-breathe 5.5s ease-in-out infinite;
}

@keyframes neon-breathe {
  0%, 100% {
    opacity: 0.94;
  }
  50% {
    opacity: 1;
  }
}

/* Center VERA logo (fixed at center) */
.center-logo {
  position: absolute;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
  width: 26.5%;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.18));
}

/* Rotating orbit system containing the 3 glowing cyan arcs + 3 linked logos */
.orbit-system {
  position: absolute;
  inset: 0;
  z-index: 4;
  animation: orbit-spin var(--orbit-duration) linear infinite;
  will-change: transform;
  pointer-events: none;
}

.orbit-arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Pause orbit smoothly when hovering or focusing any linked logo */
.orbit-system:has(.orbit-link:hover),
.orbit-system:has(.orbit-link:focus-visible) {
  animation-play-state: paused;
}

.orbit-system:has(.orbit-link:hover) .orbit-node,
.orbit-system:has(.orbit-link:focus-visible) .orbit-node {
  animation-play-state: paused;
}

/* Individual orbiting logo container — counter-rotates to stay perfectly upright */
.orbit-node {
  position: absolute;
  transform-origin: center center;
  animation: orbit-counter-spin var(--orbit-duration) linear infinite;
  will-change: transform;
  pointer-events: auto;
}

/* Exact equilateral 120° spacing at uniform orbit radius R = 27.2% */
.orbit-node--mira {
  left: 26.44%;
  top: 36.4%;
  width: 19.5%;
}

.orbit-node--renevolt {
  left: 73.56%;
  top: 36.4%;
  width: 21.5%;
}

.orbit-node--meneer {
  left: 50%;
  top: 77.2%;
  width: 20.5%;
}

.orbit-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  cursor: pointer;
  border-radius: 16px;
  outline: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.28s ease;
}

.orbit-link img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.28s ease;
}

.orbit-link:hover,
.orbit-link:focus-visible {
  transform: scale(1.12);
}

.orbit-node--mira .orbit-link:hover img,
.orbit-node--mira .orbit-link:focus-visible img {
  filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.72))
          drop-shadow(0 0 26px rgba(255, 140, 0, 0.45));
}

.orbit-node--renevolt .orbit-link:hover img,
.orbit-node--renevolt .orbit-link:focus-visible img {
  filter: drop-shadow(0 0 14px rgba(255, 155, 0, 0.78))
          drop-shadow(0 0 26px rgba(255, 220, 120, 0.42));
}

.orbit-node--meneer .orbit-link:hover img,
.orbit-node--meneer .orbit-link:focus-visible img {
  filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.65))
          drop-shadow(0 0 24px rgba(255, 200, 75, 0.55));
}

.orbit-link:active {
  transform: scale(1.04);
}

@keyframes orbit-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-counter-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-system,
  .orbit-node,
  .neon-ring-pulse {
    animation: none;
  }

  .orbit-node {
    transform: translate(-50%, -50%);
  }
}
