/* Option A: the original geometric rosette rotates, shrinks at center and
   softly reveals the portfolio. No TV closure, navigation travel, halos or lines. */
.ls-intro { display: none; }

html.ls-intro-active body > .ls-intro {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  pointer-events: auto;
  color: #F6F0F3;
  background: linear-gradient(130deg, #8B687A 0%, #865E72 57%, #775B6B 100%);
  animation: ls-intro-veil-exit 1140ms cubic-bezier(.44, 0, .2, 1) both;
}

html.ls-intro-active body > .ls-intro .ls-intro__center {
  display: grid;
  place-items: center;
}

html.ls-intro-active body > .ls-intro .ls-intro__flower {
  display: block;
  width: 184px;
  height: 184px;
  max-width: 55vw;
  overflow: visible;
  color: inherit;
  opacity: 0;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  will-change: transform, opacity;
  animation: ls-intro-rosette-a 1140ms cubic-bezier(.22, .08, .25, 1) both;
}

/* The hero is revealed as the malva veil becomes transparent. */
html.ls-intro-active #inicio {
  animation: ls-intro-hero-arrive 510ms cubic-bezier(.22, 1, .36, 1) 590ms both;
}

@keyframes ls-intro-veil-exit {
  0%, 39% { opacity: 1; }
  100%    { opacity: 0; }
}

@keyframes ls-intro-rosette-a {
  0%   { opacity: 0; transform: rotate(-24deg) scale(1.19); }
  13%  { opacity: 1; transform: rotate(0deg) scale(1.13); }
  45%  { opacity: 1; transform: rotate(91deg) scale(.87); }
  74%  { opacity: 1; transform: rotate(157deg) scale(.49); }
  91%  { opacity: .93; transform: rotate(178deg) scale(.37); }
  100% { opacity: 0; transform: rotate(180deg) scale(.33); }
}

@keyframes ls-intro-hero-arrive {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

@media (max-width: 640px) {
  html.ls-intro-active body > .ls-intro .ls-intro__flower {
    width: 154px;
    height: 154px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.ls-intro-active body > .ls-intro { display: none !important; animation: none !important; }
  html.ls-intro-active #inicio { animation: none !important; }
}
