/* ============================================
   HERO: looping product video beside the headline
   ============================================ */
.hero-v { padding: 104px 0 64px; }

.hero-v .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--space-3xl);
  align-items: center;
}

.hero-v .hero-content { max-width: 620px; }
.hero-v .hero-title { font-size: clamp(2.3rem, 3.6vw, 3.25rem); line-height: 1.08; }
.hero-v .hl-line { display: block; }

/* the "product window" that holds the loop */
.hero-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0a0a0a url("../assets/hero/hero-loop-poster.jpg") center / cover no-repeat;
  border: 1px solid var(--color-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(0, 188, 212, 0.12);
}

.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.hero-media-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text-primary);
  font: 600 0.9rem/1 var(--font-sans);
  padding: 10px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.hero-media-btn:hover { border-color: var(--color-primary); color: var(--color-primary-light); }
.hero-media-btn svg { width: 16px; height: 16px; }
.hero-media-btn[hidden] { display: none; }
.hero-media-toggle { width: 38px; height: 38px; justify-content: center; padding: 0; margin-left: auto; }
.hero-media-label { font: 500 0.8rem/1 var(--font-mono); color: var(--color-text-muted); letter-spacing: 0.06em; }

/* phones: no autoplay, big tap-to-play over the poster */
.hero-media-play {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.hero-media-play span {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(0, 188, 212, 0.5);
}

.hero-media-play svg { width: 30px; height: 30px; margin-left: 4px; fill: #0a0a0a; }

/* full-length player with sound (YouTube) */
.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  padding: 24px;
}

.promo-modal.open { display: flex; }
.promo-modal-frame { position: relative; width: min(1200px, 100%); aspect-ratio: 16 / 9; }
.promo-modal-frame.vertical { width: auto; height: min(86vh, 900px); aspect-ratio: 9 / 16; }
.promo-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius-lg); }
.promo-modal-close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }

@media (max-width: 1024px) {
  .hero-v .hero-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .hero-v .hero-content { max-width: none; }
}

@media (max-width: 640px) {
  .hero-media-play { display: flex; }
  .hero-media-toggle, .hero-media-label { display: none; }
}
