﻿
.graph-container {
  position: relative;
  overflow: hidden;
}


.graph-image {
  width: 100%;
  display: block;
  transform: scale(1);
  transition: transform 0.3s ease;
}


.graph-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  transition: height 1.2s ease-out;
  pointer-events: none;
  z-index: 1;
}


.graph-container.visible .graph-mask {
  height: 0%;
}


@keyframes popInEffect {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.graph-image.pop-in {
  animation: popInEffect 0.8s ease-out 1;
}

.img-wrap {
  width: 100%;
  height: auto;
  clip-path: circle(0 at 50% 50%);
  -webkit-clip-path: circle(0 at 50% 50%);
  transition: clip-path 3s cubic-bezier(0.4, 0, 0.2, 1),
              -webkit-clip-path 5s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-wrap.revealed {
  clip-path: circle(150% at 50% 50%);
  -webkit-clip-path: circle(150% at 50% 50%);
}

.graph-img-wrap {
  position: relative;
  overflow: hidden;
}

.graph-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.cover1, .cover2, .cover3 {
  position: absolute;
  left: 0;
  right: 0;
  background: white;
  height: calc(100% / 3);
  transform: translateX(0);
  z-index: 1;
  pointer-events: none;
}

.cover1 { top: 0; }
.cover2 { top: calc(100% / 3); }
.cover3 { top: calc(100% / 3 * 2); }

.graph-img-wrap.revealed .cover1 {
  animation: coverAnim 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.graph-img-wrap.revealed .cover2 {
  animation: coverAnim 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.2s;
}

.graph-img-wrap.revealed .cover3 {
  animation: coverAnim 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.4s;
}

@keyframes coverAnim {
  100% {
    transform: translateX(100%);
  }
}

