.akis-header,
.akis-header__inner,
.akis-brand img,
.akis-header__menu a,
.akis-header-destination,
.akis-icon-btn,
.akis-theme-toggle {
	transition: height 180ms ease, padding 180ms ease, gap 180ms ease, max-height 180ms ease, font-size 180ms ease, background-color 180ms ease;
}

.akis-archive__title,
.akis-section-title,
.akis-rail-toggle__text,
.akis-card__title,
.akis-card__title-text,
.akis-card__subheading,
.akis-row__title,
.akis-row__excerpt,
.akis-onboarding__title,
.akis-onboarding__text {
	font-family: var(--akis-font-sans);
}

.akis-card__title,
.akis-card__title-text,
.akis-row__title {
	text-wrap: pretty;
}

.akis-card__overlay {
	position: relative;
}

.akis-card__overlay:has(.akis-chip) {
	padding-top: 1.5rem;
}

.akis-card__overlay .akis-chip {
	position: absolute;
	bottom: 100%;
	left: 1rem;
	z-index: 3;
	margin: 0;
	padding: .32rem .7rem;
	border-radius: 3px;
	background: var(--akis-accent);
	color: #0a0a0c;
	font-family: var(--akis-font-mono, monospace);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	box-shadow: 0 6px 14px rgba(10, 10, 12, .22);
	transform: translateY(50%);
}

@media (min-width: 768px) {
	.akis-card__overlay .akis-chip {
		left: 1.4rem;
	}
}

@media (max-width: 767px) {
	.akis-card__overlay .akis-card__subheading {
		align-self: flex-start;
		max-width: 100%;
		margin: 0 0 .35rem;
		padding: .35rem .7rem .4rem .6rem;
		border-inline-start: 3px solid var(--akis-signal);
		border-radius: 0 3px 3px 0;
		background: #0a0a0c;
		color: #fff;
		font-family: var(--akis-font-sans);
		font-weight: 800;
		font-size: clamp(.85rem, 3vw, 1rem);
		line-height: 1.2;
		letter-spacing: -0.01em;
		box-shadow: none;
	}

	.akis-reel__track,
	.akis-reel__track--fit {
		display: flex;
		justify-content: flex-start;
		gap: .6rem;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-inline: .15rem;
	}

	.akis-reel__track--fit .akis-reel__item,
	.akis-reel__track .akis-reel__item {
		flex: 0 0 44%;
		width: 44%;
		max-width: none;
		scroll-snap-align: start;
	}

	.akis-reel__track--fit.akis-reel__track--n2 .akis-reel__item {
		flex-basis: 48%;
		width: 48%;
	}

	.akis-reel__frame {
		aspect-ratio: 9 / 16;
	}

	.akis-reel__title {
		padding: .75rem .7rem .7rem;
		font-family: var(--akis-font-sans);
		font-size: .88rem;
		font-weight: 700;
		line-height: 1.25;
		-webkit-line-clamp: 3;
	}
}

.akis-header.is-compact {
	--akis-header-h: 48px;
	height: var(--akis-header-h);
	background: color-mix(in srgb, var(--akis-glass) 94%, var(--akis-bg));
	box-shadow: 0 4px 18px rgba(10, 10, 12, .08);
}

.akis-header.is-compact .akis-header__inner {
	gap: .7rem;
}

.akis-header.is-compact .akis-brand img {
	max-height: 24px;
}

.akis-header.is-compact .akis-header__menu a {
	padding: .4rem .1rem;
	font-size: .78rem;
}

.akis-header.is-compact .akis-header__menu > li + li {
	margin-inline-start: 1rem;
}

.akis-header.is-compact .akis-header__tools {
	gap: .2rem;
}

.akis-header.is-compact .akis-header-destination {
	width: 32px;
	min-height: 32px;
	padding-inline: 0;
}

.akis-header.is-compact .akis-header-destination span {
	display: none;
}

.akis-header.is-compact .akis-icon-btn,
.akis-header.is-compact .akis-theme-toggle {
	width: 32px;
	height: 32px;
}

.akis-header__nav {
	margin-inline-start: 1.15rem;
}

.akis-header__menu {
	gap: 0;
}

.akis-header__menu > li {
	position: relative;
}

.akis-header__menu > li + li {
	margin-inline-start: 1.15rem;
}

.akis-header__menu a {
	position: relative;
	padding: .55rem .1rem;
	border-radius: 0;
	background: transparent !important;
	color: var(--akis-text-soft);
	font-size: .82rem;
	font-weight: 500;
	letter-spacing: .01em;
}

.akis-header__menu > li > a::after {
	position: absolute;
	right: 0;
	bottom: .3rem;
	left: 0;
	height: 1.5px;
	background: currentColor;
	opacity: 0;
	transform: scaleX(.4);
	transform-origin: center;
	transition: opacity 180ms ease, transform 180ms ease;
	content: '';
}

.akis-header__menu a:hover {
	color: var(--akis-text);
}

.akis-header__menu > li > a:hover::after,
.akis-header__menu .current-menu-item > a::after,
.akis-header__menu .current-menu-ancestor > a::after {
	opacity: 1;
	transform: scaleX(1);
}

.akis-header__menu .current-menu-item > a,
.akis-header__menu .current-menu-ancestor > a {
	color: var(--akis-text);
}

.akis-header__menu .sub-menu {
	display: grid;
	position: absolute;
	top: calc(100% + .5rem);
	left: -.6rem;
	min-width: 200px;
	margin: 0;
	padding: .35rem;
	border: 1px solid var(--akis-line-soft);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 20px 40px rgba(10, 10, 12, .12);
	color: var(--akis-text);
	opacity: 0;
	pointer-events: none;
	transform: translateY(-5px);
	transition: opacity 160ms ease, transform 160ms ease;
	z-index: 5;
}

.akis-header__menu .sub-menu::before {
	position: absolute;
	top: -.45rem;
	right: 0;
	left: 0;
	height: .45rem;
	content: '';
}

.akis-header__menu > li:hover > .sub-menu,
.akis-header__menu > li:focus-within > .sub-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.akis-header__menu .sub-menu a {
	display: block;
	padding: .6rem .7rem;
	border-radius: 10px;
	background: transparent !important;
	color: var(--akis-text);
	font-size: .82rem;
	font-weight: 500;
	letter-spacing: .01em;
	white-space: nowrap;
}

.akis-header__menu .sub-menu a::after {
	display: none;
}

.akis-header__menu .sub-menu a:hover,
.akis-header__menu .sub-menu .current-menu-item > a {
	background: var(--akis-surface-2) !important;
	color: var(--akis-text);
}

[data-akis-theme="dark"] .akis-header__menu .sub-menu {
	border-color: #2a2a30;
	background: #151519;
	color: #fff;
}

[data-akis-theme="dark"] .akis-header__menu .sub-menu a {
	color: #fff;
}

[data-akis-theme="dark"] .akis-header__menu .sub-menu a:hover,
[data-akis-theme="dark"] .akis-header__menu .sub-menu .current-menu-item > a {
	background: #232329 !important;
	color: #fff;
}

.akis-mobile-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--akis-line-soft);
	border-radius: 8px;
	background: var(--akis-surface-2);
	color: var(--akis-text);
	align-items: center;
}

.akis-mobile-menu-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 180ms ease, opacity 180ms ease;
}

.akis-mobile-menu-toggle span:nth-child(2) {
	width: 12px;
	margin-inline-start: 6px;
}

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

.akis-header.is-menu-open .akis-mobile-menu-toggle span:nth-child(2) {
	opacity: 0;
}

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

.akis-mobile-menu {
	display: none;
}

@media (max-width: 767px) {
	.akis-header__tools {
		display: flex;
	}

	.akis-mobile-menu-toggle {
		display: flex;
		order: 10;
		width: 36px;
		height: 36px;
	}

	.akis-header.is-compact .akis-header__nav {
		display: none;
	}

	.akis-header.is-compact {
		--akis-header-h: 44px;
		height: var(--akis-header-h) !important;
	}

	.akis-header.is-compact .akis-brand img {
		max-height: 21px;
	}

	.akis-header.is-compact .akis-header-explore,
	.akis-header.is-compact .akis-header-profile,
	.akis-header.is-compact [data-akis-open-onboarding] {
		display: none !important;
	}

	.akis-header.is-compact .akis-icon-btn,
	.akis-header.is-compact .akis-theme-toggle,
	.akis-header.is-compact .akis-mobile-menu-toggle {
		width: 30px;
		height: 30px;
	}

	.akis-mobile-menu[hidden] {
		display: none;
	}

	.akis-mobile-menu:not([hidden]) {
		display: block;
		position: absolute;
		top: 100%;
		inset-inline: 0;
		padding: .25rem var(--akis-gutter) .5rem;
		border-top: 1px solid var(--akis-line-soft);
		border-bottom: 1px solid var(--akis-line-soft);
		border-radius: 0 0 18px 18px;
		background: #fff;
		box-shadow: 0 20px 40px rgba(10, 10, 12, .1);
	}

	.akis-mobile-menu__list {
		display: grid;
		gap: 0;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.akis-mobile-menu__list > li:not(:last-child) {
		border-bottom: 1px solid var(--akis-line-soft);
	}

	.akis-mobile-menu__list a {
		display: block;
		min-height: 50px;
		padding: .95rem .35rem;
		border: 0;
		border-radius: 0;
		background: transparent;
		color: var(--akis-text);
		font-size: .95rem;
		font-weight: 600;
		letter-spacing: .005em;
		line-height: 1.3;
		text-decoration: none;
	}

	.akis-mobile-menu__list .sub-menu {
		display: grid;
		gap: 0;
		margin: 0 0 .35rem;
		padding: 0 0 0 .8rem;
		list-style: none;
	}

	.akis-mobile-menu__list .sub-menu a {
		min-height: 40px;
		padding: .5rem .5rem;
		border: 0;
		border-inline-start: 1px solid var(--akis-line-soft);
		border-radius: 0;
		background: transparent;
		color: var(--akis-text-soft);
		font-size: .85rem;
		font-weight: 500;
	}

	.akis-mobile-menu__list .sub-menu a:hover,
	.akis-mobile-menu__list .sub-menu .current-menu-item > a {
		border-inline-start-color: var(--akis-text);
		background: transparent;
		color: var(--akis-text);
	}

	.akis-mobile-menu__list > li:has(.sub-menu) > a {
		padding-bottom: .55rem;
	}

	.akis-mobile-menu__list a:hover,
	.akis-mobile-menu__list .current-menu-item > a {
		background: transparent;
		color: var(--akis-text-soft);
	}

	.akis-mobile-menu__section {
		margin-top: .9rem;
		padding-top: .8rem;
		border-top: 1px solid var(--akis-line-soft);
	}

	.akis-mobile-menu__heading {
		margin: 0 .2rem .45rem;
		color: var(--akis-text-soft);
		font-family: var(--akis-font-mono, monospace);
		font-size: .68rem;
		font-weight: 700;
		letter-spacing: .1em;
		text-transform: uppercase;
	}

	.akis-mobile-menu__list--corporate {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.akis-mobile-menu__list--corporate a {
		min-height: 44px;
		font-size: .85rem;
		font-weight: 600;
	}

	[data-akis-theme="dark"] .akis-mobile-menu {
		background: #151519;
	}

	[data-akis-theme="dark"] .akis-mobile-menu__list > li:not(:last-child) {
		border-bottom-color: #2a2a30;
	}

	[data-akis-theme="dark"] .akis-mobile-menu__list a,
	[data-akis-theme="dark"] .akis-mobile-menu__list .current-menu-item > a {
		background: transparent;
		color: #fff;
	}

	[data-akis-theme="dark"] .akis-mobile-menu__list .sub-menu a {
		border-inline-start-color: #2a2a30;
		color: #aaaab1;
	}

}
