.flip-card-wrapper {
  perspective: 1200px;
  width: 256px;
  height: 356px;
  margin: 0 auto;
}

.flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(.2,2,.4,1);
  cursor: pointer;
}

.flip-card-wrapper:hover .flip-card {
  transform: rotateY(180deg);
}


.flip-card__front,
.flip-card__back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
}

.flip-card__front img,
.flip-card__back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.flip-card__front {
  background: white;
}

.flip-card__back {
  transform: rotateY(180deg);
  background: black;
  color: white;
}

.gif-wrap {
  position: relative;
  width: 500px;
}

.gif-wrap img {
  width: 100%;
  display: block;
}

.gif {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.gif-wrap:hover .gif {
  opacity: 1;
}

.gif-wrap:hover .preview {
  opacity: 0;
}




.glitch {
  position: relative;
  font-size: 48px;
  color: #fff;
  cursor: pointer;
  letter-spacing: 2px;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}


.glitch::before {
  color: #ff0033;
}

.glitch::after {
  color: #00fff9;
}

/*.glitch:hover {*/
/*  animation: glitch-main 0.2s infinite;*/
/*}*/

.glitch:hover {
  animation: glitch-main 0.3s infinite,
             flicker 0.1s infinite;
}

.glitch:hover::before {
  opacity: 1;
  animation: glitch-top 0.15s infinite;
}

.glitch:hover::after {
  opacity: 1;
  animation: glitch-bottom 0.15s infinite;
}

@keyframes glitch-main {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(3px, -2px); }
  60% { transform: translate(-2px, 1px); }
  80% { transform: translate(2px, -1px); }
  100% { transform: translate(0); }
}

@keyframes glitch-top {
  0% {
    clip-path: inset(0 0 70% 0);
    transform: translate(-3px, -2px);
  }
  50% {
    clip-path: inset(10% 0 50% 0);
    transform: translate(3px, 2px);
  }
  100% {
    clip-path: inset(0 0 80% 0);
    transform: translate(-2px, 1px);
  }
}

@keyframes glitch-bottom {
  0% {
    clip-path: inset(60% 0 0 0);
    transform: translate(3px, 2px);
  }
  50% {
    clip-path: inset(40% 0 0 0);
    transform: translate(-3px, -2px);
  }
  100% {
    clip-path: inset(70% 0 0 0);
    transform: translate(2px, -1px);
  }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}



.horizontal-section {
  height: 300vh;
}


.sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;

  display: flex;
  align-items: center;
}

.horizontal-content {
  display: flex;
  gap: 40px;
  will-change: transform;
}


.panel {
  width: 100vw;
  flex-shrink: 0;

  display: flex;
  justify-content: center;
}


.panel-inner {
  width: 1160px;
  height: 500px;

  background: #111;
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;
  font-size: 32px;
}

.panel:nth-child(1) { background: #111; }
.panel:nth-child(2) { background: #222; }
.panel:nth-child(3) { background: #333; }


