/* Valduc homepage intro, loaded with valduc-intro.js on the homepage only. The brewery's slate covers the page from
   the first frame, then the full logo is inked on it. If the script stops before the logo is drawn, the cover lifts
   and the header logo returns on their own. */
[data-theme="affiche"][data-producer-id="valduc"] {
  /* The same slate and warm glow as the page headers, so the intro reads as part of the page. */
  --intro-slate: var(--slate), radial-gradient(ellipse 60% 70% at 50% 120%, #3d2814, transparent 70%), #151515;
  &.v-intro:not(.v-intro-ready)::before { content: ''; position: fixed; inset: 0; z-index: 100; background: var(--intro-slate); animation: v-intro-lift 0s 3s forwards; }
  &.v-intro .header .brand-logo { opacity: 0; }
  &.v-intro:not(.v-intro-ready) .header .brand-logo { animation: v-intro-show 0s 3s forwards; }
  &:is(.v-intro, .v-intro-waiting):not(.v-intro-lifting) :is(.a-film-poster, .a-hero.a-filmed .hero-content > *) { animation-play-state: paused; }
  .v-intro-curtain { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; pointer-events: none; }
  .v-intro-slate { position: absolute; inset: 0; background: var(--intro-slate); }
  .v-intro-lockup { position: relative; }
  /* The two lines traced from the original logo sit under the wordmark in their original proportions. The lockup
     is raised by the wordmark's transparent top margin so the visible logo is centred. */
  .v-intro-lockup { --width: min(80vw, 640px); display: grid; justify-items: center; width: var(--width); margin-top: calc(var(--width) * -.055); }
  .v-intro-mark { display: block; width: 100%; height: auto; aspect-ratio: 1942 / 809; overflow: visible; will-change: translate, scale; }
  .v-intro-tagline { display: grid; width: 65.1%; margin-top: 4.5%; translate: -.7% 0; }
  .v-intro-tagline > span { aspect-ratio: 2692 / 298; background: #fff; opacity: 0; mask: url('/theme/valduc-tagline-df0f8e94031d127c5c435901.svg') 0 0 / 100% 200% no-repeat; }
  .v-intro-tagline > span + span { mask-position: 0 100%; }
}
@keyframes v-intro-lift { to { visibility: hidden; } }
@keyframes v-intro-show { to { opacity: 1; } }
