:root {
	--bright: #F2EFE6;
	--dark: #001647;
	--highlight: #F43362;
	--space-s: 1.25rem;
	--space-l: 3rem;
	--space-xl: 10rem;

	--font-regular: "BROmnyRegular", system-ui;
	--font-bold: "BROmnySemiBold", system-ui;
	--hl-xxlarge: 144px;
	--hl-large: 64px;
	--hl-medium: 46px;
	--hl-small: 32px;
	--hl-lineheight: 1.25em;
	--font-base: 1.25rem;
	--font-base-lineheight: 1.5em;
	--font-base-margin: 0 0 1.5rem;


	--wrap-large: 1400px;
	--wrap-small: 1100px;
}

@font-face {
	font-family: "BROmnySemiBold";
	src: url('assets/BROmnySemiBold/font.woff2') format('woff2'), url('assets/BROmnySemiBold/font.woff') format('woff');
	font-display: swap;
}
@font-face {
	font-family: "BROmnyRegular";
	src: url('assets/BROmnyRegular/font.woff2') format('woff2'), url('assets/BROmnyRegular/font.woff') format('woff');
	font-display: swap;
}
*, *::before, *::after {
	box-sizing: border-box;
}
/*
  2. Remove default margin
*/
* {
	margin: 0;
}
html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	padding:0;
	font-size: var(--font-base);
	font-family: var(--font-regular);
	line-height: var(--font-base-lineheight);
	color: var(--dark);
	background-color: var(--bright);
	font-weight: normal;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5,
.headline {
	font-family: var(--font-bold);
	font-weight: normal;
	padding: 0;
	margin: 0;
	position: relative;
	display: inline-block;
}
strong {
	font-family: var(--font-bold);
}
p {
	line-height: var(--font-base-lineheight);
	margin: var(--font-base-margin);
}
p:last-child {
	margin:0;
}



.ultra,
.headline.ultra {
	font-size: clamp(var(--hl-medium), 10vw, var(--hl-xxlarge));
	line-height:1.1em;
	font-family: var(--font-regular);
}

.large,
.headline.large {
	font-size: clamp(var(--hl-medium), 5vw, var(--hl-large));
	line-height:var(--hl-lineheight);
}

.medium,
.headline.medium {
	font-size: clamp(var(--hl-small), 5vw, var(--hl-medium));
	line-height:var(--hl-lineheight);
}

.wrap {
	position: relative;
	width: 100%;
	max-width: var(--wrap-large);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	padding: 0 var(--space-s);
}
header,
section,
footer {
	width: 100%;
	position: relative;
}

header {
	padding: var(--space-s);
	display: grid;
	justify-items: end;
	position: absolute;
	z-index: 2;
}
main {
	position: relative;
	z-index: 1;
	overflow: hidden;
}
.hero {
	position: relative;
	z-index: 1;
	height:80vh;
	display: grid;
	align-items: end;
}
.hero::before {
	content:"";
	width:400px;
	height:400px;
	position: absolute;
	top:-100px;
	left:-100px;
	filter: blur(60px);
	background: var(--highlight);
	opacity: 0.8;
	z-index: -1;
}
.hero span span {
	color: var(--highlight);
}
.hero span small {
	font-size: var(--hl-medium);
}
.stats {
	background-color: var(--dark);
	color: var(--bright);
	padding: var(--space-l) 0;
}
.stats .wrap {
	display: grid;
	grid-gap: var(--space-l);
	grid-template-columns: 1fr;
}
.stats .large {
	margin: 0 0 1.5rem;
}
.stats strong {
	color: var(--highlight);
}
.stats .items {
	display: grid;
	gap: var(--space-l);

}

.clients {
	background-color: var(--highlight);
	text-align: center;
	color: var(--bright);
	padding: var(--space-l) 0;
}
.clients .headline {
	margin: 0 0 var(--space-l);
}
.clients .wrap {
	max-width: var(--wrap-small);
}
.clients img {
	max-width:100%;
	height: auto;
}
.clients .items {
	display: grid;
	gap:  var(--space-l);
	grid-template-columns: auto auto;
	align-items: center;
	justify-items: center;
}
footer {
	background: var(--dark);
	color: var(--bright);
	display: grid;
	grid-gap: var(--space-l);
	justify-items: center;
	padding: var(--space-l) var(--space-s);
}
footer .wrap {
	border: dashed rgba(255,255,255,0.2);
	border-width: 1px 0 1px 0;
	display: grid;
	grid-gap: var(--space-l);
	grid-template-columns: auto;
	padding: var(--space-l) 0;
	margin-top: var(--space-l) 0 0;
}
footer img {
	width: 100%;
	height: auto;
	max-width:800px;
}

.btn {
	display: flex;
	align-items: center;
	gap:2rem;
	background: var(--highlight);
	box-shadow: 0 0 40px var(--highlight);
	color: var(--bright);
	height:64px;
	border-radius: 32px;
	padding: 1rem 1rem 1rem 2rem;
	font-family: var(--font-bold);
	text-decoration: none;
	transition: color 0.25s ease-in-out, background 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}
.btn:hover {
	background: var(--bright);
	color: var(--dark);
	box-shadow: 0 0 40px var(--bright);
}


.blur {
	margin-bottom: -1px;
	margin-top: -1px;
	width: 100%;
	height: 300px;
	object-fit: cover;
	display: block;
	animation: pulse 2s ease-in-out infinite alternate;
	filter: blur(5px);
}
.reversed {
	filter:none;
	animation: pulse-reverse 2s ease-in-out infinite alternate;
}
@keyframes pulse {
	from { transform: scale(1.1);}
	to   { transform: scale(1.3);}
}
@keyframes pulse-reverse {
	from { transform: scale(-1.1, -1);}
	to   { transform: scale(-1.3, -1);}
}

a {
	color: var(--highlight);
}
a:not(.btn):hover {
	color: var(--bright);
	animation: link 1s ease-in-out infinite alternate;
}

@keyframes link {
	from { color: var(--highlight);}
	to   { color: var(--bright);}
}


.scroll-hint {
	position: relative;
	color: var(--highlight);
	border: 2px solid var(--dark);
	display: flex;
	align-items: center;
	justify-content: center;
	width:42px;
	height:42px;
	border-radius: 100%;
	padding:0.25rem;
	align-self: center;
	margin-top: var(--space-l);
}
.scroll-hint::after {
	content: "";
	border:1px solid var(--highlight);
	position: absolute;
	width:100%;
	height:100%;
	border-radius: 100%;
	animation: border 2s linear infinite ;

}
@keyframes border {
	0% { transform: scale(1);   opacity: 0; }
	16%      { transform: scale(1.75); opacity: 1; }
	33% { transform: scale(3);   opacity: 0; }
	100% { transform: scale(1);   opacity: 0; }

}

@media (width >= 700px) {
	.blur {
		width:100%;
		height: auto;
		object-fit: unset;
	}
	footer .wrap {
		padding: var(--space-l) var(--space-s);
		grid-template-columns: auto auto auto;
		justify-items: center;
	}
	.clients {
		padding: var(--space-xl) 0;
	}
	.clients .items {
		grid-template-columns: auto auto auto;
	}
	.stats {
		padding: var(--space-xl) 0;
	}
	.stats .wrap {
		grid-template-columns: 2fr 1fr;
	}


}

@media (width >= 1000px) {
	.clients .items {
		gap:var(--space-l);
		grid-template-columns: 1fr 1fr 1fr 1fr;
	}
	.stats .wrap {
		gap: var(--space-xl);
	}
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.blur, .reversed, a { animation: none; transform: scale(1); }
}
