/* The case is editorial; the diagram represents relationships, not a product screen. */
.case-page {
  background: #0b131c;
  --story-muted: #b6c6d1;
  --story-rule: #8eb5cf47;
}

.case-story {
  max-width: 1120px;
  padding-block: clamp(128px, 12vw, 170px) clamp(56px, 7vw, 96px);
}

.story-intro { max-width: 810px; }
.story-intro h1 {
  margin: 20px 0;
  font-size: clamp(40px, 6vw, 82px);
  font-weight: 430;
  letter-spacing: -.055em;
  line-height: 1.03;
}
.story-intro h1 span { color: #b5c9d7; }
.story-intro > p:last-child {
  max-width: 61ch;
  color: var(--story-muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.65;
}

.story-body {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr);
  gap: clamp(40px, 7vw, 100px);
  margin: clamp(32px, 6vw, 74px) 0;
}
.story-map {
  align-self: start;
  margin: 0;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--story-rule);
  border-radius: 8px;
  background: #112332;
}
.story-map figcaption { color: #a8c7db; font-size: 14px; }
.story-map ol { list-style: none; margin: 24px 0 0; padding: 0; }
.story-map li {
  position: relative;
  padding: 0 0 20px 25px;
  font-size: 17px;
  line-height: 1.4;
}
.story-map li:last-child { padding-bottom: 0; }
.story-map li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #9dbfd4;
}
.story-map li:last-child::before { background: #9dd5fa; }
.story-map li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 4px;
  top: calc(.42em + 9px);
  bottom: -.42em;
  border-left: 1px solid var(--story-rule);
}
.story-chapters section {
  padding-block: 22px;
  border-top: 1px solid var(--story-rule);
  scroll-margin-top: 95px;
}
.story-chapters h2 { margin: 0 0 10px; font-size: clamp(23px, 2.7vw, 32px); letter-spacing: -.035em; line-height: 1.15; }
.story-chapters p { max-width: 58ch; color: var(--story-muted); font-size: 16px; line-height: 1.7; }
.story-review { border-left: 2px solid #749bb3; padding-left: 14px; max-width: 70ch; font-size: 14px; color: var(--story-muted); line-height: 1.6; }
.story-next { margin-top: 20px; }

@media (max-width: 700px) {
  .story-body { grid-template-columns: 1fr; gap: 32px; }
  .case-story { padding-top: 112px; }
}
