/* ============================================================
   SPACEMAN TECHNOLOGIES — Mission & Vision Section
   ============================================================ */

#mission {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(10, 14, 34, 0.45) 35%, rgba(6, 9, 22, 0.58) 100%);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 -20px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

#mission::before {
  content: '';
  position: absolute;
  top: 15%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.16) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#mission .container {
  position: relative;
  z-index: 1;
}

/* ── SPLIT LAYOUT ────────────────────────────────────────────── */
.mv-split {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: var(--sp-80);
  margin-bottom: var(--sp-80);
  align-items: start;
}

/* ── DIVIDER LINE ────────────────────────────────────────────── */
.mv-divider-line {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--color-lagoon-teal) 30%, var(--color-lagoon-teal) 70%, transparent);
  align-self: stretch;
  transform: scaleY(0);
  transform-origin: top;
  /* Animated with GSAP ScrollTrigger */
}

/* ── MV BLOCK ────────────────────────────────────────────────── */
.mv-block {
  padding: 0 var(--sp-24);
}

.mv-block h3 {
  font-family: var(--font-playfair);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: var(--fw-regular);
  color: var(--color-pure-white);
  line-height: 1.15;
  margin-bottom: var(--sp-24);
}

.mv-block p {
  font-family: var(--font-source);
  font-size: var(--text-body);
  line-height: 1.85;
  color: var(--color-fog);
  text-align: justify;
  text-justify: auto;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: pretty;
  word-spacing: -0.01em;
}

/* Text reveal clip */
.mv-block p .text-reveal {
  display: block;
  overflow: hidden;
}

.mv-block p .text-reveal-inner {
  display: block;
  transform: translateY(100%); /* GSAP animates */
}

/* ── OBJECTIVES ──────────────────────────────────────────────── */
.objectives-title {
  text-align: center;
  margin-bottom: var(--sp-56);
}

.objectives-title h2 {
  font-family: var(--font-playfair);
  font-size: clamp(28px, 3.5vw, var(--text-heading));
  font-weight: var(--fw-regular);
  color: var(--color-pure-white);
  margin-top: var(--sp-8);
}

.objectives-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-24);
}

.obj-card {
  padding: var(--sp-32);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-cards);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

/* Multi-color gradient border on hover (same as service cards) */
.obj-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-cards);
  padding: 1.5px;
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 30%, #a855f7 68%, #ffd166 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.obj-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 25px rgba(0, 240, 255, 0.5),
    0 0 50px rgba(168, 85, 247, 0.35),
    0 0 80px rgba(255, 209, 102, 0.2),
    inset 0 0 20px rgba(0, 240, 255, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.obj-card:hover::after {
  opacity: 1;
}

.obj-number {
  display: none !important;
}

.obj-card h4 {
  font-family: var(--font-source);
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--color-pure-white);
  margin-bottom: var(--sp-12);
  position: relative;
}

.obj-card p {
  font-family: var(--font-source);
  font-size: var(--text-caption);
  line-height: 1.7;
  color: var(--color-fog);
  position: relative;
  text-align: justify;
  text-justify: auto;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: pretty;
  word-spacing: -0.01em;
}

.obj-card-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-lagoon-teal), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.obj-card:hover .obj-card-accent {
  transform: scaleX(1);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .mv-split {
    grid-template-columns: 1fr;
    gap: var(--sp-40);
  }
  .mv-divider-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-lagoon-teal), transparent);
  }
  .objectives-grid { grid-template-columns: 1fr; }
  .mv-block { padding: 0; }
}

@media (max-width: 580px) {
  .mv-block h3 { font-size: 26px; margin-bottom: 16px; }
  .mv-block p { font-size: 15px; }
  .obj-card { padding: 24px 20px; }
  .obj-card h4 { font-size: 16px; }
}
