/*
	Burger Labs design system and homepage.
	No frameworks. Keep this file organised by section.
*/

:root {
	--bg: #131210;
	--bg-raised: #1b1916;
	--bg-panel: #23201b;
	--bg-header: rgba(19, 18, 16, 0.78);
	--bg-header-solid: rgba(19, 18, 16, 0.94);

	--text: #f3eee4;
	--text-muted: #b9b2a6;
	--text-faint: #8d877c;

	--mustard: #e3b54a;
	--mustard-deep: #c4942e;
	--mustard-soft: rgba(227, 181, 74, 0.14);

	--tomato: #d45c4c;
	--pickle: #7d9b58;
	--cyan: #3cb8c4;

	--protocol: #3ad6d4;
	--airspace: #40cfff;
	--airspace-navy: #071433;
	--gymload: #4d7fe8;
	--gymload-green: #b6e14a;
	--airspace-red: #d62a2d;

	--border: rgba(243, 238, 228, 0.1);
	--border-strong: rgba(227, 181, 74, 0.38);

	--font-display: "Avenir Next", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
	--font-body: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--wrap: min(72rem, calc(100% - 2rem));
	--wrap-wide: min(84rem, calc(100% - 2rem));

	--header-h: 4.25rem;
	--radius: 1.1rem;
	--radius-sm: 0.55rem;
	--radius-pill: 999px;

	--shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
	--ease: 180ms ease;
	--ease-out: 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	color-scheme: dark;
}

html.is-nav-open {
	overflow: hidden;
}

body {
	margin: 0;
	background:
		radial-gradient(1200px 520px at 80% -10%, rgba(227, 181, 74, 0.08), transparent 55%),
		var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img,
svg {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--mustard);
}

:focus {
	outline: none;
}

:focus-visible {
	outline: 2px solid var(--mustard);
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 200;
	padding: 0.6rem 0.9rem;
	background: var(--mustard);
	color: #1a160d;
	font-weight: 700;
	text-decoration: none;
	border-radius: var(--radius-sm);
}

.skip-link:focus {
	top: 1rem;
}

.wrap {
	width: var(--wrap);
	margin-inline: auto;
}

.wrap--wide {
	width: var(--wrap-wide);
}

.eyebrow {
	margin: 0 0 0.85rem;
	color: var(--mustard);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.05;
	text-wrap: balance;
}

h1 {
	margin: 0;
	font-size: clamp(2.4rem, 7.2vw, 6.55rem);
}

h2 {
	margin: 0 0 0.85rem;
	font-size: clamp(1.9rem, 4.4vw, 3.75rem);
}

h3 {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
}

p {
	margin: 0 0 1rem;
}

p:last-child {
	margin-bottom: 0;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.75rem 1.2rem;
	border: 1px solid var(--mustard);
	border-radius: var(--radius-pill);
	background: var(--mustard);
	color: #1a160d;
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1;
	text-decoration: none;
	transition: transform var(--ease), background-color var(--ease), color var(--ease), border-color var(--ease);
}

.button:hover {
	background: #f0c45a;
	border-color: #f0c45a;
	color: #1a160d;
	transform: translateY(-1px);
}

.button--ghost {
	background: transparent;
	color: var(--text);
	border-color: var(--border-strong);
}

.button--ghost:hover {
	background: var(--mustard-soft);
	color: var(--text);
	border-color: var(--mustard);
}

.button--small {
	min-height: 2.5rem;
	padding: 0.55rem 0.95rem;
	font-size: 0.875rem;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	border-bottom: 1px solid transparent;
	background: transparent;
	transition: background-color var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.site-header.is-scrolled,
html:not(.has-js) .site-header {
	background: var(--bg-header-solid);
	border-bottom-color: var(--border);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

@supports (backdrop-filter: blur(16px)) {
	.site-header.is-scrolled {
		background: var(--bg-header);
		backdrop-filter: blur(16px);
	}
}

body.admin-bar .site-header {
	top: 32px;
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
	height: var(--header-h);
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	color: var(--text);
	text-decoration: none;
}

.site-brand:hover {
	color: var(--text);
}

.brand-mark {
	display: block;
	width: 2.25rem;
	height: 2.25rem;
	flex-shrink: 0;
}

.site-brand__text {
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.55rem;
	margin-left: auto;
	min-height: 2.75rem;
	padding: 0.35rem 0.55rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--text);
	font: inherit;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.nav-toggle__box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 1.1rem;
}

.nav-toggle__bar {
	display: block;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	transition: transform var(--ease), opacity var(--ease);
}

.site-header.is-nav-open .nav-toggle__bar:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle__bar:nth-child(2) {
	opacity: 0;
}

.site-header.is-nav-open .nav-toggle__bar:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
}

.site-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
	color: var(--text);
}

@media (max-width: 899px) {
	html.has-js .nav-toggle:not([hidden]) {
		display: inline-flex;
	}

	html.has-js .site-nav {
		position: fixed;
		inset: var(--header-h) 0 0 0;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 1.5rem;
		padding: 1.5rem 1.25rem 2rem;
		background: var(--bg-raised);
		border-top: 1px solid var(--border);
		transform: translateY(-0.6rem);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity var(--ease-out), transform var(--ease-out), visibility var(--ease);
	}

	html.has-js.is-nav-open .site-nav {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: none;
	}

	html.has-js .site-nav__list {
		flex-direction: column;
		gap: 0.35rem;
	}

	html.has-js .site-nav__list a {
		display: block;
		padding: 0.7rem 0;
		font-size: 1.2rem;
		color: var(--text);
	}

	html:not(.has-js) .site-header {
		height: auto;
	}

	html:not(.has-js) .site-header__inner {
		height: auto;
		padding-block: 0.85rem;
	}

	html:not(.has-js) .site-nav {
		flex: 1 0 100%;
	}
}

@media (min-width: 900px) {
	.site-nav {
		margin-left: auto;
	}
}

@media (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

.hero {
	position: relative;
	padding: 2.25rem 0 2.25rem;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(227, 181, 74, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(227, 181, 74, 0.045) 1px, transparent 1px);
	background-size: 2.5rem 2.5rem;
	mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
	pointer-events: none;
}

.hero__grid {
	position: relative;
	display: grid;
	gap: 2.5rem;
	align-items: center;
}

.hero__lede {
	max-width: 38rem;
	margin: 1.15rem 0 1.6rem;
	color: var(--text-muted);
	font-size: 1.125rem;
}

.hero__accent {
	color: var(--mustard);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.hero__art {
	display: flex;
	justify-content: center;
}

.hero-specimen {
	position: relative;
	width: min(100%, 22.5rem);
	padding: 1.25rem;
	background:
		linear-gradient(var(--mustard), var(--mustard)) 0 0 / 18px 1px no-repeat,
		linear-gradient(var(--mustard), var(--mustard)) 0 0 / 1px 18px no-repeat,
		linear-gradient(var(--mustard), var(--mustard)) 100% 0 / 18px 1px no-repeat,
		linear-gradient(var(--mustard), var(--mustard)) 100% 0 / 1px 18px no-repeat,
		linear-gradient(var(--mustard), var(--mustard)) 0 100% / 18px 1px no-repeat,
		linear-gradient(var(--mustard), var(--mustard)) 0 100% / 1px 18px no-repeat,
		linear-gradient(var(--mustard), var(--mustard)) 100% 100% / 18px 1px no-repeat,
		linear-gradient(var(--mustard), var(--mustard)) 100% 100% / 1px 18px no-repeat;
}

.hero-burger {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.hero-layer {
	transform-box: fill-box;
	transform-origin: center;
	animation: assemble var(--ease-out) both;
	animation-delay: calc(var(--i) * 90ms);
}

@keyframes assemble {
	from {
		opacity: 0;
		transform: translateY(-18px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.section {
	padding: 3.5rem 0;
	scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.section__header {
	max-width: 40rem;
	margin-bottom: 1.85rem;
}

.section__lede {
	color: var(--text-muted);
	font-size: 1.125rem;
}

.products {
	padding-top: 2.15rem;
	padding-bottom: 3.5rem;
}

.products .section__header {
	margin-bottom: 2rem;
}

.product-grid {
	display: grid;
	gap: 1.15rem;
}

.product-card {
	position: relative;
	isolation: isolate;
	display: grid;
	align-content: start;
	gap: 0.75rem;
	min-width: 0;
	padding: 1.55rem 1.4rem 1.6rem;
	overflow: hidden;
	border: 1px solid var(--border);
	border-top-width: 3px;
	border-radius: var(--radius);
	background: var(--bg-raised);
	color: var(--text-muted);
	text-decoration: none;
	box-shadow: var(--shadow);
	transition: transform var(--ease-out), border-color var(--ease), box-shadow var(--ease);
}

.product-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(ellipse 90% 55% at 18% -10%, var(--product-glow, transparent), transparent 70%);
	pointer-events: none;
}

.product-card:hover,
.product-card:focus-visible {
	color: var(--text-muted);
	transform: translateY(-5px);
}

.product-card h3 {
	color: var(--text);
	font-size: 1.55rem;
	overflow-wrap: break-word;
}

.product-card__icon {
	display: block;
	width: 3.75rem;
	height: 3.75rem;
	border-radius: 1.05rem;
	overflow: hidden;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

.product-card__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-card__index {
	margin: 0;
	color: var(--text-faint);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.product-card__lead {
	margin: 0;
	color: var(--text);
	font-family: var(--font-display);
	font-size: 1.08rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.3;
}

.product-card__cta {
	margin-top: 0.45rem;
	color: var(--text);
	font-weight: 700;
	font-size: 0.95rem;
}

.product-card__cta::after {
	content: " →";
}

.product-card--humpty {
	--product-glow: rgba(78, 157, 255, 0.18);
	border-top-color: #4e9dff;
}

.product-card--humpty .product-card__cta {
	color: #64adff;
}

.product-card--humpty:hover,
.product-card--humpty:focus-visible {
	border-color: rgba(78, 157, 255, 0.52);
	box-shadow: 0 22px 44px rgba(24, 105, 210, 0.16);
}

.product-card--chatcrate {
	--product-glow: rgba(227, 181, 74, 0.18);
	border-top-color: var(--mustard);
}

.product-card--chatcrate .product-card__cta {
	color: var(--mustard);
}

.product-card--chatcrate:hover,
.product-card--chatcrate:focus-visible {
	border-color: rgba(227, 181, 74, 0.55);
	box-shadow: 0 22px 44px rgba(227, 181, 74, 0.14);
}

.product-card--protocol {
	--product-glow: rgba(58, 214, 212, 0.18);
	border-top-color: var(--protocol);
}

.product-card--protocol .product-card__cta {
	color: var(--protocol);
}

.product-card--protocol:hover,
.product-card--protocol:focus-visible {
	border-color: rgba(58, 214, 212, 0.5);
	box-shadow: 0 22px 44px rgba(58, 214, 212, 0.12);
}

.product-card--airspace {
	--product-glow: rgba(64, 207, 255, 0.14);
	border-top-color: var(--airspace);
	background:
		linear-gradient(180deg, rgba(7, 20, 51, 0.42), var(--bg-raised) 48%);
}

.product-card--airspace .product-card__cta {
	color: var(--airspace);
}

.product-card--airspace:hover,
.product-card--airspace:focus-visible {
	border-color: rgba(64, 207, 255, 0.48);
	box-shadow: 0 22px 44px rgba(7, 20, 51, 0.35), 0 0 0 1px rgba(214, 42, 45, 0.18);
}

.product-card--gymload {
	--product-glow: rgba(77, 127, 232, 0.16);
	border-top-color: var(--gymload);
}

.product-card--gymload .product-card__cta {
	color: var(--gymload);
}

.product-card--gymload:hover,
.product-card--gymload:focus-visible {
	border-color: rgba(77, 127, 232, 0.5);
	box-shadow: 0 22px 44px rgba(77, 127, 232, 0.14), 0 0 0 1px rgba(182, 225, 74, 0.2);
}

.about {
	background: var(--bg-raised);
	border-block: 1px solid var(--border);
}

.about__grid {
	display: grid;
	gap: 1.25rem;
}

.about__label {
	margin: 0;
	color: var(--mustard);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.about__body {
	max-width: 42rem;
	padding-left: 1.15rem;
	border-left: 2px solid var(--mustard);
	color: var(--text-muted);
	font-size: 1.1rem;
}

.about__body h2 {
	color: var(--text);
	margin-bottom: 1.1rem;
}

.lab-process {
	display: grid;
	gap: 0.85rem;
	margin: 0;
	padding: 1.25rem;
	list-style: none;
	counter-reset: lab-step;
	border: 1px dashed var(--border-strong);
	border-radius: var(--radius);
	background:
		linear-gradient(rgba(227, 181, 74, 0.035) 1px, transparent 1px),
		var(--bg-panel);
	background-size: 100% 2rem;
}

.lab-process li {
	display: grid;
	grid-template-columns: auto auto 1fr;
	align-items: center;
	gap: 0.8rem;
	counter-increment: lab-step;
}

.lab-process li::before {
	content: counter(lab-step, decimal-leading-zero);
	color: var(--mustard);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
}

.lab-process__icon {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--border);
	border-radius: 50%;
	color: var(--mustard);
	background: var(--bg);
}

.lab-process__icon svg {
	display: block;
}

.lab-process__name {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.next__grid {
	display: grid;
	gap: 1.5rem;
	align-items: start;
}

.next-card {
	position: relative;
	overflow: hidden;
	padding: 1.65rem 1.55rem 1.7rem;
	border: 1px dashed var(--border-strong);
	border-radius: var(--radius);
	background:
		repeating-linear-gradient(
			-12deg,
			rgba(60, 184, 196, 0.05) 0 8px,
			transparent 8px 16px
		),
		var(--bg-panel);
}

.next-card__index {
	margin: 0 0 0.4rem;
	color: var(--cyan);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.16em;
}

.next-card h3 {
	margin-bottom: 1rem;
	font-size: 1.55rem;
}

.next-card__specimen {
	position: relative;
	display: grid;
	gap: 0.45rem;
	min-height: 9rem;
	padding: 1.2rem;
	border-radius: var(--radius-sm);
	background: rgba(0, 0, 0, 0.22);
}

.next-card__blur {
	display: block;
	height: 6.25rem;
	border-radius: 0.7rem;
	background:
		linear-gradient(#c99238, #c99238) 50% 12% / 70% 22% no-repeat,
		linear-gradient(#7d9b58, #7d9b58) 50% 38% / 74% 12% no-repeat,
		linear-gradient(#2a211c, #2a211c) 50% 58% / 68% 18% no-repeat,
		linear-gradient(#b07d2c, #b07d2c) 50% 84% / 70% 20% no-repeat;
	filter: blur(7px) brightness(0.72);
	transform: scale(1.04);
}

.next-card__stamp {
	position: absolute;
	right: 1.1rem;
	top: 1.4rem;
	z-index: 1;
	padding: 0.25rem 0.5rem;
	border: 2px solid var(--tomato);
	color: var(--tomato);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transform: rotate(-12deg);
	background: rgba(19, 18, 16, 0.55);
}

.why {
	background: var(--bg-raised);
	border-block: 1px solid var(--border);
}

.why__grid {
	display: grid;
	gap: 1.25rem;
}

.why__joke {
	color: var(--text);
	font-family: var(--font-display);
	font-size: clamp(1.2rem, 2.4vw, 1.55rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.35;
}

.why__body {
	color: var(--text-muted);
	max-width: 40rem;
}

.cta-band {
	padding-bottom: 4rem;
}

.cta-band__grid {
	display: grid;
	gap: 2rem;
	padding: 2rem 1.35rem;
	border-radius: calc(var(--radius) + 0.2rem);
	background:
		radial-gradient(ellipse at 100% 0%, rgba(227, 181, 74, 0.16), transparent 46%),
		var(--bg-panel);
	border: 1px solid var(--border);
}

.cta-band__copy p {
	margin-bottom: 1.25rem;
	color: var(--text-muted);
}

.exploded {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem 1rem;
}

.exploded__item {
	display: grid;
	gap: 0.4rem;
	justify-items: center;
}

.exploded__shape {
	display: block;
	width: 100%;
	max-width: 7.5rem;
	height: 1.15rem;
}

.exploded__shape--bun {
	height: 2rem;
	border-radius: 1.1rem 1.1rem 0.35rem 0.35rem;
	background: linear-gradient(#f2c86a, #c99238);
}

.exploded__shape--pickle {
	border-radius: 0.4rem;
	background: var(--pickle);
}

.exploded__shape--patty {
	display: grid;
	place-items: center;
	height: 2rem;
	border-radius: 0.7rem;
	background: #2a211c;
	color: var(--cyan);
	font-family: var(--font-mono);
	font-size: 0.8rem;
	font-weight: 600;
}

.exploded__shape--base {
	height: 1.7rem;
	border-radius: 0.35rem 0.35rem 1rem 1rem;
	background: linear-gradient(#d9a54a, #b07d2c);
}

.exploded__label {
	color: var(--text-faint);
	font-family: var(--font-mono);
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.site-footer {
	padding: 2.5rem 0 1.5rem;
	border-top: 1px solid var(--border);
	background: #100f0d;
}

.site-footer__inner {
	display: grid;
	gap: 1.5rem;
	padding-bottom: 1.5rem;
}

.site-footer__tagline {
	margin: 0.7rem 0 0;
	color: var(--text-muted);
}

.site-footer__email {
	margin: 0.45rem 0 0;
}

.site-footer__email a {
	color: var(--mustard);
	text-decoration: none;
	font-size: 0.95rem;
}

.site-footer__email a:hover {
	text-decoration: underline;
}

.site-footer__nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__nav a {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 0.92rem;
}

.site-footer__nav a:hover {
	color: var(--mustard);
}

.site-footer__colophon {
	margin: 0;
	padding-top: 1.15rem;
	border-top: 1px solid var(--border);
	color: var(--text-faint);
	font-size: 0.88rem;
}

.page-fallback {
	padding: 3rem 0 5rem;
}

.page-fallback h1 {
	font-size: clamp(2rem, 5vw, 3rem);
	margin-bottom: 1rem;
}

.content-page {
	padding: 2.5rem 0 4.5rem;
}

.content-page__inner {
	max-width: 42rem;
}

.content-page h1 {
	margin-bottom: 1rem;
	font-size: clamp(2rem, 5vw, 3rem);
}

.content-page h2 {
	margin-top: 2rem;
	font-size: 1.45rem;
}

.content-page h3 {
	margin-top: 1.35rem;
	font-size: 1.05rem;
}

.content-page p,
.content-page li {
	color: var(--text-muted);
}

.content-page a {
	color: var(--text);
}

.content-page a:hover {
	color: var(--mustard);
}

.content-page__list {
	margin: 0 0 1rem;
	padding-left: 1.15rem;
}

.content-page__list li + li {
	margin-top: 0.55rem;
}

.content-page__email {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
}

.portfolio {
	padding: 2.5rem 0 4.5rem;
}

.portfolio__intro {
	max-width: 42rem;
	margin-bottom: 2.25rem;
}

.portfolio__intro h1 {
	margin-bottom: 1rem;
	font-size: clamp(2rem, 5vw, 3rem);
}

.portfolio__intro p {
	color: var(--text-muted);
}

.portfolio-item {
	display: grid;
	gap: 1.35rem;
	min-width: 0;
	margin: 0 0 1.15rem;
	padding: 1.5rem 1.25rem 1.6rem;
	border: 1px solid var(--border);
	border-top-width: 3px;
	border-radius: var(--radius);
	background: var(--bg-raised);
	box-shadow: var(--shadow);
}

.portfolio-item__copy {
	min-width: 0;
}

.portfolio-item__copy p {
	color: var(--text-muted);
}

.portfolio-item__kicker {
	margin: 0 0 0.75rem;
}

.portfolio-item__kicker img {
	display: block;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 1rem;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

.portfolio-item__status {
	margin: 0 0 0.45rem;
	color: var(--text-faint);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.portfolio-item h2 {
	margin: 0 0 0.65rem;
	font-size: clamp(1.55rem, 4vw, 2.05rem);
}

.portfolio-item__note {
	font-size: 0.95rem;
}

.portfolio-item .button {
	margin-top: 0.35rem;
}

.portfolio-item__shot {
	min-width: 0;
	justify-self: center;
}

.portfolio-item__shot img {
	display: block;
	width: min(100%, 14.5rem);
	height: auto;
	max-height: 26rem;
	object-fit: cover;
	object-position: top center;
	border-radius: 1.35rem;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.portfolio-item--humpty {
	border-top-color: #4e9dff;
	background:
		radial-gradient(ellipse 90% 50% at 12% -8%, rgba(78, 157, 255, 0.18), transparent 70%),
		var(--bg-raised);
}

.portfolio-item--humpty .portfolio-item__shot img {
	width: min(100%, 25rem);
	max-height: 22rem;
	object-fit: contain;
}

.portfolio-item--chatcrate {
	border-top-color: var(--mustard);
	background:
		radial-gradient(ellipse 90% 50% at 12% -8%, rgba(227, 181, 74, 0.16), transparent 70%),
		var(--bg-raised);
}

.portfolio-item--chatcrate .portfolio-item__shot img {
	width: min(100%, 14rem);
	max-height: 14rem;
	object-fit: contain;
}

.portfolio-item--protocol {
	border-top-color: var(--protocol);
	background:
		radial-gradient(ellipse 90% 50% at 12% -8%, rgba(58, 214, 212, 0.16), transparent 70%),
		var(--bg-raised);
}

.portfolio-item--airspace {
	border-top-color: var(--airspace);
	background:
		linear-gradient(180deg, rgba(7, 20, 51, 0.5), var(--bg-raised) 52%);
}

.portfolio-item--gymload {
	border-top-color: var(--gymload);
	background:
		radial-gradient(ellipse 90% 50% at 88% -8%, rgba(77, 127, 232, 0.16), transparent 70%),
		radial-gradient(ellipse 40% 30% at 8% 100%, rgba(182, 225, 74, 0.08), transparent 70%),
		var(--bg-raised);
}

@media (min-width: 900px) {
	.portfolio-item {
		grid-template-columns: minmax(0, 1fr) minmax(12rem, 16rem);
		align-items: center;
		gap: 2.25rem 2.75rem;
		padding: 1.85rem 1.75rem 1.9rem;
	}

	.portfolio-item--flip {
		grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
	}

	.portfolio-item--flip .portfolio-item__copy {
		order: 2;
	}

	.portfolio-item--flip .portfolio-item__shot {
		order: 1;
	}

	.portfolio-item__shot img {
		width: 15.5rem;
	}
}

@media (min-width: 640px) {
	.hero {
		padding: 3rem 0 2.5rem;
	}

	.product-card__icon {
		width: 4.25rem;
		height: 4.25rem;
		border-radius: 1.15rem;
	}

	.exploded {
		grid-template-columns: repeat(4, 1fr);
		align-items: end;
	}

	.cta-band__grid {
		padding: 2.4rem;
	}
}

@media (min-width: 768px) and (max-width: 899px) {
	.hero__grid {
		grid-template-columns: 1.1fr 0.9fr;
		gap: 1.5rem;
		align-items: center;
	}

	.hero-specimen {
		width: min(100%, 18rem);
		padding: 0.85rem;
	}
}

@media (min-width: 900px) {
	:root {
		--wrap: min(76rem, calc(100% - 3.5rem));
		--wrap-wide: min(88rem, calc(100% - 3.5rem));
		--header-h: 4.5rem;
	}

	body {
		font-size: 1.125rem;
	}

	.hero__lede {
		font-size: 1.2rem;
		max-width: 40rem;
	}

	.hero__grid,
	.next__grid,
	.why__grid,
	.cta-band__grid,
	.site-footer__inner {
		grid-template-columns: 1fr 1fr;
	}

	.hero__grid {
		gap: 1.5rem 3rem;
		min-height: min(68vh, 42rem);
	}

	.hero-specimen {
		width: min(100%, 26rem);
	}

	.lab-process {
		grid-template-columns: repeat(5, 1fr);
		gap: 0;
		padding: 1.5rem 0.75rem;
	}

	.lab-process li {
		position: relative;
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
		gap: 0.65rem;
		padding: 0.5rem 0.75rem;
	}

	.lab-process li:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 2.05rem;
		left: calc(50% + 1.5rem);
		width: calc(100% - 3rem);
		border-top: 1px dashed var(--border-strong);
	}

	.about__grid {
		grid-template-columns: 8rem 1fr;
		gap: 2rem;
		align-items: start;
	}

	.section {
		padding: 4.25rem 0;
	}

	.products {
		padding-top: 2.35rem;
		padding-bottom: 4.25rem;
	}

	.lab {
		padding-bottom: 2.15rem;
	}

	.next {
		padding-top: 1.85rem;
		padding-bottom: 3.5rem;
	}
}

@media (min-width: 960px) {
	.product-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.45rem;
	}

	.products .section__header {
		margin-bottom: 2.35rem;
	}

	.product-card {
		padding: 1.85rem 1.7rem 1.9rem;
		gap: 0.85rem;
	}

	.product-card__icon {
		width: 5rem;
		height: 5rem;
		border-radius: 1.25rem;
	}

	.product-card h3 {
		font-size: 1.7rem;
	}

	.product-card__lead {
		font-size: 1.14rem;
	}
}

@media (min-width: 1280px) {
	:root {
		--wrap: min(92rem, calc(100% - 4.5rem));
		--wrap-wide: min(108rem, calc(100% - 4.5rem));
	}

	body {
		font-size: 1.1875rem;
	}

	.hero__lede {
		font-size: 1.25rem;
		max-width: 42rem;
	}

	.hero-specimen {
		width: min(100%, 34rem);
	}

	.hero__grid {
		min-height: min(72vh, 48rem);
		gap: 2rem 4.5rem;
	}

	.site-nav a {
		font-size: 1.05rem;
	}

	.site-brand__text {
		font-size: 1.18rem;
	}

	.product-card {
		padding: 2rem 1.85rem 2.05rem;
		gap: 0.95rem;
	}

	.product-card__icon {
		width: 5.75rem;
		height: 5.75rem;
		border-radius: 1.35rem;
	}

	.next-card {
		padding: 1.9rem 1.75rem 1.95rem;
	}

	.next-card h3 {
		font-size: 1.7rem;
	}
}

@media (min-width: 1600px) {
	:root {
		--wrap: min(100rem, calc(100% - 6rem));
		--wrap-wide: min(118rem, calc(100% - 6rem));
	}

	.hero-specimen {
		width: min(100%, 36.5rem);
	}

	.product-card__icon {
		width: 6.25rem;
		height: 6.25rem;
		border-radius: 1.45rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.hero-layer,
	.button,
	.product-card,
	.site-header,
	.site-nav,
	.nav-toggle__bar {
		animation: none;
		transition: none;
	}

	.product-card:hover,
	.button:hover {
		transform: none;
	}
}
