/* WiLD MechanIX — additions on top of the Mikael template */

/* Default accent: orange (visitors can change it with the colour picker) */
:root {
	--p1: #f47b20;
}

/* Hero: flat accent colour with a soft light glow (replaces the red photo) */
.wmx-hero {
	background-image: radial-gradient(circle at 75% 65%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 55%), linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) !important;
	background-color: var(--p1) !important;
}

/* Arnaud cut-out photo, anchored to the bottom of the hero */
.wmx-hero-photo {
	background-position: left bottom !important;
	background-repeat: no-repeat;
}

@media only screen and (max-width: 767px) {
	.wmx-hero-photo {
		opacity: .35 !important;
	}
}

.wmx-lead {
	max-width: 520px;
	font-size: 18px;
	line-height: 1.6;
	opacity: .9;
}

/* Skills as plain labels */
.wmx-skill-group {
	margin-bottom: 24px;
}

.wmx-skill-group h6 {
	margin-bottom: 10px;
}

.wmx-tags span {
	display: inline-block;
	margin: 0 6px 8px 0;
	padding: 6px 14px;
	border: 1px solid rgba(16, 16, 16, .15);
	border-radius: 999px;
	font-size: 14px;
	line-height: 1.4;
	transition: background-color 250ms, border-color 250ms, color 250ms, transform 250ms;
}

.wmx-tags span:hover {
	background-color: var(--p1);
	border-color: var(--p1);
	color: #fff;
	transform: translateY(-2px);
}

/* Certification badges */
.wmx-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border: 2px solid var(--p1);
	border-radius: 50%;
	color: var(--p1);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .05em;
}

/* Companies grid */
.wmx-companies {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0 30px;
}

.wmx-company {
	padding: 20px 0 22px;
	border-top: 1px solid rgba(255, 255, 255, .2);
	transition: border-color 300ms;
}

.wmx-company__mark {
	display: flex;
	align-items: center;
	height: 48px;
	margin-bottom: 14px;
}

.wmx-company__logo {
	display: block;
	width: auto;
	max-width: 100%;
	opacity: .8;
	transition: opacity 300ms, transform 300ms;
}

.wmx-company__word {
	color: #fff;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -.02em;
	opacity: .8;
	transition: opacity 300ms, transform 300ms;
}

.wmx-company h6 {
	margin: 0 0 2px;
	color: #fff;
	font-size: 14px;
	transition: color 300ms;
}

.wmx-company span:not(.wmx-company__word) {
	color: rgba(255, 255, 255, .55);
	font-size: 13px;
}

.wmx-company:hover {
	border-color: var(--p1);
}

.wmx-company:hover .wmx-company__logo,
.wmx-company:hover .wmx-company__word {
	opacity: 1;
	transform: translateY(-3px);
}

.wmx-company:hover h6 {
	color: var(--p1);
}

@media only screen and (max-width: 991px) {
	.wmx-companies {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media only screen and (max-width: 575px) {
	.wmx-companies {
		grid-template-columns: repeat(2, 1fr);
		gap: 0 16px;
	}

	.wmx-company__mark {
		height: 40px;
	}

	.wmx-company__logo {
		max-height: 32px;
	}
}

/* Beyond work cards have no links */
.vlt-section[data-anchor="Beyond"] .vlt-post-title {
	cursor: default;
}

/* Beyond work: photo and video cards share the same 4:3 frame */
.wmx-passions .vlt-post-thumbnail {
	aspect-ratio: 4 / 3;
}

.wmx-passions .vlt-post-thumbnail img,
.wmx-passions .vlt-post-thumbnail video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wmx-passions .vlt-post-thumbnail video {
	transform: scale(1.05);
	transition: transform 1s cubic-bezier(.46, .03, .52, .96);
}

.wmx-passions .vlt-post:hover .vlt-post-thumbnail video {
	transform: scale(1);
}

.wmx-passions .vlt-post-thumbnail .badge {
	font-size: .9rem;
	background-color: var(--p1);
}

.wmx-passions .vlt-post-title {
	font-size: 1.25rem;
}

/* Portfolio and Companies: topographic background like the original theme demo */
.wmx-portfolio,
.wmx-companies-section {
	background: #151515 url(../img/root/cartographer.png) repeat !important;
}

.wmx-pf-head {
	position: absolute;
	z-index: 3;
	top: 120px;
	right: 8vw;
	left: 8vw;
	align-items: flex-start;
	justify-content: space-between;
}

.wmx-pf-head h1 {
	margin: 0;
}

.wmx-pf-nav {
	text-align: right;
}

.wmx-pf-controls {
	display: inline-flex;
	align-items: center;
	color: #999;
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -.01em;
	user-select: none;
}

.wmx-pf-controls .prev,
.wmx-pf-controls .next {
	padding: 6px;
	cursor: pointer;
	transition: color .3s cubic-bezier(.46, .03, .52, .96);
}

.wmx-pf-controls .prev:hover,
.wmx-pf-controls .next:hover {
	color: #fff;
}

.wmx-pf-controls .pagination {
	display: inline-flex;
	margin: 0 .9375rem;
}

.wmx-pf-controls .sep {
	margin: 0 .5rem;
}

.wmx-pf-controls .wmx-pf-current {
	color: #fff;
}

.wmx-pf-hint {
	margin: 6px 0 0;
	color: rgba(255, 255, 255, .45);
	font-size: 13px;
}

/* Experience: location tag and brighter descriptions */
.wmx-place {
	display: block;
	margin-bottom: 6px;
	color: var(--p1);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.vlt-section[data-anchor="Experience"] .vlt-timeline-item__text {
	color: rgba(255, 255, 255, .78);
}

/* Skills: tighter tags on shorter laptop screens */
@media only screen and (min-width: 992px) {
	.wmx-skill-group {
		margin-bottom: 14px;
	}

	.wmx-skill-group h6 {
		margin-bottom: 6px;
	}

	.wmx-tags span {
		margin: 0 5px 6px 0;
		padding: 4px 11px;
		font-size: 13px;
	}

	.vlt-section[data-anchor="Skills"] .vlt-gap-40 {
		height: 20px;
	}
}

/* Portfolio: a project can use a looping video instead of a picture */
.vlt-project-showcase__image video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.05);
	transition: opacity .5s cubic-bezier(.46, .03, .52, .96), transform 1.5s cubic-bezier(.46, .03, .52, .96);
}

.vlt-project-showcase__image.is-active video {
	opacity: 1;
	transform: scale(1);
}

.vlt-work-thumbnail video {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* Beyond work: short title + description */
.wmx-passions .wmx-post-text {
	margin: 8px 0 0;
	color: #666;
	font-size: 14px;
	line-height: 1.6;
}

/* Certifications & degrees: two compact columns */
.wmx-cert-group {
	margin-bottom: 18px;
	color: #999;
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.wmx-cert {
	align-items: center;
	margin-bottom: 22px;
}

.wmx-cert .wmx-badge {
	width: 52px;
	height: 52px;
	font-size: 12px;
}

.wmx-cert .vlt-award-item__content h6 {
	margin-bottom: 2px;
	font-size: 15px;
	line-height: 1.35;
}

.wmx-cert .vlt-award-item__content p {
	margin: 0;
	font-size: 13px;
}

.wmx-cert .vlt-award-item__logo {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	margin-right: 16px;
	padding: 0;
	background: none;
	box-shadow: none;
}

/* Skills: Languages title and tags on one line */
.wmx-skill-group--inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 14px;
}

.wmx-skill-group--inline h6 {
	margin: 0 0 8px;
}

@media only screen and (min-width: 992px) {
	.wmx-skill-group {
		margin-bottom: 10px;
	}

	.wmx-skill-group--inline h6 {
		margin-bottom: 6px;
	}
}

.wmx-skill-group--inline .wmx-tags {
	flex: 1 1 0;
	min-width: 260px;
}

@media only screen and (min-width: 992px) {
	.wmx-skill-group h6 {
		font-size: 17px;
	}

	.wmx-skill-group--inline .wmx-tags {
		min-width: 0;
	}
}
