.overtop-navbar {
	position: sticky;
	top: 0;
	z-index: 100;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	column-gap: var(--overtop-nav-gap);
	box-sizing: border-box;
	width: 100%;
	min-height: var(--overtop-nav-min-h);
	padding: var(--overtop-pad-y) var(--overtop-pad-x);
	background: var(--overtop-surface);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	font-family: var(--overtop-sans);
}

.overtop-navbar__inner {
	display: contents;
}

.overtop-navbar__brand {
	display: flex;
	align-items: center;
	grid-column: 1;
	min-width: 0;
	text-decoration: none;
	color: #1a1a1a;
}

.overtop-navbar__logo {
	display: block;
	width: auto;
	height: 56px;
	object-fit: contain;
	object-position: left center;
	background: transparent;
}

.overtop-navbar__nav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
	grid-column: 2;
	gap: var(--overtop-link-gap);
	justify-self: end;
}

.overtop-navbar__social {
	display: none;
}

.overtop-navbar__link {
	color: #8a8a8a;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-decoration: none;
	white-space: nowrap;
}

.overtop-navbar__link:hover {
	color: #1a1a1a;
}

.overtop-navbar__link.is-active {
	color: #1a1a1a;
	font-weight: 700;
}

.overtop-navbar__toggle {
	display: none;
	flex-shrink: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.overtop-navbar__toggle-line {
	display: block;
	width: 22px;
	height: 2px;
	background: #222;
	border-radius: 1px;
	transition: transform 0.28s ease, opacity 0.2s ease;
}

.overtop-navbar.is-open .overtop-navbar__toggle-line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.overtop-navbar.is-open .overtop-navbar__toggle-line:nth-child(2) {
	opacity: 0;
}

.overtop-navbar.is-open .overtop-navbar__toggle-line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
	.overtop-navbar {
		display: block;
		padding: 0;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		background-color: var(--overtop-bg);
		background-image: var(--overtop-bg-image);
		background-size: cover;
		background-position: center center;
		background-repeat: no-repeat;
	}

	.overtop-navbar.is-open {
		position: fixed;
		inset: 0;
		z-index: 1000;
		width: 100%;
		height: 100%;
		height: 100dvh;
		overflow: hidden;
		background-color: var(--overtop-bg);
		background-image: var(--overtop-bg-image);
		background-size: cover;
		background-position: center center;
		background-repeat: no-repeat;
	}

	.overtop-navbar__inner {
		position: relative;
		z-index: 2;
		display: grid;
		grid-template-columns: minmax(0, 1fr) 44px;
		grid-template-areas: "brand toggle";
		align-items: center;
		column-gap: 10px;
		box-sizing: border-box;
		width: 100%;
		min-height: var(--overtop-nav-min-h);
		padding: var(--overtop-pad-y) var(--overtop-pad-x);
		background: transparent;
	}

	.overtop-navbar__brand {
		grid-column: auto;
		grid-area: brand;
	}

	.overtop-navbar__logo {
		height: 44px;
		max-width: 100%;
	}

	.overtop-navbar__toggle {
		display: flex;
		grid-area: toggle;
		justify-self: end;
		z-index: 3;
	}

	.overtop-navbar__nav {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 1;
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: center;
		gap: 8px;
		margin: 0;
		padding: calc(var(--overtop-nav-min-h) + 32px) var(--overtop-pad-x) 48px;
		box-sizing: border-box;
		width: 100%;
		justify-self: auto;
		background-color: var(--overtop-bg);
		background-image: var(--overtop-bg-image);
		background-size: cover;
		background-position: center center;
		background-repeat: no-repeat;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(-12px);
		transition:
			opacity 0.28s ease,
			visibility 0.28s ease,
			transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
	}

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

	.overtop-navbar__link {
		display: block;
		width: auto;
		max-width: 100%;
		box-sizing: border-box;
		padding: 14px 8px;
		font-size: clamp(22px, 6vw, 32px);
		font-weight: 500;
		letter-spacing: 0.04em;
		text-align: center;
		white-space: normal;
		opacity: 0;
		transform: translateY(16px);
		transition:
			color 0.2s ease,
			opacity 0.3s ease,
			transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.overtop-navbar.is-open .overtop-navbar__link {
		opacity: 1;
		transform: translateY(0);
	}

	.overtop-navbar.is-open .overtop-navbar__link:nth-child(1) { transition-delay: 0.06s; }
	.overtop-navbar.is-open .overtop-navbar__link:nth-child(2) { transition-delay: 0.12s; }
	.overtop-navbar.is-open .overtop-navbar__link:nth-child(3) { transition-delay: 0.18s; }
	.overtop-navbar.is-open .overtop-navbar__link:nth-child(4) { transition-delay: 0.24s; }
	.overtop-navbar.is-open .overtop-navbar__link:nth-child(5) { transition-delay: 0.3s; }
	.overtop-navbar.is-open .overtop-navbar__link:nth-child(6) { transition-delay: 0.36s; }

	.overtop-navbar:not(.is-open) .overtop-navbar__link {
		transition-delay: 0s;
	}

	.overtop-navbar__social {
		display: grid;
		grid-template-columns: repeat(4, 44px);
		gap: 12px;
		margin-top: 28px;
		opacity: 0;
		transform: translateY(16px);
		transition:
			opacity 0.3s ease,
			transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.overtop-navbar.is-open .overtop-navbar__social {
		opacity: 1;
		transform: translateY(0);
		transition-delay: 0.28s;
	}

	.overtop-navbar:not(.is-open) .overtop-navbar__social {
		transition-delay: 0s;
	}

	.overtop-navbar__social-link {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border-radius: 10px;
		overflow: hidden;
		text-decoration: none;
	}

	.overtop-navbar__social-link.is-static {
		opacity: 0.72;
	}

	.overtop-navbar__social-icon {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	body.overtop-nav-open {
		overflow: hidden;
		touch-action: none;
	}
}
