/* How it works, as built on PR #3 (codex/oem-messaging-preserve-experience, uncommitted there on
   2026-11-09): the rules its page takes from PR #3's styles.css. stories.css and handover.css hold the rest. */

/* The homepage's squared paper (assets/oem/comparison.css), behind the three problems and their answers. The
   drawings keep their own ground here, so the paper shows round them and not through them. */
.chasm {
  --grid-line: rgb(255 255 255 / 0.05);
  --grid-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='884' height='312'%3E%3Cg fill='%23fff' fill-opacity='0.028'%3E%3Crect x='53' y='1' width='51' height='51'/%3E%3Crect x='313' y='1' width='51' height='51'/%3E%3Crect x='417' y='53' width='51' height='51'/%3E%3Crect x='729' y='1' width='51' height='51'/%3E%3Crect x='209' y='53' width='51' height='51'/%3E%3Crect x='521' y='53' width='51' height='51'/%3E%3Crect x='833' y='53' width='51' height='51'/%3E%3Crect x='1' y='105' width='51' height='51'/%3E%3Crect x='625' y='105' width='51' height='51'/%3E%3Crect x='105' y='157' width='51' height='51'/%3E%3Crect x='781' y='157' width='51' height='51'/%3E%3Crect x='261' y='209' width='51' height='51'/%3E%3Crect x='573' y='209' width='51' height='51'/%3E%3Crect x='365' y='157' width='51' height='51'/%3E%3C/g%3E%3C/svg%3E");
  position: relative;
  isolation: isolate;
}

.chasm::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px) 50% 0 / 3.25rem 3.25rem,
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px) 50% 0 / 3.25rem 3.25rem,
    var(--grid-fill) 50% 0 / 55.25rem 19.5rem;
  -webkit-mask: linear-gradient(to bottom, transparent, #000 5rem, #000 calc(100% - 7rem), transparent);
  mask: linear-gradient(to bottom, transparent, #000 5rem, #000 calc(100% - 7rem), transparent);
  pointer-events: none;
}

@media (forced-colors: active) {
  .chasm::before {
    display: none;
  }
}

/* Three problems under the intro: each one's copy beside its story (stories.css), drawn before OTTO and
   turning to with OTTO as it scrolls up the screen. The first and third read left to right; the middle
   one flips. */

.rift-intro {
  align-items: center;
  margin-inline: auto;
  text-align: center;
}

.rift-intro .lede {
  max-width: 52ch;
  text-wrap: balance;
}

.rift {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.rift + .rift {
  margin-top: clamp(4.5rem, 10vw, 8rem);
}

.rift-copy {
  display: grid;
  gap: 0.85rem;
  max-width: 38rem;
}

.rift-copy p {
  max-width: 46ch;
}

.rift-copy > p:not(.rift-cost) {
  color: var(--muted);
}

.rift-cost {
  display: grid;
  gap: 0.25rem;
  color: var(--ink);
  line-height: 1.5;
}

@media (min-width: 64rem) {
  .rift {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
  }

  .rift.is-flip .rift-copy {
    order: 2;
  }

  .rift.is-flip .story {
    order: 1;
  }
}

.how-next-in {
  display: grid;
  justify-items: start;
  gap: 1.75rem;
}

.how-next-in h2 {
  max-width: 22ch;
  text-wrap: balance;
}
