/* "Keep from wherever you are": the apps and browsers Glade keeps from, on
   tilted rings round its icon, and the same icons in three groups (sources.js). */

.lp-orbit {
  --tilt: 66deg; --R: 40cqw; --r: 24cqw; --icon: 5.4cqw;
  position: relative; width: min(100%, 1120px); aspect-ratio: 2.15; margin: 8px auto 0;
  container-type: inline-size; perspective: 2600px; transform-style: preserve-3d;
}
.lp-orbit.is-asleep .lp-orbit-ring, .lp-orbit.is-asleep .lp-spin { animation-play-state: paused; }
/* The ground the rings lie on, tipped back; everything on it shares one 3D
   space with the icon, so the near side passes in front of it. */
.lp-plane3d { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(var(--tilt)); }
.lp-track { position: absolute; left: 0; top: 0; width: calc(var(--R) * 2); height: calc(var(--R) * 2); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: inset 0 0 0 1.5px var(--lp-hair-2); pointer-events: none; }
.lp-track.is-inner { width: calc(var(--r) * 2); height: calc(var(--r) * 2); }
/* The middle: the Glade icon, glowing. */
.lp-core { position: absolute; left: 50%; top: 50%; width: 10.5cqw; height: 10.5cqw; transform: translate(-50%, -50%) translateZ(0); }
.lp-core::before {
  content: ""; position: absolute; inset: -70%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--lp-glow-sage), var(--lp-glow-sky) 55%, transparent);
  animation: lp-breathe 5s ease-in-out infinite alternate;
}
.lp-core .mark { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .35)); }
.lp-orbit-ring { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; animation: lp-turn 120s linear infinite; }
.lp-orbit-ring.is-inner { animation-duration: 90s; animation-direction: reverse; }
.lp-spot { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; transform: rotate(var(--a)) translateX(var(--R)); }
.lp-orbit-ring.is-inner .lp-spot { transform: rotate(var(--a)) translateX(var(--r)); }
/* Each icon turns back by its own angle and the ring's, and stands up off the
   tipped ground, so it always faces you. */
.lp-spin {
  position: absolute; left: calc(var(--icon) / -2); top: calc(var(--icon) / -2); width: var(--icon); height: var(--icon);
  animation: lp-face 120s linear infinite;
}
.lp-orbit-ring.is-inner .lp-spin { animation-duration: 90s; animation-direction: reverse; }

.lp-app { position: relative; display: grid; place-items: center; width: 100%; height: 100%; transition: transform .25s cubic-bezier(.2, .9, .25, 1.12); }
.lp-app:hover { transform: scale(1.14); }
.lp-app img { width: 100%; height: 100%; }
.lp-glyph {
  display: grid; place-items: center; width: 80%; height: 80%; border-radius: 22.5%;
  background: var(--lp-tile); box-shadow: inset 0 0 0 1px var(--lp-tile-edge), 0 6px 14px rgba(0, 0, 0, .2);
}
.lp-glyph svg { width: 52%; height: 52%; }
.lp-glyph.is-mono { color: var(--lp-mono); }
.lp-app[data-name]:hover::after {
  content: attr(data-name); position: absolute; left: 50%; top: 100%; z-index: 3; margin-top: 4px; padding: 5px 9px;
  border-radius: 8px; background: var(--button); color: var(--button-ink); font-size: 12px; font-weight: 600; white-space: nowrap; transform: translateX(-50%);
}

/* The section, centred on the launch ground: the words, the orbit, and the
   same icons in three groups beneath it. */
.lp-sources { padding: 150px 0 130px; }
.lp-srcrows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1240px; margin: 28px auto 0; text-align: left; }
.lp-srcrow {
  padding: 24px; border-radius: 22px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--lp-hair);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.lp-srcrow h3 { margin-top: 18px; font-size: 18px; letter-spacing: -.015em; }
.lp-srcrow p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--body); }
.lp-srcrow .apps { display: flex; padding-left: 10px; }
.lp-srcrow .lp-app { width: 48px; height: 48px; margin-left: -12px; }
.lp-srcrow .lp-app:hover { z-index: 2; }
@media (max-width: 960px) {
  .lp-srcrows { grid-template-columns: minmax(0, 1fr); }
  .lp-orbit { --tilt: 60deg; --R: 43cqw; --r: 26cqw; --icon: 10cqw; aspect-ratio: 1.5; }
}
@media (max-width: 640px) { .lp-sources { padding: 110px 0 96px; } }
@media (prefers-reduced-motion: reduce) { .lp-orbit-ring, .lp-spin, .lp-core::before { animation: none; } .lp-spin { transform: rotate(calc(var(--a) * -1)) rotateX(calc(var(--tilt) * -1)); } }

@keyframes lp-turn { to { transform: rotate(360deg); } }
@keyframes lp-face { from { transform: rotate(calc(var(--a) * -1)) rotateX(calc(var(--tilt) * -1)); } to { transform: rotate(calc(var(--a) * -1 - 360deg)) rotateX(calc(var(--tilt) * -1)); } }
@keyframes lp-breathe { from { transform: scale(.92); opacity: .8; } to { transform: scale(1.06); opacity: 1; } }
