:root {
	color-scheme: dark;
	--page: #0b0c0d;
	--panel: #111214;
	--line: #292a2d;
	--text: #f5f3ee;
	--muted: #a6a6ad;
	--lavender: #d9b8ff;
	--font-display: 'Space Grotesk', 'Arial', sans-serif;
	--font-body: 'Inter', 'Segoe UI', sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	min-width: 320px;
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	margin: 0;
	background: var(--page);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 13px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

a:focus-visible {
	outline: 2px solid var(--lavender);
	outline-offset: 4px;
}

.landing-footer__contact {
	display: inline-flex;
	min-height: 44px;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 0 20px;
	border: 1px solid #505054;
	border-radius: 7px;
	font-weight: 500;
	transition:
		border-color 160ms ease,
		background-color 160ms ease;
}

.landing-footer__contact:hover {
	border-color: #85848b;
	background: #141518;
}

.work-gallery {
	padding: 64px 24px;
	background: var(--panel);
}

.landing-page floating-page-link {
	--floating-link-bottom: 26px;
	--floating-link-height: 44px;
}

.work-gallery__header {
	margin: 0 auto 28px;
	max-width: 1440px;
}

.work-gallery__eyebrow {
	margin: 0 0 8px;
	color: var(--lavender);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.work-gallery__header h1 {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 500;
	letter-spacing: -0.05em;
	line-height: 1.1;
}

.work-gallery__group {
	max-width: 1440px;
	margin-inline: auto;
}

.work-gallery__group + .work-gallery__group {
	margin-top: 52px;
}

.work-gallery__group-title {
	margin: 0 0 16px;
	color: var(--text);
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 500;
	letter-spacing: -0.03em;
}

.work-gallery__grid {
	display: grid;
	max-width: 1440px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	align-items: start;
	gap: 24px;
	margin: 0 auto;
}

.work-gallery__item {
	position: relative;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	background: var(--page);
}

.work-gallery__item video,
.work-gallery__item img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	background: #08090a;
}

.work-gallery__fullscreen {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	padding: 0;
	border: 1px solid rgba(245, 243, 238, 0.35);
	border-radius: 6px;
	background: rgba(11, 12, 13, 0.72);
	color: var(--text);
	cursor: pointer;
	opacity: 0.78;
	transition:
		background-color 160ms ease,
		opacity 160ms ease;
}

.work-gallery__fullscreen:hover,
.work-gallery__fullscreen:focus-visible {
	background: rgba(11, 12, 13, 0.95);
	opacity: 1;
}

.work-gallery__fullscreen svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.work-gallery__item video:focus-visible {
	outline-offset: -3px;
}

.work-gallery__template-link {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 20px;
	padding: 12px 18px;
	border: 1px solid #505054;
	border-radius: 7px;
	transition:
		border-color 160ms ease,
		background-color 160ms ease;
}

.work-gallery__template-link:hover {
	border-color: #85848b;
	background: #141518;
}

.work-gallery__template-link > span {
	color: var(--muted);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.work-gallery__template-link strong {
	font-size: 13px;
	font-weight: 500;
}

.studio-handoff {
	display: grid;
	min-height: 84px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	gap: 48px;
	padding: 32px 64px;
}

.studio-handoff__item {
	display: flex;
	min-width: 0;
	align-items: flex-start;
	gap: 14px;
}

.studio-handoff__number {
	flex: 0 0 auto;
	color: var(--lavender);
	font-size: 10px;
}

.studio-handoff__item h2 {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
}

.landing-footer {
	display: flex;
	min-height: 80px;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 23px 140px 26px 64px;
	border-top: 1px solid var(--line);
}

.landing-footer__brand {
	display: flex;
	align-items: baseline;
	gap: 16px;
}

.landing-footer__brand p {
	margin: 0;
	font-family: var(--font-display);
	font-size: 21px;
	font-weight: 500;
	letter-spacing: -0.03em;
}

.landing-footer__brand span {
	color: var(--muted);
	font-size: 11px;
}

.landing-footer__links,
.landing-footer__socials {
	display: flex;
	align-items: center;
}

.landing-footer__links {
	gap: 28px;
}

.landing-footer__socials {
	gap: 18px;
}

.landing-footer__socials a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--muted);
	font-size: 12px;
	transition: color 160ms ease;
}

.landing-footer__socials a:hover {
	color: var(--text);
}

.landing-footer__socials svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

@media (max-width: 900px) {
	.work-gallery {
		padding: 48px 24px;
	}

	.studio-handoff {
		gap: 24px;
		padding-right: 32px;
		padding-left: 32px;
	}

	.landing-footer {
		display: grid;
		grid-template-columns: 1fr;
		gap: 16px;
		padding-right: 140px;
		padding-left: 32px;
	}

	.landing-footer__links {
		width: 100%;
		justify-content: space-between;
	}
}

@media (max-width: 720px) {
	.landing-page floating-page-link {
		--floating-link-bottom: 22px;
		--floating-link-height: 34px;
	}

	.work-gallery {
		padding: 38px 24px;
	}

	.work-gallery__grid {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	}

	.studio-handoff {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 24px 20px;
	}

	.landing-footer {
		gap: 12px;
		padding: 18px 120px 22px 10px;
	}

	.landing-footer__links {
		align-items: center;
		gap: 8px;
	}

	.landing-footer__socials {
		gap: 10px;
	}

	.landing-footer__socials a {
		gap: 4px;
		font-size: 10px;
	}

	.landing-footer__socials svg {
		width: 14px;
		height: 14px;
	}

	.landing-footer__contact {
		min-height: 34px;
		gap: 6px;
		padding: 0 8px;
		font-size: 10px;
	}
}

@media (max-width: 400px) {
	.landing-footer__brand {
		align-items: flex-start;
		flex-direction: column;
		gap: 2px;
	}
}

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