.aa-nav-label,
.aa-nav-footer {
	display: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 800px) {
	body.aa-menu-open {
		overflow: hidden;
	}

	.aa-header {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 1rem;
		transition: background-color 420ms ease, color 420ms ease;
	}

	/* A filtered ancestor would make the fixed menu follow the scrolled header. */
	.aa-header,
	.aa-header.is-scrolled {
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.aa-header.is-open {
		background-color: transparent;
	}

	.aa-wordmark,
	.aa-menu-toggle {
		position: relative;
		z-index: 2;
	}

	.aa-menu-toggle {
		grid-column: 2;
		grid-row: 1;
		place-content: center;
		justify-self: end;
		gap: 4px;
		width: 48px;
		height: 48px;
		margin: -7px -7px -7px 0;
		padding: 10px;
		cursor: pointer;
		touch-action: manipulation;
	}

	.aa-menu-toggle span:not(.screen-reader-text) {
		display: block;
		width: 28px;
		height: 1.5px;
		transform-origin: center;
		transition: transform 520ms var(--aa-motion-ease), opacity 260ms ease;
	}

	.aa-header.is-open .aa-menu-toggle span:nth-child(1) {
		transform: translateY(5.5px) rotate(45deg);
	}

	.aa-header.is-open .aa-menu-toggle span:nth-child(2) {
		opacity: 0;
		transform: scaleX(0);
	}

	.aa-header.is-open .aa-menu-toggle span:nth-child(3) {
		transform: translateY(-5.5px) rotate(-45deg);
	}

	.aa-nav {
		position: fixed;
		z-index: 1;
		inset: 0;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		justify-content: center;
		gap: 0;
		width: 100%;
		min-height: 100vh;
		min-height: 100dvh;
		padding: clamp(7rem, 18vh, 10rem) 1.4rem clamp(2rem, 7vh, 4rem);
		overflow-y: auto;
		overscroll-behavior: contain;
		background: var(--aa-paper);
		color: var(--aa-ink);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(-101%);
		transition: transform 760ms var(--aa-motion-ease) 180ms,
			opacity 440ms ease 180ms,
			visibility 0s linear 980ms;
	}

	@supports (padding: max(0px)) {
		.aa-nav {
			padding-right: max(1.4rem, env(safe-area-inset-right));
			padding-bottom: max(clamp(2rem, 7vh, 4rem), env(safe-area-inset-bottom));
			padding-left: max(1.4rem, env(safe-area-inset-left));
		}
	}

	.aa-header.is-open .aa-nav {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
		transition-delay: 0s, 0s, 0s;
	}

	.aa-nav-label {
		display: block;
		margin-bottom: clamp(1.3rem, 4vh, 2.5rem);
		font-size: .72rem;
		font-weight: 600;
		letter-spacing: .12em;
		text-transform: uppercase;
		opacity: 0;
		transform: translateY(16px);
		transition: opacity 300ms ease, transform 480ms var(--aa-motion-ease);
	}

	.aa-nav > a {
		display: block;
		width: fit-content;
		font-size: clamp(3.35rem, 16vw, 7rem);
		font-weight: 500;
		letter-spacing: -.035em;
		line-height: 1.06;
		text-transform: none;
		opacity: 0;
		transform: translateY(42px);
		transition: opacity 360ms ease, transform 620ms var(--aa-motion-ease), color 220ms ease;
	}

	.aa-nav > a:nth-of-type(1) { transition-delay: 160ms; }
	.aa-nav > a:nth-of-type(2) { transition-delay: 120ms; }
	.aa-nav > a:nth-of-type(3) { transition-delay: 80ms; }
	.aa-nav > a:nth-of-type(4) { transition-delay: 40ms; }
	.aa-nav > a:nth-of-type(5) { transition-delay: 0ms; }

	.aa-header.is-open .aa-nav-label,
	.aa-header.is-open .aa-nav > a,
	.aa-header.is-open .aa-nav-footer {
		opacity: 1;
		transform: translateY(0);
	}

	.aa-header.is-open .aa-nav-label { transition-delay: 160ms; }
	.aa-header.is-open .aa-nav > a:nth-of-type(1) { transition-delay: 200ms; }
	.aa-header.is-open .aa-nav > a:nth-of-type(2) { transition-delay: 250ms; }
	.aa-header.is-open .aa-nav > a:nth-of-type(3) { transition-delay: 300ms; }
	.aa-header.is-open .aa-nav > a:nth-of-type(4) { transition-delay: 350ms; }
	.aa-header.is-open .aa-nav > a:nth-of-type(5) { transition-delay: 400ms; }

	.aa-nav-footer {
		display: flex;
		justify-content: space-between;
		gap: 2rem;
		margin-top: auto;
		padding-top: 1.5rem;
		border-top: 1px solid var(--aa-line);
		font-size: .7rem;
		font-weight: 600;
		letter-spacing: .08em;
		text-transform: uppercase;
		opacity: 0;
		transform: translateY(18px);
		transition: opacity 300ms ease, transform 520ms var(--aa-motion-ease);
	}

	.aa-header.is-open .aa-nav-footer {
		transition-delay: 460ms;
	}

	.aa-nav > a:focus-visible {
		outline-offset: .08em;
	}

	.aa-menu-toggle:focus-visible {
		outline-offset: 1px;
	}
}

@media (max-width: 430px) and (max-height: 720px) {
	.aa-nav {
		justify-content: flex-start;
		padding-top: 6.5rem;
	}

	.aa-nav > a {
		font-size: clamp(2.8rem, 13.5vw, 4rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.aa-header,
	.aa-menu-toggle span,
	.aa-nav,
	.aa-nav-label,
	.aa-nav > a,
	.aa-nav-footer {
		transition-duration: .01ms !important;
		transition-delay: 0ms !important;
	}
}
