/* Motion & Video — How It Works (video-animation-v1 process section) */
body.motion-video-page .va-showcase-process {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 8vw, 96px) 24px;
  background-color: #1a1450;
  background-image: url("../images/what-we-do/video-animation/process-bg2.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: #fff;
}

body.motion-video-page .va-showcase-process .va-showcase-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

body.motion-video-page .va-hiw-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

body.motion-video-page .va-hiw-decor__shape {
  position: absolute;
  opacity: 0.8;
}

body.motion-video-page .va-hiw-decor__shape--c1 { top: 8%; left: 4%; width: 10px; height: 10px; }
body.motion-video-page .va-hiw-decor__shape--c2 { top: 18%; right: 6%; width: 8px; height: 8px; }
body.motion-video-page .va-hiw-decor__shape--t1 { bottom: 14%; left: 8%; width: 12px; height: 12px; transform: rotate(18deg); }
body.motion-video-page .va-hiw-decor__shape--plus { top: 42%; right: 4%; width: 14px; height: 14px; }
body.motion-video-page .va-hiw-decor__shape--squiggle { bottom: 22%; right: 12%; width: 48px; height: 24px; }

body.motion-video-page .va-hiw-head {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
  position: relative;
  z-index: 1;
}

body.motion-video-page .va-hiw-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 18px;
  font-family: "Inter", sans-serif;
  font-size: 11.5008px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--turquoise);
}

body.motion-video-page .va-hiw-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 16px;
  color: #fff;
  letter-spacing: -0.2992px;
}

.portfolio-section h2,
.comparison-section h2 {

  max-width: 680px;
}

body.motion-video-page .va-hiw-title em {
  display: block;
  font-style: italic;
  color: var(--turquoise);
  margin-top: 4px;
  font-weight: inherit;
}

body.motion-video-page .va-hiw-intro {
  font-family: "Inter", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  max-width: 635px;
  margin: 0 auto;
}

body.motion-video-page .va-hiw-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 0 1%;
  max-width: 100%;
  width: 94%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

body.motion-video-page .va-hiw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  min-width: 0;
  position: relative;
  z-index: 1;
}

body.motion-video-page .va-hiw-step__mascot {
  width: 100%;
  max-width: 100%;
  min-height: clamp(150px, 17vw, 200px);
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0 auto;
  padding: 8px 6px 0;
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  overflow: visible;
}

body.motion-video-page .va-hiw-step__mascot.reveal {
  opacity: 0;
  transform: none;
  transition: opacity 0.6s ease;
}

body.motion-video-page .va-hiw-step__mascot.reveal.visible {
  opacity: 1;
  transform: none;
}

body.motion-video-page .va-hiw-step__mascot-float {
  display: block;
  width: 100%;
  transform-origin: center bottom;
  animation: mv-hiw-mascot-wobble 4.8s ease-in-out infinite;
  will-change: transform;
}

body.motion-video-page .va-hiw-step__mascot img,
body.motion-video-page .va-hiw-step__mascot video {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: none;
}

body.motion-video-page .va-hiw-step__mascot[data-hiw-step="2"] .va-hiw-step__mascot-float {
  animation-delay: -1.6s;
  animation-duration: 5.4s;
}

body.motion-video-page .va-hiw-step__mascot[data-hiw-step="3"] .va-hiw-step__mascot-float {
  animation-delay: -3.1s;
  animation-duration: 4.4s;
}

@keyframes mv-hiw-mascot-wobble {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  12% {
    transform: translate3d(10px, -8px, 0) rotate(2deg);
  }

  25% {
    transform: translate3d(14px, 4px, 0) rotate(-1.5deg);
  }

  38% {
    transform: translate3d(8px, 12px, 0) rotate(2.2deg);
  }

  52% {
    transform: translate3d(-6px, 10px, 0) rotate(-2deg);
  }

  66% {
    transform: translate3d(-12px, -2px, 0) rotate(1.6deg);
  }

  80% {
    transform: translate3d(-8px, -10px, 0) rotate(-1.8deg);
  }
}

body.motion-video-page .va-hiw-step__card {
  position: relative;
  z-index: 5;
  width: 100%;
  flex: 1;
  margin-top: 0;
  padding: 12% 8% 10%;
  border-radius: 18px;
  background: linear-gradient(
    165deg,
    rgba(69, 77, 161, 0.55) 0%,
    rgba(45, 34, 120, 0.72) 48%,
    rgba(26, 20, 80, 0.82) 100%
  );
  border: 2px solid rgba(31, 220, 229, 0.22);
  box-shadow:
    0 16px 40px rgba(8, 6, 32, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.motion-video-page .va-hiw-step__num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1fdce5;
  color: #1a1450;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(31, 220, 229, 0.45);
  z-index: 20;
}

body.motion-video-page .va-hiw-step__card h3 {
  font-family: "Inter", sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  margin: 0;
  padding-bottom: 12px;
  position: relative;
}

body.motion-video-page .va-hiw-step__card h3::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 42%;
  max-width: 72px;
  height: 2px;
  background: #1fdce5;
  border-radius: 2px;
}

body.motion-video-page .va-hiw-step__card p {
  font-family: "Inter", sans-serif;
  font-size: 13.5008px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 14px 0 0;
  flex: 1;
}

body.motion-video-page .va-hiw-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  width: 14%;
  min-width: 80px;
  max-width: 128px;
  margin: clamp(72px, 10.5vw, 98px) 0 0;
  flex-shrink: 0;
  padding: 0;
  z-index: 3;
}

body.motion-video-page .va-hiw-arrow span {
  display: block;
  width: 100%;
  min-width: 80px;
  height: 4px;
  position: relative;
  background: repeating-linear-gradient(
    90deg,
    #1fdce5 0 12px,
    transparent 12px 20px
  );
  background-size: 40px 4px;
  animation: mv-hiw-dash-flow 1.2s linear infinite;
}

body.motion-video-page .va-hiw-arrow span::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #1fdce5;
}

@keyframes mv-hiw-dash-flow {
  to {
    background-position: 40px 0;
  }
}

@media (max-width: 900px) {
  body.motion-video-page .va-showcase-process {
    overflow: visible;
    padding: clamp(56px, 10vw, 72px) 20px;
  }

  body.motion-video-page .va-hiw-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 380px;
    gap: 0;
    padding-top: 12px;
  }

  body.motion-video-page .va-hiw-step {
    width: 100%;
    gap: 16px;
  }

  body.motion-video-page .va-hiw-step__card {
    padding: 48px 24px 28px;
    flex: none;
    overflow: visible;
    margin-top: 14px;
  }

  body.motion-video-page .va-hiw-arrow {
    width: auto;
    height: 56px;
    min-width: 0;
    max-width: none;
    margin: 10px auto 14px;
    transform: rotate(90deg);
    transform-origin: center center;
    align-items: center;
    align-self: center;
  }

  body.motion-video-page .va-hiw-arrow span {
    width: 56px;
    min-width: 56px;
  }

  body.motion-video-page .va-hiw-arrow span::after {
    border-top-width: 6px;
    border-bottom-width: 6px;
    border-left-width: 9px;
  }

  body.motion-video-page .va-hiw-step__mascot img,
  body.motion-video-page .va-hiw-step__mascot video {
    max-height: 160px;
  }

  body.motion-video-page .va-hiw-head {
    margin-bottom: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.motion-video-page .va-hiw-step__mascot-float {
    animation: none;
  }

  body.motion-video-page .va-hiw-arrow span {
    animation: none;
  }
}
