/* Love Vlog fireworks timeline — component styles.
   Only the three canvases the component adds are styled; nothing global, nothing on html/body. */
.fwtl-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;      /* clicks, selection and scrolling go to the page underneath */
  background: transparent;   /* the host's own gradient shows through */
}
/* light is added to whatever is behind it, the way real fireworks light up the sky */
.fwtl-glow,
.fwtl-fx { mix-blend-mode: screen; }

/* ------------------------------------------------------------------------------------------
   Love Vlog About page: chapter 04 -> 05 (about-fireworks-init.js). Everything here needs
   html[data-about-fireworks="on"], which the script sets only when the fireworks can run (motion
   on, canvas available); without JavaScript, under prefers-reduced-motion or after any failure
   the page keeps its approved layout and plain red thread.
   ------------------------------------------------------------------------------------------ */
html[data-about-fireworks="on"] {
  /* Open sky between 04 and 05: the prototype's band, and at least about one screen so that when
     the show is framed (05 near the bottom) chapter 04 has already passed under the header. */
  --fw-band: max(calc(clamp(380px, 58vh, 600px) - 130px), calc(100svh - 440px));
  /* Short scroll distance during which the framed show holds still (a plain CSS sticky: the page
     keeps scrolling normally, nothing is intercepted or snapped). */
  --fw-dwell: clamp(800px, 100svh, 1100px);
  /* Where the 05 number is held: its bottom about 64px above the bottom of the screen. */
  --fw-arrive: calc(100svh - var(--fw-05h, 76px) - 64px);
}
@media (max-width: 860px) {
  html[data-about-fireworks="on"] { --fw-band: max(calc(clamp(380px, 58vh, 600px) - 80px), calc(100svh - 380px)); }
}
html[data-about-fireworks="on"] .about-night > .about-ending { padding-top: var(--fw-band); }
/* The longer transition reaches the deep night sooner, like the prototype's dusk band. */
html[data-about-fireworks="on"] .about-night-bg-ending {
  background: linear-gradient(to bottom, rgba(74, 45, 94, 0) 0%, rgba(74, 45, 94, 0.5) 16%, #3a2650 34%, #2a1838 52%, #120b1f 82%, #07040f 100%);
}
/* The stage: the sky band plus the dwell distance. Its sticky child holds the canvases; the 05
   number is held by an identical sticky (same start, same distance), so both stay together and
   release together. Sticky creates a stacking context, so the stage itself is screen-blended
   onto the night sky (the canvases inside keep their own blend between each other). z-index 1:
   above the backgrounds (0), under every chapter's content (2). */
.about-fw-track { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--fw-band) + var(--fw-dwell)); pointer-events: none; }
.about-fw-stage {
  position: sticky; top: calc(var(--fw-arrive) - var(--fw-band)); height: var(--fw-band);
  z-index: 1; mix-blend-mode: screen; pointer-events: none;
}
.about-fw { position: absolute; left: 0; top: 0; width: 100%; height: 0; pointer-events: none; }
.about-fw-pin { position: relative; }
.about-fw-pin > .about-index { position: sticky; top: var(--fw-arrive); }
.about-fw-pin::after { content: ""; display: block; height: var(--fw-dwell); }
html:not([data-about-fireworks="on"]) .about-fw-track { display: none; }
