:root {
	--color-page: #F8FAFC;
	--color-surface: #FFFFFF;
	--color-surface-subtle: #F1F5F9;
	--color-text-primary: #0F172A;
	--color-text-secondary: #475569;
	--color-accent: #0F766E;
	--color-accent-hover: #115E59;
	--color-border: #CBD5E1;
	--color-focus: #B45309;
	--color-text-on-accent: #FFFFFF;
	--content-max: 75rem;
	--radius: .5rem;
	--panel-padding: clamp(.875rem, 2vw, 1.25rem);
	--section-space: clamp(3rem, 5vw, 4.5rem);
}

html {
	width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-size: 100%;
	overflow-x: hidden;
}

body {
	width: 100%;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	background-color: var(--color-page);
	color: var(--color-text-primary);
	font-family: "Inter", sans-serif;
	font-size: 1rem;
	line-height: 1.7;
	text-align: left;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 1.2em 0 .6em;
	color: var(--color-text-primary);
	font-weight: 700;
	line-height: 1.2;
}

h1 {
	font-size: clamp(1.625rem, 3vw, 2rem);
}

h2 {
	font-size: 1.5rem;
}

h3 {
	font-size: 1.25rem;
}

h4 {
	font-size: 1.125rem;
}

h5 {
	font-size: 1rem;
}

h6 {
	font-size: .875rem;
}

p {
	font-size: 1rem;
	line-height: 1.7;
}

a {
	color: var(--color-accent);
	text-decoration-line: underline;
	text-decoration-thickness: .08em;
	text-underline-offset: .16em;
}

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

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: 3px;
}

img,
video,
iframe {
	max-width: 100%;
}

.container {
	width: 100%;
	max-width: var(--content-max);
	margin: 0 auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

.row {
	width: 100%;
	margin-bottom: var(--section-space);
}

.site-header {
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
	padding-top: clamp(1.75rem, 5vw, 3.25rem);
}

#title-section {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(1.5rem, 4vw, 2.5rem);
	text-align: center;
}

#me {
	display: block;
	width: clamp(8rem, 14vw, 11.25rem);
	height: auto;
	margin: 0;
	border: 1px solid var(--color-border);
	border-radius: 30%;
}

.identity-block {
	min-width: 0;
}

.name-title {
	margin: 0;
	color: var(--color-text-primary);
	font-size: clamp(2.25rem, 5vw, 3rem);
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
}

.professional-title {
	margin: .5rem 0 0;
	color: var(--color-text-secondary);
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
}

.responsive-nav {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: clamp(.25rem, 1vw, .5rem);
	width: min(100%, 28rem);
	margin: 1.5rem auto 0;
	padding: 0;
	background-color: transparent;
}

.responsive-nav a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: .55rem .35rem;
	border-radius: var(--radius);
	font-size: clamp(.875rem, 2.5vw, 1rem);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.responsive-nav a:hover,
.responsive-nav a:active {
	background-color: var(--color-surface-subtle);
}

.intro-copy {
	display: grid;
	gap: 1.25rem;
}

.intro-copy > p {
	margin: 0;
}

.responsive-table {
	width: 100%;
	margin: 1.25rem 0;
	overflow-x: auto;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background-color: var(--color-surface);
	-webkit-overflow-scrolling: touch;
}

.table-row {
	display: grid;
	background-color: var(--color-surface);
}

.table-row:not(:last-child) {
	border-bottom: 1px solid var(--color-border);
}

.collaborations-table .table-row {
	grid-template-columns: minmax(10rem, 1fr) minmax(11rem, .9fr) minmax(18rem, 1.8fr);
	min-width: 44rem;
}

.project-table .table-row {
	grid-template-columns: minmax(16rem, 1fr) minmax(24rem, 2fr);
	min-width: 40rem;
}

.features-table .table-row {
	grid-template-columns: minmax(24rem, 5fr) minmax(7rem, 1fr);
	min-width: 31rem;
}

.table-cell {
	min-width: 0;
	padding: .75rem 1rem;
	font-size: 1rem;
	text-align: left;
}

.table-header {
	background-color: var(--color-surface-subtle);
}

.table-header .table-cell {
	background-color: var(--color-surface-subtle);
	font-weight: 700;
}

.collaborations-table .table-row:not(.table-header) .table-cell:nth-child(2) {
	color: var(--color-text-secondary);
}

.features-table .table-row:not(.table-header) .table-cell:nth-child(2) {
	color: var(--color-text-secondary);
	font-weight: 600;
}

.intro-copy,
.publication-item,
.project-card {
	padding: var(--panel-padding);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background-color: var(--color-surface);
}

.publication-title {
	margin-bottom: .5em;
}

.publication-title a,
.project-title {
	font-size: 1.25rem;
	font-weight: 700;
}

.project-title {
	color: var(--color-text-primary);
	margin-bottom: .5rem;
}

.publication-title a:hover,
.publication-title a:active,
.project-title a:hover,
.project-title a:active {
	color: var(--color-accent-hover);
}

.publication-authors {
	color: var(--color-text-secondary);
	font-size: .9375rem;
	line-height: 1.7;
}

.publication-summary,
.project-description {
	color: var(--color-text-primary);
	font-size: 1rem;
	line-height: 1.7;
}

.publication-summary {
	margin-top: .4em;
}

.publication-video {
	margin-top: 1em;
}

.project-links a {
	font-size: .875rem;
}

#publications-content,
#projects-content {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
}

#projects-content > .responsive-table {
	margin: 0;
}

.peek-disclosure {
	--disclosure-preview-height: 18rem;
	--disclosure-fade-height: 7rem;
	--disclosure-surface: var(--color-page);
	position: relative;
	padding-bottom: 3.75rem;
}

.peek-disclosure--nested {
	--disclosure-surface: var(--color-surface);
}

.peek-disclosure--compact {
	--disclosure-preview-height: 8rem;
	--disclosure-fade-height: 4rem;
}

.peek-disclosure.peek-disclosure--nested > .disclosure-content {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.peek-disclosure > h1 {
	margin: .4em 0 .75em;
}

.peek-disclosure > .project-title {
	margin: .4em 0 0;
}

.peek-disclosure > .disclosure-content {
	display: block;
	max-height: none;
	padding: var(--panel-padding);
	overflow: visible;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background-color: var(--color-surface-subtle);
	pointer-events: auto;
	user-select: auto;
	-webkit-mask-image: none;
	mask-image: none;
}

.peek-disclosure:not(.is-open) > .disclosure-content {
	max-height: var(--disclosure-preview-height);
	overflow: hidden;
	pointer-events: none;
	user-select: none;
	-webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - var(--disclosure-fade-height)), transparent 100%);
	mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - var(--disclosure-fade-height)), transparent 100%);
}

.peek-disclosure.is-open > .disclosure-content {
	max-height: none;
	overflow: visible;
	pointer-events: auto;
	user-select: auto;
	-webkit-mask-image: none;
	mask-image: none;
}

.disclosure-control {
	position: absolute;
	right: auto;
	bottom: 0;
	left: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	gap: .35rem;
	padding: .55rem 1rem;
	border: 1px solid var(--color-accent);
	border-radius: var(--radius);
	background: var(--disclosure-surface);
	color: var(--color-accent);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	transform: translateX(-50%);
}

.disclosure-control:hover,
.disclosure-control:active {
	border-color: var(--color-accent-hover);
	background-color: var(--color-surface-subtle);
	color: var(--color-accent-hover);
}

.disclosure-chevron {
	width: .65rem;
	height: .65rem;
	border-right: 2px solid currentcolor;
	border-bottom: 2px solid currentcolor;
	transform: rotate(45deg);
	transition: transform .2s ease;
}

.disclosure-label {
	color: inherit;
	font-size: .9rem;
	font-weight: 600;
	text-align: center;
}

.peek-disclosure.is-open > .disclosure-control .disclosure-chevron {
	transform: rotate(225deg);
}

.peek-disclosure:not(.is-open) > .disclosure-control .disclosure-label--open,
.peek-disclosure.is-open > .disclosure-control .disclosure-label--closed {
	display: none;
}

@media (max-width: 36rem) {
	#title-section {
		flex-direction: column;
		gap: 1rem;
	}

	#me {
		width: 8rem;
	}

	.row {
		margin-bottom: 3rem;
	}
}

@media (max-width: 48rem) {
	.responsive-table {
		overflow-x: hidden;
	}

	.responsive-table .table-row {
		display: block;
		min-width: 0;
		width: 100%;
	}

	.responsive-table .table-header {
		display: none;
	}

	.table-cell {
		display: grid;
		grid-template-columns: minmax(6.5rem, .35fr) minmax(0, 1fr);
		align-items: start;
		gap: 1rem;
		overflow-wrap: anywhere;
	}

	.table-cell:not(:last-child) {
		border-bottom: 1px solid var(--color-border);
	}

	.table-cell::before {
		color: var(--color-text-secondary);
		content: attr(data-label);
		font-weight: 700;
	}

	.collaborations-table .table-row:not(.table-header),
	.features-table .table-row:not(.table-header),
	.project-table .table-row:not(.table-header) {
		padding: .75rem 1rem;
	}

	.collaborations-table .table-row:not(.table-header) .table-cell:first-child,
	.features-table .table-row:not(.table-header) .table-cell:first-child,
	.project-table .table-row:not(.table-header) .table-cell:first-child {
		display: block;
		padding: 0 0 .5rem;
		font-weight: 700;
	}

	.features-table .table-row:not(.table-header) .table-cell:first-child {
		font-weight: 400;
	}

	.collaborations-table .table-row:not(.table-header) .table-cell:first-child::before,
	.features-table .table-row:not(.table-header) .table-cell:first-child::before,
	.project-table .table-row:not(.table-header) .table-cell:first-child::before {
		display: none;
		content: none;
	}

	.collaborations-table .table-row:not(.table-header) .table-cell:not(:first-child),
	.features-table .table-row:not(.table-header) .table-cell:not(:first-child),
	.project-table .table-row:not(.table-header) .table-cell:not(:first-child) {
		grid-template-columns: max-content minmax(0, 1fr);
		gap: .75rem;
		margin-left: .5rem;
		padding: .25rem 0 .25rem .75rem;
		border-left: 2px solid var(--color-border);
	}

	.collaborations-table .table-row:not(.table-header) .table-cell:not(:last-child),
	.features-table .table-row:not(.table-header) .table-cell:not(:last-child),
	.project-table .table-row:not(.table-header) .table-cell:not(:last-child) {
		border-bottom: 0;
	}
}

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