/* ==========================================================================
   Jonatan Martinez 2026 — site styles
   Clean light base with technical accents (dark bands, grid, mono labels).
   ========================================================================== */

:root {
	--jm-bg: #f6f7f6;
	--jm-surface: #ffffff;
	--jm-line: #e2e6e8;
	--jm-line-strong: #d5dbdf;
	--jm-ink: #0f1417;
	--jm-ink-2: #2b343b;
	--jm-text: #3d4750;
	--jm-muted: #5b6670;
	--jm-muted-2: #4a5560;
	--jm-chip: #f1f3f4;

	--jm-night: #0b1115;
	--jm-night-2: #121a20;
	--jm-night-line: #24313a;
	--jm-night-line-2: #33424c;
	--jm-on-night: #e8eef1;
	--jm-on-night-2: #c9d3da;
	--jm-on-night-muted: #9aa8b2;
	--jm-on-night-faint: #7d8a94;

	--jm-accent: #0b6e69;
	--jm-accent-hover: #08524e;
	--jm-accent-night: #3dd6c8;
	--jm-ok: #4ade80;

	--jm-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--jm-display: "Space Grotesk", "Inter", system-ui, sans-serif;
	--jm-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--jm-radius: 12px;
	--jm-radius-sm: 8px;
	--jm-container: 1200px;
	--jm-gutter: 40px;
}

/* ---------- Base (new layout pages) ---------- */

body.jm-new {
	margin: 0;
	padding: 0;
	background: var(--jm-bg);
	color: var(--jm-ink);
	font-family: var(--jm-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

.jm-new img {
	max-width: 100%;
	height: auto;
}

.jm-new a {
	color: inherit;
	text-decoration: none;
}

.jm-new :focus-visible {
	outline: 2px solid var(--jm-accent-night);
	outline-offset: 3px;
	border-radius: 4px;
}

.jm-new [hidden] {
	display: none !important;
}

.jm-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.jm-container {
	width: 100%;
	max-width: calc(var(--jm-container) + 2 * var(--jm-gutter));
	margin: 0 auto;
	padding-left: var(--jm-gutter);
	padding-right: var(--jm-gutter);
}

.jm-grid-bg {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 48px 48px;
}

.jm-dark {
	background-color: var(--jm-night);
	color: var(--jm-on-night);
}

.jm-stack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.jm-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 64px;
	align-items: center;
}

.jm-grid {
	display: grid;
	gap: 24px;
}

.jm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* ---------- Type ---------- */

.jm-h1,
.jm-h2,
.jm-h3 {
	margin: 0;
	font-family: var(--jm-display);
	font-weight: 600;
	color: inherit;
	text-wrap: balance;
}

.jm-h1 {
	font-size: clamp(36px, 5vw, 60px);
	line-height: 1.04;
	letter-spacing: -0.025em;
	color: #fff;
}

.jm-h1--project {
	font-size: clamp(38px, 5.5vw, 64px);
	line-height: 1.02;
	letter-spacing: -0.03em;
}

.jm-h2 {
	font-size: clamp(30px, 3.4vw, 40px);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.jm-h2--xl {
	font-size: clamp(36px, 4.4vw, 52px);
	line-height: 1.05;
	letter-spacing: -0.025em;
	color: #fff;
	max-width: 760px;
}

.jm-h3 {
	font-size: 20px;
	line-height: 1.25;
}

.jm-lead {
	margin: 0;
	max-width: 620px;
	font-size: 18px;
	line-height: 1.6;
	color: var(--jm-on-night-muted);
}

.jm-intro {
	margin: 0;
	max-width: 680px;
	font-size: 17px;
	line-height: 1.65;
	color: var(--jm-muted);
}

.jm-eyebrow,
.jm-label {
	margin: 0;
	font-family: var(--jm-mono);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.jm-eyebrow { color: var(--jm-accent-night); }
.jm-eyebrow--accent { color: var(--jm-accent); }
.jm-dark .jm-eyebrow--accent { color: var(--jm-accent-night); }

.jm-label {
	font-size: 12px;
	color: var(--jm-muted-2);
}

.jm-dark .jm-label { color: var(--jm-on-night-faint); }

/* ---------- Buttons and links ---------- */

.jm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: var(--jm-radius-sm);
	font-family: var(--jm-sans);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	transition: filter 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.jm-btn:hover { filter: brightness(1.08); }

.jm-btn--sm {
	min-height: 44px;
	padding: 0 18px;
	font-size: 15px;
}

.jm-btn--primary {
	background: var(--jm-accent-night);
	color: var(--jm-night) !important;
}

.jm-btn--light {
	background: var(--jm-on-night);
	color: var(--jm-night) !important;
}

.jm-btn--ghost {
	border-color: var(--jm-night-line-2);
	color: var(--jm-on-night) !important;
	font-weight: 500;
}

.jm-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.06);
	filter: none;
}

.jm-btn--outline {
	border-color: var(--jm-accent-night);
	color: var(--jm-accent-night) !important;
	font-weight: 500;
}

.jm-btn--outline:hover {
	background: rgba(61, 214, 200, 0.08);
	filter: none;
}

.jm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 4px;
}

.jm-textlink {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-weight: 500;
	color: var(--jm-accent) !important;
}

.jm-textlink:hover {
	text-decoration: underline !important;
	text-underline-offset: 4px;
}

.jm-icon {
	flex: none;
}

/* ---------- Skip link ---------- */

.jm-skip {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 1000;
	padding: 10px 16px;
	border-radius: var(--jm-radius-sm);
	background: var(--jm-accent-night);
	color: var(--jm-night) !important;
	font: 600 15px/1.2 var(--jm-sans);
	text-decoration: none !important;
}

.jm-skip:focus { top: 16px; }

#jm-main:focus { outline: none; }

/* ---------- Header (all pages; hardened against the parent's Bootstrap) ---------- */

.jm-site-header {
	position: relative;
	z-index: 50;
	background-color: var(--jm-night);
	color: var(--jm-on-night);
	font-family: var(--jm-sans);
	line-height: 1.4;
}

.jm-site-header *,
.jm-site-footer * {
	box-sizing: border-box;
}

.jm-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px 24px;
	padding-top: 22px;
	padding-bottom: 22px;
}

.jm-brand {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 12px;
	text-decoration: none !important;
}

.jm-brand__name {
	font-family: var(--jm-display);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: #fff;
}

.jm-brand__tag {
	font-family: var(--jm-mono);
	font-size: 12px;
	color: var(--jm-on-night-muted);
}

.jm-nav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 28px;
}

.jm-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jm-nav__list li {
	margin: 0;
	padding: 0;
	line-height: 1.4;
}

.jm-nav__list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 15px;
	color: #b4c0c8;
	text-decoration: none !important;
	transition: color 0.15s ease;
}

.jm-nav__list a:hover,
.jm-nav__list a[aria-current="page"],
.jm-nav__list .current-menu-item > a {
	color: #fff;
}

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

.jm-site-footer {
	background: var(--jm-night);
	color: var(--jm-on-night-faint);
	font-family: var(--jm-sans);
	font-size: 14px;
	line-height: 1.4;
}

.jm-site-footer__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 24px;
	padding-top: 28px;
	padding-bottom: 36px;
	border-top: 1px solid #1c262d;
}

.jm-site-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jm-site-footer__links li { margin: 0; }

.jm-site-footer__links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--jm-on-night-faint);
	text-decoration: none !important;
}

.jm-site-footer__links a:hover { color: #fff; }

/* ---------- Hero ---------- */

.jm-hero__inner {
	padding-top: 56px;
	padding-bottom: 104px;
}

.jm-hero__copy {
	display: flex;
	flex-direction: column;
	gap: 26px;
	min-width: 0;
}

.jm-hero__figure {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	min-width: 0;
}

.jm-frame {
	overflow: hidden;
	border: 1px solid var(--jm-night-line);
	border-radius: 14px;
	background: var(--jm-night);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.jm-frame img {
	display: block;
	width: 100%;
	height: auto;
}

.jm-caption {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 16px;
	font-family: var(--jm-mono);
	font-size: 12px;
	color: var(--jm-on-night-faint);
}

/* ---------- Proof strip ---------- */

.jm-proof {
	background: var(--jm-surface);
	border-bottom: 1px solid var(--jm-line);
}

.jm-proof .jm-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-top: 36px;
	padding-bottom: 32px;
}

.jm-logos {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 24px;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jm-logos li {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 56px;
}

.jm-logos img {
	max-height: 56px;
	width: auto;
	object-fit: contain;
}

.jm-facts-line {
	margin: 0;
	padding-top: 16px;
	border-top: 1px solid var(--jm-line);
	font-family: var(--jm-mono);
	font-size: 13px;
	line-height: 1.6;
	color: var(--jm-muted-2);
}

/* ---------- Sections ---------- */

.jm-section {
	padding: 104px 0;
}

.jm-section--tight-top { padding-top: 40px; }

.jm-section--surface {
	background: var(--jm-surface);
	border-top: 1px solid var(--jm-line);
}

.jm-section--ruled { border-bottom: 1px solid var(--jm-line); }

.jm-section--surface + .jm-section--surface { padding-top: 40px; border-top: 0; }

.jm-section__head {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 720px;
	margin-bottom: 40px;
}

/* What I do tiles */

.jm-tile {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px;
	background: var(--jm-surface);
	border: 1px solid var(--jm-line);
	border-radius: var(--jm-radius);
}

.jm-tile__icon { color: var(--jm-accent); line-height: 0; }

.jm-tile__body {
	flex-grow: 1;
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--jm-muted);
}

.jm-tile__see {
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid var(--jm-line);
	font-family: var(--jm-mono);
	font-size: 12px;
	line-height: 1.6;
	color: var(--jm-accent);
}

.jm-tile__see a {
	color: var(--jm-accent);
	text-decoration: underline;
	text-decoration-color: rgba(11, 110, 105, 0.3);
	text-underline-offset: 3px;
}

.jm-tile__see a:hover { text-decoration-color: currentColor; }

/* ---------- Filters and cards ---------- */

.jm-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
}

.jm-chip {
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--jm-line-strong);
	border-radius: 999px;
	background: var(--jm-surface);
	color: var(--jm-muted-2);
	font-family: var(--jm-mono);
	font-size: 13px;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.jm-chip:hover { border-color: var(--jm-ink); color: var(--jm-ink); }

.jm-chip[aria-pressed="true"] {
	background: var(--jm-ink);
	border-color: var(--jm-ink);
	color: #fff;
}

.jm-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--jm-surface);
	border: 1px solid var(--jm-line);
	border-radius: var(--jm-radius);
	color: var(--jm-ink) !important;
	text-decoration: none !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.jm-card:hover {
	transform: translateY(-3px);
	border-color: #c9d1d5;
	box-shadow: 0 12px 32px rgba(11, 17, 21, 0.1);
}

.jm-card__media {
	overflow: hidden;
	aspect-ratio: 470 / 330;
	background: #e9edef;
}

.jm-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.jm-card:hover .jm-card__img { transform: scale(1.03); }

.jm-card__media--text {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 24px;
	background-color: var(--jm-night);
}

.jm-card__kicker {
	font-family: var(--jm-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	color: var(--jm-accent-night);
}

.jm-card__bigtitle {
	font-family: var(--jm-display);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #fff;
}

.jm-card__pending {
	font-family: var(--jm-mono);
	font-size: 11px;
	color: var(--jm-on-night-faint);
}

.jm-card__body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	gap: 10px;
	padding: 22px 22px 24px;
}

.jm-card__title {
	margin: 0;
	font-family: var(--jm-display);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
}

.jm-card__result {
	flex-grow: 1;
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: var(--jm-ink-2);
}

.jm-card__tech {
	margin: 0;
	padding-top: 6px;
	font-family: var(--jm-mono);
	font-size: 11px;
	line-height: 1.6;
	letter-spacing: 0.02em;
	color: var(--jm-muted);
}

/* More work */

.jm-more {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 56px;
}

.jm-more__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--jm-line);
}

.jm-more__list li {
	margin: 0;
	border-top: 1px solid var(--jm-line);
}

.jm-more__row {
	display: grid;
	grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
	gap: 24px;
	padding: 14px 0;
	font-size: 16px;
	color: var(--jm-ink);
}

a.jm-more__row:hover .jm-more__name {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.jm-more__name { font-weight: 600; }
.jm-more__desc { color: var(--jm-muted); }

/* How I work */

.jm-step {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 20px;
	border-top: 2px solid var(--jm-ink);
}

.jm-step p {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
}

.jm-statement {
	margin: 0;
	max-width: 820px;
	padding-top: 20px;
	border-top: 2px solid var(--jm-ink);
	font-size: clamp(18px, 1.8vw, 21px);
	line-height: 1.65;
	color: var(--jm-ink-2);
}

/* Research */

.jm-section--ruled .jm-split { align-items: start; }

.jm-deflist {
	display: flex;
	flex-direction: column;
	margin: 0;
	border-bottom: 1px solid var(--jm-line);
}

.jm-deflist > div {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	gap: 24px;
	padding: 24px 0;
	border-top: 1px solid var(--jm-line);
}

.jm-deflist dt {
	padding-top: 4px;
	font-family: var(--jm-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--jm-muted);
}

.jm-deflist dd {
	margin: 0;
	font-size: 17px;
	line-height: 1.5;
}

/* Contact */

.jm-contact .jm-container {
	padding-top: 112px;
	padding-bottom: 96px;
	gap: 24px;
}

.jm-contact .jm-lead { max-width: 680px; }

.jm-social {
	display: flex;
	flex-wrap: wrap;
	gap: 0 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jm-social a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 15px;
	color: var(--jm-on-night-muted);
}

.jm-social a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* ---------- Work page head ---------- */

.jm-pagehead .jm-container {
	padding-top: 56px;
	padding-bottom: 72px;
}

/* ---------- Buttons on light backgrounds ---------- */

.jm-btn--accent {
	background: var(--jm-accent);
	color: #fff !important;
}

.jm-btn--line {
	border-color: var(--jm-line-strong);
	background: var(--jm-surface);
	color: var(--jm-ink) !important;
	font-weight: 500;
}

.jm-btn--line:hover {
	border-color: var(--jm-ink);
	filter: none;
}

/* ---------- About page ---------- */

.jm-about {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 64px;
	align-items: start;
	padding-top: 88px;
	padding-bottom: 112px;
}

.jm-about__main {
	display: flex;
	flex-direction: column;
	gap: 40px;
	min-width: 0;
	max-width: 720px;
}

.jm-prose--lead > p {
	font-size: 18px;
	line-height: 1.7;
}

.jm-prose p:empty { display: none; }

.jm-prose--lead > p:first-of-type:not(:empty),
.jm-prose--lead > p:empty:first-of-type + p {
	font-family: var(--jm-display);
	font-size: clamp(22px, 2.2vw, 26px);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.01em;
	color: var(--jm-ink);
}

.jm-about__aside {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.jm-deflist--stacked {
	border-bottom: 0;
}

.jm-deflist--stacked > div {
	grid-template-columns: minmax(0, 1fr);
	gap: 6px;
	padding: 18px 0;
}

.jm-deflist--stacked > div:first-child {
	padding-top: 0;
	border-top: 0;
}

.jm-deflist--stacked > div:last-child { padding-bottom: 0; }

.jm-deflist--stacked dd { font-size: 16px; }

.jm-linklist {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jm-linklist a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	color: var(--jm-accent);
	text-decoration: underline;
	text-decoration-color: rgba(11, 110, 105, 0.3);
	text-underline-offset: 3px;
	word-break: break-word;
}

.jm-linklist a:hover { text-decoration-color: currentColor; }

.jm-panel--link {
	gap: 8px;
	color: var(--jm-ink) !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jm-panel--link:hover {
	border-color: #c9d1d5;
	box-shadow: 0 12px 32px rgba(11, 17, 21, 0.08);
}

.jm-panel__title {
	font-family: var(--jm-display);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
}

.jm-panel__title .jm-icon {
	vertical-align: -3px;
	margin-left: 4px;
	color: var(--jm-accent);
}

/* ---------- Project page ---------- */

.jm-project__head .jm-container {
	padding-top: 48px;
	padding-bottom: 72px;
	gap: 22px;
}

.jm-project__head.has-image .jm-container { padding-bottom: 200px; }

.jm-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-family: var(--jm-mono);
	font-size: 13px;
	color: var(--jm-on-night-faint);
}

.jm-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.jm-crumbs [aria-current] { color: var(--jm-on-night-2); }

.jm-project__head .jm-lead { font-size: 20px; max-width: 760px; }

.jm-facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	margin: 8px 0 0;
	padding-top: 24px;
	border-top: 1px solid #1c262d;
}

.jm-facts > div {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.jm-facts dt {
	font-family: var(--jm-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--jm-on-night-faint);
}

.jm-facts dd {
	margin: 0;
	font-size: 15px;
	color: var(--jm-on-night);
}

.jm-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}

.jm-tag {
	padding: 4px 9px;
	border: 1px solid var(--jm-line);
	border-radius: 6px;
	background: var(--jm-chip);
	font-family: var(--jm-mono);
	font-size: 12px;
	line-height: 1.5;
	color: var(--jm-ink-2);
}

.jm-tag--dark {
	border-color: var(--jm-night-line-2);
	background: transparent;
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--jm-on-night-2);
}

.jm-project__hero { margin-top: -168px; }

.jm-frame--lg {
	border-radius: 16px;
	box-shadow: 0 30px 80px rgba(11, 17, 21, 0.35);
}

.jm-project__body {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 64px;
	align-items: start;
	padding-top: 88px;
	padding-bottom: 96px;
}

.jm-project__main {
	display: flex;
	flex-direction: column;
	gap: 56px;
	min-width: 0;
}

.jm-project__aside {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.jm-panel {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	background: var(--jm-surface);
	border: 1px solid var(--jm-line);
	border-radius: var(--jm-radius);
}

.jm-panel--dark {
	background-color: var(--jm-night);
	border-color: var(--jm-night);
	color: var(--jm-on-night);
}

.jm-panel--dark .jm-h3 { font-size: 22px; color: #fff; }

.jm-panel--dark p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--jm-on-night-muted);
}

.jm-panel .jm-btn { align-self: flex-start; }

.jm-block {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.jm-metric {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px;
	background: var(--jm-surface);
	border: 1px solid var(--jm-line);
	border-radius: var(--jm-radius);
}

.jm-metric--pending {
	background: transparent;
	border-style: dashed;
	border-color: #b8c2c8;
}

.jm-metric__value {
	font-family: var(--jm-display);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.1;
}

.jm-metric--pending .jm-metric__value { color: var(--jm-muted); }

.jm-metric__label {
	font-family: var(--jm-mono);
	font-size: 12px;
	color: var(--jm-muted-2);
}

.jm-note {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px 26px;
	background: #eef1f2;
	border-radius: var(--jm-radius);
}

.jm-note p {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: var(--jm-text);
}

.jm-project__next { padding-bottom: 104px; }

.jm-next {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px 28px;
	padding: 18px;
	background: var(--jm-surface);
	border: 1px solid var(--jm-line);
	border-radius: 14px;
	color: var(--jm-ink) !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jm-next:hover {
	border-color: #c9d1d5;
	box-shadow: 0 12px 32px rgba(11, 17, 21, 0.08);
}

.jm-next img {
	width: 200px;
	aspect-ratio: 470 / 330;
	object-fit: cover;
	border-radius: var(--jm-radius-sm);
}

.jm-next__text {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 260px;
	min-width: 0;
}

.jm-next__title {
	font-family: var(--jm-display);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
}

.jm-next .jm-icon {
	margin-right: 12px;
	color: var(--jm-accent);
}

/* Project content written in the editor */

.jm-prose {
	color: var(--jm-text);
	font-size: 17px;
	line-height: 1.7;
}

.jm-prose > * { margin: 0 0 20px; }
.jm-prose > *:last-child { margin-bottom: 0; }

.jm-prose h2,
.jm-prose h3,
.jm-prose h4 {
	margin: 48px 0 16px;
	font-family: var(--jm-display);
	font-weight: 600;
	color: var(--jm-ink);
	letter-spacing: -0.02em;
}

.jm-prose > h2:first-child,
.jm-prose > h3:first-child { margin-top: 0; }

.jm-prose h2 { font-size: 30px; line-height: 1.15; }
.jm-prose h3 { font-size: 22px; line-height: 1.25; }
.jm-prose h4 { font-size: 18px; line-height: 1.3; }

.jm-prose a {
	color: var(--jm-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.jm-prose a:hover { color: var(--jm-accent-hover); }

.jm-prose ul,
.jm-prose ol { padding-left: 1.3em; }

.jm-prose li { margin-bottom: 8px; }
.jm-prose li::marker { color: var(--jm-accent); }

.jm-prose img,
.jm-prose figure img {
	display: block;
	border-radius: var(--jm-radius);
}

.jm-prose figure { margin-left: 0; margin-right: 0; }

.jm-prose figcaption,
.jm-prose .wp-caption-text,
.jm-prose .wp-element-caption {
	margin-top: 10px;
	font-family: var(--jm-mono);
	font-size: 12px;
	line-height: 1.6;
	color: var(--jm-muted);
}

.jm-prose iframe,
.jm-prose video,
.jm-prose embed {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: var(--jm-radius);
	background: var(--jm-night);
}

.jm-video {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: var(--jm-radius);
	background-color: var(--jm-night);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 48px 48px;
}

.jm-video iframe { width: 100%; height: 100%; border-radius: 0; }

.jm-prose .jm-video__link {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	color: var(--jm-on-night);
	text-decoration: none;
}

.jm-video__play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: var(--jm-accent-night);
	color: var(--jm-night);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
	transition: transform 0.15s ease;
}

.jm-video__link:hover .jm-video__play { transform: scale(1.06); }

.jm-video__label {
	max-width: 80%;
	font-size: 15px;
	font-weight: 500;
	text-align: center;
}

.jm-video__note {
	position: absolute;
	left: 20px;
	bottom: 16px;
	font-family: var(--jm-mono);
	font-size: 12px;
	color: var(--jm-on-night-2);
}

.jm-prose blockquote {
	margin-left: 0;
	padding-left: 20px;
	border-left: 2px solid var(--jm-line-strong);
	color: var(--jm-muted);
}

.jm-prose code {
	font-family: var(--jm-mono);
	font-size: 0.9em;
	background: var(--jm-chip);
	padding: 2px 5px;
	border-radius: 4px;
}

.jm-prose .wp-caption { max-width: 100%; }
.jm-prose .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.jm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	:root { --jm-gutter: 28px; }
	.jm-split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.jm-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jm-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.jm-project__body,
	.jm-about { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.jm-about { padding-top: 56px; padding-bottom: 80px; }
	.jm-section { padding: 80px 0; }
	.jm-hero__inner { padding-top: 32px; padding-bottom: 80px; }
}

@media (max-width: 600px) {
	:root { --jm-gutter: 20px; }
	.jm-grid--3,
	.jm-grid--4 { grid-template-columns: minmax(0, 1fr); }
	.jm-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
	.jm-more__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.jm-deflist > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	.jm-facts { grid-template-columns: minmax(0, 1fr); }
	.jm-site-header__inner { padding-top: 16px; padding-bottom: 12px; }
	.jm-nav { width: 100%; justify-content: space-between; }
	.jm-nav__list { gap: 0 20px; }
	.jm-project__head.has-image .jm-container { padding-bottom: 120px; }
	.jm-project__hero { margin-top: -96px; }
	.jm-next img { width: 100%; }
	.jm-btn { white-space: normal; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
	.jm-card,
	.jm-card__img,
	.jm-btn,
	.jm-next { transition: none; }
	.jm-card:hover { transform: none; }
	.jm-card:hover .jm-card__img { transform: none; }
}
