/* styles2.css */

/* ===== SECTION 1: HERO — static "AFX" wordmark, headervideo playing
   through the letterforms via a static PNG alpha mask. Full-bleed,
   scales with viewport (Bodega-style treatment). ===== */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--hero-bg, #2c3e5c);
  /* background: var(--accent, #d81f2f);  */
   /* #b5202f */
}

.video-text-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: url('/AIFX/imgs/vfx-mask.png');
  mask-image: url('/AIFX/imgs/vfx-mask.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

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

/* Safari fallback: if mask-image support is missing/unreliable,
   at minimum show the video as a normal background rather than
   nothing at all. Test in Safari before launch. */
@supports not (mask-image: url('/AIFX/imgs/vfx-mask.png')) {
  .video-text-wrap {
    mask-image: none;
    -webkit-mask-image: none;
    background: var(--navy, #0f2a4a);
  }
  .video-text-wrap video {
    opacity: 0.35;
  }
}

@media (max-width: 900px) {
  .video-text-wrap video {
    width: 170%;
    height: 170%;
  }
}

/* ===== SECTION 2: "Changing / the way / content is / [cycling word]" —
   unchanged from the original, except AUTOMATIC FX no longer appears
   in the word cycle (it now lives permanently in the hero above).
   padding-top added so the section clears the fixed header instead
   of sliding underneath it once .hero has scrolled past. ===== */

.landing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 1vh;
  text-align: center;
  padding: calc(var(--header-height, 88px) + 20px) 20px 20px;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.line {
  font-size: 8rem;
  font-weight: bold;
  font-family: 'Anton', sans-serif;
  line-height: 1;
  margin: -0.04em 0;
  padding: 0;
  color: #a8a8a8;
}

.dynamic-line {
  font-size: 8rem;
  font-weight: bold;
  font-family: 'Anton', sans-serif;
  line-height: 1;
  margin: -0.04em 0;
  padding: 0;
  color: #efefef;
}

/* Responsive Design Alternating Text Section */
@media (max-width: 900px) {
  .line, .dynamic-line {
    font-size: 6rem;
  }
}

@media (max-width: 768px) {
  .line, .dynamic-line {
    font-size: 4rem;
  }
}

@media (max-width: 480px) {
  .line, .dynamic-line {
    font-size: 3rem;
  }
}

hr.divider {
  border: 0;
  height: 1px;
  background-color: var(--accent-dim, #3a0f14);
  margin-top: 25px;
  margin-bottom: 25px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}
