/* light-theme: manual
   index.html hero, right of "Das ist nexplace.net": the projects orbit the
   NEX logo (assets/js/hero-orbit.js). Only shown from 1200px up. */

.hero-orbit { display: none; }

@media (min-width: 1200px) {
  .hero-full:has(.hero-orbit) {
    display: grid;
    grid-template-columns: minmax(640px, 1.3fr) minmax(0, 0.7fr);
    align-items: center;
    column-gap: 1.5rem;
  }
  .hero-full .hero-inner { grid-column: 1; }
  .hero-orbit { display: block; grid-column: 2; }
}

.ob { position: relative; height: 420px; }
.ob-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.18);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.ob-r1 { width: 68%; aspect-ratio: 1 / 0.5; }
.ob-r2 { width: 100%; aspect-ratio: 1 / 0.5; border-color: rgba(168, 85, 247, 0.16); }

.ob-sun {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), rgba(2, 6, 23, 0.94) 68%);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.35), 0 0 70px rgba(56, 189, 248, 0.32), 0 0 140px rgba(168, 85, 247, 0.16);
  animation: obSun 4s ease-in-out infinite;
}
.ob-sun img { width: 68px; height: auto; }
@keyframes obSun { 50% { box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.5), 0 0 80px rgba(168, 85, 247, 0.35), 0 0 140px rgba(56, 189, 248, 0.16); } }

.ob-p {
  --depth: 1;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: #e2e8f0;
  font: 700 0.8rem Inter, system-ui, sans-serif;
  text-decoration: none;
  opacity: 0;
  will-change: transform;
}
.ob.is-placed .ob-p { opacity: var(--depth); transition: opacity 0.4s ease; }
.ob-p img,
.ob-p > i {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: contain;
  background: #0b1222;
  color: var(--c);
  font-size: 1.3rem;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 60%, transparent), 0 0 26px color-mix(in srgb, var(--c) 40%, transparent);
  transition: box-shadow 0.25s ease;
}
.ob-p small { color: var(--c); font: 700 0.68rem "JetBrains Mono", monospace; white-space: nowrap; opacity: 0; transition: opacity 0.25s ease; }
.ob:hover .ob-p small, .ob:focus-within .ob-p small { opacity: 0.9; }
.ob.is-placed .ob-p:hover, .ob.is-placed .ob-p:focus-visible { opacity: 1; }
.ob-p:hover img, .ob-p:hover > i,
.ob-p:focus-visible img, .ob-p:focus-visible > i { box-shadow: 0 0 0 3px var(--c), 0 0 36px color-mix(in srgb, var(--c) 60%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .ob-sun { animation: none; }
}

html[data-theme="light"] .ob-sun { background: radial-gradient(circle, rgba(14, 165, 233, 0.18), #fff 70%); }
html[data-theme="light"] .ob-p { color: #0f172a; }
html[data-theme="light"] .ob-p img, html[data-theme="light"] .ob-p > i { background: #fff; }
html[data-theme="light"] .ob-ring { border-color: rgba(15, 23, 42, 0.14); }
