/* The selected paper-line composition is shared by every page. */
body[data-background-page]:not([data-proposal-page]) .site-header {
  background: rgb(255 255 255 / 91%);
}
body[data-background-page]:not([data-proposal-page]) .business-orbit-label {
  text-shadow: 0 1px 8px rgb(255 255 255 / 80%);
}
body[data-background-page]:not([data-proposal-page]) .business-threads {
  opacity: .35;
}

.site-paper-background > .fold-lines-art,
.site-background-study .fold-lines-art {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  user-select: none;
}

.fold-lines-art .fold-line-orbit,
.fold-lines-art .fold-line-contact,
.fold-lines-art .fold-line-dot {
  transform-box: fill-box;
  transform-origin: center;
}

/* Hide only the changing marks until the prior page's geometry is restored.
   The paper base remains visible; the timeout keeps a failed script harmless. */
html[data-fold-lines-js="true"] .fold-lines-art:not([data-line-ready="true"]) [data-fold-path],
html[data-fold-lines-js="true"] .fold-lines-art:not([data-line-ready="true"]) .fold-line-hoppers {
  opacity: 0;
  animation: fold-lines-fallback .01s .8s forwards;
}

@keyframes fold-lines-fallback { to { opacity: 1; } }

@media (max-width: 719px) {
  .site-paper-background > .fold-lines-art,
  .site-background-study .fold-lines-art {
    position: absolute;
    width: 1160px;
    height: 100%;
    left: calc(50% - 650px);
  }

  .site-paper-background:has(> .fold-lines-art)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(255 255 255 / 25%), rgb(255 255 255 / 56%) 25%, rgb(255 255 255 / 12%) 65%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-fold-lines-js="true"] .fold-lines-art:not([data-line-ready="true"]) [data-fold-path],
  html[data-fold-lines-js="true"] .fold-lines-art:not([data-line-ready="true"]) .fold-line-hoppers {
    opacity: 1;
    animation: none;
  }
}

@media print { .site-paper-background:has(> .fold-lines-art) { display: none; } }
