.story-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0);
  opacity: 0; transition: opacity 0.3s ease;
  z-index: 60;
}
.story-progress.is-visible { opacity: 1; }

/* Story: a tall track with one sticky stage; scroll position drives the scene.
   Tracks are shorter on mobile so two stories on one page do not feel endless. */
.story { position: relative; height: 480vh; }
#model-kerja { height: 340vh; }
@media (min-width: 900px) {
  .story { height: 600vh; }
  #model-kerja { height: 420vh; }
}
.stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; grid-template-rows: 48% 52%;
  padding: 104px var(--gutter) 88px;
}
@media (min-width: 900px) {
  .stage { grid-template-rows: none; grid-template-columns: minmax(320px, 38%) 1fr; align-items: center; gap: 40px; padding: 100px 120px 40px 40px; }
}

.stage-visual { grid-row: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
@media (min-width: 900px) { .stage-visual { grid-row: 1; grid-column: 2; height: 100%; } }
.stage-visual svg { width: 100%; height: 100%; max-height: 640px; overflow: visible; }

.stage-copy { grid-row: 2; position: relative; min-height: 0; }
@media (min-width: 900px) { .stage-copy { grid-row: 1; grid-column: 1; height: 440px; } }

.scene-copy {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.scene-copy.is-active { opacity: 1; transform: none; pointer-events: auto; }
.scene-num { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: 0.14em; color: var(--yellow); text-transform: uppercase; }
.scene-title { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 120%; margin: 12px 0 0; }
@media (min-width: 900px) { .scene-title { font-size: 40px; } }
.scene-body { margin: 14px 0 0; font-size: 15px; line-height: 150%; color: var(--white-soft); max-width: 460px; }
@media (min-width: 900px) { .scene-body { font-size: 18px; margin-top: 20px; } }

.scene-stats { display: flex; gap: 28px; margin-top: 20px; }
.scene-stats strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--yellow); }
@media (min-width: 900px) { .scene-stats strong { font-size: 36px; } }
.scene-stats span { font-size: 13px; color: var(--muted); }

.stage > nav { position: absolute; inset: 0; pointer-events: none; }
.chapters {
  pointer-events: auto;
  display: none; position: absolute; right: 36px; top: 50%; transform: translateY(-50%);
  list-style: none; margin: 0; padding: 0; text-align: right;
}
@media (min-width: 1200px) { .chapters { display: block; } .stage { padding-right: 240px; } }
.chapters-title {
  margin-bottom: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow);
}
.chapters button {
  all: unset; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 7px 0; font-size: 13px; color: var(--muted-dim); transition: color 0.3s ease;
}
.chapters button::after { content: ''; width: 18px; height: 2px; background: currentColor; transition: width 0.3s ease, background 0.3s ease; }
.chapters button:hover { color: var(--white); }
.chapters button.is-active { color: var(--white); }
.chapters button.is-active::after { width: 32px; background: var(--yellow); }
.chapters button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.skip-story { display: inline-block; margin-top: 18px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.skip-story:hover { color: var(--yellow); }


.scene-why { display: none; margin: 14px 0 0; font-size: 14px; line-height: 150%; color: var(--muted); max-width: 460px; }
.scene-why strong { color: var(--white-soft); font-weight: 600; }
@media (min-width: 900px) { .scene-why { display: block; } }

.stage-visual svg.is-compact .svg-label,
.stage-visual svg.is-compact .svg-detail { display: none; }

@media (prefers-reduced-motion: reduce) {
  .scene-copy { transition: none; }
}
