/* Hero — premium split layout */

.hero {
  --hero-gold: #c9a96e;
  --hero-gold-soft: rgba(201, 169, 110, 0.35);
  --hero-font-display: var(--font-primary, "Open Sans", Arial, sans-serif);
  --hero-pad-left: clamp(1.5rem, 6.25vw, 6.5rem);
  --hero-content-w: clamp(20rem, 38vw, 42rem);
  --hero-header-space: clamp(4.5rem, 10vh, 6.5rem);

  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: transparent;
}

.hero__bg-scale {
  position: absolute;
  inset: 0;
  transform-origin: center center;
  background: unset;
  background-color: unset;
}

.hero__bg-video-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__bg-youtube {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__bg-youtube iframe,
.hero__bg-youtube-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 177.77777778vh);
  height: max(100%, 56.25vw);
  min-width: 100%;
  min-height: 100%;
  border: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__scrim {
  display: none;
}

/* Initial state — visible before JS so entrance animation is seen */
.hero:not(.is-animated) .hero__bg-scale {
  transform: scale(1.1);
}

.hero:not(.is-animated) .hero__title-line,
.hero:not(.is-animated) .hero__tagline-line {
  transform: translateY(115%);
}

.hero:not(.is-animated) .hero__rule {
  transform: scaleX(0);
  transform-origin: center center;
}

.hero:not(.is-animated) .hero__play {
  opacity: 0;
  transform: translateY(14px);
}

.hero:not(.is-animated) .hero__bottom {
  opacity: 0;
  transform: translate(-50%, 14px);
}

.hero__bottom {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(1.75rem, 4vh, 2.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.85rem, 2vh, 1.15rem);
  transform: translateX(-50%);
}

.hero__audio-toggle {
  position: relative;
  inset: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.hero__audio-toggle:hover,
.hero__audio-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  outline: none;
}

.hero__audio-toggle-icon {
  display: none;
  width: 18px;
  height: 18px;
}

.hero__audio-toggle-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__audio-toggle.is-muted .hero__audio-toggle-icon--off {
  display: block;
}

.hero__audio-toggle:not(.is-muted) .hero__audio-toggle-icon--on {
  display: block;
}

.hero__audio-toggle-label {
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
}

.hero.is-reduced-motion .hero__bottom {
  opacity: 1;
  transform: translateX(-50%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  box-sizing: border-box;
  width: var(--hero-content-w);
  max-width: calc(100vw - var(--hero-pad-left) * 2);
  min-height: 100dvh;
  margin: 0 auto;
  padding-block: var(--hero-header-space) clamp(3rem, 7vh, 4.5rem);
  padding-inline: clamp(0.75rem, 2vw, 1.25rem);
  direction: rtl;
  text-align: center;
}

.hero__reveal-line {
  display: block;
  overflow: hidden;
}

.hero__reveal-line-inner,
.hero__word-inner {
  display: block;
  will-change: transform;
}

.hero__brand {
  margin: 0 0 clamp(0.85rem, 2vh, 1.15rem);
  width: 100%;
  line-height: 0;
  text-align: center;
}

.hero__brand-line {
  display: block;
  opacity: 1;
  transform: none;
}

.hero__brand-logo {
  display: block;
  width: 264px;
  height: 124px;
  margin: 0 auto;
  object-fit: contain;
}

.hero__title {
  margin: 0;
  width: 100%;
  font-family: var(--font-primary);
  font-size: clamp(1.85rem, 3.4vmin + 0.75rem, 3.75rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.04em;
  text-align: center;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

.hero__title-line {
  display: block;
  font-size: 23px;
  white-space: nowrap;
}

.hero__rule {
  display: block;
  align-self: center;
  width: clamp(3.5rem, 8vw, 5.5rem);
  height: 1px;
  margin: clamp(1.25rem, 2.5vh, 1.75rem) auto;
  background: var(--hero-gold);
  border: 0;
}

.hero__tagline {
  margin: 0;
  width: 100%;
  font-size: clamp(1.1rem, 1.6vmin + 0.55rem, 1.4rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
}

.hero__tagline-line {
  display: block;
}

.hero__actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: clamp(1.5rem, 3.2vh, 2.25rem);
}

.hero__play {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  cursor: pointer;
  will-change: transform, opacity;
  transition:
    color 0.35s ease,
    opacity 0.35s ease;
}

.hero__play:hover,
.hero__play:focus-visible {
  color: rgba(255, 255, 255, 0.95);
  outline: none;
}

.hero__play-icon {
  display: block;
  flex-shrink: 0;
  width: clamp(2.35rem, 4.2vw, 2.75rem);
  height: clamp(2.35rem, 4.2vw, 2.75rem);
  transition: transform 0.4s ease;
}

.hero__play-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__play-icon circle {
  transition: opacity 0.35s ease;
}

.hero__play:hover .hero__play-icon,
.hero__play:focus-visible .hero__play-icon {
  transform: scale(1.04);
}

.hero__play:hover .hero__play-icon circle,
.hero__play:focus-visible .hero__play-icon circle {
  opacity: 0.85;
}

.hero__play-label {
  font-family: var(--hero-font-display);
  font-size: clamp(0.68rem, 0.85vw, 0.78rem);
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.35s ease;
}

.hero__play:hover .hero__play-label,
.hero__play:focus-visible .hero__play-label {
  color: var(--hero-gold);
}

/* Video lightbox */
.hero__video {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
}

.hero__video[hidden] {
  display: none;
}

.hero__video-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.82);
  backdrop-filter: blur(6px);
}

.hero__video-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 960px);
  animation: hero-video-in 0.45s ease;
}

.hero__video-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s ease;
}

.hero__video-close:hover,
.hero__video-close:focus-visible {
  color: #fff;
  outline: none;
}

.hero__video-player {
  display: block;
  width: 100%;
  max-height: min(78vh, 540px);
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

@keyframes hero-video-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero__scroll {
  position: relative;
  z-index: 1;
  left: auto;
  bottom: auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  transform: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: color 0.25s ease;
}

.hero__scroll:hover,
.hero__scroll:focus-visible {
  color: var(--hero-gold);
  outline: none;
}

.hero__scroll-chevron {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  animation: hero-scroll-bob 2s ease-in-out infinite;
}

@keyframes hero-scroll-bob {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }
  50% {
    transform: rotate(45deg) translateY(4px);
  }
}

@media (max-width: 900px) {
  .hero {
    --hero-content-w: min(92vw, 30rem);
    --hero-pad-left: clamp(1.25rem, 5vw, 2rem);
    --hero-header-space: calc(clamp(4.5rem, 10vh, 6.5rem) + var(--safe-top));
  }

  .hero__inner {
    width: var(--hero-content-w);
    max-width: calc(100vw - var(--hero-pad-left) * 2);
    padding-block: var(--hero-header-space) clamp(4.5rem, 12vh, 6rem);
    padding-inline: clamp(0.75rem, 2vw, 1.25rem);
  }
}

@media (max-width: 480px) {
  .hero {
    --hero-content-w: calc(100vw - var(--hero-pad-left) * 2);
  }

  .hero__title {
    font-size: clamp(1.45rem, 6.5vw, 2.1rem);
  }

  .hero__brand {
    letter-spacing: 0.28em;
  }

  .hero__bottom {
    left: 50%;
    transform: translateX(-50%);
  }

  .hero:not(.is-animated) .hero__bottom {
    transform: translate(-50%, 14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-chevron {
    animation: none;
  }

  .hero__video-dialog {
    animation: none;
  }

  .hero__bg-scale,
  .hero__reveal-line-inner,
  .hero__word-inner,
  .hero__play,
  .hero__rule {
    transform: none !important;
    opacity: 1 !important;
    clip-path: none !important;
  }

  .hero__bottom {
    transform: translateX(-50%) !important;
    opacity: 1 !important;
  }
}
