.deep-space {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100vw;
  background: #000;
  overflow: hidden;
  z-index: 1;
}

/* ROCKET POSITIONING (Top Half) */
.rocket-core {
  position: absolute;
  top: 40%; /* Anchors rocket above the logo center */
  left: 50%;
  transform: translate(-50%, -60%);
  z-index: 10;
  pointer-events: none;
}

.rocket-svg {
  width: 130px; /* Adjust to match your desired rocket scale */
  height: auto;
  filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.8));
}

.plasma-trail {
  width: 20px;
  height: 100px;
  background: linear-gradient(to bottom, #fff, transparent);
  margin: -10px auto 0;
  filter: blur(15px);
  opacity: 0.5;
}

/* LOGO & SUBTITLE POSITIONING (Bottom Half) */
.titles-container {
  position: absolute;
  bottom: 15%; /* Anchored to bottom, below the rocket */
  left: 50%;
  transform: translateX(-50%);
  width: 85vw;
  max-width: 1000px;
  text-align: center;
  z-index: 5;
}

.main-logo img {
  width: 50%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

.subtitle {
  margin-top: 20px;
  color: #fff;
  font-family: monospace; /* Matches the 'Into the Void' look */
  letter-spacing: 1rem;
  font-size: 0.75rem;
  opacity: 0.7;
  text-transform: uppercase;
}

.star-layer {
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
}

.scroll-spacer {
  height: 250vh;
}
/* --- Brand Flow Wrapper (Adblock-Safe) --- */
.brand-flow-wrapper {
  width: 100% !important;
  max-width: 100vw;
  display: flex !important;
  flex-direction: column;
  gap: 30px;
  margin: 40px 0;
  overflow: hidden !important;
  position: relative;
  z-index: 60;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* --- Container --- */
.brand-flow-container {
  width: 100% !important;
  display: flex !important;
  overflow: hidden !important;
  padding: 15px 0;
  cursor: pointer;
  position: relative;
  min-height: 90px;

  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

/* --- Scrolling Track --- */
.brand-flow-track,
.infinite-scroll {
  display: flex !important;
  flex-direction: row !important;
  gap: 30px !important;
  width: max-content !important;
  will-change: transform;
  animation: flow-scroll-left 35s linear infinite !important;
}

.brand-flow-container:hover .brand-flow-track,
.brand-flow-container:hover .infinite-scroll {
  animation-play-state: paused !important;
}

@keyframes flow-scroll-left {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-33.3333%, 0, 0);
  }
}

/* --- Partner Cards --- */
a.partner-item-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block !important;
  min-width: 300px !important;
  flex-shrink: 0 !important;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

a.partner-item-link:hover {
  transform: translateY(-4px);
}

.partner-card {
  position: relative;
  display: flex !important;
  align-items: center;
  padding: 20px 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  box-sizing: border-box;
}

a.partner-item-link:hover .partner-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

.partner-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.partner-mark {
  width: 44px;
  height: 44px;
  min-width: 44px;
  object-fit: contain;
  filter: grayscale(1) brightness(2);
  opacity: 0.85;
}

.partner-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rank-label {
  font-family: monospace;
  font-size: 0.6rem;
  color: #c594f0;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.partner-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  text-transform: uppercase;
}

.rank-escape {
  border: 1px solid rgba(197, 148, 240, 0.35) !important;
  background: rgba(197, 148, 240, 0.04) !important;
  box-shadow: inset 0 0 15px rgba(197, 148, 240, 0.05);
}

@media (max-width: 768px) {
  .brand-flow-wrapper {
    margin: 20px 0;
  }

  a.partner-item-link {
    min-width: 250px !important;
  }

  .partner-card {
    padding: 16px 24px;
  }

  .partner-mark {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .partner-name {
    font-size: 0.85rem;
  }
}
.command-center {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.glass-module {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px;
  border-radius: 4px; /* Sharp, technical corners */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border 0.3s ease;
}

.glass-module:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.module-header {
  margin-bottom: 30px;
}

.serial-no {
  font-family: monospace;
  font-size: 0.7rem;
  color: #444;
  letter-spacing: 2px;
}

.glass-module h2 {
  font-size: 1.8rem;
  letter-spacing: 8px;
  margin-top: 10px;
  font-weight: 300;
}

.glass-module p {
  color: #888;
  line-height: 1.8;
  font-size: 0.9rem;
  margin-bottom: 40px;
}

/* Button & Form UI */
.launch-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 3px;
  transition: all 0.3s ease;
}

.launch-btn:hover {
  background: #fff;
  color: #000;
}

.glass-form .input-group {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
  transition: border 0.3s;
}

.glass-form .input-group:focus-within {
  border-bottom-color: #fff;
}

.glass-form input {
  background: transparent;
  border: none;
  color: #fff;
  flex: 1;
  padding: 10px 0;
  outline: none;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.glass-form button {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 0.7rem;
  letter-spacing: 2px;
  padding-left: 20px;
  opacity: 0.6;
}

.glass-form button:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .module-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .command-center {
    padding-top: 140px; /* Pushes content down so Navbar doesn't block it */
  }

  .module-grid {
    grid-template-columns: 1fr; /* Ensures cards are full width on mobile */
    gap: 20px;
  }

  .glass-module {
    padding: 30px; /* Less padding on mobile to save space */
  }
}
/* --- Main Content Container --- */
#mission-content {
  position: relative;
  z-index: 50; /* Higher than background but lower than navbar */
  background: #000000;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic height fix for mobile address bars */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 100px 0 0 0;
  overflow-x: hidden;
  pointer-events: none; /* Controlled by script / inline style */
}

/* --- Reveal Logic --- */
.initial-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Force interaction when visible via inline opacity */
#mission-ui[style*="opacity: 1"],
#mission-content[style*="opacity: 1"] {
  pointer-events: auto !important;
}

/* Enable pointer events on child content sections when content is active */
#mission-content[style*="opacity: 1"] .marquee-section,
#mission-content[style*="opacity: 1"] .command-center,
#mission-content[style*="opacity: 1"] .footer-reveal-wrapper {
  pointer-events: auto !important;
}

/* --- UI Container (The Layer Fix) --- */
#mission-ui {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0; /* Shrink container so it doesn't block background layer */
  z-index: 100000;
  overflow: visible;
  pointer-events: none;
  transition:
    transform 0.8s ease,
    opacity 0.8s ease;
}

/* --- Section Branding --- */
.section-tag {
  align-self: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.9rem, 2.5vw, 1.5rem);
  font-weight: 500;
  letter-spacing: clamp(4px, 1.2vw, 10px);
  text-transform: uppercase;
  text-align: center;
  padding: 0 20px;

  /* Metallic Flowing Gradient */
  background: linear-gradient(
    90deg,
    #333333 0%,
    #888888 25%,
    #ffffff 50%,
    #888888 75%,
    #333333 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Smooth Motion Animation */
  animation: metallic-flow 6s linear infinite;

  /* Space to clear the RocketScroll stars */
  margin-top: 100px;
  margin-bottom: 30px;
  position: relative;
  z-index: 60;
  opacity: 0.9;
}

@keyframes metallic-flow {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 300% center;
  }
}

/* --- Hierarchy Marquee Section --- */
.marquee-section {
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Grid Modules (Mission Logs / Fuel / Sponsors) --- */
.command-center {
  align-self: center;
  width: 100%;
  max-width: 1100px;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 20px;
  box-sizing: border-box;
}

/* --- Footer Normalization --- */
.footer-reveal-wrapper {
  width: 100%;
  margin-top: auto;
  padding: 60px 0;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 100;
  box-sizing: border-box;
}

.footer-reveal-wrapper > footer,
.footer-reveal-wrapper > .footer-container {
  width: 90% !important;
  max-width: 1400px !important;
  min-width: unset !important;
}

/* Force specific interactivity for footers */
.mission-footer {
  position: relative;
  z-index: 101 !important;
  pointer-events: auto !important;
}

/* --- Consolidated Mobile Optimizations (max-width: 768px) --- */
@media (max-width: 768px) {
  #mission-content {
    padding-top: 80px;
  }

  #mission-ui {
    padding: 0;
  }

  .section-tag {
    font-size: 0.75rem;
    letter-spacing: 4px;
    margin-top: 60px;
    margin-bottom: 20px;
  }

  .command-center {
    padding: 0 16px;
    margin-bottom: 40px;
  }

  .footer-reveal-wrapper {
    padding: 40px 0;
  }

  .footer-reveal-wrapper > footer,
  .footer-reveal-wrapper > .footer-container {
    width: 95% !important;
  }
}
