.ds-project-hero {
	position: relative;
	min-height: var(--wp--custom--story--project-hero);
	isolation: isolate;
	overflow: clip;
	background-color: var(--wp--preset--color--green);
	background-image: url("../images/project-hero-mesh.webp");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: var(--wp--preset--color--paper);
}

.ds-field-context--wave .ds-project-hero,
.ds-field-context--wave .ds-editorial-mast,
.ds-field-context--wave .ds-archive-mast {
	background-color: var(--wp--preset--color--green);
	background-image: var(--wp--preset--gradient--scrim), url("../images/field-wave-teal.webp");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: var(--wp--preset--color--paper);
}

.ds-field-context--nebula .ds-project-hero,
.ds-field-context--nebula .ds-editorial-mast,
.ds-field-context--nebula .ds-archive-mast {
	background-color: var(--wp--preset--color--black);
	background-image: var(--wp--preset--gradient--scrim), url("../images/field-nebula-black.webp");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: var(--wp--preset--color--paper);
}

.ds-field-context--transition .ds-project-hero,
.ds-field-context--transition .ds-editorial-mast,
.ds-field-context--transition .ds-archive-mast {
	background-color: var(--wp--preset--color--indigo);
	background-image: var(--wp--preset--gradient--scrim), url("../images/field-transition-indigo-teal.webp");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: var(--wp--preset--color--paper);
}

.ds-field-context--mist .ds-editorial-mast,
.ds-field-context--mist .ds-archive-mast {
	background-color: var(--wp--preset--color--lavender);
	background-image: var(--wp--preset--gradient--mist);
	color: var(--wp--preset--color--ink);
}

.ds-field-context--nocturne .ds-editorial-mast,
.ds-field-context--nocturne .ds-archive-mast {
	background-color: var(--wp--preset--color--black);
	background-image: var(--wp--preset--gradient--nocturne);
	color: var(--wp--preset--color--paper);
}

/* Title contrast belongs to its actual surface, not the body's field choice. */
.ds-editorial-title,
.ds-archive-title {
	color: inherit;
}

.ds-project-hero::after {
	position: absolute;
	z-index: 0;
	inset: 0;
	background: var(--wp--preset--gradient--story-scrim);
	content: "";
	pointer-events: none;
}

.ds-project-hero__media {
	position: absolute;
	z-index: 0;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
}

.ds-project-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ds-project-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: var(--wp--custom--story--project-hero);
	padding: var(--wp--preset--spacing--60) var(--wp--custom--layout--edge);
}

.ds-project-title {
	max-width: 14ch;
	margin: var(--wp--preset--spacing--20) 0 0;
	color: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--display);
	line-height: 0.9;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.ds-project-brief {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	border-block-end: var(--wp--custom--rule--hairline) solid var(--wp--preset--color--line);
}

.ds-project-brief__inner {
	padding: var(--wp--preset--spacing--50) var(--wp--custom--layout--edge) var(--wp--preset--spacing--60);
}

.ds-project-brief .wp-block-starkji-net-project-meta {
	border: 0;
}

.ds-project-brief .ds-project-facts {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--30);
	margin: 0;
}

.ds-project-brief .ds-project-fact {
	grid-column: span 3;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
	gap: var(--wp--preset--spacing--10);
	padding-block-start: var(--wp--preset--spacing--20);
	border-block-start: var(--wp--custom--rule--hairline) solid var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
	font-family: var(--wp--preset--font-family--mono);
	line-height: 1.45;
}

.ds-project-brief .ds-project-fact--disciplina,
.ds-project-brief .ds-project-fact--equipo {
	grid-column: span 6;
}

.ds-project-brief .ds-project-fact--metric {
	grid-column: span 4;
	min-height: 10rem;
	padding: var(--wp--preset--spacing--30);
	border: 0;
	background: var(--wp--preset--color--lavender);
	font-family: var(--wp--preset--font-family--mono);
}

.ds-project-brief .ds-project-fact dt {
	color: var(--wp--preset--color--muted);
}

.ds-project-brief .ds-project-fact dd {
	margin: 0;
}

.ds-project-brief .ds-project-fact--metric dd {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--card);
	line-height: 0.95;
}

.ds-project-body {
	padding: var(--wp--preset--spacing--60) var(--wp--custom--layout--edge) var(--wp--preset--spacing--70);
}

.ds-project-content,
.ds-editorial-content {
	/* The outer canvas spans the page; each text block keeps its reading measure. */
	max-width: none;
	width: 100%;
	font-size: var(--wp--preset--font-size--body);
}

.ds-project-content > :where(p, ul, ol, h2, h3, h4, blockquote),
.ds-editorial-content > :where(p, ul, ol, h2, h3, h4, blockquote) {
	max-width: var(--wp--custom--story--copy);
	margin-inline: auto;
}

.ds-project-content {
	counter-reset: ds-project-section;
}

.ds-project-content > :where(h2, h3, h4) {
	margin-block-start: var(--wp--preset--spacing--60);
	text-wrap: pretty;
}

.ds-project-content > h2 {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.2;
}

.ds-project-content > h2:first-child {
	margin-block-start: 0;
}

.ds-project-content > h2:not(:first-child)::before {
	counter-increment: ds-project-section;
	content: counter(ds-project-section, upper-roman) ". ";
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: -0.02em;
}

.ds-project-content > h3 {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.2;
}

.ds-project-content > h4 {
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.3;
}

.ds-project-content > .alignwide,
.ds-project-content > .alignfull {
	max-width: none;
}

.ds-project-content .wp-block-group.has-background,
.ds-project-content .wp-block-cover {
	padding: var(--wp--preset--spacing--60);
}

.ds-article-hero {
	position: relative;
	display: flex;
	min-height: var(--wp--custom--story--article-hero);
	isolation: isolate;
	overflow: clip;
	background: var(--wp--preset--gradient--mist);
	color: var(--wp--preset--color--ink);
}

.ds-article-hero__media {
	position: absolute;
	z-index: -2;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
}

.ds-article-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ds-article-hero:has(.ds-article-hero__media img) {
	background: var(--wp--preset--color--black);
	color: var(--wp--preset--color--paper);
}

.ds-article-hero:has(.ds-article-hero__media img)::after {
	position: absolute;
	z-index: -1;
	inset: 0;
	background: var(--wp--preset--gradient--story-scrim);
	content: "";
	pointer-events: none;
}

.ds-article-hero__inner {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 100%;
	min-height: var(--wp--custom--story--article-hero);
	padding: var(--wp--preset--spacing--60) var(--wp--custom--layout--edge);
}

.ds-article-title {
	max-width: 14ch;
	margin: var(--wp--preset--spacing--20) 0 0;
	color: inherit;
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--display);
	font-weight: 400;
	line-height: 0.9;
	letter-spacing: -0.055em;
	text-wrap: balance;
}

.ds-article-body {
	display: grid;
	grid-template-columns: minmax(9rem, var(--wp--custom--story--rail)) minmax(0, var(--wp--custom--story--copy));
	justify-content: center;
	gap: var(--wp--preset--spacing--60);
	padding: var(--wp--preset--spacing--60) var(--wp--custom--layout--edge) var(--wp--preset--spacing--70);
}

.ds-article-rail {
	position: sticky;
	top: var(--wp--preset--spacing--40);
	align-self: start;
}

.ds-entry-meta__list {
	margin: 0;
	border-block-start: var(--wp--custom--rule--hairline) solid var(--wp--preset--color--ink);
}

.ds-entry-meta__fact {
	display: grid;
	gap: var(--wp--preset--spacing--10);
	padding-block: var(--wp--preset--spacing--20);
	border-block-end: var(--wp--custom--rule--hairline) solid var(--wp--preset--color--line);
}

.ds-entry-meta__fact dt,
.ds-entry-meta__fact dd {
	margin: 0;
}

.ds-entry-meta__fact dt {
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--micro);
}

.ds-entry-meta__fact dd {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
}

.ds-article-content {
	min-width: 0;
	max-width: var(--wp--custom--story--copy);
	font-size: var(--wp--preset--font-size--body);
}

.ds-article-content > p:first-child {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.55;
}

.ds-article-content > :where(h2, h3, h4) {
	margin-block-start: var(--wp--preset--spacing--60);
	text-wrap: pretty;
}

.ds-article-content > h2 {
	font-size: var(--wp--preset--font-size--card);
	line-height: 1.08;
}

.ds-article-content blockquote:not(.ds-editorial-quote, .is-style-editorial-quote) {
	margin-block: var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--50);
	border: 0;
	background: var(--wp--preset--color--lavender);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--card);
	line-height: 1.05;
}

.ds-article-content blockquote p {
	margin: 0;
}

.ds-single-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--50) var(--wp--custom--layout--edge) var(--wp--preset--spacing--70);
	border-block-start: var(--wp--custom--rule--hairline) solid var(--wp--preset--color--line);
}

.ds-single-nav > * {
	min-width: 0;
	max-width: var(--wp--custom--story--copy);
}

.ds-single-nav .post-navigation-link-next {
	grid-column: 2;
	justify-self: end;
}

.ds-project-body > .ds-single-nav {
	padding-inline: 0;
	padding-block-end: 0;
}

.ds-single-nav a {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--20);
	min-height: 2.75rem;
	max-width: 100%;
	min-width: 0;
	font-family: var(--wp--preset--font-family--serif);
	line-height: 1.25;
	text-decoration: underline;
}

.ds-single-nav .post-navigation-link__label {
	flex-shrink: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--micro);
	line-height: 1.5;
	word-break: normal;
	overflow-wrap: normal;
}

.ds-single-nav .post-navigation-link__title {
	min-width: 0;
}

.ds-editorial-mast {
	min-height: 31rem;
	padding: var(--wp--preset--spacing--60) var(--wp--custom--layout--edge);
	background: var(--wp--preset--color--lavender);
}

.ds-editorial-title {
	max-width: 12ch;
	margin: 0;
	font-size: var(--wp--preset--font-size--display);
	font-family: var(--wp--preset--font-family--serif);
	line-height: 0.9;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.ds-editorial-content {
	padding: var(--wp--preset--spacing--60) var(--wp--custom--layout--edge) var(--wp--preset--spacing--70);
}

.ds-editorial-content > h2 {
	margin-block-start: var(--wp--preset--spacing--60);
	color: var(--wp--preset--color--green-bright);
	font-size: var(--wp--preset--font-size--card);
}

.ds-editorial-content blockquote:not(.ds-editorial-quote, .is-style-editorial-quote) {
	margin-inline: 0;
	padding: var(--wp--preset--spacing--50);
	border: 0;
	background: var(--wp--preset--color--green-bright);
	color: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--card);
	line-height: 1;
}

.ds-archive-mast {
	min-height: 48svh;
	padding: var(--wp--preset--spacing--60) var(--wp--custom--layout--edge);
	display: flex;
	align-items: flex-end;
}

.ds-archive-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
}

.ds-archive-register .wp-block-post-template {
	margin: 0;
	padding: 0;
}

.ds-archive-entry {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	min-height: clamp(15rem, 17.36vw, 18.75rem);
	border-block-start: var(--wp--custom--rule--hairline) solid var(--wp--preset--color--line);
}

.ds-archive-entry__swatch:not(:has(img)) {
	background-color: var(--wp--preset--color--indigo);
	background-image: url("../images/field-transition-indigo-teal.webp");
	background-position: center;
	background-size: cover;
}

.ds-archive-register .wp-block-post:nth-child(2n) .ds-archive-entry__swatch:not(:has(img)) {
	background-color: var(--wp--preset--color--green);
	background-image: url("../images/field-wave-teal.webp");
}

.ds-archive-register .wp-block-post:nth-child(4n + 3) .ds-archive-entry__swatch:not(:has(img)) {
	background-color: var(--wp--preset--color--black);
	background-image: url("../images/field-nebula-black.webp");
}

.ds-archive-register .wp-block-post:nth-child(4n) .ds-archive-entry__swatch:not(:has(img)) {
	background-color: var(--wp--preset--color--green-bright);
	background-image: url("../images/project-hero-mesh.webp");
}

.ds-archive-entry__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(1rem, 1.85vw, 2rem);
}

.ds-archive-entry__meta,
.ds-archive-entry__title,
.ds-archive-entry__excerpt {
	margin: 0;
}

.ds-archive-entry__title {
	max-width: 25ch;
	margin-block-start: var(--wp--preset--spacing--10);
	line-height: 0.96;
	font-family: var(--wp--preset--font-family--serif);
}

.ds-archive-entry__excerpt {
	max-width: 50rem;
	margin-block-start: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--muted);
}

.ds-linkodromo-shell {
	padding: var(--wp--preset--spacing--60) var(--wp--custom--layout--edge) var(--wp--preset--spacing--70);
}
