/* Scroll-locked bottle showcase (bottle_scroll layout). */
.dodr-bottle-scroll {
	--dodr-bottle-h: min(52vh, 520px);
	position: relative;
	padding: 4rem 0;
	overflow: hidden;
}

.dodr-bottle-scroll__intro {
	margin: 0 auto 2.5rem;
	max-width: 42rem;
	text-align: center;
}

.dodr-bottle-scroll__heading {
	margin-bottom: 0.75rem;
}

.dodr-bottle-scroll__copy {
	margin: 0;
}

/* Static fallback: stacked label cards. */
.dodr-bottle-scroll__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 1.5rem;
}

.dodr-bottle-scroll__card {
	text-align: center;
}

.dodr-bottle-scroll__card-art {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 180 / 230;
	border-radius: 8px;
}

.dodr-bottle-scroll__card-name {
	margin: 0.75rem 0 0.25rem;
	font-size: 1.1rem;
}

.dodr-bottle-scroll__card-tagline {
	margin: 0;
	opacity: 0.8;
}

.dodr-bottle-scroll__animated {
	display: none;
}

/* Pinned state, applied by JS once GSAP and ScrollTrigger are running. */
.dodr-bottle-scroll--animated {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100vh;
	height: 100svh;
	padding: 1rem 0;
}

.dodr-bottle-scroll--animated .dodr-bottle-scroll__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	min-height: 0;
}

.dodr-bottle-scroll--animated .dodr-bottle-scroll__intro {
	margin-bottom: 0.5rem;
}

.dodr-bottle-scroll--animated .dodr-bottle-scroll__grid {
	display: none;
}

.dodr-bottle-scroll--animated .dodr-bottle-scroll__animated {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
}

.dodr-bottle-scroll__stage {
	position: relative;
	flex: 0 1 auto;
	width: calc(var(--dodr-bottle-h) * 0.55);
	height: var(--dodr-bottle-h);
	min-height: 0;
}

/* WebGL bottle (dodr-bottle-3d.js). The canvas fills the stage and ignores pointer input. */
.dodr-bottle__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	pointer-events: none;
}

.dodr-bottle-scroll__shadow {
	position: absolute;
	left: 22%;
	bottom: 6%;
	width: 56%;
	height: 4%;
	background: radial-gradient(closest-side, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0));
	pointer-events: none;
}

.dodr-bottle-scroll__info {
	width: 100%;
	max-width: 32rem;
	text-align: center;
}

.dodr-bottle-scroll__flavours {
	display: grid;
}

.dodr-bottle-scroll__flavour {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
}

.dodr-bottle-scroll__flavour.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.dodr-bottle-scroll__name {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 2.5rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dodr-bottle-scroll__tagline {
	margin: 0.5rem 0 0;
	opacity: 0.85;
}

.dodr-bottle-scroll__progress {
	display: flex;
	justify-content: center;
	gap: 0.6rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

.dodr-bottle-scroll__dot {
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.25;
	transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.dodr-bottle-scroll__dot.is-active {
	opacity: 1;
	transform: scale(1.35);
	background: var(--primary-color, #FC7753);
}

@media (max-width: 767.98px) {
	.dodr-bottle-scroll {
		--dodr-bottle-h: min(40vh, 360px);
	}

	.dodr-bottle-scroll__name {
		font-size: 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dodr-bottle-scroll__flavour,
	.dodr-bottle-scroll__dot {
		transition: none;
	}
}
