:root {
	--dm-bg: var(--wp--preset--color--base, #080f20);
	--dm-surface: var(--wp--preset--color--surface, #101d36);
	--dm-line: var(--wp--preset--color--line, #263653);
	--dm-text: var(--wp--preset--color--contrast, #edf4ff);
	--dm-muted: var(--wp--preset--color--muted, #a4b2cd);
	--dm-accent: var(--wp--preset--color--accent, #68a0ff);
	--dm-accent-2: var(--wp--preset--color--accent-2, #ae8bff);
	--dm-radius: var(--wp--custom--radius, 8px);
	--dm-panel: linear-gradient(110deg, #1b2d4688, #17223520);
	--dm-panel-border: #718caa33;
	--mesh-rgb: var(--wp--custom--mesh-rgb, 96, 155, 255);
}

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

body {
	min-height: 100vh;
	background: radial-gradient(ellipse at 85% 12%, #183b6a55, transparent 42%), var(--dm-bg);
	-webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

a,
button {
	-webkit-tap-highlight-color: transparent;
}

:where(a, button, input, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--dm-accent);
	outline-offset: 4px;
}

[hidden] {
	display: none !important;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

main {
	flex: 1;
}

/* Shared elements */

.eyebrow {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.13em;
	color: var(--dm-muted);
}

h1 mark,
h2 mark {
	background: linear-gradient(105deg, var(--dm-accent), var(--dm-accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important;
}

.has-dot::after {
	content: '.';
	color: var(--dm-accent);
}

.primary,
.small {
	box-sizing: border-box;
}

.primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 13px 22px;
	border: 1px solid #4382f3;
	border-radius: 6px;
	background: var(--wp--preset--color--button, #245fdc);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
}

.primary:hover {
	background: #2d6ae6;
	border-color: #6b9ffc;
	color: #fff;
}

.wp-element-button,
.primary,
.small,
.text-link,
.filters button {
	transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}

.wp-element-button:active,
.primary:active,
.small:active {
	transform: translateY(1px);
}

.small {
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	border: 1px solid #394b65;
	border-radius: 6px;
	background: transparent;
	color: #afbdd1;
	font-size: 14px;
	line-height: 1.4;
	white-space: nowrap;
}

.small:hover {
	border-color: #69809c;
	background: #18263855;
	color: #afbdd1;
}

.text-link,
.wp-block-button.is-style-text .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: #c0d1e8;
	font-size: 15px;
	font-weight: 400;
	text-decoration: underline;
	text-underline-offset: 5px;
	text-decoration-color: #587394;
}

.text-link:hover,
.wp-block-button.is-style-text .wp-block-button__link:hover {
	background: none;
	color: #fff;
	text-decoration-color: #a1c1e8;
}

.wp-element-button {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.tags span {
	padding: 3px 9px;
	border: 1px solid var(--dm-line);
	border-radius: 3px;
	background: color-mix(in srgb, var(--dm-surface) 75%, transparent);
	color: var(--dm-muted);
	font-size: 12px;
}

/* Vertex mesh canvas, injected by mesh.js into .has-vertex-mesh */

.has-vertex-mesh {
	position: relative;
	isolation: isolate;
}

.vertex-mesh {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: -1;
	opacity: 0.8;
}

/* Header */

.site-header {
	min-height: 96px;
	gap: 40px;
	border-bottom: 1px solid var(--dm-line);
}

.brand {
	margin: 0;
	font-family: var(--wp--preset--font-family--oswald);
	font-size: 26px;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1;
	white-space: nowrap;
}

.brand span {
	color: var(--dm-accent);
}

.brand a:hover {
	color: var(--dm-text);
}

.site-header .brand {
	font-size: clamp(30px, 4.2vw, 50px);
}

.site-header .wp-block-navigation {
	margin-left: auto;
	gap: 34px;
	font-size: 14px;
}

.site-header .wp-block-navigation-item__content {
	position: relative;
	padding: 10px 0;
	color: var(--dm-muted);
}

.site-header .wp-block-navigation-item__content:hover,
.site-header .wp-block-navigation-item__content[aria-current='page'],
.post-type-archive-dm_project .site-header .wp-block-navigation a[href$='/weekend-projects/'],
.single-dm_project .site-header .wp-block-navigation a[href$='/weekend-projects/'] {
	color: var(--dm-text);
}

.site-header .wp-block-navigation-item__content[aria-current='page']::after,
.post-type-archive-dm_project .site-header .wp-block-navigation a[href$='/weekend-projects/']::after,
.single-dm_project .site-header .wp-block-navigation a[href$='/weekend-projects/']::after {
	content: '';
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	width: auto;
	height: 2px;
	background: var(--dm-accent);
}

.lang-switch {
	display: inline-flex;
	flex: none;
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--dm-line);
	border-radius: 7px;
}

.lang-switch a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	min-height: 32px;
	padding: 0 9px;
	border: 1px solid transparent;
	border-radius: 5px;
	color: var(--dm-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
	color: var(--dm-text);
}

.lang-switch a[aria-current] {
	border-color: var(--dm-accent);
	background: #68a0ff14;
	color: var(--dm-accent);
}

/* Page title strip */

.page-mesh {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 92px;
	margin: 0;
	border-bottom: 1px solid var(--dm-line);
	color: var(--dm-muted);
	font-size: 12px;
	letter-spacing: 0.04em;
}

.page-mesh > * {
	margin: 0;
}

.page-mesh .vertex-mesh {
	opacity: 0.55;
}

.page-mesh--title {
	justify-content: space-between;
	gap: 30px;
	padding: 30px 0;
}

.page-title {
	color: var(--dm-text);
	font-size: var(--wp--preset--font-size--xx-large);
	letter-spacing: -0.045em;
}

.page-intro {
	max-width: 400px;
	text-align: right;
}

.page-intro p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	letter-spacing: 0;
	text-wrap: balance;
}

.page-mesh .support-link {
	margin-left: auto;
}

.projects-grid > .filters {
	margin-bottom: 30px;
}

.support-link {
	display: flex;
	align-items: center;
	gap: 16px;
}

.support-link__lead {
	margin: 0;
	color: var(--dm-muted);
	font-size: 13px;
	letter-spacing: 0;
}

.project-back {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	border-bottom: 1px solid #4f6b8b;
	color: #bdd7fa;
	font-size: 14px;
	letter-spacing: 0;
}

.page-mesh .project-back + span {
	font-size: 14px;
	letter-spacing: 0;
}

/* Hero */

.portrait-hero {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	align-items: center;
	gap: 35px;
	min-height: 540px;
	padding: 50px 0 8px;
	overflow: hidden;
}

.portrait-hero > * {
	margin: 0;
}

.portrait-hero .vertex-mesh {
	opacity: 0.58;
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 90%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 0%, #000 90%, transparent 100%);
}

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

.hero-main > * {
	margin-block: 0;
}

.hero-main .eyebrow {
	color: var(--dm-accent);
	font-size: 13px;
	letter-spacing: 0.1em;
}

.hero-main .name {
	margin: 22px 0 18px;
	font-size: clamp(14px, 2.4vw, 18px);
	letter-spacing: 0.02em;
}

.hero-main h1 {
	margin: 0 0 27px;
	font-size: clamp(40px, 4.3vw, 62px);
}

.hero-main .intro {
	max-width: 520px;
	color: var(--dm-muted);
	font-size: 17px;
	line-height: 1.75;
}

.hero-actions {
	gap: 25px;
	margin: 30px 0 12px;
}

.portrait-stage {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	min-height: 430px;
}

.portrait-stage img {
	display: block;
	width: 440px;
	max-width: 100%;
	height: auto;
	user-select: none;
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%);
}

/* Profile about */

.profile-about {
	max-width: 760px;
	padding: 28px 0 18px;
}

.profile-about p {
	margin: 0;
	color: var(--dm-text);
	font-size: 17px;
	line-height: 1.78;
}

/* Profile links */

.profile-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
	padding: 22px 0 65px;
}

.profile-link {
	position: relative;
	margin: 0;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 250px;
	padding: 30px;
	border: 1px solid #576d8529;
	border-radius: 20px;
	background: linear-gradient(130deg, #1d304c88, #15203320);
	box-shadow: inset 0 0 35px #729bd00a;
	transition: border-color 0.2s;
}

.profile-link:hover,
.profile-link:focus-within {
	border-color: #799dc966;
}

.profile-link > * {
	margin-block: 0;
}

.profile-link .eyebrow {
	letter-spacing: 0.08em;
}

.profile-link h3 {
	margin: 16px 0 10px;
	font-size: 25px;
	line-height: 1.2;
}

.profile-link h3 a::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.profile-link h3 a:hover {
	color: inherit;
}

.profile-link p:not(.eyebrow, .text-link) {
	max-width: 440px;
	margin-bottom: 20px;
	color: var(--dm-muted);
	line-height: 1.7;
}

.profile-link .text-link {
	margin-top: auto;
	align-self: flex-start;
}

/* Sections */

.section {
	padding: 48px 0 70px;
}

.section > * {
	margin-block: 0;
}

.section-heading {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 42px;
}

.section-heading h2 {
	margin: 12px 0 0;
}

.section-heading > p {
	margin: 0;
	color: var(--dm-muted);
}

/* Career */

.career-grid {
	display: grid;
	grid-template-columns: 1.85fr 1fr;
	gap: 45px;
}

.career-grid > * {
	margin: 0;
}

.career-main {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
}

.career-references {
	margin: 0 0 10px;
	padding: 0 0 26px;
	border-bottom: 1px solid var(--dm-line);
}

.career-references__title {
	margin: 10px 0 22px;
	font-size: clamp(22px, 2.5vw, 28px);
}

.career-references__list {
	display: grid;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.career-reference {
	margin: 0;
	padding: 18px 0 18px 18px;
	border-left: 2px solid var(--dm-accent);
	background: color-mix(in srgb, var(--dm-accent) 4%, transparent);
}

.career-reference p {
	margin: 0;
	color: var(--dm-text);
	font-size: 16px;
	line-height: 1.75;
}

.career-reference footer {
	margin-top: 12px;
	color: var(--dm-muted);
	font-size: 14px;
	font-style: normal;
}

.career-main .timeline article:first-child {
	border-top: none;
	padding-top: 22px;
}

.timeline article {
	display: grid;
	grid-template-columns: 145px 1fr;
	gap: 25px;
	padding: 30px 0;
	border-top: 1px solid var(--dm-line);
}

.timeline article.is-continued {
	padding-top: 18px;
	border-top: none;
}

.timeline .date {
	padding-top: 4px;
	color: var(--dm-muted);
	font-size: 13px;
}

.timeline h3 {
	margin: 0 0 13px;
	font-size: 23px;
}

.timeline p {
	margin: 0 0 15px;
	color: var(--dm-muted);
	line-height: 1.7;
}

.private-detail {
	margin-top: 18px;
	padding: 15px;
	border-left: 2px solid var(--dm-accent);
	background: color-mix(in srgb, var(--dm-accent) 5%, transparent);
	font-size: 14px;
}

.private-detail p {
	margin: 6px 0 0;
	font-size: 14px;
}

.access-card,
.contact {
	border: 1px solid var(--dm-panel-border);
	border-radius: 20px;
	background: var(--dm-panel);
	box-shadow: inset 0 0 40px #92bde30a;
}

.access-card {
	align-self: start;
	padding: 30px;
}

.lock-icon {
	display: block;
	margin-bottom: 8px;
	color: var(--dm-accent);
}

.access-card h3 {
	margin: 15px 0 13px;
	font-size: 30px;
}

.access-card p {
	color: var(--dm-muted);
}

.access-card .primary {
	display: flex;
	width: 100%;
	margin-top: 20px;
}

.access-card .text-link {
	margin-top: 12px;
}

/* Certifications */

.certifications {
	margin-bottom: 10px;
	padding: 45px 0 60px;
	border-top: 1px solid var(--dm-line);
	scroll-margin-top: 90px;
}

.certifications .section-heading {
	margin-bottom: 25px;
}

.certifications h2 {
	font-size: 34px;
	letter-spacing: -0.035em;
}

.certificate-controls {
	display: flex;
	gap: 10px;
}

.certificate-controls button {
	min-height: 44px;
}

.certificate-controls button:disabled {
	opacity: 0.4;
	cursor: default;
	background: transparent;
}

.certifications.is-static .certificate-controls,
.certifications.is-static .certificate-dots,
.certifications.is-static .certificate-position {
	display: none;
}

.certificate-stage {
	position: relative;
	isolation: isolate;
	border-radius: 16px;
	background: #10213755;
}

.certificate-mesh {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: -1;
}

.certificate-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 36px) / 3);
	gap: 18px;
	padding: 8px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-left: 8px;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}

.certificate-track::-webkit-scrollbar {
	display: none;
}

.certificate-track:focus-visible {
	outline: 2px solid #789bd2;
	outline-offset: 5px;
	border-radius: 16px;
}

.certificate-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 270px;
	padding: 27px;
	border: 1px solid #5878a440;
	border-radius: 12px;
	background: #0c182b99;
	scroll-snap-align: start;
	transition: border-color 0.2s, background 0.2s;
}

.certificate-card:hover {
	border-color: #7394bd88;
	background: #112039a6;
}

.certificate-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 25px;
}

.certificate-badge,
.certificate-logo {
	flex: none;
	width: 46px;
	height: 46px;
	border: 1px solid #6689b466;
	border-radius: 12px;
}

.certificate-badge {
	display: grid;
	place-items: center;
	background: #23477766;
	color: #c4deff;
	font-size: 15px;
	font-weight: 600;
}

.certificate-logo {
	padding: 6px;
	object-fit: contain;
	background: #f5f8fc;
}

.certificate-issuer {
	color: #8b9bb0;
	font-size: 12px;
	text-align: right;
}

.certificate-card h3 {
	margin: 0 0 12px;
	font-size: 22px;
	line-height: 1.25;
}

.certificate-card p {
	margin: 0 0 18px;
	color: var(--dm-muted);
	font-size: 15px;
	line-height: 1.7;
}

.certificate-card .certificate-detail {
	align-self: flex-start;
	min-height: 36px;
	margin-top: auto;
}

.certificate-navigation {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 30px;
	margin: 20px 8px 0;
}

.certificate-dots {
	display: flex;
	align-items: center;
	gap: 3px;
}

.certificate-dot {
	display: grid;
	place-items: center;
	width: 28px;
	min-height: 32px;
	padding: 8px;
	border: 0;
	background: transparent;
}

.certificate-dot::before {
	content: '';
	display: block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #566a87;
	transition: width 0.2s, background 0.2s;
}

.certificate-dot[aria-current='true']::before {
	width: 21px;
	border-radius: 9px;
	background: #81a9dc;
}

.certificate-dot:focus-visible {
	outline: 2px solid #91b8ed;
	outline-offset: 1px;
	border-radius: 6px;
}

.certificate-position,
.certificate-hint {
	color: #8e9fb7;
	font-size: 12px;
}

.certificate-hint {
	margin-left: auto;
}

.certificate-detail-facts {
	margin: 25px 0;
}

.certificate-detail-facts > div {
	display: grid;
	grid-template-columns: 125px 1fr;
	gap: 15px;
	padding: 12px 0;
	border-top: 1px solid var(--dm-line);
	font-size: 14px;
}

.certificate-detail-facts dt {
	color: var(--dm-muted);
}

.certificate-detail-facts dd {
	margin: 0;
}

.certificate-detail-facts a {
	color: var(--dm-accent);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Projects */

.projects-heading {
	margin-bottom: 42px;
}

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 30px;
}

.filters button {
	padding: 7px 14px;
	border: 1px solid #3c506c;
	border-radius: 6px;
	background: transparent;
	color: #becde1;
	font-size: 14px;
}

.filters button[aria-pressed='true'] {
	border-color: #567ead;
	background: #224572;
	color: #e5f0ff;
}

.section-heading .filters {
	margin: 0;
}

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

.project {
	position: relative;
	padding: 16px 16px 52px;
	border: 1px solid var(--dm-line);
	border-radius: var(--dm-radius);
	background: color-mix(in srgb, var(--dm-surface) 38%, transparent);
	transition: border-color 0.2s;
}

.project:hover,
.project:focus-within {
	border-color: #4f6b8b;
}

.project h3 {
	margin: 0 0 13px;
	font-size: 25px;
}

.project h3 a::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.project h3 a:hover {
	color: inherit;
}

.project p {
	min-height: 54px;
	max-width: 460px;
	margin: 0 0 16px;
	color: var(--dm-muted);
}

.project-arrow {
	position: absolute;
	right: 18px;
	bottom: 16px;
	display: flex;
	color: #4f6b8b;
	pointer-events: none;
	transition: color 0.2s, filter 0.2s, transform 0.2s;
}

.project:hover .project-arrow,
.project:focus-within .project-arrow {
	color: var(--dm-accent);
	filter: drop-shadow(0 0 6px color-mix(in srgb, var(--dm-accent) 70%, transparent));
	transform: translateX(4px);
}

.project-meta {
	display: flex;
	justify-content: space-between;
	margin: 19px 0 10px;
	color: var(--dm-muted);
	font-size: 12px;
	letter-spacing: 0.06em;
}

.project-visual {
	position: relative;
	height: 225px;
	padding: 23px;
	overflow: hidden;
	border-radius: calc(var(--dm-radius) / 2);
	background-color: var(--dm-surface);
	color: var(--dm-accent);
}

.project-visual > span {
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.project-visual.has-image {
	padding: 0;
}

.project-visual.has-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.project-type {
	margin-top: 28px;
	font-size: 50px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.04em;
	text-transform: uppercase;
}

.project-type span {
	display: block;
	margin-top: 20px;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.15em;
}

.project-visual.circuit {
	background-image:
		linear-gradient(color-mix(in srgb, var(--dm-accent) 10%, transparent) 1px, transparent 1px),
		linear-gradient(90deg, color-mix(in srgb, var(--dm-accent) 10%, transparent) 1px, transparent 1px);
	background-size: 25px 25px;
}

.project-visual.terminal {
	background: #080f17;
	color: #acbed4;
}

.project-visual.terminal code {
	display: block;
	margin-top: 20px;
	font-size: 14px;
	line-height: 1.45;
}

.project-visual.terminal :is(i, em, b) {
	color: var(--dm-accent);
	font-style: normal;
}

.project-visual.grid {
	background: linear-gradient(130deg, var(--dm-surface), color-mix(in srgb, var(--dm-accent) 12%, var(--dm-bg)));
}

.project-visual.notes {
	background: linear-gradient(140deg, color-mix(in srgb, var(--dm-accent-2) 16%, var(--dm-bg)), var(--dm-surface));
}

/* Project detail */

.project-header .project-detail-heading {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	align-items: center;
	gap: 55px;
	padding-top: 45px;
}

.project-detail-heading h1 {
	margin: 18px 0 22px;
	font-size: 56px;
}

.project-lead {
	max-width: 550px;
	color: var(--dm-muted);
	font-size: 18px;
	line-height: 1.7;
}

.project-detail-heading .project-visual {
	height: 280px;
	border: 1px solid var(--dm-line);
}

.project-story {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 35px;
	margin-top: 40px;
	padding-top: 35px;
	border-top: 1px solid var(--dm-line);
}

.project-page {
	padding-bottom: 65px;
}

.project-story > * {
	min-width: 0;
	margin: 0;
}

.project-story h2 {
	margin: 14px 0 18px;
	font-size: 25px;
	letter-spacing: -0.025em;
}

.project-story p:not(.eyebrow) {
	color: var(--dm-muted);
	line-height: 1.75;
}

.single-dm_project .wp-block-post-content > :not(.project-story) {
	max-width: 760px;
}

/* Contact */

.contact {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0 32px;
	margin-bottom: 20px;
	padding: 42px;
	text-align: left;
}

.contact > * {
	grid-column: 1;
	margin: 0;
}

.contact h2 {
	margin: 12px 0 8px;
	font-size: 38px;
}

.contact p {
	color: var(--dm-muted);
}

.contact .primary {
	grid-column: 2;
	grid-row: 1 / 4;
	align-self: center;
}

.contact-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
	font-size: 15px;
}

.contact-links a {
	color: #c0d1e8;
	text-decoration: underline;
	text-underline-offset: 5px;
	text-decoration-color: #587394;
}

.contact-links a:hover {
	color: #fff;
}

.contact-links span {
	color: var(--dm-line);
}

/* Footer */

.site-footer {
	gap: 20px;
	padding: 34px 0;
	color: var(--dm-muted);
	font-size: 12px;
}

.site-footer > * {
	margin: 0;
}

.site-footer .brand a:hover {
	color: var(--dm-text);
}

.footer-linkedin {
	display: inline-flex;
	margin-left: 6px;
	vertical-align: -3px;
	color: var(--dm-muted);
	transition: color 0.2s;
}

.footer-linkedin:hover,
.footer-linkedin:focus-visible {
	color: var(--dm-accent);
}

.project-website {
	margin: 24px 0 0;
}

.bmc-button {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 44px;
	padding: 10px 18px;
	overflow: hidden;
	border: 1px solid #3c506c;
	border-radius: 6px;
	background: #0c182b;
	color: #c8defd;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.01em;
	transition: border-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.bmc-button::before {
	content: '';
	position: absolute;
	inset: -1px;
	z-index: -1;
	background: url('../images/facets.svg') center / 100% 100% no-repeat;
	opacity: 0.5;
	transform: scale(1.04);
	transition: opacity 0.25s, transform 0.4s ease-out;
}

.bmc-button:hover,
.bmc-button:focus-visible {
	border-color: #567ead;
	color: #fff;
	box-shadow: 0 0 18px #39619a35;
}

.bmc-button:hover::before,
.bmc-button:focus-visible::before {
	opacity: 1;
	transform: scale(1.12) translateX(-3%);
}

.bmc-button__icon {
	flex: none;
	color: var(--dm-accent);
}

/* Dialog */

.dm-modal {
	width: min(92%, 500px);
	max-height: 90vh;
	padding: 45px;
	overflow: auto;
	border: 1px solid var(--dm-line);
	border-radius: var(--dm-radius);
	background: var(--dm-bg);
	color: var(--dm-text);
}

.dm-modal::backdrop {
	background: #0b102780;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.dm-modal .close {
	position: absolute;
	top: 8px;
	right: 12px;
	min-width: 44px;
	min-height: 44px;
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
}

.dm-modal h2 {
	margin: 12px 0 0;
	font-size: 30px;
}

.dm-modal p {
	color: var(--dm-muted);
}

.dm-modal label {
	display: block;
	margin-top: 16px;
	font-size: 14px;
}

.dm-modal input,
.dm-modal textarea {
	width: 100%;
	margin: 8px 0 4px;
	padding: 12px;
	border: 1px solid var(--dm-line);
	border-radius: var(--dm-radius);
	background: var(--dm-surface);
	color: var(--dm-text);
}

.dm-modal textarea {
	resize: vertical;
}

.dm-modal form .primary {
	margin-top: 16px;
}

.dm-modal .error {
	color: #ff7b7b;
	font-size: 14px;
}

.dm-modal .error:empty {
	display: none;
}

.dm-form-status {
	min-height: 1.6em;
	font-size: 14px;
}

.dm-form-status.is-success {
	color: #8fe8ca;
}

.dm-modal .contact-links {
	padding-top: 16px;
	border-top: 1px solid var(--dm-line);
	font-size: 14px;
}

.dm-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.vertex-form-overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 4;
}

.form-resolving {
	overflow: hidden;
}

.form-resolving .dm-modal__content {
	opacity: 0;
}

.form-resolving .close {
	z-index: 5;
}

/* 404 and generic content */

.not-found {
	padding: 80px 0;
}

.not-found h1 {
	margin: 12px 0 18px;
}

.not-found p:not(.eyebrow) {
	color: var(--dm-muted);
	max-width: 520px;
}

.wp-block-post-content > .alignwide,
.wp-block-post-content > .alignfull {
	max-width: none;
}

/* Responsive */

@media (min-width: 1200px) {
	.portrait-stage {
		margin-right: -20px;
	}
}

@media (max-width: 1050px) {
	.hero-actions {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.career-grid {
		gap: 25px;
	}

	.timeline article {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}

@media (max-width: 1000px) {
	.hero-main h1 {
		font-size: 43px;
	}

	.portrait-stage {
		min-height: 330px;
	}

	.portrait-stage img {
		width: 340px;
	}

	.certificate-track {
		grid-auto-columns: calc((100% - 18px) / 2);
	}
}

@media (max-width: 900px) {
	.project-header .project-detail-heading {
		gap: 30px;
	}

	.project-detail-heading h1 {
		font-size: 44px;
	}

	.project-story {
		grid-template-columns: 1fr;
		gap: 25px;
	}

	.project-story h2 {
		margin-bottom: 10px;
	}
}

@media (max-width: 700px) {
	.site-header {
		flex-wrap: wrap;
		gap: 18px 10px;
		min-height: 0;
		padding: 18px 0;
	}

	.site-header .lang-switch {
		margin-left: auto;
	}

	.lang-switch a {
		min-width: 30px;
		min-height: 30px;
		padding: 0 6px;
	}

	.site-header .wp-block-navigation {
		order: 3;
		width: 100%;
		margin: 0;
		gap: 10px;
	}

	.site-header .wp-block-navigation__container {
		width: 100%;
		justify-content: space-between;
	}

	.page-mesh {
		flex-wrap: wrap;
		gap: 12px;
		min-height: 60px;
		padding: 12px 0;
	}

	.portrait-hero {
		grid-template-columns: 1fr;
		gap: 20px;
		min-height: 0;
		padding: 30px 0 0;
		overflow: visible;
	}

	.hero-main .eyebrow {
		font-size: 12px;
		letter-spacing: 0.03em;
	}

	.hero-main .name {
		margin-top: 23px;
	}

	.hero-main h1 {
		font-size: clamp(31px, 8vw, 43px);
	}

	.hero-main .intro {
		font-size: 16px;
	}

	.hero-actions {
		align-items: stretch;
		margin: 25px 0 10px;
	}

	.hero-actions .wp-block-button,
	.hero-actions .wp-block-button__link {
		width: 100%;
	}

	.wp-block-button.is-style-text .wp-block-button__link {
		justify-content: center;
	}

	.portrait-stage {
		justify-self: center;
		max-width: 360px;
		min-height: 300px;
	}

	.portrait-stage img {
		width: 320px;
	}

	.profile-about {
		padding: 20px 0 12px;
	}

	.profile-about p {
		font-size: 16px;
		line-height: 1.72;
	}

	.profile-links {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 25px 0 45px;
	}

	.profile-link {
		min-height: 220px;
		padding: 24px;
	}

	.section {
		padding: 35px 0 45px;
	}

	.section-heading {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
		margin-bottom: 25px;
	}

	.section-heading h2 {
		font-size: 39px;
	}

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

	.access-card {
		padding: 26px;
	}

	.certifications {
		padding: 35px 0 45px;
	}

	.certifications .section-heading {
		gap: 15px;
	}

	.certifications h2 {
		font-size: 30px;
	}

	.certificate-controls {
		align-self: flex-end;
	}

	.certificate-track {
		grid-auto-columns: 88%;
		gap: 14px;
	}

	.certificate-card {
		min-height: 255px;
		padding: 24px;
	}

	.certificate-hint {
		display: none;
	}

	.certificate-navigation {
		justify-content: space-between;
		margin-top: 14px;
	}

	.certificate-detail-facts > div {
		grid-template-columns: 1fr;
		gap: 3px;
	}

	.filters button {
		padding: 8px 15px;
	}

	.project-grid {
		grid-template-columns: 1fr;
		gap: 25px;
	}

	.project p {
		min-height: 0;
	}

	.project-type {
		font-size: 44px;
	}

	.project-header .project-detail-heading {
		grid-template-columns: 1fr;
		gap: 25px;
		padding-top: 30px;
	}

	.project-detail-heading h1 {
		font-size: 40px;
	}

	.project-lead {
		font-size: 16px;
	}

	.project-detail-heading .project-visual {
		height: 225px;
	}

	.project-page {
		padding-bottom: 45px;
	}

	.contact {
		display: block;
		padding: 28px 25px;
	}

	.contact h2 {
		font-size: 32px;
	}

	.contact .primary {
		margin-top: 16px;
	}

	.site-footer {
		flex-wrap: wrap;
	}

	.page-mesh--title {
		padding: 22px 0;
	}

	.page-intro {
		text-align: left;
	}

	.page-mesh .support-link {
		flex-wrap: wrap;
		gap: 12px;
		margin-left: 0;
	}

	.site-footer .brand {
		width: 100%;
	}

	.dm-modal {
		padding: 35px 25px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
	}

	.wp-element-button:active,
	.primary:active,
	.small:active {
		transform: none;
	}
}
