/* Current homepage. index2.php remains the preserved comparison version. */

.home_current {
	--home-red: var(--color-red);
	--home-red-dark: var(--color-red-dark);
	--home-red-soft: var(--color-red-background);
	--home-ink: var(--color-text);
	--home-muted: var(--color-text-muted);
	--home-line: var(--color-border);
	margin: 0;
	background: white;
	color: var(--home-ink);
}

.home_current #mainbar,
.home_current #main {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

#home_page,
#home_page * {
	box-sizing: border-box;
}

#home_page h1,
#home_page h2,
#home_page .home_eyebrow,
#home_page .home_button,
#home_page .home_facts,
#home_page .home_explore,
#home_page .home_other_links strong {
	font-family: Inter, Arial, sans-serif;
}

#home_page h1,
#home_page h2 {
	display: block;
	margin: 0;
	font-weight: 600;
	letter-spacing: -0.03em;
	text-transform: none;
}

#home_page p {
	text-align: left;
}

.home_hero {
	position: relative;
	min-height: 82vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--color-black);
	color: white;
}

.home_hero_image {
	position: absolute;
	inset: 0;
	overflow: hidden;
	opacity: 0.72;
}

.home_hero_image::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.72) 46%, rgba(0, 0, 0, 0.12) 100%);
}

.home_hero_image img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.home_hero_content {
	position: relative;
	z-index: 1;
	padding: 4.5em 0;
}

.home_eyebrow {
	margin: 0 0 0.9em !important;
	color: var(--home-red);
	font-size: 9pt;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.home_hero .home_eyebrow {
	color: var(--color-red-on-dark);
}

.home_hero h1 {
	max-width: 720px;
	font-size: clamp(36pt, 6vw, 62pt);
	line-height: 1;
}

.home_lead {
	max-width: 640px;
	margin: 1.15em 0 1.6em !important;
	color: var(--color-text-on-dark);
	font-size: 15pt;
	line-height: 1.45;
}

.home_hero_actions,
.home_contact_actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.7em;
}

.home_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.7em 1.1em;
	border: 1px solid var(--home-red);
	border-radius: var(--border-radius);
	font-size: 10.5pt;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.home_button_primary {
	background: var(--home-red);
	color: white !important;
}

.home_button_primary:hover {
	background: var(--home-red-dark);
	border-color: var(--home-red-dark);
}

.home_button_secondary {
	background: rgba(0, 0, 0, 0.3);
	border-color: rgba(255, 255, 255, 0.72);
	color: white !important;
}

.home_button_secondary:hover {
	background: white;
	border-color: white;
	color: var(--home-ink) !important;
}

.home_catalog {
	width: 100%;
}

.home_section {
	position: relative;
	display: flex;
	width: 100%;
	min-height: min(70vh, 650px);
	align-items: center;
	padding: clamp(2.5em, 5vh, 4em) 0;
	border-bottom: 1px solid var(--home-line);
	background: white;
	color: var(--home-ink) !important;
	text-decoration: none !important;
}

.home_section:nth-child(even) {
	background: var(--color-background-light);
}

.home_other {
	min-height: 50vh;
}

.home_section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 5px;
	height: 0;
	background: var(--home-red);
	transition: height 360ms ease-out;
}

.home_section:hover::before,
.home_section:focus-visible::before,
.home_section.home_in_view::before {
	height: 100%;
}

.home_section_inner {
	width: min(1000px, 92vw);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(3em, 7vw, 7em);
}

.home_reverse .home_product_image {
	order: 2;
}

.home_product_image {
	position: relative;
	height: min(48vh, 440px);
	min-height: 320px;
	overflow: hidden;
	border-radius: var(--border-radius);
	background: var(--color-border);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.11);
}

.home_product_image img {
	position: absolute;
	top: -4%;
	left: -4%;
	width: 108%;
	height: 108%;
	max-width: none;
	object-fit: cover;
	transform: scale(1.04) translateX(var(--home_image_pan, 0%));
	will-change: transform;
}

.home_product_text {
	position: relative;
	max-width: 540px;
}

.home_section h2 {
	font-size: clamp(29pt, 4.6vw, 49pt);
	line-height: 1.04;
}

.home_product_text > p {
	margin: 1.1em 0 1.4em !important;
	color: var(--color-text-muted);
	font-size: 13pt;
	line-height: 1.55;
}

.home_facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}

.home_facts span {
	display: inline-flex;
	align-items: center;
	min-height: 31px;
	padding: 0.38em 0.7em;
	border: 1px solid var(--color-red-border);
	border-radius: var(--border-radius);
	background: var(--home-red-soft);
	color: var(--color-red-dark);
	font-size: 9pt;
	font-weight: 600;
	line-height: 1.15;
}

.home_explore {
	display: inline-block;
	margin-top: 1.7em;
	color: var(--home-red-dark);
	font-size: 10pt;
	font-weight: 600;
}

.home_explore b {
	display: inline-block;
	margin-left: 0.3em;
	transition: transform 180ms ease-out;
}

.home_product:hover .home_explore b {
	transform: translateX(5px);
}

.home_other_links {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.65em;
	margin-top: 1.4em;
}

.home_other_links a {
	display: grid;
	grid-template-columns: minmax(120px, 0.45fr) 1fr;
	align-items: center;
	gap: 1em;
	padding: 0.9em 1em;
	border: 1px solid var(--home-line);
	border-radius: var(--border-radius);
	background: rgba(255, 255, 255, 0.72);
	color: var(--home-ink) !important;
	text-decoration: none !important;
	transition: border-color 180ms ease, background 180ms ease;
}

.home_other_links a:hover {
	border-color: var(--home-red);
	background: var(--home-red-soft);
}

.home_other_links strong {
	color: var(--home-red-dark);
	font-size: 10.5pt;
}

.home_other_links span {
	color: var(--home-muted);
	font-size: 9pt;
	line-height: 1.25;
}

.home_contact {
	min-height: 78vh;
	display: flex;
	align-items: center;
	padding: 5em 0;
	border-top: 5px solid var(--home-red);
	background: var(--color-text);
	color: white;
}

.home_contact_inner {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
	align-items: center;
	gap: 3em;
}

.home_contact h2 {
	font-size: clamp(30pt, 5vw, 50pt);
	line-height: 1.05;
}

.home_contact p:not(.home_eyebrow) {
	margin: 1em 0 0 !important;
	color: var(--color-text-on-dark-muted);
	font-size: 12pt;
}

.home_contact_actions {
	justify-content: flex-end;
}

.home_resource_links {
	display: flex;
	gap: 0.5em;
}

.home_resource_links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65em 0.8em;
	border: 1px solid var(--color-text-muted);
	border-radius: var(--border-radius);
	color: var(--color-text-on-dark) !important;
	font-family: Inter, Arial, sans-serif;
	font-size: 9pt;
	text-align: center;
	text-decoration: none !important;
}

.home_resource_links a:hover {
	border-color: var(--color-control-border);
	background: var(--color-background-dark);
}

.home_motion_ready .home_reveal .home_product_image,
.home_motion_ready .home_reveal .home_product_text,
.home_motion_ready .home_contact.home_reveal .home_contact_inner {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.home_motion_ready .home_reveal .home_product_text {
	transition-delay: 90ms;
}

.home_motion_ready .home_reveal.home_revealed .home_product_image,
.home_motion_ready .home_reveal.home_revealed .home_product_text,
.home_motion_ready .home_contact.home_reveal.home_revealed .home_contact_inner {
	opacity: 1;
	transform: translateY(0);
}

.home_product:focus-visible,
.home_other_links a:focus-visible,
.home_button:focus-visible,
.home_resource_links a:focus-visible {
	outline: 2px solid var(--home-red);
	outline-offset: 3px;
}

@media only screen and (max-width: 800px) {
	.home_current .fullwidth {
		width: 92vw;
		min-width: 0;
		max-width: 92vw;
	}

	.home_hero {
		min-height: 72vh;
	}

	.home_hero_content {
		padding: 3em 0;
	}

	.home_hero h1 {
		font-size: clamp(32pt, 12vw, 46pt);
	}

	.home_lead {
		font-size: 12.5pt;
	}

	.home_hero_actions {
		width: min(100%, 360px);
		align-items: stretch;
		flex-direction: column;
	}

	.home_section {
		min-height: 0;
		padding: 3.6em 0;
	}

	.home_section::before {
		width: 3px;
	}

	.home_section_inner {
		width: 92vw;
		grid-template-columns: 1fr;
		gap: 1.6em;
	}

	.home_reverse .home_product_image {
		order: 0;
	}

	.home_product_image {
		height: 210px;
		min-height: 210px;
	}

	.home_section h2 {
		font-size: clamp(25pt, 9vw, 35pt);
	}

	.home_product_text > p {
		font-size: 11.5pt;
	}

	.home_other_links a {
		grid-template-columns: 1fr;
		gap: 0.25em;
	}

	.home_contact {
		min-height: 0;
		padding: 4em 0;
	}

	.home_contact_inner {
		grid-template-columns: 1fr;
		gap: 2em;
	}

	.home_contact h2 {
		font-size: 30pt;
	}

	.home_contact_actions {
		align-items: stretch;
		flex-direction: column;
	}

	.home_contact_actions > .home_button {
		width: 100%;
	}

	.home_resource_links {
		width: 100%;
	}

	.home_resource_links a {
		flex: 1 1 50%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home_motion_ready .home_reveal .home_product_image,
	.home_motion_ready .home_reveal .home_product_text,
	.home_motion_ready .home_contact.home_reveal .home_contact_inner {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.home_product_image img,
	.home_explore b {
		transform: none !important;
		transition: none !important;
	}
}
