.em-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.em-project-intro { margin-top: 15px; }
.em-project-panels { display: grid; }
.em-project-preview {
	grid-area: 1 / 1;
	min-width: 0;
	margin-bottom: 20px;
	visibility: hidden;
}
.em-project-preview.is-active { visibility: visible; }
.em-project-image { background: #101117; }
.em-project-photo {
	position: absolute;
	inset: 0;
	clip-path: polygon(
		calc(var(--em-project-cut, 0) * 100%) 0,
		100% 0, 100% 100%,
		calc(var(--em-project-cut, 0) * 77%) 100%
	);
}
.em-project-photo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); }
.em-project-preview .amadeus-overlay { right: 5%; overflow-wrap: anywhere; }
.em-project-preview .amadeus-overlay h3 { font-size: clamp(36px, 6.7vw, 106px); }
.em-project-preview .amadeus-overlay p { color: #f5f5f7; }
.em-project-accent { transform-origin: left center; }
.em-project-info { align-items: start; }
.em-project-tech, .em-case-link { margin-top: .75rem; }
.em-case-link { display: inline-block; font-weight: 700; text-decoration: underline; text-underline-offset: .25em; }
.em-project-thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	padding: 4px;
	min-width: 0;
}
.em-project-thumbs a {
	display: block;
	flex: 0 0 clamp(80px, 11vw, 136px);
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #141416;
	scroll-snap-align: start;
}
.em-project-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.em-project-thumbs a:focus-visible { outline-offset: -2px; position: relative; z-index: 1; }

.em-project-rail { position: relative; min-width: 0; }
.em-project-card > a { display: block; position: relative; padding-bottom: 6px; }
.em-project-card > a:focus-visible { outline-offset: -3px; }
.em-project-card > a[aria-current="true"]::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 2px;
	background: var(--gradient);
}
.em-project-card > a[aria-current="true"] .case-photo img { opacity: 1; }
.em-project-card > a[aria-current="true"] .case-photo::after { opacity: .6; }
.em-project-card h3 { overflow-wrap: anywhere; }
.em-project-arrow {
	display: none;
	position: absolute;
	top: 44%;
	z-index: 3;
	background: #080809;
	color: var(--white);
	transform: translateY(-50%);
}
.em-portfolio[data-portfolio-ready] .em-project-arrow, .js .em-legacy-rail .em-project-arrow { display: inline-grid; }
.em-project-arrow[data-project-scroll="-1"] { left: 8px; }
.em-project-arrow[data-project-scroll="1"] { right: 8px; }
.em-project-arrow[aria-disabled="true"] { opacity: .45; cursor: default; }
.em-project-arrow:hover { transform: translateY(-50%); }
@media (hover: hover) and (pointer: fine) {
	.em-project-arrow { opacity: 0; pointer-events: none; transition: opacity .25s ease; }
	.em-project-rail:not(:hover):not(:focus-within) .em-project-arrow { opacity: 0; }
	.em-project-rail:is(:hover, :focus-within) .em-project-arrow { opacity: 1; pointer-events: auto; }
	.em-project-rail:is(:hover, :focus-within) .em-project-arrow[aria-disabled="true"] { opacity: .45; }
}

.em-portfolio[data-em-candidate] .em-project-image {
	height: clamp(235px, calc(var(--em-room) * .46), 540px);
	min-height: 0;
}
.em-portfolio[data-em-candidate] .em-project-preview { margin-bottom: 10px; }
.em-portfolio[data-em-candidate] .em-project-info { padding-block: 12px; }
.em-portfolio[data-em-candidate] .em-project-preview .amadeus-overlay h3 { font-size: clamp(36px, 5.3vw, 92px); }
.em-portfolio[data-em-candidate] .em-project-rail .case-photo {
	width: 100%;
	height: clamp(75px, calc(var(--em-room) * .13), 140px);
	aspect-ratio: auto;
}
.em-portfolio[data-em-pinned] { height: calc(var(--em-room) + var(--em-travel)); }
.em-portfolio[data-em-pinned] .em-portfolio-pin { position: sticky; top: var(--em-offset); min-height: var(--em-room); }
.em-project-grid .case { min-width: 0; }
.em-project-breadcrumbs { margin-bottom: 1.4rem; overflow-wrap: anywhere; }
.em-project-single .em-entry-content { margin-top: 2rem; }
.em-project-single .em-project-lead { font-size: 1.15rem; }
.em-project-gallery-single .em-project-thumbs a { flex-basis: clamp(120px, 24vw, 275px); }

.em-lightbox {
	width: min(94vw, 1120px);
	max-width: none;
	max-height: 94vh;
	padding: clamp(12px, 3vw, 24px);
	border: 1px solid #676872;
	background: #080809;
	color: #f5f5f7;
	margin: auto;
}
.em-lightbox::backdrop { background: #000d; }
.em-lightbox-controls { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 10px; }
.em-lightbox img { width: 100%; max-height: 72dvh; object-fit: contain; touch-action: pan-y; }
.em-lightbox button { background: #141416; color: #f5f5f7; border: 1px solid #676872; min-height: 44px; padding: 5px 12px; }
.em-lightbox button:disabled { opacity: .5; }
.em-lightbox-caption { margin-top: 8px; }
@media (max-width: 680px) {
	.em-project-preview .amadeus-overlay h3 { font-size: clamp(34px, 9.5vw, 64px); }
	.em-project-info { gap: 12px; }
	.em-project-preview .em-project-image { min-height: 260px; height: clamp(260px, 77vw, 340px); }
}
@media (prefers-reduced-motion: reduce) {
	.em-project-arrow { transition: none; }
}
