/* ============ HERO ============ */
.hero {
  padding: 40px 0 60px;
  position: relative;
  min-height: 640px;
}

.hero-scene {
  position: absolute;
  top: 0;
  right: -40px;
  width: 420px;
  height: 420px;
  z-index: 0;
  pointer-events: none;
}

.hero-stars {
  position: absolute;
  inset: -60px -100px 20px -100px;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-scene { width: 340px; height: 340px; right: -40px; }
  .orbiting-cubesat { width: 320px; height: 320px; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; padding-bottom: 20px; }
  .hero-scene {
    position: relative;
    top: auto; right: auto;
    width: 240px;
    height: 240px;
    margin: 0 auto 30px;
  }
  .orbiting-cubesat { width: 220px; height: 220px; }
  .profile-core { width: 130px; height: 130px; }
}

/* Orbital ring */
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 380px;
  height: 380px;
  transform: translate(-50%, -50%);
  animation: spin 60s linear infinite;
}
.orbit-ring-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -50%);
  animation: spin 40s linear infinite reverse;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.orbit-path {
  fill: none;
  stroke: var(--border-bright);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  opacity: 0.5;
}
.orbit-dot {
  fill: var(--accent);
  filter: drop-shadow(0 0 4px var(--accent));
}

/* Cubesat */
.cubesat-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) rotate(-6deg); }
  50% { transform: translate(-50%, -55%) rotate(6deg); }
}

/* Hero text */
.hero-headline-wrap { position: relative; z-index: 2; }

.prompt-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text-dim);
  font-size: 12px;
  margin-bottom: 14px;
  font-weight: 400;
}
.prompt-sigil { color: var(--accent); font-weight: 500; }
.prompt-line .cmd { color: var(--text-dim); }
.prompt-line .comment { color: var(--text-muted); }

.hero-name {
  font-family: var(--serif);
  font-size: clamp(46px, 9vw, 96px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  color: var(--text);
  position: relative;
}
.hero-name em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
  position: relative;
}
.hero-name em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-grow 1.4s ease 1.2s forwards;
}
@keyframes underline-grow { to { transform: scaleX(1); } }

.hero-handle {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 48px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-handle span { display: inline-flex; align-items: center; }
.hero-handle span::before {
  content: '~/';
  color: var(--text-faint);
  margin-right: 1px;
}
.hero-tagline {
  font-size: 16px;
  max-width: 640px;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.8;
  min-height: 6em;
}
.hero-tagline strong { color: var(--text); font-weight: 500; }

.cursor {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 4px;
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
  position: relative;
  z-index: 2;
}
.hero-meta span { display: flex; gap: 6px; align-items: center; }
.hero-meta b {
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}
.hero-meta .live-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s ease-in-out infinite;
  margin-right: 2px;
}

/* ============ PROFILE ============ */
.profile-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.profile-frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--accent-dim);
  box-shadow:
    0 0 0 4px var(--bg),
    0 0 0 5px var(--border),
    0 0 40px rgba(224, 167, 117, 0.25);
  animation: profile-breath 6s ease-in-out infinite;
}
@keyframes profile-breath {
  0%, 100% { box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--border), 0 0 40px rgba(224, 167, 117, 0.2); }
  50% { box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--accent-dim), 0 0 55px rgba(224, 167, 117, 0.35); }
}
.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02) brightness(0.96);
  transition: filter 0.6s;
}
.profile-frame:hover img { filter: saturate(1.05) contrast(1.05) brightness(1); }

/* Targeting reticle */
.profile-reticle {
  position: absolute;
  inset: -14px;
  pointer-events: none;
  animation: reticle-spin 30s linear infinite;
}
@keyframes reticle-spin { to { transform: rotate(360deg); } }
.profile-reticle::before,
.profile-reticle::after {
  content: '';
  position: absolute;
  border: 1px solid var(--accent);
  opacity: 0.6;
}
.profile-reticle::before {
  top: 0; left: 50%;
  width: 12px; height: 12px;
  transform: translate(-50%, -50%);
  border-right: none;
  border-bottom: none;
}
.profile-reticle::after {
  bottom: 0; right: 50%;
  width: 12px; height: 12px;
  transform: translate(50%, 50%);
  border-left: none;
  border-top: none;
}

/* Small orbiting cubesat on the outer ring */
.orbiting-cubesat {
  position: absolute;
  top: 50%; left: 50%;
  width: 380px; height: 380px;
  transform: translate(-50%, -50%);
  animation: spin 24s linear infinite;
  pointer-events: none;
}
.orbiting-cubesat .mini-sat {
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
}

@media (max-width: 640px) {
  .profile-core { width: 130px; height: 130px; }
  .orbiting-cubesat { width: 260px; height: 260px; }
}

/* Cubesat SVG classes */
.cubesat-svg { overflow: visible; }
.cubesat-body { fill: #1f1f26; stroke: var(--accent-dim); stroke-width: 1; }
.cubesat-panel { fill: #1a2530; stroke: var(--teal); stroke-width: 0.8; }
.cubesat-cell-line { stroke: #2a3948; stroke-width: 0.5; }
.cubesat-accent { fill: var(--accent); }
.cubesat-glow { fill: var(--accent); filter: url(#glow); }
