.story-root {
  scroll-padding-top: var(--site-header-height);
  scroll-snap-type: y proximity;
}

.story-root[data-story-travel] { scroll-snap-type: none; }

.story-screen {
  display: grid;
  min-height: calc(100vh - var(--site-header-height));
  min-height: calc(100svh - var(--site-header-height));
  align-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.story-hero { grid-template-rows: 1fr auto; }
.story-hero > .hero { display: grid; align-items: center; }
.story-hero .hero-inner { min-height: 0; padding-block: clamp(22px, 5vh, 64px); }
.story-hero .hero-copy h1, .story-library .library-copy h2 { width: fit-content; }
.story-screen > .section { padding-block: clamp(28px, 6vh, 78px); }
.story-products, .story-install-faq { --field-origin: 50% 6%; }
.story-workflow .workflow { border: 0; background: none; }
.story-library, .story-advantages { --field-origin: 84% 26%; }
.story-contact { --field-origin: 72% 0%; grid-template-rows: 1fr auto; }
.story-contact .contact-section { display: grid; align-items: center; padding-block: clamp(32px, 7vh, 95px); }

.story-install-faq { border-block: 1px solid #1c2a3e; }
.story-install-faq .faq { align-items: start; }

.story-canvas { position: fixed; z-index: 9; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.story-root[data-story-drawing] [data-draw-pending] {
  opacity: 0;
  pointer-events: none;
}
.story-root[data-story-drawing] [data-draw-running] {
  clip-path: var(--draw-clip, inset(0 100% 0 0));
  opacity: 1;
  will-change: clip-path;
}
.story-root[data-story-drawing] [data-draw-pending]:is(:focus-visible, :has(:focus-visible)) {
  clip-path: none;
  opacity: 1;
  pointer-events: auto;
}

.story-rail { position: fixed; z-index: 10; }
.story-rail {
  top: 50%;
  right: max(10px, env(safe-area-inset-right));
  display: grid;
  gap: 1px;
  transform: translateY(-50%);
}
.story-rail a { position: relative; display: grid; min-width: 27px; min-height: 30px; place-items: center; }
.story-rail a::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid #91a6cd;
  background: #18243c;
  content: "";
  transition: width .18s, height .18s, background .18s;
}
.story-rail a[aria-current="location"]::before { width: 9px; height: 9px; border-color: #b0d7ff; background: #a6c4ff; box-shadow: 0 0 9px #729cfa80; }
.story-rail a span {
  position: absolute;
  right: 31px;
  padding: 4px 9px;
  border: 1px solid #3b5277;
  border-radius: 5px;
  color: #dce9ff;
  background: #111c30;
  font-size: .81rem;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
}
.story-rail a:focus-visible span, .story-rail a:hover span { opacity: 1; }
.story-main, .story-page .site-header { isolation: auto; }
@media (min-width: 941px) and (max-height: 840px) {
  .story-products .section-head { margin-bottom: 21px; }
  .story-products .feature-panel { min-height: 0; padding-block: clamp(17px, 3.6vh, 33px); }
  .story-products .feature-tab { min-height: 53px; }
}
@media (max-width: 655px) {
  .story-screen > .section { padding-block: 34px; }
  .story-hero .hero-inner { padding-block: 27px; }
  .story-rail { right: 1px; }
  .story-rail a { min-width: 17px; min-height: 27px; }
  .story-rail a span { right: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-root { scroll-behavior: auto; }
  .story-rail a::before { transition: none; }
}
@media (forced-colors: active) {
  .story-canvas { display: none; }
}
