/*
 * ARN Hero — Story: full-screen step slider (builds on hero-base.css).
 *
 * data-view      tabs    numbered step tabs along the bottom
 *                rail    vertical step list in a glass column
 *                counter numbered progress strip on top + large counter
 *                split   text panel beside the media (or a floating card)
 * data-pos       start | center | end   content position (split: panel side)
 * data-fx        fade | slide | zoom    background transition
 * data-kenburns  slow drift on the active image (always on with zoom)
 *
 * Markup: slide > backdrop (clip box) > media (animated) > visual (customer
 * image / video, Ken Burns drift) + shade. The active tab carries
 * --vdx-progress (0…1), set by the runtime on every animation frame.
 */

.vdx-story {
	--vdx-story-top: calc(var(--vdx-safe-top, 0px) + 24px);
	--vdx-story-nav-space: 168px;
	--vdx-story-rail: 280px;
	--vdx-story-rail-space: calc(var(--vdx-gutter) + var(--vdx-story-rail) + 56px);
	--vdx-story-split: 44%;
	--vdx-story-panel-pad: clamp(28px, 4.4vw, 72px);
	--vdx-story-title-size: clamp(2.25rem, 1.2rem + 4vw, 5.25rem);
	--vdx-story-content-width: 780px;
	--vdx-story-panel: var(--vendix-color-bg-light, #f7f8fa);
	--vdx-story-glass: color-mix(in srgb, var(--vdx-ink) 42%, transparent);
	--vdx-story-glass-blur: 14px;
	--vdx-progress-color: var(--vdx-accent);
	--vdx-to-end: to right;
	--vdx-to-start: to left;
	--vdx-step: 1;
	--vdx-move: calc(var(--vdx-sign) * var(--vdx-step));
	--vdx-links-bottom: calc(var(--vdx-story-nav-space) - 40px);

	background: var(--vdx-ink);
}

.vdx-story.vdx-hero--rtl {
	--vdx-to-end: to left;
	--vdx-to-start: to right;
}

.vdx-story[data-move="prev"] {
	--vdx-step: -1;
}

/* ------------------------------------------------------------------ */
/* Slides                                                              */
/* ------------------------------------------------------------------ */

.vdx-story .vdx-story__stage {
	position: absolute;
	inset: 0;
	touch-action: pan-y;
}

.vdx-story .vdx-story__slide {
	position: absolute;
	inset: 0;
	display: grid;
	align-content: center;
	justify-items: start;
	padding-block: var(--vdx-story-top) var(--vdx-story-nav-space);
	padding-inline: var(--vdx-gutter);
	visibility: hidden;
}

.vdx-story .vdx-story__slide.is-active,
.vdx-story .vdx-story__slide.is-leaving {
	visibility: visible;
}

.vdx-story .vdx-story__slide.is-active {
	z-index: 2;
}

.vdx-story .vdx-story__slide.is-leaving {
	z-index: 1;
}

.vdx-story .vdx-story__backdrop {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: var(--vdx-ink);
}

.vdx-story .vdx-story__media,
.vdx-story .vdx-story__visual {
	position: absolute;
	inset: 0;
}

.vdx-story .vdx-story__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, color-mix(in srgb, var(--vdx-shade) 82%, transparent), transparent 45%),
		linear-gradient(var(--vdx-to-end), color-mix(in srgb, var(--vdx-shade) 78%, transparent), color-mix(in srgb, var(--vdx-shade) 8%, transparent) 72%);
	opacity: var(--vdx-shade-opacity);
}

/* Keeps a transparent header readable on bright media. */
.vdx-story .vdx-story__shade::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	block-size: 32%;
	background: linear-gradient(color-mix(in srgb, var(--vdx-shade) 60%, transparent), transparent);
}

.vdx-story[data-pos="end"] .vdx-story__shade {
	background:
		linear-gradient(to top, color-mix(in srgb, var(--vdx-shade) 82%, transparent), transparent 45%),
		linear-gradient(var(--vdx-to-start), color-mix(in srgb, var(--vdx-shade) 78%, transparent), color-mix(in srgb, var(--vdx-shade) 8%, transparent) 72%);
}

.vdx-story[data-pos="center"] .vdx-story__shade {
	background:
		linear-gradient(to top, color-mix(in srgb, var(--vdx-shade) 82%, transparent), transparent 45%),
		color-mix(in srgb, var(--vdx-shade) 45%, transparent);
}

/* ------------------------------------------------------------------ */
/* Content                                                             */
/* ------------------------------------------------------------------ */

.vdx-story .vdx-story__content {
	position: relative;
	display: grid;
	justify-items: start;
	gap: 18px;
	max-inline-size: var(--vdx-story-content-width);
}

.vdx-story:not([data-view="split"])[data-pos="center"] .vdx-story__slide,
.vdx-story:not([data-view="split"])[data-pos="center"] .vdx-story__content {
	justify-items: center;
	text-align: center;
}

.vdx-story:not([data-view="split"])[data-pos="end"] .vdx-story__slide,
.vdx-story:not([data-view="split"])[data-pos="end"] .vdx-story__content {
	justify-items: end;
	text-align: end;
}

.vdx-story .vdx-story__eyebrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0;
	color: var(--vdx-accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: var(--vdx-tracking-wide);
	line-height: 1.4;
	text-transform: uppercase;
}

.vdx-story .vdx-story__eyebrow-step::after {
	content: "";
	display: inline-block;
	inline-size: 28px;
	block-size: 1px;
	margin-inline-start: 12px;
	background: currentColor;
	vertical-align: middle;
}

.vdx-story .vdx-story__title {
	margin: 0;
	color: inherit;
	font-size: var(--vdx-story-title-size);
	font-weight: 700;
	line-height: var(--vdx-title-leading);
	letter-spacing: var(--vdx-tracking-tight);
	text-wrap: balance;
}

.vdx-story .vdx-story__text {
	max-inline-size: 34em;
	margin: 0;
	color: var(--vdx-on-media-soft);
	font-size: clamp(1rem, 0.92rem + 0.35vw, 1.2rem);
	line-height: 1.6;
	text-wrap: pretty;
}

.vdx-story .vdx-story__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-block-start: 10px;
}

.vdx-story:not([data-view="split"])[data-pos="center"] .vdx-story__actions {
	justify-content: center;
}

.vdx-story:not([data-view="split"])[data-pos="end"] .vdx-story__actions {
	justify-content: flex-end;
}

/* ------------------------------------------------------------------ */
/* Transitions                                                         */
/* ------------------------------------------------------------------ */

.vdx-story .vdx-story__slide.is-active .vdx-story__media {
	animation: vdx-story-fade-in var(--vdx-speed) var(--vdx-ease) both;
}

.vdx-story[data-fx="slide"] .vdx-story__slide.is-active .vdx-story__media {
	animation-name: vdx-story-slide-in;
}

.vdx-story[data-fx="slide"] .vdx-story__slide.is-leaving .vdx-story__media {
	animation: vdx-story-slide-out var(--vdx-speed) var(--vdx-ease) both;
}

.vdx-story[data-fx="zoom"] .vdx-story__slide.is-active .vdx-story__media {
	animation-name: vdx-story-zoom-in;
}

.vdx-story:is([data-fx="zoom"], [data-kenburns]) .vdx-story__slide.is-active .vdx-story__visual {
	animation: vdx-hero-drift 12s linear both;
}

.vdx-story .vdx-story__slide.is-active .vdx-story__content > * {
	animation: vdx-story-rise calc(var(--vdx-speed) * 0.9) var(--vdx-ease) both;
	animation-delay: calc(var(--vdx-speed) * 0.2);
}

.vdx-story .vdx-story__slide.is-active .vdx-story__content > :nth-child(2) {
	animation-delay: calc(var(--vdx-speed) * 0.3);
}

.vdx-story .vdx-story__slide.is-active .vdx-story__content > :nth-child(3) {
	animation-delay: calc(var(--vdx-speed) * 0.4);
}

.vdx-story .vdx-story__slide.is-active .vdx-story__content > :nth-child(4) {
	animation-delay: calc(var(--vdx-speed) * 0.5);
}

.vdx-story .vdx-story__slide.is-leaving .vdx-story__content {
	animation: vdx-story-fade-out calc(var(--vdx-speed) * 0.4) ease both;
}

@keyframes vdx-story-fade-in {
	from {
		opacity: 0;
	}
}

@keyframes vdx-story-fade-out {
	to {
		opacity: 0;
	}
}

/* --vdx-move is +1 / -1 from the direction and the writing mode. */
@keyframes vdx-story-slide-in {
	from {
		transform: translateX(calc(var(--vdx-move) * 100%));
	}
}

@keyframes vdx-story-slide-out {
	to {
		transform: translateX(calc(var(--vdx-move) * -28%));
	}
}

@keyframes vdx-story-zoom-in {
	from {
		opacity: 0;
		transform: scale(1.16);
	}
}

@keyframes vdx-story-rise {
	from {
		opacity: 0;
		transform: translateY(26px);
	}
}

/* ------------------------------------------------------------------ */
/* Navigation: step tabs (view "tabs" is the base)                     */
/* ------------------------------------------------------------------ */

.vdx-story .vdx-story__nav {
	position: absolute;
	z-index: 3;
	inset-inline: var(--vdx-gutter);
	inset-block-end: 32px;
	display: flex;
	align-items: center;
	gap: 28px;
}

.vdx-story .vdx-story__tabs {
	display: grid;
	flex: 1;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: 24px;
}

.vdx-story .vdx-story__tab {
	--vdx-fill: 0;

	position: relative;
	display: grid;
	align-content: start;
	gap: 6px;
	min-block-size: 44px;
	padding: 20px 0 0;
	color: var(--vdx-on-media-soft);
	text-align: start;
}

.vdx-story .vdx-story__tab:is(:hover, :focus) {
	color: #ffffff;
}

.vdx-story .vdx-story__tab:focus-visible {
	outline-offset: 6px;
}

.vdx-story .vdx-story__tab.is-done {
	--vdx-fill: 1;
}

.vdx-story .vdx-story__tab[aria-selected="true"] {
	--vdx-fill: var(--vdx-progress, 0);

	color: #ffffff;
}

.vdx-story .vdx-story__tab-bar {
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	block-size: 2px;
	overflow: hidden;
	background: color-mix(in srgb, #ffffff 28%, transparent);
}

.vdx-story .vdx-story__tab-fill {
	display: block;
	inline-size: calc(var(--vdx-fill) * 100%);
	block-size: 100%;
	background: var(--vdx-progress-color);
}

.vdx-story .vdx-story__tab.is-done .vdx-story__tab-fill {
	background: color-mix(in srgb, #ffffff 75%, transparent);
}

.vdx-story .vdx-story__tab-num {
	color: var(--vdx-accent);
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: var(--vdx-tracking-wide);
}

.vdx-story .vdx-story__tab-label {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}

/* ------------------------------------------------------------------ */
/* View: rail                                                          */
/* ------------------------------------------------------------------ */

.vdx-story[data-view="rail"] {
	--vdx-links-top: calc(var(--vdx-safe-top, 0px) + 8px);
	--vdx-links-bottom: 8px;
}

.vdx-story[data-view="rail"] .vdx-story__slide {
	padding-block-end: 56px;
	padding-inline: var(--vdx-gutter) var(--vdx-story-rail-space);
}

.vdx-story[data-view="rail"][data-pos="end"] .vdx-story__slide {
	padding-inline: var(--vdx-story-rail-space) var(--vdx-gutter);
}

.vdx-story[data-view="rail"][data-pos="center"] .vdx-story__slide {
	padding-inline: var(--vdx-story-rail-space);
}

/* Glass column, as tall as its steps and centred in the free height. */
.vdx-story[data-view="rail"] .vdx-story__nav {
	inset-block: calc(var(--vdx-story-top) + 24px) 48px;
	inset-inline: auto var(--vdx-gutter);
	inline-size: var(--vdx-story-rail);
	block-size: fit-content;
	margin-block: auto;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 18px;
	padding: 26px 26px 18px;
	border: 1px solid color-mix(in srgb, #ffffff 16%, transparent);
	border-radius: 18px;
	background: var(--vdx-story-glass);
	backdrop-filter: blur(var(--vdx-story-glass-blur));
}

.vdx-story[data-view="rail"][data-pos="end"] .vdx-story__nav {
	inset-inline: var(--vdx-gutter) auto;
}

.vdx-story[data-view="rail"] .vdx-story__tabs {
	flex: none;
	align-self: stretch;
	grid-auto-flow: row;
	gap: 0;
}

.vdx-story[data-view="rail"] .vdx-story__tab {
	grid-template-columns: 2.6em minmax(0, 1fr);
	align-items: baseline;
	padding-block: 15px;
	padding-inline: 22px 0;
}

.vdx-story[data-view="rail"] .vdx-story__tab-bar {
	inset-block: 0;
	inset-inline: 0 auto;
	inline-size: 2px;
	block-size: auto;
}

.vdx-story[data-view="rail"] .vdx-story__tab-fill {
	inline-size: 100%;
	block-size: calc(var(--vdx-fill) * 100%);
}

.vdx-story[data-view="rail"] .vdx-story__tab-label {
	font-size: 17px;
}

/* ------------------------------------------------------------------ */
/* View: counter                                                       */
/* ------------------------------------------------------------------ */

.vdx-story[data-view="counter"] {
	--vdx-links-top: calc(var(--vdx-safe-top, 0px) + 64px);
	--vdx-links-bottom: 20px;
}

.vdx-story[data-view="counter"] .vdx-story__slide {
	align-content: end;
	padding-block: calc(var(--vdx-safe-top, 0px) + 110px) 72px;
	padding-inline: var(--vdx-gutter) calc(var(--vdx-gutter) + 400px);
}

.vdx-story[data-view="counter"][data-pos="end"] .vdx-story__slide {
	padding-inline: calc(var(--vdx-gutter) + 400px) var(--vdx-gutter);
}

.vdx-story[data-view="counter"][data-pos="center"] .vdx-story__slide {
	align-content: center;
	padding-block-end: 220px;
	padding-inline: var(--vdx-gutter);
}

.vdx-story[data-view="counter"] .vdx-story__nav {
	inset-block: calc(var(--vdx-safe-top, 0px) + 12px) auto;
	gap: 22px;
}

.vdx-story[data-view="counter"] .vdx-story__tabs {
	gap: 14px;
}

.vdx-story[data-view="counter"] .vdx-story__tab {
	grid-template-columns: auto minmax(0, 1fr);
	align-items: baseline;
	gap: 10px;
	padding: 0 0 14px;
}

.vdx-story[data-view="counter"] .vdx-story__tab-bar {
	inset-block: auto 0;
	block-size: 3px;
}

.vdx-story[data-view="counter"] .vdx-story__tab-label {
	overflow: hidden;
	font-size: 14px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vdx-story .vdx-story__dock {
	position: absolute;
	z-index: 3;
	inset-block-end: 40px;
	inset-inline: auto var(--vdx-gutter);
	display: flex;
	align-items: flex-end;
	gap: 28px;
}

.vdx-story[data-pos="end"] .vdx-story__dock {
	inset-inline: var(--vdx-gutter) auto;
}

.vdx-story .vdx-story__arrows {
	display: flex;
	gap: 10px;
	padding-block-end: 10px;
}

.vdx-story .vdx-story__arrow {
	display: grid;
	place-items: center;
	inline-size: 52px;
	block-size: 52px;
	border: 1px solid color-mix(in srgb, #ffffff 55%, transparent);
	border-radius: 50%;
	color: #ffffff;
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

.vdx-story .vdx-story__arrow:is(:hover, :focus) {
	background: transparent;
	color: #ffffff;
}

.vdx-story .vdx-story__arrow:hover {
	background: #ffffff;
	color: var(--vdx-ink);
}

.vdx-story .vdx-story__arrow svg {
	inline-size: 20px;
	block-size: 20px;
}

.vdx-story .vdx-story__count {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	margin: 0;
	line-height: 0.78;
}

.vdx-story .vdx-story__count-current {
	color: transparent;
	font-size: clamp(5rem, 2rem + 9vw, 11.5rem);
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	letter-spacing: var(--vdx-tracking-tight);
	-webkit-text-stroke: 2px color-mix(in srgb, #ffffff 90%, transparent);
}

.vdx-story .vdx-story__count-current.is-changing {
	animation: vdx-story-rise calc(var(--vdx-speed) * 0.8) var(--vdx-ease) both;
}

.vdx-story .vdx-story__count-total {
	padding-block-end: 0.4em;
	color: var(--vdx-on-media-soft);
	font-size: 22px;
	font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* View: split (light panel; the header stays a plain bar above it)    */
/* ------------------------------------------------------------------ */

.vdx-story[data-view="split"] {
	--vdx-story-title-size: clamp(2rem, 1rem + 2.6vw, 3.6rem);
	--vdx-btn-line: var(--vendix-color-secondary, #111827);
	--vdx-btn-ink: var(--vendix-color-secondary, #111827);
	--vdx-btn-hover-bg: var(--vendix-color-secondary, #111827);
	--vdx-btn-hover-ink: #ffffff;
	--vdx-focus-ring: var(--vendix-color-secondary, #111827);
	--vdx-progress-color: var(--vdx-primary);

	background: var(--vdx-story-panel);
	color: var(--vendix-color-heading, #111827);
}

.vdx-story[data-view="split"] .vdx-story__eyebrow {
	color: var(--vdx-primary);
}

.vdx-story[data-view="split"] .vdx-story__text {
	color: var(--vendix-color-text, #374151);
}

.vdx-story[data-view="split"] .vdx-story__tab {
	color: var(--vendix-color-muted, #6b7280);
}

.vdx-story[data-view="split"] .vdx-story__tab[aria-selected="true"],
.vdx-story[data-view="split"] .vdx-story__tab:is(:hover, :focus) {
	color: var(--vendix-color-heading, #111827);
}

.vdx-story[data-view="split"] .vdx-story__tab-num {
	color: var(--vdx-primary);
}

.vdx-story[data-view="split"] .vdx-story__tab-bar {
	background: var(--vendix-color-border, #d9dde5);
}

.vdx-story[data-view="split"] .vdx-story__tab.is-done .vdx-story__tab-fill {
	background: var(--vendix-color-secondary, #111827);
}

.vdx-story[data-view="split"] .vdx-story__tab-label {
	font-size: 15px;
}

/* Corner links over the light panel are dark. */
.vdx-story[data-view="split"][data-pos="start"] :is(.vdx-hero-links--top-start, .vdx-hero-links--bottom-start),
.vdx-story[data-view="split"][data-pos="end"] :is(.vdx-hero-links--top-end, .vdx-hero-links--bottom-end) {
	--vdx-link-color: var(--vendix-color-heading, #111827);
}

/* Panel beside the media: start or end. */
.vdx-story[data-view="split"]:not([data-pos="center"]) .vdx-story__slide {
	grid-template-columns: var(--vdx-story-split) minmax(0, 1fr);
	grid-template-areas: "content media";
	align-content: stretch;
	justify-items: stretch;
	padding: 0;
}

.vdx-story[data-view="split"][data-pos="end"] .vdx-story__slide {
	grid-template-columns: minmax(0, 1fr) var(--vdx-story-split);
	grid-template-areas: "media content";
}

.vdx-story[data-view="split"]:not([data-pos="center"]) .vdx-story__backdrop {
	position: relative;
	grid-area: media;
}

.vdx-story[data-view="split"]:not([data-pos="center"]) .vdx-story__content {
	grid-area: content;
	align-self: center;
	max-inline-size: none;
	padding: calc(var(--vdx-safe-top, 0px) + 40px) var(--vdx-story-panel-pad) var(--vdx-story-nav-space);
}

.vdx-story[data-view="split"]:not([data-pos="center"]) .vdx-story__nav {
	inset-block-end: 0;
	inset-inline: 0 auto;
	inline-size: var(--vdx-story-split);
	padding: 0 var(--vdx-story-panel-pad) 40px;
}

.vdx-story[data-view="split"][data-pos="end"] .vdx-story__nav {
	inset-inline: auto 0;
}

/* Centered: floating card over full-bleed media. */
.vdx-story[data-view="split"][data-pos="center"] .vdx-story__slide {
	align-content: end;
	justify-items: center;
	padding-block: var(--vdx-story-top) 150px;
}

.vdx-story[data-view="split"][data-pos="center"] .vdx-story__content {
	justify-items: center;
	max-inline-size: min(660px, 100%);
	padding: 40px 44px 44px;
	border-radius: 20px;
	background: var(--vdx-story-panel);
	box-shadow: 0 24px 60px color-mix(in srgb, var(--vdx-ink) 28%, transparent);
	text-align: center;
}

.vdx-story[data-view="split"][data-pos="center"] .vdx-story__actions {
	justify-content: center;
}

.vdx-story[data-view="split"][data-pos="center"] .vdx-story__nav {
	inset-block-end: 28px;
	inset-inline: 0;
	inline-size: min(660px, calc(100% - 2 * var(--vdx-gutter)));
	margin-inline: auto;
	padding: 12px 18px;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 16px 40px color-mix(in srgb, var(--vdx-ink) 22%, transparent);
}

.vdx-story[data-view="split"][data-pos="center"] .vdx-story__tab {
	padding-block-start: 14px;
}

/* ------------------------------------------------------------------ */
/* Tablet                                                              */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.vdx-story {
		--vdx-story-rail: 230px;
		--vdx-story-split: 50%;
	}

	.vdx-story .vdx-story__tab-label {
		font-size: 15px;
	}

	/* Content sits above the counter instead of beside it. */
	.vdx-story[data-view="counter"] .vdx-story__slide,
	.vdx-story[data-view="counter"][data-pos="end"] .vdx-story__slide {
		padding-block-end: 240px;
		padding-inline: var(--vdx-gutter);
	}
}

/* ------------------------------------------------------------------ */
/* Phone                                                               */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	.vdx-story {
		--vdx-story-top: calc(var(--vdx-safe-top, 0px) + 16px);
		--vdx-story-nav-space: 104px;
		--vdx-story-title-size: clamp(2rem, 1.2rem + 4.2vw, 2.6rem);
	}

	.vdx-story .vdx-story__slide {
		align-content: end;
	}

	.vdx-story .vdx-story__content {
		gap: 14px;
	}

	.vdx-story .vdx-story__text {
		font-size: 15px;
	}

	.vdx-story .vdx-btn {
		min-block-size: 46px;
		padding: 11px 20px;
		font-size: 14px;
	}

	.vdx-story .vdx-story__nav {
		inset-block-end: 24px;
		gap: 14px;
	}

	.vdx-story .vdx-story__tab-label {
		overflow: hidden;
		font-size: 14px;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	/* Horizontal tabs: numbers only; the current step also shows its title. */
	.vdx-story:not([data-view="rail"]) .vdx-story__tabs {
		display: flex;
		gap: 10px;
	}

	.vdx-story:not([data-view="rail"]) .vdx-story__tab {
		flex: 1 1 0;
		min-inline-size: 0;
		padding-block-start: 14px;
	}

	.vdx-story[data-view="tabs"] .vdx-story__tab:not([aria-selected="true"]),
	.vdx-story[data-view="split"] .vdx-story__tab:not([aria-selected="true"]) {
		flex: 0 0 30px;
	}

	.vdx-story[data-view="tabs"] .vdx-story__tab[aria-selected="true"],
	.vdx-story[data-view="split"] .vdx-story__tab[aria-selected="true"] {
		grid-template-columns: auto minmax(0, 1fr);
		align-items: baseline;
		gap: 10px;
	}

	/* Labels stay in the accessible name but are not shown. */
	.vdx-story[data-view="tabs"] .vdx-story__tab:not([aria-selected="true"]) .vdx-story__tab-label,
	.vdx-story[data-view="split"] .vdx-story__tab:not([aria-selected="true"]) .vdx-story__tab-label,
	.vdx-story[data-view="rail"] .vdx-story__tab-label,
	.vdx-story[data-view="counter"] .vdx-story__tab-label {
		position: absolute;
		inline-size: 1px;
		block-size: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	/* Rail: slim glass column with numbers. */
	.vdx-story[data-view="rail"] .vdx-story__slide,
	.vdx-story[data-view="rail"][data-pos="center"] .vdx-story__slide {
		padding-block-end: 40px;
		padding-inline: var(--vdx-gutter) 84px;
	}

	.vdx-story[data-view="rail"][data-pos="end"] .vdx-story__slide {
		padding-inline: 84px var(--vdx-gutter);
	}

	.vdx-story[data-view="rail"] .vdx-story__nav {
		inset-block: var(--vdx-story-top) auto;
		inset-inline: auto 12px;
		inline-size: 58px;
		align-items: center;
		gap: 8px;
		padding: 8px 6px;
	}

	.vdx-story[data-view="rail"][data-pos="end"] .vdx-story__nav {
		inset-inline: 12px auto;
	}

	.vdx-story[data-view="rail"] .vdx-story__tab {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		padding-block: 12px;
		padding-inline: 4px 0;
	}

	/* Counter: numbered strip, counter row along the bottom. */
	.vdx-story[data-view="counter"] {
		--vdx-links-top: calc(var(--vdx-safe-top, 0px) + 40px);
	}

	.vdx-story[data-view="counter"] .vdx-story__slide,
	.vdx-story[data-view="counter"][data-pos="end"] .vdx-story__slide,
	.vdx-story[data-view="counter"][data-pos="center"] .vdx-story__slide {
		align-content: end;
		padding-block: calc(var(--vdx-safe-top, 0px) + 80px) 136px;
		padding-inline: var(--vdx-gutter);
	}

	.vdx-story[data-view="counter"] .vdx-story__nav {
		inset-block-start: calc(var(--vdx-safe-top, 0px) + 6px);
	}

	.vdx-story[data-view="counter"] .vdx-story__tab {
		padding-block: 0 10px;
	}

	.vdx-story .vdx-story__dock,
	.vdx-story[data-pos="end"] .vdx-story__dock {
		inset-block-end: 26px;
		inset-inline: var(--vdx-gutter);
		justify-content: space-between;
	}

	.vdx-story .vdx-story__arrows {
		padding-block-end: 4px;
	}

	.vdx-story .vdx-story__arrow {
		inline-size: 46px;
		block-size: 46px;
	}

	.vdx-story .vdx-story__count-current {
		font-size: 4.6rem;
	}

	.vdx-story .vdx-story__count-total {
		font-size: 17px;
	}

	/* Split: media on top, text panel below. */
	.vdx-story[data-view="split"]:not([data-pos="center"]) .vdx-story__slide {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: 42% minmax(0, 1fr);
		grid-template-areas:
			"media"
			"content";
	}

	.vdx-story[data-view="split"]:not([data-pos="center"]) .vdx-story__content {
		padding: 24px var(--vdx-gutter) var(--vdx-story-nav-space);
	}

	.vdx-story[data-view="split"]:not([data-pos="center"]) .vdx-story__nav {
		inset-inline: 0;
		inline-size: auto;
		padding: 0 var(--vdx-gutter) 24px;
	}

	/* The top links sit over the media, the bottom links over the panel. */
	.vdx-story[data-view="split"]:not([data-pos="center"]) :is(.vdx-hero-links--top-start, .vdx-hero-links--top-end) {
		--vdx-link-color: var(--vdx-on-media);
	}

	.vdx-story[data-view="split"]:not([data-pos="center"]) :is(.vdx-hero-links--bottom-start, .vdx-hero-links--bottom-end) {
		--vdx-link-color: var(--vendix-color-heading, #111827);
	}

	.vdx-story[data-view="split"][data-pos="center"] .vdx-story__slide {
		padding-block-end: 116px;
	}

	.vdx-story[data-view="split"][data-pos="center"] .vdx-story__content {
		padding: 26px 22px 28px;
	}

	.vdx-story[data-view="split"][data-pos="center"] .vdx-story__nav {
		inset-block-end: 18px;
		padding: 10px 14px;
	}
}

/* ------------------------------------------------------------------ */
/* Reduced motion: short cross-fade only                               */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.vdx-story[data-fx] .vdx-story__slide.is-active .vdx-story__media {
		animation-name: vdx-story-fade-in;
	}

	.vdx-story[data-fx] .vdx-story__slide.is-leaving .vdx-story__media,
	.vdx-story[data-fx] .vdx-story__slide.is-active .vdx-story__visual {
		animation: none;
	}

	.vdx-story .vdx-story__slide.is-active .vdx-story__content > * {
		animation-name: vdx-story-fade-in;
		animation-delay: 0s;
	}
}
