/* Nanna Swirl — scroll-assembly section styles.
   Desktop: each beat is a tall scroll track; its stage pins to the screen and the clip
   scrubs with scroll. Mobile / reduced-motion (.no-scrub): beats collapse to single
   full-screen stills (poster-only), matching the site's Layer-1 fallback rule. */

#assembly { position: relative; background: var(--black); }

/* A beat: tall track (scroll room to scrub through the clip). */
.beat { position: relative; height: 320vh; }

.stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center;
  background-color: var(--black);
  background-image: var(--poster);
  background-size: cover; background-position: center;
}
.stage > video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; pointer-events: none;
}
.stage .scrim { position: absolute; inset: 0; background: var(--scrim-radial); }
.stage .scrim.bottom { background: var(--scrim-bottom); }

.cap {
  position: relative; width: 100%;
  max-width: var(--content-max); margin-inline: auto;
  padding-inline: var(--content-gutter);
}
.cap.center { text-align: center; }
.cap .k {
  font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-eyebrow);
  display: inline-flex; align-items: center;
}
.cap .k::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; margin-right: 12px;
}
.cap.center .k { display: inline-flex; }
.cap h2, .cap .assembly-h1 {
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: var(--fs-display-l); line-height: var(--lh-tight); letter-spacing: var(--ls-display);
  color: var(--warm-cream); margin: 16px 0 0; max-width: 760px;
  text-wrap: balance; font-variation-settings: var(--fraunces-display);
}
.cap.center h2, .cap.center .assembly-h1 { margin-inline: auto; }
.cap h2 .accent, .cap .assembly-h1 .accent { color: var(--banana-yellow); font-style: italic; }
.cap p {
  font-family: var(--font-body); font-size: var(--fs-lead); line-height: 1.45;
  color: var(--text-secondary); margin: 20px 0 0; max-width: 520px; text-wrap: pretty;
}
.cap.center p { margin-inline: auto; }

/* Cream pill CTA on the finished beat (matches the design's Button `cream`/`lg`). */
.assembly-cta {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 40px; padding: 19px 40px; border-radius: var(--radius-pill);
  background: var(--btn-cream-bg); color: var(--btn-cream-text);
  font-family: var(--font-body); font-weight: var(--fw-semibold); font-size: 17px;
  letter-spacing: 0.01em; text-decoration: none; border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), filter var(--dur-fast) var(--ease-out);
}
.assembly-cta:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* Scroll progress bar for the assembly stretch. */
#assembly-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--gradient-gold); z-index: 60; pointer-events: none;
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
}
#assembly-bar.on { opacity: 1; }

/* ---- Poster-only fallback: no scrubbing (mobile / reduced-motion / touch) ---- */
.no-scrub .beat { height: auto; }
.no-scrub .stage { position: relative; top: auto; height: 100vh; min-height: 560px; }
.no-scrub #assembly-bar { display: none; }

@media (max-width: 640px) {
  .cap h2, .cap .assembly-h1 { font-size: var(--fs-display-m); }
}
