/*
 * Made by Calie 4
 * Colours, fonts and sizes come from Theme options as CSS variables.
 */

:root {
	--bg: var(--wp--preset--color--base);
	--ink: var(--wp--preset--color--contrast);
	--tx: var(--wp--preset--color--body);
	--mu: var(--wp--preset--color--muted);
	--ln: var(--wp--preset--color--line);
	--pn: var(--wp--preset--color--panel);
	--ac: var(--wp--preset--color--accent);
	--onac: var(--wp--preset--color--on-accent);
	--hl: var(--wp--preset--color--highlight, var(--wp--preset--color--accent));
	--live: var(--wp--preset--color--live, #4FB37A);
	--serif: var(--mbc4-font-heading, 'Crimson Pro', Georgia, serif);
	--sans: var(--mbc4-font-body, Outfit, system-ui, sans-serif);
	--gut: clamp(20px, 4.4vw, 56px);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--dur: calc(1000ms * var(--mbc4-speed, 1));
	--outline: var(--mbc4-outline, color-mix(in srgb, var(--ink) 14%, transparent));
	--sec: var(--mbc4-section, clamp(72px, 9vw, 128px));
	--indent: var(--mbc4-indent, max(0px, min(34%, calc((100vw - 640px) * .6))));
	--r-img: var(--mbc4-r-img, 10px);
	--r-panel: var(--mbc4-r-panel, 16px);
	--r-btn: var(--mbc4-r-btn, 999px);
}

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

html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: var(--mbc4-base, 16px);
	line-height: 1.55;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.wp-site-blocks > * { margin-block: 0; }
.wp-site-blocks { padding: 0; }
.mbc4-main, .mbc4-band-part { overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: var(--mbc4-heading-weight, 500); letter-spacing: -.02em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--ac); color: var(--onac); }
.mbc4-top { position: absolute; top: 0; }

/* Links: underline drawn on hover, or always. */
.mbc4 a:not(.wp-element-button):not(.mbc4-shot):not(.mbc4-next):not(.custom-logo-link) {
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size .3s ease;
}
.mbc4 a:not(.wp-element-button):not(.mbc4-shot):not(.mbc4-next):not(.custom-logo-link):hover { background-size: 100% 1px; }
.mbc4-ul-always a:not(.wp-element-button):not(.mbc4-shot):not(.mbc4-next):not(.custom-logo-link) { background-size: 100% 1px; }
.mbc4-prose a, .mbc4-case-content p a, .mbc-privacy p a { background-size: 100% 1px !important; }

/* Keyboard focus. */
.mbc4 a:focus-visible, .mbc4 button:focus-visible, .mbc4 summary:focus-visible, .mbc4 input:focus-visible, .mbc4 select:focus-visible, .mbc4 textarea:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 4px;
	border-radius: 6px;
}
.mbc4 .wp-element-button:focus-visible { outline-offset: 3px; border-radius: var(--r-btn); }
.mbc4 .mbc4-shot:focus-visible { outline-offset: 6px; border-radius: var(--r-img); }
.skip-link.screen-reader-text:focus {
	background: var(--ac) !important;
	color: var(--onac) !important;
	border-radius: 8px;
	font-size: 15px !important;
	font-weight: 500 !important;
	padding: 12px 18px !important;
	text-decoration: none;
	box-shadow: none;
	top: 16px;
	left: 16px;
}

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

.mbc4-wrap {
	max-width: var(--mbc4-wrap, 1280px);
	margin-inline: auto !important;
	padding-inline: var(--gut);
	box-sizing: border-box;
	width: 100%;
}
.mbc4-indent {
	margin-left: var(--indent) !important;
	max-width: 580px;
	box-sizing: border-box;
}
.mbc4-sec-gap { padding-top: var(--sec); }
.mbc4-sec-gap-s { padding-top: clamp(48px, 6vw, 80px); }

/* Small labels */
.mbc4-kicker, .mbc4-eyebrow, .is-style-mbc4-label, .mbc4 .mbc4-kv dt, .mbc4-facts dt, .mbc-facts dt, .mbc4-xp-when, .mbc4-quote-label, .mbc4-next-label {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--mu);
	line-height: 1.4;
}
.mbc4-kicker { font-size: 14px; color: var(--hl); }
.mbc4-eyebrow { color: var(--hl); }
.mbc4-no-caps :is(.mbc4-kicker, .mbc4-eyebrow, .is-style-mbc4-label, .mbc4-kv dt, .mbc4-facts dt, .mbc-facts dt, .mbc4-xp-when, .mbc4-quote-label, .mbc4-next-label) {
	text-transform: none;
	letter-spacing: 0;
	font-size: 14px;
}

.mbc4-lead { font-size: 21px; line-height: 1.55; color: var(--ink); margin: 0; }
.mbc4-intro { font-size: 19px; line-height: 1.55; color: var(--mu); margin: 0; }

/* ---------- Buttons ---------- */

.mbc4 .wp-block-buttons { gap: 12px; }
.mbc4 .wp-element-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 24px;
	box-sizing: border-box;
	border-radius: var(--r-btn);
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	transition: transform .25s ease, opacity .25s ease, background-color .25s ease, color .25s ease;
}
.mbc4 .wp-element-button:hover { transform: translateY(-2px); opacity: .88; }
.mbc4 .wp-block-button.is-style-mbc4-outline .wp-element-button,
.mbc4-btn-outlined .wp-block-button:not(.is-style-mbc4-text) .wp-element-button {
	background: transparent;
	color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--ink);
}
.mbc4 .wp-block-button.is-style-mbc4-text .wp-element-button {
	background: none;
	color: var(--ink);
	padding: 0;
	min-height: 44px;
	border-radius: 0;
}
.mbc4 .wp-block-button.is-style-mbc4-text .wp-element-button:hover { transform: none; opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* Arrow on links. */
.mbc4-arr { display: inline-flex; transition: transform .3s ease; }
a:hover .mbc4-arr { transform: translateX(6px); }
.mbc4-link, .mbc4-arrow-link a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-weight: 500;
	color: var(--ink);
}
.mbc4-arrow-link { margin: 0; font-size: 16px; }
.mbc4-arrow-link a::after {
	content: "";
	width: 16px;
	height: 16px;
	flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .3s ease;
}
.mbc4-arrow-link a:hover::after { transform: translateX(6px); }

/* ---------- Header ---------- */

.mbc4-head { position: relative; z-index: 20; background: var(--bg); transition: transform .35s ease; }
.mbc4-head-sticky header.wp-block-template-part,
.mbc4-head-hide header.wp-block-template-part { position: sticky; top: 0; z-index: 20; }
.admin-bar.mbc4-head-sticky header.wp-block-template-part,
.admin-bar.mbc4-head-hide header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
.mbc4-head.is-scrolled { box-shadow: 0 1px 0 var(--ln); }
.mbc4-head-hide header.is-hidden .mbc4-head { transform: translateY(-110%); }
.mbc4-head-in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 32px;
	padding-top: 24px;
	padding-bottom: 24px;
}
.mbc4-head-in > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.mbc4-head-in > .mbc4-nav-wrap { margin-left: auto !important; }
.mbc4-logo { line-height: 0; }
.mbc4-logo img { height: var(--mbc4-logo-h, 32px) !important; width: auto !important; max-width: 240px; object-fit: contain; }
.mbc4-logo-dark { display: none !important; }
.mbc4-dark .mbc4-logo-dark { display: block !important; }
.mbc4-dark .mbc4-logo-light { display: none !important; }
.mbc4-brand { margin: 0; font-size: 17px; font-weight: 500; }
.mbc4-brand a { min-height: 44px; display: inline-flex; align-items: center; }
.mbc4-hide-title .mbc4-brand { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mbc4-nav-wrap { margin-left: auto; }
.mbc4-nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px 32px; }
.mbc4-nav li { margin: 0; }
.mbc4-nav a { font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.mbc4-nav a[aria-current="page"] { background-size: 100% 1px !important; }
.mbc4-head-btns .wp-element-button { min-height: 44px; padding: 0 18px; font-size: 15px; }
.mbc4-head-btns .is-style-mbc4-outline .wp-element-button { box-shadow: inset 0 0 0 1px var(--ln) !important; }
.mbc4-head-btns:empty, .mbc4-head-btns:not(:has(.wp-block-button)) { display: none; }
@media (max-width: 640px) {
	.mbc4-head-in > .mbc4-nav-wrap { margin-left: 0 !important; }
	.mbc4-head-in { padding-top: 16px; padding-bottom: 12px; gap: 4px 20px; }
	.mbc4-logo img { height: var(--mbc4-logo-h-m, 28px) !important; }
	.mbc4-nav-wrap { order: 3; flex-basis: 100%; margin-left: 0; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--ln); }
	.mbc4-nav { gap: 4px 28px; }
	.mbc4-head-btns { margin-left: auto !important; }
}

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

.mbc4-hero { padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(56px, 7vw, 96px); }
.mbc4-hero .mbc4-kicker { margin: 0 0 clamp(16px, 2vw, 24px); }
.mbc4-display { margin: 0; font-size: var(--mbc4-hero, clamp(46px, 8.4vw, 116px)); line-height: .98; }
.mbc4-hero .mbc4-indent { margin-top: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.mbc4-hero .mbc4-indent > * { margin: 0; }
.mbc4-status, .mbc-facts.mbc4-facts-status dd {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 500;
	margin: 0;
}
.mbc4-status::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--live);
	flex: none;
	animation: mbc4-pulse 2s ease-out infinite;
}
@keyframes mbc4-pulse {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 55%, transparent); }
	70%, 100% { box-shadow: 0 0 0 10px transparent; }
}
.mbc4-jump { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.mbc4-jump a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; }

/* ---------- Section heads ---------- */

.mbc4-sechead {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px 24px;
	padding-bottom: 20px;
	margin-bottom: clamp(40px, 5vw, 64px) !important;
	border-bottom: 1px solid var(--ln);
}
.mbc4-sechead > * { margin: 0; }
.mbc4-sechead h2, .mbc4-split-l h2 { font-size: clamp(36px, 4.2vw, 54px); line-height: 1.05; margin: 0; }
.mbc4-sechead-stack { padding-bottom: clamp(40px, 5vw, 72px); }
.mbc4-h2-big { font-size: clamp(40px, 5.4vw, 72px) !important; line-height: 1 !important; margin: 0; }
.mbc4-sechead-stack .mbc4-indent { margin-top: clamp(20px, 3vw, 32px); max-width: 560px; }

/* ---------- Project rows (home) ---------- */

.mbc4-rows { display: flex; flex-direction: column; gap: clamp(64px, 8vw, 112px); }
.mbc4-row { display: flex; flex-wrap: wrap; gap: 32px clamp(32px, 5vw, 72px); align-items: center; }
.mbc4-row.is-flipped { flex-direction: row-reverse; }
.mbc4-row > .mbc4-shot { flex: 1.45 1 420px; min-width: 0; }
.mbc4-row-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.mbc4-row-text > * { margin: 0; }
.mbc4-row-title { font-size: clamp(40px, 4.4vw, 56px); line-height: 1.02; margin: 0; }
.mbc4-row-line, .mbc4-card-line { font-size: 18px; line-height: 1.55; color: var(--mu); margin: 0; }
.mbc4-kv { margin: 6px 0 0 !important; width: 100%; border-bottom: 1px solid var(--ln); }
.mbc4-kv > div { display: flex; gap: 20px; padding: 12px 0; border-top: 1px solid var(--ln); }
.mbc4-kv dt { width: 64px; flex: none; padding-top: 3px; }
.mbc4-no-caps .mbc4-kv dt { width: 72px; }
.mbc4-kv dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); }

/* Screenshots */
.mbc4-shot { display: block; }
.mbc4-frame {
	display: block;
	overflow: hidden;
	border-radius: var(--r-img);
	box-shadow: 0 0 0 1px var(--outline);
	background: var(--pn);
}
.mbc4-no-outline .mbc4-frame { box-shadow: none; }
.mbc4-frame img, .mbc4-frame .mbc-stand {
	display: block;
	width: 100%;
	aspect-ratio: var(--mbc4-ratio, 16 / 10);
	height: auto;
	object-fit: cover;
	object-position: top;
	transition: transform .7s var(--ease);
}
.mbc4-shot:hover .mbc4-frame img { transform: scale(1.035); }
.mbc4-no-zoom .mbc4-shot:hover .mbc4-frame img { transform: none; }
.mbc-stand { position: relative; container-type: inline-size; background: var(--pn); }
.mbc-stand .s-chip { position: absolute; right: 12px; bottom: 12px; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--mu); }
.mbc-stand :is(.s-nav, .s-hero, .s-img, .s-cards) { display: none; }

/* ---------- Work grid ---------- */

.mbc4-grid { display: grid; grid-template-columns: 1fr; gap: clamp(56px, 7vw, 96px) clamp(32px, 4vw, 56px); }
@media (min-width: 641px) { .mbc4-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .mbc4-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mbc4-card { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.mbc4-card-text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.mbc4-card-text > * { margin: 0; }
.mbc4-card-head { display: flex; flex-direction: column; gap: 10px; }
.mbc4-card-head > * { margin: 0; }
.mbc4-card-title { font-size: clamp(32px, 3.2vw, 42px); line-height: 1.05; margin: 0; }
.cols-3 .mbc4-card-title { font-size: clamp(28px, 2.4vw, 34px); }

/* Cards side by side share row tracks, so titles, lines, role, result and links line up across a row. */
@supports (grid-template-rows: subgrid) {
	@media (min-width: 641px) {
		.mbc4-grid { row-gap: 0; }
		.mbc4-grid > .mbc4-card { display: grid; grid-template-rows: subgrid; grid-row: span 6; gap: 0; padding-bottom: clamp(56px, 7vw, 96px); }
		.mbc4-grid > .mbc4-card > :not(.mbc4-card-text) { grid-row: 1; margin-bottom: 24px; }
		.mbc4-grid .mbc4-card-text { grid-row: 2 / span 5; display: grid; grid-template-rows: subgrid; gap: 0; align-items: start; justify-items: start; }
		.mbc4-grid .mbc4-card-head { grid-row: 1; padding-bottom: 14px; }
		.mbc4-grid .mbc4-card-line { grid-row: 2; padding-bottom: 20px; }
		.mbc4-grid .mbc4-kv { grid-row: 3 / span 2; align-self: stretch; display: grid; grid-template-rows: subgrid; margin: 0 !important; }
		.mbc4-grid .mbc4-kv > div { align-self: stretch; }
		.mbc4-grid .mbc4-kv-role { grid-row: 1; }
		.mbc4-grid .mbc4-kv-result { grid-row: 2; }
		.mbc4-grid .mbc4-card-text > .mbc4-link { grid-row: 5; margin-top: 14px; }
	}
}

/* ---------- How I work ---------- */

.mbc4-how { padding-top: var(--sec); }
.mbc4-stages { display: grid; grid-template-columns: 1fr; gap: 48px 0; }
@media (min-width: 641px) { .mbc4-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mbc4-stages.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .mbc4-stages:not(.is-3) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mbc4-stage { display: flex; flex-direction: column; gap: 16px; padding-right: clamp(20px, 3vw, 40px); }
.mbc4-stage > * { margin: 0; }
.mbc4-mark { display: flex; align-items: center; margin-bottom: 8px !important; }
.mbc4-badge {
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px var(--ln);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ink);
	transition: background-color .3s ease, color .3s ease;
}
.mbc4-stage:hover .mbc4-badge { background: var(--ac); color: var(--onac); }
.mbc4-line {
	height: 1px;
	background: var(--mu);
	flex-grow: 1;
	transform-origin: left center;
	margin-right: calc(clamp(20px, 3vw, 40px) * -1);
}
.mbc4-stage-title { font-size: clamp(36px, 3.6vw, 46px) !important; line-height: 1.05 !important; }
.mbc4-stages.is-3 .mbc4-stage-title { font-size: clamp(30px, 3vw, 38px) !important; }
.mbc4-stage-desc { font-size: 17px; line-height: 1.55; color: var(--mu); }
.mbc4-stage-tools { margin-top: 6px !important; padding-top: 18px; border-top: 1px solid var(--ln); display: flex; flex-direction: column; gap: 12px; }
.mbc4-stage-tools > * { margin: 0; }
@media (max-width: 640px) {
	.mbc4-stage { position: relative; padding-left: 68px; padding-right: 0; }
	.mbc4-mark { position: absolute; left: 0; top: 0; }
	.mbc4-mark .mbc4-line { display: none; }
	.mbc4-stage::before { content: ""; position: absolute; left: 24px; top: 48px; bottom: -48px; width: 1px; background: var(--mu); }
	.mbc4-stage:last-child::before { display: none; }
}
.mbc4-standard {
	margin-top: clamp(56px, 7vw, 88px) !important;
	padding: clamp(24px, 3vw, 36px) clamp(24px, 3.5vw, 44px);
	background: var(--pn);
	border-radius: var(--r-panel);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 48px;
}
.mbc4-standard > * { margin: 0; }
.mbc4-standard > .is-style-mbc4-label { flex: 0 0 auto; color: var(--ink); }
.mbc4-standard .is-style-mbc4-ticks.mbc4-inline {
	flex: 1 1 560px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px 24px;
}
.mbc4-standard .is-style-mbc4-ticks.mbc4-inline li {
	position: relative;
	min-height: 32px;
	padding-left: 44px;
	display: flex;
	align-items: center;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--ink);
}
.mbc4-standard .is-style-mbc4-ticks.mbc4-inline li::before {
	position: absolute;
	left: 0;
	top: 50%;
	width: 32px;
	height: 32px;
	margin: -16px 0 0;
	border-radius: 50%;
	background: var(--ac);
	-webkit-mask: none;
	mask: none;
}
.mbc4-standard .is-style-mbc4-ticks.mbc4-inline li::after {
	content: "";
	position: absolute;
	left: 9px;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	background: var(--onac);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 1039px) {
	.mbc4-standard > .is-style-mbc4-label { flex-basis: 100%; }
	.mbc4-standard .is-style-mbc4-ticks.mbc4-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
	.mbc4-standard .is-style-mbc4-ticks.mbc4-inline { grid-template-columns: 1fr; }
}

/* Lists: chips and ticks */
.is-style-mbc4-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.is-style-mbc4-chips li { margin: 0; padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ln); font-size: 15px; line-height: 1.3; }
.is-style-mbc4-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.is-style-mbc4-ticks li { margin: 0; display: flex; align-items: flex-start; gap: 12px; font-size: 17px; line-height: 1.5; color: var(--tx); }
.is-style-mbc4-ticks li::before, .mbc-cs-card li::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 4px;
	background: var(--mu);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.is-style-mbc4-ticks.mbc4-inline { flex-direction: row; flex-wrap: wrap; gap: 12px 36px; }
.is-style-mbc4-ticks.mbc4-inline li { align-items: center; color: var(--ink); }
.is-style-mbc4-ticks.mbc4-inline li::before { margin-top: 0; background: var(--ink); }

/* ---------- Contact band and footer ---------- */

.mbc4-band { padding-top: var(--sec); }
.mbc4-band-title {
	border-top: 1px solid var(--ln);
	padding-top: clamp(40px, 6vw, 80px);
	margin: 0;
	font-size: clamp(44px, 7.4vw, 104px) !important;
	line-height: .98 !important;
}
.mbc4-band .mbc4-indent { margin-top: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.mbc4-band .mbc4-indent > * { margin: 0; }
.mbc4-band-note { font-size: 19px; line-height: 1.55; color: var(--mu); }
.mbc4-band-email .wp-element-button { font-size: 24px !important; }
.mbc4-foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0 24px;
	margin-top: clamp(56px, 7vw, 96px);
	padding-top: 16px;
	padding-bottom: 32px;
	position: relative;
	font-size: 15px;
	color: var(--mu);
}
.mbc4-foot::before { content: ""; position: absolute; top: 0; left: var(--gut); right: var(--gut); border-top: 1px solid var(--ln); }
.mbc4-foot > * { margin: 0; }
.mbc4-foot-line { min-height: 44px; display: inline-flex; align-items: center; }
.mbc4-foot-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.mbc4-foot-nav li { margin: 0; }
.mbc4-foot-nav a { color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.mbc4-no-backtop .mbc4-foot-nav a[href="#top"] { display: none; }

/* ---------- Split sections (heading left, content right) ---------- */

.mbc4-split { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.mbc4-split-l { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.mbc4-split-l > * { margin: 0; }
.mbc4-split-r { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.mbc4-split-r > * { margin: 0; }
.mbc4-split-intro { font-size: 17px; color: var(--mu); }

/* About */
.mbc4-bio { display: flex; flex-wrap: wrap; gap: 32px clamp(32px, 6vw, 96px); align-items: flex-start; }
.mbc4-bio-photo { flex: 1 1 280px; max-width: 460px; }
.mbc4-bio-photo figure { margin: 0; }
.mbc4-portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-img); }
.mbc4-bio-text { flex: 1.4 1 360px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 640px; }
.mbc4-bio-text > * { margin: 0; }
.mbc4-bio-text p { font-size: 17px; color: var(--tx); }
.mbc4-bio-text .mbc4-bio-lead { font-family: var(--serif); font-weight: var(--mbc4-heading-weight, 500); font-size: clamp(22px, 2.2vw, 26px); line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
.mbc4-bio-text .wp-block-buttons { margin-top: 8px; }

/* Your details (Core block) */
.mbc-facts { margin: 0; display: grid; gap: 24px 32px; }
.mbc-facts > div { border-top: 1px solid var(--ln); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.mbc-facts dd { margin: 0; font-size: 16px; font-weight: 500; color: var(--ink); }
.mbc-facts.cols-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mbc-facts.cols-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.mbc-facts .mbc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); display: inline-block; margin-right: 10px; animation: mbc4-pulse 2s ease-out infinite; }
.mbc-facts.mbc4-facts-status > div { border: 0; padding: 0; }
.mbc-facts.mbc4-facts-status dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mbc-facts.mbc4-facts-status dd { font-size: 14px; }
.mbc4-factslist { grid-template-columns: 1fr; gap: 0 !important; border-bottom: 1px solid var(--ln); }
.mbc4-factslist > div { flex-direction: row !important; gap: 20px !important; padding: 16px 0 !important; }
.mbc4-factslist dt { width: 120px; flex: none; padding-top: 3px; }
.mbc4-factslist dd { font-weight: 400 !important; font-size: 17px !important; }

/* Experience */
.mbc4-xp .mbc4-split-r { gap: 0; border-bottom: 1px solid var(--ln); }
.mbc4-xp-row { display: grid; grid-template-columns: 1fr; gap: 8px 32px; padding: 24px 0; border-top: 1px solid var(--ln); }
.mbc4-xp-row > * { margin: 0; }
@media (min-width: 900px) { .mbc4-xp-row { grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1.3fr); } }
.mbc4-xp-when { padding-top: 6px; }
.mbc4-xp-head { display: flex; flex-direction: column; gap: 2px; }
.mbc4-xp-head > * { margin: 0; }
.mbc4-xp-role { font-size: 26px !important; line-height: 1.15 !important; }
.mbc4-xp-where { color: var(--mu); font-size: 16px; }
.mbc4-xp-what { color: var(--tx); font-size: 16px; }
.mbc4-xp-cv .wp-element-button { min-height: 44px; }
.mbc4-kvlist { list-style: none; margin: 12px 0 0; padding: 0; border-bottom: 1px solid var(--ln); }
.mbc4-kvlist li { margin: 0; padding: 14px 0; border-top: 1px solid var(--ln); display: grid; grid-template-columns: 1fr; gap: 2px 24px; color: var(--tx); }
.mbc4-kvlist li strong { font-weight: 500; color: var(--ink); }
@media (min-width: 700px) { .mbc4-kvlist li { grid-template-columns: 220px 1fr; } }
.mbc4-skills .mbc4-split-r { display: grid; grid-template-columns: 1fr; gap: 40px; }

/* Contact */
.mbc4-contact { display: flex; flex-wrap: wrap; gap: 40px clamp(32px, 6vw, 96px); align-items: flex-start; }
.mbc4-contact > .mbc-facts { flex: 1 1 320px; }
.mbc4-panel { flex: 1.2 1 360px; background: var(--pn); border-radius: var(--r-panel); padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.mbc4-panel > * { margin: 0; }
.mbc4-panel h3 { font-size: 28px; line-height: 1.1; }

/* Services */
.mbc4-svcs { display: flex; flex-direction: column; border-bottom: 1px solid var(--ln); }
.mbc4-svc { display: flex; flex-wrap: wrap; gap: 24px clamp(32px, 6vw, 96px); padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--ln); }
.mbc4-svc-l { flex: 1 1 340px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.mbc4-svc-r { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; }
.mbc4-svc-l > *, .mbc4-svc-r > * { margin: 0; }
.mbc4-svc-title { font-size: clamp(36px, 4vw, 52px) !important; scroll-margin-top: 24px; }
.mbc4-svc-desc { font-size: 18px; color: var(--mu); }
.mbc4-inc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0 40px; }
.mbc4-inc-item { border-top: 1px solid var(--ln); padding: 24px 0; display: flex; flex-direction: column; gap: 8px; }
.mbc4-inc-item > * { margin: 0; }
.mbc4-inc-item h3 { font-size: 26px; line-height: 1.15; }
.mbc4-inc-item p { color: var(--mu); }
.mbc4-toolgroup { display: flex; flex-direction: column; gap: 12px; }
.mbc4-toolgroup > * { margin: 0; }
.mbc4-faq { border-top: 1px solid var(--ln); }
.mbc4-faq:last-child { border-bottom: 1px solid var(--ln); }
.mbc4-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font-family: var(--serif); font-weight: var(--mbc4-heading-weight, 500); font-size: clamp(22px, 2.2vw, 26px); letter-spacing: -.02em; line-height: 1.2; }
.mbc4-faq summary::-webkit-details-marker { display: none; }
.mbc4-faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 28px; line-height: 1; transition: transform .3s ease; }
.mbc4-faq[open] summary::after { transform: rotate(45deg); }
.mbc4-faq > :not(summary) { margin: 0 0 20px; color: var(--tx); max-width: 640px; }

/* 404 */
.mbc4-tiles { list-style: none; margin: clamp(56px, 7vw, 96px) 0 0 !important; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 32px; }
.mbc4-tiles li { margin: 0; border-top: 1px solid var(--ln); }
.mbc4-tiles a { display: flex !important; flex-direction: column; gap: 6px; padding: 20px 0; background: none !important; font-family: var(--serif); font-size: 28px; letter-spacing: -.02em; line-height: 1.15; }
.mbc4-tiles a strong { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mu); }
.mbc4-tiles a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* ---------- Case study ---------- */

.mbc4-crumbs ol { list-style: none; margin: 0; padding: 0 0 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; font-size: 15px; }
.mbc4-crumbs li { margin: 0; display: inline-flex; align-items: center; gap: 12px; }
.mbc4-crumbs li + li::before { content: "/"; color: var(--mu); }
.mbc4-crumbs a { font-weight: 400 !important; }
.mbc4-crumbs [aria-current] { color: var(--mu); min-height: 44px; display: inline-flex; align-items: center; }
.mbc4-case-hero .mbc4-eyebrow { margin: 0 0 8px; }
.mbc4-case-title { margin: 0; font-size: clamp(64px, 14vw, 196px) !important; line-height: .98 !important; }
.mbc4-case-top { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.mbc4-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px 32px; }
.mbc4-facts > div { border-top: 1px solid var(--ln); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.mbc4-facts dd { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.55; }
.mbc4-facts dd .mbc4-link { min-height: 0; }
.mbc4-case-shot { position: relative; }
.mbc4-case-shot.has-phone { padding-bottom: clamp(24px, 4vw, 56px); }
.mbc4-case-shot .mbc4-frame img { aspect-ratio: 16 / 9.2; }
.mbc4-phone {
	position: absolute;
	right: clamp(12px, 4vw, 56px);
	bottom: 0;
	width: clamp(96px, 17vw, 210px);
	border-radius: clamp(14px, 2vw, 26px);
	overflow: hidden;
	background: var(--bg);
	border: clamp(4px, .6vw, 7px) solid var(--bg);
	box-shadow: 0 0 0 1px var(--outline), 0 30px 60px -30px var(--mbc4-shadow, rgba(0, 0, 0, .3));
}
.mbc4-phone img { display: block; width: 100%; aspect-ratio: 9 / 19; object-fit: cover; object-position: top; border-radius: clamp(10px, 1.4vw, 20px); }
.mbc4-case-next { padding-top: var(--sec); }
.mbc4-next {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px 32px;
	padding: 32px 0;
	border-top: 1px solid var(--ln);
	border-bottom: 1px solid var(--ln);
	text-decoration: none;
	color: var(--ink);
}
.mbc4-next-label { text-transform: none; letter-spacing: 0; font-size: 15px; }
.mbc4-next-title { font-family: var(--serif); font-weight: var(--mbc4-heading-weight, 500); letter-spacing: -.02em; font-size: clamp(40px, 6vw, 80px); line-height: 1; display: inline-flex; align-items: center; gap: 20px; }
.mbc4-next-title .mbc4-arr svg { width: clamp(20px, 2.4vw, 32px); height: auto; }

/* Case study body: restyles the case study content you already have. */
.mbc4-case-body { padding-top: clamp(48px, 6vw, 80px); }
.mbc4-case-content .mbc-cs { display: flex; flex-direction: column; gap: clamp(64px, 8vw, 112px); margin: 0; }
.mbc4-case-content .mbc-cs > * { margin: 0 !important; }
.mbc4-case-content .mbc-cs-row { display: flex !important; flex-wrap: wrap; align-items: flex-start !important; gap: 24px 64px !important; margin: 0 !important; }
.mbc4-case-content .mbc-cs-row > .wp-block-column { margin: 0 !important; }
.mbc4-case-content .mbc-cs-row > .wp-block-column:first-child { flex: 1 1 260px !important; min-width: 0; }
.mbc4-case-content .mbc-cs-row > .wp-block-column:last-child { flex: 999 1 520px !important; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.mbc4-case-content .mbc-cs-row > .wp-block-column:last-child > * { margin: 0 !important; }
.mbc4-case-content .mbc-cs-row > .wp-block-column:first-child h3 { margin: 0; font-size: clamp(36px, 4.2vw, 54px); line-height: 1.05; }
.mbc4-case-content .mbc-cs-row p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--tx); }
.mbc4-case-content .mbc-cs-row .mbc-cs-lead { font-family: var(--serif); font-weight: var(--mbc4-heading-weight, 500); font-size: clamp(22px, 2.4vw, 26px) !important; line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
.mbc4-case-content .mbc-cs-row .mbc-cs-intro { font-size: 19px; color: var(--tx); }
.mbc4-case-content .mbc-cs-row:last-child .mbc-cs-lead,
.mbc4-case-content .mbc-cs-row.is-result .mbc-cs-lead { font-size: clamp(32px, 4vw, 52px) !important; line-height: 1.08; }
.mbc4-case-content .mbc-cs-row:last-child p:not(.mbc-cs-lead) { color: var(--mu); }
.mbc4-case-content .mbc-cs-row .wp-block-columns { display: block !important; margin: 0 !important; }
.mbc4-case-content .mbc-cs-row .wp-block-columns > .wp-block-column { margin: 0 !important; }

/* The short version panel */
.mbc4-case-content .mbc-cs-row:has(.mbc-cs-dl) {
	flex-direction: column;
	gap: 24px !important;
	background: var(--pn);
	border-radius: var(--r-panel);
	padding: clamp(24px, 4vw, 48px);
	margin-top: calc(clamp(64px, 8vw, 112px) * -1 + clamp(48px, 6vw, 80px)) !important;
}
.mbc4-case-content .mbc-cs-row:has(.mbc-cs-dl) > .wp-block-column { flex: none !important; width: 100%; }
.mbc4-case-content .mbc-cs-row:has(.mbc-cs-dl) > .wp-block-column:first-child h3 {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--mu);
	line-height: 1.4;
}
.mbc4-no-caps .mbc4-case-content .mbc-cs-row:has(.mbc-cs-dl) > .wp-block-column:first-child h3 { text-transform: none; letter-spacing: 0; font-size: 14px; }
.mbc4-case-content .mbc-cs-dl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px 40px; }
.mbc4-case-content .mbc-cs-dl li { margin: 0; font-size: 16px; line-height: 1.55; color: var(--tx); }
.mbc4-case-content .mbc-cs-dl li strong { display: block; margin-bottom: 10px; font-family: var(--serif); font-weight: var(--mbc4-heading-weight, 500); font-size: 26px; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.mbc4-case-content .mbc-cs-dl li strong::first-letter { text-transform: uppercase; }

/* What I built rows */
.mbc4-case-content .mbc-cs-findings { margin: 8px 0 0 !important; border-bottom: 1px solid var(--ln); display: flex; flex-direction: column; }
.mbc4-case-content .mbc-cs-card { display: flex; flex-wrap: wrap; gap: 16px 40px; padding: 28px 0 !important; border-top: 1px solid var(--ln); margin: 0 !important; background: none; border-radius: 0; }
.mbc4-case-content .mbc-cs-card > * { margin: 0 !important; }
.mbc4-case-content .mbc-cs-card h4 { flex: 1 1 220px; min-width: 0; padding: 0 !important; font-size: 28px; line-height: 1.1; }
.mbc4-case-content .mbc-cs-card ul { flex: 1.6 1 300px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mbc4-case-content .mbc-cs-card li { margin: 0; display: flex; align-items: flex-start; gap: 12px; font-size: 17px; line-height: 1.5; color: var(--tx); }

/* Images inside case studies */
.mbc4-case-content figure.wp-block-image { margin: 12px 0 0 !important; }
.mbc4-case-content figure.wp-block-image img { display: block; width: 100%; height: auto; border-radius: var(--r-img) !important; box-shadow: 0 0 0 1px var(--outline); }
.mbc4-no-outline .mbc4-case-content figure.wp-block-image img { box-shadow: none; }
.mbc4-case-content figcaption, .mbc4-screens figcaption { margin-top: 12px; font-size: 14px; color: var(--mu); text-align: left; }
.mbc4-screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px; }
.mbc4-screens figure { margin: 0; }
.mbc4-screens .mbc4-frame img { aspect-ratio: 4 / 3; }

/* Client quote */
.mbc4-quotebox, .wp-block-quote.is-style-mbc4-client {
	margin: 12px 0 0;
	padding: clamp(24px, 4vw, 44px);
	background: var(--pn);
	border-radius: var(--r-panel);
	border: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.mbc4-quotebox .wp-block-quote.is-style-mbc4-client { margin: 0; padding: 0; background: none; }
.mbc4-quotebox > * { margin: 0 !important; }
.wp-block-quote.is-style-mbc4-client p { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; font-size: clamp(26px, 3vw, 36px); line-height: 1.25; color: var(--ink); }
.wp-block-quote.is-style-mbc4-client cite { font-style: normal; font-size: 15px; color: var(--mu); }
.mbc4-case-content blockquote:not(.is-style-mbc4-client) { margin: 12px 0 0; padding: 0 0 0 24px; border-left: 2px solid var(--ln); font-family: var(--serif); font-size: 26px; line-height: 1.3; }

/* ---------- Text pages (privacy, posts) ---------- */

.mbc4-hero-text { padding-bottom: clamp(32px, 4vw, 56px); }
.mbc4-textcol { padding-bottom: var(--sec); }
.mbc4-prose, .mbc-privacy .mbc-prose { max-width: 720px; margin-left: var(--indent) !important; }
.mbc4-prose > *, .mbc-privacy .mbc-prose > * { margin: 0; }
.mbc4-prose > * + *, .mbc-privacy .mbc-prose > * + * { margin-top: 18px; }
.mbc4-prose :is(h2, h3), .mbc-privacy .mbc-prose :is(h2, h3) { margin-top: 48px; }
.mbc4-prose h2, .mbc-privacy .mbc-prose h2 { font-size: clamp(30px, 3vw, 38px); line-height: 1.1; }
.mbc4-prose h3, .mbc-privacy .mbc-prose h3 { font-size: 24px; line-height: 1.15; }
.mbc4-prose :is(p, li), .mbc-privacy .mbc-prose :is(p, li) { font-size: 17px; color: var(--tx); }
.mbc4-prose ul, .mbc-privacy .mbc-prose ul { padding-left: 1.2em; }
.mbc4-prose li + li, .mbc-privacy li + li { margin-top: 6px; }

/* Privacy page content (kept from the old layout, restyled). */
.mbc-privacy { padding: clamp(32px, 5vw, 72px) var(--gut) var(--sec); max-width: var(--mbc4-wrap, 1280px); margin: 0 auto !important; box-sizing: border-box; }
.mbc-privacy > .alignwide { margin: 0 !important; max-width: none !important; }
.mbc-privacy > * + * { margin-top: 0 !important; }
.mbc-privacy-title { margin: 0 0 clamp(28px, 4vw, 56px) !important; font-size: var(--mbc4-hero, clamp(46px, 8.4vw, 116px)) !important; line-height: .98; }
.mbc-privacy .mbc-lead { font-size: 21px; color: var(--ink); }
.mbc-privacy .mbc-muted { color: var(--mu); font-size: 15px; }
.mbc-privacy .is-style-mbc-link .wp-element-button { background: none; color: var(--ink); padding: 0; min-height: 44px; font-size: 18px; }
.mbc-cookie-table { margin-top: 24px !important; }
.mbc-cookie-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mbc-cookie-table :is(th, td) { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ln); vertical-align: top; }
.mbc-cookie-table th { font-weight: 500; color: var(--mu); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.mbc-cookie-table__scroll { overflow-x: auto; }

/* Blog lists */
.mbc4-loop .wp-block-post-template { list-style: none; margin: 0; padding: 0; max-width: 720px; margin-left: var(--indent); }
.mbc4-loop .wp-block-post { padding: 24px 0; border-top: 1px solid var(--ln); display: flex; flex-direction: column; gap: 8px; }
.mbc4-loop-title { font-size: 32px; margin: 0; }

/* Old helper classes still in some content. */
.mbc-muted { color: var(--mu); }
.screen-reader-text:not(:focus) { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Motion ---------- */

@keyframes mbc4-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.mbc4-rise { animation: mbc4-rise calc(900ms * var(--mbc4-speed, 1)) var(--ease) both; }
.mbc4-d1 { animation-delay: calc(80ms * var(--mbc4-speed, 1)); }
.mbc4-d2 { animation-delay: calc(200ms * var(--mbc4-speed, 1)); }
.mbc4-d3 { animation-delay: calc(340ms * var(--mbc4-speed, 1)); }

/* Fade in on scroll. Only hidden when the script is running. */
.mbc4-js .mbc4-sr, .mbc4-js .mbc4-case-content .mbc-cs-row, .mbc4-js .mbc4-case-content .mbc-cs-card {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), clip-path var(--dur) var(--ease);
	transition-delay: var(--mbc4-delay, 0ms);
}
.mbc4-js .mbc4-row .mbc4-shot.mbc4-from-l { transform: translateX(-72px); clip-path: inset(0 100% 0 0 round var(--r-img)); }
.mbc4-js .mbc4-row .mbc4-shot.mbc4-from-r { transform: translateX(72px); clip-path: inset(0 0 0 100% round var(--r-img)); }
.mbc4-js .mbc4-late { --mbc4-delay: 180ms; }
.mbc4-delay-1 { --mbc4-delay: 140ms; }
.mbc4-delay-2 { --mbc4-delay: 280ms; }
.mbc4-delay-3 { --mbc4-delay: 420ms; }
.mbc4-js .is-in.mbc4-sr, .mbc4-js .mbc4-case-content .is-in { opacity: 1; transform: none !important; }
.mbc4-js .mbc4-row .mbc4-shot.is-in { clip-path: inset(-8px -8px -8px -8px round calc(var(--r-img) + 8px)); }

/* The How I work line draws across. */
.mbc4-js .mbc4-stage .mbc4-line { transform: scaleX(0); transition: transform calc(900ms * var(--mbc4-speed, 1)) var(--ease); transition-delay: calc(var(--mbc4-delay, 0ms) + 200ms); }
.mbc4-js .mbc4-stage.is-in .mbc4-line { transform: scaleX(1); }
.mbc4-no-line .mbc4-stage .mbc4-line { transform: none !important; }

/* Subtle: fades only. */
.mbc4-motion-subtle .mbc4-rise { animation-name: mbc4-fade; }
@keyframes mbc4-fade { from { opacity: 0; } to { opacity: 1; } }
.mbc4-motion-subtle.mbc4 .mbc4-sr, .mbc4-motion-subtle .mbc4-case-content :is(.mbc-cs-row, .mbc-cs-card) { transform: none !important; clip-path: none !important; }

/* Off, or no fade-ins. */
.mbc4-motion-off .mbc4-rise { animation: none; }
.mbc4-motion-off .mbc4-sr, .mbc4-no-reveal .mbc4-sr,
.mbc4-motion-off .mbc4-case-content :is(.mbc-cs-row, .mbc-cs-card), .mbc4-no-reveal .mbc4-case-content :is(.mbc-cs-row, .mbc-cs-card) { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
.mbc4-motion-off .mbc4-line { transform: none !important; }
.mbc4-motion-off :is(.mbc4-status, .mbc-dot)::before, .mbc4-motion-off .mbc-dot { animation: none; }
.mbc4-motion-off :is(.mbc4-frame img, .mbc4-arr, .wp-element-button) { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.mbc4-rise, .mbc4-status::before, .mbc-dot { animation: none !important; }
	.mbc4-sr, .mbc4-case-content :is(.mbc-cs-row, .mbc-cs-card) { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
	.mbc4-line { transform: none !important; transition: none !important; }
	.mbc4-frame img, .mbc4-arr, .mbc4 .wp-element-button, .mbc4-badge, .mbc4-head { transition: none !important; }
	.mbc4-shot:hover .mbc4-frame img, a:hover .mbc4-arr, .mbc4 .wp-element-button:hover { transform: none !important; }
}

/* Print */
@media print {
	header.wp-block-template-part, .mbc4-band-part, .mbc4-foot { display: none; }
	.mbc4-sr, .mbc4-rise { opacity: 1 !important; transform: none !important; animation: none !important; }
}
.mbc-privacy .mbc-prose > .mbc-privacy-title { margin-left: calc(var(--indent) * -1) !important; max-width: none; }

/* How I work: heading on the left, "Standard on every site" beside it. */
.mbc4-howhead { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 64px; padding-bottom: clamp(40px, 5vw, 72px); }
.mbc4-howhead-l { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: clamp(20px, 3vw, 32px); }
.mbc4-howhead-l > *, .mbc4-howhead-r > * { margin: 0; }
.mbc4-howhead-l .mbc4-intro { max-width: 560px; }
.mbc4-howhead-r { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 900px) { .mbc4-howhead-r { flex: 0 0 300px; padding-top: 14px; } }
.is-style-mbc4-ticks.mbc4-stdlist { gap: 0; border-bottom: 1px solid var(--ln); }
.is-style-mbc4-ticks.mbc4-stdlist li { align-items: center; padding: 10px 0; border-top: 1px solid var(--ln); font-size: 16px; color: var(--ink); }
.is-style-mbc4-ticks.mbc4-stdlist li::before { margin-top: 0; }

/* Case study extras: role rows with text, full-width showcase rows, phone panel, delivered panel, score tiles. */
.mbc4-case-content .mbc-cs-card > p { flex: 1.6 1 300px; min-width: 0; }
.mbc4-case-content .mbc-cs-row.mbc4-cs-wide { flex-direction: column; flex-wrap: nowrap; gap: clamp(32px, 4vw, 48px) !important; }
.mbc4-case-content .mbc-cs-row.mbc4-cs-wide > .wp-block-column:first-child,
.mbc4-case-content .mbc-cs-row.mbc4-cs-wide > .wp-block-column:last-child { flex: none !important; width: 100%; }
.mbc4-case-content .mbc-cs-row.mbc4-cs-wide > .wp-block-column:first-child { padding-bottom: 20px; border-bottom: 1px solid var(--ln); }
.mbc4-case-content .mbc-cs-row.mbc4-cs-wide > .wp-block-column:last-child { gap: clamp(32px, 4vw, 56px); }
.mbc4-case-content .mbc-cs-row.mbc4-cs-wide figure.wp-block-image { margin: 0 !important; }
.mbc4-case-content .mbc4-phones { background: var(--pn); border-radius: var(--r-panel); padding: clamp(24px, 5vw, 64px); display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 4vw, 56px); }
.mbc4-case-content .mbc4-phones figure.wp-block-image { margin: 0 !important; width: min(100%, 260px); }
.mbc4-case-content .mbc4-phones figure.wp-block-image img { border-radius: 24px !important; }
.mbc4-case-content .mbc-cs-row > .wp-block-column:last-child > .mbc4-phones + .mbc4-caption { margin-top: calc(clamp(32px, 4vw, 56px) * -1 + 12px) !important; }
.mbc4-case-content p.mbc4-caption { font-size: 15px !important; color: var(--mu) !important; }
.mbc4-case-content .mbc4-cs-panel { background: var(--pn); border-radius: var(--r-panel); padding: clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 24px 64px; }
.mbc4-case-content .mbc4-cs-panel > * { margin: 0 !important; }
.mbc4-cs-panel-l { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.mbc4-cs-panel-l > * { margin: 0 !important; }
.mbc4-cs-panel-l .mbc-cs-lead { font-family: var(--serif); font-weight: var(--mbc4-heading-weight, 500); font-size: clamp(22px, 2.4vw, 26px); line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
.mbc4-cs-panel > .is-style-mbc4-ticks { flex: 999 1 420px; min-width: 0; }
.mbc4-case-content .mbc4-stats { list-style: none; margin: 12px 0 0 !important; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px 32px; }
.mbc4-case-content .mbc4-stats li { margin: 0; border-top: 1px solid var(--ln); padding-top: 14px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mu); }
.mbc4-case-content .mbc4-stats li strong { display: block; margin-bottom: 4px; font-family: var(--serif); font-weight: var(--mbc4-heading-weight, 500); font-size: clamp(56px, 7vw, 88px); line-height: 1; letter-spacing: -.02em; text-transform: none; color: var(--ink); }
.mbc4-no-caps .mbc4-case-content .mbc4-stats li { text-transform: none; letter-spacing: 0; font-size: 14px; }
