.compare {
  padding-block: var(--space-2xl);
  background: var(--color-bg-soft);
}

.compare__head {
  max-width: 62ch;
}

.compare__head h2 {
  margin-top: var(--space-sm);
}

.compare__graphic {
  margin-top: var(--space-2xl);
  position: relative;
}

/* ---- Cellular order field: a living particle system that turns
   scattered, dim "unguided" cells (left) into a bright, ascending
   DNA-like helix of ordered ones (right) — see js/compare-cells.js.
   Full-bleed: breaks out of .container's max-width/padding so the
   pattern runs true edge-to-edge across the viewport, regardless of
   how deep it's nested. */
.compare__canvas {
  display: block;
  width: 100vw;
  max-width: 100vw;
  margin-top: var(--space-md);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  aspect-ratio: 16 / 5;
}

@media (max-width: 720px) {
  .compare__canvas {
    aspect-ratio: 4 / 3;
  }
}

.compare__labels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-lg);
}

.compare__label h3 {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.compare__label--left h3 {
  color: var(--color-ink-soft);
}

.compare__label--right {
  text-align: right;
}

.compare__label--right h3 {
  color: var(--color-brand);
}

.compare__label p {
  margin-top: 0.6rem;
  max-width: 34ch;
}

.compare__label--right p {
  margin-left: auto;
}

@media (max-width: 720px) {
  .compare__labels {
    grid-template-columns: minmax(0, 1fr);
  }
  .compare__label--right {
    text-align: left;
  }
  .compare__label--right p {
    margin-left: 0;
  }
}

/* ---- Phone: the exact same chaos-to-order particle system as desktop,
   just reoriented to flow top (chaos) to bottom (order) instead of left
   to right — see the orientation switch in js/compare-cells.js. No
   rotation transform, no clipping stage, no card background: it sits
   directly in the section, same as the desktop version does. ---- */
@media (max-width: 640px) {
  .compare__graphic {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }

  .compare__labels {
    display: contents;
  }

  .compare__label--left {
    order: 1;
  }

  .compare__canvas {
    order: 2;
    width: 56%;
    max-width: 220px;
    aspect-ratio: 1 / 3;
    margin: 0 auto;
  }

  .compare__label--right {
    order: 3;
  }
}
