/* Process — production pipeline */

.pipeline {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.pipeline__rail {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.5rem;
}
.pipeline__rail::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-50%);
}
.pipeline__flow {
  position: absolute;
  left: 5%;
  top: 50%;
  height: 2px;
  width: 0%;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px var(--accent-glow);
  transition: width 1.4s var(--ease-fluid, ease);
}
#process.in-view .pipeline__flow,
.scroll-section.in-view .pipeline__flow { width: 90%; }

.pipeline__dot {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  transition: border-color 0.4s, color 0.4s, box-shadow 0.4s, transform 0.4s;
}
#process.in-view .pipeline__dot,
.scroll-section.in-view .pipeline__dot {
  animation: dotPop 0.5s var(--ease-fluid, ease) backwards;
}
#process.in-view .pipeline__dot:nth-child(2),
.scroll-section.in-view .pipeline__dot:nth-child(2) { animation-delay: 0.15s; }
#process.in-view .pipeline__dot:nth-child(3),
.scroll-section.in-view .pipeline__dot:nth-child(3) { animation-delay: 0.3s; }
#process.in-view .pipeline__dot:nth-child(4),
.scroll-section.in-view .pipeline__dot:nth-child(4) { animation-delay: 0.45s; }
#process.in-view .pipeline__dot:nth-child(5),
.scroll-section.in-view .pipeline__dot:nth-child(5) { animation-delay: 0.6s; }
#process.in-view .pipeline__dot:nth-child(6),
.scroll-section.in-view .pipeline__dot:nth-child(6) { animation-delay: 0.75s; }
.pipeline__dot--on {
  border-color: var(--border-hover);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-dim);
  transform: scale(1.08);
}
@keyframes dotPop {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
.pipeline__dot--on { transform: scale(1.08); }

.pipeline__cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
}

.pipeline-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s, transform 0.35s var(--ease-fluid, ease);
}
.pipeline-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.pipeline-card__head {
  padding: 1rem 1rem 0.35rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.pipeline-card__head span {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--accent);
}
.pipeline-card__head h4 {
  font-size: 0.88rem;
  font-weight: 600;
}
.pipeline-card > p {
  padding: 0 1rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.proc-mock {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.65rem;
  min-height: 118px;
}

/* 01 Research board */
.proc-mock--research {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.proc-note {
  font-size: 0.45rem;
  padding: 0.35rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  line-height: 1.35;
  color: var(--text-muted);
}
.proc-note--y { background: rgba(212, 175, 106, 0.1); border-color: rgba(212, 175, 106, 0.25); transform: rotate(-2deg); }
.proc-note--g { background: rgba(0, 255, 163, 0.08); border-color: rgba(0, 255, 163, 0.2); transform: rotate(1deg); }
.proc-note--b { background: rgba(0, 212, 255, 0.08); border-color: rgba(0, 212, 255, 0.2); grid-column: span 2; }

/* 02 Architecture diagram */
.proc-mock--arch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 0.45rem;
}
.proc-arch-row {
  display: flex;
  gap: 4px;
  align-items: center;
}
.proc-arch-box {
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}
.proc-arch-box--core {
  border-color: var(--border-hover);
  color: var(--accent);
  box-shadow: 0 0 12px var(--accent-dim);
}
.proc-arch-arrow { color: var(--accent); opacity: 0.4; font-size: 0.55rem; }

/* 03 UX/UI dual mock */
.proc-mock--ux {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.45rem;
  align-items: start;
}
.proc-phone {
  width: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.03);
}
.proc-phone i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 255, 163, 0.2);
  margin-bottom: 2px;
}
.proc-phone i:nth-child(2) { width: 80%; opacity: 0.6; }
.proc-desktop {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px;
}
.proc-desktop__bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  margin-bottom: 4px;
}
.proc-desktop__blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.proc-desktop__blocks i {
  height: 18px;
  border-radius: 2px;
  border: 1px dashed rgba(0, 255, 163, 0.25);
  background: rgba(0, 255, 163, 0.04);
}

/* 04 Build terminal + tree */
.proc-mock--build {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.proc-tree {
  font-family: var(--mono);
  font-size: 0.42rem;
  line-height: 1.7;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.35rem;
  background: #060608;
}
.proc-tree .f { color: var(--accent-2); }
.proc-tree .d { color: var(--accent); }
.proc-term {
  font-family: var(--mono);
  font-size: 0.42rem;
  line-height: 1.65;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.35rem;
  background: #060608;
}
.proc-term .ok { color: var(--accent); }

/* 05 Launch dashboard */
.proc-mock--launch {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.proc-launch-stats {
  display: flex;
  gap: 4px;
}
.proc-launch-stat {
  flex: 1;
  text-align: center;
  padding: 0.3rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.proc-launch-stat b {
  display: block;
  font-size: 0.72rem;
  color: var(--accent);
}
.proc-launch-stat small {
  font-family: var(--mono);
  font-size: 0.4rem;
  color: var(--text-muted);
}
.proc-launch-line {
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 4px;
  display: flex;
  align-items: flex-end;
}
.proc-launch-line svg {
  width: 100%;
  height: 100%;
}
.proc-launch-line polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}

@media (max-width: 1100px) {
  .pipeline__cards { grid-template-columns: repeat(2, 1fr); }
  .pipeline__rail { display: none; }
}

@media (max-width: 768px) {
  .pipeline__cards { grid-template-columns: 1fr; }
  .proc-mock { min-height: 100px; }
}
