/* The title occupies real document space even when the device uses normal
   flow. Only a pair of fitted, pinned chapters gets a viewport projection. */
.chapter-break {
  --chapter-ink: #98e9de;
  --headline-size: min(14.8vw, 24svh, 13.5rem);
  display: grid;
  position: relative;
  min-block-size: 54svh;
  pointer-events: none;
}
.vision > .chapter-break {
  --headline-size: min(25vw, 31svh, 20rem);
  min-block-size: 32svh;
}
.insights > .chapter-break { --chapter-ink: #a6b9ff; }
.structure > .chapter-break { --chapter-ink: #9edcf5; }
.sales > .chapter-break { --chapter-ink: #97edcf; }
.delivery > .chapter-break { --chapter-ink: #c0c4fa; }
.commercial > .chapter-break {
  --chapter-ink: #9aecdb;
  --headline-size: min(10.6vw, 19svh, 9.7rem);
}
.chapter-break-inner {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 1.5rem var(--gutter);
  min-inline-size: 0;
  text-align: center;
}
.chapter-headline {
  display: block;
  color: var(--paper);
  font-size: var(--headline-size);
  font-weight: 680;
  line-height: .93;
  letter-spacing: -.055em;
  word-spacing: .025em;
  text-wrap: balance;
}
.chapter-line { display: block; }
.chapter-line + .chapter-line { color: var(--chapter-ink); }
.vision .chapter-headline {
  color: #ccf7ec;
  text-shadow: 0 .035em .2em #07112380;
}
@media screen and (prefers-reduced-motion: no-preference) {
  /* Short screens keep long steps in document flow. Give the chapter title
     a screen of its own as the preceding paragraph scrolls out. */
  .flow-chapter > .chapter-break,
  .flow-chapter + .chapter > .chapter-break { min-block-size: 100svh; }
  .chapter-break.is-cinematic .chapter-break-inner {
    position: fixed;
    inset: 0;
    z-index: 4;
  }
  .chapter-break.is-animated .chapter-break-inner {
    visibility: hidden;
  }
  .chapter-break.is-projecting .chapter-break-inner {
    visibility: visible;
  }
  .chapter-break.is-projecting .chapter-break-inner {
    /* Apply the wipe outside the line box so descenders keep their ink.
       The particle renderer paints the complementary side of this edge. */
    mask-image: linear-gradient(90deg, transparent calc(50% + var(--ink-cut) - var(--ink-soft)),
      black calc(50% + var(--ink-cut) + var(--ink-soft)));
  }
}
@media print {
  .chapter-break { display: none; }
}
