/*!
 * Copyright © 2026 by Monard (Mihail Opinca) — All rights reserved.
 * Source: https://devmonard.com | https://github.com/Monard2033
 * Provenance-FP: AC6D4F06495B82B4
 */
:root {
  --monard-stamp: "Copyright by Monard in 2026 // Mihail Opinca // devmonard.com // FP:AC6D4F06495B82B4";
  --bg: #000000;
  --ink: #f5f3ff;
  --mute: #a5a1bd;
  --dim: #6b6785;
  --vio: #8b5cf6;
  --vio2: #a78bfa;
  --teal: #2dd4bf;
  --line: rgba(255, 255, 255, 0.09);
  --grad: linear-gradient(100deg, #a78bfa 0%, #818cf8 40%, #2dd4bf 100%);
  --panel: rgba(8, 5, 20, 0.72);
  --orbit-col: #a78bfa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

html,
body {
  margin: 0;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(60vmax 50vmax at 72% 30%, rgba(139, 92, 246, 0.28), transparent 60%),
    radial-gradient(50vmax 40vmax at 20% 85%, rgba(45, 212, 191, 0.18), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 400 16px/1.6 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#gl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.nogl #gl {
  display: none;
}

.gl body {
  background: var(--bg);
  background-attachment: scroll;
}

body.sat-hover {
  cursor: pointer;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--vio);
  color: #ffffff;
}

/* Top Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 32;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 44px);
  background: rgba(5, 3, 14, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav > * {
  pointer-events: auto;
}

.logo {
  font: 800 15px/1 Unbounded, sans-serif;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.logo span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav ul a {
  font: 500 13px/1 Inter, sans-serif;
  color: var(--mute);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 99px;
  border: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav ul a:hover,
.nav ul a.on {
  color: #ffffff;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

/* Main & Typography */
main {
  position: relative;
}

section {
  position: relative;
  padding: 0 clamp(16px, 5vw, 64px);
}

.eyebrow {
  font: 500 11px/1.4 Unbounded, sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orbit-col, var(--vio2));
  margin: 0;
}

.eyebrow b {
  color: var(--teal);
  font-weight: 500;
}

h1,
h2,
h3 {
  font-family: Unbounded, sans-serif;
  margin: 0;
  letter-spacing: -0.02em;
}

h2 {
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.12;
  margin: 10px 0 18px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 60px;
  pointer-events: none;
}

#hero > * {
  position: relative;
  z-index: 6;
  pointer-events: auto;
  max-width: min(640px, 100%);
}

#hero h1 {
  font-weight: 800;
  font-size: clamp(54px, 11vw, 156px);
  line-height: 0.88;
  margin: 18px 0 10px;
  text-transform: uppercase;
  max-width: none;
  width: fit-content;
}

#hero h1 .l {
  display: inline-block;
}

#hero .who {
  font: 300 clamp(18px, 2.2vw, 26px)/1.3 Unbounded, sans-serif;
  color: var(--mute);
  margin: 0 0 16px;
}

#hero .lead {
  max-width: 46ch;
  font-size: clamp(15.5px, 1.4vw, 18px);
  line-height: 1.65;
  color: #d8d4ee;
  margin: 0;
}

#hero .lead strong {
  color: #ffffff;
  font-weight: 600;
}

#hero .hero-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hint {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  width: fit-content;
}

.hint i {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--vio2), transparent);
  display: block;
}

/* Orbit Panels */
.stop {
  min-height: 80vh;
  pointer-events: none;
}

.panel {
  position: sticky;
  top: 11vh;
  z-index: 6;
  pointer-events: auto;
  max-width: 500px;
  background: rgba(9, 6, 22, 0.91);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 26px 24px 24px;
  box-shadow:
    0 24px 60px -24px rgba(0, 0, 0, 0.9),
    0 0 36px -22px var(--orbit-col, var(--vio));
}

.panel p {
  color: #cfcbe4;
  margin: 0 0 12px;
}

.panel p strong {
  color: #ffffff;
  font-weight: 600;
}

/* About Facts */
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 16px;
  padding: 0;
  list-style: none;
}

.facts li {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
}

.facts b {
  display: block;
  font: 500 15.5px/1.25 Unbounded, sans-serif;
  color: #ffffff;
}

.facts span {
  font-size: 11.5px;
  color: var(--mute);
}

/* Orbit Header with Project Count Pill */
.orbit-no {
  display: flex;
  align-items: center;
  gap: 10px;
}

.orbit-no::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--orbit-col) 45%, transparent), transparent);
}

.orbit-count {
  font: 600 10.5px/1 Inter, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--orbit-col);
  background: color-mix(in srgb, var(--orbit-col) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--orbit-col) 32%, transparent);
  flex: none;
}

/* Distinct Project Cards inside each Orbit */
.proj-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.proj {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 16px 18px 15px;
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--orbit-col) 11%, transparent), transparent 58%),
    rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-left: 3px solid var(--orbit-col);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 28px -20px rgba(0, 0, 0, 0.9);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.proj:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--orbit-col) 58%, rgba(255, 255, 255, 0.2));
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--orbit-col) 18%, transparent), transparent 60%),
    rgba(255, 255, 255, 0.048);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 14px 32px -18px color-mix(in srgb, var(--orbit-col) 55%, rgba(0, 0, 0, 0.9));
}

.proj-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.proj h3 {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -0.015em;
  transition: color 0.18s ease;
}

.proj:hover h3 {
  color: color-mix(in srgb, var(--orbit-col) 30%, #ffffff);
}

.proj-badge {
  flex: none;
  font: 600 10px/1 Inter, sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--orbit-col);
  background: color-mix(in srgb, var(--orbit-col) 14%, rgba(0, 0, 0, 0.3));
  border: 1px solid color-mix(in srgb, var(--orbit-col) 38%, transparent);
  margin-top: 2px;
}

.proj-badge.live {
  color: #5eead4;
  background: rgba(45, 212, 191, 0.14);
  border-color: rgba(45, 212, 191, 0.42);
}

.meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.03em;
  margin: 0 0 9px;
}

.meta em {
  font-style: normal;
  color: var(--mute);
}

.proj p.desc {
  font-size: 13.75px;
  line-height: 1.55;
  color: #d6d2ea;
  margin: 0 0 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 13px;
  padding: 0;
  list-style: none;
}

.tags li {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 99px;
  border: 1px solid color-mix(in srgb, var(--orbit-col) 28%, rgba(255, 255, 255, 0.1));
  color: #e4ddff;
  background: color-mix(in srgb, var(--orbit-col) 10%, rgba(0, 0, 0, 0.25));
}

.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 12.5px/1 Inter, sans-serif;
  text-decoration: none;
  color: #ffffff;
  padding: 9px 13px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  border-color: var(--teal);
  background: rgba(45, 212, 191, 0.1);
  transform: translateY(-1px);
}

.btn.accent {
  background: color-mix(in srgb, var(--orbit-col) 20%, rgba(255, 255, 255, 0.04));
  border-color: color-mix(in srgb, var(--orbit-col) 52%, transparent);
  color: #ffffff;
  font-weight: 600;
}

.btn.accent:hover {
  background: color-mix(in srgb, var(--orbit-col) 34%, rgba(255, 255, 255, 0.06));
  border-color: var(--orbit-col);
  box-shadow: 0 6px 18px -8px var(--orbit-col);
}

.btn.primary {
  background: var(--grad);
  border: 0;
  color: #08040f;
  font-weight: 600;
}

.btn.primary:hover {
  background: var(--grad);
  box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.65);
}

.locate {
  display: none;
}

.gl .locate {
  display: inline-flex;
}

.locate::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

/* Stack */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 16px;
  padding: 0;
  list-style: none;
}

.chips li {
  font: 500 13px/1 Inter, sans-serif;
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.035);
}

.sub {
  font: 500 11px/1 Unbounded, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 14px 0 8px;
}

/* Contact & Footer */
#contact {
  min-height: 150vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
}

#contact .panel {
  max-width: 640px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  top: 26vh;
}

#contact h2 {
  font-weight: 800;
  font-size: clamp(34px, 6vw, 80px);
  line-height: 0.95;
  text-transform: uppercase;
}

#contact .acts {
  justify-content: center;
  margin-top: 22px;
}

#contact .btn {
  padding: 14px 20px;
  font-size: 15px;
}

footer {
  position: relative;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding: 26px clamp(16px, 5vw, 64px) 70px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
  background: rgba(0, 0, 0, 0.65);
}

/* Floating Planet Labels */
#labels {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
  contain: layout style;
}

.sat-label {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font: 500 12px/1.15 Inter, sans-serif;
  color: #f5f3ff;
  padding: 6px 11px 6px 9px;
  border-radius: 999px;
  background: rgba(11, 7, 26, 0.9);
  border: 1px solid color-mix(in srgb, var(--sat-col, #a78bfa) 44%, rgba(255, 255, 255, 0.12));
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.78);
  transform: translate3d(-9999px, 0, 0);
  will-change: transform;
  contain: layout style;
  transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
  text-align: left;
  appearance: none;
}

.sat-label .sat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--sat-col, var(--teal));
  box-shadow: 0 0 8px var(--sat-col, var(--teal));
}

.sat-label .sat-txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sat-label .sat-name {
  font: 600 11.5px/1.15 Inter, sans-serif;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.sat-label small {
  display: block;
  font-size: 9.5px;
  color: var(--sat-col, var(--teal));
  letter-spacing: 0.05em;
  opacity: 0.92;
}

.sat-label.show {
  opacity: 0.86;
  pointer-events: auto;
}

.sat-label.show.active {
  opacity: 1;
  background: rgba(14, 9, 32, 0.92);
  border-color: var(--sat-col, var(--teal));
}

.sat-label.show.dim {
  opacity: 0.38;
}

.sat-label.show:hover,
.sat-label.show.hot {
  opacity: 1;
  z-index: 25 !important;
  background: rgba(18, 12, 42, 0.96);
  border-color: var(--sat-col, var(--teal));
  box-shadow: 0 10px 26px -6px rgba(0, 0, 0, 0.85), 0 0 18px -2px var(--sat-col, var(--teal));
}

.sat-label.core-lbl {
  pointer-events: none;
  cursor: default;
}

/* Locked Planet Detail Drawer */
#detail {
  position: fixed;
  z-index: 35;
  top: 84px;
  right: clamp(12px, 3vw, 36px);
  width: min(400px, calc(100vw - 24px));
  max-height: calc(100vh - 110px);
  overflow: auto;
  background: rgba(9, 6, 22, 0.95);
  border: 1px solid color-mix(in srgb, var(--orbit-col, #a78bfa) 42%, rgba(255, 255, 255, 0.14));
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 24px 64px -20px rgba(0, 0, 0, 0.92);
  opacity: 0;
  transform: translateX(30px);
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
}

#detail.open {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#detail .proj {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 10px 0 4px;
  border-radius: 0;
}

#detail .proj:hover {
  transform: none;
  background: transparent;
  box-shadow: none;
}

#detail .proj h3 {
  font-size: 21px;
}

.d-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.d-close:hover {
  border-color: var(--teal);
  background: rgba(45, 212, 191, 0.12);
}

.d-hint {
  font-size: 11px;
  color: var(--dim);
  margin: 12px 0 0;
}

/* Reveal Animations */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js #hero .l {
  opacity: 0;
  transform: translateY(0.4em);
  animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 760px) {
  #hero::before {
    content: "";
    position: absolute;
    inset: 17vh 10px 12vh;
    border-radius: 24px;
    background: rgba(7, 5, 18, 0.52);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    z-index: 5;
    pointer-events: auto;
  }

  #hero h1 {
    font-size: clamp(44px, 11vw, 68px);
  }

  .nav ul a {
    padding: 7px 8px;
    font-size: 12px;
  }

  .nav ul li:first-child {
    display: none;
  }

  .stop {
    min-height: auto;
    padding-top: 60vh;
    padding-bottom: 16vh;
  }

  .panel {
    position: relative;
    top: auto;
    max-width: none;
    padding: 20px 16px;
  }

  .proj {
    padding: 14px 14px 13px;
  }

  .proj h3 {
    font-size: 16.5px;
  }

  #contact {
    min-height: auto;
    padding-top: 46vh;
    padding-bottom: 20vh;
  }

  #contact .panel {
    top: auto;
  }

  #detail {
    top: auto;
    bottom: 12px;
    right: 12px;
    max-height: 58vh;
    transform: translateY(30px);
  }

  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .sat-label {
    padding: 4px 8px 4px 7px;
    gap: 6px;
  }

  .sat-label .sat-name {
    font-size: 10.5px;
  }

  .sat-label:not(.active):not(.hot) small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .js #hero .l {
    transform: none !important;
    transition: opacity 0.3s;
    animation: none;
    opacity: 1;
  }

  #detail,
  .proj {
    transition: none;
  }
}
