:root {
	color-scheme: light;
	/* Modern Engineer palette: Light mode */
	--bg-main: #F8FAFC;
	--bg-sidebar: #E2E8F0;
	--text-main: #0F172A;
	--text-muted: #475569;
	--accent: #0284C7;
	--tile-1: #0EA5E9;
	--tile-2: #164E63;
	--tile-3: #3B82F6;
	--tile-4: #0F766E;
	--tile-5: #64748B;
	--tile-6: #0369A1;

	/* Theme aliases used by the rest of the site */
	--theme-bg: var(--bg-main);
	--theme-surface: var(--bg-sidebar);
	--theme-surface-2: #CBD5E1;
	--theme-surface-3: #EEF2F7;
	--theme-border: rgba(15, 23, 42, 0.12);
	--theme-border-soft: rgba(15, 23, 42, 0.08);
	--theme-text: var(--text-main);
	--theme-text-muted: var(--text-muted);
	--theme-heading: var(--text-main);
	--theme-strong: var(--accent);
	--theme-strong-text: #F8FAFC;
	--theme-accent: var(--accent);
	--theme-accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
	--theme-accent-strong: color-mix(in srgb, var(--accent) 78%, black);
	--theme-shadow: 0 0.35rem 0.9rem rgba(15, 23, 42, 0.08);
	--theme-shadow-large: 0 0.6rem 1.4rem rgba(15, 23, 42, 0.10);
}

html[data-theme="dark"] {
	color-scheme: dark;
	/* Modern Engineer palette: Dark mode */
	--bg-main: #0F172A;
	--bg-sidebar: #1E293B;
	--text-main: #F8FAFC;
	--text-muted: #94A3B8;
	--accent: #22D3EE;
	--tile-1: #0891B2;
	--tile-2: #2563EB;
	--tile-3: #4F46E5;
	--tile-4: #0D9488;
	--tile-5: #3730A3;
	--tile-6: #0284C7;

	/* Theme aliases */
	--theme-bg: var(--bg-main);
	--theme-surface: var(--bg-sidebar);
	--theme-surface-2: #334155;
	--theme-surface-3: #273449;
	--theme-border: rgba(248, 250, 252, 0.14);
	--theme-border-soft: rgba(248, 250, 252, 0.10);
	--theme-text: var(--text-main);
	--theme-text-muted: var(--text-muted);
	--theme-heading: var(--text-main);
	--theme-strong: var(--accent);
	--theme-strong-text: #0F172A;
	--theme-accent: var(--accent);
	--theme-accent-soft: color-mix(in srgb, var(--accent) 18%, transparent);
	--theme-accent-strong: color-mix(in srgb, var(--accent) 78%, black);
	--theme-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.28);
	--theme-shadow-large: 0 0.7rem 1.6rem rgba(0, 0, 0, 0.32);
}

html,
body {
	background: var(--theme-bg);
}

body,
input,
select,
textarea {
	color: var(--theme-text);
}

#main,
#footer {
	background: var(--theme-bg);
}

body,
a,
button,
input,
select,
textarea,
#header,
#menu,
#main,
#footer,
.project-toc__inner,
.portfolio-table-shell,
.portfolio-table-toc__inner,
.home-highlights,
.education-card,
.tiles article > .image {
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b {
	color: var(--theme-heading);
}

#menu,
.project-toc__inner,
.portfolio-table-toc__inner,
.portfolio-table-shell,
.home-highlights,
.education-card,
.project-callout,
.tiles article > .image {
	background: var(--theme-surface);
	border-color: var(--theme-border);
	box-shadow: var(--theme-shadow);
}

#menu,
#menu .inner,
#menu h2,
#menu > .inner > h2,
#menu > .inner > ul > li a {
	color: var(--theme-text) !important;
}

.menu-search {
	margin: 0 0 1.5rem;
}

.menu-search__label {
	display: block;
	margin: 0 0 0.55rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--theme-text) !important;
}

.menu-search__input {
	height: 3rem;
	padding: 0 1rem;
	border: solid 1px var(--theme-border);
	border-radius: 0.45rem;
	background: var(--theme-bg);
	color: var(--theme-text);
}

.menu-search__input::placeholder {
	color: var(--theme-text-muted);
	opacity: 1;
}

.menu-search__status {
	margin: 0.6rem 0 0;
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--theme-text-muted);
}

.menu-search__results {
	display: grid;
	gap: 0.6rem;
	margin-top: 0.9rem;
}

.menu-search__result {
	display: block;
	padding: 0.85rem 0.95rem;
	border: solid 1px var(--theme-border);
	border-radius: 0.45rem;
	background: var(--theme-bg);
	color: var(--theme-text) !important;
	text-decoration: none;
	border-bottom: 0;
}

.menu-search__result:hover,
.menu-search__result:focus-visible {
	background: var(--theme-strong);
	color: var(--theme-strong-text) !important;
	outline: none;
}

.menu-search__result-meta,
.menu-search__result-title,
.menu-search__result-snippet {
	display: block;
}

.menu-search__result-meta {
	margin-bottom: 0.2rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--theme-text-muted);
}

.menu-search__result-title {
	font-size: 0.92rem;
	font-weight: 700;
	color: inherit;
}

.menu-search__result-snippet {
	margin-top: 0.35rem;
	font-size: 0.82rem;
	line-height: 1.55;
	color: inherit;
	opacity: 0.9;
}

.menu-search__result:hover .menu-search__result-meta,
.menu-search__result:focus-visible .menu-search__result-meta {
	color: inherit;
}

.menu-search__empty {
	margin: 0;
	padding: 0.85rem 0.95rem;
	border: solid 1px var(--theme-border);
	border-radius: 0.45rem;
	background: var(--theme-bg);
	color: var(--theme-text-muted);
}

a:hover,
a:focus-visible {
	color: var(--theme-accent);
}

a:hover,
a:focus-visible,
#main a:hover,
#main a:focus-visible,
#footer a:hover,
#footer a:focus-visible {
	color: var(--theme-accent) !important;
}

.icon.style2:hover,
.icon.style2:focus-visible {
	color: var(--theme-accent) !important;
	border-color: var(--theme-accent) !important;
	background-color: var(--theme-accent-soft) !important;
}

input:focus,
select:focus,
textarea:focus {
	border-bottom-color: var(--theme-accent) !important;
	box-shadow: inset 0 -1px 0 0 var(--theme-accent) !important;
}

input[type="checkbox"]:focus + label:before,
input[type="radio"]:focus + label:before {
	border-color: var(--theme-accent) !important;
	box-shadow: 0 0 0 1px var(--theme-accent) !important;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible,
input[type="button"]:focus-visible,
button:focus-visible,
.button:focus-visible {
	color: var(--theme-accent) !important;
	box-shadow: inset 0 0 0 2px var(--theme-accent) !important;
}

input[type="submit"]:hover:active,
input[type="reset"]:hover:active,
input[type="button"]:hover:active,
button:hover:active,
.button:hover:active {
	background-color: var(--theme-accent-soft) !important;
}

input[type="submit"].primary:hover,
input[type="reset"].primary:hover,
input[type="button"].primary:hover,
button.primary:hover,
.button.primary:hover,
input[type="submit"].primary:focus-visible,
input[type="reset"].primary:focus-visible,
input[type="button"].primary:focus-visible,
button.primary:focus-visible,
.button.primary:focus-visible {
	background-color: var(--theme-accent) !important;
	color: var(--theme-strong-text) !important;
	box-shadow: none !important;
}

input[type="submit"].primary:active,
input[type="reset"].primary:active,
input[type="button"].primary:active,
button.primary:active,
.button.primary:active {
	background-color: var(--theme-accent-strong) !important;
	color: var(--theme-strong-text) !important;
}

blockquote {
	border-left-color: var(--theme-border);
}

code {
	background: var(--theme-surface);
	border-color: var(--theme-border);
	color: var(--theme-heading);
}

pre code {
	background: transparent;
}

input,
select,
textarea {
	background: var(--theme-surface);
	border-color: var(--theme-border);
}

hr {
	border-bottom-color: var(--theme-border);
}

#header nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.65rem;
}

#header nav ul {
	margin: 0;
}

#header nav > .theme-toggle {
	margin: 0;
}

#header nav ul li a[href="#menu"] {
	color: var(--theme-text) !important;
}

#header nav ul li a[href="#menu"]:before,
#header nav ul li a[href="#menu"]:after,
#menu > .close:before,
#menu > .close:after {
	background-image: none !important;
}

#header nav ul li a[href="#menu"]:after {
	content: "";
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.5em;
	height: 0.12em;
	background: currentColor;
	transform: translate(-50%, -50%);
	box-shadow: 0 -0.42em 0 0 currentColor, 0 0.42em 0 0 currentColor;
	opacity: 1 !important;
}

#header nav ul li a[href="#menu"]:hover,
#header nav ul li a[href="#menu"]:focus-visible {
	color: var(--theme-accent) !important;
}

#menu > .close {
	color: var(--theme-text) !important;
}

#menu > .close:after {
	content: "";
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.35em;
	height: 0.12em;
	background: currentColor;
	transform: translate(-50%, -50%) rotate(45deg);
	opacity: 1 !important;
	box-shadow: none;
}

#menu > .close:before {
	content: "";
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.35em;
	height: 0.12em;
	background: currentColor;
	transform: translate(-50%, -50%) rotate(-45deg);
	opacity: 1 !important;
}

#menu > .close:hover,
#menu > .close:focus-visible {
	color: var(--theme-accent) !important;
}

.theme-toggle {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	width: 2.75rem;
	min-height: 5rem;
	padding: 0.6rem 0.3rem;
	border: solid 1px var(--theme-border);
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.5);
	color: var(--theme-heading);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1;
	box-sizing: border-box;
	overflow: visible;
	cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
	border-color: var(--theme-accent);
	color: var(--theme-accent);
	outline: none;
}

.theme-toggle__track {
	position: relative;
	display: inline-flex;
	align-items: flex-start;
	justify-content: center;
	width: 1.05rem;
	height: 2.45rem;
	padding: 0.1rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.14);
}

.theme-toggle__thumb {
	display: block;
	width: 0.8rem;
	height: 0.8rem;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 0.15rem 0.45rem rgba(0, 0, 0, 0.2);
	transform: translateY(0);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.theme-toggle__icon {
	color: #585858;
	display: block;
	font-size: 0.82rem;
	line-height: 1;
}

html[data-theme="dark"] .theme-toggle__track {
	background: var(--theme-accent-soft);
}

html[data-theme="dark"] .theme-toggle__thumb {
	background: var(--theme-accent);
	transform: translateY(.5rem);
}

html[data-theme="dark"] .theme-toggle__icon {
	color: #ffffff;
}

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

#footer {
	background: var(--theme-surface) !important;
}

#footer > .inner .copyright {
	color: var(--theme-text-muted);
}

html[data-theme="dark"] #main p a,
html[data-theme="dark"] #main li a,
html[data-theme="dark"] #main td a,
html[data-theme="dark"] #main blockquote a,
html[data-theme="dark"] #main figcaption a,
html[data-theme="dark"] .project-callout a,
html[data-theme="dark"] #footer a:not(.icon),
html[data-theme="dark"] .home-hero__about a,
html[data-theme="dark"] .home-section a,
html[data-theme="dark"] .education-card a,
html[data-theme="dark"] .project-caption a {
	color: var(--theme-accent);
	border-bottom-color: var(--theme-accent-soft);
}

html[data-theme="dark"] #main p a:hover,
html[data-theme="dark"] #main li a:hover,
html[data-theme="dark"] #main td a:hover,
html[data-theme="dark"] #main blockquote a:hover,
html[data-theme="dark"] #main figcaption a:hover,
html[data-theme="dark"] .project-callout a:hover,
html[data-theme="dark"] #footer a:not(.icon):hover,
html[data-theme="dark"] .home-hero__about a:hover,
html[data-theme="dark"] .home-section a:hover,
html[data-theme="dark"] .education-card a:hover,
html[data-theme="dark"] .project-caption a:hover,
html[data-theme="dark"] #main p a:focus-visible,
html[data-theme="dark"] #main li a:focus-visible,
html[data-theme="dark"] #main td a:focus-visible,
html[data-theme="dark"] #main blockquote a:focus-visible,
html[data-theme="dark"] #main figcaption a:focus-visible,
html[data-theme="dark"] .project-callout a:focus-visible,
html[data-theme="dark"] #footer a:not(.icon):focus-visible,
html[data-theme="dark"] .home-hero__about a:focus-visible,
html[data-theme="dark"] .home-section a:focus-visible,
html[data-theme="dark"] .education-card a:focus-visible,
html[data-theme="dark"] .project-caption a:focus-visible {
	color: #ffffff !important;
	border-bottom-color: transparent;
}

.tiles article > a h2,
.tiles article > a .content,
.tiles article > a .content p {
	color: #ffffff !important;
}

.project-summary {
	margin: 0 0 2rem 0;
	max-width: 48rem;
}

.project-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 0.85rem 1rem;
	margin: -0.5rem 0 1.5rem;
	padding: 1rem 1.1rem;
	border: solid 1px var(--theme-border);
	border-radius: 0.6rem;
	background: var(--theme-surface);
	box-shadow: var(--theme-shadow);
}

.project-meta__item {
	margin: 0;
}

.project-meta dt {
	margin: 0 0 0.2rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--theme-text-muted);
}

.project-meta dd {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--theme-heading);
}

.project-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin: 0 0 1.5rem;
}

.project-hero-actions .button {
	margin: 0;
}

.page-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	margin-top: 2rem;
}

.page-actions--portfolio {
	justify-content: center;
}

.page-actions--project {
	margin-top: 2.5rem;
}

.project-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 16rem;
	gap: 2.5rem;
	align-items: start;
}

.project-layout--single-column {
	grid-template-columns: minmax(0, 1fr);
}

.project-layout__content {
	min-width: 0;
}

.project-content > :first-child {
	margin-top: 0;
}

.project-content iframe,
.project-content video {
	max-width: 100%;
}

.project-content iframe[src*="youtube.com/embed"] {
	display: block;
	width: 100%;
	max-width: 100%;
	border: 0;
	margin-bottom: 1.35rem;
}

.image.image--portrait {
	text-align: center;
}

.image.main.image--portrait img {
	width: auto;
	max-width: min(100%, 38rem);
	max-height: 72vh;
	margin: 0 auto;
	object-fit: contain;
}

.project-content .image.fit.image--portrait img {
	width: auto;
	max-width: min(100%, 32rem);
	max-height: 75vh;
	margin: 0 auto;
	object-fit: contain;
}

.project-video {
	margin: 0 0 1.5rem 0;
}

.project-video__frame {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 0.6rem;
	background: #000000;
	box-shadow: var(--theme-shadow);
}

.project-video__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	margin: 0;
}

.project-pdf {
	margin: 0 0 2rem;
}

.project-pdf__frame {
	overflow: hidden;
	border: solid 1px var(--theme-border);
	border-radius: 0.6rem;
	background: var(--theme-surface);
	box-shadow: var(--theme-shadow);
}

.project-pdf__frame iframe {
	display: block;
	width: 100%;
	min-height: 32rem;
	border: 0;
	background: #ffffff;
}

.project-pdf__actions {
	margin-top: 0.85rem;
}

.project-pdf__mobile-note {
	display: none;
	margin: 0 0 0.75rem;
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--theme-text-muted);
}

.project-content .button {
	margin-right: 0.75rem;
	margin-bottom: 0.75rem;
}

.project-callout {
	border-left: solid 4px;
	background: var(--theme-surface);
	border-color: var(--theme-border);
}

.project-callout--info {
	border-left-color: var(--tile-2);
}

.project-callout--success {
	border-left-color: var(--tile-4);
}

.project-callout--tip {
	border-left-color: var(--tile-3);
}

.project-callout__title {
	margin-bottom: 0.5rem;
}

.project-callout__content > :last-child {
	margin-bottom: 0;
}

.project-caption {
	margin: -1rem 0 1.5rem 0;
	font-style: italic;
	color: var(--theme-text-muted);
}

.project-figure {
	margin: 0 0 1.75rem;
}

.project-figure > .image,
.project-figure > .project-video {
	margin: 0;
}

.project-figure > video,
.project-video-file {
	display: block;
	width: 100%;
	border-radius: 0.6rem;
	background: #000000;
	box-shadow: var(--theme-shadow);
}

.project-figure > .image + .image {
	margin-top: 0.9rem;
}

.project-image-pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	align-items: start;
}

.project-image-pair > .image {
	margin: 0;
}

.project-image-pair--compact {
	max-width: 50rem;
}

.project-image-pair--compact > .image img {
	max-height: 20rem;
	width: auto;
	margin: 0 auto;
	object-fit: contain;
}

.project-image-pair > .project-figure__caption {
	grid-column: 1 / -1;
}

.project-figure__caption {
	margin: 0.35rem 0 0;
	font-style: italic;
	color: var(--theme-text-muted);
}

.project-figure--video .project-figure__caption {
	margin-top: 0.85rem;
}

.project-toc {
	position: sticky;
	top: 2rem;
	align-self: start;
	height: fit-content;
}

.project-toc__inner {
	padding: 1.1rem 1.15rem;
	border: solid 1px var(--theme-border);
	border-radius: 0.5rem;
	background: var(--theme-surface);
	box-shadow: var(--theme-shadow);
}

.project-toc__eyebrow {
	margin: 0 0 0.85rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.project-toc__nav > nav > ul,
.project-toc__nav > ul,
.project-toc__nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.project-toc__nav li + li {
	margin-top: 0.3rem;
}

.project-toc__nav li ul {
	margin-top: 0.35rem;
	margin-left: 0.8rem;
	padding-left: 0.75rem;
	border-left: solid 1px var(--theme-border-soft);
}

.project-toc__nav a {
	display: block;
	padding: 0.35rem 0.5rem;
	border-radius: 0.35rem;
	border-bottom: 0;
	color: var(--theme-text-muted);
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.project-toc__nav a:hover,
.project-toc__nav a:focus-visible {
	background: var(--theme-strong);
	color: var(--theme-strong-text) !important;
	outline: none;
}

.project-pagination {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1rem;
	margin-top: 2.5rem;
}

.project-pagination__item {
	display: block;
	padding: 1rem 1.1rem;
	border: solid 1px var(--theme-border);
	border-radius: 0.6rem;
	background: var(--theme-surface);
	box-shadow: var(--theme-shadow);
	text-decoration: none;
	border-bottom: 0;
}

.project-pagination__item:hover,
.project-pagination__item:focus-visible {
	background: var(--theme-surface-3);
	border-color: var(--theme-accent);
	outline: none;
}

.project-pagination__eyebrow,
.project-pagination__title {
	display: block;
}

.project-pagination__eyebrow {
	margin-bottom: 0.3rem;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--theme-text-muted);
}

.project-pagination__title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--theme-heading);
}

.home-hero,
.home-section {
	margin-bottom: 3rem;
}

.home-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 2.5rem;
	align-items: stretch;
}

.home-hero__identity {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.4rem;
	min-height: 100%;
	text-align: center;
}

.home-hero__photo {
	width: min(18rem, 100%);
	max-width: 16rem;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	box-shadow: var(--theme-shadow-large);
}

.home-hero__identity-copy {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.home-hero__identity-copy h1 {
	margin-bottom: 0.5rem;
}

.home-hero__icons {
	justify-content: center;
	margin-top: 0.35rem;
}

.home-hero__identity h1,
.home-hero__about h2,
.home-section h2 {
	margin-bottom: 0.5rem;
}

.home-hero__intro,
.home-hero__about p,
.home-section p {
	margin-bottom: 1rem;
}

.home-highlights {
	margin: 1.5rem 0 1.25rem;
	padding: 1rem 1.1rem;
	border: solid 1px var(--theme-border);
	border-radius: 0.5rem;
	background: var(--theme-surface);
}

.home-highlights__title {
	margin: 0 0 0.75rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.home-highlights__list,
.education-card ul {
	margin: 0;
	padding-left: 1.2rem;
}

.home-highlights__list li,
.education-card li {
	margin-bottom: 0.45rem;
}

.home-highlights__list li:last-child,
.education-card li:last-child {
	margin-bottom: 0;
}

.education-block__degree,
.education-block__meta {
	margin-bottom: 0.35rem;
}

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

.education-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
	margin-top: 1.5rem;
}

.education-card {
	padding: 1.1rem 1.15rem;
	border: solid 1px var(--theme-border);
	border-radius: 0.5rem;
	background: var(--theme-surface);
}

.education-card h3 {
	margin-bottom: 0.75rem;
	font-size: 1rem;
}

.home-section__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.home-section__header p {
	margin-bottom: 0;
}

.footer-home-link {
	border-bottom: 0;
	color: inherit;
	text-decoration: none;
}

.footer-home-link:hover,
.footer-home-link:focus-visible {
	color: var(--theme-accent);
	outline: none;
}

.portfolio-view-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 2.25rem 0 1.5rem;
}

.portfolio-view-toggle__label {
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.portfolio-view-toggle__actions {
	display: inline-flex;
	padding: 0.25rem;
	border: solid 1px var(--theme-border);
	border-radius: 999px;
	background: var(--theme-surface);
}

.portfolio-view-toggle__button {
	padding: 0.7rem 1.2rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.portfolio-view-toggle__button.is-active {
	background: var(--theme-strong);
	color: var(--theme-strong-text) !important;
}

.portfolio-view-toggle__button:focus-visible {
	outline: 2px solid var(--theme-strong);
	outline-offset: 2px;
}

.portfolio-view-panel.is-hidden {
	display: none !important;
}

.portfolio-table-view {
	margin-top: 0;
}

.portfolio-table-view__header {
	margin-bottom: 1.5rem;
}

.portfolio-table-view__header h2 {
	margin-bottom: 0.5rem;
}

.portfolio-table-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 13rem;
	gap: 2rem;
	align-items: start;
}

.portfolio-table-layout__main {
	min-width: 0;
}

.portfolio-table-shell {
	border: solid 1px var(--theme-border);
	border-radius: 0.5rem;
	background: var(--theme-surface);
	box-shadow: var(--theme-shadow-large);
	overflow: visible;
}

.portfolio-table {
	--portfolio-table-sticky-offset: 4.5rem;
	width: 100%;
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
}

.portfolio-table thead th {
	position: sticky;
	top: 0;
	z-index: 6;
	padding: 1rem 1.1rem;
	background: var(--theme-strong);
	color: var(--theme-strong-text);
	border: 0;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: left;
	box-shadow: 0 1px 0 0 var(--theme-border-soft);
}

.portfolio-table th,
.portfolio-table td {
	vertical-align: top;
	border-bottom: solid 1px var(--theme-border-soft);
}

.portfolio-table td {
	padding: 1rem 1.1rem;
	background: var(--theme-bg);
	line-height: 1.6;
}

.portfolio-table tbody tr:hover td {
	background: var(--theme-surface-3);
}

.portfolio-table__year-row th {
	padding: 1.1rem 1.1rem 0.95rem;
	background: var(--theme-surface-2);
	color: var(--theme-heading);
	border-top: solid 3px var(--theme-strong);
	border-bottom: solid 1px var(--theme-border);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.portfolio-table__year-anchor {
	display: block;
	scroll-margin-top: var(--portfolio-table-sticky-offset);
}

.portfolio-table__project-name {
	width: 24%;
	font-weight: 700;
}

.portfolio-table__project-name a {
	text-decoration: none;
	border-bottom: 0;
}

.portfolio-table__project-name a:hover {
	text-decoration: underline;
}

.portfolio-table__description {
	width: 48%;
	color: var(--theme-text-muted);
}

.portfolio-table__date {
	width: 18%;
	white-space: nowrap;
}

.portfolio-table-toc {
	position: sticky;
	top: 2rem;
	align-self: start;
	height: fit-content;
}

.portfolio-table-toc__inner {
	padding: 1.1rem 1.15rem;
	border: solid 1px var(--theme-border);
	border-radius: 0.5rem;
	background: var(--theme-surface);
	box-shadow: var(--theme-shadow);
}

.portfolio-table-toc__eyebrow {
	margin: 0 0 0.85rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.portfolio-table-toc__nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.portfolio-table-toc__nav li + li {
	margin-top: 0.55rem;
}

.portfolio-table-toc__nav a {
	display: block;
	padding: 0.4rem 0.5rem;
	border-radius: 0.35rem;
	border-bottom: 0;
	color: inherit;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.portfolio-table-toc__nav a:hover,
.portfolio-table-toc__nav a:focus-visible {
	background: var(--theme-strong);
	color: var(--theme-strong-text) !important;
	outline: none;
}

#main a.button.primary:hover,
#main a.button.primary:focus-visible,
#main .page-actions .button.primary:hover,
#main .page-actions .button.primary:focus-visible,
#main .project-toc__nav a:hover,
#main .project-toc__nav a:focus-visible,
#main .portfolio-table-toc__nav a:hover,
#main .portfolio-table-toc__nav a:focus-visible {
	color: #ffffff !important;
}

.tiles article > .image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	background: var(--theme-surface);
	overflow: hidden;
}

.tiles article.style1 > .image:before {
	background-color: var(--tile-1) !important;
}

.tiles article.style2 > .image:before {
	background-color: var(--tile-2) !important;
}

.tiles article.style3 > .image:before {
	background-color: var(--tile-3) !important;
}

.tiles article.style4 > .image:before {
	background-color: var(--tile-4) !important;
}

.tiles article.style5 > .image:before {
	background-color: var(--tile-5) !important;
}

.tiles article.style6 > .image:before {
	background-color: var(--tile-6) !important;
}

.tiles article > .image img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	margin: 0 auto;
	display: block;
}

.home-skills__table-wrapper {
	margin-top: 1rem;
	border: solid 1px var(--theme-border);
	border-radius: 0.6rem;
	background: var(--theme-surface);
	box-shadow: var(--theme-shadow);
	overflow: hidden;
}

.home-skills__table {
	width: 100%;
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
}

.home-skills__table thead th {
	padding: 1rem 1.1rem;
	background: var(--theme-strong);
	color: var(--theme-strong-text);
	border: 0;
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: left;
}

.home-skills__table tbody td {
	padding: 1rem 1.1rem;
	vertical-align: top;
	background: var(--theme-bg);
	border-bottom: solid 1px var(--theme-border-soft);
	line-height: 1.65;
}

.home-skills__table tbody tr:last-child td {
	border-bottom: 0;
}

.home-skills__table tbody tr:hover td {
	background: var(--theme-surface-3);
}

.home-skills__table td:first-child {
	width: 20%;
}

.home-skills__table td:nth-child(2) {
	width: 35%;
	color: var(--theme-text-muted);
}

.home-skills__table td:nth-child(3) {
	width: 45%;
}

.home-skills__table td a {
	white-space: nowrap;
}

@media screen and (max-width: 980px) {
	.home-hero {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.home-hero__identity {
		justify-content: flex-start;
	}

	.home-section__header {
		flex-direction: column;
		align-items: flex-start;
	}

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

	.portfolio-view-toggle {
		align-items: flex-start;
	}

	.portfolio-view-toggle__actions {
		width: 100%;
	}

	.portfolio-view-toggle__button {
		flex: 1 1 0;
		text-align: center;
	}

	.page-actions {
		flex-direction: column;
		align-items: stretch;
	}

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

	.project-hero-actions .button {
		text-align: center;
	}

	.project-layout {
		display: flex;
		flex-direction: column;
		gap: 1.5rem;
	}

	.project-image-pair {
		grid-template-columns: 1fr;
	}

	.project-toc {
		position: static;
		order: -1;
	}

	.portfolio-table-layout {
		grid-template-columns: 1fr;
	}

	.portfolio-table-toc {
		position: static;
	}

	.portfolio-table-shell {
		overflow-x: auto;
	}

	.project-pdf__frame {
		display: none;
	}

	.project-pdf__mobile-note {
		display: block;
	}

	.portfolio-table__project-name,
	.portfolio-table__description,
	.portfolio-table__date {
		width: auto;
	}

	.home-skills__table {
		min-width: 46rem;
	}

	.theme-toggle {
		width: 2.75rem;
	}
}
