/**
 * Scroll Frames — image-sequence cinema (Elementor-safe pin).
 */

.elementor-widget-eaw-scroll-frames,
.elementor-widget-eaw-scroll-frames > .elementor-widget-container,
.eaw-sf,
.eaw-sf__track {
	overflow: visible !important;
}

.eaw-sf {
	--eaw-sf-stage-h: 100vh;
	--eaw-sf-track: 300vh;
	--eaw-sf-veil: 0;
	display: block;
	width: 100%;
	isolation: isolate;
}

.eaw-sf__track {
	position: relative;
	height: var(--eaw-sf-track);
	width: 100%;
	min-height: var(--eaw-sf-stage-h);
}

.eaw-sf__sticky {
	position: sticky;
	top: 0;
	height: var(--eaw-sf-stage-h);
	height: 100dvh;
	width: 100%;
	overflow: hidden;
	display: flex;
	align-items: stretch;
	justify-content: center;
	box-sizing: border-box;
}

/* JS pin — driven by scroll-frames.js when CSS sticky is broken by Elementor ancestors. */
.eaw-sf--js-pin .eaw-sf__sticky {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--eaw-sf-stage-h);
	height: 100dvh;
	margin: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.eaw-sf--js-pin .eaw-sf__sticky.is-pinned {
	position: fixed;
	right: auto;
	bottom: auto;
}

.eaw-sf--static .eaw-sf__sticky {
	position: relative;
	height: auto;
	min-height: var(--eaw-sf-stage-h);
}

.eaw-sf--static .eaw-sf__track {
	height: auto;
}

.eaw-sf__stage {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #0a0a0c;
}

.eaw-sf__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	z-index: 1;
}

.eaw-sf__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 2;
	pointer-events: none;
	transition: opacity 0.35s ease;
}

.eaw-sf.is-ready .eaw-sf__poster {
	opacity: 0;
}

.eaw-sf__veil {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(10, 10, 14, 0.15) 0%,
		rgba(10, 10, 14, calc(0.35 + var(--eaw-sf-veil) * 0.35)) 100%
	);
	opacity: var(--eaw-sf-veil, 0);
}

.eaw-sf__layers {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	flex-direction: column;
	justify-content: var(--eaw-sf-layers-justify, center);
	align-items: stretch;
	padding: clamp(24px, 5vw, 64px);
	box-sizing: border-box;
	pointer-events: none;
}

.eaw-sf__layer {
	pointer-events: none;
	max-width: var(--eaw-sf-content-max, 560px);
	width: 100%;
	margin-inline: auto;
	will-change: opacity, transform;
}

.eaw-sf__layer.is-interactive {
	pointer-events: auto;
}

.eaw-sf__title {
	margin: 0 0 0.5em;
	color: #fff;
	font-weight: 600;
	line-height: 1.2;
}

.eaw-sf__desc {
	margin: 0 0 1em;
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.5;
	white-space: pre-line;
}

.eaw-sf__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	border-style: solid;
	border-width: 1px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	box-sizing: border-box;
}

.eaw-sf__btn--normal {
	background: #35b3af;
	color: #fff;
	border-color: transparent;
	box-shadow: 0 8px 24px rgba(53, 179, 175, 0.28);
}

.eaw-sf__btn--glass {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.45);
	backdrop-filter: blur(16px) saturate(160%);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
}

.eaw-sf__placeholder {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	text-align: center;
	color: rgba(255, 255, 255, 0.65);
	font-size: 14px;
	background: #16161a;
}

.eaw-sf__hud {
	position: absolute;
	z-index: 20;
	left: 12px;
	bottom: 12px;
	padding: 6px 10px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.eaw-sf--debug .eaw-sf__hud {
	opacity: 1;
}

/* Editor / reduced-motion: show stage without tall track scroll. */
.eaw-sf--edit .eaw-sf__track,
.eaw-sf--reduced .eaw-sf__track {
	height: var(--eaw-sf-stage-h);
	min-height: var(--eaw-sf-stage-h);
}

.eaw-sf--edit .eaw-sf__sticky,
.eaw-sf--reduced .eaw-sf__sticky {
	position: relative;
	height: var(--eaw-sf-stage-h);
}

.eaw-sf--edit .eaw-sf__poster,
.eaw-sf--reduced.is-ready .eaw-sf__poster {
	opacity: 0;
}

.eaw-sf--edit-no-media .eaw-sf__stage {
	background: #1a1a1f;
}

.eaw-sf__editor-bar {
	display: none;
	gap: 10px;
	align-items: center;
	padding: 10px 12px;
	background: #111;
	color: #eee;
	font-size: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.eaw-sf--edit .eaw-sf__editor-bar {
	display: flex;
}

.eaw-sf__editor-bar input[type='range'] {
	flex: 1;
	accent-color: #35b3af;
}

.eaw-sf__editor-bar output {
	min-width: 4.5em;
	text-align: end;
	font-variant-numeric: tabular-nums;
	opacity: 0.85;
}
