:root {
  --header-padding: min(8.4vw, 70px);
  --header-height: 100px;
    --header-padding: min(var(--container-padding), 70px);
}

.header.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
/* Headline Media Container */
.headline-media {
  position: fixed;
  display: inline-block;
  width: 11.459vw;
  height: auto;
  aspect-ratio: 220/140;
}

@media (max-width: 767px) {
  .headline-media {
    aspect-ratio: 108/72;
    width: 26.25vw;
  }
}

/* Video Styles */
.video {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  clip: rect(auto, auto, auto, auto);
  display: none;
}

.video.video-present {
  display: block;
  overflow: hidden;
}

.video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section Styles */
.sec-100vh {
  height: 100vh;
  margin: 0;
  will-change: auto;
}
/* .text-lg {
  font-size: 1.2rem;
  line-height: 1.5em;
} */

/* .small-video-section {
    height: calc(100vh - 80px); 
} */

.small-video-section .container {
  display: flex;
  flex-direction: column;
  height: inherit;
}

.small-video-section .headline {
  font-size: 13.4vw;
  line-height: 90%;
  padding-top: 2rem;
}

.small-video-section .headline-media {
  width: 15.43vw;
  aspect-ratio: 373/210;
  margin-left: auto;
}

/* Video Block Animation Styles */
#videoBlock {
  overflow: hidden;
  transform-origin: bottom left;
  transition: width 0.1s ease-out, height 0.1s ease-out, top 0.1s ease-out,
    left 0.1s ease-out;
  z-index: 90;
  will-change: transform, width, height;
}

#videoBlock.absolute {
  position: absolute !important;
  transform: none !important;
  transition: none !important;
}

#videoBlock.no-transition {
  transition: none !important;
}

/* Fullscreen Video Section */
.fullscreen-video-section {
  height: 100vh; /* Extra height for delay after video completes */
}

.fullscreen-video-container {
  /* position: sticky removed - using GSAP ScrollTrigger pinning instead */
  /* height: calc(100vh - var(--header-height)); */
  height: 100vh;
  overflow: hidden;
}

.fullscreen-video-container .video {
  width: 100%;
  height: 100%;
}

.fullscreen-video-container .video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: top;
}

/* Mobile Styles */
@media (max-width: 1023px) {
  .small-video-section {
    /* height: auto; */
    padding-top: 1.25rem;
  }

  .small-video-section .container {
    height: auto;
    gap: 2rem;
  }

  .small-video-section .headline {
    order: 1;
    display: flex;
    font-size: 3.25rem;
    padding: 0;
  }

  .small-video-section .headline-media {
    order: 2;
    display: flex;
    width: calc(100% + 1.5rem);
    height: 56vw;
    margin-inline: -0.75rem;
    margin-top: 2rem;
  }
  #videoBlock {
    top: unset !important;
    left: unset !important;
    right: 28px !important;
    bottom: 28px !important;
  }
  .fullscreen-video-section {
    display: none;
  }

  /* Mobile Video Expand/Collapse Button (1023px se small screens) */
  .video-expand-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: none; /* Hidden by default, shown on mobile */
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 0;
    transition: background 0.2s ease;
  }

  .video-expand-btn:hover {
    background: rgba(0, 0, 0, 0.8);
  }

  .video-expand-btn svg {
    width: 18px;
    height: 18px;
    color: #ffffff;
    position: absolute;
  }
}

/* vidoe Mute */
@media (min-width: 1200px) {
  .cursor {
    will-change: translate;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    pointer-events: none;
    transform-origin: center;
    display: block;
  }

  .cursor > * {
    transform: scale(0);
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    transition: transform 0.25s linear;
    gap: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 102px;
    height: 102px;
    border-radius: 100%;
    background-color: #ffffff;
    font-size: 0.75rem;
    line-height: 1.1em;
    font-weight: 500;
    color: #020202;
    padding: 0.5rem;
  }

  .cursor > * svg {
    display: inline-block;
    width: 1.875em;
    aspect-ratio: 1/1;
  }

  .cursor.is-muted .muted {
    transform: scale(1);
  }

  .cursor.is-unmuted .unmuted {
    transform: scale(1);
  }
}

@media (max-width: 1199px) {
  .cursor {
    display: none;
  }
}
