/* ==========================================================================
   CNISIDIS theme
   Editorial, restrained look for the CNISIDIS practice; no build step. Spacing follows Tailwind's 0.25rem scale; breakpoints are
   sm 40rem, md 48rem, lg 64rem, xl 80rem.
   ========================================================================== */

:root {
	--color-main: #0a0a0a;
	--color-prime: #f0f0f0;
	--color-bermuda: #78dcca;
	--color-bg: #0c0c0c;
	--color-text: #f5f5f5;
	--color-gray-300: #d1d5dc;
	--color-gray-400: #99a1af;

	--font-body: "IBM Plex Sans", sans-serif;
	--font-heading: "Inter", sans-serif;
	--font-serif: "Newsreader", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
	--font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

	--nav-h: 5.5rem;
	--shadow-deep: 0 20px 25px -5px rgba(0, 0, 0, .9), 0 8px 10px -6px rgba(0, 0, 0, .9);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
	color: var(--color-text);
	background-color: var(--color-bg);
	font-family: Inter, "IBM Plex Sans", sans-serif;
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	background-color: var(--color-bg);
	color: var(--color-text);
}

body.admin-bar { --admin-bar: 32px; }
@media (max-width: 782px) { body.admin-bar { --admin-bar: 46px; } }

h1, h2, h3, h4, h5, h6, p, figure, ul, ol, blockquote { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
ul, ol { padding: 0; }
a { color: inherit; text-decoration: inherit; }
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
p { max-width: 1200px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
	clip: auto; width: auto; height: auto; margin: 0;
	top: .5rem; left: .5rem; z-index: 1000;
	padding: .5rem 1rem; background: #000; color: #fff;
}

/* ---------- Navigation ---------- */

.cn-nav {
	position: fixed;
	top: var(--admin-bar, 0);
	left: 0;
	width: 100%;
	z-index: 100;
	/* Glass: translucent, blurred and slightly saturated, with a faint light
	   edge and a soft shadow underneath (as on the previous site). */
	background-color: rgba(12, 12, 12, .5);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
	box-shadow:
		inset 0 -1px 0 rgba(255, 255, 255, .06),
		0 20px 25px -5px rgba(0, 0, 0, .9),
		0 8px 10px -6px rgba(0, 0, 0, .9);
}

.cn-nav__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--nav-h);
	width: 100%;
	max-width: 75rem;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.cn-nav__toggle {
	position: absolute;
	left: .75rem;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, .7);
	cursor: pointer;
}
.cn-nav__toggle:hover { color: #fff; }
.cn-nav__toggle svg { width: 1.5rem; height: 1.5rem; }
.cn-nav__toggle .icon-close { display: none; }
.cn-nav.is-open .cn-nav__toggle .icon-open { display: none; }
.cn-nav.is-open .cn-nav__toggle .icon-close { display: block; }

.cn-nav__brand { display: flex; align-items: center; }
.cn-nav__logo { display: flex; align-items: center; }
.cn-nav__logo img, .cn-nav__logo svg { height: 2.75rem; width: auto; }
.cn-nav__wordmark { font-family: var(--font-heading); font-weight: 800; letter-spacing: .02em; font-size: 1.125rem; color: #fff; }

.cn-nav__menu { display: none; }

.cn-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.5rem; }
.cn-menu a {
	display: block;
	padding: .75rem 0;
	font-size: .875rem;
	letter-spacing: .02em;
	color: rgba(255, 255, 255, .7);
	transition: color .2s;
}
.cn-menu a:hover,
.cn-menu .current-menu-item > a,
.cn-menu .current_page_item > a,
.cn-menu .current-menu-ancestor > a,
.cn-menu .is-active > a { color: #fff; }

.cn-nav__panel { display: none; padding: 1rem 1.25rem 2rem; }
.cn-nav.is-open .cn-nav__panel { display: block; }
.cn-nav__panel .cn-menu { flex-direction: column; gap: .25rem; }
.cn-nav__panel .cn-menu a { font-size: 1.125rem; }

@media (min-width: 40rem) {
	.cn-nav__inner { justify-content: space-between; padding: 0 2rem; }
	.cn-nav__logo img, .cn-nav__logo svg { height: 3rem; }
	.cn-nav__toggle { display: none; }
	.cn-nav__menu { display: block; }
	.cn-nav__panel, .cn-nav.is-open .cn-nav__panel { display: none; }
}

/* ---------- Layout ---------- */

.cn-main { position: relative; overflow-x: clip; }

.cn-wrap { width: 100%; max-width: 75rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 40rem) { .cn-wrap { padding: 0 2rem; } }

/* Small-caps metadata line: "Client · Place · 2025". */
.cn-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0 .75rem;
	font-family: var(--font-mono);
	font-size: .75rem;
	line-height: 1.6;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .5);
}
.cn-meta__sep { color: rgba(255, 255, 255, .3); }

.cn-section-title {
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(1.75rem, 3.5vw, 2.25rem);
	line-height: 1.2;
	color: rgba(255, 255, 255, .88);
}
.cn-link { padding: .75rem 0; font-size: .875rem; letter-spacing: .02em; color: rgba(255, 255, 255, .65); transition: color .2s; }
.cn-link:hover { color: #fff; }

/* ---------- Archives (Work, Lab) ---------- */

.cn-archive { padding-top: calc(var(--nav-h) + 4.5rem); padding-bottom: 8rem; }
.cn-archive__head { display: flex; flex-direction: column; gap: 1.75rem; padding-bottom: 4rem; }
@media (min-width: 48rem) { .cn-archive__head { padding-bottom: 6rem; } }
.cn-archive__title {
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(2.75rem, 7vw, 4rem);
	line-height: 1.1;
	color: #f5f5f5;
}
.cn-archive__intro { max-width: 35rem; font-size: 1rem; font-weight: 300; line-height: 1.75; color: rgba(255, 255, 255, .58); }

.cn-filters { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 1rem; font-size: .875rem; }
.cn-filters a { padding: .25rem 0; color: rgba(255, 255, 255, .5); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.cn-filters a:hover { color: rgba(255, 255, 255, .85); }
.cn-filters a[aria-current="page"] { color: #fff; border-bottom-color: rgba(255, 255, 255, .5); }

.cn-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4rem; }
@media (min-width: 48rem) {
	.cn-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6rem 2.5rem; }
	/* Staggered columns: every second work sits lower. */
	.cn-archive:not(.is-lab) .cn-cards > :nth-child(even) { margin-top: 7.5rem; }
	.cn-archive:not(.is-lab) .cn-cards > :nth-child(even):last-child { margin-bottom: -7.5rem; }
}
@media (min-width: 64rem) {
	.cn-archive.is-lab .cn-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4.5rem 2.5rem; }
}

.cn-more {
	width: 100%;
	min-height: 60px;
	margin-top: 4rem;
	padding: 2rem 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-family: var(--font-mono);
	font-size: .75rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .4);
}
.cn-archive:not(.is-lab) .cn-more { margin-top: 11.5rem; }
.cn-more a:hover { color: rgba(255, 255, 255, .7); }
.cn-more.is-end { color: rgba(255, 255, 255, .25); }
.cn-more.is-loading span { animation: cn-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes cn-pulse { 50% { opacity: .5; } }

.cn-empty { padding: 4rem 0; color: rgba(255, 255, 255, .4); font-size: .875rem; }

/* ---------- Card (work, lab) ---------- */

.cn-card__link { display: flex; flex-direction: column; gap: 1.375rem; }
.cn-card__media {
	display: block;
	aspect-ratio: 4 / 5;
	background-color: rgba(255, 255, 255, .04);
	background-position: 50%;
	background-size: cover;
	opacity: .92;
	transition: opacity .5s, filter .5s;
}
.cn-card.is-lab .cn-card__media,
.cn-archive .cn-card__media { aspect-ratio: 3 / 2; }
.cn-card__link:hover .cn-card__media { opacity: 1; filter: brightness(1.06); }

/* Work cards: the image slowly zooms in inside its frame on hover/focus and
   eases back out. The image is repeated on a pseudo-element so the frame
   stays put; touch screens and reduced-motion get no zoom. */
.cn-card:not(.is-lab) .cn-card__media { position: relative; overflow: hidden; }
.cn-card:not(.is-lab) .cn-card__media::before {
	content: "";
	position: absolute;
	inset: 0;
	background: inherit;
	transform: scale(1);
	transition: transform 2.4s cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.cn-card:not(.is-lab) .cn-card__link:hover .cn-card__media::before,
	.cn-card:not(.is-lab) .cn-card__link:focus-visible .cn-card__media::before { transform: scale(1.07); }
}
.cn-card__body { display: flex; flex-direction: column; gap: .5rem; }
.cn-card__title { font-size: 1.25rem; font-weight: 400; line-height: 1.35; color: #f5f5f5; }
.cn-card.is-lab .cn-card__title { font-size: 1.125rem; }
.cn-card__sub { font-size: .9375rem; font-weight: 300; line-height: 1.6; color: rgba(255, 255, 255, .55); }

/* ---------- Single (work, lab post) ---------- */

.cn-single__head { padding-top: calc(var(--nav-h) + 4rem); padding-bottom: 3.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 48rem) { .cn-single__head { padding-top: calc(var(--nav-h) + 5.5rem); padding-bottom: 4rem; } }
.cn-single__title {
	max-width: 56rem;
	font-family: var(--font-heading);
	font-size: clamp(2.25rem, 5.5vw, 3.5rem);
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: .005em;
	color: #f5f5f5;
	overflow-wrap: break-word;
}
.cn-single__premise {
	max-width: 42rem;
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(1.375rem, 2.6vw, 1.75rem);
	line-height: 1.4;
	color: rgba(255, 255, 255, .7);
}
.cn-single__hero img { width: 100%; height: auto; max-height: 85vh; object-fit: cover; }

/* Blurred featured image behind the top of a work page. It scrolls with the
   page and fades out at the bottom, so it tints the header and hero without
   a hard edge or sitting behind the text further down. */
.cn-single__backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: min(110vh, 70rem);
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	background-position: 50% 30%;
	background-size: cover;
	filter: blur(60px) saturate(120%);
	opacity: .55;
	transform: scale(1.15);
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 100%);
}
.cn-single__backdrop ~ .cn-single { position: relative; z-index: 1; }

.cn-single__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; padding-top: 4rem; padding-bottom: 6rem; }
@media (min-width: 64rem) {
	.cn-single__body { grid-template-columns: 15rem minmax(0, 1fr); gap: 5rem; padding-top: 6rem; padding-bottom: 8rem; }
	.cn-single__aside { position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start; }
}
.cn-single__body .entry-content { max-width: 46rem; }

.cn-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 1.75rem 1.5rem; }
@media (min-width: 64rem) { .cn-facts { grid-template-columns: minmax(0, 1fr); } }
.cn-facts__row { display: flex; flex-direction: column; gap: .375rem; }
.cn-facts dt {
	font-family: var(--font-mono);
	font-size: .6875rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .4);
}
.cn-facts dd { margin: 0; font-size: .9375rem; line-height: 1.6; color: rgba(255, 255, 255, .85); }
.cn-facts dd a { transition: color .2s; }
.cn-facts dd a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); }

.cn-next {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem 2rem;
	padding-top: 4.5rem;
	padding-bottom: 8rem;
	border-top: 1px solid rgba(255, 255, 255, .08);
}
.cn-next__label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.cn-next__title { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.2; color: rgba(255, 255, 255, .85); transition: color .2s; }
.cn-next:hover .cn-next__title { color: #fff; }

/* ---------- Lab tools ---------- */

.cn-tools { max-width: 46rem; margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.cn-tools__title { margin-bottom: 1.25rem; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .4); }
.cn-tool { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.cn-tool__name { font-size: 1rem; color: rgba(255, 255, 255, .85); transition: color .2s; }
.cn-tool:hover .cn-tool__name { color: #fff; }
.cn-tool__excerpt { font-size: .875rem; font-weight: 300; line-height: 1.6; color: rgba(255, 255, 255, .5); }

/* ---------- Page ---------- */

.cn-page { padding-top: calc(var(--nav-h) + 4.5rem); padding-bottom: 8rem; }
.cn-page > .entry-content { max-width: 46rem; margin-inline: auto; }

/* ---------- Entry content (block editor output) ---------- */

.entry-content {
	font-family: var(--font-heading);
	font-size: 1.0625rem;
	font-weight: 300;
	line-height: 1.8;
	color: rgba(255, 255, 255, .72);
}
@media (min-width: 48rem) { .entry-content { font-size: 1.125rem; } }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content > :is(figure, .wp-block-image, .wp-block-embed, .wp-block-gallery, .wp-block-video) { margin-top: 2.5rem; margin-bottom: 1.25rem; }
.entry-content > p:empty { display: none; }
.entry-content strong, .entry-content b { font-weight: 500; color: rgba(255, 255, 255, .88); }
/* Headings in post content: one weight, whatever bold the editor applied
   to parts of them. */
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--font-serif); font-style: italic; font-weight: 300; color: rgba(255, 255, 255, .9); }
.entry-content h2 strong, .entry-content h3 strong, .entry-content h4 strong,
.entry-content h2 b, .entry-content h3 b, .entry-content h4 b { font-weight: inherit; }
.entry-content h2 { font-size: 1.875rem; line-height: 1.25; }
.entry-content h3 { font-size: 1.5rem; line-height: 1.3; }
.entry-content h4 { font-size: 1.125rem; line-height: 1.75rem; }
.entry-content > :is(h2, h3, h4) { margin-top: 2.5rem; }
.entry-content > :is(h2, h3, h4):first-child { margin-top: 0; }
.entry-content > :is(h2, h3, h4) + * { margin-top: .75rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; }
.entry-content a:not([class]) { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255, 255, 255, .3); }
.entry-content code { font-family: var(--font-mono); font-size: .875em; background: rgba(255, 255, 255, .06); padding: .1em .3em; border-radius: .2rem; }
.entry-content pre { font-family: var(--font-mono); font-size: .8125rem; background: rgba(255, 255, 255, .04); padding: 1rem; overflow-x: auto; border-radius: .375rem; }
.entry-content pre code { background: none; padding: 0; }
.entry-content blockquote { border-left: 1px solid rgba(255, 255, 255, .3); padding-left: 1.5rem; font-family: var(--font-serif); font-style: italic; font-size: 1.375rem; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.entry-content th, .entry-content td { border-bottom: 1px solid rgba(255, 255, 255, .1); padding: .5rem; text-align: left; }


.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; padding-right: 12px; }
.aligncenter { margin-left: auto; margin-right: auto; }

.wp-block-image { display: flex; flex-direction: column; align-items: center; width: 100%; border-width: 0; }
.wp-block-image figcaption, .wp-block-image .wp-element-caption { align-self: stretch; }
.wp-block-image img { max-width: 100%; height: auto; }
.wp-block-image figure { display: flex; flex-direction: column; align-items: center; }
.wp-element-caption, .wp-block-image figcaption {
	padding-top: .625rem;
	padding-bottom: .5rem;
	text-align: left;
	font-family: var(--font-mono);
	font-size: .6875rem;
	line-height: 1.5;
	letter-spacing: .06em;
	color: rgba(255, 255, 255, .4);
}
.wp-block-gallery { display: flex; flex-wrap: wrap; gap: 1rem; }
.wp-block-gallery .wp-block-image { width: auto; flex: 1 1 30%; margin: 0; }
.entry-content .wp-block-gallery > * + * { margin-top: 0; }
@media (max-width: 39.99rem) {
	.wp-block-gallery .wp-block-image { flex-basis: calc(50% - .25rem); }
}
.wp-block-separator { border: 0; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 3rem; margin-bottom: 3rem; }
.wp-block-separator.has-alpha-channel-opacity { opacity: 1; }

.is-layout-flex { display: flex; align-items: center; flex-wrap: wrap; gap: .5em; }
.is-nowrap { flex-wrap: nowrap; }
.is-content-justification-center { justify-content: center; }
.wp-block-group { display: flex; flex-direction: column; row-gap: 1rem; }
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.wp-block-column { flex: 1 1 0; min-width: 12rem; }

.wp-block-embed { width: 100%; }
.wp-block-embed__wrapper { position: relative; }
/* Size embeds from their aspect-ratio class (set by WordPress from the
   provider's width/height) rather than a fixed height, so 16:9 videos are
   not letterboxed and vertical (9:16) ones are not squashed. */
.wp-block-embed__wrapper::before { content: none !important; }
.wp-block-embed.is-type-video iframe,
.wp-block-embed.wp-has-aspect-ratio iframe {
	position: static !important;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}
.wp-embed-aspect-21-9 iframe { aspect-ratio: 21 / 9 !important; }
.wp-embed-aspect-18-9 iframe { aspect-ratio: 2 / 1 !important; }
.wp-embed-aspect-4-3 iframe { aspect-ratio: 4 / 3 !important; }
.wp-embed-aspect-1-1 iframe { aspect-ratio: 1 / 1 !important; }
.wp-embed-aspect-9-16 iframe { aspect-ratio: 9 / 16 !important; }
.wp-embed-aspect-1-2 iframe { aspect-ratio: 1 / 2 !important; }
/* Portrait embeds: centred and kept within the viewport height. */
.wp-embed-aspect-9-16 .wp-block-embed__wrapper { max-width: min(100%, 26rem, calc(80vh * 9 / 16)); margin-inline: auto; }
.wp-embed-aspect-1-2 .wp-block-embed__wrapper { max-width: min(100%, 22rem, calc(80vh / 2)); margin-inline: auto; }
.wp-block-embed figcaption { text-align: left; }
.wp-block-video video { width: 100%; }

.wp-block-buttons { display: flex; justify-content: center; width: 100%; padding-bottom: 2.5rem; }
.wp-block-button { display: flex; justify-content: center; width: 100%; border-radius: 2rem; }
.wp-block-button__link {
	display: inline-block;
	padding: .75rem 1.75rem;
	border: 1px solid rgba(255, 255, 255, .3);
	color: #fff;
	font-size: .875rem;
	letter-spacing: .04em;
	text-align: center;
	transition: border-color .3s, background-color .3s;
}
.wp-block-button__link:hover { border-color: rgba(255, 255, 255, .7); background-color: rgba(255, 255, 255, .04); }

.wp-block-social-links { display: flex; justify-content: center; gap: 2rem; list-style: none; padding: 0; }
.wp-block-social-link-label { display: none; }
.wp-block-social-link a { display: flex; color: #f5f5f5; }
.wp-block-social-link svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.invert-svg, .invert-svg svg { fill: #f5f5f5; }

.profile-pic {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin-inline: auto;
	overflow: hidden;
	border-radius: .5rem;
}
.profile-pic img {
	width: 10rem !important;
	height: 10rem !important;
	object-fit: cover;
	border-radius: 9999px;
}
.profile-pic > p { margin-top: 1rem; text-align: center; font-size: .875rem; }
.is-style-rounded img { border-radius: 9999px; }

.what-i-do { display: flex; flex-direction: column; row-gap: 1rem; }
.what-i-do h2 { padding-bottom: 1rem; font-family: var(--font-serif); font-style: italic; font-size: 1.875rem; line-height: 1.25; font-weight: 300; }
.what-i-do ul {
	list-style: none;
	border-left: 1px solid rgba(255, 255, 255, .2);
	padding: .5rem 1rem .5rem 1.75rem;
	font-family: var(--font-mono);
	font-size: .8125rem;
	line-height: 2;
	letter-spacing: .04em;
}

.wp-embedded-link {
	padding: 0 .25rem;
	border-bottom: 1px solid rgba(255, 255, 255, .2);
	transition: background-color .2s;
}
.wp-embedded-link:hover { background-color: rgba(255, 255, 255, .2); }
.wp-embedded-link-project {
	padding: .25rem;
	background-color: rgba(255, 255, 255, .05);
	border-color: rgba(255, 255, 255, .2);
	transition: background-color .2s;
}
.wp-embedded-link-project:hover { background-color: rgba(255, 255, 255, .2); }
.wp-embedded-link-labpost {
	padding: 0 .25rem;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: .5rem;
}

.instagram-media {
	width: 100%;
	margin: 0 0 1rem;
	padding: 0;
	background-color: rgba(255, 255, 255, .1);
	justify-self: center;
}
@media (min-width: 40rem) { .instagram-media { width: 50%; } }

/* ---------- Home ---------- */

.cn-hero {
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding: calc(var(--nav-h) + 2rem) 0 4rem;
}
.cn-hero__inner { display: flex; flex-direction: column; gap: 1.5rem; }
.cn-hero__title {
	font-family: var(--font-heading);
	font-size: clamp(3rem, 9vw, 4.5rem);
	line-height: 1;
	font-weight: 800;
	letter-spacing: .01em;
	color: #f5f5f5;
}
.cn-hero__c { color: rgba(255, 255, 255, .44); }
.cn-hero__role {
	font-family: var(--font-mono);
	font-size: .8125rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .6);
}
.cn-hero__tagline {
	margin-top: 1rem;
	max-width: 40rem;
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(1.5rem, 3.2vw, 2rem);
	line-height: 1.35;
	color: rgba(255, 255, 255, .72);
}
.cn-hero__intro {
	margin-top: 1.75rem;
	max-width: 32.5rem;
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.75;
	color: rgba(255, 255, 255, .58);
}

.cn-works { padding-top: 2.5rem; padding-bottom: 10rem; display: flex; flex-direction: column; gap: 3.5rem; }
@media (min-width: 48rem) { .cn-works { padding-bottom: 13.75rem; } }
.cn-works__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; flex-wrap: wrap; }
.cn-works__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4rem; }
@media (min-width: 48rem) {
	.cn-works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem 2.5rem; }
	.cn-works__item.is-lead { grid-column: 1 / -1; }
	.cn-works__item.is-lead .cn-card__media { aspect-ratio: 16 / 9; }
	.cn-works__item.is-lead .cn-card__body { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; }
	.cn-works__item.is-lead .cn-card__title { font-size: 1.375rem; }
}

.cn-steps { padding-bottom: 10rem; display: flex; flex-direction: column; gap: 3.5rem; }
@media (min-width: 48rem) { .cn-steps { padding-bottom: 13.75rem; } }
.cn-steps__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
@media (min-width: 48rem) { .cn-steps__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4rem; } }
.cn-step { display: flex; flex-direction: column; gap: .875rem; }
.cn-steps.is-numbered .cn-step { padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.cn-step__num { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; color: rgba(255, 255, 255, .4); }
.cn-step__title { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: 1.625rem; line-height: 1.25; color: rgba(255, 255, 255, .88); }
.cn-steps.is-numbered .cn-step__title { font-family: var(--font-heading); font-style: normal; font-weight: 400; font-size: 1.25rem; color: #f5f5f5; }
.cn-step__text { font-size: .9375rem; font-weight: 300; line-height: 1.75; color: rgba(255, 255, 255, .55); }

.cn-contact {
	padding-bottom: 11rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.75rem;
	text-align: center;
	scroll-margin-top: var(--nav-h);
}
.cn-contact__title {
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(2rem, 4.5vw, 2.75rem);
	line-height: 1.2;
	color: rgba(255, 255, 255, .92);
}
.cn-contact__note { max-width: 30rem; font-size: .9375rem; font-weight: 300; line-height: 1.75; color: rgba(255, 255, 255, .55); }
.cn-contact__email {
	margin-top: .75rem;
	padding: .875rem .25rem;
	font-size: 1.0625rem;
	font-weight: 300;
	color: rgba(255, 255, 255, .85);
	border-bottom: 1px solid rgba(255, 255, 255, .3);
	transition: color .2s, border-color .2s;
}
.cn-contact__email:hover { color: #fff; border-color: rgba(255, 255, 255, .7); }

/* Globe (optional, off by default) */
.cn-home { position: relative; width: 100%; height: 80vh; overflow: hidden; }
.cn-globe { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.cn-globe canvas { display: block; width: 100%; height: 100%; outline: none; }
.cn-globe.is-hover canvas { cursor: pointer; }
.cn-globe__fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .2); font-size: .75rem; }
.cn-globe__panel { position: absolute; bottom: 1rem; left: 0; width: 100%; z-index: 5; display: flex; padding: .5rem; }
.cn-globe__panel[hidden] { display: none; }
.cn-globe__panel-inner { display: flex; flex-wrap: wrap; gap: .5rem; width: 100%; padding: 1rem; background-color: rgba(255, 255, 255, .02); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.cn-globe__place { width: 100%; font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.cn-globe__chip { display: flex; padding: .125rem; border: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .5); }
.cn-globe__chip span { padding: .25rem; background-color: rgba(255, 255, 255, .15); white-space: nowrap; font-size: .6em; }
.cn-globe__chip:hover span { color: rgba(255, 255, 255, .8); }

/* ---------- Footer ---------- */

.cn-footer { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .08); }
.cn-footer__inner {
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem 2.5rem;
	font-size: .8125rem;
	color: rgba(255, 255, 255, .45);
}
.cn-footer__links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.cn-footer a { color: rgba(255, 255, 255, .55); transition: color .2s; }
.cn-footer a:hover { color: #fff; }

/* ---------- 404 / search ---------- */

.cn-notfound { padding-top: calc(var(--nav-h) + 6rem); padding-bottom: 10rem; }
.cn-notfound h1 { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: clamp(2.5rem, 6vw, 3.5rem); color: #f5f5f5; }
.cn-notfound p { margin-top: 1.25rem; color: rgba(255, 255, 255, .55); font-size: 1rem; font-weight: 300; }
.cn-notfound a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}
