html {
	--primary-text: #152033;
	--secondary-text: #54657d;
	--muted-text: #718096;
	--primary-background: #f6f8fb;
	--secondary-background: #ffffff;
	--elevated-background: rgba(255, 255, 255, 0.88);
	--accent: #0f8b8d;
	--accent-strong: #0a6f73;
	--accent-soft: rgba(15, 139, 141, 0.12);
	--cta-background: rgba(15, 139, 141, 0.28);
	--cta-background-hover: rgba(15, 139, 141, 0.38);
	--cta-border: rgba(10, 111, 115, 0.52);
	--cta-border-hover: rgba(10, 111, 115, 0.72);
	--cta-sheen: rgba(255, 255, 255, 0.5);
	--cta-text: var(--primary-text);
	--cta-shadow: 0 14px 34px rgba(15, 139, 141, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.66);
	--cta-shadow-hover:
		0 18px 42px rgba(15, 139, 141, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.76);
	--border: rgba(21, 32, 51, 0.12);
	--shadow-sm: 0 10px 30px rgba(21, 32, 51, 0.08);
	--shadow-md: 0 20px 55px rgba(21, 32, 51, 0.14);
	--focus-ring: 0 0 0 0.2rem rgba(15, 139, 141, 0.25);
	scroll-behavior: smooth;
}

html[data-theme='dark'] {
	--primary-text: #eef4ff;
	--secondary-text: #b5c3d7;
	--muted-text: #8fa0b8;
	--primary-background: #0d1420;
	--secondary-background: #141f2d;
	--elevated-background: rgba(20, 31, 45, 0.9);
	--accent: #38c6bd;
	--accent-strong: #67e8de;
	--accent-soft: rgba(56, 198, 189, 0.14);
	--cta-background: rgba(56, 198, 189, 0.24);
	--cta-background-hover: rgba(56, 198, 189, 0.34);
	--cta-border: rgba(103, 232, 222, 0.5);
	--cta-border-hover: rgba(103, 232, 222, 0.72);
	--cta-sheen: rgba(255, 255, 255, 0.12);
	--cta-text: var(--primary-text);
	--cta-shadow:
		0 16px 38px rgba(0, 0, 0, 0.28), 0 0 28px rgba(56, 198, 189, 0.18),
		inset 0 1px 0 rgba(255, 255, 255, 0.16);
	--cta-shadow-hover:
		0 20px 46px rgba(0, 0, 0, 0.32), 0 0 38px rgba(56, 198, 189, 0.26),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	--border: rgba(238, 244, 255, 0.13);
	--shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.28);
	--shadow-md: 0 22px 60px rgba(0, 0, 0, 0.38);
	--focus-ring: 0 0 0 0.2rem rgba(56, 198, 189, 0.3);
}

* {
	box-sizing: border-box;
}

body {
	color: var(--primary-text);
	text-align: left;
	font-family:
		'Roboto',
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		sans-serif;
	background:
		radial-gradient(circle at top left, var(--accent-soft), transparent 34rem),
		linear-gradient(180deg, var(--primary-background), var(--primary-background));
	font-size: 1rem;
	line-height: 1.6;
	min-height: 100vh;
	padding-top: 0;
}

a {
	color: var(--accent);
}

a:hover {
	color: var(--accent-strong);
}

.container {
	max-width: 1180px;
}

@media (min-width: 1600px) {
	.container {
		max-width: 1320px;
	}
}

@media (min-width: 2000px) {
	.container {
		max-width: 1480px;
	}
}

.site-shell {
	position: relative;
	z-index: 1;
}

.site-shell.container {
	padding-right: clamp(1.35rem, 4vw, 3rem);
	padding-left: clamp(1.35rem, 4vw, 3rem);
}

.hero-section {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.72fr);
	gap: clamp(2.5rem, 6vw, 6.5rem);
	align-items: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: clamp(3.5rem, 8vh, 7rem) 0 clamp(4rem, 8vh, 7rem);
	position: relative;
}

.hero-content {
	max-width: 46rem;
}

.hero-kicker,
.section-eyebrow,
.project-card-topline {
	color: var(--accent);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.summary h1 {
	color: var(--primary-text);
	font-size: clamp(3rem, 6.6vw, 5.8rem);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 0.95;
	margin: 0.58rem 0 1.05rem;
}

.hero-lede {
	color: var(--primary-text);
	font-size: clamp(1.22rem, 2.05vw, 1.58rem);
	font-weight: 400;
	line-height: 1.45;
	margin: 0 0 1rem;
	max-width: 43rem;
}

.hero-lede-highlight {
	color: var(--accent-strong);
	font-weight: 700;
}

.hero-proof-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	width: 100%;
	max-width: 43rem;
	margin-top: 0.82rem;
}

.hero-proof-card {
	position: relative;
	display: grid;
	gap: 0.16rem;
	min-width: 0;
	padding: 0.36rem 0.88rem;
}

.hero-proof-card:first-child {
	padding-left: 0;
}

.hero-proof-card:last-child {
	padding-right: 0;
}

.hero-proof-card + .hero-proof-card::before {
	content: '';
	position: absolute;
	top: 0.18rem;
	bottom: 0.18rem;
	left: 0;
	width: 1px;
	background-color: var(--border);
}

.hero-proof-value {
	overflow-wrap: anywhere;
	color: var(--primary-text);
	font-size: clamp(1.08rem, 1.55vw, 1.28rem);
	font-weight: 850;
	letter-spacing: 0;
	line-height: 1.1;
}

.hero-proof-value--accent {
	color: var(--accent-strong);
	font-size: clamp(1.24rem, 1.85vw, 1.54rem);
}

.hero-proof-label {
	overflow-wrap: anywhere;
	color: var(--secondary-text);
	font-size: clamp(0.86rem, 1.1vw, 0.98rem);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.15;
}

.section-heading p,
.project-description {
	color: var(--secondary-text);
}

.hero-actions {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 0.75rem;
	margin-top: 1.45rem;
	align-items: center;
}

.hero-contact-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0.85rem;
}

.hero-contact-button {
	display: inline-flex;
	align-items: center;
	gap: 0.38rem;
	min-height: 2rem;
	padding: 0.34rem 0.62rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.32);
	color: var(--secondary-text);
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition:
		transform 180ms ease,
		background-color 180ms ease,
		border-color 180ms ease;
}

.hero-contact-button:hover,
.hero-contact-button:focus {
	color: var(--primary-text);
	text-decoration: none;
	transform: translateY(-1px);
	border-color: rgba(15, 139, 141, 0.32);
	background-color: var(--accent-soft);
}

html[data-theme='dark'] .hero-contact-button {
	background-color: rgba(255, 255, 255, 0.045);
}

.social-icon {
	display: block;
	width: 1rem;
	height: 1rem;
	color: currentColor;
	fill: currentColor;
	flex: 0 0 auto;
}

.social-icon--email {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.9;
}

.social-icon--scholar {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.hero-contact-button .social-icon {
	color: var(--accent-strong);
	transition: color 180ms ease;
}

.hero-contact-button:hover .social-icon,
.hero-contact-button:focus .social-icon {
	color: var(--accent);
}

.hero-portrait-wrap {
	display: flex;
	justify-content: center;
	position: relative;
	z-index: 0;
}

.circle {
	display: block;
	width: 12em;
	height: 12em;
	margin: auto;
	background-size: 130%;
	background-repeat: no-repeat;
	background-position: center center;
	border-radius: 50%;
	box-shadow: var(--shadow-md);
}

.hero-portrait {
	--portrait-size: clamp(16rem, 28vw, 26rem);
	width: var(--portrait-size);
	max-width: 100%;
	height: auto;
	aspect-ratio: 1;
	border: 0.55rem solid var(--elevated-background);
	outline: 1px solid var(--border);
	background-size: 128%;
	position: relative;
	flex: 0 0 auto;
	overflow: hidden;
}

.hero-portrait-wrap::before {
	content: '';
	position: absolute;
	width: clamp(17rem, 30vw, 27.5rem);
	height: clamp(17rem, 30vw, 27.5rem);
	border-radius: 50%;
	background:
		linear-gradient(135deg, var(--accent-soft), transparent), var(--elevated-background);
	transform: translate(1rem, 1rem);
	border: 1px solid var(--border);
	z-index: -1;
}

.scroll-indicator {
	position: fixed;
	right: 0;
	bottom: max(0.9rem, env(safe-area-inset-bottom));
	left: 0;
	z-index: 1020;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	width: max-content;
	min-height: 2.75rem;
	margin: 0 auto;
	padding: 0.34rem 0.72rem 0.34rem 0.38rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background:
		linear-gradient(135deg, var(--accent-soft), transparent 74%), var(--elevated-background);
	color: var(--secondary-text);
	box-shadow: var(--shadow-sm);
	backdrop-filter: blur(14px);
	font-size: 0.74rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	text-decoration: none;
	font-weight: 800;
	opacity: var(--scroll-indicator-opacity, 1);
	transition:
		opacity 120ms ease-out,
		transform 180ms ease,
		border-color 180ms ease,
		box-shadow 180ms ease,
		color 180ms ease;
	will-change: opacity;
}

.scroll-indicator:hover,
.scroll-indicator:focus {
	color: var(--accent-strong);
	text-decoration: none;
	transform: translateY(-2px);
	border-color: rgba(15, 139, 141, 0.34);
	box-shadow: 0 16px 42px rgba(21, 32, 51, 0.14);
	outline: none;
}

.scroll-indicator:focus-visible {
	box-shadow: var(--shadow-sm), var(--focus-ring);
}

html[data-theme='dark'] .scroll-indicator:hover,
html[data-theme='dark'] .scroll-indicator:focus {
	box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
}

.scroll-indicator--hidden {
	pointer-events: none;
}

.scroll-indicator__label {
	display: inline-block;
}

.scroll-indicator__cue {
	position: relative;
	display: inline-flex;
	justify-content: center;
	width: 1.32rem;
	height: 2rem;
	padding-top: 0.34rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.48);
	color: var(--accent-strong);
	overflow: hidden;
	flex: 0 0 auto;
}

html[data-theme='dark'] .scroll-indicator__cue {
	background-color: rgba(255, 255, 255, 0.06);
}

.scroll-indicator__cue::after {
	content: '';
	position: absolute;
	top: 0.62rem;
	bottom: 0.42rem;
	left: 50%;
	width: 1px;
	background-color: currentColor;
	opacity: 0.2;
	transform: translateX(-50%);
}

.scroll-indicator__dot {
	position: relative;
	z-index: 1;
	width: 0.34rem;
	height: 0.34rem;
	border-radius: 50%;
	background-color: currentColor;
	box-shadow: 0 0 0 0.2rem var(--accent-soft);
	animation: scroll-indicator-dot 1.8s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

@keyframes scroll-indicator-dot {
	0% {
		opacity: 0;
		transform: translateY(0);
	}

	18% {
		opacity: 1;
	}

	70% {
		opacity: 0.78;
		transform: translateY(0.95rem);
	}

	100% {
		opacity: 0;
		transform: translateY(0.95rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.scroll-indicator__dot {
		animation: none;
		opacity: 1;
		transform: translateY(0.42rem);
	}
}

.main-element {
	padding-top: clamp(4rem, 8vw, 7rem);
	scroll-margin-top: 6rem;
}

.portfolio-section {
	text-align: left;
}

.section-heading {
	max-width: 46rem;
	margin: 0 auto 1.25rem;
	text-align: center;
}

.section-heading h2 {
	color: var(--primary-text);
	font-size: clamp(2.1rem, 4vw, 3.3rem);
	font-weight: 700;
	line-height: 1.05;
	margin: 0.3rem 0 0.75rem;
}

.section-heading p {
	font-size: 1.03rem;
	margin: 0;
}

.portfolio-grid {
	padding: 1rem 0 0;
	row-gap: 0.25rem;
}

.card {
	position: relative;
	width: 100%;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.46)),
		var(--elevated-background);
	color: var(--primary-text);
	border: 1px solid var(--border);
	border-radius: 8px;
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

.card::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 0.22rem;
	background: linear-gradient(90deg, var(--accent), var(--accent-strong));
	opacity: 0.88;
}

html[data-theme='dark'] .card {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
		var(--elevated-background);
}

.card-body {
	transition: transform 180ms ease;
	padding: 1.55rem;
}

.card-title {
	color: var(--primary-text);
	font-size: 1.22rem;
	font-weight: 700;
	line-height: 1.25;
	margin-bottom: 0.8rem;
}

.card-subtitle {
	color: var(--primary-text);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.11em;
	margin: 1.35rem 0 0.75rem;
	text-transform: uppercase;
}

.experience-card .card-body,
.project-card .card-body {
	min-height: 100%;
}

.experience-card {
	transition:
		transform 200ms ease,
		box-shadow 200ms ease,
		border-color 200ms ease;
}

.experience-card:hover {
	transform: translateY(-3px);
	border-color: rgba(15, 139, 141, 0.28);
	box-shadow: var(--shadow-md);
}

.experience-card:hover::before {
	opacity: 1;
}

.card-eyebrow-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.95rem;
}

.card-eyebrow,
.project-card-topline {
	color: var(--accent);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.card-period-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 1.65rem;
	padding: 0.24rem 0.58rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--muted-text);
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1.1;
	white-space: nowrap;
	background-color: rgba(255, 255, 255, 0.42);
}

html[data-theme='dark'] .card-period-pill {
	background-color: rgba(255, 255, 255, 0.045);
}

.experience-card-header {
	margin-bottom: 0.34rem;
}

.experience-card-header .card-title {
	position: relative;
	min-height: calc(1.25em * 2);
	max-height: calc(1.25em * 2);
	margin-bottom: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

@supports (line-clamp: 2) {
	.experience-card-header .card-title {
		line-clamp: 2;
	}
}

@supports not (line-clamp: 2) and (-webkit-line-clamp: 2) {
	.experience-card-header .card-title {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
}

.experience-company {
	color: var(--secondary-text);
	font-size: 0.94rem;
	font-weight: 800;
	line-height: 1.35;
	margin: 0;
}

.experience-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.28rem 0.7rem;
	color: var(--muted-text);
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0.42rem 0 0.18rem;
}

.experience-website {
	position: relative;
	color: var(--accent);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.experience-website::before {
	content: '';
	display: inline-block;
	width: 1px;
	height: 0.78em;
	margin-right: 0.7rem;
	background-color: var(--border);
	vertical-align: -0.08em;
}

.experience-website:hover,
.experience-website:focus {
	color: var(--accent-strong);
	text-decoration: underline;
	text-underline-offset: 0.18rem;
}

.list-group {
	width: 100%;
	background: transparent;
}

.experience-card .list-group {
	margin-bottom: 1rem;
}

.list-group-flush .list-group-item {
	border-width: 0;
}

.list-group-item {
	position: relative;
	display: grid;
	grid-template-columns: 0.8rem minmax(0, 1fr);
	align-items: flex-start;
	gap: 0.58rem;
	text-align: left;
	padding: 0.56rem 0;
	background-color: transparent;
	color: var(--secondary-text);
	font-size: 0.94rem;
	line-height: 1.45;
	border-bottom: 1px solid var(--border);
}

.list-group-item::before {
	content: '';
	position: absolute;
	top: 1.27rem;
	bottom: -0.56rem;
	left: 0.32rem;
	width: 1px;
	background-color: var(--border);
}

.list-group-item:last-child {
	border-bottom: 0;
}

.list-group-item:last-child::before {
	bottom: 0.56rem;
}

.highlight-marker {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 0.52rem;
	height: 0.52rem;
	flex: 0 0 auto;
	margin-top: 0.45rem;
	margin-left: 0.06rem;
	border-radius: 50%;
	background-color: var(--accent);
	box-shadow: 0 0 0 0.2rem var(--accent-soft);
}

.experience-tech-panel,
.project-tech-panel {
	padding: 0.82rem;
	border: 1px solid var(--border);
	border-radius: 8px;
	background-color: rgba(255, 255, 255, 0.38);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.experience-tech-panel {
	margin-top: auto;
}

html[data-theme='dark'] .experience-tech-panel,
html[data-theme='dark'] .project-tech-panel {
	background-color: rgba(255, 255, 255, 0.04);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tech-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.62rem;
}

.tech-panel-title {
	color: var(--muted-text);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tech-panel-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5rem;
	min-height: 1.35rem;
	padding: 0.18rem 0.42rem;
	border-radius: 999px;
	background-color: var(--accent-soft);
	color: var(--accent-strong);
	font-size: 0.68rem;
	font-weight: 800;
	line-height: 1;
}

.technology-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	align-content: flex-start;
	min-height: 4.05rem;
}

.technology-chip {
	display: inline-flex;
	align-items: center;
	min-height: 1.72rem;
	padding: 0.3rem 0.58rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.44);
	color: var(--primary-text);
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		transform 160ms ease;
}

.technology-chip:hover {
	transform: translateY(-1px);
	border-color: rgba(15, 139, 141, 0.32);
	background-color: var(--accent-soft);
}

html[data-theme='dark'] .technology-chip {
	background-color: rgba(255, 255, 255, 0.06);
}

.publication-card .card-body {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.publication-venue {
	color: var(--accent);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.2;
	margin: 0 0 0.72rem;
	text-transform: uppercase;
}

.publication-title {
	color: var(--primary-text);
	font-size: 1.12rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 0.85rem;
}

.publication-summary {
	color: var(--secondary-text);
	font-size: 0.94rem;
	line-height: 1.48;
	margin: 0 0 1rem;
}

.publication-topic-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.42rem;
	margin: 0 0 1.1rem;
}

.publication-topic {
	display: inline-flex;
	align-items: center;
	min-height: 1.72rem;
	padding: 0.3rem 0.58rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background-color: var(--accent-soft);
	color: var(--primary-text);
	font-size: 0.76rem;
	font-weight: 700;
	line-height: 1.2;
}

.publication-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: auto;
	padding-top: 0.1rem;
}

.publication-link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 2.4rem;
	padding: 0.56rem 1rem 0.56rem 0.86rem;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1;
}

.publication-link:hover .btn-arrow,
.publication-link:focus .btn-arrow {
	transform: translateX(0.16rem);
}

.publication-card .card-period-pill {
	text-align: center;
	white-space: normal;
	margin: 0;
}

.project-card {
	cursor: pointer;
}

.project-card .card-body {
	display: flex;
	flex-direction: column;
}

.project-title {
	position: relative;
	line-height: 1.2;
	min-height: calc(1.2em * 2);
	overflow: hidden;
	text-overflow: ellipsis;
}

@supports (line-clamp: 2) {
	.project-title {
		line-clamp: 2;
	}
}

@supports not (line-clamp: 2) and (-webkit-line-clamp: 2) {
	.project-title {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
}

.project-description {
	position: relative;
	line-height: 1.55;
	min-height: calc(1em * 1.55 * 4);
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 1rem 0 1rem;
}

@supports (line-clamp: 4) {
	.project-description {
		line-clamp: 4;
	}
}

@supports not (line-clamp: 4) and (-webkit-line-clamp: 4) {
	.project-description {
		display: -webkit-box;
		-webkit-line-clamp: 4;
		-webkit-box-orient: vertical;
	}
}

.project-topic-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.42rem;
	margin: 0 0 1.05rem;
}

.project-topic {
	display: inline-flex;
	align-items: center;
	min-height: 1.8rem;
	padding: 0.32rem 0.62rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background-color: var(--accent-soft);
	color: var(--primary-text);
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.2;
}

.project-tech-panel {
	margin: auto 0 1.25rem;
}

.featured-system-card .card-body {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.featured-system-summary,
.featured-system-outcome {
	color: var(--secondary-text);
	font-size: 0.94rem;
	line-height: 1.5;
	margin: 0 0 1rem;
}

.featured-system-outcome {
	margin-bottom: 1.15rem;
}

.featured-system-card .technology-chip-list {
	margin-top: auto;
}

.featured-system-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: 1.05rem;
}

.featured-system-link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 2.4rem;
	padding: 0.56rem 1rem 0.56rem 0.86rem;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1;
}

.featured-system-link:hover .btn-arrow,
.featured-system-link:focus .btn-arrow {
	transform: translateX(0.16rem);
}

.featured-system-link--disabled {
	cursor: default;
	opacity: 0.72;
}

.featured-system-link--disabled:hover,
.featured-system-link--disabled:focus {
	transform: none;
}

.tech-panel-empty {
	color: var(--secondary-text);
	font-size: 0.86rem;
	line-height: 1.4;
	min-height: 4.05rem;
	margin: 0;
}

.card-hoverable {
	transition:
		transform 200ms ease,
		box-shadow 200ms ease,
		border-color 200ms ease;
}

.card-hoverable:hover,
.card-hoverable:focus {
	transform: translateY(-5px);
	border-color: rgba(15, 139, 141, 0.38);
	box-shadow: var(--shadow-md);
	outline: none;
}

.card-hoverable:hover::before,
.card-hoverable:focus::before {
	opacity: 1;
}

.card-hoverable:focus-visible {
	box-shadow: var(--shadow-md), var(--focus-ring);
}

.btn {
	white-space: normal;
	word-break: normal;
	word-wrap: break-word;
	border-radius: 999px;
	box-shadow: none !important;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	transition:
		transform 180ms ease,
		background-color 180ms ease,
		border-color 180ms ease,
		color 180ms ease;
}

.btn:hover,
.btn:focus {
	transform: translateY(-1px);
	box-shadow: var(--focus-ring) !important;
}

.btn-serious-cta {
	background:
		linear-gradient(135deg, var(--cta-sheen), transparent 46%), var(--cta-background) !important;
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	border-color: var(--cta-border) !important;
	box-shadow: var(--cta-shadow) !important;
	color: var(--cta-text) !important;
}

.btn-serious-cta:hover,
.btn-serious-cta:focus {
	background:
		linear-gradient(135deg, var(--cta-sheen), transparent 42%), var(--cta-background-hover) !important;
	border-color: var(--cta-border-hover) !important;
	box-shadow: var(--cta-shadow-hover) !important;
	color: var(--cta-text) !important;
}

.btn-serious-cta:focus {
	box-shadow: var(--cta-shadow-hover), var(--focus-ring) !important;
	color: var(--cta-text) !important;
}

.hero-primary-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.95rem;
	border-radius: 999px;
	padding: 0.86rem 1.45rem;
	font-size: 0.92rem;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1;
	text-transform: none;
	white-space: nowrap;
	box-shadow: var(--shadow-sm);
}

.project-link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	align-self: flex-start;
	margin-top: auto;
	padding-right: 1rem;
}

.btn-arrow {
	display: inline-flex;
	transform: translateX(0);
	transition: transform 180ms ease;
}

.project-card:hover .btn-arrow,
.project-card:focus .btn-arrow {
	transform: translateX(0.16rem);
}

.contact-section {
	padding-bottom: 1rem;
}

.contact-panel {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(20rem, 1.15fr);
	gap: clamp(1.25rem, 3vw, 2rem);
	align-items: stretch;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--border);
	border-radius: 8px;
	background:
		linear-gradient(135deg, var(--accent-soft), transparent 42%), var(--elevated-background);
	box-shadow: var(--shadow-sm);
}

.contact-panel-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: left;
}

.contact-panel-kicker {
	color: var(--accent);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	margin-bottom: 0.7rem;
	text-transform: uppercase;
}

.contact-panel-copy h3 {
	color: var(--primary-text);
	font-size: clamp(1.45rem, 3vw, 2.25rem);
	font-weight: 700;
	line-height: 1.1;
	margin: 0;
}

.contact-actions {
	display: grid;
	gap: 0.75rem;
}

.contact-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 0.9rem;
	align-items: center;
	padding: 0.95rem;
	border: 1px solid var(--border);
	border-radius: 8px;
	background-color: rgba(255, 255, 255, 0.46);
	color: var(--primary-text);
	text-decoration: none;
	transition:
		transform 180ms ease,
		border-color 180ms ease,
		background-color 180ms ease,
		box-shadow 180ms ease;
}

.contact-card:hover,
.contact-card:focus {
	color: var(--primary-text);
	text-decoration: none;
	transform: translateY(-2px);
	border-color: rgba(15, 139, 141, 0.34);
	background-color: rgba(255, 255, 255, 0.68);
	box-shadow: var(--shadow-sm);
}

html[data-theme='dark'] .contact-card {
	background-color: rgba(255, 255, 255, 0.05);
}

html[data-theme='dark'] .contact-card:hover,
html[data-theme='dark'] .contact-card:focus {
	background-color: rgba(255, 255, 255, 0.08);
}

.contact-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--border);
	border-radius: 8px;
	background-color: var(--accent-soft);
}

.contact-card-icon .social-icon {
	width: 1.28rem;
	height: 1.28rem;
	color: var(--accent-strong);
	transition:
		color 180ms ease,
		transform 180ms ease;
}

.contact-card:hover .contact-card-icon .social-icon,
.contact-card:focus .contact-card-icon .social-icon {
	color: var(--accent);
	transform: scale(1.06);
}

.contact-card-copy {
	display: grid;
	gap: 0.12rem;
	min-width: 0;
}

.contact-card-label {
	font-weight: 800;
	line-height: 1.2;
}

.contact-card-description {
	color: var(--secondary-text);
	font-size: 0.9rem;
	line-height: 1.35;
}

.contact-card-action {
	color: var(--accent-strong);
	font-size: 0.78rem;
	font-weight: 800;
	white-space: nowrap;
}

footer {
	color: var(--muted-text) !important;
	border-top: 1px solid var(--border);
	font-size: 0.875rem;
	margin-top: 6rem !important;
	padding-top: 2rem !important;
}

.theme-toggle {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 1040;
	display: inline-flex;
	align-items: center;
	gap: 0.58rem;
	min-height: 3rem;
	padding: 0.38rem 0.72rem 0.38rem 0.42rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background:
		linear-gradient(135deg, var(--accent-soft), transparent 76%), var(--elevated-background);
	color: var(--primary-text);
	box-shadow: var(--shadow-md);
	backdrop-filter: blur(18px);
	cursor: pointer;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 800;
	line-height: 1;
	transition:
		transform 180ms ease,
		border-color 180ms ease,
		background-color 180ms ease,
		box-shadow 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus {
	transform: translateY(-2px);
	border-color: rgba(15, 139, 141, 0.34);
	box-shadow: 0 22px 60px rgba(21, 32, 51, 0.18);
	outline: none;
}

.theme-toggle:focus-visible {
	box-shadow: var(--shadow-md), var(--focus-ring);
}

html[data-theme='dark'] .theme-toggle:hover,
html[data-theme='dark'] .theme-toggle:focus {
	box-shadow: 0 24px 62px rgba(0, 0, 0, 0.42);
}

.theme-toggle__track {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	width: 4.2rem;
	height: 2.25rem;
	padding: 0 0.48rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.46);
	color: var(--muted-text);
	overflow: hidden;
}

html[data-theme='dark'] .theme-toggle__track {
	background-color: rgba(255, 255, 255, 0.06);
}

.theme-toggle__icon,
.theme-toggle__thumb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.theme-toggle svg {
	width: 1rem;
	height: 1rem;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.85;
}

.theme-toggle__icon {
	z-index: 1;
	opacity: 0.58;
}

.theme-toggle__icon--sun {
	justify-self: start;
}

.theme-toggle__icon--moon {
	justify-self: end;
}

.theme-toggle__thumb {
	position: absolute;
	top: 0.2rem;
	left: 0.22rem;
	width: 1.83rem;
	height: 1.83rem;
	border: 1px solid rgba(15, 139, 141, 0.22);
	border-radius: 50%;
	background-color: var(--secondary-background);
	color: var(--accent-strong);
	box-shadow: 0 8px 18px rgba(21, 32, 51, 0.16);
	transform: translateX(0);
	transition:
		transform 220ms ease,
		color 180ms ease,
		background-color 180ms ease;
}

.theme-toggle[aria-pressed='true'] .theme-toggle__thumb {
	transform: translateX(1.93rem);
}

.theme-toggle__thumb svg {
	width: 0.92rem;
	height: 0.92rem;
}

.theme-toggle__label {
	min-width: 2.25rem;
	color: var(--secondary-text);
	text-align: left;
}

@media (max-width: 575.98px) {
	.theme-toggle {
		right: max(0.8rem, env(safe-area-inset-right));
		bottom: max(0.8rem, env(safe-area-inset-bottom));
		padding-right: 0.42rem;
	}

	.theme-toggle__label {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

@media (orientation: landscape) and (max-height: 820px) {
	.site-shell.container {
		padding-right: clamp(2rem, 5vw, 4rem);
		padding-left: clamp(2rem, 5vw, 4rem);
	}
}

@media (orientation: landscape) and (max-height: 820px) and (min-width: 769px) {
	.hero-section {
		padding: 1em 0;
	}

	.scroll-indicator {
		bottom: max(0.52rem, env(safe-area-inset-bottom));
		min-height: 2.45rem;
		padding-top: 0.26rem;
		padding-bottom: 0.26rem;
	}

	.scroll-indicator__cue {
		height: 1.78rem;
	}
}

@media (max-width: 991.98px) {
	body {
		padding-top: 0;
	}

	.hero-section {
		grid-template-columns: 1fr;
		align-content: start;
		gap: clamp(1.5rem, 4vh, 2.25rem);
		min-height: 100vh;
		min-height: 100svh;
		padding-top: clamp(1.25rem, 4vh, 2.4rem);
		text-align: center;
	}

	.hero-content {
		margin: 0 auto;
		order: 2;
	}

	.hero-portrait-wrap {
		order: 1;
	}

	.hero-actions {
		justify-content: center;
	}

	.hero-proof-grid {
		margin-right: auto;
		margin-left: auto;
		text-align: center;
	}

	.hero-contact-actions {
		justify-content: center;
	}

	.contact-panel {
		grid-template-columns: 1fr;
	}

	.contact-panel-copy {
		text-align: center;
	}
}

@media (max-width: 767.98px) {
	.project-title {
		line-height: 1.1;
		min-height: calc(1.1em * 2);
	}

	.project-description {
		line-height: 1.35;
		min-height: calc(1em * 1.35 * 4);
	}

	.scroll-indicator {
		font-size: 0.7rem;
		min-height: 2.55rem;
	}
}

@media (max-width: 575.98px) {
	.summary h1 {
		font-size: clamp(2.45rem, 13vw, 3.2rem);
	}

	.hero-lede {
		font-size: 1.12rem;
	}

	.hero-proof-grid {
		margin-top: 0.68rem;
	}

	.hero-proof-card {
		padding: 0.38rem 0.4rem;
	}

	.hero-proof-card:first-child {
		padding-left: 0;
	}

	.hero-proof-card:last-child {
		padding-right: 0;
	}

	.hero-proof-card + .hero-proof-card::before {
		top: 0.14rem;
		bottom: 0.14rem;
	}

	.hero-proof-value {
		font-size: 1rem;
	}

	.hero-proof-value--accent {
		font-size: 1.28rem;
	}

	.hero-proof-label {
		font-size: 0.82rem;
		line-height: 1.16;
	}

	.hero-actions {
		flex-wrap: nowrap;
		gap: 0.58rem;
		margin-top: 1.45rem;
	}

	.hero-actions .btn {
		flex: 0 1 auto;
		min-width: 0;
		padding-right: 1.2rem;
		padding-left: 1.2rem;
		font-size: 0.9rem;
	}

	.hero-contact-actions {
		gap: 0.4rem;
		margin-top: 0.8rem;
	}

	.card-body {
		padding: 1.15rem;
	}

	.contact-card {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.contact-card-action {
		grid-column: 2;
		justify-self: start;
	}
}
