@font-face {
	font-family: "Montserrat";
	src: url("/assets/fonts/Montserrat-Light.ttf") format("truetype");
	font-weight: 300;
	font-style: normal;
}

@font-face {
	font-family: "Montserrat";
	src: url("/assets/fonts/Montserrat-Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: "Montserrat";
	src: url("/assets/fonts/Montserrat-Bold.ttf") format("truetype");
	font-weight: 600;
	font-style: normal;
}

@font-face {
	font-family: "Montserrat";
	src: url("/assets/fonts/Montserrat-Black.ttf") format("truetype");
	font-weight: 700;
	font-style: normal;
}

html,
body {
	height: 100%;
	overflow: hidden;
	margin: 0;
}

#track {
	width: 100%;
	transition: transform 900ms cubic-bezier(.65, 0, .35, 1);
	will-change: transform;
}

.screen {
	position: relative;
	height: 100vh;
	width: 100%;
	font-family: Montserrat;
	font-weight: 400;
}

.screen-1 {

	background-image: url("/assets/images/bg.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;

	display: flex;
	color: white;
}

.screen-1::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.top-right {
	position: absolute;
	top: 20px;
	right: 20px;
	display: flex;
	gap: 4.7vw;
	font-size: 3vw;
	z-index: 2;
}

.top-right div {
	cursor: pointer;
}

.center-right {
	position: absolute;
	top: 50%;
	right: 20px;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.main-header {
	font-size: 15vw;
	font-weight: 700;
	line-height: 0.95;
}

.profession,
.sub-header {
	font-size: var(--fit-size, 3.5vw);
	align-self: flex-end;
	font-weight: 400;
	white-space: nowrap;
	color: rgba(255, 255, 255, 0.7);
}

.scroll-arrow {
	position: absolute;
	left: 50%;
	bottom: 4vh;
	transform: translateX(-50%);
	z-index: 2;
	background: none;
	border: none;
	color: white;
	cursor: pointer;
	padding: 12px;
	animation: arrow-bob 2s ease-in-out infinite;
}

.scroll-arrow svg {
	display: block;
	width: 3.2vw;
	min-width: 28px;
	height: auto;
}

@keyframes arrow-bob {

	0%,
	100% {
		transform: translate(-50%, 0);
		opacity: 0.6;
	}

	50% {
		transform: translate(-50%, 10px);
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.scroll-arrow {
		animation: none;
	}
}

.screen-2 {
	background: black;
	color: white;
}

.screen-2,
.screen-4 {
	display: flex;
	align-items: center;
}

.row {
	width: 100%;
	display: flex;
	justify-content: space-between;
	padding: 0 80px;
}

.left {
	width: 40%;
	display: flex;
	align-items: center;
}

.right {
	width: 50%;
}

.left p {
	font-size: 1.9vw;
}

.main-text {
	font-weight: 400;
	font-size: 1.9vw;
}

.expandable {
	position: relative;
	cursor: pointer;
}

.expandable>*:not(.app-burst) {
	position: relative;
	z-index: 1;
}

.expandable .more {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	transition: grid-template-rows 500ms ease, opacity 400ms ease;
}

.expandable .more-inner {
	min-height: 0;
	overflow: hidden;
}

.expandable.is-open .more {
	grid-template-rows: 1fr;
	opacity: 1;
}

.screen-2 {
	overflow: hidden;
}

.app-burst {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;

	--ux: 1vw;
	--uy: 1vw;
	--us: 1vw;
}

.app-burst-icon {
	position: absolute;
	left: 50%;
	top: 50%;
	width: calc(var(--size) * var(--us));
	height: auto;
	user-select: none;

	--to: translate(-50%, -50%) translate(calc(var(--x) * var(--ux)), calc(var(--y) * var(--uy))) rotate(calc(var(--rot) * 1deg)) scale(1);

	opacity: 0;
	transform: translate(-50%, -50%) translate(0px, 0px) rotate(0deg) scale(0.2);
	transition: transform 350ms ease-in, opacity 250ms ease-in;
}

.expandable.is-open .app-burst-icon {
	opacity: 1;
	transform: var(--to);
	transition:
		transform 900ms cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms),
		opacity 600ms ease-out var(--delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
	.app-burst-icon {
		transform: var(--to);
		transition: opacity 300ms ease;
	}

	.expandable.is-open .app-burst-icon {
		transition: opacity 300ms ease;
	}
}

.toggle-hint {
	background: none;
	border: none;
	color: inherit;
	font-family: inherit;
	font-size: 0.9vw;
	opacity: 0.6;
	cursor: pointer;
	padding: 0;
	margin-top: 12px;
}

.screen-3 {
	background: #000;
	color: white;
	display: flex;
	align-items: center;
}

.categories-list {
	position: relative;
	z-index: 2;
	list-style: none;
	width: 100%;
	height: 100%;
	justify-content: center;
	padding: 0 80px;
	display: flex;
	flex-direction: column;
	gap: 2.5vw;

	background: linear-gradient(to right,
			rgba(0, 0, 0, 1) 0,
			rgba(0, 0, 0, 1) var(--gutter-end, 0px),
			rgba(0, 0, 0, 0.5) calc(var(--gutter-end, 0px) + 33.333vw),
			rgba(0, 0, 0, 0.5) 100%);
}

.category-item {
	display: flex;
	align-items: center;
	gap: 1.2vw;
}

.category-word {
	position: relative;
	z-index: 2;
	font-size: 2.5vw;
	font-weight: 600;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

.category-description {
	position: relative;
	z-index: 2;
	max-width: 24vw;
	font-size: 1.1vw;
	font-weight: 400;
	text-align: left;
	opacity: 0;
	pointer-events: none;
	transition: opacity 300ms ease;
}

.category-item:hover .category-description {
	opacity: 1;
}

.category-preview-overlay {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 400ms ease;
	z-index: 1;
	overflow: hidden;
}

.category-preview-overlay.is-visible {
	opacity: 1;
}

.category-preview-overlay img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.screen-4 {
	background: #050505;
	color: white;
}

.screen-4 a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

footer {
	position: fixed;
	left: 20px;
	bottom: 16px;
	color: white;
	font-family: Montserrat;
	font-size: 12px;
	opacity: 0.5;
	z-index: 5;
	pointer-events: none;
}

.lang-menu {
	position: fixed;
	top: 12px;
	left: 20px;
	z-index: 20;
	font-family: Montserrat;
}

.lang-toggle {
	display: block;
	background: none;
	border: none;
	color: white;
	padding: 6px;
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 200ms ease;
}

.lang-toggle:hover,
.lang-menu.is-open .lang-toggle {
	opacity: 1;
}

.lang-toggle svg {
	display: block;
	width: 22px;
	height: 22px;
}

.lang-list {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	margin: 0;
	padding: 6px 4px;
	list-style: none;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
}

.lang-menu.is-open .lang-list {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.lang-option {
	display: block;
	width: 100%;
	background: none;
	border: none;
	color: white;
	font-family: inherit;
	font-size: 14px;
	letter-spacing: 0.05em;
	text-align: left;
	padding: 6px 14px;
	cursor: pointer;
	opacity: 0.6;
}

.lang-option:hover,
.lang-option.is-active {
	opacity: 1;
}

@media (max-width: 768px) {

	html,
	body {
		height: auto;
		overflow-y: auto;
		overflow-x: hidden;
		scroll-snap-type: y mandatory;
	}

	#track {
		transform: none !important;
		transition: none !important;
	}

	.screen {
		scroll-snap-align: start;
	}

	.row {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
		padding: 0 24px;
	}

	.left,
	.right {
		width: 100%;
	}

	.screen-2 {
		height: auto;
		min-height: 100vh;
		padding: 48px 0;
		box-sizing: border-box;
	}

	.toggle-hint {
		font-size: max(15px, 4vw);
		min-height: 44px;
		padding: 12px 0;
		margin-top: 0;
		opacity: 0.75;
	}

	.left p,
	.main-text {
		font-size: 5.5vw;
	}

	.top-right {
		gap: 24px;
		font-size: 4.5vw;
	}

	.main-header {
		font-size: 13vw;

	}

	.scroll-arrow {
		bottom: 6vh;
	}

	.scroll-arrow svg {
		width: 9vw;
	}

	.categories-list {
		padding: 0 24px;
		gap: 8vh;
	}

	.category-word {
		font-size: 7vw;
	}

	.category-description {
		display: none;
	}

	.categories-list {
		background: rgba(0, 0, 0, 0.45);
	}

	.category-word {
		text-shadow: 0 0 14px rgba(0, 0, 0, 0.7);
	}
}