#hero-scroll-section {
  height: 350vh;
  position: relative;
  background: #000;
}

#hero-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: sticky; /* make sure this is sticky */
}

/* canvas full width and height */
#hero-canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* text overlay on top right */
#hero-overlay-text {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  text-align: right;
  z-index: 10;
  max-width: 420px;
}

#hero-tagline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px 0;
  line-height: 1.2;
  border-right: 3px solid #c8a97e;
  display: inline-block;
}

#hero-tagline.done {
  border-right: none;
}

#hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: #c8a97e;
  margin: 0;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.5s ease;
  border-right: 3px solid #c8a97e;
  display: inline-block;
}

#hero-subtitle.done {
  border-right: none;
}

#hero-subtitle.visible {
  opacity: 1;
}

/* dark gradient behind text for readability */
#hero-overlay-text::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  bottom: -40px;
  left: -60px;
  background: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 100%);
  z-index: -1;
  border-radius: 4px;
}

/* mobile */
@media (max-width: 768px) {
  #hero-overlay-text {
    right: 50%;
    transform: translate(50%, -50%);
    text-align: center;
    max-width: 90%;
  }
}