@font-face {
	font-family: AeonikPro;
	src: url('fonts/AeonikPro-Light.woff2') format('woff2');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: NBArchitektStdNeue;
	src: url('fonts/NBArchitektStd-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: calc(10 / 1440 * 100vw);

	@media screen and (width <= 1023px) and (width >= 520px) {
		font-size: calc(10 / 768 * 100vw);
	}

	@media screen and (width <= 519px) {
		font-size: calc(10 / 393 * 100vw);
	}
}

body {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100svh;
	min-height: 100svh;
	position: relative;
	color: #fff;
	overflow: hidden;
}

/* ── Hero container ── */

.hero__title {
	display: block;
	width: 0;
	height: 0;
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
}

/* ── Background image ── */
.hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero__media video {
	width: 100%;
	height: 100%;
	position: absolute;
	inset: 0;
	object-fit: cover;
}

.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ── Header / Logo ── */
.hero__header {
	padding: 1.9rem 2rem;
	position: relative;
	z-index: 2;
}

.hero__logo {
	--order: 1;
	--transform-y: 0%;

	display: block;
	width: 100%;
	height: auto;
	position: relative;
}

/* ── Heading ── */
.hero__heading {
	--transform-y: -50%;
	--order: 2;

	position: absolute;
	top: 50%;
	left: 2.1rem;
	z-index: 2;

	/* font-h1 */
	font-family: AeonikPro, sans-serif;
	font-size: 8rem;
	font-weight: 300;
	line-height: 1.05;
	letter-spacing: 0;
}

/* ── Footer ── */
.hero__footer {
	--transform-y: 0%;
	--order: 3;

	display: flex;
	gap: 1.6rem;
	align-items: center;
	padding: 4.2rem 2.1rem;
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;

	/* font-h5 */
	font-family: NBArchitektStdNeue, monospace;
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
}

.hero__footer span {
	display: inline-block;
}

/* intro-anim */
.hero__logo,
.hero__heading,
.hero__footer {
	/* stylelint-disable */
	transition-timing-function: ease;
	transition-duration: 800ms;
	transition-delay: calc(var(--order) * 0.8s);
	transition-property: transform, opacity, filter;
	transform: translateY(var(--transform-y, 0%)) skewX(0);
	opacity: 1;
	filter: blur(0);
}

@starting-style {
	.hero__logo,
	.hero__heading,
	.hero__footer {
		transform: translateY(calc(var(--transform-y) + 1rem)) skewX(-3deg);
		opacity: 0;
		filter: blur(3px);
	}
}

/* ── Mobile ── */
@media (width <= 1023px) {
	.hero__header {
		padding: 2rem;
	}

	.hero__heading {
		right: 2rem;
		left: 2rem;
		font-size: 4.5rem;
		line-height: 1;
		text-align: center;
	}

	.hero__footer {
		gap: 1.6rem;
		justify-content: center;
		margin-inline: auto;
		padding: 2.4rem 2rem;
		font-size: 1.4rem;
	}

	.hero__media img {
		object-position: 62% 50%;
	}

	.hero__media {
		position: absolute;
		z-index: -1;
		/* Safari fix */
		inset: unset;
		top: 0;
		left: 0;
		right: 0;
		bottom: unset;
		height: 100dvh;
		overflow: clip;
	}
}

@media (width <= 768px) {
	.hero__heading {
		font-size: 3.2rem;
	}
}

a {
	text-decoration: none;
	color: inherit;

	&:hover {
		text-decoration: underline;
	}
}
