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

html,
body {
	height: 100%;
	background: #000;
	color: #fff;
	overflow: hidden;
}

body {
	min-height: 100dvh;
	display: grid;
	place-items: center;
	font-family: Inter, sans-serif;
}

h1 {
	font-weight: 1000;
	font-size: clamp(1.5rem, 8.75vw, 105px);
	line-height: 1;
	letter-spacing: 0.02em;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	max-width: 100%;
}

h1 .gap {
	display: inline-block;
}

h1 .char {
	display: inline-block;
	position: relative;
	color: transparent;
	transform: translate(var(--sx), var(--sy));
	animation: form-move 1200ms cubic-bezier(0.45, 0.05, 0.2, 1) both;
	animation-delay: calc(100ms + var(--i) * 22ms);
}

h1 .char::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 0.48em;
	height: 0.48em;
	transform: translate(-50%, -50%);
	background-color: #fff;
	pointer-events: none;
	animation: form-block 1200ms cubic-bezier(0.45, 0.05, 0.2, 1) both;
	animation-delay: calc(100ms + var(--i) * 22ms);
}

@keyframes form-move {
	0% {
		transform: translate(var(--sx), var(--sy));
		color: transparent;
	}

	60% {
		color: transparent;
	}

	100% {
		transform: translate(0, 0);
		color: #fff;
	}
}

@keyframes form-block {
	0%,
	55% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}

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

body > a,
body > a:link,
body > a:visited,
body > a:hover,
body > a:active,
body > a:focus {
	color: #fff;
}

body > a {
	position: fixed;
	left: 50%;
	bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
	transform: translateX(-50%);
	font-size: 15px;
	line-height: 1;
	letter-spacing: 0.01em;
	text-decoration: none;
	opacity: 0;
	animation: credit-in 400ms ease-out 1500ms forwards;
}

@keyframes credit-in {
	to {
		opacity: 1;
	}
}

body > a:focus {
	outline: none;
}

body > a:focus-visible {
	outline: 1px solid rgba(255, 255, 255, 0.7);
	outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
	h1 .char {
		color: #fff;
		transform: none;
		animation: none;
	}

	h1 .char::before {
		display: none;
		animation: none;
	}

	body > a {
		opacity: 1;
		animation: none;
	}
}
