:root {
	--color-primary: #472659;
	--color-secondary: #d1662b;
	--color-text: #fff;

	--animation-default: 0.5s cubic-bezier(0.3, 1, 0.3, 1);
	--reversed-link-gap: 1px;
	--transform-origin-start: left;
	--transform-origin-end: right;
}

* {
	box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li {
	margin: 0;
	padding: 0;
}
a {
	text-decoration: none;
	color: var(--color-secondary);
}

html,
body {
	height: 100%;
}

body {
	margin: 0;
	padding: 0;
	font-family: "Albert Sans", sans-serif;
	font-size: 20px;
	font-size: clamp(1rem, 0.9383rem + 0.2597vw, 1.25rem);
	line-height: 1.25;
	font-optical-sizing: auto;
	background-color: var(--color-primary);
	color: var(--color-text);
	display: flex;
	flex-direction: column;
}

h1 {
	font-size: 1.5em;
	text-transform: uppercase;
	line-height: 1.15;
}
h1:has(.underline) {
	margin-bottom: 1em;
}
h1 .underline {
	position: relative;
}
h1 .underline::after {
	content: "";
	display: block;
	position: absolute;
	width: calc(100% + 20px);
	height: 20px;
	background-image: url("./assets/underline.svg");
	background-size: 100%;
	background-repeat: no-repeat;
	left: -10px;
	top: 1.25em;
	transition: mask-size var(--animation-default);
	mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 100%);
	mask-size: 0%;
	mask-repeat: no-repeat;
}

.stroke-wrapper {
	visibility: hidden;
	position: absolute;
	top: 0;
	left: 0;
	width: 75%;
	max-width: 1200px;
	z-index: 50;
}

.content-wrapper {
	flex: 1;
	width: 100%;
	background-image: url("./assets/background.png");
	background-color: var(--color-primary);
	background-blend-mode: soft-light;
	background-size: auto clamp(550px, 100vw, 900px);
	background-position: top right;
	background-repeat: no-repeat;
	opacity: 0;
	z-index: 0;

	padding: clamp(20px, 10vw, 140px) clamp(20px, 10vw, 180px);
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
}

.content {
	display: grid;
	grid-template-columns: auto auto;
	grid-template-rows: auto auto;
	grid-template-areas:
		"logo text"
		". contact";
	gap: 1rem 80px;
}

.logo {
	width: clamp(300px, calc(1rem + 20vw), 400px);
	grid-area: logo;
}
.text {
	grid-area: text;
	width: clamp(400px, 33vw, 510px);
	align-self: flex-end;
	text-wrap: pretty;
}
.text.showed h1 .underline::after {
	mask-size: 100%;
}

.contact {
	grid-area: contact;
}

.contact-link {
	text-wrap: nowrap;
	font-size: 0.75em;
	text-transform: uppercase;
	font-weight: bold;
	display: inline-flex;
	gap: 0.33em;
	gap: 0.5em;
	align-items: center;
	margin-right: 1rem;
  transition: color var(--animation-default);
}
.contact-link::before {
	content: "";
  background-color: currentColor;
	width: 1em;
	height: 1em;
	display: inline-block;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}
.contact-link--tel::before {
  mask-image: url("./assets/icon-tel.svg");
}
.contact-link--linkedin::before {
  mask-image: url("./assets/icon-linkedin.svg");
}
.contact-link span {
	text-decoration: underline;
	position: relative;
}
.contact-link span::before {
	content: attr(data-content);
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	color: var(--color-text);
	transition: mask-size var(--animation-default);
	mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 100%);
	mask-size: 0%;
	mask-repeat: no-repeat;
}
.contact-link:hover {
  color: var(--color-text);
}
.contact-link:hover span::before {
  mask-size: 100%;
}

/* Media Queries */

@media (max-width: 950px) {
	.content {
		display: flex;
		flex-direction: column;
	}
}

@media (max-width: 780px) {
	body {
		font-size: 16px;
	}

	.logo {
		width: 100%;
		max-width: 300px;
		margin-bottom: 3rem;
	}

	.text {
		width: 100%;
	}
}
