/* ==========================================================================
   MB2 İnşaat — main stylesheet
   Tokens → base → layout → components → templates → utilities
   ========================================================================== */

:root {
	/* Brand colours (see marka kılavuzu). Text tones are darkened for WCAG AA. */
	--c-ink: #23262a;
	--c-ink-2: #3a3e43;
	--c-paper: #f5f2ed;
	--c-white: #ffffff;
	--c-stone: #cfc6b8;
	--c-stone-2: #e7e1d8;
	--c-muted: #5f5950;
	--c-accent: #8a6b40;
	--c-accent-light: #c9a878;
	--c-line: rgba(35, 38, 42, 0.14);
	--c-line-light: rgba(245, 242, 237, 0.22);
	--mb2-logo-accent: #9a7b4f;

	--f-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-head: "Inter Display", "Inter", system-ui, sans-serif;

	--fs-xs: 0.8125rem;
	--fs-sm: 0.9375rem;
	--fs-md: 1.0625rem;
	--fs-lg: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
	--fs-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
	--fs-h2: clamp(1.875rem, 1.4rem + 1.9vw, 3rem);
	--fs-h1: clamp(2.25rem, 1.5rem + 3.2vw, 4.25rem);
	--fs-hero: clamp(2.625rem, 1.6rem + 4.6vw, 5.75rem);

	--gutter: clamp(16px, 4vw, 40px);
	--wrap: 1240px;
	--wrap-narrow: 760px;
	--section: clamp(64px, 9vw, 136px);
	--radius: 2px;
	--header-h: 76px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
	margin: 0;
	background: var(--c-paper);
	color: var(--c-ink);
	font-family: var(--f-text);
	font-size: var(--fs-md);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
img { background-color: var(--c-stone-2); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--c-accent); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
dialog { color: inherit; }

.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;
}
.mb2-skip {
	position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
	background: var(--c-ink); color: var(--c-paper); text-decoration: none;
}
.mb2-skip:focus { top: 12px; color: var(--c-paper); }

/* ---------- Layout ---------- */
.mb2-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.mb2-wrap--narrow { max-width: calc(var(--wrap-narrow) + 2 * var(--gutter)); }
.mb2-main { display: block; outline: none; }
.mb2-section { padding-block: var(--section); }
.mb2-section--tight { padding-block: clamp(40px, 6vw, 80px); }
.mb2-section--flush { padding-block: 0; }
.mb2-section + .mb2-section:not(.mb2-principles):not(.mb2-office) { padding-top: 0; }

.mb2-grid { display: grid; gap: clamp(20px, 2.5vw, 32px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* ---------- Type helpers ---------- */
.mb2-eyebrow {
	font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--c-muted); margin: 0 0 14px;
}
.mb2-eyebrow--light { color: rgba(245, 242, 237, 0.85); }
.mb2-h2 { font-size: var(--fs-h2); }
.mb2-h3 { font-size: var(--fs-h3); }
.mb2-h2 a, .mb2-h3 a { text-decoration: none; }
.mb2-lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--c-ink-2); }
.mb2-empty { color: var(--c-muted); padding: 40px 0; }

.mb2-link {
	display: inline-flex; align-items: center; gap: 10px; font-weight: 500; text-decoration: none;
	border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.mb2-link .mb2-icon { transition: transform 0.3s var(--ease); }
.mb2-link:hover .mb2-icon { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.mb2-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mb2-actions--stack { flex-direction: column; align-items: stretch; }
.mb2-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 22px; border: 1px solid var(--c-ink); border-radius: var(--radius);
	background: transparent; color: var(--c-ink); font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.01em;
	text-decoration: none; cursor: pointer; transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.mb2-btn:hover { background: var(--c-ink); color: var(--c-paper); }
.mb2-btn--solid { background: var(--c-ink); color: var(--c-paper); }
.mb2-btn--solid:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-white); }
.mb2-btn--light { background: var(--c-paper); border-color: var(--c-paper); color: var(--c-ink); }
.mb2-btn--light:hover { background: var(--c-white); border-color: var(--c-white); color: var(--c-ink); }
.mb2-btn--ghost-light { border-color: rgba(245, 242, 237, 0.6); color: var(--c-paper); }
.mb2-btn--ghost-light:hover { background: var(--c-paper); color: var(--c-ink); }
.mb2-actions--on-dark .mb2-btn { border-color: rgba(245, 242, 237, 0.6); color: var(--c-paper); }
.mb2-actions--on-dark .mb2-btn--solid { background: var(--c-paper); border-color: var(--c-paper); color: var(--c-ink); }
.mb2-actions--on-dark .mb2-btn:hover { background: var(--c-white); border-color: var(--c-white); color: var(--c-ink); }
.mb2-iconbtn {
	display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--c-line);
	border-radius: 50%; background: transparent; cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.mb2-iconbtn:hover { background: var(--c-ink); color: var(--c-paper); }

/* ---------- Header ---------- */
.mb2-header {
	position: sticky; top: 0; z-index: 50; height: var(--header-h);
	background: rgba(245, 242, 237, 0.94); color: var(--c-ink);
	border-bottom: 1px solid var(--c-line);
	transition: background-color 0.35s, color 0.35s, border-color 0.35s, transform 0.35s var(--ease);
}
@supports (backdrop-filter: blur(8px)) {
	.mb2-header { background: rgba(245, 242, 237, 0.82); backdrop-filter: blur(12px); }
}
.mb2-header__inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.mb2-header--overlay { position: fixed; inset: 0 0 auto 0; background: transparent; color: var(--c-paper); border-color: transparent; backdrop-filter: none; --mb2-logo-accent: var(--c-accent-light); }
.mb2-header--overlay.is-scrolled { background: rgba(35, 38, 42, 0.92); border-color: var(--c-line-light); }
@supports (backdrop-filter: blur(8px)) {
	.mb2-header--overlay.is-scrolled { background: rgba(35, 38, 42, 0.78); backdrop-filter: blur(12px); }
}
.mb2-header.is-hidden { transform: translateY(-100%); }
body.has-overlay-header .mb2-main { margin-top: 0; }

.mb2-logo { display: inline-flex; color: inherit; flex-shrink: 0; }
.mb2-logo:hover { color: inherit; }
.mb2-logo--horizontal .mb2-logo-svg { height: 40px; width: auto; }
.mb2-logo--stacked .mb2-logo-svg { height: 64px; width: auto; }
.mb2-logo--wordmark .mb2-logo-svg { height: 48px; width: auto; }
.mb2-logo-svg { background: none; }

.mb2-nav { margin-left: auto; }
.mb2-nav__list { list-style: none; display: flex; gap: clamp(18px, 2.4vw, 36px); }
.mb2-nav__list a { display: block; padding: 8px 0; text-decoration: none; font-size: var(--fs-sm); font-weight: 500; position: relative; }
.mb2-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.mb2-nav__list a:hover { color: inherit; }
.mb2-nav__list a:hover::after,
.mb2-nav__list .current-menu-item > a::after,
.mb2-nav__list .current-menu-ancestor > a::after,
.mb2-nav__list .current_page_item > a::after { transform: scaleX(1); }
.mb2-nav__list .sub-menu { display: none; }
.mb2-nav__contact { display: none; }

.mb2-header__call { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 500; text-decoration: none; padding: 10px 0 10px 24px; border-left: 1px solid var(--c-line); }
.mb2-header--overlay .mb2-header__call { border-color: var(--c-line-light); }
.mb2-header__call:hover { color: inherit; opacity: 0.8; }

.mb2-burger { display: none; width: 48px; height: 48px; margin-right: -12px; border: 0; background: none; cursor: pointer; }
.mb2-burger__bar, .mb2-burger__bar::before, .mb2-burger__bar::after {
	display: block; width: 24px; height: 1.5px; background: currentColor; margin-inline: auto; position: relative; transition: transform 0.3s var(--ease), opacity 0.2s;
}
.mb2-burger__bar::before, .mb2-burger__bar::after { content: ""; position: absolute; left: 0; }
.mb2-burger__bar::before { top: -7px; }
.mb2-burger__bar::after { top: 7px; }
.mb2-burger[aria-expanded="true"] .mb2-burger__bar { background: transparent; }
.mb2-burger[aria-expanded="true"] .mb2-burger__bar::before { transform: translateY(7px) rotate(45deg); }
.mb2-burger[aria-expanded="true"] .mb2-burger__bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
	:root { --header-h: 64px; }
	.mb2-logo--horizontal .mb2-logo-svg { height: 34px; }
	.mb2-logo--wordmark .mb2-logo-svg { height: 42px; }
	.mb2-header__call { display: none; }
	.mb2-burger { display: block; margin-left: auto; position: relative; z-index: 2; }
	.mb2-nav {
		position: fixed; inset: 0; z-index: 1; margin: 0; padding: calc(var(--header-h) + 24px) var(--gutter) 120px;
		background: var(--c-ink); color: var(--c-paper); overflow-y: auto;
		opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
	}
	.mb2-nav.is-open { opacity: 1; visibility: visible; }
	.mb2-nav__list { flex-direction: column; gap: 0; }
	.mb2-nav__list a { font-family: var(--f-head); font-size: 1.75rem; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--c-line-light); }
	.mb2-nav__list a::after { display: none; }
	.mb2-nav__contact { display: block; margin-top: 32px; }
	.mb2-nav__contact .mb2-btn { border-color: rgba(245, 242, 237, 0.6); color: var(--c-paper); }
	.mb2-nav__contact .mb2-btn--solid { background: var(--c-paper); color: var(--c-ink); }
	body.nav-open { overflow: hidden; }
	body.nav-open .mb2-header { color: var(--c-paper); background: transparent; border-color: transparent; backdrop-filter: none; --mb2-logo-accent: var(--c-accent-light); }
	body.nav-open .mb2-header .mb2-logo { position: relative; z-index: 2; }
}

/* ---------- Hero ---------- */
.mb2-hero {
	position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
	color: var(--c-paper); background: var(--c-ink); overflow: hidden; isolation: isolate;
}
.mb2-hero__media, .mb2-hero__media picture, .mb2-hero__img, .mb2-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.mb2-hero__media { z-index: -2; }
.mb2-hero__img, .mb2-hero__video { object-fit: cover; }
.mb2-hero__img { background: var(--c-ink); }
.mb2-hero__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.mb2-hero__video.is-playing { opacity: 1; }
.mb2-hero__shade {
	position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(20, 22, 25, 0.62) 0%, rgba(20, 22, 25, 0.12) 22%, rgba(20, 22, 25, 0.12) 45%, rgba(20, 22, 25, 0.82) 100%);
}
@media (max-width: 767px) {
	.mb2-hero__shade { background: linear-gradient(180deg, rgba(20, 22, 25, 0.6) 0%, rgba(20, 22, 25, 0.1) 20%, rgba(20, 22, 25, 0.25) 42%, rgba(20, 22, 25, 0.88) 78%, rgba(20, 22, 25, 0.92) 100%); }
}
.mb2-hero__content { padding-bottom: clamp(48px, 9vh, 112px); padding-top: calc(var(--header-h) + 40px); }
.mb2-hero__title { font-size: var(--fs-hero); max-width: 13ch; margin-bottom: 20px; letter-spacing: -0.025em; }
.mb2-hero__lead { font-size: var(--fs-lg); max-width: 36ch; color: rgba(245, 242, 237, 0.9); margin-bottom: 36px; }

/* ---------- Section heads ---------- */
.mb2-sechead { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.mb2-sechead--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }
.mb2-sechead--row .mb2-h2 { margin-bottom: 0; }

/* ---------- Intro ---------- */
.mb2-intro__grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.mb2-intro__text p { font-family: var(--f-head); font-size: clamp(1.375rem, 1.05rem + 1.35vw, 2.25rem); line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; color: var(--c-ink); }
.mb2-intro__text p + p { font-family: var(--f-text); font-size: var(--fs-lg); font-weight: 400; line-height: 1.6; color: var(--c-ink-2); max-width: 62ch; letter-spacing: 0; }
@media (min-width: 900px) {
	.mb2-intro__grid { grid-template-columns: 1fr 3fr; gap: 48px; }
}

/* ---------- Featured project ---------- */
.mb2-featured__grid { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
.mb2-featured__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.mb2-featured__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mb2-featured__media:hover img { transform: scale(1.03); }
.mb2-featured__excerpt { font-size: var(--fs-lg); color: var(--c-ink-2); }
.mb2-featured__body .mb2-btn { margin-top: 12px; }
@media (min-width: 1000px) {
	.mb2-featured__grid { grid-template-columns: 1.55fr 1fr; }
}

/* ---------- Facts ---------- */
.mb2-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 24px 0; border-top: 1px solid var(--c-line); }
.mb2-facts > div { padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.mb2-facts > div:nth-child(odd) { padding-right: 16px; }
.mb2-facts dt { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 2px; }
.mb2-facts dd { margin: 0; font-weight: 500; }

/* ---------- Detail strip ---------- */
.mb2-strip { overflow: hidden; }
.mb2-strip__nav { display: flex; gap: 8px; }
.mb2-strip__track {
	list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 420px); gap: 16px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
}
.mb2-strip__track::-webkit-scrollbar { display: none; }
.mb2-strip__item { scroll-snap-align: start; }
.mb2-strip__item a { display: block; overflow: hidden; aspect-ratio: 4 / 5; }
.mb2-strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mb2-strip__item a:hover img { transform: scale(1.04); }
@media (max-width: 600px) { .mb2-strip__nav { display: none; } }

/* ---------- Cards ---------- */
.mb2-card__link { display: block; text-decoration: none; color: inherit; }
.mb2-card__link:hover { color: inherit; }
.mb2-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--c-stone-2); }
.mb2-card__media--landscape { aspect-ratio: 4 / 3; }
.mb2-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mb2-card__link:hover .mb2-card__media img { transform: scale(1.04); }
.mb2-card__body { padding-top: 18px; }
.mb2-card__meta { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 6px; }
.mb2-card__title { font-size: var(--fs-h3); margin-bottom: 10px; }
.mb2-card__excerpt { color: var(--c-ink-2); font-size: var(--fs-sm); }
.mb2-card__more { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 500; color: var(--c-accent); }
.mb2-card__more .mb2-icon { transition: transform 0.3s var(--ease); }
.mb2-card__link:hover .mb2-card__more .mb2-icon { transform: translateX(4px); }
.mb2-badge {
	position: absolute; top: 16px; left: 16px; padding: 6px 12px; font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.06em;
	background: var(--c-paper); color: var(--c-ink);
}

/* ---------- Principles ---------- */
.mb2-principles { background: var(--c-ink); color: var(--c-paper); }
.mb2-principles .mb2-eyebrow { color: rgba(245, 242, 237, 0.7); }
.mb2-principles__list { list-style: none; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--c-line-light); }
.mb2-principles__list li { padding: 28px 24px 8px 0; border-bottom: 1px solid var(--c-line-light); }
.mb2-principles__num { display: block; font-family: var(--f-head); font-size: var(--fs-sm); color: var(--c-accent-light); margin-bottom: 28px; }
.mb2-principles__list h3 { font-size: var(--fs-lg); }
.mb2-principles__list p { color: rgba(245, 242, 237, 0.78); font-size: var(--fs-sm); }
@media (min-width: 900px) {
	.mb2-principles__list li { border-bottom: 0; border-right: 1px solid var(--c-line-light); padding: 32px 28px 8px; }
	.mb2-principles__list li:first-child { padding-left: 0; }
	.mb2-principles__list li:last-child { border-right: 0; }
}

/* ---------- Office / services ---------- */
.mb2-office__grid { display: grid; gap: 40px; align-items: start; }
.mb2-office__card { background: var(--c-white); padding: clamp(28px, 4vw, 48px); border: 1px solid var(--c-line); }
@media (min-width: 900px) { .mb2-office__grid { grid-template-columns: 1.3fr 1fr; gap: 80px; } }

.mb2-checklist { list-style: none; margin: 20px 0 28px; }
.mb2-checklist li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--c-line); }
.mb2-checklist li::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--c-accent); }
.mb2-checklist--cols { columns: 2 260px; column-gap: 40px; }
.mb2-checklist--cols li { break-inside: avoid; }

/* ---------- CTA ---------- */
.mb2-cta { background: var(--c-ink); color: var(--c-paper); padding-block: clamp(56px, 8vw, 112px); }
.mb2-cta__inner { display: grid; gap: 28px; align-items: end; }
.mb2-cta__title { font-size: var(--fs-h2); max-width: 18ch; }
.mb2-cta__text { color: rgba(245, 242, 237, 0.8); max-width: 52ch; margin: 0; }
@media (min-width: 900px) { .mb2-cta__inner { grid-template-columns: 1.4fr 1fr; } .mb2-cta .mb2-actions { justify-content: flex-end; } }

/* ---------- Footer ---------- */
.mb2-footer { background: #1b1d20; color: rgba(245, 242, 237, 0.82); padding-top: clamp(56px, 7vw, 96px); font-size: var(--fs-sm); --mb2-logo-accent: var(--c-accent-light); }
.mb2-footer a { text-decoration: none; }
.mb2-footer a:hover { color: var(--c-white); text-decoration: underline; }
.mb2-footer__grid { display: grid; gap: 40px; padding-bottom: 48px; }
.mb2-footer__brand .mb2-logo { color: var(--c-paper); margin-bottom: 20px; }
.mb2-footer__brand p { max-width: 32ch; }
.mb2-footer__title { font-family: var(--f-text); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(245, 242, 237, 0.6); margin-bottom: 18px; }
.mb2-footer__list { list-style: none; display: grid; gap: 12px; }
.mb2-footer__list li { display: flex; gap: 12px; align-items: flex-start; }
.mb2-footer__list .mb2-icon { flex-shrink: 0; margin-top: 3px; opacity: 0.7; }
.mb2-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; border-top: 1px solid var(--c-line-light); font-size: var(--fs-xs); color: rgba(245, 242, 237, 0.6); }
.mb2-footer__bottom p { margin: 0; }
.mb2-footer__legal { list-style: none; display: flex; gap: 20px; }
.mb2-social { list-style: none; display: flex; gap: 18px; margin-top: 24px; }
@media (min-width: 800px) { .mb2-footer__grid { grid-template-columns: 1.4fr 1.4fr 1fr; } }

/* ---------- Mobile quick bar ---------- */
.mb2-mobilebar { display: none; }
@media (max-width: 767px) {
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	.mb2-mobilebar {
		position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
		background: var(--c-ink); color: var(--c-paper); border-top: 1px solid var(--c-line-light);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.mb2-mobilebar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 64px; font-size: 0.75rem; font-weight: 500; text-decoration: none; }
	.mb2-mobilebar a + a { border-left: 1px solid var(--c-line-light); }
	.mb2-mobilebar a:hover { color: var(--c-accent-light); }
	body.nav-open .mb2-mobilebar { display: none; }
}

/* ---------- Page header / breadcrumbs ---------- */
.mb2-pagehead { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(24px, 4vw, 48px); border-bottom: 1px solid var(--c-line); }
.mb2-pagehead__title { font-size: var(--fs-h1); max-width: 20ch; }
.mb2-pagehead__lead { font-size: var(--fs-lg); color: var(--c-ink-2); max-width: 60ch; margin-bottom: 0; }
.mb2-breadcrumbs { font-size: var(--fs-xs); color: var(--c-muted); margin-bottom: 28px; }
.mb2-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.mb2-breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.mb2-breadcrumbs a { text-decoration: none; }
.mb2-breadcrumbs a:hover { text-decoration: underline; }
.mb2-pagecover { margin: 0 auto clamp(32px, 5vw, 64px); }
.mb2-pagecover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Prose (editor content) ---------- */
.mb2-prose { max-width: 70ch; }
.mb2-prose--page { margin-inline: 0; }
.mb2-prose > * + * { margin-top: 1.1em; }
.mb2-prose h2 { font-size: var(--fs-h3); margin-top: 2em; }
.mb2-prose h3 { font-size: var(--fs-lg); margin-top: 1.6em; }
.mb2-prose ul, .mb2-prose ol { padding-left: 1.25em; }
.mb2-prose li + li { margin-top: 0.4em; }
.mb2-prose blockquote { margin: 1.6em 0; padding-left: 24px; border-left: 2px solid var(--c-accent); font-family: var(--f-head); font-size: var(--fs-lg); }
.mb2-prose figure { margin: 2em 0; }
.mb2-prose figcaption { font-size: var(--fs-xs); color: var(--c-muted); margin-top: 8px; }
.mb2-prose a { color: var(--c-accent); }
.mb2-prose .alignwide { max-width: none; }
.mb2-prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.mb2-prose th, .mb2-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c-line); }

/* ---------- Project single ---------- */
.mb2-project__hero { position: relative; min-height: 78vh; min-height: 78svh; display: flex; align-items: flex-end; color: var(--c-paper); background: var(--c-ink); isolation: isolate; overflow: hidden; }
.mb2-project__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mb2-project__head { padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(36px, 6vw, 72px); }
.mb2-project__head .mb2-breadcrumbs { color: rgba(245, 242, 237, 0.8); margin-bottom: 40px; }
.mb2-project__title { font-size: var(--fs-h1); max-width: 18ch; margin: 0; }
.mb2-project__layout { display: grid; gap: clamp(32px, 5vw, 80px); padding-block: clamp(48px, 7vw, 96px); }
.mb2-project__content h2 { font-size: var(--fs-h3); }
.mb2-project__card { background: var(--c-white); border: 1px solid var(--c-line); padding: clamp(24px, 3vw, 36px); }
.mb2-project__card .mb2-facts { grid-template-columns: 1fr; }
.mb2-project__card .mb2-facts > div { display: flex; justify-content: space-between; gap: 16px; padding-right: 0; }
.mb2-project__card .mb2-facts dd { text-align: right; }
.mb2-project__ask { font-size: var(--fs-sm); color: var(--c-ink-2); }
@media (min-width: 1000px) {
	.mb2-project__layout { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); }
	.mb2-project__aside { position: relative; }
	.mb2-project__card { position: sticky; top: calc(var(--header-h) + 24px); }
}

.mb2-masonry { list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; grid-auto-flow: dense; }
.mb2-masonry__item { overflow: hidden; }
.mb2-masonry__item a { display: block; height: 100%; }
.mb2-masonry__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mb2-masonry__item.is-wide { grid-column: span 2; }
.mb2-masonry__item a:hover img { transform: scale(1.03); }
@media (min-width: 900px) {
	.mb2-masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 19vw, 280px); gap: 16px; }
	.mb2-masonry__item.is-wide { grid-row: span 2; }
}

.mb2-video { width: 100%; aspect-ratio: 16 / 9; background: var(--c-ink); }
.mb2-yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer; background: var(--c-ink); overflow: hidden; }
.mb2-yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.mb2-yt__play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: var(--c-paper); color: var(--c-ink); }
.mb2-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.mb2-map { position: relative; display: grid; place-items: center; align-content: center; gap: 8px; min-height: 360px; background: var(--c-stone-2); text-align: center; padding: 24px; }
.mb2-map--wide { min-height: 420px; }
.mb2-map__note { font-size: var(--fs-xs); color: var(--c-muted); margin: 0; max-width: 40ch; }
.mb2-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Archive filter ---------- */
.mb2-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.mb2-filter a { padding: 10px 18px; border: 1px solid var(--c-line); text-decoration: none; font-size: var(--fs-sm); border-radius: 999px; }
.mb2-filter a:hover { border-color: var(--c-ink); color: var(--c-ink); }
.mb2-filter a[aria-current="page"] { background: var(--c-ink); color: var(--c-paper); border-color: var(--c-ink); }

/* ---------- Pagination ---------- */
.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--c-line); text-decoration: none; }
.pagination .page-numbers.current { background: var(--c-ink); color: var(--c-paper); border-color: var(--c-ink); }

/* ---------- Contact ---------- */
.mb2-contact { display: grid; gap: clamp(40px, 6vw, 96px); }
.mb2-contact__list { display: grid; gap: 0; margin: 32px 0; border-top: 1px solid var(--c-line); }
.mb2-contact__list > div { padding: 18px 0; border-bottom: 1px solid var(--c-line); display: grid; gap: 4px; }
.mb2-contact__list dt { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); }
.mb2-contact__list dd { margin: 0; font-size: var(--fs-lg); }
.mb2-contact__list dd a:not(.mb2-link) { text-decoration: none; }
.mb2-contact__list .mb2-link { font-size: var(--fs-sm); margin-top: 8px; }
.mb2-contact__form { background: var(--c-white); border: 1px solid var(--c-line); padding: clamp(24px, 4vw, 48px); }
@media (min-width: 1000px) { .mb2-contact { grid-template-columns: 1fr 1.2fr; } }

/* ---------- Form ---------- */
.mb2-form__grid { display: grid; gap: 18px 20px; grid-template-columns: 1fr; margin-bottom: 24px; }
@media (min-width: 640px) { .mb2-form__grid { grid-template-columns: 1fr 1fr; } .mb2-form__field--wide { grid-column: 1 / -1; } }
.mb2-form__field { margin: 0; display: grid; gap: 6px; }
.mb2-form__field label { font-size: var(--fs-sm); font-weight: 500; }
.mb2-form input[type="text"], .mb2-form input[type="tel"], .mb2-form input[type="email"], .mb2-form select, .mb2-form textarea, .mb2-search input {
	width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--c-ink);
	background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius); transition: border-color 0.2s, background-color 0.2s;
}
.mb2-form textarea { resize: vertical; min-height: 140px; }
.mb2-form input:focus, .mb2-form select:focus, .mb2-form textarea:focus, .mb2-search input:focus { outline: none; border-color: var(--c-ink); background: var(--c-white); }
.mb2-form__consent { display: flex !important; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); color: var(--c-ink-2); }
.mb2-form__consent input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--c-ink); }
.mb2-form__consent label { font-weight: 400; }
.mb2-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mb2-form__notice { padding: 14px 16px; margin-bottom: 20px; border-left: 3px solid; font-size: var(--fs-sm); }
.mb2-form__notice--success { border-color: #2f6b45; background: #e7f1ea; }
.mb2-form__notice--error { border-color: #a1352b; background: #f8e7e5; }

.mb2-search { display: flex; gap: 8px; margin: 24px 0 40px; }
.mb2-results { list-style: none; }
.mb2-results li { padding: 24px 0; border-bottom: 1px solid var(--c-line); }
.mb2-404 { min-height: 60vh; }

/* ---------- Lightbox ---------- */
.mb2-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(18, 19, 21, 0.97); color: var(--c-paper); }
.mb2-lightbox[open] { display: grid; place-items: center; }
.mb2-lightbox::backdrop { background: rgba(18, 19, 21, 0.97); }
.mb2-lightbox__figure { margin: 0; padding: 64px 16px; width: 100%; height: 100%; display: grid; place-items: center; }
.mb2-lightbox__figure img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: none; }
.mb2-lightbox .mb2-iconbtn { position: absolute; border-color: var(--c-line-light); color: var(--c-paper); }
.mb2-lightbox .mb2-iconbtn:hover { background: var(--c-paper); color: var(--c-ink); }
.mb2-lightbox__close { top: 16px; right: 16px; }
.mb2-lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.mb2-lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.mb2-lightbox__count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: var(--fs-xs); letter-spacing: 0.1em; margin: 0; }

/* ---------- Comments ---------- */
.mb2-comments { padding-bottom: 64px; }
.mb2-comments__list { list-style: none; }
.mb2-comments .comment-body { padding: 20px 0; border-bottom: 1px solid var(--c-line); }

/* ---------- Reveal on scroll (only when JS adds .js) ---------- */
.js [data-mb2-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-mb2-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.js [data-mb2-reveal] { opacity: 1; transform: none; }
}

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .wp-element-caption { font-size: var(--fs-xs); color: var(--c-muted); }
.sticky, .bypostauthor, .gallery-caption { outline: 0; }

@media print {
	.mb2-header, .mb2-mobilebar, .mb2-cta, .mb2-footer, .mb2-hero__media { display: none !important; }
	body { background: #fff; padding: 0; }
}
.mb2-project__layout + .mb2-section, .mb2-project__video + .mb2-project__gallery { padding-top: 0; }
