/* About section — "under one roof" orbit (about-orbit.js).
   A core in the middle and three tilted orbits around it. about-orbit.js moves the labels along the
   orbits and sets their depth (size, opacity, in front of or behind the core). The chamfered frame
   outline and caption are kept. */

html:root body #about .portrait-frame.nl-orbit-frame {
  position: relative;
  aspect-ratio: 1448 / 1086;
  container-type: inline-size;
  overflow: hidden;
  background:
    radial-gradient(ellipse 46% 34% at 50% 46%, rgba(150, 70, 230, .16), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 46%, rgba(25, 120, 250, .08), transparent 75%),
    #060a13;
}
html:root body #about .nl-orbits {
  --pink: 236, 112, 178;
  --violet: 167, 139, 250;
  --cyan: 112, 217, 236;
  --cy: 46%;
  position: absolute;
  inset: 0;
}
/* star dust */
html:root body #about .nl-orbits::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, .5) .6px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, .25) .6px, transparent 1px);
  background-size: 9cqw 9cqw, 5.3cqw 5.3cqw;
  background-position: 0 0, 2.1cqw 3.4cqw;
  opacity: .3;
  -webkit-mask-image: radial-gradient(ellipse at 50% 46%, transparent 12%, #000 40%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 46%, transparent 12%, #000 40%, transparent 78%);
}

/* ---- orbit lines: the back halves sit behind the core, the front halves over it ---- */
html:root body #about .nl-orbit-paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
html:root body #about .nl-orbit-back { z-index: 1; }
html:root body #about .nl-orbit-front { z-index: 6; }
html:root body #about .nl-orbit-path {
  fill: none;
  stroke: rgba(var(--c), .2);
  stroke-width: 1;
}
html:root body #about .nl-orbit-front .nl-orbit-path {
  stroke: rgba(var(--c), .42);
  filter: drop-shadow(0 0 3px rgba(var(--c), .35));
}

/* ---- labels and comets: positioned by about-orbit.js ---- */
html:root body #about :is(.nl-sat-label, .nl-comet) {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform, opacity;
}
html:root body #about .nl-sat-label {
  display: inline-flex;
  align-items: center;
  gap: .8cqw;
  padding: .7cqw 1.35cqw .7cqw 1cqw;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(8, 12, 22, .88);
  border: 1px solid rgba(var(--c), .42);
  color: #d5dde9;
  font: 600 max(10px, 1.4cqw)/1 var(--display, inherit);
  letter-spacing: .08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transition: border-color .3s, color .3s, box-shadow .3s;
  cursor: default;
}
html:root body #about .nl-sat-label i {
  width: .9cqw;
  height: .9cqw;
  min-width: 6px;
  min-height: 6px;
  border-radius: 50%;
  background: rgba(var(--c), 1);
  box-shadow: 0 0 1.2cqw rgba(var(--c), .9);
}
html:root body #about .nl-sat-label:hover {
  color: #fff;
  border-color: rgba(var(--c), 1);
  box-shadow: 0 0 2.4cqw rgba(var(--c), .55);
}
html:root body #about .nl-comet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(var(--c), 1);
  box-shadow: 0 0 6px 2px rgba(var(--c), .8), 0 0 16px 4px rgba(var(--c), .35);
  pointer-events: none;
}

/* ---- core ---- */
html:root body #about .nl-core {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: var(--cy);
  width: 15cqw;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: radial-gradient(circle at 36% 30%, #1d1634, #0a0d18 72%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 0 5cqw rgba(170, 70, 233, .32), inset 0 0 3cqw rgba(112, 217, 236, .1);
  animation: nl-core-pulse 5s ease-in-out infinite;
}
html:root body #about .nl-core b {
  font: 800 2.3cqw/1.05 var(--display, inherit);
  letter-spacing: .06em;
  color: #fff;
}
html:root body #about .nl-core small {
  margin-top: .8cqw;
  font: 600 max(8px, 1.05cqw)/1.3 var(--mono, ui-monospace, monospace);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(236, 112, 178, 1);
}
@keyframes nl-core-pulse {
  0%, 100% { box-shadow: 0 0 5cqw rgba(170, 70, 233, .3), inset 0 0 3cqw rgba(112, 217, 236, .1); }
  50%      { box-shadow: 0 0 7cqw rgba(170, 70, 233, .46), inset 0 0 4cqw rgba(112, 217, 236, .18); }
}

/* legend, bottom-left */
html:root body #about .nl-legend {
  position: absolute;
  z-index: 20;
  left: 5cqw;
  bottom: 8cqw;
  display: grid;
  gap: 1.2cqw;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 600 max(10px, 1.3cqw)/1 var(--mono, ui-monospace, monospace);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a96a8;
}
html:root body #about .nl-legend li { display: flex; align-items: center; gap: 1cqw; }
html:root body #about .nl-legend li::before { content: ''; width: 2.4cqw; height: 1px; background: rgba(var(--c), 1); box-shadow: 0 0 .8cqw rgba(var(--c), 1); }

@media (prefers-reduced-motion: reduce) {
  html:root body #about .nl-core { animation: none; }
}
@media (max-width: 600px) {
  /* on phones the caption sits ~74cqw below the frame top: keep every orbit and label above it */
  html:root body #about .portrait-frame.nl-orbit-frame { aspect-ratio: 1 / 1.02 !important; height: auto !important; }
  html:root body #about .nl-core { width: 17cqw; }
  html:root body #about .nl-core b { font-size: 2.8cqw; }
  html:root body #about .nl-core small { font-size: 7px; }
  html:root body #about .nl-sat-label { font-size: 9px; padding: 4px 8px 4px 6px; gap: 4px; }
  html:root body #about .nl-legend { display: none; }
}
