.qnd-header {
	position: relative;
	height: 876px;
	overflow: visible;
	background: #fff;
}

.qnd-header__hero {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.qnd-header__slides {
	position: absolute;
	inset: 0;
}

.qnd-header__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1s ease;
	pointer-events: none;
}

.qnd-header__slide.is-active {
	opacity: 1;
	z-index: 1;
}

.qnd-header__slide img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-width: none;
}

.qnd-header__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: rgba(0, 0, 0, 0.55);
	pointer-events: none;
}

.qnd-header__headline {
	position: absolute;
	left: 50%;
	top: calc(50% - 48px);
	transform: translateX(-50%);
	z-index: 3;
	width: min(923px, calc(100% - 48px));
	margin: 0;
	text-align: center;
	white-space: nowrap;
	color: #fff;
	font-family: var(--qnd-font-sans);
	font-weight: 500;
	font-size: 96px;
	line-height: 96px;
}

.qnd-header__headline-lead {
	display: inline-block;
	font-family: var(--qnd-font-sans);
	font-weight: 500;
}

.qnd-header__headline-em {
	display: inline-block;
	font-family: var(--qnd-font-serif);
	font-style: italic;
	font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
	.qnd-header__slide {
		transition: none;
	}
}

.qnd-header__indicator {
	position: absolute;
	left: 29px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	width: 36px;
}

.qnd-header__dot {
	display: block;
	width: 18px;
	height: 2px;
	padding: 0;
	border: 0;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: width 0.25s ease, background-color 0.25s ease;
}

.qnd-header__dot.is-active {
	width: 36px;
	background: #fff;
}

/* ---- Nav bar (fixed full width; sticky = white bg + border only) ---- */

.qnd-header__bar {
	--qnd-header-x: max(24px, calc((100% - var(--qnd-content-width)) / 2));

	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--qnd-space-8);
	box-sizing: border-box;
	padding: 28px var(--qnd-header-x) 0;
	color: var(--qnd-black-50);
	font-family: var(--qnd-font-sans);
	font-size: 16px;
	line-height: 24px;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition:
		background-color 0.15s ease,
		border-color 0.15s ease,
		color 0.15s ease;
}

.qnd-header__bar.is-sticky {
	padding: 10px var(--qnd-header-x);
	background: #fff;
	border-bottom: 1px solid var(--qnd-border-subtle);
	color: var(--qnd-darkblue-500);
}

.qnd-header__bar.is-sticky .qnd-header__logo-symbol {
	width: 48px;
	height: 43px;
}

.qnd-header__bar.is-sticky .qnd-header__logo-text-wrap {
	gap: 4px;
}

.qnd-header__bar.is-sticky .qnd-header__logo-text {
	width: 36px;
	height: 16px;
}

.qnd-header__bar.is-sticky .qnd-header__logo-sub {
	width: 74px;
	height: 15px;
}

.qnd-header__bar.is-sticky .qnd-header__logo-symbol img,
.qnd-header__bar.is-sticky .qnd-header__logo-text img,
.qnd-header__bar.is-sticky .qnd-header__logo-sub img {
	filter: brightness(0) saturate(100%) invert(8%) sepia(42%) saturate(4568%) hue-rotate(220deg) brightness(95%) contrast(101%);
}

.qnd-header__bar.is-sticky .qnd-btn-ghost {
	padding: 6px 12px;
	border-color: var(--qnd-darkblue-500);
	color: var(--qnd-darkblue-500);
}

.qnd-header__bar.is-sticky .qnd-btn-ghost:hover,
.qnd-header__bar.is-sticky .qnd-btn-ghost:focus-visible {
	background: color-mix(in srgb, var(--qnd-darkblue-500) 8%, transparent);
}

.qnd-header__bar.is-sticky .qnd-header__toggle-line {
	background: var(--qnd-darkblue-500);
}

.qnd-header__menu {
	display: flex;
	gap: var(--qnd-space-8);
	align-items: center;
	white-space: nowrap;
}

.qnd-header__menu a {
	position: relative;
	color: inherit;
	text-decoration: none;
	transition: color 0.25s ease;
}

.qnd-header__menu a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.25s ease;
}

.qnd-header__menu a:hover,
.qnd-header__menu a:focus-visible {
	color: var(--qnd-skyblue-500);
}

.qnd-header__menu a:hover::after,
.qnd-header__menu a:focus-visible::after {
	transform: scaleX(1);
}

.qnd-header__logo {
	display: flex;
	align-items: center;
	justify-content: inherit;
	white-space: nowrap;
	text-decoration: none;
	color: inherit;
	flex: 0 0 auto;
	transition: opacity 0.25s ease;
}

.qnd-header__logo-inner {
	display: flex;
	align-items: center;
	gap: 6.5px;
	flex: 0 0 auto;
}

.qnd-header__logo:hover,
.qnd-header__logo:focus-visible {
	opacity: 0.85;
}

.qnd-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}

.qnd-header__cta {
	flex-shrink: 0;
}

.qnd-header__logo-symbol {
	width: 66px;
	height: 59px;
	position: relative;
	flex: 0 0 auto;
	display: block;
}

.qnd-header__logo-symbol img,
.qnd-header__logo-text img,
.qnd-header__logo-sub img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.qnd-header__logo-text-wrap {
	display: flex;
	flex-direction: column;
	gap: 7.5px;
	align-items: flex-start;
}

.qnd-header__logo-text {
	width: 48px;
	height: 21px;
	position: relative;
	display: block;
}

.qnd-header__logo-sub {
	width: 98px;
	height: 20px;
	position: relative;
	display: block;
}

.qnd-header__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 8px;
	border: 0;
	background: transparent;
	cursor: pointer;
	flex-shrink: 0;
	transition: opacity 0.25s ease;
}

.qnd-header__toggle:hover,
.qnd-header__toggle:focus-visible {
	opacity: 0.75;
}

.qnd-header__toggle-line {
	display: block;
	width: 100%;
	height: 2px;
	background: #fff;
	border-radius: 1px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.qnd-header__bar.is-menu-open .qnd-header__toggle-line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.qnd-header__bar.is-menu-open .qnd-header__toggle-line:nth-child(2) {
	opacity: 0;
}

.qnd-header__bar.is-menu-open .qnd-header__toggle-line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.qnd-header__mobile {
	display: none;
}

/* ---- Tablet ---- */

@media (max-width: 1024px) {
	.qnd-header__logo-symbol {
		width: 52px;
		height: 47px;
	}

	.qnd-header__logo-text {
		width: 40px;
		height: 17px;
	}

	.qnd-header__logo-sub {
		width: 80px;
		height: 16px;
	}

	.qnd-header__headline {
		font-size: 64px;
		line-height: 64px;
		top: calc(50% - 32px);
	}
}

/* ---- Mobile ---- */

@media (max-width: 768px) {
	.qnd-header {
		height: 100vh;
		min-height: 560px;
		max-height: 760px;
	}

	.qnd-header__headline {
		font-size: 40px;
		line-height: 44px;
		top: 50%;
		transform: translate(-50%, -50%);
		width: calc(100% - 32px);
		white-space: normal;
	}

	.qnd-header__headline-lead,
	.qnd-header__headline-em {
		display: block;
	}

	.qnd-header__indicator {
		left: 16px;
		gap: 6px;
		width: 28px;
	}

	.qnd-header__dot {
		width: 12px;
	}

	.qnd-header__dot.is-active {
		width: 28px;
	}

	.qnd-header__bar {
		padding: 16px 24px 0;
		gap: 16px;
	}

	.qnd-header__bar.is-sticky {
		padding: 8px 24px;
	}

	.qnd-header__bar.is-menu-open {
		right: 0;
		left: 0;
		bottom: auto;
		height: auto;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		gap: 0;
		padding: 16px 24px 32px;
		overflow: visible;
		background: #fff;
		border-bottom: 1px solid var(--qnd-border-subtle);
		color: var(--qnd-darkblue-500);
	}

	.qnd-header__bar.is-menu-open.is-sticky {
		padding: 16px 24px 32px;
	}

	.qnd-header__bar.is-menu-open .qnd-header__logo-symbol img,
	.qnd-header__bar.is-menu-open .qnd-header__logo-text img,
	.qnd-header__bar.is-menu-open .qnd-header__logo-sub img {
		filter: brightness(0) saturate(100%) invert(8%) sepia(42%) saturate(4568%) hue-rotate(220deg) brightness(95%) contrast(101%);
	}

	.qnd-header__bar.is-menu-open .qnd-header__toggle-line {
		background: var(--qnd-darkblue-500);
	}

	.qnd-header__bar.is-menu-open .qnd-header__actions {
		order: 1;
		justify-content: center;
		width: 100%;
		flex-shrink: 0;
	}

	.qnd-header__bar.is-menu-open .qnd-header__logo {
		order: 2;
		justify-content: center;
		margin-top: 24px;
		margin-bottom: 56px;
	}

	.qnd-header__bar.is-menu-open .qnd-header__logo-inner {
		transform: scale(1.35);
		transform-origin: center top;
	}

	.qnd-header__bar.is-menu-open .qnd-header__logo-text-wrap {
		align-items: flex-start;
	}

	.qnd-header__menu,
	.qnd-header__cta {
		display: none;
	}

	.qnd-header__toggle {
		display: flex;
	}

	.qnd-header__mobile {
		display: none;
		position: static;
		z-index: auto;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		gap: 24px;
		order: 3;
		width: 100%;
		padding: 0;
		text-align: center;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		overflow: visible;
	}

	.qnd-header__bar.is-menu-open .qnd-header__mobile {
		display: flex;
		flex: 0 0 auto;
		gap: 0;
	}

	.qnd-header__mobile[hidden] {
		display: none !important;
	}

	.qnd-header__mobile-menu {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 20px;
		width: 100%;
	}

	.qnd-header__mobile-menu a {
		color: var(--qnd-darkblue-500);
		text-decoration: none;
		font-size: 20px;
		line-height: 28px;
		transition: color 0.25s ease;
	}

	.qnd-header__mobile-menu a:hover,
	.qnd-header__mobile-menu a:focus-visible {
		color: var(--qnd-skyblue-500);
	}

	.qnd-header__bar.is-menu-open .qnd-header__mobile-cta {
		align-self: center;
		margin-top: 56px;
		border-color: var(--qnd-darkblue-500);
		color: var(--qnd-darkblue-500);
	}
}

body.qnd-menu-open {
	overflow: hidden;
}