/* Optional CSS animation; intro.js only decides whether this visit plays it.
   Switch off per page: <html data-intro="disabled">.
   Switch off site-wide: keep only .brand-intro { display: none; } in this file.
   The HTML `hidden` attribute also hides the layer if this CSS fails to load. */
.brand-intro {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  html[data-intro="enabled"][data-intro-state="play"] .brand-intro {
    --intro-duration: 1.5s;
    display: grid;
    place-items: center;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #000000;
    /* Decorative only: never intercept clicks or lock the page. */
    pointer-events: none;
    animation: gmv-intro-exit var(--intro-duration) ease-in-out both;
  }

  .brand-intro__emblem {
    width: clamp(120px, 18vw, 240px);
    max-width: 55vw;
    height: auto;
    max-height: 55vh;
    object-fit: contain;
    animation: gmv-intro-emblem var(--intro-duration) ease-in-out both;
  }

  /* Keyboard access takes priority over the decorative sequence. */
  html[data-intro="enabled"][data-intro-state="play"] body:focus-within .brand-intro {
    display: none;
  }
}

@keyframes gmv-intro-emblem {
  0%, 6% { opacity: 0; }
  24%, 62% { opacity: 1; }
  /* Finish fading the emblem before the black background starts to fade. */
  72%, 100% { opacity: 0; }
}

@keyframes gmv-intro-exit {
  0%, 80% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
