/* The story's selected text-led transitions and quotation interludes. */

/* Wide reading beats share a narrative column with the usual left-hand concept cards. */
.story-section.overlay-left .narrative-col { max-width: none; min-width: 0; width: 100%; margin-inline: 0; justify-self: stretch; }
.story-section .narrative-col .trigger { padding-inline: 88px; }

/* Explanation first, then the original evidence as a separate reading beat. */
.quote-interlude { box-sizing: border-box; width: min(760px, 100%); margin: 45svh auto 10svh; padding: 32px; background: rgba(250,249,245,.96); hyphens: none; }
.quote-interlude .quote-caption { font-size: 11px; line-height: 1.5; color: var(--tag, var(--muted)); margin: 0 0 26px; }
.quote-interlude blockquote { margin: 0; padding: 0; border: 0; font: 400 clamp(23px, 2.5vw, 34px)/1.3 var(--serif); color: var(--ink); text-wrap: pretty; }
.quote-interlude blockquote p { margin: 0; font-size: inherit; }
.quote-interlude blockquote p:last-child { margin-top: 18px; font: 500 13px/1.5 var(--sans); color: var(--muted); }
.quote-interlude blockquote + blockquote { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--hair); font-size: clamp(22px, 2vw, 28px); }
html.js .quote-group:not(.in) mark { background-size: 0% var(--mk-h); background-position: 0 var(--mk-y); }
.scene .stage-view { transition: opacity .4s ease; }
#cr-chain.quote-focus .stage-view { opacity: .12; }

/* No diagram in the signposting beats: the scene engine also clears their old artwork. */
.story-section .transition-step .narrative { width: min(680px, 100%); margin-inline: auto; padding: 24px 0; background: var(--paper); border: 0; box-shadow: none; hyphens: none; }
.story-section .transition-step .narrative h2 { font: 400 clamp(28px, 3vw, 40px)/1.18 var(--serif); letter-spacing: -.01em; margin-bottom: 24px; text-wrap: balance; }
.story-section .transition-step .narrative p { font-size: 20px; line-height: 1.5; }
.transition-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; list-style: none; padding: 0; margin: 32px 0 0; font: 500 17px/1.4 var(--sans); }
/* Reuse the p5-brush washes from coded phrases, compressed into soft, irregular underlines. */
.transition-list span { display: inline-block; padding-bottom: 12px; background: var(--stroke) 50% 100% / 108% 18px no-repeat; }
.transition-list .t-amber { --stroke: var(--spr-swash-amber-a); }
.transition-list .t-sky { --stroke: var(--spr-swash-sky-a); }
.transition-list .t-olive { --stroke: var(--spr-swash-olive-a); }
.transition-list .t-fig { --stroke: var(--spr-swash-fig-a); }
#cr-chain.is-interlude .stage-view { opacity: 0; }

/* Original contribution copy stays readable without JS; contributions.css adds the selected text-only artifact. */
.editorial-ending { box-sizing: border-box; max-width: 808px; margin-inline: auto; padding: clamp(64px, 8vw, 112px) 24px 0; }
.editorial-ending__intro, .contribution { max-width: var(--col); margin-inline: auto; }
.editorial-ending h2, .editorial-ending h3 { padding: 0; border: 0; }
.editorial-ending .anchorjs-link { display: none; }
.editorial-ending__intro h2 { font: 400 clamp(30px, 3vw, 42px)/1.15 var(--serif); letter-spacing: -.012em; margin: 0; }
.contribution { margin-top: clamp(48px, 6vw, 80px); }
.contribution .kicker { font-size: 11px; line-height: 1.4; margin: 0 0 16px; }
.contribution h3 { font: 400 clamp(25px, 2.5vw, 34px)/1.2 var(--serif); letter-spacing: -.012em; margin: 0 0 18px; text-wrap: balance; }
.contribution p:not(.kicker) { font-size: 19px; line-height: 1.6; margin: 0; }
.contribution section > p + p:not(.kicker) { margin-top: 1em; }

@media (max-width: 879px) {
  .story-section .narrative-col .trigger { padding-inline: 16px; }
}
@media (max-width: 575px) {
  .story-section.cr-column-screen .narrative-col .trigger { padding-inline: 16px; }
  .quote-interlude { padding: 24px 12px; }
  .transition-list { grid-template-columns: 1fr; gap: 16px; }
  .story-section .transition-step .narrative p { font-size: 18px; }
  .contribution p:not(.kicker) { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene .stage-view { transition: none; }
  html.js .quote-group:not(.in) mark { background-size: var(--mk-w) var(--mk-h); background-position: 50% var(--mk-y); }
}
