/* Code By London Davis */

/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}

body {
	line-height: 1;
}

ol, ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
	content: "";
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* =========================
   ROOT VARIABLES
========================= */
:root {
	--black: #000000;
	--green: #00c911;
	--white: #ffffff;

	--bg: #f8f7f3;
	--surface: #ffffff;
	--surface-soft: #f0ece4;
	--text: #333132;
	--text-strong: #000000;
	--accent: #9ccf6b;
	--accent-soft: #cfc4b1;
	--border: rgba(51, 49, 50, 0.14);
	--shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
	--radius: 1.25rem;
	--radius-small: 0.75rem;
	--max-width: 1160px;
	--transition: 220ms ease;
	--font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-display: "Cinzel", "Times New Roman", serif;
}

/* =========================
   BASE
========================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	line-height: 1.6;
}

img,
video {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
textarea,
select {
	font: inherit;
}

button {
	cursor: pointer;
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
}

/* =========================
   UTILITIES
========================= */
.container {
	width: min(100% - 3rem, var(--max-width));
	margin-inline: auto;
}

.eyebrow {
	margin-bottom: 1rem;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-strong);
}

.section-heading {
	max-width: 42rem;
	margin-bottom: 3rem;
}

.section-heading h2,
.hero-title,
.modal-panel h2 {
	margin: 0;
	line-height: 1.1;
	padding-bottom: 0.5em;
	color: var(--text-strong);
}

.section-heading h2 {
	font-size: clamp(2rem, 3vw, 3.1rem);
	margin-bottom: 1rem;
}

.section-intro,
.hero-text,
.about-copy p,
#modal-description,
.modal-details p,
.modal-details li {
	font-size: 1rem;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	min-width: 10.75rem;
	padding: 0.85rem 1.25rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
	transition:
		transform var(--transition),
		background-color var(--transition),
		border-color var(--transition),
		color var(--transition);
}

.button:hover,
.button:focus-visible {
	transform: translateY(-2px);
}

.button-primary {
	background: var(--text-strong);
	color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
	background: var(--accent);
	color: var(--text-strong);
}

.button-secondary {
	background: transparent;
	border-color: var(--border);
	color: var(--text-strong);
}

.button-secondary:hover,
.button-secondary:focus-visible {
	background: var(--surface);
	border-color: var(--text-strong);
}

/* =========================
   SKIP LINK
========================= */
.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 1000;
	padding: 0.8rem 1rem;
	background: var(--text-strong);
	color: var(--white);
	border-radius: 0.5rem;
	transition: top var(--transition);
}

.skip-link:focus {
	top: 1rem;
}

/* =========================
   HEADER
========================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(248, 247, 243, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(51, 49, 50, 0.06);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding-block: 1.2rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	flex-shrink: 0;
}

.brand h1,
.footer-logo-text {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 2vw, 2rem);
	font-weight: 700;
	letter-spacing: 0.03em;
	color: var(--text-strong);
}

.brand-mark {
	display: grid;
	place-items: center;
	width: 2.35rem;
	aspect-ratio: 1;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--surface-soft);
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--text-strong);
}

.site-nav {
	display: flex;
	justify-content: flex-end;
}

.site-nav ul {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	position: relative;
	display: inline-block;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text);
}

.site-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -0.35rem;
	width: 100%;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--transition);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
	transform: scaleX(1);
}

/* =========================
   HERO
========================= */
.hero {
	padding: 7rem 0 6rem;
}

.hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
	grid-template-areas:
		"content portrait"
		"actions portrait";
	gap: 2rem 3rem;
	align-items: center;
}

.hero-content {
	grid-area: content;
	max-width: 38rem;
}

.hero-title {
	max-width: 11ch;
	margin-bottom: 1rem;
	font-size: clamp(2.8rem, 5vw, 5rem);
}

.hero-text {
	max-width: 42ch;
	margin-bottom: 0;
	color: rgba(51, 49, 50, 0.85);
}

.hero-actions {
	grid-area: actions;
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: nowrap;
}

.hero-portrait {
	grid-area: portrait;
	justify-self: end;
	width: min(100%, 28rem);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface-soft);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
}

.hero-portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 4 / 5;
}

/* =========================
   FEATURED WORK
========================= */
.featured-work {
	padding: 6rem 0 7rem;
}

.featured-work-inner {
	padding-top: 2rem;
	border-top: 1px solid var(--border);
}

.project-grid {
	display: grid;
	gap: 2rem;
}

.project-card {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover,
.project-card:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.11);
}

.project-visual {
	margin: 0;
	min-height: 100%;
	background: var(--surface-soft);
}

.project-visual video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.project-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2.5rem;
}

.project-label,
.modal-label {
	margin-bottom: 0.75rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-strong);
}

.project-content h3 {
	margin-bottom: 1rem;
	font-size: clamp(1.55rem, 2vw, 2rem);
	line-height: 1.15;
	color: var(--text-strong);
}

.project-content p {
	margin-bottom: 1rem;
}

.project-role {
	padding-top: 0.5rem;
	border-top: 1px solid var(--border);
	color: rgba(51, 49, 50, 0.9);
}

.project-role span {
	font-weight: 700;
	color: var(--text-strong);
}

.project-trigger {
	align-self: flex-start;
	margin-top: 1rem;
	padding: 0;
	border: 0;
	background: transparent;
	font-weight: 700;
	color: var(--text-strong);
	position: relative;
}

.project-trigger::after {
	content: "";
	display: block;
	width: 100%;
	height: 2px;
	margin-top: 0.25rem;
	background: var(--accent);
	transition: transform var(--transition);
	transform-origin: left;
}

.project-trigger:hover::after,
.project-trigger:focus-visible::after {
	transform: scaleX(0.65);
}

/* =========================
   ABOUT
========================= */
.about {
	padding: 7rem 0;
}

.about-inner {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 3rem;
	align-items: start;
	padding-top: 2rem;
	border-top: 1px solid var(--border);
}

.about-copy {
	max-width: 42rem;
}

.about-copy p {
	margin-bottom: 1.25rem;
}

.resume-button {
	margin-top: 0.5rem;
}

/* =========================
   FOOTER
========================= */
.site-footer {
	min-height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 1rem;
	background: var(--text-strong);
	color: var(--bg);
	text-align: center;
}

.site-footer p {
	margin: 0;
	font-size: 1rem;
	font-weight: 500;
	color: var(--bg);
}

/* =========================
   MODAL
========================= */
.modal {
	position: fixed;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 1.5rem;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--transition), visibility var(--transition);
	z-index: 100;
}

.modal.is-open {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.modal-panel {
	position: relative;
	z-index: 1;
	width: min(100%, 48rem);
	padding: 2rem;
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--border);
	border-radius: 50%;
	background: var(--white);
	color: var(--text-strong);
	font-size: 1.6rem;
	line-height: 1;
	transition: background-color var(--transition), transform var(--transition);
}

.modal-close:hover,
.modal-close:focus-visible {
	background: var(--surface-soft);
	transform: scale(1.04);
}

.modal-panel h2 {
	margin-bottom: 1rem;
	padding-right: 3rem;
	font-size: clamp(1.9rem, 3vw, 2.8rem);
}

#modal-description {
	max-width: 46ch;
	margin-bottom: 2rem;
}

.modal-details {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: 2rem;
	margin-bottom: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
}

.modal-details h3 {
	margin-bottom: 0.75rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--text-strong);
}

.modal-details ul {
	padding-left: 1.2rem;
	list-style: disc;
}

.modal-link {
	align-self: flex-start;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px) {
	.container {
		width: min(100% - 2.5rem, var(--max-width));
	}
}

@media (max-width: 1000px) {
	.hero {
		padding: 6rem 0 5.5rem;
	}

	.hero-inner {
		grid-template-columns: 1fr;
		grid-template-areas:
			"content"
			"portrait"
			"actions";
		gap: 2rem;
		justify-items: center;
		text-align: center;
	}

	.hero-content {
		max-width: 44rem;
	}

	.hero-title {
		max-width: 12ch;
		margin-inline: auto;
	}

	.hero-text {
		max-width: 48ch;
		margin-inline: auto;
	}

	.hero-actions {
		justify-content: center;
	}

	.hero-portrait {
		justify-self: center;
		width: min(100%, 23rem);
	}

	.project-card,
	.about-inner,
	.modal-details {
		grid-template-columns: 1fr;
	}

	.project-card,
	.about-inner,
	.modal-details {
		gap: 1.5rem;
	}

	.featured-work {
		padding: 5rem 0 5.5rem;
	}

	.about {
		padding: 5.5rem 0;
	}

	.about-inner,
	.featured-work-inner {
		padding-top: 1.5rem;
	}

	.about .section-heading {
		max-width: 100%;
		margin-bottom: 0;
	}

	.about .section-heading h2 {
		margin-bottom: 0;
		padding-bottom: 0;
	}

	.about .eyebrow {
		margin-bottom: 0.5rem;
	}

	.project-content {
		padding: 2rem;
	}
}

@media (max-width: 720px) {
	.container {
		width: min(100% - 2rem, var(--max-width));
	}

	.header-inner {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 1rem;
		padding-block: 1rem;
		text-align: center;
	}

	.brand {
		justify-content: center;
	}

	.site-nav {
		width: 100%;
		justify-content: center;
	}

	.site-nav ul {
		justify-content: center;
		gap: 1.5rem;
		flex-wrap: wrap;
	}

	.hero {
		padding: 4.5rem 0 4rem;
	}

	.hero-inner {
		gap: 1.5rem;
	}

	.hero-content {
		max-width: 100%;
	}

	.hero-title {
		max-width: 12ch;
	}

	.hero-actions {
		width: auto;
		justify-content: center;
		align-items: center;
		flex-wrap: nowrap;
		gap: 1rem;
	}

	.hero-actions .button {
		width: auto;
		min-width: 10.75rem;
	}

	.hero-portrait {
		width: min(100%, 18rem);
	}

	.featured-work {
		padding: 4rem 0 4.5rem;
	}

	.section-heading {
		margin-bottom: 2rem;
	}

	.project-content {
		padding: 1.5rem;
	}

	.about {
		padding: 4.5rem 0;
	}

	.about-inner {
		gap: 1rem;
	}

	.resume-button {
		width: auto;
		min-width: 10.75rem;
	}

	.site-footer {
		min-height: 180px;
		padding: 3rem 1rem;
	}

	.modal {
		padding: 1rem;
	}

	.modal-panel {
		padding: 1.5rem;
	}

	.modal-panel h2 {
		padding-right: 2.5rem;
	}
}

@media (max-width: 520px) {
	.hero-actions {
		gap: 0.75rem;
	}

	.button {
		min-width: 9.75rem;
		padding-inline: 1rem;
		font-size: 0.95rem;
	}
}

@media (max-width: 420px) {
	.container {
		width: min(100% - 1.5rem, var(--max-width));
	}

	.brand h1 {
		font-size: 1.25rem;
	}

	.hero-title {
		font-size: clamp(2.3rem, 16vw, 3rem);
	}

	.hero-actions {
		gap: 0.6rem;
	}

	.button {
		min-width: 8.9rem;
		padding-inline: 0.8rem;
		font-size: 0.88rem;
	}

	.project-content {
		padding: 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}