/* Calderlock — page transition: ink strips rise and name the next page (styles). */
.cl-veil {
  --cl-veil-z: 90;
  position: fixed;
  inset: 0;
  z-index: var(--cl-veil-z);
  display: flex;
  pointer-events: none;
  visibility: hidden;
}

.cl-veil.is-on {
  visibility: visible;
  pointer-events: auto;
  cursor: progress;
}

.cl-veil__strip {
  flex: 1 1 0;
  height: 100%;
  margin-right: -1px;
  background: var(--veil);
  transform: translateY(100%);
  will-change: transform;
}
.cl-veil__strip:last-of-type { margin-right: 0; }

.cl-veil__label {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-display);
  white-space: nowrap;
  opacity: 0;
}

html.cl-veil-arrive .cl-veil { visibility: visible; }
html.cl-veil-arrive .cl-veil__strip { transform: translateY(0); }
html.cl-veil-arrive body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 89;
  background: var(--veil);
}

@media (prefers-reduced-motion: reduce) {
  .cl-veil { display: none; }
  html.cl-veil-arrive body::after { content: none; }
}
