/* === Fonts === */
@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap");

/* Load local fallback font files */
@font-face {
	font-style: normal;
	font-weight: 400;
	src: url("../fonts/SourceCodePro-Regular.woff2") format("woff2"),
		url("../fonts/SourceCodePro-Regular.woff") format("woff"),
		url("../fonts/SourceCodePro-Regular.ttf") format("truetype");
	font-family: "Source Code Pro";
	font-display: swap;
}

/* === Reset all elements to provide a consistent baseline === */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	border: 0;
	padding: 0;
}

/* === Base structure: layout and global styles === */
html,
body {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: stretch;
	background-color: #ffffff;
	min-width: 100%;
	min-height: 100%;
	color: #242529;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow: hidden;
	line-height: 1.4;
}
@supports (height: 100dvh) {
	html,
	body {
		height: 100dvh;
	}
}

/* Responsive root font size and base font family */
body {
	font-size: clamp(1.4rem, 2.17vw, 1.6rem);
	font-family: "Source Code Pro", Consolas, Arial, Helvetica, sans-serif;
}

/* === Anchor tag styles and accessibility focus states === */
a {
	transition: color 0.3s ease;
	color: inherit;
	text-decoration: none;
}
a:hover,
a:focus {
	outline: none;
	color: #1340c1;
	text-decoration: none;
}
a:focus-visible {
	outline: 2px dashed #1340c1;
	text-decoration: none;
}

/* === Typography base rules === */
p,
address {
	margin: 0;
	padding: 0;
}
strong {
	font-weight: 900;
	font-family: Arial, Helvetica, sans-serif;
}

/* === Visually hide content but keep it accessible to screen readers === */
.visually-hidden {
	position: absolute;
	clip: rect(0 0 0 0);
	margin: -1px;
	border: 0;
	padding: 0;
	width: 1px;
	height: 1px;
	overflow: hidden;
	white-space: nowrap;
}

/* === Main layout wrapper === */
.layout {
	display: flex;
	flex: 1;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: stretch;
	height: 100%;
}

/* === Left panel styles === */
.layout-left {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: space-between;
	gap: 4rem;
	padding: clamp(2rem, 2.5vw, 4rem);
	max-width: 33.333vw;
}
/* === Header and logo === */
.header {
	display: flex;
	align-content: flex-start;
	justify-content: space-between;
	align-items: stretch;
}
.header__logo {
	display: flex;
	flex: 0 1 auto;
	align-items: stretch;
}
.logo__img {
	flex: 1;
	height: clamp(4.3rem, 3.75vw, 6rem);
}
.header__social {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.2rem;
}

/* === Main content section === */
.main {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1.5rem;
}
.main__info {
	max-width: 44rem;
}
.main__info p strong {
	font-weight: inherit;
	font-family: inherit;
}
.main__footer {
	display: flex;
	flex-wrap: wrap;
	margin-top: 2rem;
	font-size: small;
}
.main__footer p strong {
	font-weight: inherit;
	font-family: inherit;
}

/* === Right panel with background video === */
.layout-right {
	display: flex;
	position: relative;
	flex: 1;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: flex-end;
	width: 100%;
	max-width: 66.663vw;
	height: 100%;
}
#bg-video {
	display: flex;
	flex: 1;
	align-items: flex-end;
	z-index: 0;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
	pointer-events: none;
}
#video-description {
	position: relative;
	z-index: 1;
}
.bg-fallback-image {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
	pointer-events: none;
}

/* === Responsive adjustments for viewports < 1600px === */
@media (max-width: 1600px) {
	.layout {
		flex-direction: column;
	}
	.layout-left,
	.layout-right {
		max-width: 100%;
	}
	.main__info {
		width: auto;
		max-width: 92rem;
	}
	.layout-left {
		flex: 1 1 auto;
		min-height: -webkit-fit-content;
		min-height: -moz-fit-content;
		min-height: fit-content;
		max-height: 38.2%;
	}
	.layout-right {
		flex: 1;
		justify-content: flex-end;
		padding: clamp(2rem, 2.5vw, 4rem);
		padding-top: 0;
		min-height: 2.4rem;
		max-height: 61.8%;
	}
}

/* === Responsive adjustments for viewports < 1400px === */
@media (max-width: 1400px) {
}

/* === Responsive adjustments for viewports < 1200px === */
@media (max-width: 1200px) {
}

/* === Responsive adjustments for viewports < 992px === */
@media (max-width: 992px) {
}

/* === Responsive adjustments for viewports < 880px === */
@media (max-width: 880px) {
	.main__info {
		max-width: 76.6rem;
	}
}

/* === Responsive adjustments for viewports < 768px === */
@media (max-width: 768px) {
	.main__footer {
		margin-top: 1rem;
		font-size: x-small;
	}

	.layout-right {
		flex: 1;
		padding: 0;
		padding-top: 0;
		min-height: 2.4rem;
		max-height: 61.8%;
	}
}

/* === Responsive adjustments for viewports < 576px === */
@media (max-width: 576px) {
	.logo__img {
		height: clamp(3.5rem, 8vw, 4.3rem);
	}
	#bg-video {
		display: none;
	}
	.bg-fallback-image {
		display: block;
	}
}

/* === Responsive adjustments for viewports < 320px === */
@media (max-width: 319px) {
	a,
	p {
		font-size: 4.375vw;
	}

	.main {
		gap: 1rem;
	}
	.main__footer {
		margin-top: 0;
	}
}

/* === Responsive adjustments for viewports < 248px === */
@media (max-width: 248px) {
	html,
	body,
	.layout {
		display: block;
		overflow-x: hidden;
		overflow-y: auto;
	}

	.layout-left {
		padding: 1rem;
		padding-top: 1.5rem;
		min-width: 10rem;
		height: 10rem;
		max-height: 110rem;
	}

	.logo__img {
		height: 2rem;
	}
	.layout-right,
	#bg-video {
		height: 100%;
		min-height: 100%;
		max-height: 100%;
	}
}
