/**
 * Bellora Showcase Deck.
 *
 * Each panel pins at the top of the viewport while the next slides up over
 * it; the covered panel settles back a fraction. One panel owns the screen
 * at a time — the stack is the navigation.
 *
 * The stacking itself is pure CSS (position: sticky); showcase.js only
 * writes the settle scale, so the deck still stacks with JavaScript off.
 */

.bellora-showcase {
	--bellora-showcase-h: 88vh;
	--bellora-showcase-media: 52%;
	position: relative;
}

/* -------------------------------------------------- panels */

/* First and third panels sit on the tinted band; the middle one stays white,
   so the deck reads as light–colour–light rather than a strict alternation. */
.bellora-showcase__panel {
	position: sticky;
	top: 0;
	overflow: hidden;
	background: var(--bellora-color-surface-cream);
}

.bellora-showcase__panel:nth-child(even) {
	background: var(--bellora-color-surface);
}

.bellora-showcase__frame {
	display: flex;
	align-items: center;
	min-height: var(--bellora-showcase-h);
	padding-block: clamp(2.5rem, 5vw, 4rem);
	/* Written by showcase.js as the next panel covers this one; transform
	   origin at the top reads as "pressed back", not "falling away". */
	transform: scale(var(--bellora-showcase-scale, 1));
	transform-origin: center top;
	will-change: transform;
}

.bellora-showcase__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--bellora-showcase-media);
	align-items: center;
	column-gap: clamp(2.5rem, 6vw, 5.5rem);
	width: min(1100px, 100% - 2 * var(--bellora-layout-container-pad));
	margin-inline: auto;
}

/* Every other panel mirrors, so the deck does not read as a template. */
.bellora-showcase__panel:nth-child(even) .bellora-showcase__inner {
	grid-template-columns: var(--bellora-showcase-media) minmax(0, 1fr);
}

.bellora-showcase__panel:nth-child(even) .bellora-showcase__media {
	order: -1;
}

/* -------------------------------------------------- copy */

.bellora-showcase__body {
	min-width: 0;
}

.bellora-showcase__count {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 clamp(1.25rem, 2vw, 1.75rem);
	color: var(--bellora-color-heading-soft);
	font-family: var(--bellora-font-ui);
	font-size: 12px;
	font-weight: var(--bellora-weight-medium);
	letter-spacing: 0.24em;
	font-variant-numeric: tabular-nums;
}

.bellora-showcase__count-now {
	color: var(--bellora-color-accent);
}

.bellora-showcase__count-rule {
	display: block;
	width: 2rem;
	height: 1px;
	background: currentColor;
	opacity: 0.4;
}

.bellora-showcase__category {
	display: block;
	color: var(--bellora-color-heading-soft);
	font-family: var(--bellora-font-ui);
	font-size: 11px;
	font-weight: var(--bellora-weight-medium);
	letter-spacing: 0.28em;
	text-transform: uppercase;
}

.bellora-showcase__title {
	margin: clamp(0.6rem, 1vw, 0.9rem) 0 0;
	color: var(--bellora-color-heading);
	font-family: var(--bellora-font-display);
	font-size: clamp(2.5rem, 5.2vw, 4.75rem);
	font-weight: 300;
	line-height: 0.98;
	letter-spacing: -0.02em;
}

.bellora-showcase__text {
	margin: clamp(1rem, 1.7vw, 1.5rem) 0 0;
	max-width: 32em;
	color: var(--bellora-color-text);
	font-size: var(--bellora-size-base);
	line-height: var(--bellora-leading-relaxed);
}

.bellora-showcase__facts {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	margin: clamp(1.5rem, 2.6vw, 2.25rem) 0 0;
	padding-top: clamp(1.25rem, 2.2vw, 1.75rem);
	border-top: var(--vsp-hairline);
}

.bellora-showcase__fact {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.bellora-showcase__fact dt {
	margin: 0;
	color: var(--bellora-color-text-muted);
	font-family: var(--bellora-font-ui);
	font-size: 11px;
	font-weight: var(--bellora-weight-medium);
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.bellora-showcase__fact dd {
	margin: 0;
	color: var(--bellora-color-heading);
	font-family: var(--bellora-font-display);
	font-size: clamp(1.25rem, 1.8vw, 1.5rem);
	font-weight: 400;
	letter-spacing: -0.01em;
}

.bellora-showcase__link {
	display: inline-flex;
	margin-top: clamp(1.5rem, 2.6vw, 2.25rem);
}

/* -------------------------------------------------- media */

.bellora-showcase__media {
	position: relative;
	width: 100%;
	margin: 0;
	aspect-ratio: 0.92;
	max-height: calc(var(--bellora-showcase-h) - clamp(5rem, 10vw, 8rem));
	overflow: hidden;
	background: var(--bellora-color-surface-alt);
}

.bellora-showcase__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* -------------------------------------------------- small screens */

@media (max-width: 1024px) {
	.bellora-showcase__panel {
		position: relative;
	}

	.bellora-showcase__frame {
		min-height: 0;
		transform: none;
		padding-block: clamp(3rem, 6vw, 4.5rem);
	}

	.bellora-showcase__inner,
	.bellora-showcase__panel:nth-child(even) .bellora-showcase__inner {
		grid-template-columns: minmax(0, 1fr);
		row-gap: clamp(1.75rem, 4vw, 2.5rem);
	}

	.bellora-showcase__media {
		order: -1;
	}

	.bellora-showcase__panel .bellora-showcase__media {
		aspect-ratio: 1.5;
		max-height: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bellora-showcase__frame {
		transform: none !important;
	}
}
