/* ==========================================================================
   Intro — the logo film plays full screen; its logo is handed to a real logo
   laid over it, which flies to the header while the ground falls to black.
   Film and logo boxes are positioned in px by src/intro/intro.js.
   ========================================================================== */

.intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  /* the film's first colour until it is decoding; then replaced every frame
     by the film's own edge colour */
  background: #ef192e;
  overflow: hidden;
}
.intro::after {                     /* the ground turns to night */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  opacity: 0;
  transition: opacity 1s cubic-bezier(.76, 0, .24, 1);
  pointer-events: none;
}
.intro.is-leaving::after { opacity: 1; }

.intro__film {
  position: absolute;
  display: block;
  object-fit: fill;
  transition: opacity .5s ease;
}
.intro.is-handover .intro__film { opacity: 0; }

/* the logo box has no transform of its own, so the flight (a FLIP transform
   from intro.js) and the hand-over (on the inks) never fight */
.intro__logo {
  position: absolute;
  z-index: 2;
  aspect-ratio: 1200 / 210;
  transform-origin: 0 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.intro.is-handover .intro__logo { opacity: 1; }
.intro__logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 1s cubic-bezier(.76, 0, .24, 1);
}
.intro__ink--light { opacity: 0; }
.intro.is-leaving .intro__ink--dark { opacity: 0; }
.intro.is-leaving .intro__ink--light { opacity: 1; }

.intro__skip {
  position: absolute;
  right: clamp(16px, 2.4vw, 40px);
  bottom: clamp(16px, 3vh, 36px);
  z-index: 3;
  appearance: none;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .18);
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #333;
  font: 600 11px/1 var(--sans, 'Archivo', sans-serif);
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  animation: skipIn .6s ease 1.2s forwards;
  transition: background .3s ease, color .3s ease, opacity .3s ease;
}
.intro__skip:hover,
.intro__skip:focus-visible { background: #111; color: #fff; outline: none; }
.intro__skip.is-gone { opacity: 0 !important; pointer-events: none; animation: none; }
@keyframes skipIn { to { opacity: 1; } }

/* the header mark waits, untransformed, for the flown logo to land on it */
html.has-intro .hdr__mark { transform: none; opacity: 0; transition: none; }
html.is-logo-landed .hdr__mark { opacity: 1; transform: none; transition: none; }
