
:root {
	color-scheme: light;
	--bg: #f6f8fc;
	--bg-soft: #edf3fb;
	--surface: rgba(255, 255, 255, 0.82);
	--surface-strong: rgba(255, 255, 255, 0.96);
	--surface-muted: rgba(84, 104, 255, 0.08);
	--border: rgba(118, 138, 170, 0.2);
	--border-strong: rgba(118, 138, 170, 0.34);
	--text: #142033;
	--text-soft: #44566f;
	--text-muted: #70819a;
	--accent: #5468ff;
	--accent-strong: #12b8af;
	--accent-warm: #ff9a67;
	--shadow: 0 24px 64px rgba(83, 101, 132, 0.16);
	--radius-xl: 32px;
	--radius-lg: 24px;
	--radius-md: 18px;
	--radius-sm: 14px;
	--content-width: min(1200px, calc(100vw - 2rem));
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background:
		radial-gradient(circle at top left, rgba(84, 104, 255, 0.18), transparent 34%),
		radial-gradient(circle at 85% 18%, rgba(18, 184, 175, 0.14), transparent 25%),
		radial-gradient(circle at bottom right, rgba(255, 154, 103, 0.14), transparent 22%),
		linear-gradient(145deg, #fbfcff 0%, #f3f7fc 46%, #edf3fa 100%);
	color: var(--text);
	min-height: 100vh;
}

body.page-home--dark {
	color-scheme: dark;
	--bg: #07111f;
	--bg-soft: #0d1728;
	--surface: rgba(11, 20, 35, 0.82);
	--surface-strong: rgba(14, 25, 42, 0.96);
	--surface-muted: rgba(84, 104, 255, 0.14);
	--border: rgba(135, 156, 202, 0.18);
	--border-strong: rgba(135, 156, 202, 0.32);
	--text: #eef4ff;
	--text-soft: #c4d2ea;
	--text-muted: #91a5c6;
	--shadow: 0 28px 80px rgba(2, 6, 16, 0.5);
	background:
		radial-gradient(circle at top left, rgba(84, 104, 255, 0.22), transparent 34%),
		radial-gradient(circle at 85% 18%, rgba(18, 184, 175, 0.14), transparent 25%),
		radial-gradient(circle at bottom right, rgba(255, 154, 103, 0.12), transparent 22%),
		linear-gradient(145deg, #040b15 0%, #08111d 46%, #0a1522 100%);
	color: var(--text);
}

body.page-home--dark .site-header {
	background: rgba(5, 11, 20, 0.72);
	border-bottom-color: rgba(135, 156, 202, 0.12);
}

body.page-home--dark .brand__copy span,
body.page-home--dark .muted,
body.page-home--dark .metric-card span,
body.page-home--dark .section-copy,
body.page-home--dark .footer {
	color: var(--text-muted);
}

body.page-home--dark .button--ghost {
	background: rgba(14, 25, 42, 0.72);
	border-color: var(--border);
	color: var(--text-soft);
}

body.page-home--dark .button--secondary {
	background: rgba(84, 104, 255, 0.12);
	color: var(--text-soft);
}

body.page-home--dark .button--secondary:hover,
body.page-home--dark .button--ghost:hover,
body.page-home--dark .site-header__toggle:hover,
body.page-home--dark .nav-links a:hover,
body.page-home--dark .nav-links a.active {
	background: rgba(84, 104, 255, 0.16);
	color: var(--text);
	border-color: var(--border-strong);
}

body.page-home--dark .site-header__toggle {
	background: rgba(14, 25, 42, 0.72);
	border-color: var(--border);
	color: var(--text-soft);
}

body.page-home--dark .nav-links a.nav-link--chatbot,
body.page-home--dark .nav-links a.nav-link--chatbot:hover,
body.page-home--dark .nav-links a.nav-link--chatbot.active {
	background: linear-gradient(135deg, #8b5cf6, #5468ff 52%, #12b8af);
	border-color: rgba(138, 160, 255, 0.36);
	box-shadow: 0 18px 34px rgba(84, 104, 255, 0.24);
	color: #fff;
}

body.page-home--dark .card--link:hover,
body.page-home--dark .card--link:focus-visible,
body.page-home--dark .metric-card--link:hover,
body.page-home--dark .metric-card--link:focus-visible {
	background: rgba(17, 29, 47, 0.94);
	box-shadow: 0 28px 54px rgba(2, 6, 16, 0.48);
	border-color: rgba(84, 104, 255, 0.24);
}

body.page-home--dark .card img,
body.page-home--dark .app-icon,
body.page-home--dark .cover-image {
	background: rgba(9, 17, 29, 0.96);
	border-color: rgba(84, 104, 255, 0.12);
}

body.page-home--dark .contact-card__icon,
body.page-home--dark .tag,
body.page-home--dark .meta-chip {
	background: rgba(84, 104, 255, 0.12);
	border-color: rgba(84, 104, 255, 0.18);
	color: var(--text-soft);
}

body.page-home--dark .contact-card__link,
body.page-home--dark .project-link,
body.page-home--dark .link-row a {
	color: #9ab2ff;
}

body.page-home--dark .contact-card__link:hover,
body.page-home--dark .project-link:hover,
body.page-home--dark .link-row a:hover {
	color: #c3d1ff;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
}

.page-shell {
	width: var(--content-width);
	margin: 0 auto;
	padding: 1.2rem 0 4rem;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	backdrop-filter: blur(20px);
	background: rgba(255, 255, 255, 0.68);
	border-bottom: 1px solid rgba(118, 138, 170, 0.14);
}

.site-header__inner {
	width: var(--content-width);
	margin: 0 auto;
	padding: 1rem 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.site-header__toggle {
	display: none;
	appearance: none;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.72rem 0.95rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: rgba(84, 104, 255, 0.05);
	color: var(--text-soft);
	font: inherit;
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
	transition: 160ms ease;
	white-space: nowrap;
	flex: 0 0 auto;
}

.site-header__toggle:hover {
	background: rgba(84, 104, 255, 0.1);
	border-color: rgba(84, 104, 255, 0.14);
	color: var(--text);
}

.site-header__toggle::after {
	content: '▾';
	font-size: 0.82em;
	line-height: 1;
	transition: transform 160ms ease;
}

.site-header--nav-collapsible .site-header__toggle {
	display: inline-flex;
}

.site-header--nav-collapsible:not(.site-header--nav-expanded) .nav-links {
	display: none;
}

.site-header--nav-collapsible.site-header--nav-expanded .site-header__inner {
	flex-wrap: wrap;
	align-items: flex-start;
}

.site-header--nav-collapsible.site-header--nav-expanded .nav-links {
	width: 100%;
	justify-content: flex-start;
	padding-top: 0.2rem;
}

.site-header--nav-collapsible.site-header--nav-expanded .site-header__toggle::after {
	transform: rotate(180deg);
}

.site-header--nav-measuring .site-header__toggle {
	visibility: hidden;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	min-width: 0;
}

.brand__avatar {
	width: 48px;
	height: 48px;
	border-radius: 16px;
	object-fit: cover;
	border: 1px solid rgba(111, 124, 255, 0.5);
	box-shadow: 0 0 0 6px rgba(111, 124, 255, 0.12);
}

.brand__copy strong,
.brand__copy span {
	display: block;
}

.brand__copy strong {
	font-size: 0.98rem;
	font-weight: 700;
}

.brand__copy span {
	font-size: 0.82rem;
	color: var(--text-muted);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.55rem;
}

.nav-links a {
	padding: 0.72rem 0.95rem;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--text-soft);
	border: 1px solid transparent;
	transition: 160ms ease;
}

.nav-links a:hover,
.nav-links a.active {
	background: rgba(84, 104, 255, 0.08);
	border-color: rgba(84, 104, 255, 0.14);
	color: var(--text);
}

.nav-links a.nav-link--chatbot {
	background: linear-gradient(135deg, #8b5cf6, #5468ff 52%, #12b8af);
	border-color: rgba(84, 104, 255, 0.22);
	box-shadow: 0 14px 28px rgba(84, 104, 255, 0.2);
	color: #fff;
}

.nav-links a.nav-link--chatbot:hover,
.nav-links a.nav-link--chatbot.active {
	background: linear-gradient(135deg, #7c49f2, #455bff 52%, #0ea79f);
	border-color: rgba(84, 104, 255, 0.28);
	color: #fff;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
	gap: 1.5rem;
	align-items: stretch;
	margin-top: 1.2rem;
}

.hero--single {
	grid-template-columns: 1fr;
}

.hero--home {
	gap: 2.4rem;
}

.panel {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
	backdrop-filter: blur(18px);
}

.hero-card {
	padding: 2.4rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.2rem;
	min-height: 420px;
}

.hero-copy {
	padding: 2.4rem 0 2.4rem 2.4rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-end;
	gap: 1.2rem;
	min-height: 420px;
	text-align: right;
}

.hero-copy .lead {
	max-width: 62ch;
	margin-left: auto;
}

.hero-copy .button-row {
	justify-content: flex-end;
}

.hero-card--motorhub {
	position: relative;
	justify-content: flex-end;
	background:
		linear-gradient(180deg, rgba(8, 13, 24, 0.08) 0%, rgba(8, 13, 24, 0.3) 42%, rgba(8, 13, 24, 0.82) 100%),
		url('pictures/banners/motorhub_hero.png') center / cover no-repeat;
	border-color: rgba(255, 255, 255, 0.12);
	overflow: hidden;
}

.hero-card--flashlingo {
	position: relative;
	justify-content: flex-end;
	background:
		linear-gradient(180deg, rgba(8, 13, 24, 0.08) 0%, rgba(8, 13, 24, 0.3) 42%, rgba(8, 13, 24, 0.82) 100%),
		url('pictures/banners/flashlingo_hero.png') center / cover no-repeat;
	border-color: rgba(255, 255, 255, 0.12);
	overflow: hidden;
}

.hero-card--motorhub::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(9, 14, 26, 0.5) 0%, rgba(9, 14, 26, 0.14) 48%, rgba(9, 14, 26, 0.04) 100%);
	pointer-events: none;
}

.hero-card--flashlingo::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(9, 14, 26, 0.5) 0%, rgba(9, 14, 26, 0.14) 48%, rgba(9, 14, 26, 0.04) 100%);
	pointer-events: none;
}

.hero-aside {
	padding: 1.2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 0;
	overflow: hidden;
}

.hero-aside__intro {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.hero-aside__note {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--text-muted);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	width: fit-content;
	padding: 0.52rem 0.9rem;
	border-radius: 999px;
	background: rgba(111, 124, 255, 0.12);
	border: 1px solid rgba(111, 124, 255, 0.22);
	color: #3346cc;
	font-size: 0.88rem;
	font-weight: 600;
}

.eyebrow::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #4ade80;
	box-shadow: 0 0 14px rgba(74, 222, 128, 0.5);
}

.eyebrow--compact {
	padding: 0.45rem 0.8rem;
	font-size: 0.8rem;
}

h1,
.h1 {
	margin: 0;
	font-size: clamp(2.7rem, 5vw, 5rem);
	line-height: 0.95;
	letter-spacing: -0.05em;
}

h2,
.h2 {
	margin: 0;
	font-size: clamp(1.9rem, 3vw, 2.7rem);
	line-height: 1;
	letter-spacing: -0.04em;
}

h3 {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.2;
}

.lead {
	font-size: 1.04rem;
	line-height: 1.8;
	color: var(--text-soft);
	max-width: 66ch;
}

.lead--full {
	max-width: none;
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	padding: 0.95rem 1.3rem;
	border-radius: 16px;
	border: 1px solid transparent;
	font-weight: 700;
	transition: 160ms ease;
}

.button__icon {
	width: 18px;
	height: 18px;
	object-fit: contain;
	flex-shrink: 0;
}

.button__icon--sm {
	width: 16px;
	height: 16px;
}

.button:hover {
	transform: translateY(-2px);
}

.button--primary {
	background: linear-gradient(135deg, var(--accent), #5360ff 48%, var(--accent-strong));
	box-shadow: 0 20px 44px rgba(95, 105, 255, 0.35);
    color: #fff;
}

.button--sparkle {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	will-change: transform;
}

.button--sparkle::after {
	content: '';
	position: absolute;
	inset: -10px;
	border-radius: 24px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.12) 38%, transparent 70%);
	filter: blur(10px);
	opacity: 0;
	transform: scale(0.88);
	z-index: -1;
	animation: button-sparkle-aura 1800ms ease-out 180ms both;
}

.button--sparkle__label {
	position: relative;
	z-index: 2;
}

.button--sparkle__star {
	position: absolute;
	z-index: 1;
	font-size: 0.95rem;
	line-height: 1;
	color: rgba(255, 255, 255, 0.96);
	text-shadow:
		0 1px 2px rgba(8, 16, 32, 0.7),
		0 0 14px rgba(255, 255, 255, 0.78),
		0 0 28px rgba(84, 104, 255, 0.42);
	opacity: 0;
	pointer-events: none;
	animation: button-sparkle-star 2400ms ease-in-out infinite;
}

.button--sparkle__star--one {
	top: 0.18rem;
	left: 0.55rem;
	animation-delay: 300ms;
}

.button--sparkle__star--two {
	top: 0.16rem;
	right: 0.7rem;
	font-size: 0.78rem;
	animation-delay: 750ms;
}

.button--sparkle__star--three {
	bottom: 0.14rem;
	right: 0.55rem;
	font-size: 0.86rem;
	animation-delay: 1150ms;
}

.button--sparkle__star--four {
	bottom: 0.12rem;
	left: 0.72rem;
	font-size: 0.72rem;
	animation-delay: 1500ms;
}

.button--secondary {
	background: rgba(84, 104, 255, 0.06);
	border-color: var(--border);
	color: var(--text-soft);
}

.button--ghost {
	background: rgba(255, 255, 255, 0.38);
	border-color: var(--border);
	color: var(--text-soft);
}

.button--secondary:hover,
.button--ghost:hover {
	background: rgba(84, 104, 255, 0.1);
	color: var(--text);
	border-color: var(--border-strong);
}

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

.section {
	margin-top: 1.6rem;
}

.section-head {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 1rem;
	padding: 0.5rem 0.35rem 1rem;
	margin: 0.35rem 0 1rem;
}

.section-copy {
	max-width: 62ch;
	color: var(--text-soft);
	line-height: 1.7;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.card-grid--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.feature-card,
.publication-card,
.timeline-card,
.download-strip,
.metric-card,
.info-card,
.quote-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	backdrop-filter: blur(18px);
}

.card,
.feature-card,
.info-card,
.metric-card {
	padding: 1.35rem;
}

.feature-card,
.info-card {
	display: flex;
	flex-direction: column;
	gap: 0.95rem;
}

.feature-card__header {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.feature-card__title {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.feature-card > h3,
.info-card > h2,
.info-card > h3 {
	margin-top: 0.1rem;
}

.card--link {
	display: block;
	position: relative;
	cursor: pointer;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card--link::after {
	content: '→';
	position: absolute;
	right: 1.2rem;
	top: 1.15rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--accent);
	opacity: 0;
	transform: translateX(-6px);
	transition: transform 180ms ease, opacity 180ms ease;
}

.card--link:hover,
.card--link:focus-visible {
	transform: translateY(-6px);
	box-shadow: 0 28px 54px rgba(83, 101, 132, 0.22);
	border-color: rgba(84, 104, 255, 0.2);
	background: rgba(255, 255, 255, 0.92);
}

.card--link:hover::after,
.card--link:focus-visible::after {
	opacity: 1;
	transform: translateX(0);
}

.card--link:focus-visible {
	outline: 3px solid rgba(84, 104, 255, 0.16);
	outline-offset: 3px;
}

.info-card--feature {
	overflow: hidden;
	padding: 0;
}

.info-card--banner {
	overflow: hidden;
	padding: 0;
}

.info-card__body {
	padding: 1.3rem;
}

.info-card__banner {
	width: 100%;
	height: 168px;
	object-fit: cover;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	display: block;
}

.feature-hero {
	position: relative;
	min-height: 260px;
	overflow: hidden;
}

.feature-hero__image {
	width: 100%;
	height: 100%;
	min-height: 260px;
	object-fit: cover;
	border: 0;
	border-radius: 0;
	background: none;
}

.feature-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 32, 51, 0.04) 0%, rgba(20, 32, 51, 0.16) 48%, rgba(20, 32, 51, 0.72) 100%);
	pointer-events: none;
}

.feature-hero__content {
	position: absolute;
	left: 1.3rem;
	right: 1.3rem;
	bottom: 1.2rem;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	color: #fff;
}

.feature-hero__content h2 {
	color: #fff;
	max-width: 12ch;
	text-wrap: balance;
}

.card img,
.publication-card img,
.app-icon,
.cover-image {
	border-radius: 18px;
	border: 1px solid rgba(84, 104, 255, 0.08);
	background: rgba(246, 249, 255, 0.92);
}

.card__image {
	width: 56px;
	height: 56px;
	padding: 0.75rem;
	object-fit: contain;
	margin-bottom: 0.9rem;
}

.feature-card__icon {
	margin-bottom: 0;
	flex-shrink: 0;
}

.card__title-row {
	display: flex;
	justify-content: space-between;
	gap: 0.8rem;
	align-items: flex-start;
	margin-bottom: 0.55rem;
}

.contact-card {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.contact-card__icon {
	width: 52px;
	height: 52px;
	padding: 0.75rem;
	border-radius: 16px;
	background: rgba(84, 104, 255, 0.08);
	border: 1px solid rgba(84, 104, 255, 0.1);
	object-fit: contain;
	flex-shrink: 0;
}

.contact-card__link {
	display: inline-block;
	margin-top: 0.35rem;
	font-weight: 700;
	color: var(--accent);
	word-break: break-word;
}

.contact-card__link:hover {
	color: #3144d8;
}

.tag,
.meta-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.38rem 0.7rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	background: rgba(84, 104, 255, 0.07);
	border: 1px solid rgba(84, 104, 255, 0.1);
	color: var(--text-soft);
}

.card p,
.feature-card p,
.publication-card p,
.info-card p,
.timeline-card p {
	margin: 0;
	line-height: 1.7;
	color: var(--text-soft);
}

.card ul,
.info-card ul,
.feature-card ul {
	margin: 0.9rem 0 0;
	padding-left: 1.1rem;
	color: var(--text-soft);
	line-height: 1.7;
}

.card ul li + li,
.info-card ul li + li,
.feature-card ul li + li {
	margin-top: 0.45rem;
}

.split {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 1rem;
}

.split--equal {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline {
	display: grid;
	gap: 1rem;
}

.timeline-card {
	padding: 1.25rem;
	position: relative;
	overflow: hidden;
}

.timeline-card__logo {
	width: 88px;
	height: 48px;
	object-fit: contain;
	object-position: left center;
	margin: 0 0 0.9rem;
}

.timeline-card__logo--placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: var(--accent);
	text-transform: uppercase;
}

.timeline-card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: linear-gradient(180deg, var(--accent), var(--accent-strong));
}

.timeline-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-bottom: 0.8rem;
}

.timeline-card__org {
	font-weight: 700;
	color: var(--text);
	margin-bottom: 0.3rem !important;
}

.timeline-card__location {
	color: var(--text-muted);
	margin-bottom: 0.9rem !important;
}

.timeline-card__list {
	margin: 0 0 1rem;
	padding-left: 1.15rem;
	color: var(--text-soft);
	line-height: 1.7;
}

.timeline-card__list li + li {
	margin-top: 0.45rem;
}

.timeline-card__skills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.stat-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.9rem;
}

.stat-grid--stacked {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 100%;
	min-width: 0;
}

.stat-grid__actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.stat-grid__caption {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.6;
	color: var(--text-muted);
}

.stat-grid--stacked .stat-grid__actions {
	margin-top: auto;
}

.stat-grid__actions .button {
	width: 100%;
	justify-content: flex-start;
	flex-wrap: wrap;
	min-width: 0;
}

.metric-card {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 0;
}

.metric-card__eyebrow {
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.metric-card strong {
	display: block;
	font-size: 1.95rem;
	line-height: 1;
	margin-bottom: 0.15rem;
}

.metric-card__summary {
	margin-top: 0.1rem;
}

.metric-card--link {
	display: block;
	position: relative;
	cursor: pointer;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.metric-card--link::after {
	content: '→';
	position: absolute;
	right: 1.2rem;
	top: 1rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--accent);
	opacity: 0;
	transform: translateX(-6px);
	transition: transform 180ms ease, opacity 180ms ease;
}

.metric-card--link:hover,
.metric-card--link:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 28px 54px rgba(83, 101, 132, 0.22);
	border-color: rgba(84, 104, 255, 0.2);
	background: rgba(255, 255, 255, 0.92);
}

.metric-card--link:hover::after,
.metric-card--link:focus-visible::after {
	opacity: 1;
	transform: translateX(0);
}

.metric-card--link:focus-visible {
	outline: 3px solid rgba(84, 104, 255, 0.16);
	outline-offset: 3px;
}

.metric-card span {
	color: var(--text-muted);
	line-height: 1.5;
	font-size: 0.92rem;
}

.cover-image {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.publication-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.publication-card {
	overflow: hidden;
}

.publication-card img {
	width: 100%;
	height: 250px;
	object-fit: cover;
	border-radius: 0;
	border: 0;
}

.publication-card__body {
	padding: 1.2rem;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.publication-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.project-stack {
	display: grid;
	gap: 1.25rem;
}

.project-entry {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
	overflow: hidden;
	backdrop-filter: blur(18px);
	display: flex;
	flex-direction: column;
}

.project-entry__body {
	padding: 1.35rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.project-entry__footer {
	padding: 0 1.35rem 1.35rem;
	display: flex;
	justify-content: flex-end;
}

.project-entry__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
}

.project-entry__top h3 {
	font-size: 1.45rem;
	margin-bottom: 0.35rem;
}

.project-entry__year {
	white-space: nowrap;
}

.project-entry__summary {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--text-soft);
}

.project-media-stack {
	padding: 0 1.35rem 1.35rem;
}

.project-carousel {
	border: 1px solid rgba(84, 104, 255, 0.1);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.72);
	overflow: hidden;
}

.project-carousel__viewport {
	overflow: hidden;
}

.project-carousel__track {
	display: flex;
	transition: transform 260ms ease;
	will-change: transform;
}

.project-media {
	margin: 0;
	min-width: 100%;
}

.project-media img {
	display: block;
	width: 100%;
	height: 380px;
	object-fit: contain;
	object-position: center;
	padding: 1rem 1rem 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.project-media figcaption {
	padding: 0.75rem 1rem 1rem;
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--text-muted);
	min-height: 72px;
}

.project-carousel__controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	padding: 0.9rem 1rem 1rem;
	border-top: 1px solid rgba(84, 104, 255, 0.08);
	background: rgba(84, 104, 255, 0.03);
}

.project-carousel__nav {
	display: flex;
	gap: 0.55rem;
}

.project-carousel__button {
	appearance: none;
	border: 1px solid rgba(84, 104, 255, 0.14);
	background: rgba(255, 255, 255, 0.88);
	color: var(--accent);
	width: 40px;
	height: 40px;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 800;
	cursor: pointer;
	transition: 160ms ease;
}

.project-carousel__button:hover {
	background: rgba(84, 104, 255, 0.08);
}

.project-carousel__button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.project-carousel__status {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--text-muted);
}

.project-section-heading {
	padding: 1.45rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	margin-bottom: 1rem;
}

.project-section-heading p {
	margin: 0;
	max-width: 72ch;
	color: var(--text-soft);
	line-height: 1.8;
}

.project-links,
.project-keywords {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.project-links--end {
	justify-content: flex-end;
}

.project-link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.72rem 0.95rem;
	border-radius: 999px;
	background: rgba(84, 104, 255, 0.06);
	border: 1px solid rgba(84, 104, 255, 0.12);
	font-weight: 700;
	color: var(--accent);
	transition: 160ms ease;
}

.project-link:hover {
	background: rgba(84, 104, 255, 0.1);
	color: #3144d8;
}

.project-details {
	border: 1px solid rgba(84, 104, 255, 0.1);
	border-radius: 20px;
	background: rgba(84, 104, 255, 0.04);
	overflow: hidden;
}

.project-details summary {
	list-style: none;
	cursor: pointer;
	padding: 1rem 1.1rem;
	font-weight: 700;
	color: var(--text);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.project-details summary::-webkit-details-marker {
	display: none;
}

.project-details summary::after {
	content: '+';
	font-size: 1.1rem;
	color: var(--accent);
	flex-shrink: 0;
}

.project-details[open] summary::after {
	content: '–';
}

.project-details__content {
	padding: 0 1.1rem 1.1rem;
	color: var(--text-soft);
	line-height: 1.75;
}

.project-details__content p {
	margin: 0;
	line-height: 1.8;
}

.project-details__content p + p,
.project-details__content ul,
.project-details__content .project-links,
.project-details__content .project-keywords {
	margin-top: 0.95rem;
}

.project-details__content ul {
	padding-left: 1.1rem;
}

.project-details__content li + li {
	margin-top: 0.45rem;
}

.project-compact-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.project-compact {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	padding: 1.35rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.project-compact__actions {
	margin-top: auto;
	padding-top: 0.2rem;
}

.project-compact__head {
	display: flex;
	align-items: center;
	gap: 0.9rem;
}

.project-compact__icon {
	width: 64px;
	height: 64px;
	border-radius: 18px;
	object-fit: contain;
	padding: 0.45rem;
	background: rgba(84, 104, 255, 0.06);
	border: 1px solid rgba(84, 104, 255, 0.08);
	flex-shrink: 0;
}

.project-compact p {
	margin: 0;
	line-height: 1.75;
	color: var(--text-soft);
}

.project-compact details {
	margin-top: auto;
}

.project-empty {
	padding: 0.72rem 0.95rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.6);
	border: 1px dashed rgba(118, 138, 170, 0.28);
	color: var(--text-muted);
	font-size: 0.9rem;
	font-weight: 600;
	width: fit-content;
}

.link-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: auto;
}

.link-row a {
	font-weight: 700;
	color: var(--accent);
}

.link-row a:hover {
	color: #3144d8;
}

.quote-card {
	padding: 1.3rem;
	font-size: 1rem;
	line-height: 1.85;
	color: var(--text-soft);
}

.quote-card strong {
	color: var(--text);
}

.app-spotlight {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 1.2rem;
	align-items: center;
}

.app-icon {
	width: 120px;
	height: 120px;
	padding: 0.65rem;
	object-fit: contain;
	border-radius: 28px;
}

.placeholder-shot {
	min-height: 240px;
	padding: 1.4rem;
	border-radius: var(--radius-lg);
	border: 1px dashed rgba(148, 163, 184, 0.3);
	background: linear-gradient(135deg, rgba(84, 104, 255, 0.08), rgba(18, 184, 175, 0.05));
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.6rem;
	color: var(--text-soft);
}

.download-strip {
	padding: 1.35rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.download-strip img {
	max-width: 180px;
	height: auto;
}

.app-store-badge {
	display: inline-flex;
	height: 52px;
	align-items: center;
	border-radius: 16px;
	transition: 160ms ease;
}

.app-store-badge:hover {
	transform: translateY(-2px);
}

.app-store-badge:focus-visible {
	outline: 3px solid rgba(84, 104, 255, 0.16);
	outline-offset: 3px;
}

.app-store-badge img {
	display: block;
	height: 100%;
	width: auto;
	max-width: none;
}

.badge-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.app-hero__layout {
	display: block;
	width: 100%;
}

.app-hero__content {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 0;
	max-width: 1040px;
}

.app-hero__content--overlay {
	position: relative;
	z-index: 1;
	justify-content: flex-end;
	min-height: 100%;
	max-width: 760px;
}

.hero-card--motorhub .app-hero__header,
.hero-card--motorhub .app-hero__content,
.hero-card--flashlingo .app-hero__header,
.hero-card--flashlingo .app-hero__content {
	color: #fff;
}

.hero-card--motorhub .lead,
.hero-card--motorhub .section-copy,
.hero-card--flashlingo .lead,
.hero-card--flashlingo .section-copy {
	color: rgba(255, 255, 255, 0.88);
}

.hero-card--motorhub .eyebrow,
.hero-card--flashlingo .eyebrow {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.hero-card--motorhub .eyebrow::before,
.hero-card--flashlingo .eyebrow::before {
	background: #7cf7c8;
	box-shadow: 0 0 14px rgba(124, 247, 200, 0.45);
}

.hero-card--motorhub .meta-chip,
.hero-card--flashlingo .meta-chip {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.94);
}

.app-hero__header {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 1.2rem;
	align-items: center;
}

.app-hero__media {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	align-items: end;
	min-width: 0;
}

.phone-shot,
.phone-shot {
	padding: 0.9rem;
}

.phone-shot--offset {
	transform: translateY(28px);
}

.phone-shot img {
	width: 100%;
	height: 520px;
	object-fit: contain;
	border-radius: 24px;
	border: 0;
	background: transparent;
}

.app-summary {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-list {
	margin: 0.9rem 0 0;
	padding-left: 1.1rem;
	color: var(--text-soft);
	line-height: 1.7;
}

.feature-list li + li {
	margin-top: 0.45rem;
}

.screenshot-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.screenshot-grid__image {
	width: 100%;
	height: 520px;
	object-fit: contain;
	display: block;
	border-radius: 30px;
	border: 1px solid rgba(84, 104, 255, 0.12);
	background: transparent;
}

.screenshot-grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer {
	padding: 2.2rem 0 0;
	color: var(--text-muted);
	font-size: 0.9rem;
	text-align: center;
}

.footer a {
	color: var(--text-soft);
}

.kicker {
	color: var(--accent-strong);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.78rem;
	font-weight: 800;
}

.kicker--light {
	color: rgba(255, 255, 255, 0.92);
}

@keyframes button-sparkle-intro {
	0% {
		opacity: 0;
		transform: translateY(10px) scale(0.96);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes button-sparkle-aura {
	0% {
		opacity: 0;
		transform: scale(0.88);
	}
	55% {
		opacity: 0.85;
		transform: scale(1.06);
	}
	100% {
		opacity: 0.38;
		transform: scale(1);
	}
}

@keyframes button-sparkle-star {
	0%,
	100% {
		opacity: 0;
		transform: translate3d(0, 6px, 0) scale(0.7);
	}
	20% {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(1);
	}
	45% {
		opacity: 0.9;
		transform: translate3d(0, -4px, 0) scale(1.08);
	}
	70% {
		opacity: 0.35;
		transform: translate3d(0, -8px, 0) scale(0.84);
	}
}

@media (prefers-reduced-motion: reduce) {
	.button,
	.button--sparkle,
	.button--sparkle::after,
	.button--sparkle__star {
		animation: none;
		transition: none;
	}

	.button--sparkle::after,
	.button--sparkle__star {
		opacity: 1;
		transform: none;
	}

	.button--sparkle::after {
		opacity: 0.24;
	}

	.button--sparkle__star {
		opacity: 0.75;
	}

	.button:hover {
		transform: none;
	}
	}

@media (max-width: 1100px) {
	.hero,
	.split,
	.publication-grid,
	.card-grid,
	.card-grid--two {
		grid-template-columns: 1fr 1fr;
	}

	.screenshot-grid,
	.screenshot-grid--three {
		grid-template-columns: 1fr;
	}

	.app-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hero {
		grid-template-columns: 1fr;
	}

	.hero-card {
		min-height: auto;
	}

	.hero-copy {
		min-height: auto;
		padding: 0;
	}
}

@media (max-width: 760px) {
	.site-header__inner,
	.page-shell {
		width: min(100vw - 1rem, 1200px);
	}

	.site-header__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.site-header--nav-collapsible .site-header__inner {
		flex-direction: row;
		align-items: center;
	}

	.site-header--nav-collapsible.site-header--nav-expanded .site-header__inner {
		align-items: flex-start;
	}

	.site-header--nav-collapsible .brand {
		flex: 1 1 auto;
		min-width: 0;
	}

	.nav-links {
		justify-content: flex-start;
	}

	.site-header__toggle {
		padding: 0.66rem 0.88rem;
		font-size: 0.84rem;
	}

	.card-grid,
	.card-grid--two,
	.split,
	.publication-grid,
	.stat-grid,
	.app-spotlight,
	.project-compact-grid,
	.app-summary,
	.screenshot-grid,
	.screenshot-grid--three {
		grid-template-columns: 1fr;
	}

	.app-hero__header {
		grid-template-columns: 1fr;
	}

	.app-hero__media {
		grid-template-columns: 1fr;
	}

	.project-entry__top {
		flex-direction: column;
	}

	.phone-shot--offset {
		transform: none;
	}

	.project-media img {
		height: 260px;
	}

	.phone-shot img,
	.screenshot-card img {
		height: 440px;
	}

	.project-carousel__controls {
		flex-direction: column;
		align-items: stretch;
	}

	.project-links--end {
		justify-content: flex-start;
	}

	.hero-card,
	.hero-aside,
	.card,
	.feature-card,
	.info-card,
	.metric-card,
	.timeline-card,
	.publication-card__body,
	.download-strip,
	.quote-card {
		padding: 1.1rem;
	}

	.download-strip {
		flex-direction: column;
		align-items: flex-start;
	}

	.app-icon {
		width: 96px;
		height: 96px;
	}

	h1,
	.h1 {
		font-size: clamp(2.3rem, 11vw, 3.4rem);
	}

	.hero-copy {
		align-items: flex-start;
		text-align: left;
	}

	.hero-copy .lead {
		margin-left: 0;
	}

	.hero-copy .button-row {
		justify-content: flex-start;
	}
}
