/* MM Technology — /project factory map */

.pj-hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(37, 99, 235, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(15, 23, 42, 0.9), transparent 50%),
    linear-gradient(180deg, #0b1220 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.pj-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 90%);
  pointer-events: none;
  animation: pj-grid-drift 28s linear infinite;
}

@keyframes pj-grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}

.pj-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.pj-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.pj-brand:hover {
  color: #fff;
}

.pj-brand img {
  width: 36px;
  height: 36px;
}

.pj-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
}

.pj-hero .lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 36rem;
}

.pj-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pj-note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #64748b;
}

/* Pipeline overview strip */
.pj-rail {
  padding: 1.25rem 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pj-rail-track {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: max-content;
  padding-block: 0.25rem;
}

.pj-rail-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.pj-rail-item:hover {
  color: #fff;
}

.pj-rail-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.6875rem;
  color: #fff;
}

.pj-rail-arrow {
  width: 1.75rem;
  height: 1px;
  margin-inline: 0.5rem;
  background: var(--border);
  flex-shrink: 0;
}

/* Stage blocks */
.pj-stage {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.pj-stage:nth-child(even) {
  background: rgba(17, 24, 39, 0.55);
}

.pj-stage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.pj-stage-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.pj-stage-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius);
}

.pj-stage h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  letter-spacing: -0.02em;
}

.pj-stage-desc {
  margin: 0.5rem 0 0;
  max-width: 40rem;
  color: var(--muted);
}

.pj-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.pj-status-live {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

.pj-status-building {
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.35);
}

.pj-status-planned {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.25);
}

.pj-steps {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pj-step;
}

.pj-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: translateY(12px);
  animation: pj-rise 0.55s ease forwards;
}

.pj-step:nth-child(1) { animation-delay: 0.05s; }
.pj-step:nth-child(2) { animation-delay: 0.12s; }
.pj-step:nth-child(3) { animation-delay: 0.19s; }
.pj-step:nth-child(4) { animation-delay: 0.26s; }
.pj-step:nth-child(5) { animation-delay: 0.33s; }

@keyframes pj-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pj-step-marker {
  counter-increment: pj-step;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  background: var(--bg-elevated);
  color: var(--accent-hover);
  font-size: 0.75rem;
  font-weight: 700;
}

.pj-step-marker::before {
  content: counter(pj-step);
}

.pj-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #fff;
}

.pj-step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.pj-nest {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pj-chip {
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pj-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.pj-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pj-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
}

.pj-dot-live { background: #10b981; }
.pj-dot-building { background: #3b82f6; }
.pj-dot-planned { background: #64748b; }

.pj-roadmap {
  padding: 4.5rem 0;
}

.pj-roadmap-grid {
  display: grid;
  gap: 1rem;
}

.pj-roadmap-item {
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-elevated);
}

.pj-roadmap-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  color: #fff;
}

.pj-roadmap-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .pj-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .pj-stage#sheetmetal .pj-steps {
    grid-template-columns: 1fr;
  }

  .pj-stage#sheetmetal .pj-step:first-child {
    grid-column: 1 / -1;
  }

  .pj-roadmap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pj-hero::before,
  .pj-step {
    animation: none;
  }

  .pj-step {
    opacity: 1;
    transform: none;
  }
}
