/* SPATIAL LAYER — hero stage + editorial scale */

/* Hero becomes a full-width system stage */
section#hero.cyber-hero.hero-stage {
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(0.75rem, 3vw, 1.5rem) clamp(2rem, 5vw, 3.5rem);
  margin: 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% 35%, rgba(0, 255, 231, 0.07), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(255, 0, 234, 0.04), transparent 55%),
    linear-gradient(180deg, rgba(10, 14, 40, 0.35) 0%, transparent 70%);
  border-radius: 0;
  border-top: none;
}

.hero-stage__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.hero-stage__copy {
  text-align: left;
  position: relative;
  z-index: 2;
}

.hero-stage .hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 1.1rem;
  box-shadow:
    0 0 0 1px rgba(0, 255, 231, 0.45),
    0 10px 28px rgba(0, 0, 0, 0.35);
}

.hero-stage .hero-avatar img.avatar-image,
.hero-stage .hero-avatar .avatar-fallback {
  border-radius: 18px;
}

.hero-stage .hero-kicker {
  margin-bottom: 0.65rem;
}

.hero-stage .glitch-text.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  justify-content: flex-start;
  text-align: left;
  min-height: 0;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.hero-stage .hero-title-wrapper {
  justify-content: flex-start;
}

.hero-stage .hero-thesis {
  margin-left: 0;
  margin-right: 0;
  max-width: 28rem;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
}

.hero-stage .credential-badge {
  margin-left: 0;
  margin-right: 0;
}

.hero-stage .hero-bio {
  margin-left: 0;
  margin-right: 0;
  max-width: 32rem;
}

.hero-stage .hero-links {
  justify-content: flex-start;
  margin-top: 1.1rem;
  gap: 0.85rem;
  opacity: 0.85;
}

.hero-stage .hero-actions {
  justify-content: flex-start;
  margin-top: 1.35rem;
}

/* System field (canvas + mobile chips) */
.hero-stage__field {
  position: relative;
  min-height: 340px;
  height: min(52vh, 460px);
  border: 1px solid rgba(0, 255, 231, 0.16);
  border-radius: var(--border-radius);
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 255, 231, 0.05), transparent 55%),
    rgba(6, 8, 22, 0.55);
  box-shadow:
    inset 0 0 60px rgba(0, 255, 231, 0.03),
    0 20px 50px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

#system-field {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.hero-field-chips {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem;
}

.hero-field-chips a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 255, 231, 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  background: rgba(0, 255, 231, 0.05);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-field-chips a:hover,
.hero-field-chips a:focus {
  background: rgba(0, 255, 231, 0.14);
  border-color: var(--neon-cyan);
  color: #fff;
}

/* Kill global Matrix as primary atmosphere */
#bg-canvas {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.scanlines-overlay { opacity: 0.012; }
.noise-overlay { opacity: 0.015; }

/* Editorial section scale */
main {
  max-width: 1140px;
}

.cyber-section {
  padding-top: clamp(2.8rem, 7vw, 4.2rem);
  padding-bottom: clamp(2.8rem, 7vw, 4.2rem);
}

.cyber-section h2.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.04em;
  text-transform: none;
  text-shadow: none;
}

.cyber-section h2.section-title::before {
  font-size: 0.72rem;
  opacity: 0.55;
  letter-spacing: 0.18em;
}

/* Quieter card hover — edge light only */
.product-card:hover,
.software-card:hover,
.news-card.neon:hover,
.signal-panel:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(0, 255, 231, 0.35);
}

.product-card:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32), 0 0 24px rgba(0, 255, 231, 0.12);
}

/* Card reveal (driven by animations.js) */
.reveal-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Sober: hide field canvas, keep chips */
.sober-mode #system-field {
  display: none !important;
}

.sober-mode .hero-stage__field {
  min-height: 0;
  height: auto;
  border: 1px solid #a7d7f9;
  background: #f8f9fa;
  box-shadow: none;
}

.sober-mode .hero-field-chips {
  display: flex !important;
}

.sober-mode .hero-field-chips a {
  color: #0645ad;
  border-color: #a7d7f9;
  background: #fff;
}

.sober-mode section#hero.cyber-hero.hero-stage {
  background: var(--bg-main) !important;
  min-height: 0;
}

@media (max-width: 900px) {
  .hero-stage__layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-stage__copy {
    text-align: center;
  }

  .hero-stage .hero-avatar {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stage .glitch-text.hero-title {
    justify-content: center;
    text-align: center;
  }

  .hero-stage .hero-title-wrapper {
    justify-content: center;
  }

  .hero-stage .hero-thesis,
  .hero-stage .hero-bio {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stage .credential-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stage .hero-links,
  .hero-stage .hero-actions {
    justify-content: center;
  }

  .hero-stage__field {
    min-height: 0;
    height: auto;
  }

  #system-field {
    display: none;
  }

  .hero-field-chips {
    display: flex;
    justify-content: center;
  }

  section#hero.cyber-hero.hero-stage {
    min-height: 0;
  }
}
