/* Ostervale — page transition: three bands rise in the colour of the pressed sign and name the next page (styles). */
.ov-demo {
  min-height: 100vh;
  padding: var(--space-8) var(--space-7);
}
.ov-demo__title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-display);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
}
.ov-demo__lead {
  margin: 0 0 var(--space-6);
  max-width: 44ch;
  font-size: var(--fs-lead);
  color: var(--ink-2);
}
.ov-demo__signs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  max-width: 1120px;
}
.ov-sign {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 200px;
  padding: var(--space-5);
  border-radius: var(--radius-sign);
  background: var(--route-book);
  color: var(--route-ink);
  text-decoration: none;
  transition: box-shadow var(--t-light) var(--ease-secondary);
}
.ov-sign--paper { background: var(--route-not-here); }
.ov-sign__name {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-route);
  line-height: var(--lh-heading);
}
.ov-sign__cond { font-size: var(--fs-body); }
.ov-sign:hover { box-shadow: inset 0 0 0 2px var(--route-ink); }
.ov-demo__plain {
  grid-column: 1 / -1;
  justify-self: start;
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.ov-sign:focus-visible,
.ov-demo__plain:focus-visible {
  outline: var(--focus-ring) solid var(--focus);
  outline-offset: 3px;
}

.ov-veil {
  --ov-veil-face: var(--veil);
  --ov-veil-ink: var(--ink);
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  visibility: hidden;
}
.ov-veil[data-ov-veil-on] { visibility: visible; pointer-events: auto; }
.ov-veil__dim {
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0;
}
.ov-veil__band {
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(100% / 3 + 1px);
  background: var(--ov-veil-face);
  transform: translateY(101%);
  will-change: transform;
}
.ov-veil__band:nth-of-type(2) { left: 0; }
.ov-veil__band:nth-of-type(3) { left: calc(100% / 3); }
.ov-veil__band:nth-of-type(4) { left: calc(200% / 3); width: auto; right: 0; } 
.ov-veil__label {
  position: absolute;
  left: var(--space-7);
  right: var(--space-7);
  bottom: var(--space-7);
  color: var(--ov-veil-ink);
}
.ov-veil__mark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-mega);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  overflow: clip;
  overflow-clip-margin: 0.08em;
  padding-bottom: 0.08em;
}
.ov-veil__char {
  display: inline-block;
  transform: translateY(110%);
}
.ov-veil__to {
  margin: var(--space-3) 0 0;
  font-size: var(--fs-lead);
  font-weight: var(--fw-bold);
  transform: translateY(16px);
  opacity: 0;
}

html[data-ov-veil-in] .ov-veil { visibility: visible; }
html[data-ov-veil-in] .ov-veil__band { transform: translateY(0); }
html[data-ov-veil-in] .ov-veil__char { transform: translateY(0); }
html[data-ov-veil-in] .ov-veil__to { transform: none; opacity: 1; }
html[data-ov-veil-in="book"] .ov-veil { --ov-veil-face: var(--route-book); --ov-veil-ink: var(--route-ink); }
html[data-ov-veil-in="call"] .ov-veil { --ov-veil-face: var(--route-call); --ov-veil-ink: var(--route-ink); }
html[data-ov-veil-in="telehealth"] .ov-veil { --ov-veil-face: var(--route-telehealth); --ov-veil-ink: var(--route-ink); }
html[data-ov-veil-in="not-here"] .ov-veil,
html[data-ov-veil-in="paper"] .ov-veil { --ov-veil-face: var(--route-not-here); --ov-veil-ink: var(--route-ink); }

@media (max-width: 900px) {
  .ov-demo { padding: var(--space-7) var(--space-4); }
  .ov-demo__signs { grid-template-columns: 1fr; }
  .ov-sign { min-height: 140px; }
  .ov-veil__label { left: var(--space-4); right: var(--space-4); bottom: var(--space-6); }
}

@media (prefers-reduced-motion: reduce) {
  html[data-ov-veil-in] .ov-veil { visibility: hidden; }
}
