.ud-project, .ud-footer {
	--ud-accent: #a51443;
	--ud-gutter: clamp(20px, 5vw, 80px);
	color: #292929;
	background: #fff;
	font-family: "Hanken Grotesk", system-ui, sans-serif;
	font-size: clamp(17px, 1.2vw, 30px);
	line-height: 1.6;
}
.ud-project { overflow-x: clip; }
.ud-project a, .ud-footer a { color: inherit; }
.ud-project a:focus-visible, .ud-footer a:focus-visible, .ud-control:focus-visible {
	outline: 2px solid var(--ud-accent);
	outline-offset: 4px;
}
.ud-project ::selection, .ud-footer ::selection { background: var(--ud-accent); color: #fff; }
.ud-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 600px;
	height: min(100vh, 860px);
	overflow: hidden;
	background: #121212;
	color: #fff;
}
.ud-cover, .ud-hero-shade, .ud-hero::after {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.ud-cover { object-fit: cover; filter: brightness(.5); animation: ud-drift 3s cubic-bezier(.16,1,.3,1) both; }
.ud-hero-shade {
	background: linear-gradient(180deg, rgba(18,18,18,.6) 0%, rgba(18,18,18,.15) 40%, rgba(18,18,18,.92) 100%);
}
.ud-hero::after {
	content: "";
	height: clamp(200px, 26vw, 360px);
	pointer-events: none;
	background: linear-gradient(180deg, rgba(10,10,10,.92), rgba(10,10,10,.6) 42%, transparent);
}
.ud-header, .ud-heading { position: relative; z-index: 1; }
.ud-header {
	--ud-edge: clamp(18px, 2.4vw, 40px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	padding: var(--ud-edge) calc(var(--ud-edge) + 30px + clamp(18px, 1.8vw, 32px)) var(--ud-edge) var(--ud-edge);
}
.ud-header a { display: inline-flex; align-items: center; color: white; text-decoration: none; }
.ud-logo { min-width: 0; }
.ud-logo img { width: auto; max-width: 100%; height: clamp(52px, 4.4vw, 72px); object-fit: contain; }
.ud-back { gap: 12px; font-size: 16px; padding: 12px 0; }
.ud-back:hover { color: #fff; text-decoration: underline; text-underline-offset: .22em; }
.ud-back svg, .ud-next-line svg { flex: none; }
.ud-heading { margin-top: auto; padding: 0 var(--ud-gutter) clamp(40px, 6vw, 80px); }
.ud-eyebrow { display: flex; justify-content: space-between; gap: 24px; font-variant-numeric: tabular-nums; color: #e8e6de; }
.ud-eyebrow, .ud-project .umay-social--fixed { animation: ud-fade 1.1s ease-out 1.1s both; }
.ud-heading h1 {
	max-width: 24ch;
	margin: 12px 0 0;
	padding-bottom: .1em;
	overflow: hidden;
	overflow-wrap: anywhere;
	font-size: clamp(30px, 3.6vw, 84px);
	font-weight: 300;
	letter-spacing: -.025em;
	line-height: 1.08;
}
.ud-heading h1 span { display: block; animation: ud-rise 1.2s cubic-bezier(.16,1,.3,1) .25s both; }
.ud-subtitle { margin: .65rem 0 0; color: #e8e6de; }
.ud-rule { height: 2px; margin-top: 32px; background: var(--ud-accent); transform-origin: left; animation: ud-draw 1.4s cubic-bezier(.16,1,.3,1) .8s both; }
.ud-info { display: flex; flex-wrap: wrap; gap: 40px 96px; padding: clamp(72px, 9vw, 150px) var(--ud-gutter); }
.ud-metadata {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-content: start;
	flex: 0 1 320px;
	gap: 14px 28px;
	margin: 0;
	font-size: 16px;
}
.ud-metadata dt { color: #5c5c5c; }
.ud-metadata dd { margin: 0; color: #121212; overflow-wrap: anywhere; }
.ud-description { flex: 1 1 480px; min-width: 0; }
.ud-description p { max-width: 62ch; margin: 1.2em 0 0; font-size: clamp(16px, 1.15vw, 22px); line-height: 1.65; }
.ud-description p:first-child { margin-top: 0; }
.ud-description--lead p:first-child { max-width: 40ch; font-weight: 300; font-size: clamp(19px, 1.8vw, 38px); line-height: 1.4; letter-spacing: -.01em; color: #121212; }
.ud-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
	gap: clamp(12px, 1.4vw, 28px);
	padding: 0 var(--ud-gutter) clamp(72px, 9vw, 150px);
}
.ud-hero + .ud-gallery { padding-top: var(--ud-gutter); }
.ud-tile { display: block; aspect-ratio: 709 / 420; overflow: hidden; cursor: zoom-in; }
.ud-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.16,1,.3,1); }
.ud-tile:hover img, .ud-tile:focus-visible img { transform: scale(1.06); }

.ud-next-work {
	position: relative;
	isolation: isolate;
	display: block;
	overflow: hidden;
	padding: clamp(36px, 4.2vw, 80px) var(--ud-gutter);
	background: #121212;
	text-decoration: none;
}
.ud-project a.ud-next-work { color: white; }
.ud-next-work img, .ud-next-work::before, .ud-next-work::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
}
.ud-next-work img { object-fit: cover; filter: grayscale(1) brightness(.24); }
.ud-next-work::before { content: ""; z-index: 0; background: linear-gradient(transparent 0%, rgba(18,18,18,.55) 55%, #121212 100%); }
.ud-next-work::after { content: ""; z-index: 0; opacity: 0; background: var(--ud-accent); transition: opacity .45s; }
.ud-next-work:hover::after, .ud-next-work:focus-visible::after { opacity: 1; }
.ud-next-line, .ud-next-label { position: relative; z-index: 1; }
.ud-next-label { display: block; color: #e8e6de; }
.ud-next-line { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 6px; }
.ud-next-line span { max-width: 28ch; font-weight: 300; font-size: clamp(24px, 2.6vw, 56px); line-height: 1.12; letter-spacing: -.02em; }
.ud-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px; padding: 32px var(--ud-gutter); background: #121212; color: #d9d7ce; font-size: 16px; }
.ud-footer > a, .ud-footer > span { padding: 10px 0; }
.ud-footer > a { color: white; }
.ud-footer-social { display: none; }
.ud-password { max-width: 40rem; padding: 3rem var(--ud-gutter); margin: 0 auto; }

.ud-dialog {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	margin: 0;
	border: none;
	padding: 0;
	box-sizing: border-box;
	background: transparent;
	color: #fff;
}
.ud-dialog:not([open]) { display: none; }
.ud-dialog[open] { display: grid; place-items: center; }
.ud-dialog::backdrop { background: rgba(10,10,10,.94); }
html.ud-viewer-open { overflow: hidden; }
.ud-viewer { display: grid; justify-items: center; width: min(86vw, 1600px); margin: 0; pointer-events: none; }
.ud-viewed-image { display: block; max-width: 100%; width: auto; max-height: 78vh; max-height: 78svh; height: auto; object-fit: contain; pointer-events: auto; }
.ud-caption { margin-top: 10px; max-height: 10vh; overflow-y: auto; color: #e8e6de; font-size: 15px; text-align: center; pointer-events: auto; }
.ud-caption:empty { display: none; }
.ud-control {
	position: absolute;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 60%);
	border-radius: 50%;
	background: rgba(18,18,18,.5);
	color: #fff;
	cursor: pointer;
}
.ud-control:hover { background: rgb(255 255 255 / 16%); }
.ud-prev, .ud-next { top: calc(50% - 24px); }
.ud-prev { left: clamp(8px, 2vw, 36px); }
.ud-next, .ud-close { right: clamp(8px, 2vw, 36px); }
.ud-close { top: clamp(8px, 2vw, 36px); }
.ud-counter { position: absolute; right: 0; bottom: clamp(12px, 2.4vh, 28px); left: 0; text-align: center; color: #e8e6de; font-size: 15px; font-variant-numeric: tabular-nums; pointer-events: none; }

@keyframes ud-rise { from { transform: translateY(110%); } }
@keyframes ud-draw { from { transform: scaleX(0); } }
@keyframes ud-fade { from { opacity: 0; } }
@keyframes ud-drift { from { transform: scale(1.2); } }
@keyframes ud-up { from { opacity: 0; transform: translateY(48px); } }
@keyframes ud-clip { from { clip-path: inset(0 0 100%); } }
@supports (animation-timeline: view()) {
	.ud-reveal { animation: ud-up linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
	.ud-tile { animation: ud-clip linear both; animation-timeline: view(); animation-range: entry 5% entry 75%; }
}
@media (max-width: 900px) {
	.ud-hero { min-height: 76vh; min-height: 76svh; height: auto; }
	.ud-header { padding: 16px 20px; gap: 12px; }
	.ud-logo img { height: 40px; }
	.ud-back { gap: 8px; flex: none; white-space: nowrap; font-size: 14px; }
	.ud-heading { padding: 0 20px 32px; }
	.ud-heading h1 { margin-top: 8px; }
	.ud-info { padding: 56px 20px; gap: 28px; }
	.ud-metadata, .ud-description { flex: 1 1 100%; }
	.ud-metadata { font-size: 15px; }
	.ud-description p, .ud-description--lead p:first-child { max-width: none; }
	.ud-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 20px 56px; }
	.ud-next-work { padding: 40px 20px 44px; }
	.ud-next-line svg { width: 44px; height: 44px; }
	.ud-footer { flex-direction: column; align-items: flex-start; gap: 2px; padding: 24px 20px 36px; font-size: 15px; }
	.ud-footer-social { display: block; margin-top: 16px; }
	.ud-viewer { width: 100vw; }
	.ud-viewed-image { max-height: 70vh; max-height: 70svh; }
	.ud-prev, .ud-next { top: auto; bottom: max(28px, env(safe-area-inset-bottom)); }
	.ud-prev { left: calc(50% - 92px); }
	.ud-next { right: calc(50% - 92px); }
	.ud-counter { bottom: max(42px, calc(env(safe-area-inset-bottom) + 14px)); }
}
@media (min-width: 600px) and (max-width: 900px) {
	.ud-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
	.ud-project *, .ud-project *::before, .ud-project *::after { animation: none !important; transition: none !important; }
}
