/**
 * GLASS Infinite — Scroll Story Engine Styles
 *
 * CSS for all scroll-driven section types. Loaded conditionally when
 * any scroll section is present on the page.
 *
 * Section types:
 *   - text_reveal     (Session 1)
 *   - split_scroll    (Session 2)
 *   - scroll_story    (Session 3)
 *   - morph_hero      (Session 4)
 *   - reveal_sequence (Session 5)
 *
 * @package AJT_Glass
 * @since   11.0.0
 */

/* ══════════════════════════════════════════════════════════════
 * SHARED: Scroll Zone Spacer
 * ══════════════════════════════════════════════════════════════ */

.inf-scroll-zone {
	position: relative;
}

/* ══════════════════════════════════════════════════════════════
 * TEXT REVEAL
 * ══════════════════════════════════════════════════════════════ */

.inf-text-reveal {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: visible;
	padding: 0 !important;
}

.inf-text-reveal__container {
	width: 100%;
	margin: 0 auto;
	padding: 0 clamp(24px, 5vw, 80px);
	box-sizing: border-box;
}

/* Eyebrow label. */
.inf-text-reveal__eyebrow {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 24px;
	opacity: 0.9;
}

/* Word/character/line container. */
.inf-text-reveal__text {
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

/* Individual word spans. */
.inf-text-reveal__word,
.inf-text-reveal__char,
.inf-text-reveal__line {
	display: inline;
	will-change: opacity, transform, filter, color;
	transition: none;
}

.inf-text-reveal__word {
	/* Spacing handled by space characters between spans in the HTML. */
}

.inf-text-reveal__char {
	/* No margin — characters are contiguous. */
}

.inf-text-reveal__line {
	display: block;
	margin-bottom: 0.3em;
}

/* CTA button area. */
.inf-text-reveal__cta {
	margin-top: 48px;
	will-change: opacity, transform;
}

.inf-text-reveal__cta .inf-btn {
	font-size: 16px;
	padding: 14px 32px;
}

/* ── Mobile (< 640px) ─────────────────────────────────────── */
@media (max-width: 639px) {
	.inf-text-reveal__container {
		padding: 0 24px;
	}

	.inf-text-reveal__cta {
		margin-top: 32px;
	}
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.inf-text-reveal {
		position: static !important;
		height: auto !important;
	}

	.inf-scroll-zone:has(.inf-text-reveal) {
		height: auto !important;
	}

	.inf-text-reveal__word,
	.inf-text-reveal__char,
	.inf-text-reveal__line {
		opacity: 1 !important;
		filter: none !important;
		transform: none !important;
	}

	.inf-text-reveal__cta {
		opacity: 1 !important;
		transform: none !important;
	}
}


/* ══════════════════════════════════════════════════════════════
 * SPLIT SCROLL
 * ══════════════════════════════════════════════════════════════ */

.inf-split-scroll {
	padding: 0 !important;
	overflow: visible;
}

.inf-split-scroll__grid {
	display: grid;
	min-height: 100vh;
	/* Ensure both grid columns stretch to full grid height
	 * so the pinned column bg covers the entire section. */
	align-items: stretch;
}

/* ── Pinned column ────────────────────────────────────────── */

.inf-split-scroll__pinned {
	display: flex;
	align-items: stretch;
}

.inf-split-scroll__pinned-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	overflow: hidden;
	padding: clamp(24px, 4vw, 64px);
	box-sizing: border-box;
}

.inf-split-scroll__pinned-img {
	max-width: 100%;
	max-height: 80vh;
	border-radius: 12px;
	transition: opacity 0.25s ease;
}

.inf-split-scroll__pinned-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.inf-split-scroll__pinned-heading {
	font-size: clamp(32px, 5vw, 64px);
	font-weight: 700;
	line-height: 1.15;
	margin: 0;
}

.inf-split-scroll__pinned-sub {
	font-size: clamp(16px, 2vw, 22px);
	opacity: 0.7;
	margin-top: 16px;
}

/* Device mockup frame overlay. */
.inf-split-scroll__device-frame {
	position: absolute;
	inset: 5%;
	border: 3px solid rgba(0, 0, 0, 0.08);
	border-radius: 24px;
	pointer-events: none;
}

/* ── Scrolling column ─────────────────────────────────────── */

.inf-split-scroll__scroll {
	display: flex;
	flex-direction: column;
}

.inf-split-scroll__block {
	display: flex;
	align-items: center;
	padding: clamp(32px, 5vw, 80px);
	box-sizing: border-box;
}

.inf-split-scroll__block-inner {
	max-width: 560px;
}

.inf-split-scroll__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	font-size: 22px;
	margin-bottom: 20px;
	background: rgba(108, 92, 231, 0.1);
}

.inf-split-scroll__block-heading {
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 12px;
}

.inf-split-scroll__block-body {
	font-size: clamp(15px, 1.8vw, 18px);
	line-height: 1.7;
	opacity: 0.75;
}

.inf-split-scroll__block-body p {
	margin: 0 0 12px;
}

.inf-split-scroll__block-body p:last-child {
	margin-bottom: 0;
}

/* Active block highlight. */
.inf-split-scroll__block {
	opacity: 0.4;
	transition: opacity 0.4s ease;
}

.inf-split-scroll__block--active {
	opacity: 1;
}

/* Mobile inline images — hidden on desktop. */
.inf-split-scroll__block-img--mobile {
	display: none;
}

/* ── Mobile (< 640px) ─────────────────────────────────────── */
@media (max-width: 639px) {
	.inf-split-scroll__grid {
		display: flex;
		flex-direction: column;
	}

	.inf-split-scroll__pinned {
		position: static !important;
		height: auto !important;
	}

	.inf-split-scroll__pinned-inner {
		padding: 32px 24px;
	}

	.inf-split-scroll__pinned-img {
		max-height: 300px;
	}

	.inf-split-scroll__block {
		min-height: auto !important;
		padding: 48px 24px;
		opacity: 1;
	}

	.inf-split-scroll__block-img--mobile {
		display: block;
		max-width: 100%;
		border-radius: 12px;
		margin-top: 24px;
	}
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.inf-split-scroll__pinned-img {
		transition: none;
	}

	.inf-split-scroll__block {
		opacity: 1;
		transition: none;
	}
}


/* ══════════════════════════════════════════════════════════════
 * SCROLL STORY
 * ══════════════════════════════════════════════════════════════ */

.inf-scroll-story {
	position: relative;
	overflow: hidden;
	padding: 0 !important;
}

/* Background layer — sits behind all scenes. */
.inf-scroll-story__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	transition: background-color 0.1s linear;
	background-size: cover;
	background-position: center;
}

/* Scene container — positioned over background.
 * Uses flex column so multiple center layers stack vertically
 * with natural spacing instead of overlapping at the same point. */
.inf-scroll-story__scene {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	pointer-events: none;
	padding: 0 clamp(24px, 5vw, 80px);
	box-sizing: border-box;
}

/* Layer — individual animated element within a scene. */
.inf-scroll-story__layer {
	position: relative;
	z-index: 2;
	will-change: transform, opacity;
	pointer-events: auto;
	max-width: 90vw;
	text-align: center;
}

/* Layer position modifiers.
 * --center: flows in the flex column (no absolute positioning needed).
 * Other positions: break out of the flow with absolute positioning. */
.inf-scroll-story__layer--center {
	/* Flex child — no absolute positioning, flows naturally. */
}

.inf-scroll-story__layer--top-left {
	position: absolute;
	top: 10%;
	left: 5%;
}

.inf-scroll-story__layer--top-right {
	position: absolute;
	top: 10%;
	right: 5%;
}

.inf-scroll-story__layer--bottom-left {
	position: absolute;
	bottom: 10%;
	left: 5%;
}

.inf-scroll-story__layer--bottom-right {
	position: absolute;
	bottom: 10%;
	right: 5%;
}

.inf-scroll-story__layer--left {
	position: absolute;
	top: 50%;
	left: 5%;
	transform: translateY(-50%);
}

.inf-scroll-story__layer--right {
	position: absolute;
	top: 50%;
	right: 5%;
	transform: translateY(-50%);
}

/* Layer content styles. */
.inf-scroll-story__layer img {
	display: block;
	max-width: 100%;
	height: auto;
}

.inf-scroll-story__icon {
	font-size: 64px;
	line-height: 1;
}

.inf-scroll-story__counter {
	font-size: clamp(48px, 8vw, 120px);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* ── Progress dots ────────────────────────────────────────── */

.inf-scroll-story__progress {
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.inf-scroll-story__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.4);
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.inf-scroll-story__dot:hover {
	border-color: rgba(255, 255, 255, 0.8);
}

.inf-scroll-story__dot--active {
	background: #ffffff;
	border-color: #ffffff;
	transform: scale(1.3);
}

/* ── Progress line ────────────────────────────────────────── */

.inf-scroll-story__progress-line {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 10;
	background: rgba(255, 255, 255, 0.15);
}

.inf-scroll-story__progress-bar {
	height: 100%;
	width: 0;
	background: #ffffff;
	transition: width 0.05s linear;
}

/* ── Mobile (< 640px) ─────────────────────────────────────── */
@media (max-width: 639px) {
	.inf-scroll-zone--scroll-story {
		height: auto !important;
	}

	.inf-scroll-story {
		position: static !important;
		height: auto !important;
	}

	.inf-scroll-story__scene {
		position: relative;
		min-height: 80vh;
	}

	.inf-scroll-story__layer {
		opacity: 1 !important;
		transform: none !important;
		position: relative;
		top: auto;
		left: auto;
		right: auto;
		bottom: auto;
		margin: 16px auto;
	}

	.inf-scroll-story__layer--center {
		transform: none;
	}

	.inf-scroll-story__progress {
		display: none;
	}

	.inf-scroll-story__progress-line {
		display: none;
	}
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.inf-scroll-zone--scroll-story {
		height: auto !important;
	}

	.inf-scroll-story {
		position: static !important;
		height: auto !important;
	}

	.inf-scroll-story__bg {
		transition: none;
	}

	.inf-scroll-story__scene {
		position: relative;
		min-height: 60vh;
	}

	.inf-scroll-story__layer {
		opacity: 1 !important;
		transform: none !important;
		position: relative;
		top: auto;
		left: auto;
		right: auto;
		bottom: auto;
		margin: 16px auto;
	}

	.inf-scroll-story__layer--center {
		transform: none;
	}

	.inf-scroll-story__dot {
		transition: none;
	}
}


/* ══════════════════════════════════════════════════════════════
 * MORPH HERO
 * ══════════════════════════════════════════════════════════════ */

.inf-morph-hero {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 0 !important;
}

.inf-morph-hero__layout {
	display: grid;
	width: 100%;
	height: 100%;
	align-items: center;
	padding: 0 clamp(32px, 5vw, 80px);
	box-sizing: border-box;
	gap: clamp(24px, 4vw, 64px);
	transition: grid-template-columns 0.05s linear;
}

.inf-morph-hero__content {
	z-index: 2;
	transition: opacity 0.1s linear;
}

.inf-morph-hero__heading {
	transition: font-size 0.05s linear;
}

.inf-morph-hero__image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	transition: opacity 0.2s ease;
}

.inf-morph-hero__img {
	max-width: 100%;
	max-height: 80vh;
	will-change: transform;
	transition: transform 0.05s linear;
}

.inf-morph-hero__cta {
	transition: opacity 0.2s ease;
}

/* ── Mobile fallback (shown only < 640px) ─────────────────── */

.inf-morph-hero__mobile-fallback {
	display: none;
}

@media (max-width: 639px) {
	/* Hide the pinned desktop version. */
	.inf-scroll-zone--morph-hero {
		display: none;
	}

	.inf-morph-hero__mobile-fallback {
		display: block;
	}

	.inf-morph-hero__mobile-state {
		padding: clamp(48px, 10vw, 80px) clamp(24px, 5vw, 48px);
	}

	.inf-morph-hero__mobile-inner {
		max-width: 600px;
		margin: 0 auto;
	}
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	/* Show only the first state, no scroll pinning. */
	.inf-scroll-zone--morph-hero {
		height: auto !important;
	}

	.inf-morph-hero {
		position: static !important;
		height: auto !important;
	}

	.inf-morph-hero__layout {
		transition: none;
	}

	.inf-morph-hero__heading {
		transition: none;
	}

	.inf-morph-hero__img {
		transition: none;
		will-change: auto;
	}
}


/* ══════════════════════════════════════════════════════════════
 * REVEAL SEQUENCE
 * ══════════════════════════════════════════════════════════════ */

.inf-reveal-seq {
	position: relative;
	overflow: hidden;
	padding: 0 !important;
}

.inf-reveal-seq__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

/* ── Overlay layers ───────────────────────────────────────── */

.inf-reveal-seq__overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}

.inf-reveal-seq__overlay-layer {
	position: absolute;
	will-change: opacity, transform;
	max-width: 80vw;
	text-align: center;
}

/* Overlay position modifiers. */
.inf-reveal-seq__overlay-layer--center {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.inf-reveal-seq__overlay-layer--bottom-center {
	bottom: 10%;
	left: 50%;
	transform: translateX(-50%);
}

.inf-reveal-seq__overlay-layer--top-center {
	top: 10%;
	left: 50%;
	transform: translateX(-50%);
}

.inf-reveal-seq__overlay-layer--bottom-left {
	bottom: 10%;
	left: 5%;
}

.inf-reveal-seq__overlay-layer--bottom-right {
	bottom: 10%;
	right: 5%;
}

.inf-reveal-seq__overlay-layer--top-left {
	top: 10%;
	left: 5%;
}

.inf-reveal-seq__overlay-layer--top-right {
	top: 10%;
	right: 5%;
}

/* ── Loading indicator ────────────────────────────────────── */

.inf-reveal-seq__loading {
	position: absolute;
	bottom: 15%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	transition: opacity 0.3s ease;
}

.inf-reveal-seq__loading-track {
	width: 180px;
	height: 3px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 2px;
	overflow: hidden;
}

.inf-reveal-seq__loading-bar {
	width: 0;
	height: 100%;
	background: #ffffff;
	border-radius: 2px;
	transition: width 0.15s ease;
}

.inf-reveal-seq__loading-text {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.5);
	font-weight: 500;
	letter-spacing: 0.04em;
}

/* ── Accessible / noscript fallback ───────────────────────── */

.inf-reveal-seq__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* ── Mobile fallback ──────────────────────────────────────── */

.inf-reveal-seq__mobile-fallback {
	display: none;
}

@media (max-width: 639px) {
	.inf-scroll-zone--reveal-seq {
		display: none;
	}

	.inf-reveal-seq__mobile-fallback {
		display: block;
	}
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.inf-scroll-zone--reveal-seq {
		height: auto !important;
	}

	.inf-reveal-seq {
		position: static !important;
		height: auto !important;
		min-height: 60vh;
	}

	.inf-reveal-seq__overlay-layer {
		opacity: 1 !important;
		transform: none !important;
		position: relative;
		max-width: none;
		margin: 16px auto;
	}

	.inf-reveal-seq__loading {
		display: none;
	}
}

/* ══════════════════════════════════════════════════════════════
 * HORIZONTAL SCROLL STORY
 * ══════════════════════════════════════════════════════════════ */

.inf-scroll-story-h {
	position: relative;
	overflow: hidden;
	padding: 0 !important;
}

.inf-scroll-story-h__track {
	display: flex;
	height: 100%;
	will-change: transform;
}

.inf-scroll-story-h__scene {
	flex: 0 0 100vw;
	width: 100vw;
	height: 100%;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 clamp(24px, 5vw, 80px);
	box-sizing: border-box;
}

.inf-scroll-story-h__layer {
	position: relative;
	z-index: 2;
	will-change: transform, opacity;
	max-width: 90vw;
	text-align: center;
}

.inf-scroll-story-h__layer--center {
	/* Flex child — flows naturally. */
}

.inf-scroll-story-h__layer--top-left,
.inf-scroll-story-h__layer--top-right,
.inf-scroll-story-h__layer--bottom-left,
.inf-scroll-story-h__layer--bottom-right,
.inf-scroll-story-h__layer--left,
.inf-scroll-story-h__layer--right {
	position: absolute;
}

.inf-scroll-story-h__layer--top-left { top: 10%; left: 5%; }
.inf-scroll-story-h__layer--top-right { top: 10%; right: 5%; }
.inf-scroll-story-h__layer--bottom-left { bottom: 10%; left: 5%; }
.inf-scroll-story-h__layer--bottom-right { bottom: 10%; right: 5%; }
.inf-scroll-story-h__layer--left { top: 50%; left: 5%; transform: translateY(-50%); }
.inf-scroll-story-h__layer--right { top: 50%; right: 5%; transform: translateY(-50%); }

.inf-scroll-story-h__layer img {
	display: block;
	max-width: 100%;
	height: auto;
}

.inf-scroll-story-h__icon {
	font-size: 64px;
	line-height: 1;
}

/* Progress dots — horizontal at the bottom. */
.inf-scroll-story-h__progress {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	gap: 12px;
}

.inf-scroll-story-h__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.4);
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.inf-scroll-story-h__dot:hover {
	border-color: rgba(255, 255, 255, 0.8);
}

.inf-scroll-story-h__dot--active {
	background: #ffffff;
	border-color: #ffffff;
	transform: scale(1.3);
}

/* Progress line. */
.inf-scroll-story-h__progress-line {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 10;
	background: rgba(255, 255, 255, 0.15);
}

.inf-scroll-story-h__progress-bar {
	height: 100%;
	width: 0;
	background: #ffffff;
	transition: width 0.05s linear;
}

/* Mobile: stack scenes vertically. */
@media (max-width: 639px) {
	.inf-scroll-zone--scroll-story-h {
		height: auto !important;
	}

	.inf-scroll-story-h {
		position: static !important;
		height: auto !important;
	}

	.inf-scroll-story-h__track {
		flex-direction: column;
		width: 100% !important;
		transform: none !important;
	}

	.inf-scroll-story-h__scene {
		flex: none;
		width: 100%;
		min-height: 80vh;
	}

	.inf-scroll-story-h__layer {
		opacity: 1 !important;
		transform: none !important;
	}

	.inf-scroll-story-h__progress,
	.inf-scroll-story-h__progress-line {
		display: none;
	}
}

/* Reduced motion. */
@media (prefers-reduced-motion: reduce) {
	.inf-scroll-zone--scroll-story-h {
		height: auto !important;
	}

	.inf-scroll-story-h {
		position: static !important;
		height: auto !important;
	}

	.inf-scroll-story-h__track {
		flex-direction: column;
		width: 100% !important;
		transform: none !important;
	}

	.inf-scroll-story-h__scene {
		flex: none;
		width: 100%;
		min-height: 60vh;
	}

	.inf-scroll-story-h__layer {
		opacity: 1 !important;
		transform: none !important;
	}
}


/* ══════════════════════════════════════════════════════════════
 * SPLIT HORIZONTAL
 * ══════════════════════════════════════════════════════════════ */

.inf-split-h {
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	padding: 0 !important;
	gap: 24px;
}

.inf-split-h__row {
	display: flex;
	align-items: stretch;
	will-change: transform;
	flex-shrink: 0;
}

.inf-split-h__item {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	border-radius: 16px;
	overflow: hidden;
}

/* Item styles. */
.inf-split-h__item--card {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	padding: clamp(20px, 3vw, 40px);
	min-width: 280px;
	max-width: 400px;
}

.inf-split-h__item--image {
	min-width: 300px;
	max-width: 500px;
	padding: 0;
}

.inf-split-h__item--text {
	padding: clamp(24px, 4vw, 48px);
	min-width: 300px;
	max-width: 500px;
}

.inf-split-h__item-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.inf-split-h__item-icon {
	font-size: 36px;
	margin-bottom: 12px;
	line-height: 1;
}

.inf-split-h__item-heading {
	font-size: clamp(18px, 2.5vw, 24px);
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.2;
}

.inf-split-h__item-body {
	font-size: clamp(14px, 1.5vw, 16px);
	line-height: 1.6;
	opacity: 0.7;
}

.inf-split-h__item-body p {
	margin: 0;
}

/* Mobile: single column, no horizontal scroll. */
@media (max-width: 639px) {
	.inf-scroll-zone--split-h {
		height: auto !important;
	}

	.inf-split-h {
		position: static !important;
		height: auto !important;
		padding: 48px 24px !important;
	}

	.inf-split-h__row {
		flex-direction: column;
		transform: none !important;
		gap: 16px;
	}

	.inf-split-h__item {
		min-width: 0;
		max-width: 100%;
	}
}

/* Reduced motion. */
@media (prefers-reduced-motion: reduce) {
	.inf-split-h__row {
		transform: none !important;
	}
}

/* ══════════════════════════════════════════════════════════════
 * VIDEO SCRUB — Scroll-linked video playback
 * ══════════════════════════════════════════════════════════════ */

.inf-video-scrub {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.inf-video-scrub__video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}
.inf-video-scrub__overlay {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.inf-video-scrub__layer {
	position: absolute;
	will-change: transform, opacity, filter;
}
.inf-video-scrub__layer--center {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0 clamp(24px, 5vw, 48px);
}
.inf-video-scrub__layer--left,
.inf-video-scrub__layer--right {
	top: 50%;
	transform: translateY(-50%);
	padding: 0 clamp(24px, 5vw, 48px);
	max-width: 50%;
}
.inf-video-scrub__layer--left { left: 0; }
.inf-video-scrub__layer--right { right: 0; }
.inf-video-scrub__layer--top-left { top: clamp(48px, 8vh, 80px); left: clamp(24px, 5vw, 48px); }
.inf-video-scrub__layer--top-right { top: clamp(48px, 8vh, 80px); right: clamp(24px, 5vw, 48px); }
.inf-video-scrub__layer--bottom-left { bottom: clamp(48px, 8vh, 80px); left: clamp(24px, 5vw, 48px); }
.inf-video-scrub__layer--bottom-right { bottom: clamp(48px, 8vh, 80px); right: clamp(24px, 5vw, 48px); }
.inf-video-scrub__layer--bottom-center { bottom: clamp(48px, 8vh, 80px); left: 50%; transform: translateX(-50%); text-align: center; }

/* Mobile fallback. */
.inf-video-scrub__mobile-fallback { display: none; }
@media (max-width: 639px) {
	.inf-scroll-zone--video-scrub { display: none; }
	.inf-video-scrub__mobile-fallback { display: block; }
}

/* ══════════════════════════════════════════════════════════════
 * SVG DRAW — Scroll-linked SVG path animation
 * ══════════════════════════════════════════════════════════════ */

.inf-svg-draw {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.inf-svg-draw__canvas {
	position: relative;
	z-index: 1;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}
.inf-svg-draw__canvas svg {
	width: 100%;
	height: auto;
}
.inf-svg-draw__canvas svg path,
.inf-svg-draw__canvas svg line,
.inf-svg-draw__canvas svg polyline,
.inf-svg-draw__canvas svg polygon,
.inf-svg-draw__canvas svg circle,
.inf-svg-draw__canvas svg ellipse,
.inf-svg-draw__canvas svg rect {
	transition: none;
}
.inf-svg-draw__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}
.inf-svg-draw__layer {
	position: absolute;
	will-change: transform, opacity, filter;
	pointer-events: auto;
}
.inf-svg-draw__layer--center {
	text-align: center;
	padding: 0 clamp(24px, 5vw, 48px);
}
.inf-svg-draw__layer--bottom-center {
	bottom: clamp(48px, 8vh, 80px);
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
}
.inf-svg-draw__layer--top-left { top: clamp(48px, 8vh, 80px); left: clamp(24px, 5vw, 48px); }
.inf-svg-draw__layer--top-right { top: clamp(48px, 8vh, 80px); right: clamp(24px, 5vw, 48px); }
.inf-svg-draw__layer--bottom-left { bottom: clamp(48px, 8vh, 80px); left: clamp(24px, 5vw, 48px); }
.inf-svg-draw__layer--bottom-right { bottom: clamp(48px, 8vh, 80px); right: clamp(24px, 5vw, 48px); }
.inf-svg-draw__layer--left { top: 50%; left: clamp(24px, 5vw, 48px); transform: translateY(-50%); }
.inf-svg-draw__layer--right { top: 50%; right: clamp(24px, 5vw, 48px); transform: translateY(-50%); }

/* Mobile fallback. */
.inf-svg-draw__mobile-fallback { display: none; }
@media (max-width: 639px) {
	.inf-scroll-zone--svg-draw { display: none; }
	.inf-svg-draw__mobile-fallback { display: block; }
}

/* ══════════════════════════════════════════════════════════════
 * PARALLAX DEPTH — Multi-layer depth parallax
 * ══════════════════════════════════════════════════════════════ */

.inf-parallax-depth {
	position: relative;
	overflow: hidden;
}
.inf-parallax-depth__stack {
	position: relative;
	width: 100%;
	height: 100%;
}
.inf-parallax-depth__layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	will-change: transform;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}
.inf-parallax-depth__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.inf-parallax-depth__fill {
	width: 100%;
	height: 100%;
}
.inf-parallax-depth__text {
	text-align: center;
	padding: 0 clamp(24px, 5vw, 48px);
	pointer-events: auto;
}

/* Mobile fallback. */
.inf-parallax-depth__mobile-fallback { display: none; }
@media (max-width: 639px) {
	.inf-scroll-zone--parallax-depth { display: none; }
	.inf-parallax-depth__mobile-fallback { display: block; }
}

/* ══════════════════════════════════════════════════════════════
 * PARTICLE BG — Canvas procedural background
 * ══════════════════════════════════════════════════════════════ */

.inf-particle-bg {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.inf-particle-bg__canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}
.inf-particle-bg__overlay {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.inf-particle-bg__layer {
	position: absolute;
	will-change: transform, opacity, filter;
}
.inf-particle-bg__layer--center {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0 clamp(24px, 5vw, 48px);
}
.inf-particle-bg__layer--left,
.inf-particle-bg__layer--right {
	top: 50%;
	transform: translateY(-50%);
	padding: 0 clamp(24px, 5vw, 48px);
	max-width: 50%;
}
.inf-particle-bg__layer--left { left: 0; }
.inf-particle-bg__layer--right { right: 0; }
.inf-particle-bg__layer--top-left { top: clamp(48px, 8vh, 80px); left: clamp(24px, 5vw, 48px); }
.inf-particle-bg__layer--top-right { top: clamp(48px, 8vh, 80px); right: clamp(24px, 5vw, 48px); }
.inf-particle-bg__layer--bottom-left { bottom: clamp(48px, 8vh, 80px); left: clamp(24px, 5vw, 48px); }
.inf-particle-bg__layer--bottom-right { bottom: clamp(48px, 8vh, 80px); right: clamp(24px, 5vw, 48px); }
.inf-particle-bg__layer--bottom-center { bottom: clamp(48px, 8vh, 80px); left: 50%; transform: translateX(-50%); text-align: center; }

/* Mobile fallback. */
.inf-particle-bg__mobile-fallback { display: none; }
@media (max-width: 639px) {
	.inf-scroll-zone--particle-bg { display: none; }
	.inf-particle-bg__mobile-fallback { display: block; }
}

/* ══════════════════════════════════════════════════════════════
 * SCROLL COUNTER — Scroll-driven animated counters
 * ══════════════════════════════════════════════════════════════ */

.inf-scroll-counter {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}
.inf-scroll-counter__inner {
	max-width: 1200px;
	width: 100%;
	padding: 0 clamp(24px, 5vw, 48px);
	text-align: center;
}
.inf-scroll-counter__heading {
	font-size: clamp(28px, 4vw, 56px);
	font-weight: 700;
	margin: 0 0 8px 0;
}
.inf-scroll-counter__sub {
	font-size: clamp(14px, 1.5vw, 20px);
	opacity: 0.6;
	margin: 0 0 clamp(32px, 5vw, 60px) 0;
}
.inf-scroll-counter__grid {
	display: grid;
	gap: clamp(16px, 3vw, 40px);
}
.inf-scroll-counter__item {
	text-align: center;
}
.inf-scroll-counter__value {
	font-size: clamp(36px, 6vw, 80px);
	font-weight: 800;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}
.inf-scroll-counter__prefix,
.inf-scroll-counter__suffix {
	font-size: 0.6em;
	opacity: 0.7;
	font-weight: 600;
}
.inf-scroll-counter__label {
	font-size: clamp(12px, 1.2vw, 16px);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.5;
	margin-top: 8px;
	font-weight: 600;
}
@media (max-width: 639px) {
	.inf-scroll-counter__grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ══════════════════════════════════════════════════════════════
 * TYPEWRITER — Character-by-character scroll text reveal
 * ══════════════════════════════════════════════════════════════ */

.inf-typewriter {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}
.inf-typewriter__container {
	margin: 0 auto;
	padding: 0 clamp(24px, 5vw, 48px);
	line-height: 1.5;
}
.inf-typewriter__output {
	display: inline;
}
.inf-typewriter__block {
	display: block;
	min-height: 1em;
}
.inf-typewriter__cursor {
	display: inline-block;
	animation: inf-blink 1s step-end infinite;
}
.inf-typewriter__cursor--line {
	width: 2px;
	height: 1.1em;
	background: currentColor;
	vertical-align: text-bottom;
	margin-left: 2px;
}
.inf-typewriter__cursor--block {
	width: 0.6em;
	height: 1.1em;
	background: currentColor;
	opacity: 0.7;
	vertical-align: text-bottom;
	margin-left: 1px;
}
.inf-typewriter__cursor--underscore {
	width: 0.6em;
	height: 3px;
	background: currentColor;
	vertical-align: baseline;
	margin-left: 1px;
}
@keyframes inf-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0; }
}

/* Mobile fallback. */
.inf-typewriter__mobile-fallback { display: none; }
@media (max-width: 639px) {
	.inf-scroll-zone--typewriter { display: none; }
	.inf-typewriter__mobile-fallback { display: block; }
}

/* ══════════════════════════════════════════════════════════════
 * STICKY COMPARE — Side-by-side comparison with row reveal
 * ══════════════════════════════════════════════════════════════ */

.inf-sticky-compare {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: clamp(48px, 8vh, 80px);
}
.inf-sticky-compare__inner {
	max-width: 1100px;
	width: 100%;
	padding: 0 clamp(24px, 5vw, 48px);
}
.inf-sticky-compare__heading {
	font-size: clamp(24px, 3.5vw, 48px);
	font-weight: 700;
	text-align: center;
	margin: 0 0 clamp(24px, 4vw, 48px) 0;
}
.inf-sticky-compare__table {
	display: grid;
	gap: 0;
	width: 100%;
}
.inf-sticky-compare__header-cell {
	padding: 16px 12px;
	text-align: center;
	font-weight: 700;
	border-bottom: 2px solid rgba(255,255,255,0.15);
	position: sticky;
	top: 0;
	z-index: 3;
	background: inherit;
}
.inf-sticky-compare__label-col {
	text-align: left;
}
.inf-sticky-compare__col-name {
	font-size: clamp(16px, 2vw, 24px);
	font-weight: 800;
}
.inf-sticky-compare__col-price {
	font-size: clamp(14px, 1.5vw, 20px);
	opacity: 0.6;
	margin-top: 4px;
}
.inf-sticky-compare__col-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 3px 10px;
	border-radius: 99px;
	color: #fff;
	margin-top: 8px;
}
.inf-sticky-compare__row {
	display: contents;
}
.inf-sticky-compare__row > * {
	transition: opacity 0.1s, transform 0.1s;
}
.inf-sticky-compare__feature-cell {
	padding: 14px 12px;
	font-size: clamp(13px, 1.3vw, 16px);
	font-weight: 600;
	border-bottom: 1px solid rgba(255,255,255,0.06);
	display: flex;
	align-items: center;
}
.inf-sticky-compare__value-cell {
	padding: 14px 12px;
	text-align: center;
	font-size: clamp(13px, 1.3vw, 16px);
	border-bottom: 1px solid rgba(255,255,255,0.06);
	border-left: 1px solid transparent;
	border-right: 1px solid transparent;
	transition: background-color 0.3s, border-color 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
}
.inf-sticky-compare__value-cell--winner {
	font-weight: 700;
}
/* Row-level opacity/transform is controlled by JS via inline styles on .inf-sticky-compare__row.
 * Since display:contents means the row div doesn't render as a box, we apply
 * the styles to the child cells instead. The JS targets the row wrapper and
 * the CSS :has() propagates. For browsers without :has(), the row opacity
 * still works because inline styles on the row affect its children via inheritance. */
.inf-sticky-compare__row[style*="opacity"] > .inf-sticky-compare__feature-cell,
.inf-sticky-compare__row[style*="opacity"] > .inf-sticky-compare__value-cell {
	opacity: inherit;
	transform: inherit;
}

/* ══════════════════════════════════════════════════════════════
 * SCROLL ANIMATE — Standard Section Cinematic Mode (v11.2.0)
 * ══════════════════════════════════════════════════════════════ */

.inf-scroll-zone--sa > section,
.inf-scroll-zone--sa > [data-inf-live-index] > section {
	position: sticky;
	top: 0;
	height: 100vh;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Prevent entrance animations from conflicting with scroll engine.
 * BUT: .inf-sa-item elements need their scroll-driven transforms to work,
 * so exclude them from this suppression. */
.inf-scroll-zone--sa [data-inf-animate]:not(.inf-sa-item) {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

/* Scroll animate items use CSS custom properties for transforms.
 * This avoids conflicting with Canvas editor inline styles.
 * !important required to override the entrance animation suppression above,
 * since child elements may also have [data-inf-animate]. */
.inf-sa-item {
	transform: var(--sa-transform, none) !important;
	opacity: var(--sa-opacity, 1) !important;
	transition: none !important;
	will-change: transform, opacity;
}

/* Timeline rail fill for scroll animate mode. */
.inf-sa-rail-fill {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 0%;
	transition: none;
}

/* 3D context for pricing, testimonial, team sections. */
.inf-scroll-zone--sa[data-sa-type="pricing"] > section .inf-pricing__grid,
.inf-scroll-zone--sa[data-sa-type="pricing"] > [data-inf-live-index] > section .inf-pricing__grid,
.inf-scroll-zone--sa[data-sa-type="testimonial"] > section .inf-container,
.inf-scroll-zone--sa[data-sa-type="testimonial"] > [data-inf-live-index] > section .inf-container,
.inf-scroll-zone--sa[data-sa-type="team"] > section .inf-team__grid,
.inf-scroll-zone--sa[data-sa-type="team"] > [data-inf-live-index] > section .inf-team__grid {
	perspective: 1200px;
}

.inf-scroll-zone--sa[data-sa-type="team"] .inf-team__card {
	transform-style: preserve-3d;
}

/* Reduced motion: collapse scroll zone, show final state. */
@media (prefers-reduced-motion: reduce) {
	.inf-scroll-zone--sa {
		height: auto !important;
	}
	.inf-scroll-zone--sa > section,
	.inf-scroll-zone--sa > [data-inf-live-index] > section {
		position: relative;
		height: auto;
	}
	.inf-sa-item {
		transform: none !important;
		opacity: 1 !important;
		will-change: auto;
	}
}

/* v11.2.0 — Hide scrollbar on scroll-animated sections using scrollTop. */
.inf-scroll-zone--sa > section::-webkit-scrollbar,
.inf-scroll-zone--sa > [data-inf-live-index] > section::-webkit-scrollbar {
	display: none;
}
