/* ==========================================================================
   DM Lab – main stylesheet (front-end + editor)
   Desktop reference: Figma 1440px. Mobile is derived from the desktop design.
   ========================================================================== */

:root {
	--dm-pad: 50px;
	--dm-bg: #f1f1f1;
	--dm-ink: #181818;
	--dm-grey: #9e9e9e;
	--dm-pill: #bfbfbf;
	--dm-blue: #00349d;
	--dm-orange: #ff5100;
	--dm-green: #00c800;
	--dm-mono: 'Roboto Mono', ui-monospace, monospace;
	--dm-serif: 'STIX Two Text', Georgia, serif;
	--dm-sans: 'Inter Tight', system-ui, sans-serif;
	--dm-header-h: 56px;
}
@media (max-width: 900px) { :root { --dm-pad: 20px; } }

html { scroll-behavior: smooth; }
body { background: var(--dm-bg); color: var(--dm-ink); font-family: var(--dm-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }

.wp-site-blocks { padding-left: 0; padding-right: 0; }
.wp-site-blocks > * { margin-block-start: 0; }

/* -------------------------------------------------------------- pills */
.dm-pill,
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 34px; padding: 9px 17px 9px 16px; box-sizing: border-box;
	border: 1px solid #000; border-radius: 28px; background: transparent; color: #000;
	font: 400 13px/1 var(--dm-mono); text-transform: capitalize; text-decoration: none;
	transition: background .2s, color .2s;
}
.dm-pill:hover,
.wp-block-button__link:hover { background: #000; color: #fff; }

/* -------------------------------------------------------------- header */
.dm-header {
	position: absolute; inset: 0 0 auto 0; z-index: 60;
	display: flex; justify-content: space-between; align-items: flex-start;
	padding: 37px var(--dm-pad) 0; pointer-events: none; top: 10px;
}
.dm-header > * { pointer-events: auto; }
@media (min-width: 901px) { body:not(.dm-home) .dm-header { position: fixed; } }
/* animated logo (GIF, 343x193 with transparent padding): scale so the visible mark is 152px wide, then trim the padding */
.dm-header__logo { --dm-logo-w: 152px; display: block; width: var(--dm-logo-w); height: calc(var(--dm-logo-w) * .329); overflow: visible; }
.dm-header__logo img { display: block; width: calc(var(--dm-logo-w) * 1.1173); height: auto; max-width: none; margin: calc(var(--dm-logo-w) * -.1498) 0 0 calc(var(--dm-logo-w) * -.0586); }
.dm-header__logo .dm-logo--light { display: none; }
body.dm-home .dm-header__logo .dm-logo--dark { display: none; }
body.dm-home .dm-header__logo .dm-logo--light { display: block; }

/* sticky: the menu stays fixed while the logo scrolls away (Figma prototype) */
.dm-menu { position: fixed; top: 43px; right: var(--dm-pad); z-index: 60; display: flex; gap: 10px; align-items: flex-start; }
.dm-menu__current,
.dm-menu__toggle {
	height: var(--dm-header-h); border: 0; border-radius: 11px; background: #c4c4c4; color: #000;
	font: 400 12px/1 var(--dm-mono); text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center;
}
.dm-menu__current,
.dm-menu__toggle { background: rgba(196, 196, 196, .55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.dm-menu__current { box-sizing: border-box; min-width: 130px; padding: 0 20px; }
.dm-menu__toggle { width: 65px; cursor: pointer; }
.dm-menu__dots { position: relative; display: block; width: 7px; height: 36px; }
.dm-menu__dots i { position: absolute; left: 0; top: 14.5px; width: 7px; height: 7px; border-radius: 50%; background: #000; transform: translate(0, 0) scale(0); opacity: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s; }
/* idle: single dot */
.dm-menu__dots i:nth-child(3) { transform: scale(1); opacity: 1; }
/* hover: three dots in a column */
.dm-menu__toggle:hover .dm-menu__dots i:nth-child(1), .dm-menu__toggle:focus-visible .dm-menu__dots i:nth-child(1) { transform: translate(0, -11px) scale(1); opacity: 1; }
.dm-menu__toggle:hover .dm-menu__dots i:nth-child(5), .dm-menu__toggle:focus-visible .dm-menu__dots i:nth-child(5) { transform: translate(0, 11px) scale(1); opacity: 1; }
/* open: five dots in an X */
.dm-menu__toggle[aria-expanded="true"] .dm-menu__dots i:nth-child(1) { transform: translate(-9px, -9px) scale(1); opacity: 1; }
.dm-menu__toggle[aria-expanded="true"] .dm-menu__dots i:nth-child(2) { transform: translate(9px, -9px) scale(1); opacity: 1; }
.dm-menu__toggle[aria-expanded="true"] .dm-menu__dots i:nth-child(4) { transform: translate(-9px, 9px) scale(1); opacity: 1; }
.dm-menu__toggle[aria-expanded="true"] .dm-menu__dots i:nth-child(5) { transform: translate(9px, 9px) scale(1); opacity: 1; }
.dm-menu__panel {
	position: absolute; top: calc(var(--dm-header-h) + 10px); right: 0; width: 205px; display: none;
	background: rgba(196, 196, 196, .96); backdrop-filter: blur(6px); border-radius: 11px; padding: 14px 0;
}
.dm-menu.is-open .dm-menu__panel { display: block; }
.dm-menu__list { list-style: none; margin: 0; padding: 0; }
.dm-menu__list a { display: block; padding: 11px 20px; color: #000; font: 400 12px/1 var(--dm-mono); text-transform: uppercase; text-decoration: none; }
.dm-menu__list a { transition: filter .25s, opacity .25s, background .2s; }
.dm-menu__list a:hover,
.dm-menu__list .current-menu-item > a { background: rgba(0, 0, 0, .1); }
/* hovering one item blurs the others */
.dm-menu__list:hover a:not(:hover), .dm-menu__list:focus-within a:not(:focus) { filter: blur(2.5px); opacity: .55; }
/* items animate in when the menu opens */
@keyframes dm-item-in { from { opacity: 0; filter: blur(8px); transform: translateY(-6px); } to { opacity: 1; filter: blur(0); transform: none; } }
.dm-menu.is-open .dm-menu__list li { animation: dm-item-in .45s cubic-bezier(.2,.8,.2,1) both; }
.dm-menu.is-open .dm-menu__list li:nth-child(2) { animation-delay: .05s; }
.dm-menu.is-open .dm-menu__list li:nth-child(3) { animation-delay: .1s; }
.dm-menu.is-open .dm-menu__list li:nth-child(4) { animation-delay: .15s; }
.dm-menu.is-open .dm-menu__list li:nth-child(5) { animation-delay: .2s; }
.dm-menu.is-open .dm-menu__list li:nth-child(6) { animation-delay: .25s; }
.dm-menu.is-open .dm-menu__list li:nth-child(7) { animation-delay: .3s; }

/* Home (desktop): full horizontal bar over the hero. */
@media (min-width: 901px) {
	body.dm-home .dm-menu__current,
	body.dm-home .dm-menu__toggle { display: none; }
	body.dm-home .dm-menu__panel {
		display: block; position: static; width: 886px; max-width: calc(100vw - 340px); height: var(--dm-header-h);
		background: rgba(0, 0, 0, .25); backdrop-filter: blur(2px); border-radius: 11px; padding: 0;
	}
	body.dm-home .dm-menu__list { display: flex; justify-content: space-between; align-items: center; height: 100%; padding: 0 3.8%; }
	body.dm-home .dm-menu__list a { color: #fff; padding: 8px 0; }
	body.dm-home .dm-menu__list a:hover,
	body.dm-home .dm-menu__list .current-menu-item > a { background: none; }
	body.dm-home .dm-menu__list:hover a:not(:hover) { filter: blur(2.5px); opacity: .55; }
}
/* Inner pages (desktop): the dropdown is a stack of separate pills (Figma) that opens from small to full size. */
@keyframes dm-panel-in { from { opacity: 0; transform: scale(.35); } to { opacity: 1; transform: none; } }
@media (min-width: 901px) {
	body:not(.dm-home) .dm-menu.is-open .dm-menu__panel { transform-origin: top right; animation: dm-panel-in .45s cubic-bezier(.2, .8, .2, 1) both; }
	body:not(.dm-home) .dm-menu__panel { background: none; backdrop-filter: none; border-radius: 0; padding: 0; }
	body:not(.dm-home) .dm-menu__list { display: grid; gap: 10px; }
	body:not(.dm-home) .dm-menu__list a {
		display: flex; align-items: center; justify-content: center; height: var(--dm-header-h); padding: 0;
		border-radius: 11px; background: rgba(196, 196, 196, .96); backdrop-filter: blur(6px);
	}
	body:not(.dm-home) .dm-menu__list a { transition: background .2s, color .2s; }
	body:not(.dm-home) .dm-menu__list a:hover { background: #969696; color: #fff; }
	/* Figma: no blur on the other items here, and the current section is not listed */
	body:not(.dm-home) .dm-menu__list:hover a:not(:hover), body:not(.dm-home) .dm-menu__list:focus-within a:not(:focus) { filter: none; opacity: 1; }
	body:not(.dm-home) .dm-menu__list .is-current { display: none; }
}
/* Mobile: full-screen overlay menu on every page. */
@media (max-width: 900px) {
	.dm-header__logo { --dm-logo-w: 118px; }
	.dm-menu { top: 37px; }
	.dm-menu__current { display: none; }
	.dm-menu__toggle { width: 52px; height: 44px; position: relative; z-index: 2; }
	body.dm-home .dm-menu__toggle { background: rgba(0, 0, 0, .25); backdrop-filter: blur(2px); }
	body.dm-home .dm-menu__dots i { background: #fff; }
	.dm-menu__panel {
		position: fixed; inset: 0; width: auto; border-radius: 0; background: var(--dm-bg); padding: 110px var(--dm-pad) 40px; z-index: 1;
	}
	.dm-menu__list a { font-size: 22px; padding: 14px 0; border-bottom: 1px solid rgba(0, 0, 0, .12); }
	.dm-menu__list a:hover, .dm-menu__list .current-menu-item > a { background: none; }
	body.menu-open { overflow: hidden; }
}

/* ---------------------------------------------------------------- hero */
.dm-hero { position: relative; height: var(--dm-hero-h, 810px); overflow: hidden; background: var(--dm-blue); margin: 0; }
.dm-hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dm-hero__overlay { position: absolute; inset: 0; background: #000; }
@media (max-width: 900px) { .dm-hero { height: min(var(--dm-hero-h, 810px), 78vh); } }

/* --------------------------------------------------------- home blocks */
.dm-tagline,
.has-stix-font-family { font-family: var(--dm-serif); font-weight: 400; font-size: clamp(24px, 3.34vw, 48px); line-height: 1.035; color: var(--dm-ink); }
.dm-tagline .dm-muted { color: var(--dm-grey); }
.dm-intro { padding-top: 72px; }
.dm-section-title { text-align: center; text-transform: capitalize; text-wrap: balance; max-width: 8.5em; font-size: clamp(30px, 3.34vw, 48px); line-height: 1.1; margin: 0 auto; }

.dm-word-row { display: flex; justify-content: space-between; font: 400 13px/1 var(--dm-mono); color: #000; margin-top: 36px; }
.dm-word-row span:nth-child(2) { text-align: center; }

.dm-focus-cards { display: grid; gap: 40px; margin-top: 60px; }
.dm-focus-card {
	position: relative; display: block; width: 100%; aspect-ratio: 1340 / 519; border-radius: 10px; overflow: hidden; background: #000; color: #fff; text-decoration: none;
}
.dm-focus-card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.dm-focus-card:hover .dm-focus-card__bg { transform: scale(1.04); }
.dm-focus-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .05) 40%, rgba(0, 0, 0, .2)); }
.dm-focus-card__label { position: absolute; top: 25px; font: 400 12px/1 var(--dm-mono); text-transform: capitalize; color: #fff; }
.dm-focus-card__label--l { left: 40px; }
.dm-focus-card__label--r { right: 40px; }
.dm-focus-card__icon {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 206px; height: 206px; border-radius: 27px; background: #000; display: grid; place-items: center;
}
.dm-focus-card__icon img { width: 53%; height: auto; display: block; }
/* Figma: one centred label ("CULTURAL HERITAGE"), no corner labels / icon box */
.dm-focus-card__label { top: 50%; transform: translateY(-50%); text-transform: uppercase; }
.dm-focus-card__label--l { left: 0; right: 50%; text-align: right; padding-right: .3em; }
.dm-focus-card__label--r { right: 0; left: 50%; text-align: left; padding-left: .3em; }
.dm-focus-card__icon { display: none; }
.dm-focus-card__shade { display: none; }
@media (max-width: 900px) {
	.dm-focus-cards { gap: 20px; margin-top: 36px; }
	.dm-focus-card { aspect-ratio: 4 / 3; }
	.dm-focus-card__icon { width: 108px; height: 108px; border-radius: 16px; }
}

/* research & innovation */
.dm-research { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 660px); gap: 40px; margin-top: 140px; align-items: start; }
.dm-research__left { display: flex; flex-direction: column; gap: 40px; align-items: flex-start; }
.dm-research__heading { font-size: clamp(30px, 3.34vw, 48px); max-width: 433px; margin: 0; }
.dm-research__text { margin: 0 0 40px; font-size: 14px; max-width: 658px; line-height: 1.25; }
.dm-research__main { display: block; text-decoration: none; color: inherit; }
.dm-research__main img { width: 100%; aspect-ratio: 660 / 560; object-fit: cover; display: block; }
.dm-research__caption { display: flex; justify-content: space-between; gap: 16px; margin: 12px 0 0; font: 600 14px/1.2 var(--dm-serif); text-transform: uppercase; color: rgba(0, 0, 0, .4); }
.dm-research__area { font: 400 13px/1.2 var(--dm-mono); color: #000; text-align: right; }
.dm-research__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
/* home: main image + thumbnails are plain grayscale (0% saturation); each thumbnail carries a white dot that blends with `difference` */
.dm-research__media { position: relative; display: block; isolation: isolate; }
.dm-research__media img, .dm-research__thumb img { filter: grayscale(1) contrast(1.15); }
.dm-research__thumb { position: relative; display: block; isolation: isolate; }
.dm-research__thumb::after { content: ''; position: absolute; left: 50%; top: 50%; z-index: 2; width: 11%; aspect-ratio: 1; border-radius: 50%; background: #fff; mix-blend-mode: difference; transform: translate(-50%, -50%); transition: transform .35s cubic-bezier(.2,.9,.3,1.3); pointer-events: none; }
.dm-research__thumb:hover::after { transform: translate(-50%, -50%) scale(1.5); }
.dm-research__thumbs img { width: 100%; aspect-ratio: 207 / 190; object-fit: cover; display: block; }
@media (max-width: 900px) {
	.dm-research { grid-template-columns: 1fr; margin-top: 70px; gap: 28px; }
	.dm-research__left { flex-direction: column-reverse; }
}

/* latest news cards */
.dm-latest-head { margin-top: 120px; display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.dm-latest-head h2 { margin: 0; font-size: clamp(30px, 3.34vw, 48px); }
.dm-list--cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 34px; margin-bottom: 120px; }
.dm-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.dm-card__img { display: block; width: 100%; aspect-ratio: 320 / 351; background: #000; overflow: hidden; border-radius: 4px; }
.dm-card__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .4s; }
.dm-card:hover .dm-card__img img { filter: grayscale(1) invert(1); }
.dm-card__title { margin: 4px 0 0; font: 600 12px/1.25 var(--dm-serif); text-transform: uppercase; color: rgba(0, 0, 0, .4); }
@media (max-width: 1000px) { .dm-list--cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .dm-list--cards { grid-template-columns: 1fr; } }

/* ------------------------------------------------------- inner layout */
.dm-main { min-height: calc(100vh - 107px); padding: 183px var(--dm-pad) 80px; }
.dm-main .has-global-padding { padding-left: 0; padding-right: 0; }
.dm-col { width: 100%; max-width: var(--dm-col, 773px); margin-left: auto; margin-right: 0; }
.dm-col--wide { --dm-col: 1000px; }
.dm-col--people { --dm-col: 770px; }
@media (max-width: 900px) {
	.dm-main { padding-top: 120px; padding-bottom: 50px; }
	.dm-col { max-width: none; }
}

/* page entrance: content fades / un-blurs in */
@keyframes dm-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes dm-wash { from { background-color: var(--dm-area, #ff5100); } to { background-color: var(--dm-bg); } }
.dm-main > * { animation: dm-enter .6s ease backwards; }
body.dm-wash { animation: dm-wash .9s ease backwards; }
/* page transition between inner pages: the URL changes as normal, the old page fades out and the new one fades in (cross-document view transitions; main.js does the same fade-out where unsupported) */
@view-transition { navigation: auto; }
@keyframes dm-page-out { to { opacity: 0; } }
::view-transition-old(root) { animation: dm-page-out .22s ease both; }
::view-transition-new(root) { animation: none; }
body { transition: background-color .35s ease, opacity .15s ease; }
/* thin progress bar while a page is still being fetched */
@keyframes dm-load { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
html.dm-loading::before { content: ''; position: fixed; top: 0; left: 0; width: 30%; height: 2px; background: #000; z-index: 300; animation: dm-load 1s ease-in-out infinite; }
html.dm-loading, html.dm-loading a { cursor: progress; }
body.is-leaving { opacity: 0; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root) { animation: none; } body.is-leaving { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dm-main > *, body.dm-wash, .dm-menu.is-open .dm-menu__list li, .dm-menu.is-open .dm-menu__panel { animation: none; } }

/* news list (Figma: column 772px; title 320px; text 14px; date 13px mono) */
.dm-list--news-list { display: grid; gap: 40px; }
.dm-news-item { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 24px; }
.dm-news-item__main { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 590px; }
.dm-news-item__title { margin: 0; max-width: 320px; font: 600 15px/1.2 var(--dm-serif); text-transform: uppercase; }
.dm-news-item__title a { text-decoration: none; color: inherit; }
.dm-news-item__excerpt { margin: 0; font-size: 14px; line-height: 1.3; color: #8c8c8c; }
.dm-news-item__date { font: 400 13px/1.3 var(--dm-mono); color: var(--dm-grey); text-align: right; }
@media (max-width: 600px) { .dm-news-item { grid-template-columns: 1fr; gap: 8px; } .dm-news-item__date { order: -1; text-align: left; } }

/* publications (Figma: rows 773x51 = 14px / 1.2, 40px gap) */
.dm-list--publications { display: grid; gap: 40px; }
.dm-pub { display: grid; grid-template-columns: minmax(0, 1fr) 70px; gap: 24px; }
.dm-pub__text, .dm-pub__text p { margin: 0; font-size: 14px; line-height: 1.2; }
.dm-pub__year { font: 400 13px/1.3 var(--dm-mono); color: var(--dm-grey); text-align: right; }
@media (max-width: 600px) { .dm-pub { grid-template-columns: 1fr; gap: 6px; } .dm-pub__year { order: -1; text-align: left; } }

/* people (Figma: 3 columns, 20px gap; name 15px, role 14px) */
.dm-list--people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 50px 20px; }
.dm-person { display: block; color: inherit; text-decoration: none; }
.dm-person__img { display: block; aspect-ratio: 206 / 232; overflow: hidden; background: #ddd; }
.dm-person__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); display: block; transition: transform .6s; }
a.dm-person:hover .dm-person__img img { transform: scale(1.04); }
.dm-person__name { display: block; margin-top: 10px; font: 600 15px/1.2 var(--dm-serif); text-transform: uppercase; }
.dm-person__role { display: block; margin-top: 5px; font-size: 14px; line-height: 1.2; color: var(--dm-grey); }
@media (max-width: 560px) { .dm-list--people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* research list / grid ------------------------------------------------ */
.dm-list--research-list.alignwide { max-width: none; width: 100%; margin: 0; display: block; }
.dm-col--wide:has(.dm-research-rows) { max-width: none; }
.dm-main:has(.dm-research-rows) { padding-top: 212px; }
.dm-research-rows { display: flex; flex-direction: column; width: min(888px, 100%); margin: 0 auto; }
.dm-research-rows.is-grid { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 80px 20px; margin: 0; }
/* the fixed List/Grid + legend must not sit inside a transform/filter animation (it re-anchors them when it ends): fade the page, animate only the rows */
@keyframes dm-fade { from { opacity: 0; } }
.dm-main:has(.dm-research-tools) > * { animation: dm-fade .8s ease backwards; }
.dm-research-rows { animation: dm-enter .6s ease backwards; }
@media (prefers-reduced-motion: reduce) { .dm-main:has(.dm-research-tools) > *, .dm-research-rows { animation: none; } }
.dm-research-tools { width: 100%; margin-bottom: 83px; }
.dm-research-tools > * { pointer-events: auto; }
.dm-research-row {
	display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: 57px; text-decoration: none; position: relative;
	font: 400 13px/1.2 var(--dm-mono); text-transform: uppercase; color: var(--dm-grey); transition: color .25s, opacity .25s;
}
.dm-research-row__title { text-align: center; font: 400 14px/1.2 var(--dm-serif); position: relative; z-index: 2; }
.dm-research-row__year { text-align: right; }
.dm-research-row__tags { display: flex; gap: 66px; }
.dm-tag { color: var(--dm-grey); transition: color .25s; }
.dm-research-row__thumb { display: none; }
.dm-research-row__thumb .dm-dots { display: none; }

/* list hover: the page takes the area colour, the thumbnail appears in the centre */
body.is-research-hover { background-color: var(--dm-hover, #ff5100); }
body.is-research-hover .dm-header__logo .dm-logo--dark { display: block; }
body.is-research-hover .dm-header__logo .dm-logo--light { display: none; }
body.is-research-hover .dm-menu__current, body.is-research-hover .dm-menu__toggle, body.is-research-hover .dm-toggle { background: rgba(0, 0, 0, .18); }
body.is-research-hover .dm-footer { background: transparent; }
body.is-research-hover .dm-toggle button { color: #000; }
.dm-research-rows:not(.is-grid):hover .dm-research-row, .dm-research-rows:not(.is-grid):hover .dm-research-row .dm-tag { color: rgba(0, 0, 0, .22); }
.dm-research-rows:not(.is-grid):hover .dm-research-row:hover, .dm-research-rows:not(.is-grid):hover .dm-research-row:hover .dm-tag { color: #fff; }
.dm-research-rows:not(.is-grid) .dm-research-row__thumb {
	display: block; position: fixed; left: 50%; top: 58%; width: min(434px, 40vw); aspect-ratio: 434 / 262; transform: translate(-50%, -50%) scale(.92);
	opacity: 0; pointer-events: none; z-index: 1; transition: opacity .3s, transform .45s cubic-bezier(.2,.8,.2,1); overflow: hidden; mix-blend-mode: screen;
}
.dm-research-rows:not(.is-grid) .dm-research-row__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.1); }
.dm-research-rows:not(.is-grid) .dm-research-row:hover .dm-research-row__thumb { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* grid: cards with a dot-mosaic hover */
.dm-research-rows.is-grid .dm-research-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 90px; align-items: start; row-gap: 26px; min-height: 0; }
.dm-research-rows.is-grid .dm-research-row__thumb { display: block; position: relative; grid-column: 1 / -1; aspect-ratio: 434 / 340; overflow: hidden; background: #ddd; transition: background-color .9s cubic-bezier(.45, 0, .15, 1); }
.dm-research-rows.is-grid .dm-research-row:hover .dm-research-row__thumb { background: var(--dm-row-color, #ddd); }
.dm-research-rows.is-grid .dm-research-row__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); transform: scale(1); transition: transform .9s cubic-bezier(.45, 0, .15, 1); will-change: transform; }
/* hover: the (grayscale) image scales down and the project's area colour shows around it */
.dm-research-rows.is-grid .dm-research-row:hover .dm-research-row__thumb img { transform: scale(.53); }
.dm-research-rows.is-grid .dm-research-row__thumb .dm-dots { display: none; position: absolute; left: 50%; top: 50%; width: 36%; height: auto; transform: translate(-50%, -50%); z-index: 2; pointer-events: none; }
.dm-dots { mix-blend-mode: difference; }
.dm-dots circle { fill: #fff; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .35s cubic-bezier(.2,.9,.3,1.3); transition-delay: calc(var(--i) * 28ms); }
.dm-research-rows.is-grid .dm-research-row:hover .dm-dots circle { transform: scale(1); }
.dm-research-rows.is-grid .dm-research-row__title { text-align: center; text-wrap: balance; }
.dm-research-rows.is-grid .dm-research-row__tags { flex-direction: column; gap: 4px; }
.dm-research-rows.is-grid .dm-research-row__year { text-align: right; }
/* area filters (the legend on the right) are only for the list view; the grid shows everything */
.dm-research-rows.is-grid .dm-research-row:hover { color: #000; }
.dm-research-rows.is-grid .dm-research-row:hover .dm-tag { color: #000; }

/* only the grid is paginated (9 + View more); the list always shows every row */
.dm-research-rows.is-grid .dm-research-row.is-extra { display: none; }
.dm-list--research-list:not(:has(.is-grid)) .dm-more-wrap { display: none; }
/* filtered by area: every matching project is shown (no "View more"), the others are hidden */
.dm-research-rows .dm-research-row.is-filtered-out { display: none !important; }
.dm-list.is-filtered .dm-research-rows.is-grid .dm-research-row.is-extra { display: grid; }
.dm-list.is-filtered .dm-more-wrap { display: none !important; }
@keyframes dm-row-in { from { opacity: 0; } }
.dm-research-row.is-revealed { animation: dm-row-in .6s ease backwards; }
.dm-more-wrap { display: flex; justify-content: center; margin-top: 60px; }
.dm-more { cursor: pointer; }
.dm-toggle { display: flex; flex-direction: column; background: #c4c4c4; border-radius: 11px; padding: 14px 22px; gap: 14px; font: 400 13px/1 var(--dm-mono); text-transform: uppercase; }
.dm-toggle button { all: unset; cursor: pointer; text-align: center; color: rgba(255, 255, 255, .85); padding: 6px 8px; transition: color .2s; }
.dm-toggle button.is-active { color: #000; }
.dm-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 113fr 340fr 340fr 344fr 203fr; width: 100%; font: 400 14px/1 var(--dm-mono); text-transform: uppercase; color: #000; }
.dm-legend li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dm-filter { all: unset; box-sizing: border-box; display: flex; justify-content: flex-start; align-items: center; gap: 10px; cursor: pointer; font: inherit; text-transform: inherit; color: inherit; transition: opacity .2s; }
.dm-filter i { transition: transform .2s, box-shadow .2s; }
.dm-filter:hover i, .dm-filter:focus-visible i { transform: scale(1.18); }
.dm-filter:focus-visible { outline: 2px solid #000; outline-offset: 4px; border-radius: 4px; }
.dm-filter.is-active { font-weight: 700; }
.dm-filter.is-active i { box-shadow: 0 0 0 3px #f1f1f1, 0 0 0 4px currentColor; }
.dm-list.is-filtered .dm-legend .dm-filter:not(.is-active) { opacity: .4; }
.dm-filter span { min-width: 173px; }
.dm-legend .dm-filter--all span { min-width: 0; }
.dm-legend .dm-filter--all i { display: none; }
.dm-legend i { width: 15px; height: 15px; border-radius: 50%; display: block; flex: none; }
@media (max-width: 900px) {
	.dm-research-rows, .dm-research-rows.is-grid { width: 100%; margin: 0; }
	/* tablet / mobile: view toggle on its own row, the area filters below as a wrapping row of chips */
	.dm-main:has(.dm-research-rows) { padding-top: 96px; padding-bottom: 0; }
	.dm-research-tools { margin-bottom: 0; }
	.dm-more-wrap { margin-top: 36px; }
	body:has(.dm-research-rows) .dm-footer { margin-top: 40px; }
	.dm-research-tools { position: static; width: 100%; transform: none; padding: 0 0 20px; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 20px; pointer-events: auto; }
	.dm-toggle { flex-direction: row; padding: 8px 14px; gap: 6px; }
	.dm-toggle button { padding: 8px 12px; }
	.dm-legend { display: flex; flex-wrap: wrap; width: 100%; gap: 4px 22px; font-size: 11px; }
	.dm-filter span { min-width: 0; }
	.dm-filter--all i { display: none; }
	.dm-legend li { display: block; }
	.dm-filter { width: auto; justify-content: flex-start; gap: 10px; min-height: 24px; }
	.dm-filter i, .dm-legend i { width: 16px; height: 16px; }
	.dm-filter.is-active i { box-shadow: 0 0 0 2px #f1f1f1, 0 0 0 3px currentColor; }
	.dm-research-row { grid-template-columns: 74px minmax(0, 1fr) 62px; font-size: 11px; min-height: 44px; }
	.dm-research-rows:not(.is-grid) .dm-research-row__tags { flex-direction: column; gap: 2px; }
	.dm-research-rows:not(.is-grid) .dm-research-row__thumb { display: none; }
	.dm-research-rows.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 14px; }
	.dm-research-rows.is-grid .dm-research-row { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 6px; row-gap: 12px; font-size: 10px; min-width: 0; }
	.dm-research-rows.is-grid .dm-research-row__title { font-size: 12px; }
}

/* students work: year list on the right; the chosen year opens in place (images left, note under the list) */
.dm-main:has(.dm-sw) { padding-top: 183px; }
.dm-list--years.alignwide { max-width: none; width: 100%; display: block; }
.dm-sw { display: grid; grid-template-columns: minmax(0, 683fr) minmax(0, 600fr); gap: 0 60px; align-items: start; }
.dm-sw__imgs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 25px; }
.dm-sw__imgs:empty { display: none; }
.dm-sw__imgs figure { margin: 0; }
.dm-sw__imgs img { display: block; width: 100%; height: auto; }
.dm-sw__video { margin: 0 0 25px; aspect-ratio: 16 / 9; background: #000; }
.dm-sw__imgs .dm-sw__video { margin: 0; }
.dm-sw__video video, .dm-sw__video iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.dm-sw__video { position: relative; overflow: hidden; }
.dm-sw__video a { position: absolute; inset: 0; display: block; overflow: hidden; }
.dm-sw__imgs .dm-sw__video img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.dm-sw__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0, 0, 0, .6); transition: background .2s; }
.dm-sw__play::before { content: ''; position: absolute; left: 25px; top: 20px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.dm-sw__video a:hover .dm-sw__play { background: rgba(0, 0, 0, .85); }
.dm-sw__side { grid-column: 2; grid-row: 1; position: sticky; top: 183px; max-width: 640px; padding-top: 51px; box-sizing: border-box; min-width: 0; }
.dm-sw__imgs:empty + .dm-sw__side { padding-right: 227px; margin-left: auto; width: 100%; max-width: 725px; }
@media (max-width: 1300px) { .dm-sw__imgs:empty + .dm-sw__side { padding-right: 0; } }
.dm-sw__rows { display: flex; flex-direction: column; }
.dm-year-row { display: flex; justify-content: space-between; align-items: center; min-height: 57px; text-decoration: none; color: var(--dm-grey); font: 600 14px/1 var(--dm-serif); text-transform: uppercase; transition: color .2s, opacity .2s; }
.dm-year-row__year { font: 400 13px/1 var(--dm-mono); color: var(--dm-grey); transition: color .2s; }
.dm-sw__rows:hover .dm-year-row:not(:hover) { opacity: .55; }
.dm-year-row:hover, .dm-year-row:hover .dm-year-row__year, .dm-year-row.is-active, .dm-year-row.is-active .dm-year-row__year { color: #000; }
.dm-sw__note { margin-top: 60px; max-width: 100%; font: 400 16px/1.3 var(--dm-sans); color: #000; }
.dm-sw__note .dm-muted { color: var(--dm-grey); }
.dm-sw__note:empty { display: none; }
.dm-sw__note p { margin: 0 0 22px; }
.dm-sw__imgs.is-in, .dm-sw__note.is-in { animation: dm-enter .5s ease backwards; }
.dm-sw__imgs img { cursor: zoom-in; }
.dm-lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 60px; background: rgba(241, 241, 241, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: zoom-out; animation: dm-fade .25s ease; }
.dm-lightbox > img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: default; box-shadow: 0 10px 40px rgba(0, 0, 0, .15); }
.dm-lightbox button { all: unset; cursor: pointer; position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: rgba(196, 196, 196, .8); color: #000; font: 400 24px/1 var(--dm-mono); }
.dm-lightbox button:hover { background: #969696; color: #fff; }
.dm-lightbox .dm-lightbox__close { top: 24px; right: var(--dm-pad); }
.dm-lightbox .dm-lightbox__nav { top: 50%; transform: translateY(-50%); }
.dm-lightbox .dm-lightbox__nav--prev { left: var(--dm-pad); }
.dm-lightbox .dm-lightbox__nav--next { right: var(--dm-pad); }
.dm-lightbox.is-single .dm-lightbox__nav { display: none; }
body.lb-open { overflow: hidden; }
@media (max-width: 900px) { .dm-lightbox { padding: 70px 12px; } .dm-lightbox .dm-lightbox__nav--prev { left: 12px; } .dm-lightbox .dm-lightbox__nav--next { right: 12px; } }
.dm-sw-panel[hidden] { display: none; }
@media (max-width: 900px) {
	.dm-sw { grid-template-columns: 1fr; gap: 28px; }
	.dm-sw__side, .dm-sw__imgs:empty + .dm-sw__side { grid-column: 1; grid-row: 1; position: static; padding: 0; max-width: none; }
	.dm-sw__imgs { grid-row: 2; }
}

/* single pages ---------------------------------------------------------- */
.dm-single__meta { display: flex; justify-content: space-between; width: 100%; font: 400 13px/1.2 var(--dm-mono); color: var(--dm-area, #000); }
.dm-article h1.dm-single__title,
.dm-sw__main h1.dm-single__title,
.dm-person-single h1.dm-single__title { margin: 0; font: 400 clamp(28px, 2.6vw, 37px)/1.03 var(--dm-serif); text-transform: uppercase; color: var(--dm-area, #000); }
.dm-single__media { background: #000; aspect-ratio: 1000 / 360; overflow: hidden; margin: 36px 0 0; }
.dm-single__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dm-single__content { margin-top: 40px; font-size: 14px; line-height: 1.3; }
.dm-single__content h2, .dm-single__content h3 { font: 500 clamp(22px, 2.4vw, 32px)/1.1 var(--dm-sans); margin: 40px 0 12px; }
.dm-single__content p { margin: 0 0 14px; }
.dm-meta { font: 400 13px/1.2 var(--dm-mono); }
.dm-meta--area { color: var(--dm-area, #000); text-decoration: none; }
.dm-meta--role { display: block; margin-top: 14px; max-width: 320px; font: 400 14px/1.2 var(--dm-sans); color: var(--dm-grey); }
/* article (news / research / students work): one right-aligned column */
.dm-article__head, .dm-sw__main { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.dm-article h1.dm-single__title { max-width: 544px; margin-left: 227px; }
.dm-article__head > .wp-block-post-date { margin-left: 227px; }
.dm-article .dm-single__content, .dm-sw__main .dm-single__content { max-width: 773px; margin-left: auto; margin-right: 0; width: 100%; }
/* person: name + role on the left (320px), bio in the 773px column on the right */
.dm-person-single { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 773px); gap: 40px; align-items: start; }
.dm-person-single .dm-single__side { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; max-width: 321px; }
.dm-person-single .dm-single__main { margin: 0; }
.dm-person-single .dm-single__content { margin-top: 0; max-width: none; }
.dm-person-single__photo { margin: 0 0 30px; width: 206px; }
.dm-person-single__photo img { filter: grayscale(1); width: 100%; height: auto; display: block; }
/* Figma (desktop): left column sticks, photo top-right, intro paragraph in bold, the rest in a narrower right column */
@media (min-width: 901px) {
	.dm-person-single .dm-single__side { position: sticky; top: 183px; }
	.dm-person-single h1.dm-single__title { margin-top: 51px; }
	.dm-person-single .dm-meta--role { margin-top: 0; font: 400 13px/1.3 var(--dm-mono); }
	.dm-person-single__photo { margin: 0 0 68px auto; width: 319px; }
	.dm-person-single__photo img { aspect-ratio: 319 / 351; object-fit: cover; }
	.dm-person-single .dm-single__content p:first-child { font: 600 15px/1.27 var(--dm-sans); }
	.dm-person-single .dm-single__content p:not(:first-child) { max-width: 546px; margin-left: auto; }
}
@media (max-width: 900px) {
	.dm-person-single { grid-template-columns: 1fr; gap: 24px; margin-top: 0; }
	.dm-person-single .dm-single__side .dm-meta--back { position: static; }
	.dm-article h1.dm-single__title { margin-left: 0; max-width: none; }
	.dm-article__head > .wp-block-post-date { margin-left: 0; }
}

/* education (Figma: 95% wide, 3 columns, greyscale photo) */
.dm-education { display: grid; grid-template-columns: 1fr minmax(0, 434px) 1fr; gap: 36px; align-items: stretch; width: 95%; margin: 0 auto; }
.dm-education h2 { font: 400 clamp(28px, 2.6vw, 37px)/1.03 var(--dm-serif); text-transform: uppercase; text-align: center; margin: 0 0 30px; }
.dm-edu-col { display: flex; flex-direction: column; gap: 10px; align-items: center; }
/* both text columns start at the same height (headings reserve two lines) so the pills line up */
.dm-edu-col:not(.dm-edu-col--img) { justify-content: flex-start; padding-top: clamp(20px, 4.5vw, 64px); }
.dm-edu-col:not(.dm-edu-col--img) h2 { min-height: 2.06em; display: flex; align-items: flex-start; justify-content: center; width: 100%; }
.dm-edu-col--img { justify-content: center; }
/* "Graduate courses:" breaks after the first word, like the design */
.dm-edu-col:last-child:not(.dm-edu-col--img) h2 { max-width: 7em; margin-inline: auto; text-wrap: balance; }
.dm-tag-pill a { display: block; margin: -9px -15px; padding: 9px 15px; color: inherit; text-decoration: none; }
.dm-tag-pill:has(a) { transition: background .2s; }
.dm-tag-pill:has(a):hover { background: #000; }
.dm-tag-pill { display: inline-block; margin: 0; padding: 9px 15px; border-radius: 28px; background: #999; color: #fff; font: 400 13px/1.2 var(--dm-mono); text-align: center; }
.dm-education img { width: 100%; height: auto; display: block; filter: grayscale(1); }
@media (max-width: 900px) { .dm-edu-col:not(.dm-edu-col--img) { padding-top: 0; } .dm-edu-col:not(.dm-edu-col--img) h2 { min-height: 0; } .dm-education { grid-template-columns: 1fr; width: 100%; } .dm-education .dm-edu-col--img { order: -1; } }
.dm-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.dm-gallery img { width: 100%; height: auto; display: block; }

/* ------------------------------------------------------------- footer */
.dm-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 107px; margin-top: 100px; padding: 24px var(--dm-pad); background: var(--dm-bg); }
.dm-footer__icon { display: block; height: auto; }
.dm-footer__icon--l { width: 31.6px; justify-self: start; }
.dm-footer__icon--r { width: 56.8px; justify-self: end; }
.dm-footer__label {
	display: inline-block; padding: 9px 17px 9px 16px; border-radius: 28px; background: var(--dm-pill); color: #000; text-align: center;
	font: 500 14px/1.125 'IBM Plex Sans Condensed', sans-serif; text-transform: uppercase;
}
@media (max-width: 700px) {
	.dm-footer { grid-template-columns: auto 1fr auto; gap: 12px; }
	.dm-footer__label { font-size: 11px; padding: 8px 12px; }
	.dm-footer__icon--r { width: 40px; }
}

/* editor tweaks */
.editor-styles-wrapper .dm-header { position: relative; background: #ccc; }
.editor-styles-wrapper .dm-menu__panel { display: block; position: static; }

/* education image: crop panoramic photo like the design */
.dm-education .dm-edu-col--img img { aspect-ratio: 434 / 257; object-fit: cover; object-position: 8% 50%; opacity: 0.5;}

/* contact page: info on the left (title like the single pages), form in the 773px column on the right */
.dm-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 773px); gap: 40px; align-items: start; }
.dm-contact__info { display: flex; flex-direction: column; gap: 20px; max-width: 321px; }
.dm-contact__info > * { margin: 0; }
.dm-contact h1.dm-contact__title { font: 400 clamp(28px, 2.6vw, 37px)/1.03 var(--dm-serif); text-transform: uppercase; margin: 0 0 10px; }
.dm-contact__line { font-size: 14px; line-height: 1.3; }
.dm-contact__muted { color: var(--dm-grey); }
.dm-contact-form { display: grid; gap: 14px; }
.dm-contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dm-field { display: grid; gap: 8px; }
.dm-field span { font: 400 13px/1 var(--dm-mono); text-transform: uppercase; color: var(--dm-grey); padding-left: 2px; }
.dm-field input, .dm-field textarea {
	width: 100%; box-sizing: border-box; border: 1px solid transparent; border-radius: 11px; background: #c4c4c4; color: #000;
	font: 400 14px/1.3 var(--dm-sans); padding: 16px 18px; outline: none; transition: border-color .2s, background .2s;
}
.dm-field textarea { resize: vertical; min-height: 160px; }
.dm-field input:focus, .dm-field textarea:focus { border-color: #000; background: #cdcdcd; }
.dm-contact-form__submit { justify-self: start; margin-top: 6px; cursor: pointer; }
.dm-contact-form__notice { margin: 0; padding: 14px 18px; border-radius: 11px; font: 400 13px/1.3 var(--dm-mono); }
.dm-contact-form__notice--ok { background: #00c800; color: #000; }
.dm-contact-form__notice--err { background: #ff5100; color: #000; }
@media (max-width: 900px) { .dm-contact { grid-template-columns: 1fr; gap: 28px; } .dm-contact__info { max-width: none; } }

/* person detail rows (Figma: label in the left 227px, text in the right column; use the "Person detail row" pattern) */
.dm-detail { display: grid; grid-template-columns: 227px minmax(0, 1fr); gap: 0; clear: both; margin: 60px 0 0; }
.dm-detail > * { margin: 0; }
.dm-single__content .dm-detail p, .dm-person-single .dm-single__content .dm-detail p:not(:first-child) { max-width: none; margin: 0; font: 400 14px/1.2 var(--dm-sans); }
.dm-single__content .dm-detail p.dm-detail__label, .dm-person-single .dm-single__content .dm-detail p.dm-detail__label:not(:first-child) { font: 400 15px/1.3 var(--dm-sans); text-transform: none; color: var(--dm-grey); }
.dm-single__content .dm-detail p a, .dm-person-single .dm-single__content .dm-detail p:not(:first-child) a {display: block;}
@media (max-width: 900px) { .dm-detail { grid-template-columns: 1fr; gap: 8px; margin-top: 36px; } }

/* news single (Figma 404:9542): back button left; title + date + text in the 773px column; text 546px; detail rows reuse .dm-detail */
.dm-news-single { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 773px); gap: 40px; align-items: start; }
.dm-news-single h1.dm-single__title { margin: 0; max-width: 544px; font: 400 clamp(28px, 2.6vw, 37px)/1.03 var(--dm-serif); text-transform: uppercase; color: var(--dm-area, #000); }
.dm-news-single .dm-news-single__date { margin: 5px 0 0 226px; color: var(--dm-grey); }
.dm-news-single .dm-single__main > * { margin-block-start: 0; }
.dm-news-single .dm-single__content { margin-top: 40px; max-width: none; }
.dm-news-single .dm-single__content > p, .dm-news-single .dm-single__content > .wp-block-image, .dm-news-single .dm-single__content > .wp-block-gallery, .dm-news-single .dm-single__content > ul, .dm-news-single .dm-single__content > ol { max-width: 546px; margin-left: auto; margin-right: 0; }
.dm-news-single .dm-single__content > .wp-block-image img { height: auto; }
@media (max-width: 900px) {
	.dm-news-single { grid-template-columns: 1fr; gap: 24px; }
	.dm-news-single .dm-news-single__date { margin-left: 0; }
	.dm-news-single .dm-single__content > * { max-width: none; }
}
/* news single: intro paragraph spans the full 773px column in bold (Figma: x227 w773), the rest 546px; 20px rhythm */
.dm-news-single .dm-single__content { margin-top: 20px; }
.dm-news-single .dm-single__content > p { margin-bottom: 20px; }
.dm-news-single .dm-single__content > p:first-child { max-width: none; margin-left: 0; font: 600 15px/1.27 var(--dm-sans); }
@media (max-width: 900px) { .dm-news-single .dm-single__content > p:first-child { font-size: 14px; } }
/* images / galleries inside news text: breathing room above and below so they don't touch the paragraphs */
.dm-news-single .dm-single__content > .wp-block-image, .dm-news-single .dm-single__content > .wp-block-gallery { margin-top: 30px; margin-bottom: 30px; }
.dm-news-single .dm-single__content > .wp-block-image img { display: block; }
/* news single (design): title + date centred over the 544px title box; detail label wraps at 206px */
.dm-news-single h1.dm-single__title { text-align: center; color: var(--dm-ink); }
.dm-news-single .dm-news-single__date { margin: 6px 0 0; width: min(544px, 100%); text-align: center; }
.dm-detail p.dm-detail__label { max-width: 206px; }
.dm-detail__body strong { font-weight: 600; }
.dm-detail__body .dm-muted { color: var(--dm-grey); }
@media (max-width: 900px) { .dm-news-single h1.dm-single__title, .dm-news-single .dm-news-single__date { text-align: left; width: auto; } }
.dm-news-single > .dm-single__main, .dm-person-single > .dm-single__main { margin-block-start: 0; }
.dm-news-single h1.dm-single__title { padding-inline: 34px; box-sizing: border-box; }
@media (max-width: 900px) { .dm-news-single h1.dm-single__title { padding-inline: 0; } }
/* image inside a detail row sits in the text column (e.g. a logo under the coordinator) */
.dm-detail > .wp-block-image { grid-column: 2; margin: 22px 0 0; }
.dm-detail > .wp-block-image img { display: block; width: 204px; max-width: 100%; height: auto; }
@media (max-width: 900px) { .dm-detail > .wp-block-image { grid-column: 1; } }

/* embedded project videos */
.dm-video { margin: 0 0 20px; aspect-ratio: 16 / 9; background: #000; }
.dm-video iframe { display: block; width: 100%; height: 100%; border: 0; }

/* research inner pages: breathing room between images / galleries / videos and the text */
.dm-article--research .dm-single__content > .wp-block-image,
.dm-article--research .dm-single__content > .wp-block-gallery,
.dm-article--research .dm-single__content > .dm-video,
.dm-rs .dm-single__content > .wp-block-image,
.dm-rs .dm-single__content > .wp-block-gallery,
.dm-rs .dm-single__content > .dm-video { margin-top: 30px; margin-bottom: 30px; }
.dm-article--research .dm-single__content > :first-child,
.dm-rs .dm-single__content > :first-child { margin-top: 0; }
.dm-article--research .dm-single__content .wp-block-gallery,
.dm-rs .dm-single__content .wp-block-gallery { gap: 14px; }

/* grid: images are plain grayscale; on hover they scale down and the area colour shows around them (see above) */
.dm-research-rows.is-grid .dm-research-row__thumb { isolation: isolate; }

/* research single (Figma "single project"): left column = back pill, [area] + year, title in the area colour; media on the right; text below */
.dm-rs { display: grid; grid-template-columns: minmax(0, 335px) minmax(0, 1fr); column-gap: 20px; align-items: stretch; }
.dm-rs > * { margin-block-start: 0; }
.dm-rs__side { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 360px; }
.dm-rs__side > * { margin: 0; }
.dm-rs .dm-single__media { grid-column: 2; grid-row: 1; margin: 0; aspect-ratio: 1003 / 579; }
/* desktop: the whole hero (back, meta, title, image) fits in the viewport without scrolling */
@media (min-width: 901px) {
	.dm-rs .dm-single__media { width: 100%; max-height: calc(100vh - 183px - 40px); max-height: calc(100svh - 183px - 40px); min-height: 300px; }
	.dm-rs .dm-single__media img { height: 100%; object-fit: contain !important; padding: 20px }
}
.dm-rs .dm-single__content { grid-column: 2; grid-row: 2; margin: 28px 0 0 auto; max-width: 773px; width: 100%; }
.dm-rs h1.dm-single__title { margin: 0; font: 400 clamp(28px, 2.6vw, 37px)/1.03 var(--dm-serif); text-transform: uppercase; color: var(--dm-area, #000); }
.dm-rs .dm-single__meta { color: var(--dm-area, #000); }
.dm-rs .dm-back { border-color: var(--dm-area, #000); color: var(--dm-area, #000); align-self: flex-start; }
.dm-rs .dm-back:hover { background: var(--dm-area, #000); color: #fff; }
@media (max-width: 900px) {
	.dm-rs { grid-template-columns: 1fr; row-gap: 24px; }
	.dm-rs__side { grid-column: 1; grid-row: 1; min-height: 0; gap: 18px; }
	.dm-rs .dm-single__media { grid-column: 1; grid-row: 2; }
	.dm-rs .dm-single__content { grid-column: 1; grid-row: 3; margin-top: 0; }
}

/* Embedded videos (YouTube etc.) */
.wp-block-embed iframe {
	max-width: 100%;
	width: 100%;
	height: 400px;
}
.dm-single__content ul, .dm-single__content ol { margin: 0 0 14px; }
