/* FoxTent Motion — styles. Everything here is safe without JavaScript. */

:root {
	--ftm-orange: #E76F2D;
	--ftm-orange-deep: #C4551C;
	--ftm-cream: #F6F1E9;
	--ftm-ink: #1F2018;
	--ftm-sage: #8D9A6B;
	--ftm-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------------------------------------------------------------- Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ------------------------------------------------------------ Fox layer */
.ftm-fox {
	position: fixed;
	left: 0;
	bottom: 0;
	width: 0;
	height: 0;
	z-index: 340;               /* below WoodMart toolbar (350), header, popups, side panels */
	pointer-events: none;
	user-select: none;
	-webkit-user-select: none;
	contain: layout style;
	will-change: transform;
	opacity: 0;
	transition: opacity .6s var(--ftm-ease);
}
.ftm-fox.is-on { opacity: 1; }
.ftm-fox__box {
	position: absolute;
	left: 0;
	bottom: 0;
	pointer-events: none;
}
.ftm-fox-canvas { display: block; pointer-events: none; }

/* Speech bubble (max two moments) */
.ftm-bubble {
	position: absolute;
	left: 0;
	bottom: 0;
	transform: translate(-50%, 0);
	padding: 7px 12px 8px;
	font: 600 13px/1.1 Lato, system-ui, sans-serif;
	letter-spacing: .01em;
	color: var(--ftm-ink);
	background: rgba(255, 252, 246, .96);
	border-radius: 999px;
	box-shadow: 0 6px 22px rgba(20, 14, 8, .22), 0 0 0 1px rgba(31, 32, 24, .06);
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
.ftm-bubble::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -5px;
	width: 10px;
	height: 10px;
	background: inherit;
	transform: translateX(-50%) rotate(45deg);
	border-radius: 0 0 3px 0;
	box-shadow: 3px 3px 6px rgba(20, 14, 8, .08);
}

/* "Try before you buy" cue: an orange underline that draws itself */
.info-box-title.ftm-cue { position: relative; display: inline-block; }
.info-box-title.ftm-cue::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 3px;
	background: var(--ftm-orange);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform .9s var(--ftm-ease);
}
.info-box-title.ftm-cue.ftm-cue--on::after { transform: scaleX(1); }

/* Debug HUD (?ftm-debug=1) */
.ftm-hud {
	position: fixed;
	left: 10px;
	top: 44px;
	z-index: 100000;
	padding: 8px 10px;
	font: 11px/1.35 ui-monospace, Menlo, Consolas, monospace;
	color: #fff;
	background: rgba(20, 20, 16, .82);
	border-radius: 6px;
	pointer-events: none;
	white-space: pre;
}

/* ----------------------------------------------------- Reveal primitives */
.ftm-split-line { will-change: transform; }

/* Elementor / WoodMart entrance animations would double up with ours in the sections we animate. */
html.ftm-js .elementor-element-e0476b2 .elementor-invisible,
html.ftm-js .elementor-element-ef15124 .elementor-invisible,
html.ftm-js .elementor-element-ef3774b .elementor-invisible,
html.ftm-js .elementor-element-e0f7d3c .elementor-invisible,
html.ftm-js .elementor-element-ea4bcbb .elementor-invisible,
html.ftm-js .elementor-element-7c649ea .elementor-invisible,
html.ftm-js .elementor-element-73fc10a .elementor-invisible,
html.ftm-js .elementor-element-1d37c93 .elementor-invisible,
html.ftm-js .elementor-element-0290c27 .elementor-invisible {
	visibility: visible !important;
	opacity: 1 !important;
	animation: none !important;
}

/* ---------------------------------------------------- Final CTA section */
.ftm-final {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	padding: clamp(96px, 14vw, 190px) 24px clamp(150px, 17vw, 240px);
	background:
		radial-gradient(1100px 520px at 78% 20%, rgba(231, 111, 45, .16), transparent 60%),
		linear-gradient(180deg, #1c1d15 0%, #23241a 100%);
	color: var(--ftm-cream);
}
.ftm-topo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	fill: none;
	stroke: var(--ftm-orange);
	stroke-width: 1.15;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
	opacity: .55;
}
.ftm-topo__line { stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.ftm-topo__line--1 { opacity: .55; }
.ftm-topo__line--2 { opacity: .3; }
.ftm-final__inner {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: end;
}
.ftm-final__eyebrow {
	margin: 0 0 18px;
	font: 700 13px/1 Lato, system-ui, sans-serif;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--ftm-orange);
}
.ftm-final__title {
	margin: 0 0 22px;
	font-family: var(--wd-title-font, "Bitter", Georgia, serif);
	font-weight: 700;
	font-size: clamp(38px, 6vw, 84px);
	line-height: 1.02;
	letter-spacing: -.015em;
	color: #fff;
	text-wrap: balance;
}
.ftm-final__text {
	margin: 0;
	max-width: 46ch;
	font-size: clamp(16px, 1.3vw, 19px);
	line-height: 1.6;
	color: rgba(246, 241, 233, .78);
}
.ftm-final__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: 6px; }
.ftm-final__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 20px 36px;
	font: 800 15px/1 Lato, system-ui, sans-serif;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	background: var(--ftm-orange);
	border: 0;
	border-radius: 2px;
	transition: translate .4s var(--ftm-ease), background-color .3s, box-shadow .4s var(--ftm-ease); /* translate, not transform: GSAP owns transform */
	box-shadow: 0 14px 40px rgba(231, 111, 45, .32);
}
.ftm-final__btn:hover, .ftm-final__btn:focus-visible { background: #F08048; color: #fff; translate: 0 -2px; box-shadow: 0 20px 50px rgba(231, 111, 45, .45); }
.ftm-final__btn span { display: inline-block; transition: transform .4s var(--ftm-ease); }
.ftm-final__btn:hover span { transform: translateX(5px); }
.ftm-final__btn.ftm-cue-on::before {
	content: "";
	position: absolute;
	inset: -6px;
	border: 1px solid var(--ftm-orange);
	border-radius: 4px;
	opacity: 0;
	animation: ftm-ring 1.8s var(--ftm-ease) 2;
}
@keyframes ftm-ring {
	0% { opacity: .9; transform: scale(.96); }
	100% { opacity: 0; transform: scale(1.12); }
}
.ftm-final__link {
	font-size: 15px;
	color: var(--ftm-cream);
	text-decoration: none;
	border-bottom: 1px solid rgba(246, 241, 233, .4);
	padding-bottom: 3px;
	transition: border-color .3s, color .3s;
}
.ftm-final__link:hover { color: #fff; border-color: var(--ftm-orange); }

@media (max-width: 900px) {
	.ftm-final__inner { grid-template-columns: 1fr; align-items: start; }
	.ftm-final__cta { align-items: stretch; }
	.ftm-final__btn { justify-content: center; }
	.ftm-final__link { align-self: center; }
}
@media (max-width: 640px) {
	.ftm-final { padding-bottom: 210px; }   /* room for the fox above the mobile toolbar */
	.ftm-bubble { font-size: 11.5px; padding: 6px 10px 7px; }
}

/* --------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.ftm-fox { transition: none; }
	.info-box-title.ftm-cue::after { transition: none; }
	.ftm-final__btn, .ftm-final__btn span { transition: none; }
	.ftm-final__btn.ftm-cue-on::before { animation: none; }
}

/* Hero parallax may bleed outside the section; clip it (does not create a scroll container). */
html.ftm-js .elementor-element-e0476b2 { overflow: clip; }
/* -------------------------------------------- Interactive hero video (scrubbed) */
/* The video is fixed to the viewport but clipped to the hero box: it never shows through other sections. */
html.ftm-video .ftm-hero {
	position: relative;
	isolation: isolate;
	clip-path: inset(0);
	min-height: 100vh;
	min-height: var(--ftm-hero-min, 100svh);   /* set by JS: viewport minus header and toolbar */
	touch-action: pan-y;             /* vertical scroll stays native, horizontal movement belongs to the scrubber */
	-webkit-tap-highlight-color: transparent;
}
.ftm-scrub-video {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	object-fit: cover;
	object-position: center;
	z-index: 0;
	will-change: transform, filter;
	pointer-events: none;
	background: #F2A21B;
	opacity: 0;
	transition: opacity .9s var(--ftm-ease);
}
html.ftm-video-ready .ftm-scrub-video { opacity: 1; }
html.ftm-video .ftm-hero .wd-slide-bg { transition: opacity .9s var(--ftm-ease); }
html.ftm-video-ready .ftm-hero .wd-slide-bg { opacity: 0; }
html.ftm-video-ready .ftm-hero .elementor-widget-wd_image_or_svg { display: none; }   /* the still truck: the video has its own Jeep */
html.ftm-video .ftm-hero .elementor-widget-wd_slider { position: relative; z-index: 1; }
/* the walking fox hands over to the video fox while the hero is on screen */
html.ftm-hero-live .ftm-fox.is-on { opacity: 0; }

.ftm-scrub-ui {
	position: fixed;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}
.ftm-scrub-loader {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	transition: opacity .4s;
}
.ftm-scrub-loader span {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	animation: ftm-spin .9s linear infinite;
}
@keyframes ftm-spin { to { transform: rotate(360deg); } }
.ftm-scrub-hint {
	position: absolute;
	left: 28px;
	bottom: 34px;
	margin: 0;
	padding: 8px 16px 9px;
	display: flex;
	align-items: center;
	gap: 10px;
	font: 600 12.5px/1 Lato, system-ui, sans-serif;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(31, 32, 24, .74);
	border-radius: 999px;
	white-space: nowrap;
	opacity: 0;
	transition: opacity .6s var(--ftm-ease) .5s;
}
html.ftm-video-ready .ftm-scrub-hint { opacity: 1; }
.ftm-scrub-hint.is-gone { opacity: 0 !important; transition-delay: 0s; }
.ftm-scrub-hint__arrow { display: inline-block; animation: ftm-nudge 1.6s var(--ftm-ease) infinite; }
.ftm-scrub-hint__arrow:first-child { animation-name: ftm-nudge-l; }
@keyframes ftm-nudge { 50% { transform: translateX(4px); } }
@keyframes ftm-nudge-l { 50% { transform: translateX(-4px); } }
.ftm-scrub-rail {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 22px;
	pointer-events: auto;
	opacity: 0;
	transition: opacity .6s var(--ftm-ease) .5s;
}
html.ftm-video-ready .ftm-scrub-rail { opacity: 1; }
.ftm-scrub-rail::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: rgba(31, 32, 24, .22);
}
.ftm-scrub-fill {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: var(--ftm-orange-deep);
	transform: scaleX(0);
	transform-origin: 0 50%;
	will-change: transform;
}
.ftm-scrub-range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
}
.ftm-scrub-range:focus-visible { opacity: .01; outline: 2px solid var(--ftm-orange-deep); outline-offset: -2px; }
@media (max-width: 1024px) {
	.ftm-scrub-rail { bottom: 55px; }   /* above the WoodMart mobile toolbar */
	.ftm-scrub-hint { bottom: 92px; }
}
/* Hero copy on the video: dark ink on the orange set, pushed to the empty right side, gone once the story starts */
html.ftm-video-ready .ftm-hero .elementor-6166 .e-con-inner > .e-con:has(.elementor-widget-wd_image_or_svg) { display: none; }
html.ftm-video-ready .ftm-hero .elementor-element-d286006 { margin-left: auto; width: min(470px, 40vw); }
html.ftm-video-ready .ftm-hero .elementor-6166 { color: #1F2018; }
html.ftm-video-ready .ftm-hero .elementor-6166 :is(.woodmart-title-container, .title-after_title, .title-subtitle, .wd-title-color-default, .wd-title-style-default) { color: #1F2018 !important; }
html.ftm-video-ready .ftm-hero .elementor-6166 .title-after_title { color: rgba(31, 32, 24, .86) !important; font-weight: 500; }
html.ftm-video-ready .ftm-hero .elementor-6166 .title-subtitle { font-size: clamp(18px, 2.2vw, 26px) !important; line-height: 1.3 !important; margin-bottom: 8px; }
html.ftm-video-ready .ftm-hero .elementor-6166 .title-subtitle h2 { margin: 0; font-size: inherit; color: #1F2018 !important; }
html.ftm-video-ready .ftm-hero .elementor-6166 .title-subtitle h2 + h2 { display: none; }   /* the empty second line the page builder leaves */
html.ftm-video-ready .ftm-hero .elementor-6166 .liner-continer { margin-bottom: 8px; }
html.ftm-video-ready .ftm-hero .elementor-6166 .woodmart-title-container { font-size: clamp(38px, 5.2vw, 68px) !important; line-height: 1.05 !important; }
html.ftm-video-ready .ftm-hero .elementor-widget-wd_button a.btn-color-primary { background: #1F2018; border-color: #1F2018; color: #fff; }
html.ftm-video-ready .ftm-hero .elementor-widget-wd_button a.btn:not(.btn-color-primary) { background: transparent; border-color: #1F2018; color: #1F2018; }
@media (max-width: 767px) {
	/* portrait: copy sits at the bottom over a soft orange wash so the fox above stays clear */
	html.ftm-video-ready .ftm-hero .wd-slide { display: flex; align-items: flex-end; }
	html.ftm-video-ready .ftm-hero .wd-slide-container { width: 100%; }
	html.ftm-video-ready .ftm-hero .wd-slide-inner { background: linear-gradient(to top, rgba(242, 162, 27, .96) 62%, rgba(242, 162, 27, 0)); padding-top: 30vh; padding-bottom: 18px; }
	html.ftm-video-ready .ftm-hero .elementor-6166 .title-after_title { display: none; }
	html.ftm-video-ready .ftm-hero .elementor-6166 .woodmart-title-container { font-size: clamp(30px, 9vw, 40px) !important; }
	html.ftm-video-ready .ftm-hero .elementor-element-d286006 { margin: 0 auto; width: 100%; }
	.ftm-scrub-hint { left: 50%; transform: translateX(-50%); top: 112px; bottom: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.ftm-scrub-video, .ftm-scrub-hint, .ftm-scrub-rail { transition: none; }
	.ftm-scrub-hint__arrow, .ftm-scrub-loader span { animation: none; }
}
