/* Technical capability constellation. */

.tech {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-925));
  overflow: hidden;
}

.tech__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.tech__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 40px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.tech__stats div {
  padding: 18px;
  background: var(--navy-900);
}

.tech__stats b {
  display: block;
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--lime);
}

.tech__stats span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  display: block;
  margin-top: 4px;
}

.constellation {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1;
  justify-self: center;
}

.constellation__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.constellation__lines line {
  stroke: var(--line-2);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.constellation__lines line.flow {
  stroke: var(--lime);
  stroke-dasharray: 3 14;
  opacity: 0.7;
  animation: dash 2.4s linear infinite;
}

.constellation__lines circle.orbit {
  fill: none;
  stroke: var(--line);
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 2 8;
}

.constellation__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(215, 243, 0, 0.14), var(--navy-850) 70%);
  border: 1px solid var(--lime-30);
  box-shadow:
    0 0 0 14px rgba(215, 243, 0, 0.03),
    0 0 0 30px rgba(215, 243, 0, 0.02),
    0 0 60px rgba(215, 243, 0, 0.15);
}

.constellation__core::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed var(--lime-30);
  animation: spin 30s linear infinite;
}

.constellation__core img {
  width: 56%;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(215, 243, 0, 0.4));
}

.cnode {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 10px;
  border-radius: 100px;
  background: rgba(7, 28, 69, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.4s var(--ease),
    box-shadow 0.3s;
}

.cnode svg {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: var(--lime-08);
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  box-sizing: content-box;
}

.cnode:hover,
.cnode.is-lit {
  border-color: var(--lime);
  background: rgba(13, 38, 89, 0.95);
  box-shadow: 0 0 24px -4px rgba(215, 243, 0, 0.45);
  transform: translate(-50%, -50%) scale(1.06);
}

@media (max-width: 960px) {
  .tech__inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 680px) {
  .constellation {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .constellation__lines,
  .constellation__core {
    display: none;
  }
  .cnode {
    position: static;
    transform: none;
    padding: 12px 14px 12px 10px;
    border-radius: 14px;
  }
  .cnode:hover,
  .cnode.is-lit {
    transform: none;
  }
  .tech__stats {
    grid-template-columns: 1fr;
  }
}
