:root {
	--bg: #090a11;
	--bg-soft: #121624;
	--panel: rgba(20, 25, 38, 0.7);
	--panel-alt: rgba(255, 255, 255, 0.05);
	--stroke: rgba(255, 255, 255, 0.16);
	--text: #f3f6ff;
	--text-dim: #a9b1c7;
	--accent: #7de2d1;
	--accent-2: #f69ab8;
	--accent-3: #8ca6ff;
	--danger: #ff7f7f;
	--ring: rgba(125, 226, 209, 0.6);
	--radius: 18px;
	--shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
	--container: min(1160px, 92vw);
	--spot-x: 50%;
	--spot-y: 35%;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 112px;
}

body {
	margin: 0;
	font-family: 'Manrope', sans-serif;
	color: var(--text);
	background:
		radial-gradient(circle at 14% 12%, rgba(246, 154, 184, 0.24), transparent 28%),
		radial-gradient(circle at 82% 16%, rgba(125, 226, 209, 0.2), transparent 30%),
		linear-gradient(150deg, #07080f 50%, #0f1421 46%, #0d1220 100%);
	min-height: 100vh;
	line-height: 1.62;
	overflow-x: hidden;
	padding-top: 94px;
}

body.menu-open {
	overflow: hidden;
}

body::before,
body::after {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: -2;
}

body::before {
	opacity: 0.05;
	background-image: url('../imgs/thumbnails/pattern-desktop.svg');
	background-size: 720px auto;
	background-repeat: repeat;
}

body::after {
	z-index: -1;
	opacity: 0.72;
	background:
		radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 20%),
		linear-gradient(180deg, rgba(5, 8, 16, 0.34), rgba(5, 8, 16, 0.84));
}

body::selection {
	background: rgba(125, 226, 209, 0.34);
	color: #061018;
}

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

a {
	color: inherit;
	text-decoration: none;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.65rem;
	font-family: 'Space Grotesk', sans-serif;
	letter-spacing: -0.01em;
	line-height: 1.08;
}

p {
	margin: 0 0 1rem;
	color: var(--text-dim);
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

main {
	width: var(--container);
	margin: 0 auto;
	padding-bottom: 4.5rem;
}

section[id] {
	scroll-margin-top: 112px;
}

.site-header {
	width: var(--container);
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0.8rem;
	position: fixed;
	top: 0.55rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 90;
	background: linear-gradient(132deg, rgba(12, 16, 28, 0.92), rgba(20, 26, 42, 0.82));
	border: 1px solid var(--stroke);
	border-radius: 14px;
	backdrop-filter: blur(14px);
	box-shadow: var(--shadow);
	padding: 0.5rem 0.65rem;
}

.interactive-bg {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: -1;
	overflow: hidden;
}

.bg-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(34px);
	opacity: 0.4;
	will-change: transform;
}

.bg-orb-a {
	width: 280px;
	height: 280px;
	left: 8%;
	top: 20%;
	background: radial-gradient(circle, rgba(125, 226, 209, 0.5), rgba(125, 226, 209, 0));
}

.bg-orb-b {
	width: 340px;
	height: 340px;
	right: 12%;
	top: 10%;
	background: radial-gradient(circle, rgba(246, 154, 184, 0.4), rgba(246, 154, 184, 0));
}

.bg-orb-c {
	width: 260px;
	height: 260px;
	right: 20%;
	bottom: 12%;
	background: radial-gradient(circle, rgba(140, 166, 255, 0.36), rgba(140, 166, 255, 0));
}

.wordmark {
	padding: 0.2rem 0.35rem;
	border-radius: 10px;
	background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.wordmark img {
	width: 170px;
	max-height: 34px;
	object-fit: contain;
}

.menu-toggle {
	display: none;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.menu-toggle img {
	width: 20px;
}

.main-nav {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.35rem;
}

.main-nav a {
	color: #d8deef;
	font-size: 0.84rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.56rem 0.72rem;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.13);
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav .is-active {
	color: #f9fbff;
	background: rgba(255, 255, 255, 0.22);
}

.admin-link {
	border: 1px solid rgba(125, 226, 209, 0.4);
}

.bg-spotlight {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: -1;
	opacity: 0.7;
	background:
		radial-gradient(circle 170px at var(--spot-x) var(--spot-y), rgba(125, 226, 209, 0.12), rgba(125, 226, 209, 0.04) 25%, rgba(125, 226, 209, 0) 70%);
	mix-blend-mode: screen;
}

.bird-easter-egg {
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 10px;
	width: 42px;
	height: 42px;
	background: rgba(255, 255, 255, 0.07);
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.bird-easter-egg:hover,
.bird-easter-egg:focus-visible {
	transform: translateY(-1px);
	border-color: var(--accent);
	background: rgba(125, 226, 209, 0.14);
}

.bird-easter-egg img {
	width: 22px;
	height: 22px;
}

.mobile-nav-overlay {
	position: fixed;
	inset: 0;
	background: rgba(5, 8, 15, 0.56);
	backdrop-filter: blur(4px);
	z-index: 85;
}

.custom-cursor {
	position: fixed;
	pointer-events: none;
	transform: translate(-50%, -50%);
	z-index: 150;
	display: none;
	transition: transform 0.16s ease;
}

.custom-cursor-icon {
	width: 30px;
	height: 30px;
	filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.45));
	transform-origin: 10% 10%;
}

.custom-cursor-label {
	position: absolute;
	left: 28px;
	top: 18px;
	padding: 0.2rem 0.48rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(8, 13, 24, 0.88);
	color: #e5f9f5;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 0.64rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0;
	transform: translateY(2px);
	transition: opacity 0.16s ease, transform 0.16s ease;
}

.has-custom-cursor body,
.has-custom-cursor a,
.has-custom-cursor button,
.has-custom-cursor input,
.has-custom-cursor textarea,
.has-custom-cursor select,
.has-custom-cursor label {
	cursor: none !important;
}

.has-custom-cursor .custom-cursor {
	display: block;
}


.custom-cursor.is-hover .custom-cursor-icon {
	transform: scale(1.08);
}

.custom-cursor.is-down {
	transform: translate(-50%, -50%) scale(0.9);
}

.custom-cursor.has-label .custom-cursor-label {
	opacity: 1;
	transform: translateY(0);
}

.flash {
	width: var(--container);
	margin: 0.9rem auto;
	border-radius: 12px;
	padding: 0.72rem 0.92rem;
	border: 1px solid transparent;
	font-size: 0.9rem;
}

.flash-success {
	background: rgba(29, 181, 131, 0.14);
	border-color: rgba(77, 216, 167, 0.4);
	color: #d6ffef;
}

.flash-error {
	background: rgba(255, 89, 89, 0.11);
	border-color: rgba(255, 108, 108, 0.42);
	color: #ffe4e4;
}

.hero {
	display: grid;
	grid-template-columns: 1.08fr 0.92fr;
	gap: clamp(1rem, 2.2vw, 2.1rem);
	align-items: center;
	min-height: 78vh;
	padding-top: clamp(2rem, 4vw, 3.2rem);
	position: relative;
}

.hero-bg-shape {
	position: absolute;
	border-radius: 50%;
	z-index: -1;
	filter: blur(12px);
}

.hero-bg-shape-a {
	width: 270px;
	height: 270px;
	top: 9%;
	right: 7%;
	background: radial-gradient(circle, rgba(246, 154, 184, 0.5), rgba(246, 154, 184, 0));
}

.hero-bg-shape-b {
	width: 330px;
	height: 330px;
	left: -7%;
	bottom: 0;
	background: radial-gradient(circle, rgba(140, 166, 255, 0.4), rgba(140, 166, 255, 0));
}

.eyebrow {
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 0.75rem;
}

.hero h1 {
	font-size: clamp(2.2rem, 4.4vw, 4.15rem);
	margin-bottom: 0.85rem;
}

.hero-intro {
	font-size: clamp(1rem, 1.36vw, 1.18rem);
	max-width: 55ch;
	margin-bottom: 1.05rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.68rem;
	margin-bottom: 1rem;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: 1px solid transparent;
	padding: 0.72rem 1.2rem;
	font-size: 0.85rem;
	font-family: 'Space Grotesk', sans-serif;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
	transform: translateY(-2px);
}

.button-primary {
	color: #071019;
	background: linear-gradient(120deg, var(--accent), #9ee9db);
	box-shadow: 0 8px 24px rgba(125, 226, 209, 0.3);
}

.button-secondary {
	color: var(--text);
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.24);
}

.button-danger {
	color: #ffe5e5;
	background: rgba(255, 127, 127, 0.2);
	border-color: rgba(255, 127, 127, 0.45);
}

.quick-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.quick-meta li {
	padding: 0.38rem 0.66rem;
	border-radius: 999px;
	font-size: 0.76rem;
	border: 1px solid rgba(255, 255, 255, 0.17);
	background: rgba(255, 255, 255, 0.06);
	color: #dbe8f8;
}

.glass-panel {
	background: linear-gradient(145deg, var(--panel), rgba(255, 255, 255, 0.03));
	border-radius: var(--radius);
	border: 1px solid var(--stroke);
	backdrop-filter: blur(14px);
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
}

.glass-panel::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.06;
	background-image: radial-gradient(circle at 20% 20%, #fff 0.5px, transparent 0.6px);
	background-size: 3px 3px;
}

.hero-media {
	padding: 0.9rem;
}

.hero-media > img {
	width: 100%;
	aspect-ratio: 4 / 4;
	object-fit: cover;
	border-radius: 12px;
}

.media-caption {
	margin-top: 0.74rem;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.media-caption img {
	width: 22px;
}

.section {
	padding: 3.3rem 0 0.5rem;
}

.section-head {
	margin-bottom: 1.1rem;
}

.section h2 {
	font-size: clamp(1.8rem, 3.1vw, 3rem);
}

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

.project-card {
	position: relative;
	overflow: hidden;
	transform-style: preserve-3d;
}

.project-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(150deg, rgba(255, 255, 255, 0.09), transparent 35%, transparent 68%, rgba(125, 226, 209, 0.2));
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.project-card::after {
	content: '';
	position: absolute;
	top: 0;
	left: -120%;
	width: 62%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transform: skewX(-18deg);
	transition: left 0.6s ease;
	pointer-events: none;
}

.project-card:hover::before,
.project-card:focus-within::before {
	opacity: 1;
}

.project-card:hover::after,
.project-card:focus-within::after {
	left: 150%;
}

.project-card-link {
	display: block;
}

.project-card-media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.project-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform-origin: center;
	transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.project-card-content {
	padding: 0.88rem 0.95rem 1rem;
}

.project-category {
	color: var(--accent);
	font-size: 0.73rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 0.35rem;
}

.project-year {
	font-size: 0.74rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-dim);
	margin-bottom: 0.3rem;
}

.project-card h3 {
	font-size: clamp(1.18rem, 1.75vw, 1.55rem);
	margin-bottom: 0.42rem;
}

.project-link-text {
	color: var(--accent-2);
	font-family: 'Space Grotesk', sans-serif;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.hero-word-eat {
	position: relative;
	display: inline-block;
	padding: 0 0.14em;
	color: #fff4b8;
	text-shadow: 0 0 18px rgba(246, 154, 184, 0.35);
	z-index: 0;
}

.hero-word-eat::before {
	content: '';
	position: absolute;
	inset: 0.1em 0;
	background: rgba(255, 244, 184, 0.14);
	border-radius: 4px;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
	z-index: -1;
}

.hero-word-eat.is-lit::before {
	transform: scaleX(1);
}

.project-card:hover .project-card-media img,
.project-card:focus-within .project-card-media img {
	transform: scale(1.08);
	filter: saturate(1.06);
}

.about-content {
	display: grid;
	grid-template-columns: 1fr 0.84fr;
	gap: 1rem;
	padding: 1.1rem;
}

.about-content h2 {
	font-size: clamp(1.9rem, 3vw, 2.85rem);
	margin-bottom: 0.85rem;
}

.skills-panel {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	padding: 1rem;
}

.skills-panel h3 {
	font-size: 1.16rem;
}

.skills-panel ul {
	display: grid;
	gap: 0.45rem;
}

.skills-panel li {
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.06);
	font-size: 0.86rem;
	padding: 0.44rem 0.62rem;
}

.contact-wrap {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	padding: 1.1rem;
}

.availability-note {
	border-left: 2px solid var(--accent);
	padding-left: 0.7rem;
	color: #dce7f9;
}

form {
	display: grid;
	gap: 0.5rem;
}

label {
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #ccd6ee;
}

input,
textarea {
	width: 100%;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.05);
	color: var(--text);
	padding: 0.75rem;
	font: inherit;
}

textarea {
	resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
	outline: 2px solid var(--ring);
	outline-offset: 2px;
}

.honeypot-field {
	position: absolute;
	left: -9999px;
	opacity: 0;
	pointer-events: none;
}

.project-article {
	padding-top: 1.6rem;
}

.project-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.92rem;
	padding: 0.95rem;
}

.project-hero h1 {
	font-size: clamp(2rem, 3.8vw, 3.3rem);
}

.project-summary {
	max-width: 48ch;
}

.project-hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 12px;
}

.project-content-grid {
	margin-top: 0.95rem;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9rem;
}

.project-block {
	padding: 0.95rem;
}

.project-block h2 {
	font-size: 1.4rem;
}

.tool-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.42rem;
}

.tool-list li {
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.17);
	background: rgba(255, 255, 255, 0.06);
	padding: 0.34rem 0.64rem;
	font-size: 0.78rem;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.8rem;
}

.gallery-item {
	padding: 0.42rem;
}

.gallery-item img {
	width: 100% !important;
	height: auto !important;
	max-height: none !important;
	aspect-ratio: auto !important;
	object-fit: initial !important;
}

.project-nav {
	display: flex;
	justify-content: center;
	gap: 0.72rem;
	flex-wrap: wrap;
	margin-top: 1.9rem;
}

.project-video-wrap {
	padding: 0.92rem;
}

.video-frame {
	position: relative;
	padding-top: 56.25%;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.04);
}

.video-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.gallery-item figcaption {
	font-size: 0.76rem;
	margin-top: 0.45rem;
	color: var(--text-dim);
}

.section-error {
	min-height: 58vh;
	display: grid;
	place-items: center;
}

.error-card {
	max-width: 540px;
	padding: 1.25rem;
	text-align: center;
}

.site-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	margin-top: 3.7rem;
	padding: 2rem 0 2.7rem;
}

.footer-inner {
	width: var(--container);
	margin: 0 auto;
	display: grid;
	gap: 0.7rem;
}

.footer-brand {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1.06rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #dbe3f5;
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
}

.social-links a {
	color: #eaf0ff;
	font-size: 0.88rem;
	border-bottom: 1px solid transparent;
}

.social-links a:hover,
.social-links a:focus-visible {
	border-color: currentColor;
}

.small-note {
	font-size: 0.78rem;
	opacity: 0.72;
}

.back-to-top {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(8, 12, 22, 0.88);
	display: grid;
	place-items: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.22s ease;
	z-index: 70;
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.back-to-top img {
	width: 20px;
}

.tooltip-card {
	position: fixed;
	top: 74px;
	right: 0.9rem;
	width: min(280px, 84vw);
	padding: 0.86rem;
	border-radius: 11px;
	background: rgba(8, 14, 26, 0.93);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #e8f3ff;
	font-size: 0.82rem;
	z-index: 120;
	box-shadow: var(--shadow);
}

.tooltip-card {
	backdrop-filter: blur(10px);
}

.tooltip-card strong {
	color: var(--accent);
}

.admin-page {
	background: linear-gradient(165deg, #07090f 0%, #111b28 45%, #141a2a 100%);
}

.admin-auth-wrap {
	min-height: 100vh;
	display: grid;
	place-items: center;
	width: min(520px, 92vw);
}

.admin-auth-card {
	width: 100%;
	padding: 1.1rem;
}

.admin-back-link {
	display: inline-block;
	color: var(--accent);
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.7rem;
}

.admin-layout {
	width: min(1080px, 94vw);
	margin: 1.3rem auto 3rem;
	display: grid;
	gap: 0.9rem;
}

.admin-topbar,
.admin-panel {
	padding: 0.95rem;
}

.admin-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.9rem;
}

.admin-actions {
	display: flex;
	gap: 0.54rem;
}

.admin-form {
	display: grid;
	gap: 0.52rem;
}

.admin-help-text {
	font-size: 0.72rem;
	color: var(--text-dim);
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	display: block;
	margin-top: 0.2rem;
}

.admin-checkbox {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	text-transform: none;
	letter-spacing: normal;
	font-size: 0.92rem;
}

.admin-checkbox input {
	width: auto;
}

.admin-form-actions {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
	margin-top: 0.4rem;
}

.admin-project-list {
	display: grid;
	gap: 0.7rem;
}

.admin-project-item {
	display: grid;
	grid-template-columns: 100px 1fr auto;
	align-items: center;
	gap: 0.75rem;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.03);
	padding: 0.56rem;
}

.admin-item-actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.admin-project-item img {
	width: 100px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
}

@media (max-width: 1050px) {
	.hero,
	.project-hero {
		grid-template-columns: 1fr;
	}

	.projects-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.about-content,
	.contact-wrap,
	.project-content-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 860px) {
	body::before {
		background-image: url('../imgs/thumbnails/pattern-tablet.svg');
		background-size: 560px auto;
	}

	.site-header {
		grid-template-columns: auto auto auto;
		gap: 0.55rem;
		border-radius: 12px;
		top: 0.4rem;
	}

	.wordmark img {
		width: 148px;
		max-height: 30px;
	}

	.menu-toggle {
		display: inline-flex;
		justify-self: end;
	}

	.main-nav {
		position: fixed;
		top: 72px;
		right: 4vw;
		width: min(300px, 92vw);
		flex-direction: column;
		align-items: stretch;
		gap: 0.35rem;
		background: rgba(10, 14, 24, 0.98);
		border: 1px solid rgba(255, 255, 255, 0.2);
		border-radius: 12px;
		padding: 0.56rem;
		box-shadow: var(--shadow);
		transform: translateY(-10px);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		z-index: 95;
	}

	.main-nav.is-open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
	}

	.main-nav a {
		width: 100%;
		font-size: 0.8rem;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
	}

	.hero {
		min-height: auto;
		padding-top: 1.2rem;
	}
}

@media (max-width: 740px) {
	body::before {
		background-image: url('../imgs/thumbnails/pattern-mobile.svg');
		background-size: 410px auto;
	}

	main {
		width: min(620px, 92vw);
	}

	body {
		padding-top: 84px;
	}

	.projects-grid,
	.gallery-grid {
		grid-template-columns: 1fr;
	}

	.hero h1 {
		font-size: clamp(2rem, 9vw, 2.7rem);
	}

	.button {
		min-height: 44px;
	}

	.admin-topbar,
	.admin-project-item {
		grid-template-columns: 1fr;
	}

	.admin-actions {
		width: 100%;
		flex-wrap: wrap;
	}
}

@media (pointer: coarse), (max-width: 860px) {
	.custom-cursor {
		display: none;
	}

	.bg-spotlight {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}

	.custom-cursor,
	.interactive-bg,
	.bg-spotlight {
		display: none;
	}
}
