.scroll-text-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 999;
}

.scroll-text-box {
    max-width: 680px;
    padding: 44px 52px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 3px solid #b8860b;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}

.scroll-text-box.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-text-box p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #2c2c2c;
    margin: 0;
}


.reveal {
  opacity: 0 !important;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1),
              transform 0.7s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1 !important;
  transform: translateY(0);
}
.reveal.exit {
  opacity: 0 !important;
  transform: translateY(-16px);
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1), transform 0.4s cubic-bezier(.4,0,.2,1);
}

