/* Approved V37 story overlay: bold white text, black outlines, no panels. */
.lb-live-home-preview .lb-scroll-story__intro::before,
.lb-live-home-preview .lb-scroll-story__opening-grade,
.lb-live-home-preview .lb-scroll-story__timeline::before,
.lb-live-home-preview .lb-scroll-story__progress { display: none; }
.lb-live-home-preview .lb-scroll-story__intro {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  bottom: calc(max(86px, 10vh) + var(--lb-story-bottom-gap, 0px));
}
.lb-live-home-preview .lb-scroll-story__intro .lb-scroll-story__headline,
.lb-live-home-preview .lb-scroll-story__intro[data-lb-phase-intro="0"] .lb-scroll-story__headline {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 4.4vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  color: #fff;
  paint-order: stroke fill;
  -webkit-text-stroke: 2.2px #000;
  text-shadow: 0 2px 4px rgba(0,0,0,.85);
}
.lb-live-home-preview .lb-scroll-story__intro .lb-scroll-story__lede {
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.4vw, 1.4rem);
  line-height: 1.45;
  margin-top: 18px;
  color: #fff;
  paint-order: stroke fill;
  -webkit-text-stroke: 1.7px #000;
  text-shadow: 0 1px 3px #000;
}
.lb-live-home-preview .lb-scroll-story__timeline-fill { background: #fff; }
.lb-live-home-preview .lb-scroll-story__timeline-thumb { background: #fff; border-color: #000; }
.lb-live-home-preview .lb-scroll-story__timeline-labels button,
.lb-live-home-preview .lb-scroll-story__timeline-labels button:is(:hover,:focus-visible,.is-active) {
  color: #fff; border-color: transparent; background: transparent;
  paint-order: stroke fill; -webkit-text-stroke: 2px #000; text-shadow: 0 2px #000;
}
.lb-live-home-preview .lb-scroll-story__timeline-labels button.is-complete .lb-scroll-story__timeline-number { color: #fff; }
.lb-live-home-preview .lb-scroll-story__advance {
  position: absolute; z-index: 12; bottom: calc(max(14px, env(safe-area-inset-bottom)) + var(--lb-story-bottom-gap, 0px));
  left: 50%; transform: translateX(-50%); width: 56px; height: 56px;
  display: grid; place-items: center; padding: 4px; border: 0;
  background: transparent; color: #fff; cursor: pointer;
}
.lb-live-home-preview .lb-scroll-story__advance[hidden] { display: none; }
.lb-live-home-preview .lb-scroll-story__advance svg {
  width: 40px; height: 48px; fill: none; stroke: currentColor; stroke-width: 4;
  stroke-linecap: square; stroke-linejoin: miter;
  filter: drop-shadow(0 2px 1px #000) drop-shadow(0 -1px 1px #000);
  animation: lb-story-scroll-cue 1.4s ease-in-out infinite;
}
.lb-live-home-preview .lb-scroll-story__advance:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@keyframes lb-story-scroll-cue { 0%,100% { transform: translateY(-4px); } 50% { transform: translateY(4px); } }
@media (max-width: 720px) {
  .lb-live-home-preview .lb-scroll-story__intro,
  .lb-live-home-preview .lb-scroll-story__intro[data-lb-phase-intro="0"] { bottom: calc(72px + var(--lb-story-bottom-gap, 0px)); }
  .lb-live-home-preview .lb-scroll-story__intro .lb-scroll-story__headline,
  .lb-live-home-preview .lb-scroll-story__intro[data-lb-phase-intro="0"] .lb-scroll-story__headline { font-size: clamp(1.75rem, 7.7vw, 2.5rem); -webkit-text-stroke: 2px #000; }
  .lb-live-home-preview .lb-scroll-story__intro .lb-scroll-story__lede { font-size: 1rem; line-height: 1.35; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-live-home-preview .lb-scroll-story__advance svg { animation: none; }
}

/* Navigation titles occupy the full row without numerical prefixes. */
.lb-live-home-preview .lb-scroll-story__timeline-labels button { grid-template-columns: minmax(0, 1fr); }

/* Frame-driven transitions finish with the camera, including reversals. */
.lb-live-home-preview .lb-scroll-story__intro,
.lb-live-home-preview .lb-scroll-story__intro.is-active,
.lb-live-home-preview .lb-scroll-story__detail-loop,
.lb-live-home-preview .lb-scroll-story__detail-loop.is-active { transition: none; }
.lb-scroll-story__glue-base {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 3; display: none; pointer-events: none;
}

/* Phase four: quiet edge shading replaces the scan, corners and crosshair. */
.lb-scroll-story__core-vignette {
  position: absolute; inset: 0; z-index: 8; pointer-events: none;
  background: radial-gradient(ellipse at 60% 45%, transparent 48%, rgba(8, 24, 24, .16) 100%);
  opacity: 0; animation: none; transition: none;
}
.lb-scroll-story[data-xray-active="true"] .lb-scroll-story__core-vignette { opacity: 1; }
