/* Short illustrated passages. The figures remain in normal reading flow. */
.narrative.narrative-weave { max-width: 960px; margin: 60px auto 64px; padding: 0 24px; }
.narrative-weave .narrative-opening { display: block; max-width: 830px; padding: 0 0 34px; }
.narrative-weave .narrative-opening .story-heading { margin-bottom: 20px; }
.narrative-weave .story-heading h2 { font-size: 30px; line-height: 1.5; }
.narrative-weave .narrative-intro .opening-lead { margin-bottom: 16px; font-size: 18px; line-height: 1.9; }
.narrative-weave .narrative-section { display: block; padding: 32px 0; }
.narrative-weave .narrative-section:last-child { padding-bottom: 0; }
.narrative-weave .narrative-section > .story-heading { display: block; min-height: 0; margin: 0 0 22px; }
.narrative-weave .narrative-section > .story-heading:before { position: static; margin: 0 0 13px; width: 24px; }
.narrative-weave .narrative-section h3 { padding: 0; max-width: none; font-size: 25px; line-height: 1.5; }
.narrative-weave .story-beat { display: flow-root; }
.narrative-weave .story-beat + .story-beat { margin-top: 22px; }
.narrative-weave .story-copy p { font-size: 17px; line-height: 1.95; margin-bottom: 14px; }
.narrative-weave .story-copy p:last-child { margin-bottom: 0; }
.narrative-weave a[href="/questions/huairou-D02"] { white-space: nowrap; }
.narrative-weave .story-figure {
  float: right;
  width: 194px;
  max-width: 31%;
  margin: 0 0 8px 34px;
  aspect-ratio: 22 / 17;
  color: var(--figure-tone, var(--story-tone));
}
.narrative-weave .story-beat--reverse .story-figure { float: left; margin: 0 34px 8px 0; }
.narrative-weave .story-figure--preparation { width: 180px; aspect-ratio: 1; }
.narrative-weave .story-figure:before { inset: -8px; opacity: .5; }
.narrative-weave .story-figure:hover:before { opacity: .9; }
.narrative-weave .story-figure svg { opacity: .94; }
.narrative-weave .story-map-link { margin: 22px 0 0; }
.narrative-weave .story-outro { margin-top: 22px; }
.narrative-weave .story-outro p { color: #cadde8; }
@media (min-width: 601px) {
  .narrative-weave .story-beat { display: grid; grid-template-columns: minmax(0, 1fr) 194px; column-gap: 30px; align-items: center; }
  .narrative-weave .story-beat > .story-copy { grid-column: 1; grid-row: 1; }
  .narrative-weave .story-beat > .story-figure { grid-column: 2; grid-row: 1; float: none; max-width: 100%; margin: 0; justify-self: center; }
  .narrative-weave .story-beat--reverse { grid-template-columns: 194px minmax(0, 1fr); }
  .narrative-weave .story-beat--reverse > .story-copy { grid-column: 2; }
  .narrative-weave .story-beat--reverse > .story-figure { grid-column: 1; }
}

/* Each illustration plays a single short sequence when it enters view. */
.narrative-weave .story-figure .ray,
.narrative-weave .story-figure .scan { animation: none; }
.narrative-weave .scene-packet { opacity: 0; stroke-dasharray: .08 .92; stroke-width: 2.8; }
.narrative-weave .scene-scan { opacity: 0; }
.narrative-weave .scene-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.narrative-weave .scene-focus { transform-box: fill-box; transform-origin: center; }
.narrative-weave .story-figure.is-playing .ray { animation: weave-ray 3.8s ease-out 1; }
.narrative-weave .story-figure.is-playing .scene-packet { animation: weave-packet 4.2s ease-in-out 1; }
.narrative-weave .story-figure.is-playing .scene-draw { animation: weave-draw 3.8s ease-in-out 1; }
.narrative-weave .story-figure.is-playing .scene-scan { animation: weave-scan 3.8s ease-in-out 1; }
.narrative-weave .story-figure.is-playing .scene-channel,
.narrative-weave .story-figure.is-playing .scene-tile { animation: weave-channel 3.3s ease-out var(--scene-delay, 0s) 1; }
.narrative-weave .story-figure.is-playing .scene-focus { animation: weave-focus 3.8s ease-out 1; }
.story-tab-hidden .narrative-weave .story-figure * { animation-play-state: paused !important; }
@keyframes weave-ray { from { stroke-dashoffset: 36; opacity: .25; } 35% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes weave-packet { 0% { stroke-dashoffset: .9; opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: -.2; opacity: 0; } }
@keyframes weave-draw { 0% { stroke-dashoffset: 1; opacity: .3; } 70%, 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes weave-scan { 0% { transform: translateX(-75px); opacity: 0; } 12%, 78% { opacity: .65; } 100% { transform: translateX(75px); opacity: 0; } }
@keyframes weave-channel { 0%, 12% { opacity: .16; } 65%, 100% { opacity: 1; } }
@keyframes weave-focus { 0% { transform: scale(1.5); opacity: .1; } 60%, 100% { transform: scale(1); opacity: .7; } }
@media (max-width: 900px) {
  .narrative.narrative-weave { padding: 0 24px; }
  .narrative-weave .story-figure { width: 190px; }
  .narrative-weave .story-figure--preparation { width: 168px; }
}
@media (max-width: 600px) {
  .narrative.narrative-weave { margin-top: 46px; padding: 0 6px; }
  .narrative-weave .narrative-opening { padding-bottom: 28px; }
  .narrative-weave .story-heading h2 { font-size: 26px; }
  .narrative-weave .narrative-intro .opening-lead { font-size: 17px; }
  .narrative-weave .narrative-section { padding: 28px 0; }
  .narrative-weave .narrative-section h3 { font-size: 23px; }
  .narrative-weave .story-copy p { font-size: 15px; line-height: 1.95; }
  .narrative-weave .story-figure { width: 130px; max-width: 40%; margin: 4px 0 8px 18px; }
  .narrative-weave .story-beat--reverse .story-figure { margin: 4px 18px 8px 0; }
  .narrative-weave .story-figure--preparation { width: 120px; }
  .narrative-weave .story-beat + .story-beat { margin-top: 22px; }
  .narrative-weave .story-map-link { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .narrative-weave .story-figure * { animation: none !important; }
  .narrative-weave .story-figure svg { transform: none; transition: none; }
}
