/* Experience page: career timeline with round company logos on a squiggly spine. Loaded only by page-experience.hbs */
.experience-head .experience-intro {
	max-width: 46rem;
	margin: 1.5rem auto 0;
	text-align: center;
}
.xp {
	--xp-col: 5rem; /* logo column width; the spine runs down its centre */
	--xp-logo: 3.5rem;
	--xp-line: 18px; /* width of the wave tile */
	--xp-gap: 3rem; /* space between entries */
	--xp-ink: var(--text-color-main);
	max-width: 46rem;
	margin: 2.5rem auto 5rem;
	padding: 0;
	list-style: none;
}
.xp-item {
	position: relative;
	display: grid;
	grid-template-columns: var(--xp-col) minmax(0, 1fr);
	padding-bottom: var(--xp-gap);
}
/* The spine: a faint track (::before) and a gradient line (::after) drawn on top of it as the entry scrolls in.
   Each entry owns the segment from its own logo centre to the next entry's logo centre, so the seams hide under
   the logos. The wave is an SVG tile used as a mask, so it stays crisp at any height and takes the theme gradient. */
.xp-item::before,
.xp-item::after {
	content: "";
	position: absolute;
	top: calc(var(--xp-logo) / 2);
	bottom: calc(-1 * var(--xp-logo) / 2);
	left: calc(var(--xp-col) / 2 - var(--xp-line) / 2);
	width: var(--xp-line);
	pointer-events: none;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='40' viewBox='0 0 18 40'%3E%3Cpath d='M9 0C16 7 16 13 9 20S2 33 9 40' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='40' viewBox='0 0 18 40'%3E%3Cpath d='M9 0C16 7 16 13 9 20S2 33 9 40' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
	-webkit-mask-repeat: repeat-y;
	mask-repeat: repeat-y;
	-webkit-mask-size: var(--xp-line) 40px;
	mask-size: var(--xp-line) 40px;
}
.xp-item::before {
	background: var(--border-color);
}
.xp-item::after {
	background: linear-gradient(180deg, var(--gradient-color-one), var(--gradient-color-two));
}
.xp-item:last-child::before,
.xp-item:last-child::after {
	display: none;
}
/* Logo: a full round badge, white in both modes so the brand marks read as designed. */
.xp-logo {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: var(--xp-logo);
	height: var(--xp-logo);
	margin: 0 auto;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--border-color);
	border-radius: 50%;
	box-shadow: 0 0 0 5px var(--body-background-color), var(--shadow);
}
.xp-logo img {
	width: 100%;
	height: 100%;
	padding: 18%;
	object-fit: contain;
}
.xp-logo.is-cover img {
	padding: 0;
	object-fit: cover;
}
.xp-body {
	min-width: 0;
	padding-left: 0.25rem;
}
.xp-top,
.xp-role {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 1rem;
	align-items: baseline;
	justify-content: space-between;
}
.xp-company {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: var(--xp-logo);
	color: var(--text-color-dark);
}
.xp-company small {
	font-size: 1rem;
	font-weight: 400;
	color: var(--xp-ink);
	opacity: 0.75;
}
.xp-company small::before {
	content: "·";
	margin: 0 0.4rem;
}
.xp-dates,
.xp-place {
	font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
	font-size: 0.8rem;
	letter-spacing: 0.02em;
	white-space: nowrap;
	color: var(--xp-ink);
	opacity: 0.7;
}
.xp-dates {
	line-height: var(--xp-logo);
}
.xp-role {
	margin-top: -0.35rem;
}
.xp-role span:first-child {
	font-size: 1rem;
	font-weight: 500;
	color: var(--text-color-dark);
}
.xp-tagline {
	margin: 0.6rem 0 0;
	font-size: 0.95rem;
	font-style: italic;
	opacity: 0.85;
}
.xp-bullets {
	margin: 0.75rem 0 0;
	padding-left: 1.1rem;
}
.xp-bullets li {
	margin: 0.35rem 0;
	font-size: 0.98rem;
	line-height: 1.6;
}
.xp-bullets li::marker {
	color: var(--gradient-color-two);
}
.xp-now {
	display: inline-block;
	margin-left: 0.5rem;
	padding: 0.1rem 0.5rem;
	font-size: 0.7rem;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	vertical-align: middle;
	color: #fff;
	background: var(--gradient-primary);
	border-radius: 999px;
}
@media (max-width: 600px) {
	.xp {
		--xp-col: 3.75rem;
		--xp-logo: 2.75rem;
		--xp-gap: 2.5rem;
	}
	.xp-company {
		font-size: 1.1rem;
	}
	.xp-company small {
		display: block;
		line-height: 1.3;
		margin-bottom: 0.4rem;
	}
	.xp-company small::before {
		content: none;
	}
	.xp-dates {
		line-height: 1.4;
	}
	.xp-role {
		margin-top: 0.15rem;
	}
	.xp-logo img {
		padding: 16%;
	}
}
/* Scroll-driven: the gradient line draws itself and each entry rises into place as it enters the viewport.
   Decorative only, so no JS fallback: unsupported browsers and reduced-motion users see the finished state. */
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		@keyframes xp-draw {
			from {
				clip-path: inset(0 0 100% 0);
			}
			to {
				clip-path: inset(0 0 0 0);
			}
		}
		@keyframes xp-rise {
			from {
				opacity: 0;
				translate: 0 1rem;
			}
			to {
				opacity: 1;
				translate: 0 0;
			}
		}
		.xp-item::after {
			animation: xp-draw linear both;
			animation-timeline: view();
			animation-range: entry 20% contain 45%;
		}
		.xp-item > * {
			animation: xp-rise 1s ease-out both;
			animation-timeline: view();
			animation-range: entry 0% entry 55%;
		}
	}
}
