/* Map My Lineage opening sequence: the overlay that covers the page for about three seconds on the first page
   of a visit. Built by the motion studio; see README.md in this folder. */
.mml-opening {
  --mml-opening-bg: #F5F0E6;     /* --paper */
  --mml-opening-arch: #0B2330;
  --mml-opening-gold: #B28C43;
  --mml-opening-word: #0B2330;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mml-opening-bg);
  pointer-events: none;          /* never stands between a visitor and the site */
  /* the safety net: if the script never runs, the overlay leaves by itself */
  animation: mml-opening-fallback 0.45s ease 1.4s forwards;
}
.mml-opening.is-running { animation: none; }
.mml-opening--dark {
  --mml-opening-bg: #0E121B;     /* --night */
  --mml-opening-arch: #FDF8F1;
  --mml-opening-word: #FDF8F1;
}
.mml-opening__logo { display: block; width: min(560px, 76vw); height: auto; overflow: visible; }
.mml-opening__arch { fill: var(--mml-opening-arch); }
.mml-opening__path { fill: var(--mml-opening-gold); }
.mml-opening__word { fill: var(--mml-opening-word); }
@keyframes mml-opening-fallback { to { opacity: 0; visibility: hidden; } }
/* returning in the same session, or asking for less motion: no overlay at all */
html.mml-opening-skip .mml-opening { display: none; }
@media (prefers-reduced-motion: reduce) { .mml-opening { display: none; } }
