/* Cosmos — astrophysics / space engineering, light theme (variant 1 palette) */

body.cosmos-variant .grid-bg {
  background-image:
    radial-gradient(1px 1px at 10% 15%, var(--gray-300) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 35%, var(--gray-300) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 12%, var(--orange) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 45%, var(--gray-300) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 22%, var(--gray-300) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 38%, var(--orange) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 65%, var(--gray-300) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 78%, var(--gray-300) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 58%, var(--gray-300) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 70% 72%, var(--orange) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 85%, var(--gray-300) 0%, transparent 100%),
    linear-gradient(var(--gray-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-100) 1px, transparent 1px);
  background-size:
    100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%,
    100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%,
    100% 100%, 48px 48px, 48px 48px;
}

body.cosmos-variant .logo-mark {
  font-size: 1rem;
}

/* Solar system hero */
.cosmos-svg {
  width: min(380px, 90%);
  height: auto;
}

.cosmos-orbit {
  fill: none;
  stroke: var(--gray-300);
  stroke-width: 1;
  stroke-dasharray: 3 7;
  transform-origin: 200px 200px;
}

.cosmos-orbit-1 { animation: cosmos-spin 40s linear infinite; }
.cosmos-orbit-2 { animation: cosmos-spin 25s linear infinite reverse; stroke: var(--orange); stroke-opacity: 0.35; }
.cosmos-orbit-3 { animation: cosmos-spin 55s linear infinite; }

.cosmos-star {
  fill: var(--orange);
  filter: drop-shadow(0 0 16px var(--orange-glow));
}

.cosmos-planet {
  fill: var(--black);
}

.cosmos-planet-sm {
  fill: var(--gray-500);
}

.cosmos-satellite {
  fill: var(--orange);
}

.cosmos-sat-body {
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.5;
}

@keyframes cosmos-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Telemetry strip (no formulas) */
.telemetry-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.telemetry-chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gray-500);
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.telemetry-chip .status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: tel-blink 2s ease infinite;
}

@keyframes tel-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.telemetry-chip strong {
  color: var(--black);
  font-weight: 500;
}

/* Mission pipeline icons */
.pipe-icon-sat::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
}

.pipe-step .pipe-icon-sat {
  font-size: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  box-shadow: -8px 0 0 -4px var(--orange), 8px 0 0 -4px var(--orange);
}

/* Constellation chart for Hi-Pet */
.constellation-chart {
  height: 80px;
  background: var(--gray-50);
  border-radius: 8px;
  border: 1px solid var(--gray-100);
  overflow: hidden;
  position: relative;
}

.constellation-chart svg {
  width: 100%;
  height: 100%;
}

.const-star {
  fill: var(--orange);
}

.const-star-dim {
  fill: var(--gray-300);
}

.const-link {
  stroke: var(--gray-300);
  stroke-width: 0.8;
  stroke-dasharray: 2 4;
}

.const-link-hot {
  stroke: var(--orange);
  stroke-opacity: 0.5;
}

/* Orbit accent on featured project */
body.cosmos-variant .project-featured {
  position: relative;
  overflow: hidden;
}

body.cosmos-variant .project-featured::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border: 1px dashed var(--orange);
  border-radius: 50%;
  opacity: 0.25;
  pointer-events: none;
}

body.cosmos-variant .project-featured::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  border: 1px solid var(--gray-300);
  border-radius: 50%;
  opacity: 0.4;
  pointer-events: none;
}

/* Wider variant bar for 4 items */
.variant-bar {
  flex-wrap: wrap;
  max-width: 220px;
  justify-content: center;
}
