/* ---------------------- Hero-section ------------------------- */


#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-start;
  padding: 10rem 4rem 0;
  overflow: hidden;
}

@media (max-width: 767px) {
  #hero {
    padding: 7rem var(--mobile-padding) 0;
    min-height: 600px;
  }
}


#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Vidéo de fond : plein cadre, derrière le contenu et l'orbe */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--black);
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

/* Assombrit la vidéo pour la lisibilité du texte, puis fond au noir en bas
   pour raccorder en douceur avec la section suivante (fond noir --bg). */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.25) 35%,
      rgba(0, 0, 0, 0.35) 60%,
      rgba(0, 0, 0, 0.85) 88%,
      var(--black) 100%
    );
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-video-wrap { background: var(--black); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: var(--fw-heading);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 2.25rem;
  /* opacity: 0; */
  transform: translateY(30px);
}

.hero-subtitle {
  font-weight: var(--fw-body);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--gray-light);
  max-width: 46ch;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* .btn-light se décale de 50% de sa hauteur par défaut (pensé pour un bouton
   seul) ; annulé ici pour rester aligné avec le bouton secondaire. */
.hero-actions .btn-light {
  transform: none;
}

@media (max-width: 767px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}

/* Orbe Nebulight : dégradé de marque flouté, en écho discret au nom du studio */
.ball {
  position: absolute;
  top: 12%;
  right: 6%;
  width: clamp(220px, 30vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gradient-nebulight);
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
  animation: ball-float 12s ease-in-out infinite;
}

@keyframes ball-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-2%, 4%, 0) scale(1.05); }
}

@media (max-width: 1023px) {
  .ball {
    width: clamp(180px, 55vw, 320px);
    right: -10%;
    top: 4%;
  }
}

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



.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: 4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-light);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
  /* opacity: 0; */
}

.scroll-hint::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gray-light);
}

/* Masqué sur mobile : chevaucherait la nav (pill fixe en bas d'écran) */
@media (max-width: 767px) {
  .scroll-hint { display: none; }
}