/* ================================================
   RESET & BASE
================================================ */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--bg: #0e0e0f;
	--text: rgba(218, 214, 205, 0.82);
	--text-dim: rgba(218, 214, 205, 0.35);
	--text-bright: rgba(228, 224, 215, 0.92);
	--font: "Cormorant Garamond", Georgia, serif;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font);
	background: var(--bg);
	color: var(--text);
	overflow-x: hidden;
}

/* Grain */
.grain {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 100;
	opacity: 0.03;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 180px 180px;
}

/* ================================================
   HERO
================================================ */
.hero {
	position: relative;
	width: 100%;
	height: 100vh;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 80px;
}

.hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 11, 0.38);
}

.hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 28px 48px;
	/*background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 100%);*/
}

.hero-name {
	font-family: var(--font);
	font-weight: 300;
	font-size: clamp(1.4rem, 3.8vw, 2.5rem);
	letter-spacing: 0.45em;
	text-transform: uppercase;
	color: rgba(242, 238, 230, 1);
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.hero-fade-bottom {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 220px;
	background: linear-gradient(to bottom, transparent, var(--bg));
	z-index: 2;
}

/* ================================================
   TAGLINE
================================================ */
.tagline-section {
	padding: 100px 20px 110px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.tagline-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
}

.tagline {
	font-family: var(--font);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(1.32rem, 2.9vw, 1.86rem);
	letter-spacing: 0.08em;
	color: var(--text-bright);
}

.about-btn {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text-bright);
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.4s ease;
	width: 44px;
	height: 44px;
}
.about-btn:hover {
	color: rgba(238, 234, 226, 1);
}
.about-diamond {
	width: 42px;
	height: 42px;
}

/* ================================================
   PROJECTS
================================================ */
.projects-section {
	padding: 80px 20px 100px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.projects-inner {
	width: min(640px, 88vw);
}

.section-label {
	font-family: var(--font);
	font-style: italic;
	font-weight: 300;
	font-size: 1.01rem;
	letter-spacing: 0.55em;
	color: var(--text-dim);
	text-transform: lowercase;
	margin-bottom: 28px;
}

.project-list {
	display: flex;
	flex-direction: column;
}

.project-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 32px 0;
	border-top: 1px solid rgba(218, 214, 205, 0.08);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.3s ease;
}
.project-item:last-child {
	border-bottom: 1px solid rgba(218, 214, 205, 0.08);
}
.project-item:hover {
	border-color: rgba(218, 214, 205, 0.2);
}

.project-text {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.project-name {
	font-family: var(--font);
	font-weight: 400;
	font-size: clamp(1.2rem, 2.6vw, 1.94rem);
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--text-bright);
	transition: color 0.3s ease;
}
.project-item:hover .project-name {
	color: rgba(235, 231, 222, 0.98);
}

.project-desc {
	font-family: var(--font);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(0.98rem, 1.56vw, 1.14rem);
	letter-spacing: 0.04em;
	color: var(--text-dim);
	line-height: 1.6;
}

.project-arrow {
	font-size: 1.1rem;
	color: rgba(218, 214, 205, 0.2);
	flex-shrink: 0;
	transition:
		color 0.3s ease,
		transform 0.3s ease;
}
.project-item:hover .project-arrow {
	color: rgba(218, 214, 205, 0.55);
	transform: translateX(5px);
}

/* ================================================
   SEPARATORS
================================================ */
.separator {
	position: relative;
	width: 100%;
	height: 55vw;
	max-height: 680px;
	min-height: 320px;
	overflow: hidden;
}

.separator-media {
	position: absolute;
	top: -20%;
	left: 0;
	width: 100%;
	height: 140%;
	object-fit: cover;
	object-position: center;
	will-change: transform;
}

.separator-fade-top {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 35%;
	background: linear-gradient(to bottom, var(--bg), transparent);
	z-index: 2;
	pointer-events: none;
}

.separator-fade-bottom {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 35%;
	background: linear-gradient(to top, var(--bg), transparent);
	z-index: 2;
	pointer-events: none;
}

/* ================================================
   CONTACT
================================================ */
.contact-section {
	padding: 100px 20px 130px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.contact-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.contact-email {
	font-family: var(--font);
	font-weight: 300;
	font-size: clamp(1.08rem, 2.16vw, 1.32rem);
	letter-spacing: 0.2em;
	color: var(--text-dim);
	text-decoration: none;
	border-bottom: 1px solid rgba(218, 214, 205, 0.12);
	padding-bottom: 3px;
	transition:
		color 0.3s ease,
		border-color 0.3s ease;
}
.contact-email:hover {
	color: var(--text-bright);
	border-color: rgba(218, 214, 205, 0.35);
}

/* ================================================
   MODAL
================================================ */
.modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(8, 8, 9, 0.85);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s ease;
}
.modal-overlay.open {
	opacity: 1;
	pointer-events: all;
}

.modal-box {
	position: relative;
	width: min(580px, 88vw);
	padding: 56px 52px 52px;
	border: 1px solid rgba(218, 214, 205, 0.1);
	transform: translateY(18px);
	transition: transform 0.5s ease;
}
.modal-overlay.open .modal-box {
	transform: translateY(0);
}

.modal-close {
	position: absolute;
	top: 22px;
	right: 26px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.4rem;
	color: rgba(218, 214, 205, 0.22);
	line-height: 1;
	transition: color 0.3s ease;
}
.modal-close:hover {
	color: rgba(218, 214, 205, 0.6);
}

.modal-content {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.modal-content p {
	font-family: var(--font);
	font-weight: 300;
	font-size: clamp(1rem, 1.6vw, 1.2rem);
	line-height: 1.9;
	letter-spacing: 0.03em;
	color: var(--text);
}

/* ================================================
   SCROLL REVEAL
================================================ */
.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition:
		opacity 1.1s ease,
		transform 1.1s ease;
}
.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ================================================
   RESPONSIVE — MOBILE
================================================ */
@media (max-width: 768px) {
	.hero-name {
		font-size: clamp(1.1rem, 6vw, 1.8rem);
		letter-spacing: 0.25em;
	}

	.hero {
		padding-bottom: 60px;
		align-items: flex-end;
	}

	.hero-video {
		height: 100%;
		top: 0;
		object-position: center top;
	}

	.hero-fade-bottom {
		height: 180px;
	}

	#separator-birdhouse .separator-media {
		background-position: 85% center !important;
	}

	.tagline {
		font-size: clamp(1.15rem, 4.5vw, 1.4rem);
	}

	.project-name {
		font-size: clamp(1.05rem, 5vw, 1.4rem);
		letter-spacing: 0.18em;
	}

	.project-desc {
		font-size: clamp(0.88rem, 3.5vw, 1rem);
	}

	.projects-section {
		padding: 60px 24px 80px;
	}

	.separator {
		height: 75vw;
		min-height: 260px;
	}

	.modal-box {
		padding: 44px 28px 38px;
	}

	.modal-content p {
		font-size: clamp(0.95rem, 3.8vw, 1.1rem);
	}

	.contact-section {
		padding: 80px 24px 100px;
	}

	.tagline-section {
		padding: 80px 24px 90px;
	}
}

@media (max-width: 480px) {
	.hero-name {
		letter-spacing: 0.18em;
		font-size: clamp(1rem, 7vw, 1.4rem);
	}

	.project-item {
		padding: 24px 0;
	}

	.project-name {
		letter-spacing: 0.12em;
	}
}
