/* =========
   INDEX PAGE – HERO
   ========= */

.hero-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 4rem 3rem;
  position: relative;
}

.hero-inner {
  max-width: 720px;
  text-align: center;
  animation: hero-fade-up 900ms ease-out 120ms backwards;
}

.hero-title {
  margin: 0 0 0.6rem;
  font-size: clamp(2.4rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin: 0;
  margin-bottom: 1.8rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 0.4rem;
}

/* Slide-up hero animation */
@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 60vh;
    padding-block: 3rem 2rem;
  }

  .hero-inner {
    padding-inline: 1.5rem;
  }
}

/* =========
   INDEX PAGE – VIDEO ROULETTE
   ========= */

.project-roulette {
  margin-top: 3rem;
  width: min(560px, 100%);
  height: 320px;
  margin-inline: auto;
  perspective: 1200px;
  cursor: grab;
}

.project-roulette:active {
  cursor: grabbing;
}

.roulette-ring {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;

  /* fallback if JS doesn't run */
  --total: 4;
}

/* Clean minimal video-only cards */
.roulette-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 160px;
  margin: -80px -130px;
  border-radius: 0.6rem;
  overflow: hidden;

  background: none;
  border: none;
  box-shadow: none;

  transform-origin: center center;
  transform:
    rotateY(calc(var(--i) * (360deg / var(--total))))
    translateZ(420px);
}

.roulette-card video,
.roulette-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.roulette-card figcaption {
  display: none !important;
}

/* Mobile fallback */
@media (max-width: 768px) {
  .project-roulette {
    height: auto;
    perspective: none;
    margin-top: 2.3rem;
  }

  .roulette-ring {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.9rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    transform: none;
  }

  .roulette-card {
    position: relative;
    top: auto;
    left: auto;
    margin: 0;
    transform: none;
    flex: 0 0 230px;
    height: 150px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .hero-inner {
    animation: none !important;
  }
}
