@charset "utf-8";
/* CSS Document */

:root {
	--background-overlay-opacity: .3;
}

body,
html {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-family: 'Helvetica', sans-serif;
	background: rgb(26, 188, 156);
	background: -moz-linear-gradient(-45deg, rgba(26, 188, 156, 1) 0%, rgba(142, 68, 173, 1) 100%);
	background: -webkit-linear-gradient(-45deg, rgba(26, 188, 156, 1) 0%, rgba(142, 68, 173, 1) 100%);
    background: linear-gradient(135deg, rgba(26, 188, 156, 1) 0%, rgba(142, 68, 173, 1) 100%);
}

h1 {
	font-size: clamp(16px, min(6vw, 3.2vh), 24px);
	font-size: clamp(16px, min(6vw, 3.2dvh), 24px);
	line-height: 1.25;
	margin: 0;
	font-weight: 400;
	/* text-transform: uppercase; */
	color: #eeeeee;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}

p {
	font-size: 12px;
    color: #333333;
}

body {
	height: 100vh;
	height: 100dvh;
	position: relative;
	isolation: isolate;
}

button,
a {
	font: inherit;
}

.site-background {
	position: fixed;
	z-index: 0;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.background-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	opacity: 0;
	pointer-events: none;
}

body.video-ready .background-video {
	opacity: 1;
}

.background-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, var(--background-overlay-opacity));
	pointer-events: none;
}

.container {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: max(24px, calc(env(safe-area-inset-top) + 20px)) 18px calc(76px + env(safe-area-inset-bottom));
}

.main-content {
	width: 100%;
	min-height: 0;
	flex: 1 1 auto;
	display: grid;
	grid-template-rows: auto clamp(52px, min(14vh, 24vw), 104px);
	grid-template-rows: auto clamp(52px, min(14dvh, 24vw), 104px);
	justify-items: center;
	align-content: center;
	row-gap: 0;
	padding: 0;
	box-sizing: border-box;
}

.avatar {
	width: clamp(60px, min(50.6vw, 34.2vh, calc(100vh - 156px)), 190px);
	width: clamp(60px, min(50.6vw, 34.2dvh, calc(100dvh - 156px)), 190px);
	height: auto;
	aspect-ratio: 1;
	box-sizing: border-box;
	border: 5px white solid;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 7px 20px 0 rgba(0, 0, 0, .45);
	transform: translatey(0px);
	animation: float 6s ease-in-out infinite;
}

img {
    width: 100%;
    height: auto;
}

.content {
	width: 100%;
	max-width: 600px;
	height: 100%;
	margin: 16px;
	padding: clamp(8px, 2dvh, 18px) 12px 0;
	box-sizing: border-box;
	text-align: center;
}

.contact-action {
	position: fixed;
	z-index: 10;
	left: 50%;
	bottom: max(18px, env(safe-area-inset-bottom));
	transform: translateX(-50%);
}

.contact-button {
	min-width: 144px;
	max-width: calc(100vw - 24px);
	padding: 12px 26px;
	border: 1px solid rgba(255, 255, 255, .88);
	border-radius: 999px;
	color: #ffffff;
	background: transparent;
	box-shadow: 0 6px 20px rgba(31, 38, 54, .12);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: .02em;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.contact-button:hover {
	border-color: #ffffff;
	background: rgba(255, 255, 255, .14);
	box-shadow: 0 8px 24px rgba(31, 38, 54, .2);
}

.contact-button:focus-visible,
.modal-close:focus-visible,
.contact-list a:focus-visible,
.contact-secondary a:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}

body.modal-open {
	overflow: hidden;
}

.modal[hidden] {
	display: none;
}

.modal {
	position: fixed;
	z-index: 30;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 24px;
	background: rgba(12, 17, 23, .7);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.modal-panel {
	width: min(100%, 520px);
	max-height: calc(100vh - 48px);
	max-height: calc(100svh - 48px);
	overflow-y: auto;
	box-sizing: border-box;
	padding: 32px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 18px;
	color: #ffffff;
	background: rgba(27, 35, 47, .98);
	box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

.modal-panel:focus {
	outline: none;
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 26px;
}

.modal-header h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 400;
}

.modal-close {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 50%;
	color: #ffffff;
	background: transparent;
	font-size: 29px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease;
}

.modal-close:hover {
	border-color: rgba(255, 255, 255, .35);
	background: rgba(255, 255, 255, .08);
}

.contact-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 22px 0;
	border-top: 1px solid rgba(255, 255, 255, .14);
	list-style: none;
}

.contact-list-priority {
	padding-top: 0;
	border-top: 0;
}

.contact-list a,
.contact-secondary a {
	display: flex;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
	min-height: 48px;
	padding: 13px 15px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 10px;
	color: #eeeeee;
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease;
}

.contact-list a:hover,
.contact-secondary a:hover {
	border-color: rgba(255, 255, 255, .45);
	background: rgba(255, 255, 255, .08);
}

.icon-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.contact-icon {
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.contact-icon .icon-fill {
	fill: currentColor;
	stroke: none;
}

.contact-secondary {
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, .14);
}

.contact-secondary a {
	color: rgba(255, 255, 255, .75);
}

/* Float animation */
@keyframes float {
	0% {
		box-shadow: 0 7px 20px 0 rgba(0, 0, 0, .45);
		transform: translatey(0px);
	}
	50% {
		box-shadow: 0 32px 20px 0 rgba(0, 0, 0, .16);
		transform: translatey(-20px);
	}
	100% {
		box-shadow: 0 7px 20px 0 rgba(0, 0, 0, .45);
		transform: translatey(0px);
	}
}

/* Blink Text Cursor */
.typewrite > .wrap {
	border-right: .08em solid #ffffff;
	animation: blinkTextCursor 500ms steps(44) infinite normal;
}

@keyframes blinkTextCursor {
    from { border-right-color: rgba(255,255,255,.75); }
    to   { border-right-color: transparent; }
}

@media (max-width: 480px) {
	.container {
		padding-right: 18px;
		padding-left: 18px;
	}

	.content {
		padding-right: 6px;
		padding-left: 6px;
	}

	.modal {
		padding: 14px;
	}

	.modal-panel {
		max-height: calc(100vh - 28px);
		max-height: calc(100svh - 28px);
		padding: 20px;
	}

	.contact-list {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.background-video {
		display: none;
	}

	.avatar,
	.typewrite > .wrap {
		animation: none;
	}

	.contact-button,
	.modal-close,
	.contact-list a,
	.contact-secondary a {
		transition: none;
	}
}
