.df-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Responsive still (under video): mobile first */
.df-hero__poster-underlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--df-hero-poster-mobile);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

@media (min-width: 1024px) {
  .df-hero__poster-underlay {
    background-image: var(--df-hero-poster-desktop);
  }
}

.df-hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.df-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity var(--df-ease-slow);
}

.df-hero--video-ready .df-hero__video {
  opacity: 1;
}

.df-hero__video.df-hero__video--error {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .df-hero__video-wrap {
    display: none;
  }

  .df-hero__video {
    opacity: 0;
  }
}

/* Dark gradient overlay (bottom for content legibility, top for transparent header) */
.df-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, transparent 25%),
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.65) 0%,
      rgba(0, 0, 0, 0.2) 40%,
      transparent 100%
    );
  pointer-events: none;
}

/* Content */
.df-hero__content {
  position: relative;
  z-index: 3;
  padding: var(--df-sp-8) var(--df-sp-4) var(--df-sp-12);
  max-width: 850px;
  display: flex;
  gap: var(--df-sp-4);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.df-hero__eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.df-hero__title {
  font-family: var(--df-font-heading);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  color: var(--df-white);
  line-height: var(--df-lh-heading);
}

.df-hero__sub {
  font-family: var(--df-font-body);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
}

.df-hero__ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--df-sp-4);
  text-align: left;
}
.df-hero__ctas .df-btn-primary {
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .df-hero__ctas {
    max-width: 330px !important;
  }
}

.df-hero__cta-outline {
  padding: 0;
  border: 0;
  color: var(--df-white);
  text-decoration: underline;
  text-underline-offset: 0.4em;
  text-decoration-thickness: 1px;
}
.df-hero__cta-outline:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border-color: transparent;
}

/* Scroll hint */
.df-hero__scroll-hint {
  position: absolute;
  bottom: var(--df-sp-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.6);
  animation: df-hero-bounce 2s infinite;
}
@keyframes df-hero-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* Video pause / play */
.df-hero__video-toggle {
  position: absolute;
  bottom: var(--df-sp-6);
  right: var(--df-sp-4);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: var(--df-white);
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition:
    background var(--df-ease),
    border-color var(--df-ease),
    opacity var(--df-ease);
}

.df-hero__video-toggle:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.55);
}

.df-hero__video-toggle:focus-visible {
  outline: 2px solid var(--df-white);
  outline-offset: 2px;
}

.df-hero__video-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.df-hero__video-toggle-icon--play {
  display: none;
}

.df-hero__video-toggle[aria-pressed="true"] .df-hero__video-toggle-icon--pause {
  display: none;
}

.df-hero__video-toggle[aria-pressed="true"] .df-hero__video-toggle-icon--play {
  display: flex;
}

@media (prefers-reduced-motion: reduce) {
  .df-hero__video-toggle {
    display: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .df-hero__content {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .df-hero__title {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }
  .df-hero__ctas {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }
  .df-hero {
    padding-bottom: 60px;
  } /* space for mobile cat bar */
}

@media (max-width: 1023px) {
  .df-hero__video-toggle {
    bottom: calc(60px + var(--df-sp-4));
  }
}
