:root {
	--filled-circle-start: 75;
  	--filled-circle-end: 350;
}

@media screen and (max-width: 768px) {
	:root {
		--filled-circle-start: 50;
    	--filled-circle-end: 220;
	}
}

/* scene wrapper creates a scope; bg sits *outside* the tall section */
.scroll-scene {
  position: relative;
}

/* fixed viewport-tall background (no more 300vh stretch) */
.scroll-scene-bg {
  position: fixed;
  inset: 0;
  height: 120vh;
  pointer-events: none;
  z-index: 0; 
  opacity: 0;    
  transition: opacity 0.3s ease;
}

.scroll-scene-bg img {
  position: absolute;           /* so translateY is from the wrapper */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1.12);
  transform-origin: top center;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* your original section stays tall to drive the scroll */
.scroll-text-section {
  position: relative;
  min-height: 300vh;
  width: 100%;
  z-index: 1; /* above the bg */
}

/* sticky content: unchanged except z-index now matters */
.scroll-text-sticky {
  position: sticky !important;
  top: 100px !important;
  height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}

/* circles + text: unchanged */
[data-circle="outline"] {
  aspect-ratio: 1 / 1;
  width: 100vmax;
  border: 1px solid white;
  border-radius: 50%;
  opacity: 0.6;
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 1;
}
[data-circle="filled"] {
  aspect-ratio: 1 / 1;
  width: 100vmax;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 2;
  clip-path: circle(50%);
}

.scroll-text-box {
  position: relative;
  text-align: center;
  color: white;
  padding: 2rem;
  z-index: 10;
}
.scroll-text-item {
  opacity: 0;
  transition: opacity 0s;
  position: absolute;
  inset: 0;
  width: 80%;
  margin: auto;
  letter-spacing: 3px;
}
.scroll-text-item.active {
  opacity: 1;
  position: relative;
  transition: opacity 1.25s ease-in-out;
}


.scroll-text-sticky {
  position: relative;
}

.scroll-text-disclaimers {
    position: absolute;
    left: 8vw;
    bottom: 0;
    max-width: 60vw;
    z-index: 10;
}


.scroll-text-disclaimer {
	text-align: left;
    color: #fff;
    font-size: 16px;
    margin-bottom: 25px;
    background: rgb(0 0 0 / 35%);
    padding: 12px 24px;
    border-radius: 15px;
}


.scroll-text-disclaimer {
  display: none;
}

.scroll-text-sticky.state-1 .scroll-text-disclaimer.d1,
.scroll-text-sticky.state-2 .scroll-text-disclaimer.d2,
.scroll-text-sticky.state-3 .scroll-text-disclaimer.d3 {
  display: flex;
  gap: 10px;
}

@media screen and (max-width: 768px) {
	.scroll-text-line {
		font-size: 8vw !important;
	}
	
	.scroll-text-item {
		width: 90%;
	}
	
	[data-circle="filled"] {
		width: 50vmax;
	}
	
	.scroll-text-disclaimers {
		position: absolute;
		top: 0;
		left: auto;
		max-width: 100%;
		max-height: max-content;
		margin-top: 30px;
	}	
}