.other-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.minimal-stack {
  width: min(520px, calc(100% - 48px));
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  z-index: 5;
}

.project-link {
  min-height: 78px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(
    90deg,
    rgba(29, 0, 58, 0.88),
    rgba(58, 0, 102, 0.88)
  );
  border: 1px solid rgba(188, 19, 254, 0.32);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s ease, border-color 0.35s ease,
    box-shadow 0.35s ease, background 0.35s ease;
}

.project-link:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.65);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42), 0 0 24px rgba(188, 19, 254, 0.34);
  background: linear-gradient(
    90deg,
    rgba(35, 0, 72, 0.95),
    rgba(76, 0, 132, 0.95)
  );
}

.decor-circle {
  position: absolute;
  width: 135px;
  opacity: 0.4;
  z-index: 1;
  animation: rotateSlow 22s linear infinite;
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.top-left {
  top: 11%;
  left: 6%;
}
.bottom-right {
  bottom: 11%;
  right: 6%;
}

@media (max-width: 768px) {
  .minimal-stack {
    gap: 18px;
  }
  .project-link {
    min-height: 68px;
  }
  .top-left,
  .bottom-right {
    display: none;
  }
}

/* Analog algorithm modal: hides native video controls and crops the bottom edge visually. */
.analog-video-modal {
  display: none;
  padding: 0;
  background: transparent;
}

.fancybox__content.analog-video-modal {
  padding: 0;
  background: transparent;
}

.analog-video-crop {
  width: min(82vw, 720px);
  aspect-ratio: 1064 / 1170;
  max-height: 82vh;
  overflow: hidden;
  border-radius: 18px;
  background: #111;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.55);
}

.analog-video-crop video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 44%;
  transform: scale(1.04);
}
