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

html, body {
	height: 100%;
}

body {
	background: #0a0a0a;
	color: #ededed;
	font-family: "Inter Tight", Helvetica, Arial, sans-serif;
	font-weight: 300;
	text-transform: lowercase;
	display: grid;
	place-items: center;
	overflow: hidden;
	-webkit-font-smoothing: antialiased;
}

h1 {
	font-size: clamp(0.7rem, 2.1vw, 1.3rem);
	font-weight: 400;
	letter-spacing: -0.02em;
	display: flex;
	gap: 0 0.34em;
}

h1 span {
	display: inline-block;
	opacity: 0;
	transform: translateY(1.1em);
	animation: up 1.1s cubic-bezier(.16,1,.3,1) both, pulse 8s ease-in-out infinite;
}

h1 span:nth-child(1) { animation-delay: .2s, 1.6s }
h1 span:nth-child(2) { animation-delay: .32s, 1.8s }
h1 span:nth-child(3) { animation-delay: .52s, 2s }

.dim {
	color: #626262;
	animation-name: up, pulsedim;
}

.glow {
	position: fixed;
	inset: -25%;
	background: radial-gradient(38% 38% at 50% 50%, rgba(255,255,255,.07), transparent 68%);
	opacity: 0;
	pointer-events: none;
	animation: fadein 2.4s ease-out .2s forwards, breathe 12s ease-in-out 2s infinite;
}

.grain {
	position: fixed;
	inset: -100%;
	opacity: .028;
	pointer-events: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
	animation: shift 5s steps(5) infinite;
}

@keyframes up {
	from { opacity: 0; transform: translateY(1.1em) }
	to { opacity: 1; transform: translateY(0) }
}

@keyframes pulse {
	0%, 100% { text-shadow: 0 0 8px rgba(255,255,255,.1) }
	50% { text-shadow: 0 0 14px rgba(255,255,255,.28) }
}

@keyframes pulsedim {
	0%, 100% { text-shadow: 0 0 7px rgba(255,255,255,.05) }
	50% { text-shadow: 0 0 12px rgba(255,255,255,.14) }
}

@keyframes fadein {
	to { opacity: 1 }
}

@keyframes breathe {
	0%, 100% { opacity: .65 }
	50% { opacity: 1 }
}

@keyframes shift {
	0% { transform: translate(0,0) }
	25% { transform: translate(-3%,2%) }
	50% { transform: translate(2%,-3%) }
	75% { transform: translate(-2%,-2%) }
	100% { transform: translate(0,0) }
}
