@charset "utf-8";

/* ============================================================
   David Glazier   Retro Arcade Portfolio
   Titles: moon get | Body: Fredoka (similar rounded) | Accents: Pixel Emulator
   ============================================================ */

@font-face {
	font-family: 'moon get';
	src: url('../fonts/moon_get-Heavy.otf') format('opentype'),
	     url('../fonts/moon_get-Heavy.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Pixel Emulator';
	src: url('../fonts/PixelEmulator.otf') format('opentype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg: #30070e;
	--bg-deep: #1e0308;
	--band: #8e1b0c;
	--band-dark: #6f1408;
	--plum: #2e0c31;
	--plum-deep: #1f0721;
	--card: #241014;
	--card-edge: #47202a;

	--yellow: #f2c118;
	--orange: #ff9831;
	--pink: #ff3eb5;
	--red: #ed3833;
	--blue: #6aa5ff;
	--cream: #ffe9c8;
	--muted: #d8a887;

	--title: 'moon get', 'Arial Rounded MT Bold', sans-serif;
	--body: 'Fredoka', 'Comfortaa', 'Arial Rounded MT Bold', 'Segoe UI', sans-serif;
	--pixel: 'Pixel Emulator', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }

body {
	font-family: var(--body);
	background: var(--bg);
	color: var(--cream);
	min-height: 100vh;
	overflow-x: hidden;
	line-height: 1.55;
}

img, video { max-width: 100%; display: block; }

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

/* letter colour cycle applied by JS to .rainbow headings */
.rl-1 { color: var(--yellow); }
.rl-2 { color: var(--orange); }
.rl-3 { color: var(--pink); }
.rl-4 { color: var(--red); }

::selection { background: var(--pink); color: #fff; }

.wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 40px);
}

h1, h2, h3, .font-title {
	font-family: var(--title);
	font-weight: normal;
	letter-spacing: 0.04em;
	line-height: 1.15;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px clamp(14px, 3vw, 32px);
	background: linear-gradient(180deg, rgba(20,3,7,0.92) 0%, rgba(20,3,7,0.65) 70%, rgba(20,3,7,0) 100%);
	transition: background 0.3s ease;
}

.site-header.solid {
	background: rgba(20, 3, 7, 0.96);
	box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.site-logo img {
	height: clamp(44px, 6vw, 62px);
	width: auto;
}

.main-nav {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2vw, 28px);
}

.main-nav a {
	font-family: var(--title);
	font-size: 15px;
	letter-spacing: 0.08em;
	color: var(--cream);
	text-decoration: none;
	text-transform: lowercase;
	transition: color 0.15s ease;
}

.main-nav a:hover, .main-nav a.active { color: var(--yellow); }

/* My Work dropdown */
.nav-dropdown {
	position: relative;
}

.nav-dropdown-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.nav-dropdown-trigger::after {
	content: '';
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid currentColor;
	opacity: 0.75;
	margin-top: 2px;
}

.nav-dropdown-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%) translateY(6px);
	min-width: 240px;
	padding: 10px 0;
	background: rgba(20, 3, 7, 0.97);
	border: 2px solid var(--card-edge);
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(0,0,0,0.55);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	z-index: 120;
}

/* Invisible hit bridge across the gap between trigger and menu */
.nav-dropdown-menu::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: -14px;
	height: 14px;
}

.nav-dropdown-menu a {
	display: block;
	padding: 10px 16px;
	font-size: 14px;
	white-space: nowrap;
	text-transform: none;
	letter-spacing: 0.04em;
}

.nav-dropdown-menu a:hover {
	background: rgba(242, 193, 24, 0.12);
	color: var(--yellow);
}

.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.nav-overlay-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.nav-overlay-sub {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}

.nav-overlay-sub a {
	font-size: clamp(15px, 3.6vw, 22px) !important;
	color: var(--muted) !important;
}

.nav-overlay-sub a:hover { color: var(--yellow) !important; }

.menu-btn {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	width: 46px; height: 40px;
	position: relative;
}

.menu-btn span {
	position: absolute;
	left: 8px; right: 8px;
	height: 4px;
	border-radius: 2px;
	background: var(--yellow);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-btn span:nth-child(1) { top: 8px; }
.menu-btn span:nth-child(2) { top: 18px; background: var(--orange); }
.menu-btn span:nth-child(3) { top: 28px; background: var(--pink); }

.nav-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(30, 3, 8, 0.97);
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(18px, 4vh, 34px);
}

.nav-overlay.open { display: flex; }

.nav-overlay a {
	font-family: var(--title);
	font-size: clamp(22px, 6vw, 40px);
	color: var(--cream);
	text-decoration: none;
}

.nav-overlay a:hover { color: var(--yellow); }

.nav-close {
	position: absolute;
	top: 18px; right: 22px;
	background: none;
	border: none;
	color: var(--pink);
	font-family: var(--title);
	font-size: 42px;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 860px) {
	.main-nav { display: none; }
	.menu-btn { display: block; }
}

/* ============================================================
   HERO   card carousel
   ============================================================ */
.hero {
	position: relative;
	height: max(620px, 92vh);
	overflow: hidden;
	background:
		radial-gradient(120% 90% at 50% 10%, #56231b 0%, #2a0a10 55%, #14030a 100%);
	border-bottom: 6px solid var(--band-dark);
}

.hero::after { /* vignette so cards read against the background */
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(90% 70% at 50% 55%, rgba(10,2,6,0) 35%, rgba(10,2,6,0.55) 100%),
		linear-gradient(180deg, rgba(10,2,6,0.45) 0%, rgba(10,2,6,0) 25%, rgba(10,2,6,0) 70%, rgba(10,2,6,0.6) 100%);
}

.carousel-zone {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	perspective: 1400px;
}

.carousel {
	position: relative;
	width: 100%;
	height: min(520px, 72vh);
	transform-style: preserve-3d;
}

.carousel-item {
	position: absolute;
	top: 50%; left: 50%;
	width: min(340px, 82vw);
	margin-left: calc(min(340px, 82vw) / -2);
	transform: translateY(-50%);
	transition: all 0.7s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.pcard {
	background: linear-gradient(165deg, rgba(38,14,20,0.95) 0%, rgba(24,7,12,0.97) 100%);
	border: 2px solid var(--card-edge);
	border-radius: 14px;
	padding: 16px 16px 20px;
	box-shadow: 0 22px 60px rgba(0,0,0,0.65);
}

.carousel-item.is-active .pcard {
	border-color: var(--yellow);
	box-shadow: 0 0 0 1px rgba(242,193,24,0.35), 0 26px 70px rgba(0,0,0,0.75);
}

.pcard-image {
	position: relative;
	aspect-ratio: 16 / 10;
	border-radius: 8px;
	overflow: hidden;
	background: #120409;
	margin-bottom: 14px;
}

.pcard-image img {
	width: 100%; height: 100%;
	object-fit: cover;
}

.pcard-image.pixelated img { image-rendering: pixelated; }

.pcard h3 {
	font-size: 24px;
	color: var(--yellow);
	margin-bottom: 6px;
}

.pcard p {
	font-size: 13.5px;
	color: var(--muted);
	margin-bottom: 12px;
	min-height: 3.2em;
}

.pcard-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

.pcard-tags span {
	font-family: var(--pixel);
	font-size: 9px;
	letter-spacing: 0.06em;
	color: var(--yellow);
	background: rgba(242,193,24,0.1);
	border: 1px solid rgba(242,193,24,0.45);
	border-radius: 4px;
	padding: 4px 7px;
	white-space: nowrap;
}

.pcard-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
	display: inline-block;
	font-family: var(--title);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-align: center;
	border-radius: 8px;
	padding: 10px 16px;
	cursor: pointer;
	border: 2px solid transparent;
	transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}

.btn:active { transform: scale(0.96); }

.btn-solid {
	background: var(--red);
	color: #fff;
}

.btn-solid:hover { background: #ff4f49; }

.btn-ghost {
	border-color: var(--blue);
	color: var(--blue);
	background: rgba(106,165,255,0.08);
}

.btn-ghost:hover { background: rgba(106,165,255,0.2); }

.btn-yellow {
	background: var(--yellow);
	color: #3a1503;
}

.btn-yellow:hover { background: #ffd744; }

/* carousel controls */
.carousel-controls {
	position: absolute;
	bottom: clamp(18px, 4vh, 40px);
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 16px;
	z-index: 6;
}

.carousel-btn {
	width: 46px; height: 46px;
	border-radius: 50%;
	border: 2px solid var(--yellow);
	background: rgba(20,3,7,0.72);
	color: var(--yellow);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.12s ease;
}

.carousel-btn:hover { background: rgba(242,193,24,0.22); }
.carousel-btn:active { transform: scale(0.92); }

.carousel-indicators {
	position: absolute;
	top: clamp(70px, 10vh, 96px);
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 6;
	background: rgba(20,3,7,0.55);
	padding: 8px 14px;
	border-radius: 999px;
}

.indicator {
	width: 11px; height: 11px;
	border-radius: 50%;
	background: rgba(255,233,200,0.35);
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.indicator.active {
	background: var(--yellow);
	transform: scale(1.25);
}

.hero-hint {
	position: absolute;
	bottom: clamp(24px, 4.5vh, 46px);
	right: clamp(16px, 3vw, 36px);
	z-index: 6;
	font-family: var(--pixel);
	font-size: 10px;
	color: rgba(255,233,200,0.55);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

@media (max-width: 640px) {
	.hero { height: max(560px, 88vh); }
	.hero-hint { display: none; }
}

/* ============================================================
   MY WORK band
   ============================================================ */
.work-band {
	background: linear-gradient(180deg, var(--band) 0%, var(--band-dark) 100%);
	padding: clamp(40px, 7vw, 80px) 0 clamp(50px, 8vw, 96px);
	border-bottom: 8px solid var(--plum-deep);
}

.work-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 18px;
	margin-bottom: clamp(28px, 5vw, 52px);
}

.work-head h2 {
	font-size: clamp(40px, 7vw, 68px);
	letter-spacing: 0.06em;
}

.work-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr));
	gap: clamp(28px, 4.5vw, 56px);
}

.work-card { min-width: 0; }

.work-media {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: #16060b;
	border: 3px solid rgba(0,0,0,0.35);
	box-shadow: 0 16px 40px rgba(0,0,0,0.45);
	aspect-ratio: 16 / 9;
}

.work-media video,
.work-media .slideshow,
.work-media > img {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
}

.work-media video,
.work-media > img { object-fit: cover; }

.work-card h3 {
	margin-top: 18px;
	font-size: clamp(26px, 3.6vw, 38px);
}

.work-role {
	font-family: var(--pixel);
	font-size: clamp(10px, 1.4vw, 13px);
	letter-spacing: 0.1em;
	color: var(--yellow);
	text-transform: uppercase;
	margin-top: 8px;
}

.learn-more {
	display: inline-block;
	margin-top: 10px;
	font-family: var(--title);
	font-size: 15px;
	letter-spacing: 0.06em;
	color: var(--blue);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.learn-more:hover { color: #9cc3ff; }

/* ============================================================
   Slideshow (used when a project has no video)
   ============================================================ */
.slideshow { position: relative; overflow: hidden; background: #16060b; }

.slideshow img {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.slideshow img.on { opacity: 1; }

.slideshow .ss-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 38px; height: 38px;
	border-radius: 50%;
	border: 2px solid rgba(255,233,200,0.7);
	background: rgba(20,3,7,0.55);
	color: var(--cream);
	font-size: 19px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.85;
}

.slideshow .ss-nav:hover { background: rgba(20,3,7,0.85); }
.slideshow .ss-prev { left: 12px; }
.slideshow .ss-next { right: 12px; }

.slideshow .ss-dots {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 7px;
	z-index: 3;
}

.slideshow .ss-dots i {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: rgba(255,233,200,0.4);
	cursor: pointer;
}

.slideshow .ss-dots i.on { background: var(--yellow); }

.slideshow.contain img { object-fit: contain; background: #16060b; }

/* ============================================================
   CONTACT band
   ============================================================ */
.contact-band {
	background: linear-gradient(180deg, var(--plum) 0%, var(--plum-deep) 100%);
	padding: clamp(46px, 7vw, 84px) 0 clamp(40px, 6vw, 70px);
	text-align: center;
}

.contact-band h2 {
	font-size: clamp(38px, 6.5vw, 62px);
	margin-bottom: clamp(24px, 4vw, 44px);
}

.contact-links {
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 2.6vw, 26px);
	align-items: center;
}

.contact-links a {
	font-family: var(--title);
	font-size: clamp(18px, 3.4vw, 28px);
	color: var(--blue);
	text-decoration: underline;
	text-underline-offset: 5px;
	transition: color 0.15s ease;
}

.contact-links a:hover { color: #a5c8ff; }

.site-footer {
	background: var(--plum-deep);
	text-align: center;
	padding: 18px 16px 26px;
	font-family: var(--pixel);
	font-size: 10px;
	letter-spacing: 0.12em;
	color: rgba(255,233,200,0.45);
	text-transform: uppercase;
}

/* ============================================================
   PROJECT PAGES   scrollable story layout
   ============================================================ */
.proj-hero {
	position: relative;
	min-height: max(520px, 78vh);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--bg-deep);
}

.proj-hero-media {
	position: absolute;
	inset: 0;
}

.proj-hero-media img,
.proj-hero-media video {
	width: 100%; height: 100%;
	object-fit: cover;
}

.proj-hero-media.pixelated img { image-rendering: pixelated; }

.proj-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20,3,7,0.55) 0%, rgba(20,3,7,0.05) 35%, rgba(30,3,8,0.88) 88%, var(--bg) 100%);
	pointer-events: none;
}

.proj-hero-content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-bottom: clamp(34px, 6vw, 70px);
}

.proj-kicker {
	font-family: var(--pixel);
	font-size: clamp(10px, 1.4vw, 13px);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--yellow);
	margin-bottom: 12px;
}

.proj-hero h1 {
	font-size: clamp(42px, 8.5vw, 92px);
	letter-spacing: 0.04em;
	margin-bottom: 12px;
}

.proj-tagline {
	max-width: 640px;
	font-size: clamp(16px, 2.2vw, 20px);
	color: var(--cream);
	margin-bottom: 18px;
}

.proj-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.proj-meta span {
	font-family: var(--pixel);
	font-size: 10px;
	letter-spacing: 0.08em;
	color: var(--yellow);
	background: rgba(20,3,7,0.6);
	border: 1px solid rgba(242,193,24,0.5);
	border-radius: 4px;
	padding: 5px 9px;
}

.proj-section { padding: clamp(46px, 8vw, 100px) 0 0; }
.proj-section:last-of-type { padding-bottom: clamp(46px, 8vw, 100px); }

.story {
	max-width: 760px;
}

.story.center { margin: 0 auto; text-align: center; }

.story h2 {
	font-size: clamp(28px, 4.6vw, 46px);
	margin-bottom: 16px;
}

.story p {
	font-size: clamp(15.5px, 2vw, 18px);
	color: var(--muted);
	margin-bottom: 14px;
}

.story p strong { color: var(--cream); font-weight: 600; }

.media-full {
	margin-top: clamp(26px, 4.5vw, 50px);
	border-radius: 14px;
	overflow: hidden;
	border: 3px solid rgba(0,0,0,0.4);
	box-shadow: 0 20px 55px rgba(0,0,0,0.5);
	background: #16060b;
}

.media-full video { width: 100%; }

.media-full.pixelated img { image-rendering: pixelated; width: 100%; }

.media-full .slideshow { aspect-ratio: 16 / 10; position: relative; }

.media-grid {
	margin-top: clamp(26px, 4.5vw, 50px);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
	gap: clamp(16px, 2.6vw, 28px);
	align-items: start;
}

.media-grid figure {
	border-radius: 12px;
	overflow: hidden;
	background: #16060b;
	border: 3px solid rgba(0,0,0,0.4);
	box-shadow: 0 14px 36px rgba(0,0,0,0.45);
}

.media-grid img { width: 100%; }

.media-grid.pixelated img { image-rendering: pixelated; }

.media-grid figcaption,
.media-caption {
	font-family: var(--pixel);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--yellow);
	padding: 10px 12px;
}

.media-caption { padding: 12px 4px 0; }

.media-grid figcaption.caption-light,
.caption-light { color: #fff; }

.story h2.heading-sm {
	font-size: clamp(22px, 3.6vw, 34px);
}

/* Fallen Fate: concept row (3) + solo Dante */
.concept-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(12px, 2vw, 24px);
	margin-top: clamp(26px, 4.5vw, 50px);
	align-items: end;
}

.concept-solo {
	display: flex;
	justify-content: center;
	margin-top: clamp(18px, 3vw, 28px);
}

.concept-solo figure {
	width: min(280px, 55%);
}

.concept-row figure,
.concept-solo figure {
	border-radius: 12px;
	overflow: hidden;
	background: #16060b;
	border: 3px solid rgba(0,0,0,0.4);
	box-shadow: 0 14px 36px rgba(0,0,0,0.45);
	text-align: center;
}

.concept-row img,
.concept-solo img {
	width: 100%;
	height: auto;
	display: block;
}

.concept-row img.pixel-art,
.concept-solo img.pixel-art,
.pixel-art-source img {
	width: auto;
	max-width: 100%;
	max-height: min(52vh, 420px);
	margin: 12px auto;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
	object-fit: contain;
}

.concept-row figcaption,
.concept-solo figcaption {
	font-family: var(--pixel);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--yellow);
	padding: 10px 12px;
}

@media (max-width: 640px) {
	.concept-row { grid-template-columns: 1fr; }
	.concept-solo figure { width: min(240px, 70%); }
}

/* Bigger equal world shots */
.media-grid.world-shots {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(18px, 3vw, 32px);
}

.media-grid.world-shots figure img {
	width: 100%;
	min-height: clamp(220px, 32vw, 420px);
	object-fit: cover;
}

@media (max-width: 640px) {
	.media-grid.world-shots { grid-template-columns: 1fr; }
}

/* Art Fight favorites: comic larger */
.favorites-grid {
	display: grid;
	grid-template-columns: 1.45fr 1fr 1fr;
	gap: clamp(16px, 2.6vw, 28px);
	margin-top: clamp(26px, 4.5vw, 50px);
	align-items: start;
}

.favorites-grid figure {
	border-radius: 12px;
	overflow: hidden;
	background: #16060b;
	border: 3px solid rgba(0,0,0,0.4);
	box-shadow: 0 14px 36px rgba(0,0,0,0.45);
}

.favorites-grid img { width: 100%; }

.favorites-grid figcaption {
	font-family: var(--pixel);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--yellow);
	padding: 10px 12px;
}

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

/* Art Fight full artwork wall */
.art-wall {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: clamp(14px, 2.4vw, 24px);
	margin-top: clamp(26px, 4.5vw, 50px);
}

.art-wall figure {
	border-radius: 12px;
	overflow: hidden;
	background: #16060b;
	border: 3px solid rgba(0,0,0,0.4);
	box-shadow: 0 14px 36px rgba(0,0,0,0.45);
	margin: 0;
}

.art-wall img { width: 100%; cursor: zoom-in; }

.art-wall figcaption {
	font-family: var(--pixel);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--yellow);
	padding: 10px 12px;
}

/* TikTok-style fullscreen media reel */
body.reel-open { overflow: hidden; }
body.reel-open .site-header,
body.reel-open .nav-overlay { visibility: hidden; pointer-events: none; }

.media-reel[hidden] { display: none !important; }

.media-reel {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(0, 0, 0, 0.92);
}

.media-reel-chrome {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 8;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px 8px;
	pointer-events: none;
}

.media-reel-brand {
	pointer-events: auto;
	display: block;
}

.media-reel-brand img {
	height: 42px;
	width: auto;
	filter: drop-shadow(0 2px 8px rgba(0,0,0,0.55));
}

.media-reel-close {
	pointer-events: auto;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba(20, 20, 20, 0.55);
	color: #fff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

.media-reel-track {
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.media-reel-strip {
	display: flex;
	flex-direction: column;
}

.media-reel-back-top {
	position: absolute;
	left: 50%;
	bottom: max(24px, env(safe-area-inset-bottom, 0px) + 16px);
	transform: translateX(-50%);
	z-index: 9;
	border: none;
	border-radius: 999px;
	padding: 12px 22px;
	background: rgba(255, 255, 255, 0.92);
	color: #1a0a0c;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.media-reel-back-top[hidden] {
	display: none !important;
}

.media-reel-back-top:hover {
	background: #fff;
}

.media-reel-slide {
	position: relative;
	height: 100vh;
	height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 64px 78px 120px 18px;
	box-sizing: border-box;
	overflow: hidden;
}

.media-reel-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: min(960px, calc(100vw - 24px));
	max-height: calc(100dvh - 180px);
	width: auto;
	height: auto;
	overflow: hidden;
	pointer-events: auto;
}

.media-reel-slide img,
.media-reel-slide video {
	max-width: min(960px, calc(100vw - 24px));
	max-height: calc(100dvh - 180px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 10px;
	pointer-events: auto;
}

.media-reel-slide img.reel-pixel-art {
	image-rendering: pixelated;
	image-rendering: -moz-crisp-edges;
	image-rendering: crisp-edges;
	object-fit: contain;
	border-radius: 0;
	/* Width/height set in JS to an integer nearest-neighbor scale. */
	max-width: none;
	max-height: none;
}

.media-reel-fullscreen {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 4;
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	backdrop-filter: blur(4px);
}

.media-reel-fullscreen svg {
	width: 22px;
	height: 22px;
	display: block;
}

.media-reel-fullscreen:hover {
	background: rgba(242, 193, 24, 0.35);
	color: var(--yellow);
}

.media-reel-volume {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 4;
	min-width: 72px;
	height: 42px;
	padding: 0 10px;
	border: none;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	backdrop-filter: blur(4px);
	font-family: inherit;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.media-reel-volume-icon {
	display: grid;
	place-items: center;
}

.media-reel-volume-icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

.media-reel-volume-label {
	line-height: 1;
}

.media-reel-volume:hover {
	background: rgba(242, 193, 24, 0.35);
	color: var(--yellow);
}

.media-reel-volume.is-on {
	background: rgba(242, 193, 24, 0.42);
	color: #fff8d6;
}

/* Invisible hit layer so mobile taps open the reel even over videos */
.has-reel-hit {
	position: relative;
}

.media-reel-hit {
	position: absolute;
	inset: 0;
	z-index: 3;
	border: none;
	background: transparent;
	cursor: zoom-in;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
}

.media-fs-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 5;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	padding: 0;
	backdrop-filter: blur(4px);
}

.media-fs-btn svg {
	width: 20px;
	height: 20px;
	display: block;
}

.media-fs-btn:hover {
	background: rgba(242, 193, 24, 0.4);
	color: var(--yellow);
}

.slideshow .media-reel-hit {
	/* keep slideshow arrows/dots above the hit layer */
	z-index: 1;
}

.slideshow .ss-nav,
.slideshow .ss-dots {
	z-index: 4;
	position: relative;
}

.media-reel-meta {
	position: absolute;
	left: 14px;
	bottom: 28px;
	z-index: 7;
	display: flex;
	align-items: flex-end;
	gap: 12px;
	max-width: min(68vw, 420px);
	pointer-events: auto;
	text-shadow: 0 2px 10px rgba(0,0,0,0.75);
}

.media-reel-icon {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	overflow: hidden;
	border: 2px solid rgba(255,255,255,0.35);
	box-shadow: 0 8px 20px rgba(0,0,0,0.45);
	background: #111;
}

.media-reel-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	max-width: none;
	max-height: none;
}

.media-reel-icon img.pixelated-icon {
	image-rendering: pixelated;
	image-rendering: crisp-edges;
}

.media-reel-meta-text { min-width: 0; }

.media-reel-title {
	display: block;
	font-family: var(--title);
	font-size: clamp(18px, 4.5vw, 28px);
	color: #fff;
	text-decoration: none;
	line-height: 1.1;
	margin-bottom: 2px;
}

.media-reel-title:hover { color: var(--yellow); }

.media-reel-by {
	font-size: 13px;
	color: rgba(255,255,255,0.9);
	margin-bottom: 4px;
}

.media-reel-learn {
	display: inline-block;
	font-family: var(--title);
	font-size: 13px;
	letter-spacing: 0.08em;
	color: var(--blue);
	text-decoration: underline;
	text-underline-offset: 3px;
	margin-bottom: 6px;
}

.media-reel-desc {
	font-size: 13px;
	line-height: 1.35;
	color: rgba(255,255,255,0.88);
}

.media-reel-actions {
	position: absolute;
	right: 10px;
	bottom: 36px;
	z-index: 7;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	pointer-events: auto;
}

.media-reel-action {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	color: #fff;
	text-decoration: none;
	font-family: var(--body);
	font-size: 11px;
	cursor: pointer;
	text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.media-reel-action-icon {
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45));
}

.media-reel-action-icon svg {
	width: 34px;
	height: 34px;
	display: block;
}

.media-reel-action-icon.see-more svg {
	fill: #ed3833;
	stroke: #8a120e;
	stroke-width: 0.6;
}

.media-reel-action-icon.like-heart svg {
	fill: #ff8fd0;
	transform-origin: center;
}

.media-reel-like.is-liked .like-heart svg {
	fill: #ff2eb8;
}

.media-reel-like.pop .like-heart {
	animation: like-elastic 0.85s cubic-bezier(0.2, 0.9, 0.25, 1.35) both;
}

@keyframes like-elastic {
	0% { transform: scale(0.5) rotate(-20deg); }
	55% { transform: scale(1.18) rotate(4deg); }
	75% { transform: scale(0.94) rotate(-2deg); }
	100% { transform: scale(1) rotate(0deg); }
}

.media-reel-action-icon.share-arrow {
	color: #d6ff3a;
}

.media-reel-action-icon.share-arrow svg {
	fill: none;
	stroke: #d6ff3a;
}

.media-reel-action-icon.contact-me svg {
	fill: #ff9831;
}

.media-reel-share {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: rgba(0,0,0,0.45);
	padding: 18px;
}

.media-reel-share[hidden] { display: none !important; }

.media-reel-share-sheet {
	width: min(360px, 100%);
	background: #1a0a10;
	border: 2px solid var(--card-edge);
	border-radius: 16px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	box-shadow: 0 20px 50px rgba(0,0,0,0.55);
}

.media-reel-share-title {
	font-family: var(--title);
	font-size: 20px;
	color: var(--yellow);
	text-align: center;
	margin-bottom: 4px;
}

.media-reel-share-sheet button {
	font-family: var(--body);
	font-size: 16px;
	padding: 12px 14px;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	background: rgba(255,255,255,0.08);
	color: var(--cream);
}

.media-reel-share-sheet button:hover {
	background: rgba(242, 193, 24, 0.18);
	color: #fff;
}

.media-reel-share-cancel {
	margin-top: 4px;
	color: var(--muted) !important;
}

.media-reel-hint {
	position: absolute;
	left: 50%;
	bottom: 48px;
	transform: translateX(-50%);
	z-index: 6;
	text-align: center;
	pointer-events: none;
	color: #fff;
	font-family: var(--body);
	font-size: 15px;
	animation: reel-hint-fade 3.2s ease forwards;
}

.media-reel-finger {
	width: 28px;
	height: 44px;
	margin: 0 auto 10px;
	border: 3px solid #fff;
	border-radius: 16px;
	position: relative;
}

.media-reel-finger::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 10px;
	width: 6px;
	height: 6px;
	margin-left: -3px;
	border-radius: 50%;
	background: #fff;
	animation: reel-finger 1.2s ease-in-out infinite;
}

@keyframes reel-finger {
	0% { transform: translateY(0); opacity: 1; }
	70% { transform: translateY(14px); opacity: 0.35; }
	100% { transform: translateY(0); opacity: 1; }
}

@keyframes reel-hint-fade {
	0%, 70% { opacity: 1; }
	100% { opacity: 0; }
}

@media (max-width: 640px) {
	.media-reel-slide {
		padding: 58px 72px 130px 12px;
		overflow: hidden;
	}
	.media-reel-stage {
		max-width: calc(100vw - 84px);
		max-height: calc(100dvh - 210px);
	}
	.media-reel-slide img,
	.media-reel-slide video {
		max-width: calc(100vw - 84px);
		max-height: calc(100dvh - 210px);
	}
	.media-reel-slide img.reel-pixel-art {
		max-width: none;
		max-height: none;
	}
	.media-reel-icon { width: 48px; height: 48px; border-radius: 12px; }
	.media-reel-actions { right: 6px; gap: 14px; }
	.media-reel-action-icon { width: 42px; height: 42px; }
	.media-reel-fullscreen {
		width: 38px;
		height: 38px;
		top: 8px;
		right: 8px;
	}
	.media-reel-volume {
		min-width: 66px;
		height: 38px;
		top: 8px;
		left: 8px;
		padding: 0 8px;
		font-size: 0.68rem;
	}
	.media-reel-volume-icon svg {
		width: 18px;
		height: 18px;
	}
}

/* Page media should never overflow the viewport width on mobile */
.media-full,
.media-grid,
.art-wall,
.work-media,
.concept-row,
.concept-solo,
.favorites-grid {
	max-width: 100%;
}

.media-full img,
.media-full video,
.media-grid img,
.art-wall img,
.concept-row img,
.concept-solo img,
.favorites-grid img,
.work-media video,
.work-media img {
	max-width: 100%;
}

.media-full video,
.proj-section video {
	width: 100%;
	height: auto;
	max-height: min(70vh, 720px);
	object-fit: contain;
	background: #0a0406;
}

/* PPA interactive sprite row */
.sprite-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(12px, 2.5vw, 32px);
	justify-items: center;
	align-items: center;
	margin-top: clamp(26px, 4.5vw, 50px);
	max-width: 980px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 720px) {
	.sprite-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ppa-sprite {
	width: 100%;
	max-width: 220px;
	aspect-ratio: 1 / 1;
	background-repeat: no-repeat;
	image-rendering: pixelated;
	cursor: pointer;
	border: none;
	background-color: transparent;
	-webkit-tap-highlight-color: transparent;
}

.sprite-hintline {
	text-align: center;
	margin-top: 14px;
	font-family: var(--pixel);
	font-size: 10px;
	letter-spacing: 0.12em;
	color: rgba(255,233,200,0.55);
	text-transform: uppercase;
}

/* next-project footer strip */
.proj-next {
	margin-top: clamp(50px, 9vw, 110px);
	background: linear-gradient(180deg, var(--band) 0%, var(--band-dark) 100%);
	padding: clamp(36px, 6vw, 64px) 0;
	text-align: center;
}

.proj-next .np-label {
	font-family: var(--pixel);
	font-size: 11px;
	letter-spacing: 0.16em;
	color: rgba(255,233,200,0.7);
	text-transform: uppercase;
	display: block;
	margin-bottom: 12px;
}

.proj-next a.np-title {
	font-family: var(--title);
	font-size: clamp(30px, 5.5vw, 52px);
	color: var(--yellow);
	text-decoration: none;
}

.proj-next a.np-title:hover { color: #ffd744; }

.proj-next .np-back {
	display: block;
	margin-top: 18px;
	font-family: var(--title);
	font-size: 16px;
	color: var(--blue);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* scroll reveal */
.reveal {
	opacity: 0;
	transform: translateY(34px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.artist-credit {
	display: block;
	margin-top: 4px;
	font-size: 9px;
	letter-spacing: 0.08em;
	color: rgba(255, 233, 200, 0.75);
	text-transform: none;
}

.caption-light .artist-credit { color: rgba(255, 255, 255, 0.8); }

/* Resume page */
.resume-page {
	padding: clamp(100px, 14vw, 140px) 0 clamp(50px, 8vw, 90px);
}

.resume-sheet {
	max-width: 860px;
	margin: 0 auto;
	background: rgba(20, 5, 10, 0.72);
	border: 2px solid var(--card-edge);
	border-radius: 14px;
	padding: clamp(22px, 4vw, 42px);
	box-shadow: 0 20px 55px rgba(0,0,0,0.45);
}

.resume-sheet h1 {
	text-align: center;
	font-size: clamp(34px, 6vw, 52px);
	margin-bottom: 8px;
}

.resume-contact {
	text-align: center;
	font-size: 14px;
	color: var(--muted);
	margin-bottom: 28px;
	line-height: 1.7;
}

.resume-contact a { color: var(--blue); }

.resume-sheet h2 {
	font-size: clamp(22px, 3.4vw, 30px);
	margin: 28px 0 12px;
	padding-bottom: 6px;
	border-bottom: 2px solid rgba(242, 193, 24, 0.35);
}

.resume-job {
	margin: 18px 0 8px;
}

.resume-job-title {
	font-family: var(--title);
	font-size: 18px;
	color: var(--yellow);
}

.resume-job-meta {
	font-size: 13px;
	color: var(--muted);
	margin: 4px 0 8px;
}

.resume-sheet ul {
	margin: 0 0 8px 1.1em;
	color: var(--cream);
	font-size: 14.5px;
}

.resume-sheet li { margin-bottom: 6px; }

.resume-skills {
	font-size: 14.5px;
	color: var(--cream);
	line-height: 1.55;
}

.resume-skills strong { color: var(--yellow); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.carousel-item,
	.pcard,
	.media-reel-hint,
	.media-reel-finger,
	.media-reel-like.pop .like-heart {
		animation: none !important;
		transition: none !important;
	}
}
