:root {
  --sf-intro-bg: #FFFFFF;
  --sf-transition-duration: 1.2s;
}

#sf-intro {

  --sf-animation-duration: 1.2s;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--sf-intro-bg);
  z-index: 100;
  opacity: 1;
  visibility: visible;
  transition: opacity .2s cubic-bezier(1,0,0,1) calc(var(--sf-animation-duration) * .5), visibility .2s cubic-bezier(1,0,0,1) calc(var(--sf-transition-duration) * .5);
}

#sf-intro > .sf-inner {
  position: relative;
  height: 100%;
  width: 100%;
  gap: clamp(32px, 4vw, 100px);
}

#intro-tranition {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  background-color: pink;
  transform: scaleX(0);
  z-index: 200;
}

body.sf-end-intro #sf-intro {
  opacity: 0;
  visibility: hidden;
}

body.sf-end-intro #intro-tranition {
  animation: var(--sf-transition-duration) swipe cubic-bezier(1,0,0,1) forwards;
}

#sf-intro svg {
  width: 100%;
  height: auto;
  display: inline-block;
}

#sf-intro .sf-fruits {
  gap: 1em;
  opacity: 0;
  transition: opacity .3s ease;
}

body.sf-start-intro #sf-intro .sf-fruits {
  opacity: 1;
}

#sf-intro .sf-logo {
  width: 100%;
  max-width: clamp(10rem, 72vw, 70rem);
}

#sf-intro .sf-fruits {
  display: grid;
  grid-template-columns: repeat(4, max(7vw, 2em));
  grid-column-gap: 1em;
}

#sf-intro .sf-fruit {
  animation: squeeze var( --sf-animation-duration) infinite cubic-bezier(0.34, 1.56, 0.64, 1);
}

#sf-intro .sf-fruit .sf-intro__slice-container {
  position: relative;
  z-index: 2;
}

/* #sf-intro .sf-intro__drop-container {
  max-width: 50%;
  position: relative;
  z-index: 1;
  transform-origin: center;
  animation: drip var( --sf-animation-duration) infinite cubic-bezier(0.7, 0, 0.84, 0);
} */

body.sf-end-intro #sf-intro .sf-fruit,
body.sf-end-intro #sf-intro .sf-intro__drop-container {
  animation: none;
}

@keyframes squeeze {
  0%,15% {
    transform: translate(0,0) scaleX(1);
  }
  50% {
    transform: translate(0,-30px) scaleX(.8);
  }
  85%, 100% {
    transform: translate(0,0) scaleX(1);
  }
}

/* @keyframes drip {
  0% {
    transform: translate3d(0, -100%, 0) scale(0);
    opacity: 0;
  }
  50% {
    transform: translate3d(0,0,0) scale(1);
    opacity: 1;
  }
  75%, 100% {
    transform: translate3d(0, 100%, 0) scale(0);
    opacity: 0;
  }
} */


@keyframes swipe {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }

  25% {
    transform: scaleX(1);
    transform-origin: left;
  }

  50% {
    transform: scaleX(1);
    transform-origin: right;
  }

  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}


body.no-js #sf-intro {
  display: none;
}