/*!
 * StoryFlow – scrollytelling scenes for Elementor
 * Component rules are prefixed with .sf-scene so theme / Elementor kit defaults
 * (e.g. ".elementor img", ".elementor-kit-5 h2") don't override them.
 */

/* ========== Base ========== */
html.sf-has-story { overflow-x: clip; }
html.sf-smooth { scroll-behavior: smooth; }

.sf-scene {
	--sf-accent: #f5b301;
	position: relative;
	box-sizing: border-box;
	color: #fff;
	background-color: #0b0d12;
	font-family: inherit;
}
.sf-scene *,
.sf-scene *::before,
.sf-scene *::after { box-sizing: border-box; }
:where(.sf-scene) :where(p, h1, h2, h3, figure) { margin: 0; }
.sf-scene.sf-scene :is(h1, h2, h3) { color: inherit; }
html .sf-scene img { max-width: none; border: 0; box-shadow: none; }

.sf-bleed {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.sf-scene .sf-btn {
	display: inline-block;
	margin-top: 1.6rem;
	padding: 0.95em 2em;
	border: 1px solid var(--sf-accent);
	border-radius: 999px;
	background: var(--sf-accent);
	color: #111;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: background-color 0.25s, color 0.25s, transform 0.25s;
}
.sf-scene .sf-btn:hover,
.sf-scene .sf-btn:focus-visible { background: transparent; color: var(--sf-accent); transform: translateY(-2px); }

/* Generic entrance reveal (chapters, stats) */
.sf-js .sf-rv {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1), filter 1s ease, clip-path 1.1s cubic-bezier(0.7, 0, 0.2, 1);
}
.sf-js .sf-in .sf-rv { opacity: 1; transform: none; }
.sf-in .sf-rv:nth-child(2) { transition-delay: 0.12s; }
.sf-in .sf-rv:nth-child(3) { transition-delay: 0.24s; }
.sf-in .sf-rv:nth-child(4) { transition-delay: 0.36s; }
.sf-js [data-sf-reveal="blur"] .sf-rv { transform: scale(1.04); filter: blur(14px); }
.sf-js [data-sf-reveal="blur"].sf-in .sf-rv { transform: none; filter: none; }
.sf-js [data-sf-reveal="wipe"] .sf-rv { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); }
.sf-js [data-sf-reveal="wipe"].sf-in .sf-rv { clip-path: inset(0 0 0 0); }
.sf-js [data-sf-reveal="none"] .sf-rv { opacity: 1; transform: none; transition: none; }

/* ========== Hero ========== */
.sf-hero { height: 100vh; overflow: hidden; }
.sf-scene .sf-hero__layers { position: absolute; inset: 0; }
.sf-scene .sf-hero__layer { position: absolute; will-change: transform; transform-origin: 50% 50%; }
.sf-scene .sf-hero__layer img { display: block; width: 100%; height: auto; }
.sf-scene .sf-hero__layer.sf-fit-cover { inset: -10% 0; }
.sf-scene .sf-hero__layer.sf-fit-cover img { height: 100%; object-fit: cover; }
.sf-scene .sf-hero__layer.sf-fit-bottom,
.sf-scene .sf-hero__layer.sf-fit-top,
.sf-scene .sf-hero__layer.sf-fit-center {
	left: var(--sf-x, 50%);
	width: var(--sf-w, 60%);
	margin-left: calc(var(--sf-w, 60%) * -0.5);
}
.sf-scene .sf-hero__layer.sf-fit-bottom { bottom: 0; transform-origin: 50% 100%; }
.sf-scene .sf-hero__layer.sf-fit-top { top: 0; transform-origin: 50% 0; }
.sf-scene .sf-hero__layer.sf-fit-center { top: 0; bottom: 0; display: flex; align-items: center; }
.sf-scene .sf-hero__overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; background-color: rgba(0, 0, 0, 0.25); }
.sf-scene .sf-hero__content {
	position: absolute;
	inset: 0;
	z-index: 100;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 10vh 6vw;
	text-align: center;
	pointer-events: none;
}
.sf-scene .sf-hero__inner { will-change: transform, opacity; }
.sf-scene .sf-hero__inner a { pointer-events: auto; }
.sf-scene .sf-hero__eyebrow { font-size: 0.85rem; letter-spacing: 0.32em; text-transform: uppercase; opacity: 0.85; margin-bottom: 1.4rem; }
.sf-scene .sf-hero__title { font-size: clamp(3rem, 9vw, 8rem); line-height: 0.95; font-weight: 800; letter-spacing: -0.02em; }
.sf-scene .sf-hero__logo { display: inline-block; width: 520px; max-width: 86vw; height: auto; filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.45)); }
.sf-scene .sf-hero__subtitle { font-size: clamp(1.15rem, 2.2vw, 1.7rem); line-height: 1.35; margin-top: 1.4rem; font-weight: 500; }
.sf-scene .sf-hero__tagline { font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; margin-top: 0.9rem; }
.sf-scene .sf-hero__hint {
	position: absolute;
	left: 50%;
	bottom: 4vh;
	z-index: 101;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	font-size: 0.72rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	opacity: 0.8;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.sf-scene .sf-hero__hint i { display: block; width: 1px; height: 46px; background: currentColor; transform-origin: 50% 0; animation: sf-hint 2s ease-in-out infinite; }
@keyframes sf-hint {
	0% { transform: scaleY(0); transform-origin: 50% 0; }
	50% { transform: scaleY(1); transform-origin: 50% 0; }
	51% { transform-origin: 50% 100%; }
	100% { transform: scaleY(0); transform-origin: 50% 100%; }
}
.sf-js .sf-hero .sf-hero__inner > * { opacity: 0; }
.sf-js .sf-hero.sf-in .sf-hero__inner > * { animation: sf-rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.sf-hero.sf-in .sf-hero__inner > :nth-child(2) { animation-delay: 0.15s; }
.sf-hero.sf-in .sf-hero__inner > :nth-child(3) { animation-delay: 0.35s; }
.sf-hero.sf-in .sf-hero__inner > :nth-child(4) { animation-delay: 0.5s; }
.sf-hero.sf-in .sf-hero__inner > :nth-child(5) { animation-delay: 0.65s; }
@keyframes sf-rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* ========== Chapter ========== */
.sf-chapter {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 14vh 6vw;
}
.sf-scene .sf-chapter__bg { position: absolute; inset: -14% 0; will-change: transform; }
.sf-scene .sf-chapter__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-scene .sf-chapter__overlay { position: absolute; inset: 0; background-color: rgba(0, 0, 0, 0.45); }
.sf-scene .sf-chapter__content { position: relative; z-index: 2; width: 100%; max-width: 1000px; text-align: center; }
.sf-scene .sf-chapter__num { color: var(--sf-accent); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; margin-bottom: 1.2rem; }
.sf-scene .sf-chapter__title { font-size: clamp(2.6rem, 7vw, 6.5rem); line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.sf-scene .sf-chapter__text { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; opacity: 0.85; margin-top: 1.6rem; max-width: 40em; display: inline-block; }

/* ========== Sticky scenes ========== */
.sf-scenes { --sf-media-w: 55%; display: grid; grid-template-columns: var(--sf-media-w) minmax(0, 1fr); }
.sf-scenes.sf-layout-right { grid-template-columns: minmax(0, 1fr) var(--sf-media-w); }
.sf-layout-right .sf-scenes__media { order: 2; }
.sf-scene .sf-scenes__media { position: sticky; top: 0; height: 100vh; overflow: hidden; align-self: start; }
.sf-scene .sf-scenes__frame { position: absolute; inset: 0; }
.sf-scene .sf-scenes__item {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.9s ease, transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.9s ease;
}
.sf-scene .sf-scenes__item.is-active { opacity: 1; z-index: 2; }
.sf-scene .sf-scenes__item img,
.sf-scene .sf-scenes__item video { display: block; width: 100%; height: 100%; object-fit: cover; }
.sf-scene .sf-scenes__item figcaption {
	position: absolute;
	left: 24px;
	bottom: 24px;
	max-width: 70%;
	padding: 0.45em 0.9em;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.55);
	font-size: 0.8rem;
	line-height: 1.4;
}
.sf-tr-zoom .sf-scenes__item { transform: scale(1.1); }
.sf-tr-zoom .sf-scenes__item.is-active { transform: scale(1); }
.sf-tr-slide .sf-scenes__item { transform: translateY(10%); }
.sf-tr-slide .sf-scenes__item.is-past { transform: translateY(-10%); }
.sf-tr-slide .sf-scenes__item.is-active { transform: none; }
.sf-tr-blur .sf-scenes__item { filter: blur(24px); }
.sf-tr-blur .sf-scenes__item.is-active { filter: none; }
.sf-scene .sf-scenes__count {
	position: absolute;
	right: 24px;
	bottom: 24px;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 0.6em;
	font-size: 0.8rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.12em;
	padding: 0.4em 0.8em;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.45);
}
.sf-scene .sf-scenes__count .sf-cur { color: var(--sf-accent); font-weight: 700; }
.sf-scene .sf-scenes__count .sf-sep { width: 24px; height: 1px; background: currentColor; opacity: 0.5; }
.sf-scene .sf-scenes__steps { position: relative; z-index: 3; padding: 0 5vw; }
.sf-scene .sf-scenes__step { min-height: 100vh; display: flex; align-items: center; }
.sf-scene .sf-scenes__card {
	width: 100%;
	max-width: 460px;
	padding: 2.2rem 2.4rem;
	border-radius: 16px;
	background-color: rgba(12, 14, 20, 0.82);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	opacity: 0.3;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sf-scene .sf-scenes__step.is-active .sf-scenes__card { opacity: 1; transform: none; }
.sf-scene .sf-scenes__eyebrow { color: var(--sf-accent); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 0.8rem; }
.sf-scene .sf-scenes__title { font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.15; font-weight: 700; margin-bottom: 0.9rem; }
.sf-scene .sf-scenes__text { font-size: 1.02rem; line-height: 1.65; opacity: 0.88; }
.sf-scene .sf-scenes__text p + p { margin-top: 0.8em; }

.sf-scenes.sf-layout-overlay { display: block; }
.sf-layout-overlay .sf-scenes__media { width: 100%; }
.sf-layout-overlay .sf-scenes__steps { margin-top: -100vh; padding: 0 6vw; }
.sf-layout-overlay .sf-scenes__step { justify-content: flex-start; }

/* ========== Word reveal ========== */
.sf-reveal.sf-mode-scrub { height: 220vh; }
.sf-scene .sf-reveal__pin {
	position: sticky;
	top: 0;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 8vh 6vw;
}
.sf-mode-view .sf-reveal__pin { position: relative; height: auto; min-height: 80vh; }
.sf-scene .sf-reveal__bg { position: absolute; inset: 0; }
.sf-scene .sf-reveal__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-scene .sf-reveal__overlay { position: absolute; inset: 0; background-color: rgba(0, 0, 0, 0.6); }
.sf-scene .sf-reveal__inner { position: relative; z-index: 2; width: 100%; max-width: 1100px; text-align: center; }
.sf-scene .sf-reveal__eyebrow { color: var(--sf-hl, var(--sf-accent)); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 1.6rem; }
.sf-scene .sf-reveal__text { font-size: clamp(1.8rem, 4.6vw, 4.2rem); line-height: 1.18; font-weight: 700; letter-spacing: -0.015em; }
.sf-scene .sf-reveal__footer { margin-top: 2rem; font-size: 0.95rem; opacity: 0.7; }
.sf-scene .sf-w { opacity: var(--sf-dim, 0.16); transition: opacity 0.35s ease, color 0.35s ease; }
.sf-scene .sf-w.is-lit { opacity: 1; }
.sf-scene .sf-w.sf-hl.is-lit { color: var(--sf-hl, var(--sf-accent)); }
.sf-mode-view .sf-w { transition-duration: 0.7s; }
html:not(.sf-js) .sf-scene .sf-w { opacity: 1; }

/* ========== Before / After ========== */
.sf-compare { height: 260vh; --sf-line: #f5b301; }
.sf-scene .sf-compare__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.sf-frame-inset .sf-compare__pin { padding: 7vh 5vw; }
.sf-scene .sf-compare__stage { position: relative; flex: 1; overflow: hidden; }
.sf-frame-inset .sf-compare__stage { border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.sf-scene .sf-compare__a,
.sf-scene .sf-compare__b { position: absolute; inset: 0; }
.sf-scene .sf-compare__a img,
.sf-scene .sf-compare__b img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-fx-wipe-x .sf-compare__b { clip-path: inset(0 calc((1 - var(--sf-c, 0)) * 100%) 0 0); }
.sf-fx-wipe-y .sf-compare__b { clip-path: inset(0 0 calc((1 - var(--sf-c, 0)) * 100%) 0); }
.sf-fx-circle .sf-compare__b { clip-path: circle(calc(var(--sf-c, 0) * 75%) at 50% 50%); }
.sf-fx-fade .sf-compare__b { opacity: var(--sf-c, 0); }
.sf-scene .sf-compare__line {
	position: absolute;
	z-index: 3;
	pointer-events: none;
	background: var(--sf-line);
	box-shadow: 0 0 18px rgba(0, 0, 0, 0.5);
	opacity: min(1, calc(var(--sf-c, 0) * 25), calc((1 - var(--sf-c, 0)) * 25));
}
.sf-fx-wipe-x .sf-compare__line { top: 0; bottom: 0; width: 3px; margin-left: -1.5px; left: calc(var(--sf-c, 0) * 100%); }
.sf-fx-wipe-y .sf-compare__line { left: 0; right: 0; height: 3px; margin-top: -1.5px; top: calc(var(--sf-c, 0) * 100%); }
.sf-fx-circle .sf-compare__line,
.sf-fx-fade .sf-compare__line { display: none; }
.sf-scene .sf-compare__line span {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	border-radius: 50%;
	background: var(--sf-line);
}
.sf-scene .sf-compare__line span::before,
.sf-scene .sf-compare__line span::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 0;
	height: 0;
	margin-top: -6px;
	border: 6px solid transparent;
}
.sf-scene .sf-compare__line span::before { left: 7px; border-right-color: #111; }
.sf-scene .sf-compare__line span::after { right: 7px; border-left-color: #111; }
.sf-fx-wipe-y .sf-compare__line span { transform: rotate(90deg); }
.sf-scene .sf-compare__label {
	position: absolute;
	bottom: 26px;
	z-index: 4;
	padding: 0.5em 1em;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.6);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transition: opacity 0.3s;
}
.sf-scene .sf-compare__label--a { left: 26px; opacity: calc(1 - var(--sf-c, 0) * 0.75); }
.sf-scene .sf-compare__label--b { right: 26px; opacity: calc(0.25 + var(--sf-c, 0) * 0.75); }
.sf-scene .sf-compare__head { position: absolute; left: 0; right: 0; z-index: 5; padding: 7vh 6vw; text-align: center; pointer-events: none; }
.sf-head-top .sf-compare__head { top: 0; background: linear-gradient(rgba(0, 0, 0, 0.7), transparent); padding-bottom: 12vh; }
.sf-head-bottom .sf-compare__head { bottom: 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); padding-top: 12vh; padding-bottom: 12vh; }
.sf-frame-inset.sf-head-top .sf-compare__head,
.sf-frame-inset.sf-head-bottom .sf-compare__head { background: none; position: relative; padding: 0 0 3vh; order: -1; }
.sf-frame-inset.sf-head-bottom .sf-compare__head { order: 2; padding: 3vh 0 0; }
.sf-scene .sf-compare__title { font-size: clamp(1.8rem, 4vw, 3.4rem); font-weight: 800; line-height: 1.05; }
.sf-scene .sf-compare__text { margin: 0.8rem auto 0; max-width: 38em; font-size: 1.05rem; line-height: 1.55; opacity: 0.88; }

/* ========== Horizontal gallery ========== */
.sf-hz { --sf-card-h: 55vh; --sf-gap: 32px; }
.sf-scene .sf-hz__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.sf-scene .sf-hz__track { display: flex; align-items: center; gap: var(--sf-gap); width: max-content; padding: 0 6vw; will-change: transform; }
.sf-scene .sf-hz__intro { flex: none; width: min(420px, 78vw); padding-right: 3vw; }
.sf-scene .sf-hz__intro--top { display: none; }
.sf-scene .sf-hz__eyebrow { color: var(--sf-accent); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 1rem; }
.sf-scene .sf-hz__title { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.sf-scene .sf-hz__text { margin-top: 1.2rem; font-size: 1.05rem; line-height: 1.6; opacity: 0.85; }
.sf-scene .sf-hz__card { flex: none; position: relative; display: flex; flex-direction: column; gap: 0.9rem; color: inherit; text-decoration: none; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sf-scene a.sf-hz__card:hover { transform: translateY(-8px); color: inherit; }
.sf-scene .sf-hz__img-wrap { display: block; }
.sf-scene .sf-hz__img { display: block; height: var(--sf-card-h); width: auto; object-fit: cover; border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.sf-scene .sf-hz__meta { display: flex; flex-direction: column; gap: 0.3rem; max-width: 34ch; }
.sf-scene .sf-hz__card-title { font-size: 1.12rem; font-weight: 700; }
.sf-scene .sf-hz__card-caption { font-size: 0.9rem; line-height: 1.45; opacity: 0.72; }
.sf-card-overlay .sf-hz__meta {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-width: none;
	padding: 3rem 1.2rem 1.1rem;
	border-radius: 0 0 10px 10px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}
.sf-scene .sf-hz__bar { position: absolute; left: 6vw; right: 6vw; bottom: 7vh; height: 2px; background: rgba(255, 255, 255, 0.15); }
.sf-scene .sf-hz__bar span { display: block; height: 100%; background: var(--sf-accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ========== Stats ========== */
.sf-stats { padding: 14vh 6vw; }
.sf-scene .sf-stats__wrap { max-width: 1200px; margin: 0 auto; }
.sf-scene .sf-stats__head { text-align: center; margin-bottom: 3.5rem; }
.sf-scene .sf-stats__eyebrow { color: var(--sf-accent); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 1rem; }
.sf-scene .sf-stats__title { font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.05; font-weight: 800; }
.sf-scene .sf-stats__text { margin: 1rem auto 0; max-width: 40em; font-size: 1.05rem; line-height: 1.6; opacity: 0.85; }
.sf-scene .sf-stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.sf-scene .sf-stats__card {
	padding: 2rem 1.7rem;
	border-radius: 16px;
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	container-type: inline-size;
}
.sf-in .sf-stats__card.sf-rv { transition-delay: calc(var(--sf-i, 0) * 0.12s); }
.sf-scene .sf-stats__kicker { color: var(--sf-accent); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.sf-scene .sf-stats__num { color: var(--sf-accent); font-size: clamp(1.9rem, 19cqi, 4rem); line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; margin: 0.6rem 0 0.9rem; white-space: nowrap; }
.sf-scene .sf-stats__label { font-size: 1rem; line-height: 1.45; opacity: 0.9; }
.sf-scene .sf-stats__source { margin-top: 1.1rem; font-size: 0.74rem; line-height: 1.4; opacity: 0.55; }
.sf-scene .sf-stats__source a { color: inherit; text-decoration: underline; }

/* ========== Video ========== */
.sf-video { --sf-g: 1; }
.sf-video.sf-grow { height: 220vh; --sf-g: 0; }
.sf-scene .sf-video__pin { position: relative; height: 100vh; overflow: hidden; }
.sf-grow .sf-video__pin { position: sticky; top: 0; }
.sf-scene .sf-video__frame { position: absolute; inset: 0; overflow: hidden; background: #000; container-type: size; }
.sf-grow .sf-video__frame { clip-path: inset(calc((1 - var(--sf-g)) * 14%) calc((1 - var(--sf-g)) * 18%) round calc((1 - var(--sf-g)) * 28px)); }
.sf-scene .sf-video__frame video,
.sf-scene .sf-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.sf-fit-contain .sf-video__frame video { object-fit: contain; }
.sf-scene .sf-video__frame iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: max(100cqw, 177.78cqh);
	height: max(100cqh, 56.25cqw);
	max-width: none;
	transform: translate(-50%, -50%);
	border: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.8s ease;
}
.sf-fit-contain .sf-video__frame iframe { width: min(100cqw, 177.78cqh); height: min(100cqh, 56.25cqw); }
.sf-video.is-loaded .sf-video__frame iframe { opacity: 1; }
.sf-scene .sf-video__overlay { position: absolute; inset: 0; z-index: 3; pointer-events: none; background-color: rgba(0, 0, 0, 0.25); }
.sf-scene .sf-video__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 2rem; text-align: center; opacity: 0.6; }
.sf-scene .sf-video__caption { position: absolute; z-index: 4; max-width: 640px; opacity: clamp(0, calc((var(--sf-g) - 0.7) * 3.4), 1); }
.sf-cap-bottom-left .sf-video__caption { left: 6vw; bottom: 10vh; }
.sf-cap-top-left .sf-video__caption { left: 6vw; top: 10vh; }
.sf-cap-center .sf-video__caption { left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; width: 88vw; }
.sf-scene .sf-video__eyebrow { color: var(--sf-accent); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 0.8rem; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
.sf-scene .sf-video__title { font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1; font-weight: 800; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45); }
.sf-scene .sf-video__text { margin-top: 1rem; font-size: 1.08rem; line-height: 1.55; opacity: 0.9; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5); }
.sf-scene .sf-video__sound {
	position: absolute;
	right: 4vw;
	bottom: 8vh;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	padding: 0.7em 1.2em;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.45);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #fff;
	font: inherit;
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	line-height: 1;
	cursor: pointer;
	opacity: clamp(0, calc((var(--sf-g) - 0.6) * 3), 1);
	transition: background-color 0.25s, border-color 0.25s;
}
.sf-scene .sf-video__sound:hover { background: rgba(0, 0, 0, 0.7); color: #fff; }
.sf-scene .sf-video__sound svg { width: 18px; height: 18px; }
.sf-scene .sf-video__sound .sf-on { display: none; }
.sf-scene .sf-video__sound.is-on .sf-on { display: inline; }
.sf-scene .sf-video__sound.is-on .sf-off { display: none; }
.sf-scene .sf-video__sound.is-on { border-color: var(--sf-accent); }

/* ========== Global UI ========== */
.sf-progress { position: fixed; left: 0; right: 0; z-index: 99999; height: var(--sf-ph, 3px); pointer-events: none; }
.sf-progress--top { top: 0; }
.sf-progress--bottom { bottom: 0; }
body.admin-bar .sf-progress--top { top: 32px; }
@media (max-width: 782px) { body.admin-bar .sf-progress--top { top: 46px; } }
.sf-progress span { display: block; height: 100%; background: var(--sf-pc, #f5b301); transform-origin: 0 50%; transform: scaleX(0); }

.sf-nav {
	position: fixed;
	top: 50%;
	z-index: 99998;
	display: flex;
	flex-direction: column;
	gap: 16px;
	transform: translateY(-50%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
}
.sf-nav.is-visible { opacity: 1; pointer-events: auto; }
.sf-nav--right { right: 22px; align-items: flex-end; }
.sf-nav--left { left: 22px; align-items: flex-start; }
html .sf-nav a { display: flex; align-items: center; gap: 12px; padding: 2px 0; color: var(--sf-nc, #fff); text-decoration: none; }
html .sf-nav--left a { flex-direction: row-reverse; }
.sf-nav i { display: block; width: 9px; height: 9px; border: 1.5px solid var(--sf-nc, #fff); border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3); transition: transform 0.3s, background-color 0.3s; }
.sf-nav a.is-active i { background: var(--sf-nc, #fff); transform: scale(1.4); }
.sf-nav__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
	opacity: 0;
	transform: translateX(6px);
	transition: opacity 0.25s, transform 0.25s;
}
.sf-nav--left .sf-nav__label { transform: translateX(-6px); }
.sf-nav a:hover .sf-nav__label,
.sf-nav a:focus-visible .sf-nav__label { opacity: 1; transform: none; }
@media (max-width: 767px) { .sf-nav { display: none; } }

/* ========== Simple (mobile) mode ========== */
html.sf-simple .sf-scenes { display: block; }
html.sf-simple .sf-scene .sf-scenes__media { width: 100%; height: 100vh; height: 100svh; }
html.sf-simple .sf-scene .sf-scenes__steps { margin-top: -100vh; margin-top: -100svh; padding: 0 5vw; }
html.sf-simple .sf-scene .sf-scenes__step { justify-content: center !important; align-items: flex-end; padding-bottom: 12vh; }
html.sf-simple .sf-scene .sf-scenes__card { max-width: 100% !important; padding: 1.5rem 1.6rem; }

html.sf-simple .sf-hz { height: auto !important; }
html.sf-simple .sf-scene .sf-hz__pin { position: relative; height: auto; padding: 12vh 0 14vh; }
html.sf-simple .sf-scene .sf-hz__track {
	width: auto;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 0 6vw 0.5rem;
	scroll-padding: 0 6vw;
	transform: none !important;
}
html.sf-simple .sf-scene .sf-hz__track::-webkit-scrollbar { display: none; }
html.sf-simple .sf-scene .sf-hz__card { scroll-snap-align: start; }
html.sf-simple .sf-scene .sf-hz__intro { display: none; }
html.sf-simple .sf-scene .sf-hz__intro--top { display: block; width: auto; padding: 0 6vw 2rem; }
html.sf-simple .sf-hz { --sf-card-h: 52vh; }
html.sf-simple .sf-scene .sf-hz__img { max-width: 80vw; }
html.sf-simple .sf-scene .sf-hz__bar { bottom: 7vh; }

/* ========== Reduced motion ========== */
.sf-reduce .sf-rv,
.sf-reduce .sf-hero .sf-hero__inner > * { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; animation: none !important; transition: none !important; }
.sf-reduce .sf-scene .sf-hero__hint i { animation: none; }
.sf-reduce .sf-scene .sf-scenes__item { transition: opacity 0.3s ease; transform: none !important; filter: none !important; }
.sf-reduce .sf-video.sf-grow { height: auto !important; --sf-g: 1; }
.sf-reduce .sf-grow .sf-video__pin { position: relative; }

/* ========== Small screens ========== */
@media (max-width: 600px) {
	.sf-scene .sf-compare__label { font-size: 0.68rem; letter-spacing: 0.1em; }
	.sf-scene .sf-compare__label--a { left: 14px; top: 14px; bottom: auto; }
	.sf-scene .sf-compare__label--b { right: 14px; bottom: 14px; }
	.sf-frame-inset .sf-compare__pin { padding: 6vh 4vw; }
	.sf-scene .sf-scenes__count { right: 14px; bottom: 14px; }
	.sf-scene .sf-video__sound { right: 5vw; bottom: 5vh; }
	.sf-cap-bottom-left .sf-video__caption,
	.sf-cap-top-left .sf-video__caption { left: 6vw; right: 6vw; }
	.sf-cap-bottom-left .sf-video__caption { bottom: 14vh; }
}
