.hero-section-wrapper {
  height: 200vh; /* Matches 200vh in React code */
  width: 100vw;
  overflow-x: clip;
  max-width: 100vw;
  position: relative;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  background-color: #000000a0;
  z-index: 99990;
}

.hero-section {
  position: sticky;
  top: 0;
  width: 100vw;
  max-width: 100vw;
  overflow-x: clip;
  height: 100vh;
  overflow: hidden;
}

/* Target the Cover block's background image container or a video container */
.hero-section .wp-block-cover__background {
  position: absolute;          /* <-- changed from fixed */
  inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  transform: none !important;  /* remove any inline transform */
}

/* === VIDEO BACKGROUND === */
.hero-section .wp-block-cover__video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  z-index: 1;
}

/* Initially hide video until GSAP applies scale */
.hero-section > video.wp-block-cover__video-background {
  visibility: hidden;           /* ← HIDE */
  opacity: 0;                   /* ← Extra safety */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  z-index: 1;
  /* Apply initial scale via CSS (instant) */
  transform: scale(0.6);
  border-radius: 24px;
  overflow: hidden;
}

/* Class added by JS when ready */
.hero-section.video-ready > video.wp-block-cover__video-background {
  visibility: visible !important;
  opacity: 1 !important;
  transition: opacity 0.2s ease; /* Optional smooth fade-in */
}

/* === FIXED ELEMENTS (Overlay + Text) === */
.hero-section .wp-block-cover__gradient-background,
.hero-section .wp-block-cover__background.has-background-dim {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 2;
}

.hero-section .wp-block-cover__inner-container {
  position: absolute;          /* <-- changed from fixed */
  inset: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 3;      /* clicks pass through (optional) */
}

.spin {
    animation: spin 69s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg); /* Start at 0 degrees rotation */
  }
  100% {
    transform: rotate(360deg); /* End at 360 degrees rotation */
  }
}

body {
    max-width: 100vw;
    width: 100vw;
    overflow-x: clip;
}
