/* The orchestration: an open signal field, with the shared Maestro wordmark at its heart. */
.scene-orchestration .scene {
  min-width: 0;
  width: 100%;
}

.orchestration-system {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  container-type: inline-size;
}

.orchestration-system > figcaption {
  display: block;
  margin-bottom: 8px;
}

.orchestration-diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 680 / 520;
  min-height: 410px;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 51%, #0f609924, transparent 59%);
}

.orchestration-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.orchestration-traces,
.orchestration-ribbon,
.orchestration-contours {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.orchestration-traces {
  stroke: #63c9ee;
  stroke-width: 1.1;
  filter: drop-shadow(0 0 4px #2bafff70);
}

.orchestration-traces path {
  vector-effect: non-scaling-stroke;
}

/* The highlight points stay hidden when reduced motion is requested. */
.orchestration-ribbon > path { opacity: .38; }
.orchestration-stream { display: none; fill: #a5e8fa; stroke: none; filter: drop-shadow(0 0 4px #5abfe4aa); }

/* Packets follow the fixed connections into the Chamber and back to each node. */
.orchestration-network-flow { filter: none; }
.orchestration-signal-halo { fill: #64c9e8; opacity: .17; }
.orchestration-signal-dot { fill: #c3f3ff; filter: drop-shadow(0 0 4px #65d3f2); }

.orchestration-ribbon {
  stroke: #3f96d9;
  stroke-width: .7;
  opacity: 1;
}

.orchestration-contours {
  stroke: #3c93c7;
  stroke-width: .75;
  opacity: .27;
}

.orchestration-pulses {
  fill: #a6edff;
  filter: drop-shadow(0 0 5px #53c7ff);
}

.orchestration-pulses .orchestration-signal-soft {
  fill: #58a8d0;
  opacity: .55;
}

.orchestration-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64%;
  max-width: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.orchestration-core::before {
  content: '';
  position: absolute;
  inset: -42px -25%;
  z-index: -1;
  background: radial-gradient(ellipse, #11619c24, transparent 67%);
  pointer-events: none;
}

.orchestration-core .maestro-wordmark {
  --maestro-wordmark-size: clamp(36px, 9cqw, 57px);
}

.orchestration-core > .orchestration-chamber {
  margin-top: -4px;
  color: #a9d6ef;
  font-size: clamp(11px, 2cqw, 13px);
  font-weight: 500;
  letter-spacing: .25em;
  line-height: 1.2;
  padding-left: .25em;
}

.orchestration-core > strong {
  margin-top: 14px;
  color: #a7bbce;
  font-size: clamp(11px, 2cqw, 13px);
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.4;
}

.orchestration-endpoint {
  position: absolute;
  width: 38%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transform: translateX(-50%);
}

.orchestration-endpoint > svg {
  display: block;
  flex: none;
  width: 37px;
  height: 37px;
  fill: none;
  stroke: #7ac8e4;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px #2f9ed62b);
}

.orchestration-endpoint > svg .signal-point {
  fill: #b6eaf8;
  stroke: none;
}

.orchestration-endpoint > strong {
  max-width: 100%;
  color: #bbd1e4;
  font-size: clamp(12px, 2.3cqw, 14px);
  font-weight: 400;
  letter-spacing: .005em;
  line-height: 1.45;
  overflow-wrap: normal;
}

.orchestration-ai { top: 8%; left: 21%; }
.orchestration-starlink { top: 8%; left: 79%; }
.orchestration-amazon { bottom: 6%; left: 21%; }
.orchestration-verizon { bottom: 6%; left: 79%; }

@container (max-width: 370px) {
  .orchestration-diagram { min-height: 420px; }
  .orchestration-endpoint { width: 42%; gap: 9px; }
  .orchestration-endpoint > svg { width: 31px; height: 31px; }
  .orchestration-endpoint > strong { max-width: 112px; font-size: 12px; }
  .orchestration-ai, .orchestration-starlink { top: 6%; }
  .orchestration-core { gap: 10px; }
}

@media (prefers-reduced-motion: no-preference) {
  .orchestration-stream { display: inline; }
  .orchestration-diagram {
    animation: orchestration-arrive .65s ease-out both;
  }
  /* Only the signal field moves; the wordmark and the four labels stay fixed. */
  .orchestration-contours,
  .orchestration-ribbon {
    transform-box: view-box;
    transform-origin: 50% 50%;
  }
  .orchestration-contours {
    animation: orchestration-field-drift 18s ease-in-out infinite alternate;
  }
  .orchestration-ribbon {
    animation: orchestration-ribbon-flow 14s ease-in-out infinite alternate;
  }
  .orchestration-pulses {
    animation: orchestration-signal-breathe 14s ease-in-out infinite alternate;
  }
  .orchestration-core::before {
    animation: orchestration-light-breathe 18s ease-in-out infinite alternate;
  }
  @keyframes orchestration-field-drift {
    from { transform: translate(-9px, 6px) rotate(-2.5deg) scale(.98); }
    to { transform: translate(10px, -7px) rotate(2.5deg) scale(1.04); }
  }
  @keyframes orchestration-ribbon-flow {
    from { transform: translateY(8px) rotate(-1deg) scaleY(.945); }
    to { transform: translateY(-8px) rotate(1deg) scaleY(1.055); }
  }
  @keyframes orchestration-signal-breathe {
    from { opacity: .48; }
    to { opacity: .95; }
  }
  @keyframes orchestration-light-breathe {
    from { opacity: .55; }
    to { opacity: 1; }
  }
  @keyframes orchestration-arrive {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
