:root {
	--radius: 16px;
	--radius-sm: 12px;
	--container: 1120px;
	--pad-x: clamp(16px, 4vw, 32px);
	--header-h: 72px;
	--ease: cubic-bezier(.2, .75, .2, 1);
	--blur: 15px;
	--qblue-rgb: 64, 156, 255;
	--hairline: 1px solid #ffffff44;

	color-scheme: dark;
}

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


@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	background: #000;
	display: flex;
    flex-direction: column;
	color: #fff;
	font-family: "Space Grotesk";
	line-height: 1.55;
	letter-spacing: 0.01em;
	text-shadow:
		0 0px 5px rgb(0, 0, 0),
		0 0px 15px rgb(0, 0, 0);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

canvas#bg-canvas {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	z-index: 0;
	opacity: 1;
}

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

:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		transition-duration: 0.001ms !important;
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
	}
}

.container {
	width: min(var(--container), calc(100% - (2 * var(--pad-x))));
	margin: 0 auto;
}

body > header,
body > footer {
    flex: 0 0 auto;
	position: relative;
	z-index: 1;
}

body > main {
    flex: 1 0 auto;
	position: relative;
	z-index: 1;
}

main#content {
	padding-top: clamp(18px, 3vw, 26px);
}

h1,
h2,
h3 {
	line-height: 1.2;
	margin: 0 0 0.75rem 0;
}

h1 {
	margin: 0 0 14px 0;
	font-size: clamp(1.45rem, 1.05rem + 2.0vw, 2.15rem);
	line-height: 1.18;
	letter-spacing: -0.02em;
}

h2 {
	font-size: clamp(1.2rem, 3vw, 1.5rem);
}

p {
	margin: 0 0 1rem 0;
}

ul,
ol {
	margin: 0 0 1rem 1.25rem;
	padding: 0;
}

li {
	margin: 0.25rem 0;
}

hr {
	border: 0;
	border-top: var(--hairline);
	margin: 2rem 0;
}

.site-header {
	position: relative;
	z-index: 10;
	border-bottom: var(--hairline);
	backdrop-filter: blur(var(--blur));
	-webkit-backdrop-filter: blur(var(--blur));
}

body.header-top .site-header {
	position: relative;
	border-bottom: var(--hairline);
}

.header-inner {
	height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	transition: height 240ms var(--ease);
}

body.header-top .header-inner {
	height: calc(var(--header-h) * 2);
}

.site-header.site-header--sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 20;
	backdrop-filter: blur(var(--blur));
	-webkit-backdrop-filter: blur(var(--blur));
	transform: translateY(-110%);
	transition: transform 220ms var(--ease);
	pointer-events: none;
}

.site-header.site-header--sticky .header-inner {
    height: var(--header-h);
}

body.header-pinned .site-header.site-header--sticky {
	transform: translateY(0);
	pointer-events: auto;
}

body.header-unpinned .site-header.site-header--sticky,
body.header-top .site-header.site-header--sticky {
	transform: translateY(-110%);
	pointer-events: none;
}

body.header-pinned .site-header:not(.site-header--sticky) {
    visibility: hidden;
    pointer-events: none;
}


.brand {
	display: inline-flex;
	align-items: center;
}

.brand-logo {
	height: 58px;
	width: auto;
}

.nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 14px;
}

.nav-link {
	font-weight: 600;
	font-size: 1.0rem;
	padding: 8px 14px;
	border-radius: 999px;
	transition: background-color 160ms var(--ease), color 160ms var(--ease);
}

.nav-link:hover {
	text-decoration: none;
}

.nav-cta {
	font-weight: 600;
	font-size: 1.0rem;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(var(--qblue-rgb), 1.0);
	border: 1px solid transparent;
}

.nav-cta:hover {
	border: 1px solid white;
}

.home {
	padding: 100px 0;
}


.home-inner {
    position: relative;
    --home-pad: clamp(22px, 3.5vw, 34px);
    padding: var(--home-pad);
    padding-left: calc(var(--home-pad) + 10px);
    max-width: 60rem;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	background: #ffffff02;
	/* border: var(--hairline); */
}

.home-inner::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0px;
    bottom: 0px;
    width: 12px;
    background: linear-gradient(to bottom, rgba(var(--qblue-rgb), 0.8), rgba(var(--qblue-rgb), 0.5));
    border-radius: 999px; /* rounded caps */
    pointer-events: none;
    z-index: 0;
}

.home-inner::before {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	pointer-events: none;
	opacity: 0.7;
}

.home-inner > * {
	position: relative;
	z-index: 1;
}

.intro {
	margin: 0;
	font-size: clamp(1.0rem, 0.96rem + 0.35vw, 1.125rem);
	max-width: 60ch;
}

.intro + .intro {
	margin-top: 12px;
}

.privacy,
.imprint {
	max-width: 60rem;
}

.privacy section,
.imprint section {
	padding: 1.25rem 0;
	border-top: var(--hairline);
}

.privacy section:first-of-type,
.imprint section:first-of-type {
	border-top: 0;
}

.site-footer {
	border-top: var(--hairline);
	padding: 40px 0 26px;
	backdrop-filter: blur(var(--blur));
	-webkit-backdrop-filter: blur(var(--blur));
}

.footer-inner {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 20px;
	padding-top: 6px;
}

.footer-col {
	min-width: 14rem;
	flex: 1;
}

.footer-brand {
	font-weight: 800;
	letter-spacing: -0.01em;
}

.footer-title {
	font-weight: 800;
	margin-bottom: 10px;
}

.site-footer a {
	display: block;
	padding: 6px 0;
}

.footer-bottom {
	margin-top: 18px;
	padding-top: 14px;
	border-top: var(--hairline);
	font-size: 0.95rem;
	display: flex;
	justify-content: space-between;
}

.i-dont-like-spam {
	color: rgba(var(--qblue-rgb), 1.0);
}
.i-dont-like-spam:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 2px;
}

#mission,
#applications,
#contact {
	scroll-margin-top: calc(var(--header-h) + 18px);
}

@media (max-width: 860px) {
	:root {
		--header-h: 64px;
	}

	.brand-logo {
		height: 26px;
	}

	.nav {
		gap: 10px;
	}

	.footer-inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 520px) {
	.header-inner {
		gap: 10px;
	}

	.nav {
		gap: 8px;
	}

	.nav-link {
		padding: 7px 9px;
	}

	.nav-cta {
		padding: 8px 12px;
	}

	.footer-inner {
		grid-template-columns: 1fr;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 8px;
	}
}
