:root {
	--ink: #14243a;
	--ink-deep: #101b2d;
	--muted: #637187;
	--paper: #f7f8f5;
	--white: #fff;
	--line: #e0e5e5;
	--accent: #c4f268;
	--accent-dark: #7d9e33;
	--mono: "DM Mono", monospace;
	--sans: "Manrope", sans-serif;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 82px;
}

body {
	min-width: 320px;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.75;
}

body, input, select, textarea {
	font-family: var(--sans);
}

body:before {
	display: none;
}

a {
	color: inherit;
}

.site-shell {
	width: 100%;
	overflow: hidden;
}

.hero {
	position: relative;
	min-height: 680px;
	padding: 28px max(7.5vw, 32px) 22px;
	overflow: hidden;
	background:
		radial-gradient(ellipse at 84% 47%, rgba(50, 77, 88, 0.28), transparent 34%),
		linear-gradient(125deg, #101b2d 0%, #15253a 60%, #17283c 100%);
	color: #f6f8f6;
}

.hero-top,
.hero-tools,
.hero-bottom,
.hero-actions,
.site-nav,
.nav-links,
.section-label,
.role-line,
.footer-bottom,
.footer-bottom > div {
	display: flex;
	align-items: center;
}

.hero-top,
.hero-bottom,
.site-nav,
.footer-bottom {
	justify-content: space-between;
}

.wordmark,
.nav-brand {
	color: var(--white);
	font-family: var(--mono);
	font-size: 21px;
	font-weight: 500;
	letter-spacing: -2px;
	border-bottom: 0;
}

.wordmark span,
.nav-brand span {
	color: var(--accent);
}

.hero-tools {
	gap: 28px;
}

.availability {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #bdc8d2;
	font-size: 11px;
	letter-spacing: .025em;
}

.availability-dot,
.caption-pulse {
	width: 7px;
	height: 7px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px rgba(196, 242, 104, .1);
}

.language-toggle,
.nav-language {
	padding: 8px 0 8px 12px;
	border: 0;
	background: transparent;
	color: #e7edf0;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .06em;
	cursor: pointer;
}

.language-toggle span,
.nav-language span {
	padding: 0 4px;
	color: #708095;
}

.hero-content {
	display: grid;
	grid-template-columns: 1fr .76fr;
	align-items: center;
	gap: 8%;
	max-width: 1100px;
	margin: 72px auto 44px;
}

.hero-copy {
	position: relative;
	z-index: 1;
}

.eyebrow,
.section-kicker,
.project-type {
	color: #9cacba;
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: .15em;
	line-height: 1.8;
}

.eyebrow {
	margin-bottom: 20px;
	color: var(--accent);
}

.hero h1 {
	margin: 0;
	color: #f8f9f6;
	font-size: clamp(64px, 8.5vw, 108px);
	font-weight: 600;
	letter-spacing: -.085em;
	line-height: .91;
}

.hero h1 span {
	color: var(--accent);
}

.hero-title {
	margin: 26px 0 12px;
	color: #e8edf0;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -.025em;
}

.hero-intro {
	max-width: 435px;
	margin-bottom: 24px;
	color: #aab7c4;
	font-size: 14px;
	line-height: 1.85;
}

.hero-actions {
	flex-wrap: wrap;
	gap: 11px;
}

.button {
	display: inline-flex;
	min-height: 45px;
	align-items: center;
	justify-content: center;
	gap: 17px;
	padding: 0 17px;
	border: 1px solid transparent;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .01em;
	text-decoration: none;
	transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
	cursor: pointer;
}

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

.button-primary {
	background: var(--accent);
	color: var(--ink-deep) !important;
}

.button-primary:hover {
	background: #d5fa91;
}

.button-quiet {
	border-color: rgba(255, 255, 255, .22);
	color: #ecf0f0 !important;
}

.button-quiet:hover {
	border-color: rgba(255, 255, 255, .6);
}

.relocation-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 24px 0 0;
	color: #a6b4c0;
	font-size: 11px;
	line-height: 1.7;
}

.relocation-mark {
	color: var(--accent);
	font-family: var(--mono);
}

.hero-portrait {
	position: relative;
	display: flex;
	min-height: 370px;
	align-items: center;
	justify-content: center;
}

.portrait-orbit {
	position: absolute;
	width: min(29vw, 340px);
	aspect-ratio: 1;
	border: 1px solid rgba(196, 242, 104, .17);
	border-radius: 50%;
}

.orbit-two {
	width: min(35vw, 400px);
	border-color: rgba(174, 193, 206, .13);
}

.portrait-frame {
	position: relative;
	width: min(25vw, 288px);
	aspect-ratio: 1;
	overflow: hidden;
	border: 1px solid rgba(196, 242, 104, .5);
	border-radius: 50%;
	background: #23364a;
	box-shadow: 0 26px 85px rgba(3, 9, 17, .34);
}

.portrait-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 38%;
}

.portrait-caption {
	position: absolute;
	right: 0;
	bottom: 28px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 13px;
	border: 1px solid rgba(232, 239, 239, .17);
	background: rgba(16, 27, 45, .78);
	color: #d9e0e2;
	font-size: 10px;
}

.caption-pulse {
	width: 6px;
	height: 6px;
}

.hero-index {
	position: absolute;
	top: 12px;
	right: 8px;
	color: #7e8da0;
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: .08em;
}

.hero-bottom {
	max-width: 1100px;
	margin: 10px auto 0;
	color: #8292a3;
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.hero-bottom-line {
	width: 60%;
	height: 1px;
	margin: 0 18px;
	background: rgba(223, 232, 237, .14);
}

.site-nav {
	position: sticky;
	z-index: 10;
	top: 0;
	min-height: 64px;
	padding: 0 max(7.5vw, 32px);
	border-bottom: 1px solid var(--line);
	background: rgba(247, 248, 245, .96);
	backdrop-filter: blur(14px);
}

.nav-brand {
	color: var(--ink);
	font-size: 17px;
}

.nav-links {
	align-self: stretch;
	gap: 28px;
}

.nav-links a {
	display: inline-flex;
	align-items: center;
	height: 100%;
	border-bottom: 2px solid transparent;
	color: #647184;
	font-size: 10px;
	font-weight: 700;
	text-decoration: none;
	transition: color .2s ease, border-color .2s ease;
}

.nav-brand,
.nav-links a {
	border-bottom-style: solid;
}

.nav-links a:not(.nav-cv) {
	border-bottom-color: transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
	color: var(--ink);
}

.nav-links .nav-cv {
	color: var(--ink);
}

.nav-language {
	color: var(--ink);
	font-size: 10px;
}

.content-section,
.site-footer {
	max-width: 1100px;
	margin: 0 auto;
	padding: 88px 34px;
}

.section-label {
	gap: 13px;
	margin-bottom: 36px;
	color: #8591a0;
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.section-label span:first-child {
	color: var(--accent-dark);
}

.intro-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10%;
}

.section-kicker {
	margin-bottom: 12px;
	color: var(--accent-dark);
}

.content-section h2,
.site-footer h2 {
	margin: 0;
	color: var(--ink);
	font-size: clamp(34px, 4.2vw, 51px);
	font-weight: 600;
	letter-spacing: -.065em;
	line-height: 1.16;
}

.intro-grid > div:first-child h2 {
	max-width: 475px;
}

.intro-body p,
.section-heading > p {
	margin-bottom: 14px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.9;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	margin-top: 8px;
	color: var(--ink);
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
}

.text-link span:last-child {
	color: var(--accent-dark);
}

.stat-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-top: 57px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.stat {
	display: flex;
	flex-direction: column;
	gap: 3px;
	color: var(--muted);
	font-size: 10px;
}

.stat strong {
	color: var(--ink);
	font-size: 29px;
	font-weight: 600;
	letter-spacing: -.07em;
	line-height: 1.2;
}

.stat strong span {
	color: var(--accent-dark);
}

.stat-note {
	align-self: end;
	padding-bottom: 3px;
}

.stat-note strong {
	font-size: 13px;
	letter-spacing: -.02em;
}

.experience-section {
	max-width: none;
	padding-right: max(calc((100% - 1032px) / 2), 34px);
	padding-left: max(calc((100% - 1032px) / 2), 34px);
	background: #edf0ed;
}

.section-heading {
	display: grid;
	grid-template-columns: 1.1fr .7fr;
	align-items: end;
	gap: 10%;
	margin-bottom: 48px;
}

.section-heading h2 {
	font-size: clamp(33px, 4vw, 47px);
}

.section-heading > p {
	max-width: 390px;
	margin: 0 0 3px;
}

.timeline {
	max-width: 860px;
	margin-left: auto;
}

.timeline-item {
	position: relative;
	display: grid;
	grid-template-columns: 150px 18px 1fr;
	gap: 20px;
	padding: 0 0 34px;
}

.timeline-item:not(:last-of-type):before {
	position: absolute;
	top: 7px;
	bottom: 0;
	left: 178px;
	width: 1px;
	background: #d3dbd7;
	content: "";
}

.timeline-date {
	padding-top: 5px;
	color: #748294;
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: .025em;
}

.timeline-marker {
	z-index: 1;
	width: 7px;
	height: 7px;
	margin-top: 8px;
	border: 1px solid var(--accent-dark);
	border-radius: 50%;
	background: #edf0ed;
	box-shadow: 0 0 0 4px #edf0ed;
}

.timeline-item:first-child .timeline-marker {
	background: var(--accent-dark);
}

.timeline-copy h3,
.expertise-card h3,
.project-card h3,
.certifications-block h3,
.cv-block h3 {
	margin: 0;
	color: var(--ink);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -.035em;
	line-height: 1.4;
}

.role-line {
	justify-content: flex-start;
	gap: 10px;
}

.role-current {
	padding: 2px 6px;
	background: #e0edca;
	color: #667f2d;
	font-family: var(--mono);
	font-size: 8px;
	letter-spacing: .07em;
}

.company {
	margin: 4px 0 11px !important;
	color: #34435a !important;
	font-size: 11px !important;
	font-weight: 700;
}

.company span {
	color: #788597;
	font-weight: 400;
}

.timeline-copy > p,
.earlier-role p {
	margin: 0 0 12px;
	color: var(--muted);
	font-size: 11px;
	line-height: 1.85;
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 13px;
}

.tag-list span {
	padding: 3px 8px;
	border: 1px solid rgba(113, 127, 137, .23);
	border-radius: 2px;
	color: #586779;
	font-family: var(--mono);
	font-size: 8px;
	line-height: 1.5;
}

.earlier-roles {
	margin: 0 0 0 188px;
	border-top: 1px solid #d3dbd7;
}

.earlier-roles summary {
	padding: 17px 0;
	color: #495a6e;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
}

.earlier-role {
	padding: 0 0 17px;
}

.earlier-role strong {
	display: block;
	color: var(--ink);
	font-size: 11px;
}

.earlier-role > span {
	display: block;
	margin: 2px 0 5px;
	color: #778596;
	font-size: 9px;
}

.earlier-role p {
	margin-bottom: 0;
	font-size: 10px;
}

.expertise-section {
	padding-bottom: 72px;
}

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

.expertise-card {
	position: relative;
	min-height: 190px;
	padding: 24px 24px 20px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, .56);
}

.card-number {
	display: block;
	margin-bottom: 19px;
	color: var(--accent-dark);
	font-family: var(--mono);
	font-size: 9px;
}

.expertise-card h3 {
	font-size: 15px;
}

.expertise-card p,
.project-card p {
	max-width: 440px;
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 11px;
	line-height: 1.8;
}

.certifications-block {
	display: grid;
	grid-template-columns: .7fr 1.3fr;
	gap: 10%;
	margin-top: 57px;
	padding-top: 31px;
	border-top: 1px solid var(--line);
}

.certifications-block h3 {
	max-width: 260px;
	font-size: 21px;
}

.certification-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.certification-list li {
	display: grid;
	grid-template-columns: 125px 1fr;
	gap: 16px;
	padding: 11px 0;
	border-bottom: 1px solid var(--line);
	font-size: 10px;
	line-height: 1.7;
}

.certification-list li:first-child {
	padding-top: 0;
}

.certification-list li > span:first-child {
	color: var(--ink);
	font-weight: 700;
}

.certification-list li > span:last-child {
	color: var(--muted);
}

.projects-section {
	max-width: none;
	padding-right: max(calc((100% - 1032px) / 2), 34px);
	padding-left: max(calc((100% - 1032px) / 2), 34px);
	background: #edf0ed;
}

.projects-section .section-heading {
	margin-bottom: 33px;
}

.project-grid {
	display: grid;
	grid-template-columns: 1.15fr 1fr 1fr;
	gap: 12px;
}

.project-card {
	min-height: 226px;
	padding: 23px;
	border: 1px solid #d9dfdb;
	background: rgba(255, 255, 255, .58);
	transition: transform .2s ease, border-color .2s ease;
}

.project-feature {
	background: var(--ink-deep);
	border-color: var(--ink-deep);
}

.project-feature h3 {
	color: #f3f6f1;
}

.project-feature p {
	color: #aebbc5;
}

.project-type {
	display: block;
	margin-bottom: 22px;
	color: #72832e;
	font-size: 8px;
}

.project-feature .project-type {
	color: var(--accent);
}

.project-card h3 {
	font-size: 14px;
}

.project-card .tag-list {
	margin-top: 16px;
}

.project-feature .tag-list span {
	border-color: rgba(231, 240, 239, .2);
	color: #c1cdd1;
}

.cv-section {
	max-width: 1100px;
	padding-bottom: 96px;
}

.cv-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 30px;
	padding-bottom: 31px;
	border-bottom: 1px solid var(--line);
}

.cv-summary {
	max-width: 580px;
	margin: 13px 0 0;
	color: var(--muted);
	font-size: 11px;
}

.cv-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cv-actions .button {
	min-height: 39px;
	padding: 0 12px;
	font-size: 9px;
}

.button-outline {
	border-color: var(--line);
	background: transparent;
	color: var(--ink) !important;
}

.button-outline:hover {
	border-color: #aab6ad;
}

.cv-columns {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(235px, .8fr);
	gap: 44px;
	padding-top: 30px;
}

.cv-block {
	margin: 0 0 33px;
}

.cv-block h3 {
	margin-bottom: 13px;
	font-size: 13px;
}

.cv-block > p,
.cv-entry p {
	margin: 0;
	color: var(--muted);
	font-size: 10px;
	line-height: 1.85;
}

.cv-entry {
	padding: 0 0 17px;
	margin-bottom: 16px;
	border-bottom: 1px solid #e8ebea;
}

.cv-entry > div:first-child strong,
.education-entry strong {
	display: block;
	color: var(--ink);
	font-size: 10px;
	font-weight: 700;
	line-height: 1.6;
}

.cv-entry > div:first-child span,
.education-entry span {
	display: block;
	margin: 2px 0 7px;
	color: #788596;
	font-size: 9px;
	line-height: 1.6;
}

.skills-list {
	margin: 0;
}

.skills-list > div {
	padding: 0 0 11px;
	margin-bottom: 11px;
	border-bottom: 1px solid #e8ebea;
}

.skills-list dt {
	margin-bottom: 2px;
	color: var(--ink);
	font-size: 9px;
	font-weight: 700;
}

.skills-list dd {
	margin: 0;
	color: var(--muted);
	font-size: 9px;
	line-height: 1.7;
}

.cv-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cv-list li {
	position: relative;
	padding: 0 0 7px 12px;
	color: var(--muted);
	font-size: 9px;
	line-height: 1.6;
}

.cv-list li:before {
	position: absolute;
	top: 8px;
	left: 0;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--accent-dark);
	content: "";
}

.education-entry {
	margin-bottom: 13px;
}

.site-footer {
	max-width: none;
	padding-right: max(calc((100% - 1032px) / 2), 34px);
	padding-bottom: 25px;
	padding-left: max(calc((100% - 1032px) / 2), 34px);
	background: var(--ink-deep);
	color: #f5f7f3;
}

.site-footer .section-label {
	color: #94a2ae;
}

.site-footer .section-label span:first-child {
	color: var(--accent);
}

.footer-main {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 30px;
	padding: 20px 0 54px;
}

.site-footer h2 {
	color: #f5f7f3;
	font-size: clamp(33px, 4.4vw, 52px);
}

.footer-email {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(232, 239, 239, .27);
	color: var(--accent);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.footer-bottom {
	flex-wrap: wrap;
	gap: 16px;
	padding-top: 17px;
	border-top: 1px solid rgba(232, 239, 239, .14);
	color: #93a1ae;
	font-family: var(--mono);
	font-size: 8px;
	letter-spacing: .025em;
}

.footer-bottom > div {
	gap: 19px;
}

.footer-bottom a {
	color: #b8c3ca;
	text-decoration: none;
}

.footer-bottom a:hover {
	color: var(--accent);
}

:focus-visible {
	outline: 2px solid var(--accent-dark);
	outline-offset: 4px;
}

@media (max-width: 800px) {
	.hero {
		min-height: 620px;
	}

	.hero-content {
		gap: 4%;
		margin-top: 78px;
	}

	.hero-portrait {
		min-height: 300px;
	}

	.content-section {
		padding-top: 69px;
		padding-bottom: 69px;
	}

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

	.project-feature {
		grid-column: 1 / -1;
		min-height: 185px;
	}

	.cv-columns {
		gap: 28px;
	}
}

@media (max-width: 600px) {
	html {
		scroll-padding-top: 70px;
	}

	.hero {
		min-height: 0;
		padding: 18px 22px 19px;
	}

	.hero-tools {
		gap: 12px;
	}

	.availability {
		max-width: 150px;
		font-size: 9px;
	}

	.language-toggle {
		padding-left: 5px;
		font-size: 9px;
	}

	.hero-content {
		grid-template-columns: 1fr;
		gap: 6px;
		margin: 59px auto 28px;
	}

	.hero h1 {
		font-size: clamp(70px, 17vw, 94px);
	}

	.hero-title {
		margin-top: 19px;
		font-size: 13px;
	}

	.hero-intro {
		max-width: 390px;
		font-size: 12px;
	}

	.hero-portrait {
		position: absolute;
		top: 88px;
		right: 16px;
		min-height: 0;
		opacity: .18;
		pointer-events: none;
	}

	.portrait-frame {
		width: 156px;
	}

	.portrait-orbit {
		width: 184px;
	}

	.orbit-two {
		width: 214px;
	}

	.portrait-caption,
	.hero-index {
		display: none;
	}

	.hero-copy {
		max-width: 100%;
	}

	.hero-actions {
		gap: 8px;
	}

	.button {
		min-height: 42px;
		padding: 0 13px;
		font-size: 10px;
	}

	.relocation-note {
		max-width: 340px;
		font-size: 9px;
	}

	.hero-bottom {
		font-size: 7px;
	}

	.hero-bottom-line {
		width: auto;
		flex: 1;
		margin: 0 9px;
	}

	.site-nav {
		min-height: 56px;
		padding: 0 17px;
	}

	.nav-links {
		gap: 14px;
	}

	.nav-links a {
		font-size: 8px;
	}

	.nav-brand {
		display: none;
	}

	.nav-language {
		padding: 8px 0 8px 5px;
		font-size: 8px;
	}

	.content-section,
	.site-footer {
		padding: 58px 22px;
	}

	.section-label {
		margin-bottom: 26px;
		font-size: 8px;
	}

	.intro-grid,
	.section-heading {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.content-section h2,
	.site-footer h2 {
		font-size: clamp(32px, 9vw, 43px);
	}

	.intro-body p,
	.section-heading > p {
		font-size: 12px;
	}

	.stat-row {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
		margin-top: 37px;
	}

	.stat-note {
		align-self: start;
	}

	.experience-section,
	.projects-section,
	.site-footer {
		padding-right: 22px;
		padding-left: 22px;
	}

	.section-heading {
		margin-bottom: 34px;
	}

	.timeline-item {
		grid-template-columns: 11px minmax(0, 1fr);
		gap: 12px;
		padding-bottom: 29px;
	}

	.timeline-item:not(:last-of-type):before {
		left: 3px;
	}

	.timeline-date {
		grid-column: 2;
		grid-row: 1;
		margin-bottom: -7px;
		font-size: 8px;
	}

	.timeline-marker {
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	.timeline-copy {
		grid-column: 2;
	}

	.timeline-copy h3 {
		font-size: 14px;
	}

	.timeline-copy > p {
		font-size: 10px;
	}

	.earlier-roles {
		margin-left: 23px;
	}

	.expertise-grid,
	.project-grid {
		grid-template-columns: 1fr;
	}

	.project-feature {
		grid-column: auto;
	}

	.expertise-card {
		min-height: 0;
	}

	.certifications-block {
		grid-template-columns: 1fr;
		gap: 20px;
		margin-top: 40px;
	}

	.certification-list li {
		grid-template-columns: 95px 1fr;
		gap: 10px;
		font-size: 9px;
	}

	.cv-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 19px;
	}

	.cv-actions {
		width: 100%;
	}

	.cv-actions .button {
		flex: 1;
		font-size: 8px;
	}

	.cv-columns {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.cv-side-column {
		padding-top: 10px;
		border-top: 1px solid var(--line);
	}

	.footer-main {
		align-items: flex-start;
		flex-direction: column;
		gap: 25px;
		padding-bottom: 38px;
	}

	.footer-email {
		font-size: 12px;
	}

	.footer-bottom {
		align-items: flex-start;
		font-size: 7px;
	}
}

@media (max-width: 360px) {
	html,
	body {
		min-width: 0;
	}
}

@media print {
	@page {
		margin: 14mm;
	}

	body,
	.site-shell {
		overflow: visible;
		background: #fff;
		color: #14243a;
	}

	body * {
		visibility: hidden !important;
	}

	#cv,
	#cv * {
		visibility: visible !important;
	}

	#cv {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		max-width: none;
		padding: 0;
	}

	#cv .cv-actions,
	#cv .section-label {
		display: none;
	}

	#cv .cv-header {
		padding-top: 0;
	}

	#cv .cv-columns {
		grid-template-columns: 1.6fr .8fr;
		gap: 22px;
	}

	#cv .cv-block,
	#cv .cv-entry {
		break-inside: avoid;
	}

	#cv h2 {
		font-size: 26pt;
	}

	#cv h3 {
		font-size: 11pt;
	}

	#cv p,
	#cv li,
	#cv dt,
	#cv dd,
	#cv span,
	#cv strong {
		font-size: 8pt;
	}
}

/* Project detail pages */

.page-hero {
	position: relative;
	padding: 54px max(7.5vw, 32px) 46px;
	background:
		radial-gradient(ellipse at 84% 20%, rgba(50, 77, 88, 0.28), transparent 40%),
		linear-gradient(125deg, #101b2d 0%, #15253a 60%, #17283c 100%);
	color: #f6f8f6;
}

.page-hero .back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 28px;
	color: #c7d2da;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .06em;
	text-decoration: none;
}

.page-hero .back-link:hover {
	color: var(--accent);
}

.page-hero .project-type {
	display: block;
	margin-bottom: 16px;
	color: var(--accent);
}

.page-hero h1 {
	margin: 0 0 16px;
	max-width: 720px;
	color: #f8f9f6;
	font-size: clamp(32px, 5vw, 52px);
	font-weight: 600;
	letter-spacing: -.045em;
	line-height: 1.08;
}

.page-hero .hero-intro {
	max-width: 560px;
	margin-bottom: 0;
	color: #aab7c4;
}

.page-hero .tag-list {
	margin-top: 26px;
}

.page-hero .tag-list span {
	border-color: rgba(231, 240, 239, .2);
	color: #c1cdd1;
}

/* Architecture diagrams */

.diagram-frame {
	padding: 28px;
	border: 1px solid var(--line);
	background: var(--white);
	overflow-x: auto;
}

.diagram-frame svg {
	display: block;
	width: 100%;
	height: auto;
	min-width: 640px;
}

.diagram-frame .diagram-box-title {
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 700;
	fill: var(--ink);
}

.diagram-frame .diagram-box-sub {
	font-family: var(--sans);
	font-size: 9px;
	fill: var(--muted);
}

.diagram-frame .diagram-box-title.on-dark {
	fill: #f3f6f1;
}

.diagram-frame .diagram-box-sub.on-dark {
	fill: #aebbc5;
}

.diagram-frame .diagram-box-title.on-accent,
.diagram-frame .diagram-box-sub.on-accent {
	fill: #15230c;
}

.diagram-frame .diagram-label {
	font-family: var(--mono);
	font-size: 8px;
	fill: #8591a0;
}

.diagram-frame .diagram-col-header {
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: .08em;
	fill: #8591a0;
	text-transform: uppercase;
}

.diagram-frame .box-light {
	fill: var(--paper);
	stroke: var(--line);
	stroke-width: 1;
}

.diagram-frame .box-dark {
	fill: var(--ink-deep);
	stroke: var(--ink-deep);
}

.diagram-frame .box-accent {
	fill: var(--accent-dark);
	stroke: var(--accent-dark);
}

.diagram-frame .box-client {
	fill: var(--paper);
	stroke: var(--accent-dark);
	stroke-width: 1.5;
}

.diagram-frame .connector {
	fill: none;
	stroke: #aab3bd;
	stroke-width: 1.5;
}

.diagram-frame .connector-accent {
	fill: none;
	stroke: var(--accent-dark);
	stroke-width: 1.5;
}

.diagram-caption {
	margin-top: 16px;
	color: var(--muted);
	font-size: 11px;
	line-height: 1.8;
}

.diagram-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.diagram-legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-family: var(--mono);
	font-size: 9px;
}

.diagram-legend-swatch {
	width: 10px;
	height: 10px;
	border-radius: 2px;
}

/* Clickable project cards on the homepage */

.project-card-link {
	display: contents;
	color: inherit;
	text-decoration: none;
}

.project-card-link:hover .project-card,
.project-card-link:focus-visible .project-card {
	transform: translateY(-3px);
	border-color: var(--accent-dark);
}

.project-card-link:hover .project-feature,
.project-card-link:focus-visible .project-feature {
	border-color: var(--accent);
}

.card-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	color: var(--accent-dark);
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: .04em;
}

.project-feature .card-cta {
	color: var(--accent);
}

@media (max-width: 800px) {
	.page-hero {
		padding: 44px 24px 38px;
	}
}

@media (max-width: 600px) {
	.page-hero {
		padding: 32px 18px 30px;
	}

	.page-hero h1 {
		font-size: clamp(28px, 9vw, 38px);
	}

	.diagram-frame {
		padding: 18px;
	}

	.diagram-frame svg {
		min-width: 560px;
	}
}
