@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 {
	margin: 0;
	color: var(--black);
	background: var(--white);
	font-family: 'DM Sans', Arial, sans-serif;
	line-height: 1.6;
	overflow-x: hidden;
}

h1, h2, h3, p {
	margin-top: 0;
}

h1, h2, h3 {
	font-family: 'Playfair Display', Georgia, serif;
}

h1 {
	max-width: 720px;
	margin-bottom: 24px;
	font-size: clamp(3.5rem, 8vw, 6.8rem);
	line-height: 1;
}

h1 span,
.eyebrow {
	color: var(--pink);
}

h2 {
	margin-bottom: 20px;
	font-size: clamp(2.4rem, 5vw, 4rem);
	line-height: 1.05;
}

h3 {
	margin-bottom: 12px;
	font-size: 1.6rem;
}

.container {
	width: min(1120px, calc(100% - 64px));
	margin: 0 auto;
}

.hero {
	position: relative;
	min-height: 720px;
	background: linear-gradient(110deg, var(--white) 0 62%, var(--soft-pink) 62%);
	overflow: hidden;
}

.hero::after {
	position: absolute;
	right: 5%;
	bottom: 8%;
	width: 130px;
	height: 130px;
	border: 1px solid var(--pink);
	border-radius: 50%;
	content: '';
	opacity: .35;
}

.nav {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 30px max(32px, calc((100% - 1120px) / 2));
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(10px);
}

.section {
	scroll-margin-top: 110px;
}

.logo {
	color: var(--black);
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-decoration: none;
	text-transform: uppercase;
}

.nav-links {
	display: flex;
	gap: 30px;
}

.nav-links a,
.footer a {
	color: var(--black);
	font-size: .9rem;
	font-weight: 700;
	text-decoration: none;
}

.nav-links a {
	position: relative;
}

.nav-links a::after {
	position: absolute;
	right: 0;
	bottom: -8px;
	left: 0;
	height: 2px;
	background: var(--pink);
	content: '';
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .25s ease;
}

.nav-links a:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

.hero-content {
	display: grid;
	grid-template-columns: 1.2fr .8fr;
	align-items: center;
	gap: 100px;
	padding: 115px 0 130px;
}

.eyebrow {
	margin-bottom: 16px;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.intro {
	max-width: 530px;
	margin-bottom: 34px;
	color: var(--grey);
	font-size: 1.1rem;
}

.button {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 14px 22px;
	border: 1px solid var(--black);
	color: var(--white);
	background: var(--black);
	font-size: .9rem;
	font-weight: 700;
	text-decoration: none;
	transition: background .25s ease, transform .25s ease;
}

.button:hover {
	background: var(--pink);
	border-color: var(--pink);
	transform: translateY(-3px);
}

.photo-frame {
	position: relative;
	display: flex;
	align-items: flex-end;
	padding: 14px 14px 0;
	background: var(--white);
	box-shadow: 14px 14px 0 var(--pink);
	transform: rotate(2deg);
	overflow: hidden;
}

.photo-frame::before {
	position: absolute;
	top: -18px;
	right: 30px;
	width: 70px;
	height: 35px;
	border-left: 1px solid var(--pink);
	content: '';
	transform: rotate(35deg);
}

.photo-frame img {
	display: block;
	width: 100%;
	height: 390px;
	background: var(--soft-pink);
	object-fit: cover;
	object-position: center bottom;
	transform: scale(1.08);
	margin-top: 0;
}

.photo-frame p {
	margin: 12px 0 0;
	color: var(--grey);
	font-size: .75rem;
	text-align: center;
}

.section {
	padding: 120px 0;
}

.text-width {
	max-width: 680px;
	color: var(--grey);
	font-size: 1.1rem;
}

.projects-section {
	background: var(--soft-pink);
}

.project-slideshow {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	max-width: 1240px;
	margin: 78px auto 0;
	padding: 10px 0 0;
}

.projects-section > .container > .button {
	display: flex;
	width: fit-content;
	margin: 32px auto 0;
}

.project-track {
	display: flex;
	gap: 50px;
	width: 100%;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	padding: 10px 0 18px;
	scrollbar-width: thin;
	scrollbar-color: rgba(217, 103, 138, .5) transparent;
}

.project-track::-webkit-scrollbar {
	height: 6px;
}

.project-track::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: rgba(217, 103, 138, .45);
}

.project-slide {
	flex: 0 0 520px;
	height: 620px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--white);
	scroll-snap-align: start;
	transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
	opacity: .9;
	transform: none;
}

.project-slide.is-active {
	opacity: 1;
	box-shadow: 8px 8px 0 var(--pink);
}

.slider-btn {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--pink);
	border-radius: 50%;
	background: rgba(255, 255, 255, .9);
	color: var(--pink);
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.slider-btn svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.5;
}

.slider-btn:hover {
	background: var(--pink);
	color: var(--white);
	transform: translateY(-1px);
}

.project-slide a {
	display: flex;
	flex: 1;
	flex-direction: column;
	color: var(--black);
	text-decoration: none;
}

.project-number {
	padding: 22px 24px 0;
	margin-bottom: 30px;
	color: var(--pink);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .1em;
}

.project-image {
	display: block;
	width: 100%;
	height: 430px;
	object-fit: cover;
	object-position: center;
	filter: grayscale(25%);
	transition: filter .25s ease, transform .25s ease;
}

.project-slide:hover .project-image {
	filter: grayscale(0);
	transform: scale(1.04);
}

.project-slide h3,
.project-slide p,
.project-slide a,
.project-soon {
	margin-right: 24px;
	margin-left: 24px;
}

.project-slide p {
	margin-bottom: 24px;
	color: var(--grey);
	font-size: 1rem;
}

.project-slide a:hover {
	color: var(--pink);
}

.project-placeholder {
	display: grid;
	place-items: center;
	height: 150px;
	color: var(--pink);
	background: var(--soft-pink);
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 3rem;
}


.project-soon {
	margin-top: auto;
	margin-bottom: 24px;
	color: var(--grey);
	font-size: .9rem;
	font-style: italic;
}

.cv-section {
	background: var(--black);
	color: var(--white);
}

.cv-section .eyebrow {
	color: var(--pink);
}

.cv-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
}

.cv-content p:not(.eyebrow) {
	max-width: 550px;
	margin-bottom: 0;
	color: #cfc4c8;
}

.button-light {
	color: var(--black);
	background: var(--white);
}

.button-light:hover {
	color: var(--white);
	background: var(--pink);
	border-color: var(--pink);
}

.footer {
	padding: 80px 0 24px;
	background: var(--white);
}

.footer-content {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 30px;
}

.footer-content h2 {
	margin-bottom: 0;
}

.footer a {
	color: var(--pink);
}

.contact-links {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.copyright {
	margin: 70px auto 0;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	color: var(--grey);
	font-size: .8rem;
}

.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

.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: fall linear forwards;
}

@keyframes fall {
	to {
		transform: translateY(110vh) rotate(360deg);
		opacity: 0;
	}
}

@media (max-width: 850px) {
	.hero {
		background: var(--white);
	}

	.hero-content {
		grid-template-columns: 1fr;
		gap: 65px;
		padding: 140px 0 100px;
	}

	.photo-frame {
		width: min(100%, 380px);
		justify-self: center;
	}

	.project-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.container {
		width: min(100% - 36px, 1120px);
	}

	.nav {
		align-items: flex-start;
		flex-direction: column;
		gap: 18px;
		padding: 20px 18px;
	}

	.nav-links {
		flex-wrap: wrap;
		gap: 10px 20px;
	}

	.section {
		padding: 80px 0;
		scroll-margin-top: 150px;
	}

	.project-grid {
		grid-template-columns: 1fr;
	}

	.footer-content {
		align-items: flex-start;
		flex-direction: column;
	}

	.contact-links {
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}