/* ══════════════════════════════════════════════
   interludes.css — Pure-visual AI transition screens
   ══════════════════════════════════════════════ */
/* ── shared interlude container ── */
.visual-interlude {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  margin-bottom: 0;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}
.visual-interlude::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 50% 50%, rgba(6, 199, 186, 0.06), transparent 70%);
  pointer-events: none;
}
.interlude-inner {
  position: relative;
  z-index: 1;
  width: min(1000px, 100%);
}
/* ══════════════════════════════════════════════
   DATA FLOW PIPELINE (Screen 3)
   ══════════════════════════════════════════════ */
.pipeline-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.pipe-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.pipe-icon {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--inner-border);
  border-radius: 50%;
  background: var(--inner-bg);
}
.pipe-icon-core {
  width: 160px;
  height: 160px;
  border-color: var(--theme-line);
  background: radial-gradient(circle, rgba(6, 199, 186, 0.10), transparent 70%);
  box-shadow: var(--inner-shadow);
}
.pipe-icon-output {
  gap: 6px;
  flex-direction: column;
}
/* particles (input stage) */
.pipe-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--theme);
  border-radius: 50%;
  opacity: 0.6;
  animation: particle-orbit 3s ease-in-out infinite;
}
.pipe-particle:nth-child(1) { top: 20%; left: 30%; animation-delay: 0s; }
.pipe-particle:nth-child(2) { top: 55%; left: 65%; animation-delay: 0.6s; }
.pipe-particle:nth-child(3) { top: 70%; left: 25%; animation-delay: 1.2s; }
@keyframes particle-orbit {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  25% { transform: translate(8px, -6px) scale(1.2); opacity: 0.8; }
  50% { transform: translate(-4px, 10px) scale(0.9); opacity: 0.6; }
  75% { transform: translate(6px, 4px) scale(1.1); opacity: 0.9; }
}
/* rings (core stage) */
.pipe-ring {
  position: absolute;
  inset: 10%;
  border: 1px dashed var(--theme-line);
  border-radius: 50%;
  animation: ring-spin 8s linear infinite;
}
.pipe-ring-b {
  inset: 24%;
  border-style: solid;
  border-color: var(--theme-line);
  animation-direction: reverse;
  animation-duration: 12s;
}
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* bars (output stage) */
.pipe-bar {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--theme);
  animation: bar-load 2s ease-out infinite;
}
.pipe-bar:nth-child(1) { width: 48px; animation-delay: 0s; }
.pipe-bar:nth-child(2) { width: 36px; animation-delay: 0.3s; opacity: 0.7; }
.pipe-bar:nth-child(3) { width: 52px; animation-delay: 0.6s; opacity: 0.5; }
@keyframes bar-load {
  0% { transform: scaleX(0); opacity: 0; }
  30% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0.4; }
}
/* connector beam */
.pipe-connector {
  width: 100px;
  height: 2px;
  position: relative;
  overflow: hidden;
  background: var(--theme-soft);
}
.pipe-beam {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--theme), transparent);
  animation: beam-flow 2s linear infinite;
}
@keyframes beam-flow {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
.pipe-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}
.pipe-stage-core .pipe-label {
  color: var(--theme);
  font-size: 1rem;
}
/* ══════════════════════════════════════════════
   TIME COMPRESSION (Screen 5)
   ══════════════════════════════════════════════ */
.time-compress-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr) 48px minmax(0, 1fr);
  gap: 0;
  align-items: start;
  min-width: 0;
}
.tc-caption {
  grid-column: 1 / -1;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}
.tc-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  height: 188px;
  padding: 28px;
  border: 1px solid var(--inner-border);
  border-radius: var(--radius);
  background: var(--inner-bg);
  box-shadow: var(--inner-shadow);
}
.tc-number {
  flex: 0 0 auto;
  font-size: clamp(3.2rem, 5.4vw, 4.8rem);
  font-weight: 900;
  line-height: 1;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}
.tc-desc {
  font-size: 0.78rem;
  font-weight: 850;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-left: 0;
  text-align: left;
}
/* slow */
.tc-slow {
  opacity: 0.5;
}
.tc-slow .tc-number { color: var(--muted-2); }
/* mid */
.tc-mid {
  opacity: 0.7;
}
.tc-mid .tc-number { color: var(--muted); }
/* fast — the hero */
.tc-fast {
  border-color: var(--theme-line);
  background: var(--theme-soft);
  box-shadow: var(--inner-shadow);
}
.tc-fast .tc-number {
  font-size: clamp(3.4rem, 5.8vw, 5.05rem);
  color: var(--theme);
  text-shadow: none;
}
.tc-fast .tc-desc {
  color: var(--theme);
}
/* arrow */
.tc-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 188px;
  transform: none;
}
.tc-arrow span {
  display: block;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, rgba(6, 199, 186, 0.1), rgba(6, 199, 186, 0.55));
  position: relative;
}
.tc-arrow span::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--theme);
  border-right: 2px solid var(--theme);
}
/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 760px) {
  .visual-interlude {
    min-height: 44vh;
    padding: 28px 16px;
  }
  .pipeline-visual {
    flex-direction: column;
    gap: 0;
  }
  .pipe-icon {
    width: 78px;
    height: 78px;
  }
  .pipe-icon-core {
    width: 104px;
    height: 104px;
  }
  .pipe-connector {
    width: 2px;
    height: 26px;
  }
  .pipe-beam {
    background: linear-gradient(180deg, transparent, var(--theme), transparent);
    animation-name: beam-flow-v;
  }
  @keyframes beam-flow-v {
    from { transform: translateY(-100%); }
    to { transform: translateY(100%); }
  }
  .tc-arrow {
    width: auto;
    height: 28px;
    transform: rotate(90deg);
  }
  .tc-number {
    font-size: 2.6rem;
  }
}
