/* Original architecture artwork; all movement is finite and optional. */
.system-atlas {
  --atlas-blue: #315bc7;
  --atlas-line: #afbed2;
  --atlas-ink: #142b45;
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 24px 26px 20px;
  border: 1px solid #cdd5df;
  border-radius: 8px;
  background: #f8f9f6;
  box-shadow: 0 4px 0 -1px #e8eced, 0 5px 0 0 #ced6dc, 0 20px 40px -26px #253e59;
  color: var(--atlas-ink);
}
.atlas-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0; }
.atlas-eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .07em; text-transform: uppercase; }
.atlas-eyebrow i { display: block; width: 6px; height: 6px; background: #315bc7; }
.atlas-sheet-number { color: #52677e; font-size: 12px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .04em; white-space: nowrap; }
.atlas-drawing-shell { margin: 21px -13px 18px; }
.atlas-system-drawing, .atlas-artwork { display: block; width: 100%; height: auto; max-width: 100%; overflow: visible; }
.atlas-wire { fill: none; stroke: #9baec6; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.atlas-wire-return { stroke-dasharray: 3 5; opacity: .7; }
.atlas-surface { fill: #fff; stroke: #b3c0d2; stroke-width: 1.2; }
.atlas-blue-surface { fill: #315bc7; stroke: #2449aa; stroke-width: 1.2; }
.atlas-detail { fill: none; stroke: #8398b5; stroke-width: 1.4; stroke-linecap: round; }
.atlas-check { fill: none; stroke: #315bc7; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.system-atlas .atlas-surface, .atlas-review-gate > path { transition: stroke 160ms ease, fill 160ms ease; }
[data-atlas-active="context"] .atlas-sources .atlas-surface,
[data-atlas-active="action"] .atlas-output .atlas-surface,
[data-atlas-active="review"] .atlas-review-gate > path { stroke: #2444bf; stroke-width: 2.3; fill: #e8edff; }
[data-atlas-active="intelligence"] .atlas-engine > rect:last-of-type { stroke: #14212d; stroke-width: 2.3; }
.atlas-drawing-labels { fill: #52677e; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 22px; letter-spacing: .02em; }
.atlas-stage-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid #cad3de; border-bottom: 1px solid #cad3de; }
.atlas-stage {
  position: relative;
  min-width: 0;
  min-height: 105px;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 7px;
  padding: 14px 9px 13px;
  border: 0;
  border-right: 1px solid #d8dfe6;
  color: #1f354f;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.atlas-stage:last-child { border-right: 0; }
.atlas-stage::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: transparent; transition: background 180ms ease; }
.atlas-stage:hover { background: #eaf0fb; }
.atlas-stage[aria-pressed="true"] { background: #eaf0fb; color: #244aaf; }
.atlas-stage[aria-pressed="true"]::before { background: #315bc7; }
.atlas-stage-number { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12px; color: #52677e; }
.atlas-stage strong { font-size: 14px; font-weight: 700; line-height: 1.4; }
.atlas-stage-short { font-size: 13px; line-height: 1.5; color: #52677e; }
.atlas-panel { padding: 16px 3px; }
.atlas-panel + .atlas-panel { border-top: 1px solid #dce2e8; }
.atlas-panel-title { display: block; margin: 0 0 7px; font-size: 15px; line-height: 1.4; font-weight: 700; letter-spacing: 0; }
.atlas-panel p { margin: 0; color: #52677e; font-size: 14px; line-height: 1.65; }
[data-atlas-enhanced] .atlas-explanations { min-height: 112px; }
[data-atlas-enhanced] .atlas-panel + .atlas-panel { border-top: 0; }
.atlas-foundation { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding-top: 12px; border-top: 1px solid #d4dce5; font-size: 12px; font-weight: 650; line-height: 1.5; color: #586e83; }
.atlas-foundation > span { display: inline-flex; gap: 6px; align-items: center; }
.atlas-foundation > span::before { content: ""; display: block; width: 3px; height: 3px; border-radius: 50%; background: #7189a5; }
.atlas-replay { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 8px 4px; border: 0; background: transparent; color: #294eaa; font: 650 13px/1.5 var(--sans); cursor: pointer; }
.atlas-replay svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.atlas-replay:hover { text-decoration: underline; }
.atlas-artwork { max-height: 310px; color: #244ab4; }
.atlas-art-label { fill: #233b57; font: 18px var(--sans, system-ui, sans-serif); font-weight: 650; }
.atlas-art-label-light { fill: #fff; }
.atlas-art-caption { fill: #52677e; font: 12px ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .035em; }
.atlas-boundary { fill: none; stroke: #a9b9ce; stroke-width: 1.1; stroke-dasharray: 4 5; }
.path-graphic .atlas-artwork { max-height: 180px; }
.editorial-art .atlas-artwork { width: 100%; height: auto; max-height: none; max-width: 480px; margin-inline: auto; }
.delivery-art .atlas-artwork, .service-diagram-art .atlas-artwork { height: auto; max-height: none; }
.service-diagram .service-diagram-art { margin: 0 0 12px; }
.article-art { min-height: 0; max-height: none; padding: clamp(16px, 2vw, 24px); }
.article-art .atlas-artwork { height: auto; max-height: none; }
.service-blueprint .atlas-art-label, .dark-page-hero .atlas-art-label { fill: #233b57; }
.service-blueprint .atlas-art-label-light, .dark-page-hero .atlas-art-label-light { fill: #fff; }
.service-blueprint .atlas-artwork > .atlas-art-caption,
.dark-page-hero .atlas-artwork > .atlas-art-caption { fill: #b5c5d9; }

/* Each family supplies an ordered route; the controller runs it once in view.
   Wires, labels and node surfaces remain complete in the static drawing. */
.atlas-motion-path {
  fill: none;
  stroke: #3569e0;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 18 82;
  stroke-dashoffset: 100;
  opacity: 0;
}
.atlas-motion-return { stroke: #617d9d; stroke-width: 2; }
.atlas-motion-node, .atlas-motion-halo {
  transform-box: fill-box;
  transform-origin: center;
}
.atlas-motion-halo { opacity: 0; pointer-events: none; }
.is-diagram-playing .atlas-motion-path,
.system-atlas.is-playing .atlas-motion-path {
  animation: diagram-route 1.6s cubic-bezier(.3, 0, .25, 1) calc((var(--diagram-step, 1) - 1) * 420ms) 1 both;
}
.is-diagram-playing .atlas-motion-node,
.system-atlas.is-playing .atlas-motion-node {
  animation: diagram-node-lift 1.5s ease-out calc((var(--diagram-step, 1) - 1) * 420ms) 1 both;
}
.is-diagram-playing .atlas-motion-node .atlas-surface,
.system-atlas.is-playing .atlas-motion-node .atlas-surface {
  animation: diagram-surface 1.5s ease-out calc((var(--diagram-step, 1) - 1) * 420ms) 1 both;
}
.is-diagram-playing .atlas-motion-node .atlas-blue-surface {
  animation: diagram-core 1.5s ease-out calc((var(--diagram-step, 1) - 1) * 420ms) 1 both;
}
.is-diagram-playing .atlas-motion-halo,
.system-atlas.is-playing .atlas-motion-halo {
  animation: diagram-halo 1.6s ease-out calc((var(--diagram-step, 1) - 1) * 420ms) 1 both;
}
.is-diagram-playing .atlas-motion-node .atlas-check,
.system-atlas.is-playing .atlas-motion-node .atlas-check {
  stroke-dasharray: 40;
  animation: diagram-check 1s ease-out calc((var(--diagram-step, 1) - 1) * 420ms) 1 both;
}
@keyframes diagram-route {
  0% { opacity: 0; stroke-dashoffset: 100; }
  15% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; stroke-dashoffset: -100; }
}
@keyframes diagram-node-lift {
  0%, 100% { transform: translateY(0); }
  28%, 48% { transform: translateY(-3px); }
}
@keyframes diagram-surface {
  28%, 55% { fill: #e8efff; stroke: #3569e0; }
}
@keyframes diagram-core {
  28%, 55% { fill: #234abf; stroke: #94b5ff; }
}
@keyframes diagram-halo {
  0% { opacity: 0; transform: scale(.96); }
  28% { opacity: .55; }
  100% { opacity: 0; transform: scale(1.09); }
}
@keyframes diagram-check {
  0% { stroke-dashoffset: 40; }
  55%, 100% { stroke-dashoffset: 0; }
}
.architecture-figure { min-width: 0; }
.architecture-stack.is-diagram-playing .atlas-motion-layer {
  animation: diagram-layer 1.5s ease-out calc((var(--diagram-step, 1) - 1) * 420ms) 1 both;
}
.architecture-stack.is-diagram-playing .atlas-motion-layer > i {
  animation: diagram-layer-light 1.5s ease-out calc((var(--diagram-step, 1) - 1) * 420ms) 1 both;
}
@keyframes diagram-layer {
  0%, 100% { background: transparent; }
  30%, 60% { background: rgb(167 193 255 / 9%); }
}
@keyframes diagram-layer-light {
  0%, 100% { box-shadow: 0 0 0 0 rgb(216 238 169 / 0%); }
  30%, 60% { box-shadow: 0 0 0 6px rgb(216 238 169 / 14%); }
}
.diagram-replay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  flex-shrink: 0;
  padding: 8px 3px;
  border: 0;
  color: #2444bf;
  background: transparent;
  font: 650 13px/1.5 var(--sans, system-ui, sans-serif);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.diagram-replay[hidden] { display: none; }
.diagram-replay svg { width: 15px; height: 15px; }
.diagram-replay:hover { text-decoration: underline; text-underline-offset: 4px; }
.diagram-control-slot { min-height: 44px; margin-top: 12px; }
.editorial-art figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; min-height: 59px; }
.editorial-art figcaption > span { flex: 1 1 180px; }
.service-diagram .diagram-control-slot { display: flex; justify-content: flex-end; margin: 0 0 6px; }
.article-figure .diagram-control-slot { display: flex; justify-content: flex-end; max-width: 460px; margin-top: 0; }
.delivery-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.delivery-figure { min-width: 0; width: min(100%, 400px); }
.delivery-figure .diagram-control-slot { display: flex; justify-content: flex-end; margin-top: 0; }
.service-blueprint .diagram-replay, .architecture-figure .diagram-replay,
.dark-page-hero .diagram-replay { color: var(--lime); }
@media (max-width: 1100px) and (min-width: 901px) {
  .system-atlas { padding: 19px 17px 17px; }
  .atlas-stage { padding-inline: 6px; }
  .atlas-stage-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-stage:nth-child(2) { border-right: 0; }
  .atlas-stage:nth-child(-n+2) { border-bottom: 1px solid #d8dfe6; }
}
@media (max-width: 600px) {
  .delivery-panel { grid-template-columns: minmax(0, 1fr); }
  .delivery-figure { width: min(100%, 360px); margin-inline: auto; }
  .system-atlas { padding: 19px 16px 17px; border-radius: 6px; }
  .atlas-drawing-shell { margin: 20px -9px 15px; }
  .atlas-stage-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-stage { min-height: 91px; padding: 12px 11px; gap: 5px; }
  .atlas-stage:nth-child(2) { border-right: 0; }
  .atlas-stage:nth-child(-n+2) { border-bottom: 1px solid #d8dfe6; }
  .atlas-stage strong { font-size: 14px; }
  .atlas-stage-short { font-size: 13px; }
  .atlas-panel { padding-block: 15px; }
  .atlas-panel p { font-size: 14px; }
  [data-atlas-enhanced] .atlas-explanations { min-height: 146px; }
  .atlas-foundation { gap: 8px 10px; }
  .atlas-replay { margin-left: 0; }
  .atlas-eyebrow { font-size: 12px; letter-spacing: .035em; }
  .atlas-sheet-number { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-stage, .atlas-stage::before, .system-atlas .atlas-surface, .atlas-review-gate > path { transition: none; }
  .is-diagram-playing .atlas-motion-path,
  .is-diagram-playing .atlas-motion-node,
  .is-diagram-playing .atlas-motion-node *,
  .is-diagram-playing .atlas-motion-halo,
  .system-atlas.is-playing .atlas-motion-path,
  .system-atlas.is-playing .atlas-motion-node,
  .system-atlas.is-playing .atlas-motion-node *,
  .system-atlas.is-playing .atlas-motion-halo,
  .architecture-stack.is-diagram-playing .atlas-motion-layer,
  .architecture-stack.is-diagram-playing .atlas-motion-layer > i { animation: none !important; }
  .atlas-motion-path, .atlas-motion-halo { opacity: 0 !important; }
}
