/* "Hai thành một". Static (no JS, reduced motion): three statements in a column on paper.
   Motion: the section is tall, its panel sticks, the stage turns night-navy and the inks glow (js/scroll-story.js);
   at step 3 the merged green floods the screen, then "Nói thật" rises over it in a growing paper circle. */
.story { position: relative; z-index: 1; padding: 0 var(--gutter) var(--space-section); }
.story-steps { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.story-line {
  max-width: 16ch; text-wrap: balance;
  font: 800 clamp(2rem, 4.6vw, 4.5rem)/1.05 var(--font-display); letter-spacing: -0.03em;
}
.story-sub { max-width: 40ch; margin-top: 0.85rem; color: var(--ink-soft); }
.story-progress { display: none; }

.motion .story { height: 460svh; padding: 0; color: var(--bg); }
.motion .story-sub { color: #B9C2D8; }   /* 10.6:1 on night navy */
.motion .story-panel {
  position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: flex-start;
  padding: calc(var(--header-h) + 2svh) var(--gutter) 0;
}
.motion .story-steps { display: block; position: relative; height: 16rem; }
.motion .story-step { position: absolute; inset: 0 0 auto; }
.motion .story-step + .story-step { opacity: 0; }
.motion .story-progress { display: flex; align-items: center; gap: 0.75rem; position: absolute; left: var(--gutter); bottom: 1.25rem; }
.story-count { font: 600 0.95rem/1 var(--font-body); min-width: 2.2em; font-variant-numeric: tabular-nums; }
.story-bar { display: flex; gap: 4px; }
.story-bar i { display: block; width: 2.25rem; height: 4px; border-radius: 2px; background: rgba(247, 248, 250, 0.22); overflow: hidden; position: relative; }
.story-bar i::after {
  content: ""; position: absolute; inset: 0; background: var(--client);
  transform: scaleX(var(--fill, 0)); transform-origin: left;
}
/* No WebGL on the dark stage: plain overlapping circles (multiply would turn black on navy). */
.stage.is-dark .circle { mix-blend-mode: normal; }
.stage.is-dark .circle--studio { opacity: 0.92; }

/* The flood: a plain green disc (a transition mask, not an illustration) placed on the merged ink and scaled up. */
.flood {
  position: absolute; left: 0; top: 0; width: 2px; height: 2px; border-radius: 50%;
  background: #3CA948; /* = the shader's paper x green, so the hand-off is seamless */
  transform: scale(0); will-change: transform;
}
/* "Nói thật" rides over the last screen of the stage and is revealed through a growing circle. */
.motion .honest { margin-top: -100svh; z-index: 3; background: var(--bg); }

@media (min-width: 960px) {
  .story { max-width: 50vw; }
  .motion .story { max-width: none; }
  .motion .story-panel { justify-content: center; padding: var(--header-h) var(--gutter) 0; }
  .motion .story-steps { width: min(44vw, 40rem); height: 22rem; }
  .motion .story-progress { bottom: 2rem; }
}
