@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
	--black: #171516;
	--grey: #6e6669;
	--white: #ffffff;
	--soft-pink: #fbf1f4;
	--pink: #d9678a;
	--line: #eadde1;
}

* {
	box-sizing: border-box;
	zoom: 97%;
}

html {
	scroll-behavior: smooth;
}

body.project-page {
	margin: 0;
	color: var(--black) !important;
	background: var(--white) !important;
	font-family: 'DM Sans', Arial, sans-serif !important;
	overflow-x: hidden;
}

.project-page h1,
.project-page h2,
.project-page h3 {
	font-family: 'Playfair Display', Georgia, serif !important;
}

.project-page .grain-overlay,
.project-page #canvas-container {
	display: none;
}

.project-page nav.fixed {
	position: relative;
	top: auto;
	left: auto;
	z-index: 1;
	padding: 26px max(32px, calc((100% - 1120px) / 2));
	color: var(--black) !important;
	background: var(--white) !important;
	border-bottom: 1px solid var(--line);
	box-shadow: none;
}

.project-page nav > div {
	max-width: none !important;
	margin: 0 !important;
}

.project-page nav a {
	color: var(--black) !important;
	font-family: 'DM Sans', Arial, sans-serif !important;
	font-size: .85rem !important;
	font-weight: 700;
	letter-spacing: .04em !important;
	text-decoration: none;
	text-transform: uppercase;
}

.project-page nav a:hover {
	color: var(--pink) !important;
}

.project-page nav svg {
	color: var(--pink);
}

.project-page > section:first-of-type {
	min-height: auto !important;
	padding: 110px 32px 100px !important;
	background: linear-gradient(110deg, var(--white) 0 62%, var(--soft-pink) 62%) !important;
}

.project-page > section:first-of-type > div:first-child {
	margin-bottom: 42px !important;
}

.project-page > section:first-of-type p:first-child {
	margin-bottom: 16px;
	color: var(--pink) !important;
	font-family: 'DM Sans', Arial, sans-serif !important;
	font-size: .75rem !important;
	font-weight: 700;
	letter-spacing: .16em !important;
}

.project-page > section:first-of-type h1 {
	margin-bottom: 20px !important;
	color: var(--black) !important;
	font-size: clamp(3rem, 7vw, 6rem) !important;
	line-height: 1 !important;
}

.project-page > section:first-of-type p:not(:first-child) {
	color: var(--grey) !important;
}

.project-page .game-container {
	position: relative;
	overflow: hidden;
	width: min(960px, 100%);
	aspect-ratio: 960 / 600;
	border: 1px solid var(--line);
	border-radius: 0;
	background: var(--black);
	box-shadow: 14px 14px 0 var(--pink);
}

.project-page .game-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #211b1e;
}

.project-page .game-fullscreen-button {
	margin-bottom: 36px;
	padding: 12px 18px;
	border: 1px solid var(--black);
	color: var(--white);
	background: var(--black);
	font-family: 'DM Sans', Arial, sans-serif;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .08em;
	cursor: pointer;
}

.project-page .game-fullscreen-button:hover {
	border-color: var(--pink);
	background: var(--pink);
}

.project-page .game-container:fullscreen {
	width: 100vw;
	height: 100vh;
	max-width: none;
	aspect-ratio: auto;
	border: 0;
	box-shadow: none;
	background: #000;
}

.project-page .game-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #211b1e !important;
}

.project-page .game-frame[hidden] {
	display: none;
}

.project-page .game-placeholder.hidden {
	display: none;
}

.project-page .game-placeholder > div > div:first-child {
	opacity: .42 !important;
}

.project-page .play-button {
	width: 70px;
	height: 70px;
	background: var(--pink);
	box-shadow: none;
}

.project-page .play-button:hover {
	background: var(--black);
	box-shadow: none;
}

.project-page .game-placeholder p {
	color: var(--white) !important;
	font-family: 'DM Sans', Arial, sans-serif !important;
}

.project-page > section:first-of-type > div:nth-child(3) {
	max-width: 960px !important;
	margin-top: 55px !important;
	color: var(--black);
}

.project-page > section:first-of-type > div:nth-child(3) > div {
	padding: 24px 0;
	border-top: 1px solid var(--line);
}

.project-page > section:first-of-type > div:nth-child(3) h3 {
	margin-bottom: 8px;
	color: var(--pink) !important;
	font-family: 'DM Sans', Arial, sans-serif !important;
	font-size: .75rem !important;
	font-weight: 700;
	letter-spacing: .14em;
}

.project-page > section:first-of-type > div:nth-child(3) p {
	color: var(--grey) !important;
}

.project-page > section:first-of-type > a {
	display: inline-flex;
	margin-top: 45px;
	padding: 14px 22px;
	border: 1px solid var(--black) !important;
	color: var(--white) !important;
	background: var(--black) !important;
	font-family: 'DM Sans', Arial, sans-serif !important;
	font-size: .85rem !important;
	font-weight: 700;
	text-decoration: none;
}

.project-page > section:first-of-type > a:hover {
	border-color: var(--pink) !important;
	background: var(--pink) !important;
}

.project-page > section:not(:first-of-type) {
	max-width: 960px !important;
	min-height: 0 !important;
	margin: 0 auto 24px !important;
	padding: 42px 0 !important;
	color: var(--black) !important;
	background: var(--white) !important;
	border-top: 1px solid var(--line);
	border-radius: 0 !important;
}

.project-page > section:not(:first-of-type) h2 {
	margin-bottom: 18px !important;
	color: var(--black) !important;
	font-size: 2.2rem !important;
}

.project-page > section:not(:first-of-type) h2::first-letter {
	color: var(--pink);
}

.project-page > section:not(:first-of-type) p {
	color: var(--grey) !important;
	font-family: 'DM Sans', Arial, sans-serif !important;
}

.project-page > section:not(:first-of-type) a {
	color: var(--pink) !important;
	font-family: 'DM Sans', Arial, sans-serif !important;
}

.project-page > section:not(:first-of-type) img {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 0 !important;
	box-shadow: none !important;
}

.project-page footer {
	margin-top: 80px;
	padding: 26px 32px !important;
	color: var(--white) !important;
	background: var(--black) !important;
	border-top: 0 !important;
}

.project-page footer p {
	color: #cfc4c8 !important;
	font-family: 'DM Sans', Arial, sans-serif !important;
}

@media (max-width: 700px) {
	.project-page nav.fixed {
		padding: 22px 18px;
	}

	.project-page nav > div {
		align-items: flex-start;
		flex-direction: column;
		gap: 16px;
	}

	.project-page nav > div > div {
		display: flex !important;
		gap: 18px;
	}

	.project-page > section:first-of-type {
		padding: 75px 18px 70px !important;
		background: var(--white) !important;
	}

	.project-page > section:first-of-type h1 {
		font-size: 3.2rem !important;
	}

	.project-page > section:not(:first-of-type) {
		width: calc(100% - 36px) !important;
		padding: 34px 0 !important;
	}

	.project-page .game-container {
		box-shadow: 8px 8px 0 var(--pink);
	}
}

.project-page {
	color: #fafafa !important;
	background: #ffffff !important;
	font-family: 'DM Sans', Arial, sans-serif !important;
}

.project-page h1,
.project-page h2,
.project-page h3 {
	font-family: 'Playfair Display', Georgia, serif !important;
}

.project-page #canvas-container {
	display: none !important;
}

.project-page > nav,
.project-page > section,
.project-page > footer {
	position: relative;
	z-index: 1;
}

.project-page nav.fixed {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 50;
	width: 100%;
	padding: 24px;
	color: #171516 !important;
	background: rgba(255, 255, 255, .9) !important;
	border-bottom: 1px solid #eadde1;
	backdrop-filter: blur(12px);
}

.project-page nav a {
	color: #171516 !important;
	font-family: 'DM Sans', Arial, sans-serif !important;
	text-transform: none;
}

.project-page nav a:hover {
	color: #f472b6 !important;
}

.project-page > section:first-of-type {
	min-height: 100vh !important;
	padding: 132px 24px 72px !important;
	background: rgba(255, 255, 255, .9) !important;
	position: relative;
}

.project-page > section:first-of-type > a.project-scroll-hint {
	position: absolute !important;
	top: 50%;
	z-index: 2;
	display: flex !important;
	align-items: center;
	gap: 8px;
	width: 220px;
	height: auto;
	margin: 0 !important;
	padding: 8px !important;
	border: 0 !important;
	color: var(--pink) !important;
	background: transparent !important;
	text-decoration: none;
	transform: translateY(-50%) !important;
}

.project-page > section:first-of-type > a.project-scroll-hint:hover,
.project-page > section:first-of-type > a.project-scroll-hint:focus-visible {
	border-color: transparent !important;
	background: transparent !important;
	color: #f472b6 !important;
}

.project-scroll-hint-left {
	left: 28px;
}

.project-scroll-hint-right {
	right: 28px;
	justify-content: flex-end;
}

.project-scroll-hint span {
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	white-space: normal;
}

.project-scroll-hint svg {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.5;
	animation: project-scroll-bob 1.5s ease-in-out infinite;
}

@keyframes project-scroll-bob {
	50% {
		transform: translateY(6px);
	}
}

@media (max-width: 1400px) {
	.project-page .project-scroll-hint {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.project-page .project-scroll-hint svg {
		animation: none;
	}
}

.project-page > section:first-of-type h1 {
	color: #171516 !important;
	font-family: 'Playfair Display', Georgia, serif !important;
	font-size: clamp(3rem, 7vw, 6rem) !important;
	letter-spacing: .02em;
}

.project-page > section:first-of-type p {
	color: #9ca3af !important;
	font-family: 'DM Sans', Arial, sans-serif !important;
}

.project-page > section:first-of-type p:first-child,
.project-page > section:first-of-type h3 {
	color: #f472b6 !important;
}

.project-page .game-container {
	width: min(960px, 100%);
	max-width: 960px;
	border: 0;
	border-radius: 8px;
	background: #1a1a1a;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .8);
}

.project-page .play-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 82px;
	height: 82px;
	padding: 0;
	border: 3px solid rgba(255, 255, 255, .9);
	border-radius: 50%;
	color: #fff;
	background: var(--pink);
	box-shadow: 0 0 0 8px rgba(217, 103, 138, .2), 0 0 28px rgba(217, 103, 138, .7);
	cursor: pointer;
	transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.project-page .play-button:hover {
	background: #c65378;
	box-shadow: 0 0 0 12px rgba(217, 103, 138, .22), 0 0 42px rgba(217, 103, 138, .9);
	transform: scale(1.08);
}

.project-page .game-placeholder p,
.project-page .game-placeholder .text-white,
.project-page .game-placeholder .text-gray-500 {
	color: #fff !important;
}

.project-page .game-placeholder p:first-of-type {
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .18em;
}

.project-page .game-fullscreen-button {
	border: 1px solid #f472b6;
	color: #f472b6;
	background: transparent;
	font-family: 'DM Sans', Arial, sans-serif;
}

.project-page .game-fullscreen-button:hover {
	color: #0a0a0a;
	background: #f472b6;
}

.project-page > section:first-of-type > div:nth-child(3) > div {
	border-top-color: rgba(244, 114, 182, .28);
}

.project-page > section:first-of-type > div:nth-child(3) h3 {
	color: #f472b6 !important;
	font-family: 'DM Sans', Arial, sans-serif !important;
}

.project-page > section:first-of-type > div:nth-child(3) p {
	color: #d1d5db !important;
}

.project-page > section:first-of-type > a {
	border-color: #f472b6 !important;
	color: #f472b6 !important;
	background: transparent !important;
	font-family: 'DM Sans', Arial, sans-serif !important;
}

.project-page > section:first-of-type > a:hover {
	color: #0a0a0a !important;
	background: #f472b6 !important;
}

.project-page > section:not(:first-of-type) {
	max-width: 960px !important;
	margin: 0 auto 24px !important;
	padding: 42px 24px !important;
	color: #171516 !important;
	background: rgba(255, 255, 255, .94) !important;
	border: 1px solid #eadde1;
	border-radius: 8px !important;
}

.project-page > section:not(:first-of-type) h2 {
	color: #f472b6 !important;
	font-family: 'Playfair Display', Georgia, serif !important;
}

.project-page > section:not(:first-of-type) p {
	color: #6e6669 !important;
	font-family: 'DM Sans', Arial, sans-serif !important;
}

.project-page .petal {
	position: fixed;
	top: -30px;
	z-index: 10;
	width: 9px;
	height: 14px;
	border-radius: 70% 30% 70% 30%;
	background: var(--pink);
	pointer-events: none;
	animation: project-petal-fall linear forwards;
}

@keyframes project-petal-fall {
	to {
		transform: translateY(110vh) rotate(360deg);
		opacity: 0;
	}
}

.project-page > section:not(:first-of-type) a {
	color: #111827 !important;
	font-family: 'DM Sans', Arial, sans-serif !important;
}

.project-page > section:not(:first-of-type) img {
	border: 0;
	border-radius: 8px !important;
	box-shadow: 0 20px 30px rgba(0, 0, 0, .3) !important;
}

.project-page footer {
	margin-top: 80px;
	background: #050505 !important;
}