/* ============================================================
   HOME — Live glimpses video showcase (3-up, lazy + hover pause)
   ============================================================ */

.home-video-showcase {
  position: relative;
  overflow: hidden;
  padding-top: 88px;
  padding-bottom: 96px;
  background: linear-gradient(165deg, #0b1220 0%, #151f32 42%, #0f172a 100%);
  color: #e2e8f0;
}

.home-video-showcase__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(34, 197, 94, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(56, 189, 248, 0.06) 0%, transparent 42%),
    radial-gradient(circle, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px;
}

.home-video-showcase .container {
  position: relative;
  z-index: 1;
}

.home-video-showcase .section-header {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.home-video-showcase .section-tag {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.home-video-showcase .section-title {
  color: #f8fafc;
  letter-spacing: 2px;
}

.home-video-showcase .title-line {
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(90deg, #22c55e, #38bdf8, #22c55e);
  background-size: 200% 100%;
  animation: hvs-title-shine 8s ease-in-out infinite;
}

@keyframes hvs-title-shine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.home-video-showcase__sub {
  margin: 1rem auto 0;
  max-width: 560px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.78);
  font-weight: 400;
}

.home-video-showcase__grid {
  display: grid;
  /* Narrower side columns for 9:16 portrait; wider centre for 16:9 landscape */
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.48fr) minmax(0, 0.88fr);
  align-items: center;
  gap: 1.35rem;
  margin-top: 2.75rem;
}

.home-video-showcase__cell {
  min-width: 0;
  display: flex;
  justify-content: center;
}

.home-video-showcase__frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #020617;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: default;
}

/* Mobile portrait reels (e.g. 1080×1920): width : height = 9 : 16 */
.home-video-showcase__frame--portrait {
  aspect-ratio: 9 / 16;
}

/* Centre landscape promo / b-roll (e.g. 1920×1080) */
.home-video-showcase__frame--landscape {
  aspect-ratio: 16 / 9;
}

.home-video-showcase__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.85, 0.35, 1);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .home-video-showcase__frame:hover .home-video-showcase__video {
    transform: scale(1.045);
  }
}

.home-video-showcase__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.05) 0%, rgba(2, 6, 23, 0.45) 100%);
  opacity: 1;
  transition: background 0.35s ease, opacity 0.35s ease;
}

.home-video-showcase__frame.is-paused .home-video-showcase__overlay {
  background: rgba(15, 23, 42, 0.62);
}

.home-video-showcase__play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) scale(0.88);
  width: 62px;
  height: 62px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: rgba(34, 197, 94, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, transform 0.28s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.home-video-showcase__play-btn:hover,
.home-video-showcase__play-btn:focus-visible {
  background: rgba(34, 197, 94, 0.45);
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35), 0 12px 32px rgba(0, 0, 0, 0.4);
}

.home-video-showcase__frame.is-paused .home-video-showcase__play-btn {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.home-video-showcase__sr-hint {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .home-video-showcase__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .home-video-showcase__cell--portrait .home-video-showcase__frame--portrait {
    /* Cap height on small screens so portrait reels don’t dominate the page */
    max-height: min(78vh, 640px);
    width: min(100%, calc(min(78vh, 640px) * 9 / 16));
    margin-left: auto;
    margin-right: auto;
  }

  .home-video-showcase__cell--landscape .home-video-showcase__frame--landscape {
    width: 100%;
    max-width: 100%;
  }

  .home-video-showcase {
    padding-top: 72px;
    padding-bottom: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-video-showcase .title-line {
    animation: none;
    background: linear-gradient(90deg, #22c55e, #38bdf8);
  }

  .home-video-showcase__video {
    transition: none;
  }

  .home-video-showcase__frame:hover .home-video-showcase__video {
    transform: none;
  }
}
