:root {
	--bg: #f7f3ec;
	--surface: #fffdf9;
	--surface-strong: #ffffff;
	--text: #182330;
	--muted: #5f6771;
	--line: #d8d2c8;
	--primary: #0c5b5f;
	--primary-strong: #09484b;
	--accent: #b86a2f;
	--shadow-soft: 0 16px 40px rgba(12, 28, 41, 0.08);
	--shadow-card: 0 10px 24px rgba(19, 34, 46, 0.09);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Space Grotesk", sans-serif;
	color: var(--text);
	background: radial-gradient(circle at 80% 2%, #efe6d9 0%, rgba(239, 230, 217, 0) 45%), var(--bg);
	line-height: 1.65;
	position: relative;
	overflow-x: hidden;
}

.bg-glow {
	position: fixed;
	z-index: -1;
	width: 30rem;
	height: 30rem;
	border-radius: 50%;
	filter: blur(45px);
	pointer-events: none;
}

.bg-glow-top {
	top: -14rem;
	right: -10rem;
	background: rgba(21, 127, 134, 0.14);
}

.bg-glow-bottom {
	bottom: -14rem;
	left: -10rem;
	background: rgba(184, 106, 47, 0.16);
}

.container {
	width: min(1100px, 92%);
	margin: 0 auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	backdrop-filter: blur(10px);
	background: rgba(247, 243, 236, 0.88);
	border-bottom: 1px solid rgba(24, 35, 48, 0.08);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0;
}

.brand h1 {
	margin: 0;
	font-family: "Fraunces", serif;
	font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.brand p {
	margin: 0.2rem 0 0;
	color: var(--muted);
	font-size: 0.92rem;
}

nav {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

nav a {
	color: var(--text);
	text-decoration: none;
	font-weight: 600;
	padding-bottom: 0.22rem;
	border-bottom: 2px solid transparent;
	transition: color 0.25s ease, border-color 0.25s ease;
}

nav a:hover,
nav a.active {
	color: var(--primary);
	border-color: var(--accent);
}

main {
	padding: 2.4rem 0 3rem;
}

.hero {
	background: linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(250, 244, 236, 0.9));
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: clamp(1.85rem, 4.6vw, 3.8rem);
	box-shadow: var(--shadow-soft);
}

.hero h2 {
	margin-top: 0;
	max-width: 12ch;
}

.eyebrow {
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	font-size: 0.75rem;
	color: var(--accent);
	font-weight: 700;
}

h2 {
	margin: 0.5rem 0 0;
	font-family: "Fraunces", serif;
	font-size: clamp(1.75rem, 5vw, 3rem);
	line-height: 1.15;
}

.hero-copy {
	margin-top: 0.85rem;
	max-width: 65ch;
	color: var(--muted);
}

.hero-actions {
	margin-top: 1.35rem;
	display: flex;
	gap: 0.8rem;
	flex-wrap: wrap;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.15rem;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn-primary {
	background: var(--primary);
	color: #f9fffe;
	box-shadow: 0 8px 18px rgba(12, 91, 95, 0.26);
}

.btn-primary:hover {
	background: var(--primary-strong);
}

.btn-secondary {
	border: 1px solid var(--line);
	color: var(--text);
	background: var(--surface-strong);
}

.section {
	margin-top: clamp(2.6rem, 7vw, 5rem);
}

.section-header h2 {
	margin-top: 0.2rem;
	font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.projects-grid {
	margin-top: 1.5rem;
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
	background: var(--surface);
	border-radius: 16px;
	padding: 1.25rem;
	border: 1px solid var(--line);
	box-shadow: var(--shadow-card);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 30px rgba(18, 37, 50, 0.14);
}

.project-card h3 {
	margin-top: 0;
	margin-bottom: 0.45rem;
	font-size: 1.08rem;
}

.project-card p {
	margin: 0;
	color: var(--muted);
}

.project-card .tech {
	margin-top: 0.8rem;
	font-size: 0.9rem;
	color: #415060;
}

.project-card a {
	display: inline-block;
	margin-top: 0.9rem;
	color: var(--primary);
	text-underline-offset: 4px;
	font-weight: 600;
}

#about p {
	max-width: 75ch;
	color: var(--muted);
}

.contact-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 1rem 1.15rem;
	box-shadow: var(--shadow-card);
}

.contact-card p {
	margin: 0.4rem 0;
}

a {
	color: var(--primary);
}

footer {
	text-align: center;
	padding: 1.5rem 0 2rem;
	color: #4a5562;
}

.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 860px) {
	.projects-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 680px) {
	.header-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	nav {
		justify-content: flex-start;
	}

	.hero {
		border-radius: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}
}