.hero {
    display: flex;
  justify-content: center;
  align-items: center;
  max-width: 80%;
  padding-top: 50px;
  padding-bottom: 50px;
  box-shadow: rgba(0, 0, 0, 0.553) 0px 5px 15px;
  position: relative;
  overflow: hidden;
  margin: 0 auto;  
}

/* top layer that fades in/out (now also acts as the base background) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: center/cover no-repeat url("/images/waves.webp");
  opacity: 1;
  z-index: 0;
}


.hero::before {
    display: flex;
  justify-content: center;
  align-items: center;
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(255, 255, 255);
  /* make the background fit */
  background-image: url("/images/tech-example.png");
  background-position: right;
  background-repeat: no-repeat; 
  background-size: cover;
  /* triangle that creates a perfect TL -> BR diagonal */
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  z-index: 1;
  pointer-events: none;
}


@keyframes heroFade {
  /* Desert */
  0%   { background-image: url("/images/desert.webp"); opacity: 1; }
  20%  { background-image: url("/images/desert.webp"); opacity: 1; }
  25%  { background-image: url("/images/desert.webp"); opacity: 1; }

  /* Waves (swap happens while still invisible) */
  25%  { background-image: url("/images/waves.webp"); opacity: 1; }
  30%  { background-image: url("/images/waves.webp"); opacity: 1; }
  45%  { background-image: url("/images/waves.webp"); opacity: 1; }
  50%  { background-image: url("/images/waves.webp"); opacity: 1; }

  /* Forest */
  50%  { background-image: url("/images/forest.webp"); opacity: 1; }
  55%  { background-image: url("/images/forest.webp"); opacity: 1; }
  70%  { background-image: url("/images/forest.webp"); opacity: 1; }
  75%  { background-image: url("/images/forest.webp"); opacity: 1; }

  /* Mountains */
  75%  { background-image: url("/images/mountains.webp"); opacity: 1; }
  80%  { background-image: url("/images/mountains.webp"); opacity: 1; }
  95%  { background-image: url("/images/mountains.webp"); opacity: 1; }

  100% { background-image: url("/images/desert.webp"); opacity: 1; }

}

.intro-image-wrap {
    display: flex;
  justify-content: center;
  align-items: center;
  max-width: 80%;
  margin: 0 auto;
  overflow: hidden;              /* crops the zoom */
  /* border: solid 10px #ffffff2f;  move border here so it doesn’t scale */
  /* box-shadow: rgba(0, 0, 0, 0.553) 0px 5px 15px; */
  position: relative;
  z-index: 2;
  min-width: 1000px;
  min-height: 200px;
}

.introduction-image {
    display: flex;
  justify-content: center;
  align-items: center;
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center;
  box-shadow: rgba(0, 0, 0, 0.553) 0px 5px 15px;
  /* border: solid 10px #ffffff2f;  move border here so it doesn’t scale */

}

@media (max-width: 800px) {
  .hero {
    max-width: 100%;
    width: 100%;
  }

  .intro-image-wrap {
    max-width: 90%;
  }

  .introduction-image {
    transform: scale(1.25); /* zooms in without growing the wrap */
  }
}

.introduction-text {
    max-width: 800px;
    margin: 40px auto;
    font-size: 18px;
    line-height: 1.6;
}

.introduction-text > h2 {
    text-align: center;
}

@media (max-width: 880px) {
    .introduction-text {
        max-width: 80%;
        font-size: 16px;
        text-align: center;
        margin-bottom: 0px;
    }
}

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

/* Horizontal strip */
.row {
  display: flex;
  align-items: center;
  gap: 70px;
  margin-bottom: 40px;
}

/* Tall slim posters */
.poster {
  width: 140px;
  aspect-ratio: 1 / 3;

  position: relative;
  overflow: hidden;

  background: transparent;              /* <-- key change */
  box-sizing: border-box;   
  box-shadow: rgba(0, 0, 0, 0.553) 0px 5px 15px;            /* keeps sizing stable */
}

/* Image */
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  box-shadow: rgba(0, 0, 0, 0.553) 0px 5px 15px;

}

/* Initial overlay */
.poster-initial {
  position: absolute;
  bottom: 20px;   /* 14px frame + small spacing */
  left: 20px;

  font-family: "Rubik Dirt", sans-serif;
  font-size: 32px;
  font-weight: 400;

  color: rgba(255, 255, 255, 0.9);

  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);

  pointer-events: none;
}

/* Logo */
.logo-wrap {
  width: 240px;
  height: 240px;
  display: grid;
  place-items: center;
}

.logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Tablet */


@media (max-width: 1100px) {
  .row {
    gap: 5%;
  }

  .poster {
    gap: 20px;
  height: 100%;
  object-fit: cover;
  display: block;
  /* box-shadow: rgba(0, 0, 0, 0.553) 0px 5px 15px; */
  padding: 0;
  }

  /* Lighter, softer shadow */
  .poster img {
    /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); */
    gap: 20px;

  }

  .poster-initial {
    bottom: 10px;
    left: 10px;
    font-size: 20px;
  }

  .logo-wrap {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 700px) {
  .row {
    gap: 5%;
  }

  .poster {
    gap: 10px;
  width: 100%;
  object-fit: cover;
  display: block;
  padding: 0;
  }

    .poster img {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.163);
    width: 100%;

  }

  .poster-initial {
    bottom: 10px;
    left: 10px;
    font-size: 20px;
  }

  .logo-wrap {
    width: 120px;
    height: 120px;
  }
}

.hero-logo {
-webkit-mask-image: url("/images/mask.jpeg");
  -webkit-mask-repeat: repeat;
  -webkit-mask-size:200px 200px;
  -webkit-mask-position: center;
  -webkit-mask-mode: luminance; 

  mask-image: url("/images/mask.jpeg");
  mask-repeat: repeat;
  mask-size:200px 200px;
  mask-position: center;
  mask-mode: luminance;  
  /* make the image transparent */
  opacity: 0.81;
}

.business-name-header {
  font-family: "Rubik Dirt", system-ui, sans-serif;
  font-size: 60px;
  line-height: 1.1;
  letter-spacing: 0.025em;
  color: #141414;
  font-weight: 400;
  text-shadow:
  0.8px 0.8px 0 rgba(0,0,0,0.2),
 -0.5px -0.5px 0 rgba(0,0,0,0.15);


  display: inline-block; /* important for consistent masking */

  -webkit-mask-image: url("/images/mask.jpeg");
  -webkit-mask-repeat: repeat;
  -webkit-mask-size:100px 100px;
  -webkit-mask-position: center;
  -webkit-mask-mode: luminance; 

  mask-image: url("/images/mask.jpeg");
  mask-repeat: repeat;
  mask-size:100px 100px;
  mask-position: center;
  mask-mode: luminance;  
  
  margin-top: 10px;
  margin-bottom: 30px
}

















.row {
  position: relative;
  overflow: hidden; /* crops the moving gif to the row */
}

/* One moving GIF strip behind all posters */
.row-gif {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  display: flex;
  align-items: center;

}

/* Each gif fills the row height and sits side-by-side */
.row-gif img {
  height: 30%;
  width: auto;
  flex: 0 0 auto;
}

/* Put posters above the gif */
.poster {
  position: relative;
  z-index: 1;
}

/* Move the whole strip left -> right */
.row-gif {
  animation: rowGifMove 10s linear infinite;
}

/* If you want it to move right -> left, swap the translate directions */
@keyframes rowGifMove {
  from { transform: translateX(-50%); }
  to   { transform: translateX(100%); }
}