/* ==========================================================================
   Network — "Ciągłe doskonalenie"
   A neural network that builds itself out of dots and thin lines (assets/js/network.js), beside the
   statement that we train AI on the client's own business. Bare section, no panel: the canvas has no
   frame, it simply sits on the page. Three plain steps under it say what the animation shows.
   ========================================================================== */

.network__layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.network__figure {
  position: relative;
  min-width: 0;
}

.network__canvas {
  display: block;
  width: 100%;
  height: clamp(20rem, 13rem + 22vw, 31rem);
}

.network__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(3rem, 2rem + 4vw, 5.5rem);
}

.network__step {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-line);
}

.network__step-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

.network__step-title {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 400;
  font-variation-settings: "opsz" 32;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.network__step-text {
  max-width: 34ch;
  color: var(--color-text-muted);
  line-height: 1.6;
  text-wrap: pretty;
}

@media (max-width: 1023.98px) {
  .network__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .network__steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .network__step-text {
    max-width: 52ch;
  }
}

@media (forced-colors: active), print {
  .network__canvas {
    display: none;
  }
}
