/* Sphere case study, infographic test v3 (internal). Refined compute and
   storage visuals, designed with gpt-6-astra; everything else is v2. */

/* Replace previous refinement CSS entirely; load after current.css. */

.ig--v3 {
  --ig3-ink: #08090b;
  --ig3-stroke: #2a3037;
  --ig3-accent: #087a8f;
  --ig3-detail: #6a818b;
}

/* Compute */

.ig--v3 .ig3-compute .ig-box--fill,
.ig--v3 .ig3-compute.is-active .ig-box--fill {
  fill: url(#ig3-chassis);
  stroke: none;
  filter: url(#ig-shadow);
}

.ig--v3 .ig3-compute .ig-box--edge {
  fill: none;
  stroke: var(--ig3-stroke);
  stroke-width: 1.6;
}

.ig--v3 .ig3-compute .t-title {
  font-family: "Big Shoulders Display", sans-serif;
  fill: var(--ig3-ink);
}

.ig--v3 .ig3-compute .ig-chip {
  fill: url(#ig-boxgrad);
  stroke: var(--ig3-stroke);
  stroke-width: 1.6;
}

.ig--v3 .ig3-compute .ig3-fins {
  fill: none;
  stroke: var(--ig3-detail);
  stroke-width: 2;
  stroke-linecap: round;
}

.ig--v3 .ig3-compute .t-chip {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-anchor: middle;
  fill: var(--ig3-ink);
}

.ig--v3 .ig3-compute .ig-led {
  fill: #8299a3;
  stroke: none;
}

.ig--v3 .ig3-compute .ig-pill rect {
  fill: #f4f7f8;
  stroke: #879ba5;
  stroke-width: 1.2;
}

.ig--v3 .ig3-compute .ig-pill text {
  font-family: "DM Sans", sans-serif;
  font-size: 14.5px;
  text-anchor: middle;
  fill: var(--ig3-stroke);
}

.ig--v3 .ig3-compute .ig-badge circle {
  fill: var(--ig3-ink);
}

.ig--v3 .ig3-compute .ig-badge text {
  fill: #ffffff;
}

.ig--v3 .ig3-compute.is-active .ig-box--edge,
.ig--v3 .ig3-compute.is-active .ig-chip {
  stroke: var(--ig3-accent);
}

.ig--v3 .ig3-compute.is-active .ig-led,
.ig--v3 .ig3-compute.is-active .ig-badge circle {
  fill: var(--ig3-accent);
}

.ig--v3 .ig3-compute .ig-pill.is-hot rect {
  fill: var(--ig3-accent);
  stroke: var(--ig3-accent);
}

.ig--v3 .ig3-compute .ig-pill.is-hot text {
  fill: #ffffff;
}

.ig--v3 .ig3-compute .ig-chips.is-busy .ig-led {
  fill: var(--ig3-accent);
  animation: ig3-status 1.8s ease-in-out infinite;
}

.ig--v3 .ig3-compute .ig-chips.is-busy > g:nth-child(2n) .ig-led {
  animation-delay: -0.6s;
}

.ig--v3 .ig3-compute .ig-chips.is-busy > g:nth-child(3n) .ig-led {
  animation-delay: -1.2s;
}

@keyframes ig3-status {
  0%, 100% { opacity: 0.65; }
  35%, 60% { opacity: 1; }
}

/* Storage */

.ig--v3 .ig3-storage .ig-cyl {
  fill: #e6edef;
  stroke: var(--ig3-stroke);
  stroke-width: 2.4;
}

.ig--v3 .ig3-storage .ig-level {
  fill: url(#ig3-storage-level);
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.ig--v3 .ig3-storage .ig3-storage-bevel {
  fill: none;
  stroke: #e1f2f5;
  stroke-width: 2.4;
  stroke-opacity: 0.65;
}

.ig--v3 .ig3-storage .ig3-storage-seams {
  fill: none;
  stroke: #56717c;
  stroke-width: 2.4;
}

.ig--v3 .ig3-storage .ig3-storage-vents {
  fill: none;
  stroke: var(--ig3-detail);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.ig--v3 .ig3-storage .ig3-activity {
  fill: none;
  stroke: var(--ig3-accent);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-opacity: 0.85;
}

.ig--v3 .ig3-storage .ig3-storage-edge {
  fill: none;
  stroke: var(--ig3-stroke);
  stroke-width: 2.4;
}

.ig--v3 .ig3-storage .ig-cyl-top {
  fill: url(#ig3-storage-lid);
  stroke: var(--ig3-stroke);
  stroke-width: 2.4;
}

.ig--v3 .ig3-storage .ig3-lid-inset {
  fill: #f4f7f8;
  stroke: #a4b4bd;
  stroke-width: 2.4;
}

.ig--v3 .is-active .ig3-storage .ig-cyl,
.ig--v3 .is-active .ig3-storage .ig-cyl-top,
.ig--v3 .is-active .ig3-storage .ig3-storage-edge,
.ig--v3 .is-active .ig3-storage .ig3-storage-seams {
  stroke: var(--ig3-accent);
}

.ig--v3 .is-active .ig3-storage .ig3-lid-inset {
  stroke: #3fa3b7;
}

.ig--v3 .is-active .ig3-storage .ig3-activity {
  stroke-opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ig--v3 .ig3-compute .ig-chips.is-busy .ig-led {
    animation: none;
    opacity: 1;
  }

  .ig--v3 .ig3-compute *,
  .ig--v3 .ig3-storage * {
    transition: none;
  }
}
