/* Hero — sticky viewport scroll sequence (no pin spacer dead zone) */

.hero-scroll {
  position: relative;
  width: 100%;
  background: #111411;
}

.hero-scroll__viewport {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: #111411;
}

.hero-scroll .project-3d-scroll__stage {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block;
}

.hero-scroll__canvas,
.hero-scroll .project-3d-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  opacity: 1;
  transform: none;
  filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.35));
}

.hero-scroll__fallback {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scroll.is-ready .hero-scroll__fallback {
  display: none;
}

.hero-scroll__viewport::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(17, 20, 17, 0.72) 0%,
    rgba(17, 20, 17, 0.08) 42%,
    rgba(17, 20, 17, 0.18) 72%,
    rgba(17, 20, 17, 0.62) 100%
  );
}

.hero-scroll__intro {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 2rem;
  pointer-events: none;
  transition: opacity 0.15s linear;
}

.hero-scroll__intro-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #e9c349;
  margin-bottom: 1.5rem;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.hero-scroll__intro-lead {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #e1e3de;
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.hero-scroll__intro-cta {
  pointer-events: auto;
}

.hero-scroll__copy {
  position: absolute;
  left: 6%;
  right: auto;
  top: clamp(6.75rem, 11vh, 8.5rem);
  bottom: auto;
  transform: none;
  z-index: 25;
  width: min(40rem, 86vw);
  max-width: none;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.hero-scroll__copy::before {
  content: "";
  position: absolute;
  inset: -1.75rem -4rem -2.5rem -1.75rem;
  background: radial-gradient(
    ellipse 95% 130% at 0% 0%,
    rgba(17, 20, 17, 0.72) 0%,
    rgba(17, 20, 17, 0.28) 46%,
    transparent 74%
  );
  z-index: -1;
  pointer-events: none;
}

.hero-scroll__copy.is-visible {
  opacity: 1;
  visibility: visible;
}

.hero-scroll__rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.35rem 1.6rem;
  align-items: flex-end;
  margin-bottom: 1.1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(233, 195, 73, 0.42);
}

.hero-scroll__rail-item {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d7ddd7;
  padding-bottom: 0.35rem;
  margin-bottom: -0.55rem;
  border-bottom: 2px solid transparent;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
  transition: color 0.35s ease, border-color 0.35s ease;
}

.hero-scroll__rail-item.is-active {
  color: #e9c349;
  border-bottom-color: #e9c349;
}

.hero-scroll__prompts {
  display: grid;
}

.hero-scroll__prompt {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: min(34rem, 92vw);
  opacity: 0;
  transform: translateX(0);
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-scroll__prompt.is-shown {
  opacity: 1;
  z-index: 1;
}

.hero-scroll__prompt[data-slot="0"] { transform: translateX(0); }
.hero-scroll__prompt[data-slot="1"] { transform: translateX(1.75rem); }
.hero-scroll__prompt[data-slot="2"] { transform: translateX(3.5rem); }
.hero-scroll__prompt[data-slot="3"] { transform: translateX(1.1rem); }

.hero-scroll__prompt-section {
  display: none;
}

.hero-scroll__prompt-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.05rem, 5vw, 3.15rem);
  line-height: 1.15;
  font-weight: 600;
  color: #e9c349;
  margin: 0 0 0.9rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55), 0 8px 28px rgba(0, 0, 0, 0.7);
  display: inline-block;
  border-bottom: 2px solid #e9c349;
  padding-bottom: 0.14em;
}

.hero-scroll__prompt-body {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #e1e3de;
  max-width: 38rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}

.hero-scroll .hero-scroll__hint,
.hero-scroll .project-3d-scroll__hint {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  transform: translateX(-50%);
  z-index: 26;
  transition: opacity 0.25s ease;
}

.hero-scroll .project-3d-scroll__progress {
  position: absolute;
  left: 50%;
  bottom: clamp(0.75rem, 2vh, 1.25rem);
  transform: translateX(-50%);
  z-index: 26;
}

.hero-scroll .project-3d-scroll__loader {
  z-index: 40;
}

@media (max-width: 768px) {
  .hero-scroll__copy {
    top: 5.5rem;
    bottom: auto;
    left: 1.25rem;
    right: 1.25rem;
    width: auto;
  }

  .hero-scroll__rail {
    gap: 0.75rem 1rem;
  }

  .hero-scroll__rail-item {
    font-size: 0.68rem;
  }

  .hero-scroll__prompt[data-slot="0"],
  .hero-scroll__prompt[data-slot="1"],
  .hero-scroll__prompt[data-slot="2"],
  .hero-scroll__prompt[data-slot="3"] {
    transform: none;
  }

  .hero-scroll__prompt-title {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .hero-scroll__prompt-body {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll__copy,
  .hero-scroll__prompt,
  .hero-scroll__intro,
  .hero-scroll__rail-item {
    transition: none;
  }
}
