/* ==========================================================================
   Nebula X — Cinematic Experience Continuation (Scenes 1 → 6 + Inquiry & Footer)
   Palette: Cosmic Navy (#06060d), Deep Purple (#17102c), Cyan (#00f0ff), Violet (#b9a2e9)
   Strictly Zero Experimental Green Palette.
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-cosmic: #06060d;
  --bg-deep: #0b0f19;
  --bg-card: rgba(16, 13, 29, 0.72);
  --border-subtle: rgba(185, 162, 233, 0.18);
  --border-focus: #00f0ff;
  --cyan: #00f0ff;
  --cyan-bright: #69d6e8;
  --violet: #b9a2e9;
  --purple: #7c3aed;
  --sky: #38bdf8;
  --text-main: #f0eff8;
  --text-muted: #a39ab6;
  --text-dim: #716b86;
  --font-mono: "SF Mono", Monaco, Consolas, monospace;
  --split: 50%;
}

html {
  background: var(--bg-cosmic);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg-cosmic);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.skip {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 100;
  background: #ffffff;
  color: #06060d;
  padding: 12px 18px;
  font-weight: 600;
  border-radius: 4px;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Header & Commercial Navigation
   -------------------------------------------------------------------------- */
header {
  height: 90px;
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 4.5%;
  background: linear-gradient(180deg, rgba(6, 6, 13, 0.94) 0%, rgba(6, 6, 13, 0.5) 75%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  margin-right: auto;
  display: flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 170px;
  height: 55px;
  object-fit: contain;
  transition: opacity 0.2s;
}
.brand:hover img { opacity: 0.9; }

nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav a {
  font-size: 13px;
  font-weight: 500;
  color: #b9b7c8;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: color 0.2s;
  padding: 6px 0;
}
nav a:hover { color: #ffffff; }

.header-cta {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 11px 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  transition: all 0.2s;
  white-space: nowrap;
}
.header-cta span { margin-left: 10px; color: var(--cyan); transition: transform 0.2s; display: inline-block; }
.header-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.4);
}
.header-cta:hover span { transform: translate(2px, -2px); }

.menu { display: none; }

/* --------------------------------------------------------------------------
   Stage & Journey Foundations (900svh for generous HOLD & scene interaction)
   -------------------------------------------------------------------------- */
.journey {
  height: 900vh;
  height: 900svh;
  position: relative;
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: radial-gradient(ellipse at 74% 48%, #17102c 0%, rgba(23, 16, 44, 0.45) 38%, transparent 68%), #06060d;
}

canvas#universe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 38%, rgba(6, 6, 13, 0.5) 80%, #06060d 100%),
              linear-gradient(0deg, #06060d 0%, transparent 16%, transparent 86%, rgba(6, 6, 13, 0.75) 100%);
  z-index: 2;
}

/* --------------------------------------------------------------------------
   Common Component Elements
   -------------------------------------------------------------------------- */
.eyebrow {
  font: 11px/1 var(--font-mono);
  letter-spacing: 2.2px;
  color: #c0bbd1;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

.eyebrow i {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan);
}

em {
  font-style: normal;
  background: linear-gradient(110deg, #eeeafa 0%, var(--violet) 45%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.telemetry-pin {
  position: absolute;
  left: -5px;
  top: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan), 0 0 24px rgba(0, 240, 255, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  pointer-events: none;
}
.telemetry-pin[data-node="1"] { background: var(--violet); box-shadow: 0 0 14px var(--violet); }
.telemetry-pin[data-node="2"] { background: var(--purple); box-shadow: 0 0 14px var(--purple); }
.telemetry-pin[data-node="3"] { background: var(--sky); box-shadow: 0 0 14px var(--sky); }

/* --------------------------------------------------------------------------
   Scene 1: Origin (Hero)
   -------------------------------------------------------------------------- */
.hero {
  position: absolute;
  left: 7.5%;
  top: 22%;
  width: 48%;
  max-width: 640px;
  z-index: 10;
  transition: opacity 0.1s linear, transform 0.1s linear;
  will-change: opacity, transform;
}

.hero h1 {
  font-size: clamp(48px, 5.2vw, 84px);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -2.5px;
  margin: 0 0 24px;
  color: #ffffff;
}

.hero .intro {
  font-size: 15px;
  line-height: 1.8;
  color: #a3a0b5;
  margin: 0;
  max-width: 470px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 36px;
}

.primary {
  font-size: 13px;
  font-weight: 600;
  background: #eeeafa;
  color: #0b0f19;
  padding: 15px 24px;
  border-radius: 6px;
  box-shadow: 0 0 28px rgba(185, 162, 233, 0.25);
  transition: all 0.2s;
  white-space: nowrap;
}
.primary span { margin-left: 14px; color: var(--purple); font-weight: 700; }
.primary:hover {
  background: #ffffff;
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.35);
  transform: translateY(-1px);
}

.explore {
  font-size: 13px;
  font-weight: 500;
  color: #b9b7c8;
  padding: 12px 16px;
  transition: color 0.2s;
}
.explore span { margin-left: 8px; color: var(--cyan); }
.explore:hover { color: #ffffff; }

.hero-note {
  font: 9px/1 var(--font-mono);
  letter-spacing: 1.8px;
  color: var(--text-dim);
  margin-top: 42px;
}

.orbital-caption {
  position: absolute;
  left: 70%;
  top: 72%;
  padding-left: 16px;
  border-left: 1px solid rgba(185, 162, 233, 0.35);
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.1s linear;
}

.orbital-caption > span {
  font: 10px/1 var(--font-mono);
  letter-spacing: 2px;
  color: var(--cyan);
  display: block;
  margin-bottom: 6px;
}

.orbital-caption p {
  font-size: 15px;
  line-height: 1.45;
  color: #d6d0e3;
  margin: 0 0 8px;
}

.orbital-caption small {
  font: 8px/1 var(--font-mono);
  letter-spacing: 1.2px;
  color: var(--text-dim);
  text-transform: uppercase;
  display: block;
}

/* --------------------------------------------------------------------------
   Scene 2: Architecture (Four Connected Worlds)
   -------------------------------------------------------------------------- */
.worlds {
  position: absolute;
  inset: 78px 6% 36px;
  opacity: 0;
  visibility: hidden;
  z-index: 12;
  transition: opacity 0.15s linear;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.worlds.active { pointer-events: auto; }

.world-heading {
  width: 36%;
  max-width: 420px;
}

.world-heading h2 {
  font-size: clamp(34px, 3.6vw, 54px);
  font-weight: 400;
  letter-spacing: -1.8px;
  line-height: 1.08;
  margin: 0 0 16px;
  color: #ffffff;
}

.world-heading p:last-child {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.service-grid {
  width: 58%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 32px;
}

.service {
  position: relative;
  padding: 20px 0 14px 22px;
  border-left: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
  border-radius: 0 8px 8px 0;
  transition: all 0.25s;
  display: block;
}
.service:hover {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--cyan);
  transform: translateX(4px);
}

.division {
  font: 9px/1 var(--font-mono);
  letter-spacing: 1.5px;
  color: var(--cyan);
  display: block;
}

.service h3 {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.4px;
  margin: 12px 0 8px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.service h3 b {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dim);
  transition: color 0.2s, transform 0.2s;
}
.service:hover h3 b {
  color: var(--cyan);
  transform: translate(2px, -2px);
}

.service p {
  font-size: 13px;
  color: #c8c1d7;
  line-height: 1.55;
  margin: 0 0 6px;
}

.service small {
  font-size: 11px;
  color: #928aab;
  display: block;
  line-height: 1.6;
}

.detail {
  display: block;
  font-size: 11px;
  color: var(--violet);
  margin-top: 14px;
  font-weight: 500;
}
.detail sup {
  font: 7px/1 var(--font-mono);
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin-left: 6px;
}

/* --------------------------------------------------------------------------
   Scene 3: Creation (Verifiable Case Studies)
   -------------------------------------------------------------------------- */
.creation {
  position: absolute;
  inset: 72px 5% 32px;
  opacity: 0;
  visibility: hidden;
  z-index: 15;
  transition: opacity 0.15s linear;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.creation.active { pointer-events: auto; }

.creation-heading { margin-bottom: 14px; }

.creation-heading h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 400;
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin: 0 0 10px;
  color: #ffffff;
}

.creation-heading p:last-child {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 580px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  flex: 1;
}

.project-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.project-card:hover {
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 15px 40px rgba(0, 240, 255, 0.1);
  transform: translateY(-3px);
}

.project-card .telemetry-pin {
  left: 12px;
  top: 12px;
  z-index: 5;
}

.card-media {
  position: relative;
  height: 135px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-deep);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
  filter: saturate(0.9) brightness(0.95);
}
.project-card:hover .card-media img {
  transform: scale(1.04);
  filter: saturate(1.05) brightness(1);
}

.status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font: 8px/1 var(--font-mono);
  letter-spacing: 1px;
  padding: 4px 7px;
  border-radius: 3px;
  font-weight: 600;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.status-badge.live {
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.35);
}
.status-badge.client {
  background: rgba(185, 162, 233, 0.15);
  color: var(--violet);
  border: 1px solid rgba(185, 162, 233, 0.35);
}
.status-badge.demo {
  background: rgba(56, 189, 248, 0.15);
  color: var(--sky);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.classification {
  font: 8px/1 var(--font-mono);
  letter-spacing: 1px;
  color: var(--cyan);
}

.discipline {
  font: 8px/1 var(--font-mono);
  letter-spacing: 0.8px;
  color: var(--text-dim);
}

.project-card h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
  color: #ffffff;
}

.project-card p {
  font-size: 12px;
  line-height: 1.55;
  color: #b9b7c8;
  margin: 0 0 14px;
  flex: 1;
}

.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.card-specs span {
  font: 8px/1 var(--font-mono);
  letter-spacing: 0.5px;
  color: #928aab;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 6px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Scene 4: Engineering Precision (Figma to Production)
   -------------------------------------------------------------------------- */
.precision {
  position: absolute;
  inset: 68px 4% 28px;
  opacity: 0;
  visibility: hidden;
  z-index: 18;
  transition: opacity 0.15s linear;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.precision.active { pointer-events: auto; }

.precision-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 16px;
  flex-shrink: 0;
}

.precision-title-wrap h2 {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0 0 2px;
  color: #ffffff;
}

.precision-title-wrap p {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0;
  line-height: 1.35;
}

.compare-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.compare-badge {
  font: 8px/1 var(--font-mono);
  letter-spacing: 1px;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.preset-buttons {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
}

.preset-btn {
  font: 10px/1 var(--font-mono);
  letter-spacing: 0.5px;
  padding: 6px 11px;
  color: var(--text-muted);
  transition: all 0.2s;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.preset-btn:hover { color: #ffffff; }
.preset-btn.active {
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
}

.comparison-window {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #090812;
  border: 1px solid rgba(185, 162, 233, 0.28);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(124, 58, 237, 0.12);
  touch-action: pan-y;
}

.comparison-window .telemetry-pin[data-node="0"] { left: 14px; top: 14px; z-index: 15; }
.comparison-window .telemetry-pin[data-node="1"] { right: 14px; left: auto; top: 14px; z-index: 15; }

.pane {
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
}

/* Left Pane: Rendered Design (Masked by width; inner container maintains 100% width) */
.pane-design {
  left: 0;
  width: var(--split, 50%);
  z-index: 2;
  background: #f8f7f2;
  border-right: 1px solid rgba(0, 240, 255, 0.45);
  pointer-events: none;
}

.pane-design-inner {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--window-width, 100%);
  display: flex;
  flex-direction: column;
  background: #f8f7f2;
}

/* Right Pane: Production Code */
.pane-code {
  left: var(--split, 50%);
  right: 0;
  z-index: 1;
  background: #090812;
  display: flex;
  flex-direction: column;
}

.pane-header {
  height: 36px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.pane-design .pane-header {
  background: #eae8dd;
  border-bottom: 1px solid rgba(28, 38, 33, 0.12);
  justify-content: space-between;
}

.pane-code .pane-header {
  background: #0e0c1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  justify-content: space-between;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.window-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.window-dot.red { background: #ff5f56; }
.window-dot.yellow { background: #ffbd2e; }
.window-dot.green { background: #27c93f; }

.pane-title {
  font: 11px/1 var(--font-mono);
  color: #1c2621;
  letter-spacing: 0.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.design-view-tag {
  font: 7.5px/1 var(--font-mono);
  letter-spacing: 1px;
  color: #bb592f;
  background: rgba(187, 89, 47, 0.12);
  padding: 3px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.code-tabs {
  display: flex;
  gap: 6px;
}

.code-tab {
  font: 10.5px/1 var(--font-mono);
  padding: 5px 9px;
  color: var(--text-dim);
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
  border: 0;
}
.code-tab:hover { color: #ffffff; }
.code-tab.active {
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
}

.file-label {
  font: 10px/1 var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.pane-viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  pointer-events: none;
}

.pane-viewport iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #f8f7f2;
  pointer-events: none;
}

.code-viewport {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding: 12px 16px;
  background: #090812;
}

.code-viewport pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Syntax Highlighting Tokens */
.syntax-tag { color: var(--cyan); font-weight: 600; }
.syntax-attr { color: var(--violet); }
.syntax-string { color: #a5f3fc; }
.syntax-comment { color: var(--text-dim); font-style: italic; }

.divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 44px;
  margin-left: -22px;
  z-index: 10;
  cursor: col-resize;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--purple) 50%, var(--cyan) 100%);
  box-shadow: 0 0 12px var(--cyan);
}

.divider-handle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0b0f19;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  z-index: 11;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.divider:hover .divider-handle, .divider:focus-visible .divider-handle {
  transform: scale(1.15);
  box-shadow: 0 0 24px var(--cyan);
}

.handle-arrow {
  font-size: 8px;
  color: var(--cyan);
}
.handle-grip {
  font-size: 9px;
  letter-spacing: -1px;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Scene 5: Nebula Intelligence (Intelligent Systems & Automation)
   -------------------------------------------------------------------------- */
.intelligence {
  position: absolute;
  inset: 68px 5% 28px;
  opacity: 0;
  visibility: hidden;
  z-index: 20;
  transition: opacity 0.15s linear;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.intelligence.active { pointer-events: auto; }

.intelligence-heading { margin-bottom: 12px; }

.intelligence-heading h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400;
  letter-spacing: -1.4px;
  line-height: 1.08;
  margin: 0 0 8px;
  color: #ffffff;
}

.intelligence-heading p:last-child {
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 620px;
}

.pipeline-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.pipeline-stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.pipeline-stage {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  cursor: pointer;
}
.pipeline-stage:hover, .pipeline-stage.active {
  border-color: var(--cyan);
  background: rgba(16, 13, 29, 0.95);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.12);
  transform: translateY(-2px);
}

.pipeline-stage .telemetry-pin {
  left: 10px;
  top: 10px;
}

.stage-num {
  font: 8px/1 var(--font-mono);
  letter-spacing: 1.5px;
  color: var(--cyan);
  margin-bottom: 8px;
  display: block;
}

.pipeline-stage h4 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.3px;
  margin: 0 0 6px;
  color: #ffffff;
}

.pipeline-stage p {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 12px;
  flex: 1;
}

.stage-tag {
  font: 7.5px/1 var(--font-mono);
  letter-spacing: 0.8px;
  color: var(--violet);
  background: rgba(185, 162, 233, 0.08);
  padding: 4px 6px;
  border-radius: 3px;
  align-self: flex-start;
}

.intelligence-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.benefit-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.benefit-icon {
  color: var(--cyan);
  font-size: 10px;
}

.benefit-card h5 {
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
}

.benefit-card p {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Scene 6: Nebula Launch (Commercial Offerings & Packages)
   -------------------------------------------------------------------------- */
.launch {
  position: absolute;
  inset: 68px 5% 28px;
  opacity: 0;
  visibility: hidden;
  z-index: 22;
  transition: opacity 0.15s linear;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.launch.active { pointer-events: auto; }

.launch-heading { margin-bottom: 12px; }

.launch-heading h2 {
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 400;
  letter-spacing: -1.2px;
  line-height: 1.08;
  margin: 0 0 6px;
  color: #ffffff;
}

.launch-heading p:last-child {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 600px;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 12px;
}

.package-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
}
.package-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 12px 35px rgba(0, 240, 255, 0.08);
  transform: translateY(-2px);
}
.package-card.featured {
  border-color: rgba(0, 240, 255, 0.5);
  background: rgba(18, 14, 34, 0.9);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.15);
}

.featured-badge {
  position: absolute;
  top: -10px;
  right: 18px;
  font: 8px/1 var(--font-mono);
  letter-spacing: 1px;
  background: var(--cyan);
  color: #06060d;
  padding: 4px 8px;
  border-radius: 3px;
  font-weight: 700;
}

.package-division {
  font: 8.5px/1 var(--font-mono);
  letter-spacing: 1.5px;
  color: var(--cyan);
  margin-bottom: 8px;
  display: block;
}

.package-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.package-price .currency {
  font-size: 18px;
  color: var(--text-muted);
}
.package-price .amount {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -1px;
  color: #ffffff;
}
.provisional-tag {
  font: 7px/1 var(--font-mono);
  letter-spacing: 0.8px;
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 4px;
  border-radius: 3px;
  margin-left: 6px;
}

.package-card h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.3px;
  margin: 0 0 6px;
  color: #ffffff;
}

.package-card p {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.package-features li {
  font-size: 11px;
  color: #c8c1d7;
  display: flex;
  align-items: center;
  gap: 8px;
}
.package-features li:before {
  content: "✓";
  color: var(--cyan);
  font-weight: 700;
  font-size: 11px;
}

.package-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s;
}
.package-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan);
}
.package-cta.primary {
  background: #eeeafa;
  color: #0b0f19;
  border-color: #eeeafa;
}
.package-cta.primary:hover {
  background: #ffffff;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.35);
}

.custom-pathway-card {
  background: rgba(16, 13, 29, 0.5);
  border: 1px solid rgba(185, 162, 233, 0.2);
  border-radius: 8px;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.custom-eyebrow {
  font: 7.5px/1 var(--font-mono);
  letter-spacing: 1.5px;
  color: var(--violet);
  display: block;
  margin-bottom: 2px;
}

.custom-content h3 {
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 2px;
  color: #ffffff;
}

.custom-content p {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 0;
  max-width: 650px;
}

.custom-cta {
  font-size: 11.5px;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(185, 162, 233, 0.4);
  color: #ffffff;
  white-space: nowrap;
  display: inline-block;
  transition: all 0.2s;
}
.custom-cta:hover {
  background: rgba(124, 58, 237, 0.45);
  border-color: var(--cyan);
}

/* --------------------------------------------------------------------------
   Stage Footer & HUD Telemetry
   -------------------------------------------------------------------------- */
.stage-footer {
  position: absolute;
  bottom: 24px;
  left: 4.5%;
  right: 4.5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 9px/1 var(--font-mono);
  letter-spacing: 1.8px;
  color: #817b94;
  z-index: 30;
}

.scene-indicator {
  color: var(--cyan);
  font-weight: 600;
}

.scroll-cue {
  color: #bfb5d6;
  transition: opacity 0.2s;
}
.scroll-cue span { margin-left: 10px; color: var(--cyan); }

.stage-footer button {
  color: #a39ab6;
  letter-spacing: 1.2px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  transition: all 0.2s;
}
.stage-footer button span { margin-left: 8px; color: var(--cyan); }
.stage-footer button:hover {
  color: #ffffff;
  border-color: rgba(0, 240, 255, 0.3);
}

.progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 35;
}

.progress i {
  display: block;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--purple) 0%, var(--violet) 50%, var(--cyan) 100%);
  box-shadow: 0 0 8px var(--cyan);
  transition: width 0.05s linear;
}

/* --------------------------------------------------------------------------
   Final Inquiry Section
   -------------------------------------------------------------------------- */
.inquiry-section {
  position: relative;
  background: #06060d;
  padding: 120px 7.5% 80px;
  border-top: 1px solid rgba(185, 162, 233, 0.15);
  z-index: 40;
}

.inquiry-container {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  max-width: 1240px;
  margin: 0 auto;
}

.inquiry-intro h2 {
  font-size: clamp(38px, 4.2vw, 62px);
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1.05;
  margin: 0 0 20px;
  color: #ffffff;
}

.inquiry-intro p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 36px;
}

.inquiry-notes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.note-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #c8c1d7;
}

.note-bullet {
  color: var(--cyan);
  font-size: 12px;
}

.inquiry-card {
  background: rgba(16, 13, 29, 0.7);
  border: 1px solid rgba(185, 162, 233, 0.22);
  border-radius: 10px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  font: 11px/1 var(--font-mono);
  letter-spacing: 1px;
  color: #c0bbd1;
  text-transform: uppercase;
}

input, select, textarea {
  background: rgba(6, 6, 13, 0.85);
  border: 1px solid rgba(185, 162, 233, 0.25);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  color: #ffffff;
  font-family: inherit;
  transition: all 0.2s;
}
input:hover, select:hover, textarea:hover {
  border-color: rgba(0, 240, 255, 0.4);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}

textarea { resize: vertical; min-height: 90px; }

.form-feedback {
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 1.5;
  display: none;
}
.form-feedback.success {
  display: block;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 12px 16px;
  border-radius: 6px;
}
.form-feedback.error {
  display: block;
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.3);
  padding: 12px 16px;
  border-radius: 6px;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.submit-btn {
  font-size: 13px;
  font-weight: 600;
  background: #eeeafa;
  color: #0b0f19;
  padding: 15px 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.2s;
}
.submit-btn:hover {
  background: #ffffff;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
  transform: translateY(-1px);
}
.submit-btn b { color: var(--purple); font-size: 15px; }

.form-disclaimer {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Commercial Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #030308;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 80px 7.5% 40px;
  position: relative;
  z-index: 45;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto 50px;
}

.footer-logo img {
  display: block;
  width: 160px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-copyright {
  font: 10px/1 var(--font-mono);
  color: var(--text-dim);
}

.footer-nav-col h6 {
  font: 9.5px/1 var(--font-mono);
  letter-spacing: 1.5px;
  color: var(--cyan);
  margin: 0 0 16px;
}

.footer-nav-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-col a {
  font-size: 12.5px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-nav-col a:hover { color: #ffffff; }

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  nav { gap: 14px; }
  header { gap: 16px; padding-inline: 4%; }
  .hero { left: 6%; width: 52%; }
  .worlds { inset-inline: 6%; }
  .creation { inset-inline: 4%; }
  .precision { inset-inline: 4%; }
  .intelligence { inset-inline: 4%; }
  .launch { inset-inline: 4%; }
  .project-grid { gap: 16px; }
  .pipeline-stages { grid-template-columns: repeat(3, 1fr); }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .hero { width: 70%; }
  .world-heading { width: 100%; margin-bottom: 20px; }
  .worlds { flex-direction: column; overflow-y: auto; }
  .service-grid { width: 100%; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .packages-grid { grid-template-columns: 1fr; }
  .custom-pathway-card { flex-direction: column; align-items: flex-start; }
  .inquiry-container { grid-template-columns: 1fr; gap: 40px; }
  .intelligence-benefits { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  header {
    height: 72px;
    padding: 0 5%;
    gap: 16px;
  }
  .brand img {
    width: 135px;
    height: 44px;
  }
  .header-cta { display: none; }
  .menu {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    font-size: 11px;
    border-radius: 4px;
  }
  .menu span { margin-left: 8px; color: var(--cyan); }

  nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 4%;
    right: 4%;
    padding: 20px;
    background: rgba(16, 13, 29, 0.98);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  nav.open { display: flex; }
  nav a { padding: 12px; font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

  .hero {
    left: 6%;
    top: 15%;
    width: 88%;
  }
  .hero h1 {
    font-size: clamp(38px, 9vw, 56px);
    letter-spacing: -1.5px;
    line-height: 1.05;
  }
  .hero .intro { font-size: 13px; line-height: 1.7; }
  .actions { margin-top: 24px; gap: 16px; }
  .primary { padding: 12px 18px; font-size: 12px; }
  .hero-note { display: none; }

  .orbital-caption {
    left: 6%;
    top: auto;
    bottom: 60px;
    border-left: 2px solid var(--cyan);
    padding-left: 12px;
  }
  .orbital-caption p { font-size: 12px; }

  /* Mobile Scene 2 */
  .worlds {
    inset: 80px 4.5% 45px;
    flex-direction: column;
    overflow: hidden;
  }
  .world-heading { width: 100%; margin-bottom: 10px; }
  .world-heading h2 { font-size: 26px; }
  .service-grid {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 10px 8px;
  }
  .service { padding: 10px 0 8px 12px; }
  .service h3 { font-size: 13px; margin: 4px 0 2px; }
  .service h3 b { display: none; }
  .service p { font-size: 10px; }
  .service small { display: none; }
  .detail { font-size: 9px; margin-top: 4px; }

  /* Mobile Scene 3 */
  .creation {
    inset: 80px 4% 45px;
    overflow: hidden;
  }
  .creation-heading h2 { font-size: 24px; }
  .project-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow: hidden;
  }
  .card-media { height: 75px; flex-shrink: 0; }
  .project-card .telemetry-pin { left: 8px; top: 8px; width: 7px; height: 7px; }
  .status-badge { top: 6px; right: 6px; font-size: 6px; padding: 2px 4px; }
  .card-content { padding: 8px 10px; }
  .project-card h3 { font-size: 13px; }
  .project-card p {
    font-size: 9.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card-specs { display: none; }

  /* Mobile Scene 4 */
  .precision { inset: 64px 3.5% 32px; }
  .precision-heading { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 6px; }
  .precision-title-wrap h2 { font-size: 20px; }
  .precision-title-wrap p { display: none; }
  .compare-controls { width: 100%; justify-content: space-between; }
  .preset-btn { font-size: 9.5px; padding: 5px 8px; }
  .compare-badge { display: none; }
  .comparison-window { flex: 1; min-height: 0; }

  /* Mobile Scene 5 */
  .intelligence { inset: 76px 4% 40px; overflow: hidden; }
  .intelligence-heading h2 { font-size: 22px; margin-bottom: 4px; }
  .intelligence-heading p:last-child { font-size: 11px; }
  .pipeline-stages { grid-template-columns: 1fr; gap: 6px; }
  .pipeline-stage { padding: 8px 12px; }
  .pipeline-stage h4 { font-size: 12px; margin: 0 0 2px; }
  .pipeline-stage p { font-size: 9.5px; margin: 0; }
  .intelligence-benefits { display: none; } /* Kept clean and focused on mobile */

  /* Mobile Scene 6 */
  .launch { inset: 76px 4% 40px; overflow: hidden; }
  .launch-heading h2 { font-size: 22px; margin-bottom: 4px; }
  .launch-heading p:last-child { font-size: 11px; }
  .packages-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
  .package-card { padding: 12px 10px; }
  .package-price .amount { font-size: 22px; }
  .package-card h3 { font-size: 12px; }
  .package-card p { display: none; }
  .package-features { display: none; }
  .package-cta { font-size: 10px; padding: 6px 8px; margin-top: 6px; }
  .custom-pathway-card { padding: 10px 12px; gap: 6px; }
  .custom-content h3 { font-size: 12px; }
  .custom-content p { font-size: 10px; }
  .custom-cta { font-size: 10px; padding: 6px 10px; }

  /* Mobile Stage Footer */
  .stage-footer span.scene-indicator { font-size: 8px; }
  .stage-footer .scroll-cue { display: none; }
  .stage-footer button { font-size: 8px; padding: 4px 8px; }

  .form-row { grid-template-columns: 1fr; }
  .inquiry-card { padding: 24px 20px; }
  .footer-container { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Short Viewport Adaptation (Laptops 1366x768, 1024x600, etc.)
   -------------------------------------------------------------------------- */
@media (max-height: 768px) {
  header { height: 60px; }
  .worlds { inset: 60px 4% 20px; }
  .world-heading h2 { font-size: 28px; margin-bottom: 8px; }
  .service-grid { gap: 14px 18px; }
  .creation { inset: 56px 4% 18px; }
  .creation-heading h2 { font-size: 24px; margin-bottom: 4px; }
  .card-media { height: 100px; }
  .precision { inset: 56px 3% 18px; }
  .precision-heading { margin-bottom: 6px; }
  .precision-title-wrap h2 { font-size: 20px; }
  .precision-title-wrap p { font-size: 11px; }
  .pane-header { height: 32px; padding: 0 10px; }
  .intelligence { inset: 56px 4% 18px; }
  .intelligence-heading h2 { font-size: 22px; margin-bottom: 4px; }
  .launch { inset: 56px 4% 18px; }
  .launch-heading h2 { font-size: 22px; margin-bottom: 4px; }
  .package-card { padding: 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.nojs {
  position: fixed;
  z-index: 100;
  bottom: 0;
  inset-inline: 0;
  background: #111;
  color: #fff;
  padding: 16px;
  text-align: center;
}
