.storage-scene {
  --fabric-aisle: light-dark(rgb(108 151 172 / 20%), rgb(90 124 146 / 20%));
  --fabric-line: light-dark(#6893a8, #617e91);
  --fabric-data: light-dark(#0075ac, #67ccff);
  --fabric-model: light-dark(#007d7a, #65e3c8);
  --fabric-led: #9be3f5;
  --fabric-play: paused;
  --fabric-cycle: 12s;
  justify-self: center; width: min(100%, 1320px); min-width: 0;
  container-type: inline-size; text-align: center; line-height: 1.3;
}
.storage-scene[data-playing] { --fabric-play: running; }
.fabric-world { position: relative; }
.storage-fabric { display: block; width: 100%; height: auto; stroke: none; fill: none; }
.fabric-label {
  position: absolute; transform: translate(-50%, -100%); white-space: nowrap;
  font: 600 clamp(13px, 2cqw, 24px)/1.25 var(--body); color: var(--ink);
}
.fabric-training-label { left: 10%; top: 25%; }
.fabric-inference-label { left: 91%; top: 56.8%; }
.fabric-ready {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  color: var(--fabric-model); font-size: .85em; visibility: hidden;
}
@container (max-width: 520px) {
  .fabric-inference-label { top: 81%; transform: translateX(-50%); }
  .fabric-ready { top: 100%; bottom: auto; }
}
.fabric-caption strong { font-size: clamp(16px, 2.3cqw, 28px); color: var(--ink); }
.fabric-beats { display: grid; margin-top: 4px; color: var(--muted); font-size: clamp(13px, 1.65cqw, 18px); }
.fabric-beats span { grid-area: 1 / 1; }
.fabric-beats span + span { visibility: hidden; }
.fabric-links { stroke: var(--fabric-line); stroke-width: 1.85; }
.fabric-sample-flow, .fabric-model-flow { opacity: 0; stroke-width: 3.8; }
/* Paths are normalized to 100. The final gap isolates one burst on each path. */
.fabric-sample-flow { stroke: var(--fabric-data); stroke-dasharray: 2 1 2 1 2 4 2 1 2 1 2 112; }
.fabric-model-flow { stroke: var(--fabric-model); stroke-dasharray: 5 1.5 2 4 5 1.5 2 112; }
[data-fabric-scene="home"] :is(.fabric-sample-flow, .fabric-model-flow) {
  /* Round caps form a single dot; the gap exceeds the entire normalized route. */
  stroke-dasharray: .01 124; stroke-width: 5.2;
  --entry-offset: 2; --visible-offset: 0;
}
[data-fabric-scene="home"] :is(.fabric-model-flow, .fabric-inference-signal) {
  --fabric-model: light-dark(#31b87b, #81edac);
}
[data-fabric-scene="home"] :is(.fabric-training-signal, .fabric-inference-signal) { visibility: hidden; }
.fabric-training-signal { fill: var(--fabric-data); }
.fabric-inference-signal { fill: var(--fabric-model); }
@media (prefers-reduced-motion: no-preference) {
  .storage-scene[data-animated] :is(.fabric-sample-flow, .fabric-model-flow, .fabric-training-signal, .fabric-inference-signal, .fabric-beats span, .fabric-ready) {
    animation-duration: var(--fabric-cycle); animation-iteration-count: infinite;
    animation-timing-function: linear; animation-play-state: var(--fabric-play);
  }
  [data-animated] .fabric-beats span:first-child { animation-name: fabric-room; }
  [data-animated] .fabric-beats span:nth-child(2) { animation-name: fabric-training; }
  [data-animated] .fabric-beats span:nth-child(3) { animation-name: fabric-inference; }
  [data-animated] .fabric-sample-flow { animation-name: fabric-samples; }
  [data-animated] .fabric-model-flow { animation-name: fabric-weights; }
  [data-animated] .fabric-training-signal { animation-name: fabric-training-led; }
  [data-animated] .fabric-inference-signal { animation-name: fabric-inference-led; }
  [data-animated] .fabric-ready { animation-name: fabric-ready; }
  [data-fabric-scene="home"][data-animated] .fabric-sample-flow { animation-name: fabric-home-samples; }
  [data-fabric-scene="home"][data-animated] .fabric-training-signal { animation-name: fabric-training; }
  [data-fabric-scene="home"][data-animated] .fabric-inference-signal { animation-name: fabric-inference; }
}
/* The overview and the two workload captions share the same clock as their signals. */
@keyframes fabric-room { 0%, 23.99%, 100% { visibility: visible; } 24%, 99.99% { visibility: hidden; } }
@keyframes fabric-training { 0%, 23.99%, 57%, 100% { visibility: hidden; } 24%, 56.99% { visibility: visible; } }
@keyframes fabric-inference { 0%, 56.99%, 100% { visibility: hidden; } 57%, 99.99% { visibility: visible; } }
@keyframes fabric-ready { 0%, 83.99%, 100% { visibility: hidden; } 84%, 99.99% { visibility: visible; } }
/* Both homepage batches finish before inference starts at 57%, including sender delays. */
@keyframes fabric-home-samples {
  0%, 24%, 39%, 100% { stroke-dashoffset: 2; opacity: 0; }
  25%, 40% { stroke-dashoffset: 0; opacity: 1; }
  37%, 52% { stroke-dashoffset: -99; opacity: 1; }
  38%, 53% { stroke-dashoffset: -103; opacity: 0; }
}
@keyframes fabric-samples {
  0%, 24%, 42%, 60%, 78%, 100% { stroke-dashoffset: var(--entry-offset, 26); opacity: 0; }
  25%, 43%, 61%, 79% { stroke-dashoffset: var(--visible-offset, 19); opacity: 1; }
  40%, 58%, 76%, 94% { stroke-dashoffset: -99; opacity: 1; }
  41%, 59%, 77%, 95% { stroke-dashoffset: -103; opacity: 0; }
}
@keyframes fabric-weights {
  0%, 57% { stroke-dashoffset: var(--entry-offset, 31.5); opacity: 0; }
  59% { stroke-dashoffset: var(--visible-offset, 24.5); opacity: 1; }
  81% { stroke-dashoffset: -99; opacity: 1; }
  82%, 100% { stroke-dashoffset: -104; opacity: 0; }
}
@keyframes fabric-training-led { 0%, 23%, 100% { opacity: .18; } 25%, 94% { opacity: 1; } }
@keyframes fabric-inference-led { 0%, 56%, 100% { opacity: .18; } 59%, 94% { opacity: 1; } }
