:root {
	--bg: #f6f6f6;
	--surface: #ffffff;
	--text: #1b1b1b;
	--muted: #7a7a7a;
	--line: #e6e6e6;
	--accent: #1b1b1b;
	--shadow: 0 12px 30px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
	background: var(--bg);
	color: var(--text);
	font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	font-size: 18px;
	line-height: 1.65;
}

.wrap {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0px 24px;
}

/* Typography */
h1 {
	margin-top: 0;
	margin: 0;
	font-size: clamp(44px, 6vw, 78px);
	font-weight: 850;
	letter-spacing: -1.5px;
	text-transform: uppercase;
	text-align: center;
}

h2 {
	margin: 0 0 14px 0;
	font-size: 22px;
	font-weight: 750;
	letter-spacing: -0.2px;
}

h3 {
	margin: 0 0 6px 0;
	font-size: 18px;
	font-weight: 750;
	letter-spacing: -0.1px;
}

.muted {
	color: var(--muted);
	font-style: italic;
}

header.wrap {
	padding-top: 64px;
	padding-bottom: 24px;
	text-align: center;
}

header.wrap p {
	margin: 0px auto 0 auto;
	max-width: 760px;
}

/* Nav */
.nav {
	display: flex;
	justify-content: center;
	gap: 22px;
	margin-top: 22px;
	flex-wrap: wrap;
}

.nav a {
	color: var(--text);
	text-decoration: none;
	font-weight: 800;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	font-size: 13px;
	padding: 8px 6px;
	border-bottom: 2px solid transparent;
}

.nav a:hover {
	border-bottom-color: var(--text);
}

/* Sections */
.card {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	margin: 56px 0;
	box-shadow: none;
}

.card > h2 {
	text-align: center;
	margin-bottom: 26px;
}

/* Project grid */
.proj-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 44px 36px;
	margin-top: 18px;
}

.proj-card {
	display: block;
	text-decoration: none;
	color: var(--text);
	text-align: center;
}

.proj-media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.proj-media img,
.proj-media video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.proj-media video {
	opacity: 0;
	transition: opacity 140ms ease;
}

.proj-card:hover .proj-media video {
	opacity: 1;
}

.proj-card:hover .proj-media img {
	transform: scale(1.02);
}

.proj-media img {
	transition: transform 200ms ease;
}

.proj-title {
	margin-top: 16px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}

.proj-tags {
	margin-top: 6px;
	color: var(--muted);
	font-style: italic;
	font-size: 14px;
}

/* Generic grid/tiles (if you still use these elsewhere) */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
}

.tile {
	border: 1px solid var(--line);
	background: var(--surface);
	box-shadow: var(--shadow);
	padding: 16px;
}

/* Buttons */
button {
	background: var(--text);
	color: #fff;
	border: 1px solid var(--text);
	border-radius: 10px;
	padding: 10px 12px;
	cursor: pointer;
	font-weight: 700;
}

button:hover {
	opacity: 0.9;
}

/* Code blocks */
.code {
	margin-top: 10px;
	padding: 12px;
	border-radius: 10px;
	background: #fafafa;
	border: 1px solid var(--line);
	overflow: auto;
	min-height: 44px;
	color: #111;
}

/* Guestbook */
#guestbook {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

.gb-form {
	display: grid;
	gap: 12px;
	margin-top: 10px;
}

.gb-form input,
.gb-form textarea {
	width: 100%;
	padding: 12px;
	border-radius: 10px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--text);
	box-shadow: var(--shadow);
	font: inherit;
}

.gb-form textarea {
	min-height: 110px;
	resize: vertical;
}

.gb-list {
	list-style: none;
	padding: 0;
	margin: 18px 0 0 0;
	display: grid;
	gap: 12px;
}

.gb-list li {
	border: 1px solid var(--line);
	background: var(--surface);
	box-shadow: var(--shadow);
	padding: 14px;
}

.gb-meta {
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 8px;
}

/* Footer */
footer.wrap {
	padding-top: 10px;
	padding-bottom: 56px;
	text-align: center;
}

.proj-media {
	border-radius: 0; /* Manuel vibe: sharp edges */
}

.proj-media img {
	image-rendering: auto;
}

.proj-media {
	box-shadow: 0 8px 20px rgba(0,0,0,0.08);
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.proj-card:hover .proj-media {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

/* Crown media grid: 2x2 */
.crown-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
	margin-top: 18px;
}

/* Make the tiles feel bigger and cleaner */
.crown-grid .tile {
	padding: 12px;            /* optional, if your tile already has padding remove this */
}

/* Ensure images fill the tile */
.crown-grid img {
	width: 100%;
	height: auto;
	display: block;
}

/* Portfolio reel / embeds */
#reel {
	text-align: center;
}

#reel .muted {
	max-width: 760px;
	margin: 0 auto;
}

.video-embed {
	position: relative;
	width: 100%;
	max-width: 1040px;            /* bigger + matches your wrap */
	margin: 18px auto 0 auto;     /* centers it */
	aspect-ratio: 16 / 9;         /* modern + cleaner than padding hack */
	border: 1px solid var(--line);
	background: var(--surface);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.video-embed iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.video-wrapper {
	max-width: 900px;
	margin: 0 auto;
}

.video-wrapper video {
	width: 100%;
	height: auto;
	border-radius: 12px;
	display: block;
}

.video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}

.video-grid video {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

.bio-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: start;
}

.bio-left {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.bio-right {
	display: block;
}

.bio-right .tile {
	height: 100%;
}

.bio-layout {
	position: relative;
}

.bio-doodle {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(50%);

	width: 500px;
	opacity: 0.2; 
	pointer-events: none;
}

.phone-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.phone-grid .tile img {
	width: 100%;
	aspect-ratio: 9 / 16;
	object-fit: cover;
	border-radius: 10px;
}

@media (max-width: 800px) {
	.phone-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

.phone-grid .tile img {
	box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

@media (max-width: 900px) {
	.bio-layout {
		display: flex;
		flex-direction: column;
		gap: 24px;
	}

	.bio-left,
	.bio-right {
		width: 100%;
	}

	.bio-doodle {
		display: block;
		max-width: 100%;
		height: auto;
		margin: 0 auto;
	}

	.tile {
		width: 100%;
	}

	.wrap {
		padding-left: 16px;
		padding-right: 16px;
	}
}

@media (max-width: 900px) {
	.bio-layout {
		display: flex;
		flex-direction: column;
		gap: 24px;
	}

	.bio-left,
	.bio-right {
		width: 100%;
	}

	.bio-doodle {
		order: 99;
		display: block;
		width: min(280px, 80%);
		height: auto;
		margin: -20px auto 0;
		opacity: 0.10;
		pointer-events: none;
	}
}

.art-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}

.art-grid img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 12px;
	background: #111;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.art-grid img:hover {
	transform: scale(1.02);
	box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999;
}

.lightbox img {
	max-width: 90%;
	max-height: 90%;
	border-radius: 12px;
}

.lightbox.show {
	display: flex;
	cursor: zoom-out;
}

.jam-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.jam-entry {
	display: grid;
	grid-template-columns: 96px 1fr auto;
	gap: 16px;
	align-items: center;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	background: #fff;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.jam-entry:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0,0,0,0.08);
	border-color: #d8d8d8;
}

.jam-thumb {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 10px;
	display: block;
	background: #ddd;
}

.jam-meta h2 {
	margin: 0 0 6px 0;
	font-size: 1.25rem;
}

.jam-meta p {
	margin: 0;
}

.jam-tag {
	display: inline-block;
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	background: #f1f1f1;
	white-space: nowrap;
}

@media (max-width: 700px) {
	.jam-entry {
		grid-template-columns: 72px 1fr;
	}

	.jam-thumb {
		width: 72px;
		height: 72px;
	}

	.jam-tag {
		grid-column: 1 / -1;
		justify-self: start;
	}
}