/* ============================================================
   hero.css
   ============================================================ */

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  position: relative;
}

/* Gradient background blob */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 0.12;
  filter: blur(80px);
  z-index: 0;
  animation: gradientShift 12s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0%   { opacity: 0.10; filter: blur(80px) hue-rotate(0deg); }
  100% { opacity: 0.18; filter: blur(80px) hue-rotate(40deg); }
}

.hero__video-wrap {
  position: relative;
  z-index: 1;
  /* 9:16 aspect ratio */
  aspect-ratio: 9 / 16;
  max-height: 80svh;
  width: auto;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
}

.hero__video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video controls */
.hero__video-controls {
  position: absolute;
  bottom: var(--space-sm);
  left: var(--space-sm);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.video-btn {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.75rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease;
  padding: 0;
  line-height: 1;
}

.video-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

/* YouTube nudge — bottom corner of the video */
.hero__yt-link {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 8px;
  border-radius: 2px;
  backdrop-filter: blur(6px);
  transition: color 0.2s ease;
  cursor: none;
  z-index: 2;
}

.hero__yt-link:hover {
  color: rgba(255, 255, 255, 0.95);
}

.hero__text {
  position: relative;
  z-index: 1;
}

.hero__text h1 {
  font-size: clamp(1.8rem, 4.5vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero__text h1 span {
  display: block;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    text-align: center;
    padding-top: calc(var(--space-xl) + 2rem);
    gap: var(--space-md);
  }

  .hero__text { order: -1; }
  .hero__text h1 { font-size: clamp(2.5rem, 12vw, 5rem); }
  .hero__video-wrap { max-height: 60svh; }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 5rem;
    padding-bottom: var(--space-md);
  }
  .hero__text h1 { font-size: clamp(2rem, 11vw, 3.5rem); }
  .hero__video-wrap { max-height: 55svh; }
}
