/**
 * Cinematic story component.
 *
 * The base rules form a readable, document-flow fallback. Sticky presentation
 * is enabled only after story.js has successfully initialized the component.
 */

.helima-story {
	--story-bg: var(--helima-obsidian, #151311);
	--story-ink: var(--helima-ivory, #f5efe5);
	--story-muted: rgba(245, 239, 229, 0.72);
	--story-line: rgba(245, 239, 229, 0.22);
	--story-accent: var(--helima-accent, #68a684);
	position: relative;
	isolation: isolate;
	background: var(--story-bg);
	color: var(--story-ink);
	direction: inherit;
	font-family: var(--helima-ui, inherit);
}

[dir="rtl"] .helima-story {
	font-family: var(--helima-fa, inherit);
}

.helima-story *,
.helima-story *::before,
.helima-story *::after {
	box-sizing: border-box;
}

.helima-story [hidden] {
	display: none !important;
}

.helima-story__stage {
	position: relative;
	background:
		radial-gradient(circle at 72% 30%, rgba(104, 166, 132, 0.12), transparent 38%),
		var(--story-bg);
	color: var(--story-ink);
	overflow: hidden;
}

.helima-story__stage:focus {
	outline: none;
}

.helima-story__stage:focus-visible {
	outline: 2px solid var(--story-accent);
	outline-offset: -4px;
}

.helima-story__scenes {
	position: relative;
	z-index: 2;
}

.helima-story__scene {
	position: relative;
	display: grid;
	min-height: 88vh;
	min-height: clamp(36rem, 88svh, 62rem);
	overflow: hidden;
	background: #211d19;
}

.helima-story__scene::after {
	position: absolute;
	z-index: 2;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(5, 6, 7, 0.97) 0%, rgba(5, 6, 7, 0.72) 37%, rgba(5, 6, 7, 0.08) 71%),
		linear-gradient(180deg, rgba(5, 6, 7, 0.58), transparent 24%, transparent 68%, rgba(5, 6, 7, 0.88));
	content: "";
	pointer-events: none;
}

[dir="rtl"] .helima-story__scene::after,
.rtl .helima-story__scene::after {
	background:
		linear-gradient(270deg, rgba(5, 6, 7, 0.97) 0%, rgba(5, 6, 7, 0.72) 37%, rgba(5, 6, 7, 0.08) 71%),
		linear-gradient(180deg, rgba(5, 6, 7, 0.58), transparent 24%, transparent 68%, rgba(5, 6, 7, 0.88));
}

.helima-story__media {
	position: absolute;
	z-index: 1;
	inset: 0;
	overflow: hidden;
	background: #211d19;
}

.helima-story.is-enhanced .helima-story__media[data-story-drift="true"] {
	animation: helima-story-media-drift var(--story-drift-duration, 14s) cubic-bezier(0.45, 0, 0.55, 1) var(--story-drift-delay, 0s) infinite alternate both;
	animation-play-state: paused;
	transform-origin: center;
	will-change: transform;
}

.helima-story.is-enhanced .helima-story__scene.is-active .helima-story__media[data-story-drift="true"],
.helima-story.is-enhanced.is-transitioning .helima-story__scene.is-visible .helima-story__media[data-story-drift="true"] {
	animation-play-state: running;
}

.helima-story.is-runtime-paused .helima-story__media[data-story-drift="true"] {
	animation-play-state: paused;
}

.helima-story__media > img,
.helima-story__media > video {
	width: 100%;
	height: 100% !important;
	display: block;
	object-fit: cover;
	object-position: center;
}

.helima-story__media > img {
	filter: saturate(0.82) contrast(1.05) brightness(0.78);
	transform: scale(1.02);
	transition: opacity 800ms ease, filter 900ms ease, transform 4s cubic-bezier(0.2, 0.65, 0.25, 1);
}

.helima-story__media > video {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 800ms ease;
}

.helima-story__scene.is-video-active:not(.is-media-failed) .helima-story__media > video {
	opacity: 1;
}

.helima-story__gallery-pair {
	position: absolute;
	z-index: 2;
	inset-block: clamp(7rem, 12vh, 9rem) clamp(5rem, 9vh, 7rem);
	inset-inline-start: 48vw;
	inset-inline-end: 7vw;
	display: grid;
	grid-template-columns: 0.86fr 1fr;
	align-items: center;
	gap: clamp(1.5rem, 4vw, 4.5rem);
	perspective: 1000px;
}

.helima-story__gallery-pair span {
	position: relative;
	display: block;
	min-width: 0;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border: clamp(0.35rem, 0.7vw, 0.7rem) solid var(--helima-charcoal, #17181c);
	background: var(--helima-charcoal, #17181c);
	box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.72);
	transform: rotateY(-8deg);
}

.helima-story__gallery-pair span:last-child {
	transform: translateY(-4vh) rotateY(8deg);
}

.helima-story__media .helima-story__gallery-pair img,
.helima-story.is-enhanced:not(.is-reduced-motion) .is-active .helima-story__media .helima-story__gallery-pair img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: saturate(0.78) contrast(1.04) brightness(0.9);
	transform: none;
	transition: transform 2.8s ease, filter 800ms ease;
}

.helima-story.is-enhanced:not(.is-reduced-motion) .is-active .helima-story__gallery-pair span:first-child img {
	transform: scale(1.035);
}

.helima-story.is-enhanced:not(.is-reduced-motion) .is-active .helima-story__gallery-pair span:last-child img {
	transform: scale(1.06);
}

.helima-story__copy {
	position: relative;
	z-index: 5;
	display: flex;
	align-items: flex-end;
	width: 100%;
	min-height: inherit;
	padding-block: clamp(7rem, 15vh, 11rem) clamp(7.8rem, 13vh, 10rem);
	pointer-events: none;
}

.helima-story__copy-inner {
	width: min(100%, 61rem);
	pointer-events: auto;
}

.helima-story__copy .section-kicker {
	margin: 0 0 1rem;
	color: var(--story-accent);
	font-size: clamp(0.7rem, 1vw, 0.82rem);
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.helima-story__chapter {
	margin: 0 0 0.8rem;
	color: rgba(245, 239, 229, 0.48);
	font-size: 0.73rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.12em;
}

.helima-story__copy h2 {
	max-width: 12ch;
	margin: 0;
	color: var(--story-ink);
	font-family: var(--helima-display, inherit);
	font-size: clamp(3.1rem, 6.1vw, 7.2rem);
	font-weight: 400;
	line-height: 0.93;
	letter-spacing: 0;
	text-wrap: balance;
}

.helima-story__body {
	max-width: 50ch;
	margin-block-start: 1.35rem;
	color: var(--story-muted);
	font-size: clamp(0.9rem, 1.25vw, 1.06rem);
	line-height: 1.8;
}

.helima-story__body p {
	margin: 0;
}

.helima-story__body p + p {
	margin-block-start: 0.75em;
}

.helima-story__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-block-start: 1.75rem;
}

.helima-story .button {
	min-height: 45px;
	padding-block: 0.72rem;
	font-size: 0.75rem;
}

.helima-story .button--primary {
	background: var(--story-accent);
	border-color: var(--story-accent);
	color: #17130f;
}

.helima-story .button--primary:hover,
.helima-story .button--primary:focus-visible {
	background: var(--helima-accent-soft, #a3c8b4);
	border-color: var(--helima-accent-soft, #a3c8b4);
}

.helima-story .button--ghost {
	border-color: rgba(245, 239, 229, 0.34);
	color: var(--story-ink);
}

.helima-story .button--ghost:hover,
.helima-story .button--ghost:focus-visible {
	border-color: var(--story-ink);
	background: rgba(245, 239, 229, 0.08);
}

.helima-story__skip,
.helima-story__continue {
	display: none;
}

.helima-story.is-enhanced .helima-story__skip,
.helima-story.is-enhanced .helima-story__continue {
	display: inline-flex;
}

.helima-story button:focus-visible,
.helima-story select:focus-visible,
.helima-story a:focus-visible {
	outline: 2px solid var(--story-accent);
	outline-offset: 3px;
}

/* Enhancement-only layers and controls. */
.helima-story__particles,
.helima-story__grain,
.helima-story__vignette,
.helima-story__light,
.helima-story__topline,
.helima-story__rail,
.helima-story__progress,
.helima-story__bottomline {
	display: none;
}

.helima-story.is-enhanced:not(.is-reduced-motion):not(.is-skipped) {
	height: 100vh;
	min-height: 34rem;
}

.helima-story.is-enhanced:not(.is-reduced-motion):not(.is-skipped) .helima-story__stage {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	min-height: 34rem;
}

.helima-story.is-enhanced:not(.is-reduced-motion):not(.is-skipped) .helima-story__scenes,
.helima-story.is-enhanced:not(.is-reduced-motion):not(.is-skipped) .helima-story__scene {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
}

.helima-story.is-enhanced:not(.is-reduced-motion) .helima-story__scene {
	z-index: var(--story-scene-z, 1);
	opacity: var(--story-scene-opacity, 0);
	visibility: hidden;
	pointer-events: none;
	will-change: opacity;
}

.helima-story.is-enhanced:not(.is-reduced-motion) .helima-story__scene.is-visible {
	visibility: visible;
}

.helima-story.is-enhanced:not(.is-reduced-motion) .helima-story__scene.is-active {
	pointer-events: auto;
}

.helima-story.is-enhanced:not(.is-reduced-motion) .helima-story__scene .helima-story__media > img {
	filter: saturate(0.92) contrast(1.07) brightness(0.82);
	transform: translate3d(var(--story-media-shift, 0), 0, 0) scale(var(--story-media-scale, 1.075));
	transition: filter 600ms ease;
	will-change: transform;
}

.helima-story.is-enhanced:not(.is-reduced-motion) .helima-story__scene[data-story-visual="opening"] .helima-story__media > img {
	opacity: 0.64;
	filter: saturate(0.75) brightness(0.72);
	transform: scale(1.04);
}

.helima-story.is-enhanced:not(.is-reduced-motion) .helima-story__copy {
	height: 100%;
	min-height: 0;
}

.helima-story.is-enhanced:not(.is-reduced-motion) .helima-story__copy-inner {
	opacity: var(--story-copy-opacity, 0);
	transform: translate3d(0, var(--story-copy-shift, 2rem), 0);
	will-change: opacity, transform;
}

.helima-story.is-enhanced .helima-story__chapter {
	display: none;
}

.helima-story.is-enhanced .helima-story__particles,
.helima-story.is-enhanced .helima-story__grain,
.helima-story.is-enhanced .helima-story__vignette,
.helima-story.is-enhanced .helima-story__light,
.helima-story.is-enhanced .helima-story__topline,
.helima-story.is-enhanced .helima-story__rail,
.helima-story.is-enhanced .helima-story__progress,
.helima-story.is-enhanced .helima-story__bottomline {
	display: block;
}

.helima-story__particles,
.helima-story__grain,
.helima-story__vignette,
.helima-story__light {
	position: absolute;
	z-index: 3;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.helima-story__particles {
	z-index: 4;
	opacity: 0.96;
	filter: saturate(1.25) drop-shadow(0 0 3px rgba(163, 200, 180, 0.42));
	mix-blend-mode: screen;
	transform: translateZ(0);
	will-change: contents;
}

.helima-story.is-transitioning .helima-story__particles {
	filter: saturate(1.4) drop-shadow(0 0 5px rgba(163, 200, 180, 0.58));
}

.helima-story__grain {
	opacity: 0.065;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
	animation: helima-story-grain 0.32s steps(2) infinite;
	mix-blend-mode: soft-light;
}

.helima-story__vignette {
	background: none;
}

.helima-story__light {
	inset: -35%;
	width: 85%;
	height: 150%;
	background: linear-gradient(110deg, transparent 25%, rgba(237, 198, 150, 0.09) 48%, transparent 70%);
	filter: blur(28px);
	transform: translateX(-18%) rotate(-9deg);
	animation: helima-story-light 12s ease-in-out infinite alternate;
}

[dir="rtl"] .helima-story__light,
.rtl .helima-story__light {
	transform: translateX(18%) rotate(9deg);
}

.helima-story__topline {
	position: absolute;
	z-index: 8;
	inset-block-start: max(5.5rem, calc(env(safe-area-inset-top) + 4.5rem));
	inset-inline: var(--helima-gutter, clamp(1rem, 4vw, 4rem));
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	pointer-events: none;
}

.helima-story.is-enhanced .helima-story__topline {
	display: flex;
}

.helima-story__counter {
	display: flex;
	align-items: baseline;
	gap: 0.42rem;
	color: rgba(245, 239, 229, 0.52);
	font-size: 0.75rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.12em;
}

.helima-story__counter strong {
	color: var(--story-ink);
	font-family: var(--helima-display, inherit);
	font-size: 1.08rem;
	font-weight: 400;
}

.helima-story__rail {
	position: absolute;
	z-index: 8;
	inset-block-start: 50%;
	inset-inline-end: var(--helima-gutter, clamp(1rem, 4vw, 4rem));
	transform: translateY(-50%);
	pointer-events: auto;
}

.helima-story__rail button {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.7rem;
	width: 100%;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgba(245, 239, 229, 0.56);
	font: inherit;
	text-align: end;
	cursor: pointer;
}

.helima-story__rail button + button {
	margin-block-start: 0.2rem;
}

.helima-story__rail-dot {
	width: 0.44rem;
	height: 0.44rem;
	flex: 0 0 auto;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: transparent;
	transition: transform 260ms ease, background-color 260ms ease, color 260ms ease;
}

.helima-story__rail-label {
	max-width: 0;
	overflow: hidden;
	font-size: 0.7rem;
	line-height: 1.3;
	opacity: 0;
	white-space: nowrap;
	transition: max-width 350ms ease, opacity 250ms ease;
}

.helima-story__rail button:hover .helima-story__rail-label,
.helima-story__rail button:focus-visible .helima-story__rail-label {
	max-width: 11rem;
	opacity: 1;
}

.helima-story__rail button.is-active {
	color: var(--story-ink);
}

.helima-story__rail button.is-active .helima-story__rail-dot {
	border-color: var(--story-accent);
	background: var(--story-accent);
	box-shadow: 0 0 0 0.35rem rgba(104, 166, 132, 0.13);
	transform: scale(1.18);
}

.helima-story__progress {
	position: absolute;
	z-index: 9;
	inset-inline: 0;
	inset-block-end: 0;
	height: 3px;
	background: rgba(245, 239, 229, 0.16);
}

.helima-story__progress span {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--story-accent);
	transform: scaleX(0);
	transform-origin: left center;
	will-change: transform;
}

[dir="rtl"] .helima-story__progress span,
.rtl .helima-story__progress span,
[dir="rtl"] .helima-story__scene-meter span,
.rtl .helima-story__scene-meter span {
	transform-origin: right center;
}

[dir="rtl"] .helima-story__bottomline button span,
.rtl .helima-story__bottomline button span {
	display: inline-block;
	transform: scaleX(-1);
}

.helima-story__bottomline {
	position: absolute;
	z-index: 8;
	inset-inline: var(--helima-gutter, clamp(1rem, 4vw, 4rem));
	inset-block-end: clamp(1.15rem, 3vh, 2rem);
	grid-template-columns: 2.6rem minmax(3rem, 10rem) 2.6rem auto;
	align-items: center;
	gap: 0.75rem;
	pointer-events: none;
}

.helima-story.is-enhanced .helima-story__bottomline {
	display: grid;
}

.helima-story__bottomline button {
	width: 2.6rem;
	height: 2.6rem;
	padding: 0;
	border: 1px solid rgba(245, 239, 229, 0.3);
	border-radius: 50%;
	background: rgba(18, 15, 13, 0.58);
	color: var(--story-ink);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	pointer-events: auto;
	backdrop-filter: blur(10px);
	transition: border-color 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

.helima-story__bottomline button:hover:not(:disabled),
.helima-story__bottomline button:focus-visible {
	border-color: var(--story-accent);
	background: rgba(104, 166, 132, 0.2);
}

.helima-story__bottomline button:disabled {
	opacity: 0.32;
	cursor: not-allowed;
}

.helima-story__scene-meter {
	height: 1px;
	overflow: hidden;
	background: rgba(245, 239, 229, 0.22);
}

.helima-story__scene-meter span {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--story-ink);
	transform: scaleX(0);
	transform-origin: left center;
	will-change: transform;
}

.helima-story__bottomline small {
	color: rgba(245, 239, 229, 0.48);
	font-size: 0.68rem;
	letter-spacing: 0.08em;
}

.helima-story__replay {
	display: none;
	padding-block: clamp(2rem, 5vw, 4rem);
	border-block: 1px solid rgba(245, 239, 229, 0.12);
	background: var(--story-bg);
}

.helima-story__replay .helima-shell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.helima-story__replay p {
	margin: 0;
	color: var(--story-muted);
}

.helima-story.is-skipped {
	height: auto;
}

.helima-story.is-skipped .helima-story__replay {
	display: block;
}

/* Visual personalities retain one coherent color grade. */
.helima-story__scene[data-story-visual="eye"] .helima-story__media > img,
.helima-story__scene[data-story-visual="pigment"] .helima-story__media > img {
	object-position: 62% center;
}

.helima-story__scene[data-story-visual="pigment"] .helima-story__media > img {
	filter: saturate(1.08) contrast(1.13) brightness(0.7);
}

.helima-story__scene[data-story-visual="atelier"] .helima-story__media > img {
	object-position: center 58%;
}

.helima-story__scene[data-story-visual="progress"] .helima-story__media > img {
	object-position: 64% center;
}

.helima-story__scene[data-story-visual="gallery"] .helima-story__media > img {
	opacity: 0.22;
	filter: saturate(0.6) contrast(1.06) brightness(0.7) blur(2px);
	transform: scale(1.12);
}

.helima-story__scene[data-story-visual="ending"] .helima-story__media > img {
	opacity: 0.44;
	filter: saturate(0.76) contrast(1.06) brightness(0.78);
	transform: scale(1.12);
}

.helima-story[data-active-visual="pigment"] .helima-story__light {
	opacity: 1;
	filter: blur(18px) hue-rotate(-12deg);
}

.helima-story[data-active-visual="gallery"] .helima-story__grain,
.helima-story[data-active-visual="ending"] .helima-story__grain {
	opacity: 0.19;
}

/* Quality modes affect ambient work, never the readable copy. */
.helima-story.quality-balanced .helima-story__grain {
	animation-duration: 0.65s;
}

.helima-story.quality-reduced .helima-story__particles,
.helima-story.quality-reduced .helima-story__grain,
.helima-story.quality-reduced .helima-story__light,
.helima-story.quality-reduced .helima-story__media > video {
	display: none;
}

.helima-story.quality-reduced .helima-story__media > img {
	transition-duration: 350ms;
}

.helima-story.is-runtime-paused .helima-story__grain,
.helima-story.is-runtime-paused .helima-story__light {
	animation-play-state: paused;
}

/* Reduced motion keeps the slide layout but removes animated transitions. */
.helima-story.is-reduced-motion:not(.is-skipped) {
	height: 100vh;
	min-height: 34rem;
}

.helima-story.is-reduced-motion:not(.is-skipped) .helima-story__stage {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	min-height: 34rem;
	overflow: hidden;
}

.helima-story.is-reduced-motion:not(.is-skipped) .helima-story__scenes,
.helima-story.is-reduced-motion:not(.is-skipped) .helima-story__scene {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
}

.helima-story.is-reduced-motion .helima-story__scene {
	z-index: var(--story-scene-z, 1);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: none;
}

.helima-story.is-reduced-motion .helima-story__scene.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.helima-story.is-reduced-motion .helima-story__copy {
	height: 100%;
	min-height: 0;
}

.helima-story.is-reduced-motion .helima-story__copy-inner {
	opacity: 1;
	transform: none;
	transition: none;
}

.helima-story.is-reduced-motion .helima-story__particles,
.helima-story.is-reduced-motion .helima-story__grain,
.helima-story.is-reduced-motion .helima-story__vignette,
.helima-story.is-reduced-motion .helima-story__light,
.helima-story.is-reduced-motion .helima-story__topline,
.helima-story.is-reduced-motion .helima-story__rail,
.helima-story.is-reduced-motion .helima-story__progress,
.helima-story.is-reduced-motion .helima-story__bottomline,
.helima-story.is-reduced-motion .helima-story__media > video {
	display: none;
}

@supports (height: 100svh) {
	.helima-story.is-enhanced:not(.is-reduced-motion):not(.is-skipped),
	.helima-story.is-reduced-motion:not(.is-skipped) {
		height: 100svh;
	}
}

@keyframes helima-story-grain {
	0% {
		transform: translate3d(0, 0, 0) scale(1.08);
	}

	25% {
		transform: translate3d(-1.5%, 1%, 0) scale(1.08);
	}

	50% {
		transform: translate3d(1%, -1.5%, 0) scale(1.08);
	}

	75% {
		transform: translate3d(1.5%, 1.5%, 0) scale(1.08);
	}

	100% {
		transform: translate3d(-1%, -1%, 0) scale(1.08);
	}
}

@keyframes helima-story-light {
	from {
		opacity: 0.45;
	}

	to {
		opacity: 0.92;
		margin-inline-start: 16%;
	}
}

@keyframes helima-story-media-drift {
	0% {
		transform: translate3d(var(--story-drift-start-x, -0.35%), var(--story-drift-start-y, -0.2%), 0) scale(var(--story-drift-start-scale, 1.01));
	}

	100% {
		transform: translate3d(var(--story-drift-end-x, 0.45%), var(--story-drift-end-y, 0.25%), 0) scale(var(--story-drift-end-scale, 1.024));
	}
}

@media (max-width: 62rem) {
	.helima-story__copy-inner {
		width: 100%;
	}

	.helima-story__rail-label {
		display: none;
	}

	.helima-story__rail button:hover .helima-story__rail-label,
	.helima-story__rail button:focus-visible .helima-story__rail-label,
	.helima-story__rail button.is-active .helima-story__rail-label {
		max-width: 0;
	}
}

@media (max-width: 47.99rem) {
	.helima-story__scene {
		min-height: 46rem;
	}

	.helima-story__scene::after,
	[dir="rtl"] .helima-story__scene::after,
	.rtl .helima-story__scene::after {
		background:
			linear-gradient(180deg, rgba(5, 6, 7, 0.46), rgba(5, 6, 7, 0.04) 30%, rgba(5, 6, 7, 0.22) 49%, rgba(5, 6, 7, 0.97) 76%, #050607),
			linear-gradient(90deg, rgba(5, 6, 7, 0.18), transparent 70%);
	}

	.helima-story__media > img,
	.helima-story__scene[data-story-visual] .helima-story__media > img {
		object-position: 61% center;
	}

	.helima-story__gallery-pair {
		inset-block: 6.5rem auto;
		inset-inline: 1rem;
		height: min(42vh, 21rem);
		gap: 1rem;
	}

	.helima-story__copy {
		align-items: flex-end;
		padding-block: 7.5rem max(7.1rem, calc(env(safe-area-inset-bottom) + 6.4rem));
	}

	.helima-story__copy-inner {
		width: 100%;
	}

	.helima-story__copy h2 {
		max-width: 18ch;
		font-size: 2.25rem;
		line-height: 2.5375rem;
	}

	.helima-story__body {
		max-width: 42ch;
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		margin-block-start: 0.9rem;
		font-size: 0.85rem;
		line-height: 1.65;
	}

	.helima-story__actions {
		margin-block-start: 1.15rem;
	}

	.helima-story__actions .button {
		justify-content: center;
		min-height: 42px;
		padding: 0.62rem 0.9rem;
		font-size: 0.66rem;
	}

	.helima-story__topline {
		inset-block-start: max(4.8rem, calc(env(safe-area-inset-top) + 4rem));
		inset-inline: 0.85rem;
	}

	.helima-story__rail {
		inset-block-start: 8rem;
		inset-block-end: auto;
		inset-inline: 50% auto;
		transform: translateX(-50%);
	}

	.helima-story__rail {
		display: none;
		align-items: center;
		justify-content: center;
		gap: clamp(0.15rem, 1vw, 0.45rem);
	}

	.helima-story.is-enhanced:not(.is-reduced-motion) .helima-story__rail {
		display: flex;
	}

	.helima-story__rail button {
		width: 2.75rem;
		min-width: 2.75rem;
		min-height: 2.75rem;
		justify-content: center;
	}

	.helima-story__rail button + button {
		margin-block-start: 0;
	}

	.helima-story__bottomline {
		inset-inline: 0.85rem;
		inset-block-end: max(1.15rem, calc(env(safe-area-inset-bottom) + 0.55rem));
		grid-template-columns: 2.45rem minmax(2rem, 1fr) 2.45rem;
	}

	.helima-story__bottomline button {
		width: 2.45rem;
		height: 2.45rem;
	}

	.helima-story__bottomline small {
		display: none;
	}

	.helima-story__replay .helima-shell {
		align-items: flex-start;
		flex-direction: column;
	}

	.helima-story.is-reduced-motion .helima-story__copy,
	.helima-story:not(.is-enhanced) .helima-story__copy {
		padding-block-end: 3.5rem;
	}
}

@media (max-width: 22rem) {
	.helima-story__rail button {
		width: 2.5rem;
		min-width: 2.5rem;
		min-height: 2.5rem;
	}
}

.admin-bar .helima-story__topline {
	inset-block-start: max(7.5rem, calc(env(safe-area-inset-top) + 6.5rem));
}

@media (max-width: 782px) {
	.admin-bar .helima-story__topline {
		inset-block-start: max(8rem, calc(env(safe-area-inset-top) + 7rem));
	}
}

@media (forced-colors: active) {
	.helima-story__scene::after,
	.helima-story__particles,
	.helima-story__grain,
	.helima-story__vignette,
	.helima-story__light {
		display: none;
	}

	.helima-story__copy {
		background: Canvas;
		color: CanvasText;
	}

	.helima-story__copy h2,
	.helima-story__body,
	.helima-story__chapter,
	.helima-story__copy .section-kicker {
		color: CanvasText;
	}
}
