/* ============================================
   Hero Section — Vertical Layout with Full-Width Video
   Inspired by Clay.global's panoramic hero layout
   ============================================ */

.hero {
  padding-top: calc(var(--header-height) + var(--space-12));
  padding-bottom: var(--space-section);
}

/* Vertical stack: text on top, video below */
.hero__container {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

/* ---- Text Block ---- */
.hero__text {
  max-width: 900px;
  text-align: left;
}

.hero__title {
  font-size: clamp(var(--text-3xl), 4.5vw, var(--text-5xl));
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: wordFadeIn 0.6s var(--ease-out) forwards;
}

@keyframes wordFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Video Block — Full-Width Panoramic ---- */
.hero__visual {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__video {
  width: 100%;
  max-width: none;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  display: block;
}

/* ---- Play Showreel Button ---- */
.hero__play-btn {
  position: absolute;
  right: 22px;
  bottom: 22px;
  transform: scale(1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(10, 10, 10, 0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: inherit;
  color: #ffffff;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
  z-index: 2;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.hero__play-btn:hover {
  background: rgba(10, 10, 10, 0.68);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
}

.hero__play-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.hero__play-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.hero__play-btn span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Active state: when sound is playing */
.hero__play-btn--active {
  background: rgba(232, 200, 64, 0.95);
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--color-black);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.hero__play-btn--active svg {
  fill: currentColor;
}

.hero__play-btn--active:hover {
  background: var(--color-primary-light);
}

/* Pulse animation when sound is blocked by browser */
.hero__play-btn--pulse {
  animation: soundPulse 2s ease-in-out infinite;
}

@keyframes soundPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }
  50% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22), 0 0 0 6px rgba(0, 0, 0, 0.06); }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero {
    padding-top: calc(var(--header-height) + var(--space-8));
  }
  .hero__text {
    max-width: 100%;
  }
  .hero__video {
    border-radius: 12px;
  }
  .hero__play-btn {
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: calc(var(--header-height) + var(--space-6));
    padding-bottom: var(--space-12);
  }
  .hero__title {
    font-size: clamp(var(--text-2xl), 6vw, var(--text-3xl));
  }
  .hero__video {
    aspect-ratio: 4 / 5;
    border-radius: 10px;
  }
  .hero__play-btn {
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
  }
  .hero__play-btn svg {
    width: 17px;
    height: 17px;
  }
}
