/*
  Motion Case Study Pages
  ----------------------
  Styles specific to animation project detail pages
  (hero video, motion grid, captions, spacing)
*/

/* ===== HERO BANNER VIDEO (PRIMARY) ===== */

.case-hero {
  position: relative;
  width: 100%;
  min-height: 58vh;           /* ensures video is visible */
  overflow: hidden;
}

.case-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.50)
  );
  z-index: 1;                 /* sits above video, below text */
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* background‑style behavior */
  z-index: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.50));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 2rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem); /* scales from mobile to desktop */
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ===== HERO VIDEO ===== */

.motion-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
}

.motion-hero video {
  width: 100%;
  height: auto;
  display: block;
}


/* ===== INTRO TEXT ===== */

.case-intro {
  max-width: 900px;
  margin: 0 auto;
}

.case-intro h1 {
  line-height: 1.3;
}

.hidden-text {
  display: none;
}

/* ===== MOTION GALLERY GRID ===== */

.motion-grid {
  justify-content: center;
}

.motion-grid video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: #000; /* prevents white gaps if aspect ratios vary */
}

.motion-caption {
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 0.4rem;
}


/* ===== HOVER FEEDBACK (subtle) ===== */

.motion-grid video {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.motion-grid video:hover {
  transform: scale(0.99);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem; /* mobile baseline */
  }
}

@media (min-width: 577px) and (max-width: 991px) {
  .hero-content h1 {
    font-size: 2.5rem; /* tablet */
  }
}

@media (min-width: 992px) {
  .hero-content h1 {
    font-size: 3rem; /* desktop */
  }
}