/*
Theme Name: Motion House Blocks
Description: Block theme prototype for motionhouse.co.th. The theme only sets the look (fonts, colours, header, footer, layout, effects); every word and picture lives in WordPress pages, posts, menus and patterns.
Version: 0.10.7
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: motionhouse-blocks
*/

/* Header: sticky black bar */
.mh-header { position: sticky; top: 0; z-index: 20; background: rgba(0, 0, 0, .88); backdrop-filter: blur(10px); }
.mh-header .wp-block-site-title a { text-decoration: none; letter-spacing: .08em; }
.mh-header .wp-block-navigation a { opacity: .75; text-decoration: none; }
.mh-header .wp-block-navigation a:hover, .mh-header .wp-block-navigation .current-menu-item > a { opacity: 1; }

/* Language switch (Polylang block): "EN | TH" pill, current language lit */
.mh-header .mh-lang ul { display: flex; gap: 8px; margin: 0; padding: 7px 12px; list-style: none; border: 1px solid rgba(244, 244, 244, .35); border-radius: 999px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.mh-header .mh-lang li + li::before { content: "|"; margin-right: 8px; opacity: .5; }
.mh-header .mh-lang a { text-decoration: none; color: rgba(244, 244, 244, .55); }
.mh-header .mh-lang .current-lang a { color: var(--wp--preset--color--light); }

/* Thai: taller lines (tone marks sit above and below), no wide tracking on labels */
:lang(th) h1, :lang(th) h2, :lang(th) h3, :lang(th) .wp-block-post-title { line-height: 1.35; }
:lang(th) p { line-height: 1.95; }
:lang(th) .is-style-mh-label { letter-spacing: .04em; }

/* Footer: blue band */
.mh-footer a { text-decoration: none; }

/* Small uppercase label (block style "Label" on paragraphs) */
.is-style-mh-label { font-size: 13px !important; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--grey) !important; line-height: 1.2 !important; margin: 0; }

/* Project facts row: label + value pairs */
.mh-facts .wp-block-column > p { margin: 0; }
.mh-facts .wp-block-column > p + p { color: var(--wp--preset--color--light); font-size: 15px; line-height: 1.4; margin-top: 8px; }

/* Chapter heading: number + title on one line */
.mh-chapter-head { align-items: baseline !important; }
.mh-chapter-head .mh-no { color: var(--wp--preset--color--concert); margin: 0; }

/* Emphasis is a brighter colour, not bold */
.wp-block-post-content strong { color: var(--wp--preset--color--light); font-weight: inherit; }

/* Image grids never crop */
.mh-photos.wp-block-gallery.has-nested-images figure.wp-block-image img { object-fit: contain; height: auto; }

/* Cards on lists */
.mh-cards .wp-block-post-featured-image img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.mh-cards .wp-block-post-title a { text-decoration: none; }

/* Fade in: any block given the "Fade in" style fades up when it scrolls into view.
   Visible by default, so nothing disappears if the script does not run. */
.mh-js .is-style-mh-fade { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.mh-js .is-style-mh-fade.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.mh-js .is-style-mh-fade { opacity: 1; transform: none; transition: none; }
}

/* Elementor pages (rendered by Elementor, see functions.php): full width, no theme spacing around them */
.mh-elementor { max-width: none !important; width: auto; }
main:has(> .mh-elementor) { padding-top: 0 !important; }

/* Header logo */
.mh-header .mh-logo { margin: 0; }
.mh-header .mh-logo img { display: block; height: 28px; width: auto; }

/* Page sections used by Home / About / Work with us */
.mh-hero h1 { font-size: clamp(40px, 6vw, 88px); line-height: 1; margin-block: 12px 24px; }
.mh-split > .wp-block-column:first-child { flex: 0 0 30% !important; }
@media (max-width: 781px) { .mh-split > .wp-block-column:first-child { flex-basis: auto !important; } }
.mh-record { list-style: none; padding: 0; margin: 0; }
.mh-record li { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--wp--preset--color--line); }
.mh-record li:first-child { border-top: 1px solid var(--wp--preset--color--line); }
.mh-record .mh-year { color: var(--wp--preset--color--grey); }
.mh-record a { text-decoration: none; }
.mh-record a:hover { text-decoration: underline; }
.mh-contact-band .is-style-mh-label { color: rgba(244, 244, 244, .75) !important; }
.mh-contact-band p, .mh-contact-band a { color: var(--wp--preset--color--light); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border: 1px solid rgba(244, 244, 244, .45); color: var(--wp--preset--color--light); }

/* Blue contact box: always has room inside, even if the pattern loses its inline padding */
.mh-contact-band { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }

/* Space before the footer comes from the page, not the footer: a page that ends with the blue contact box
   runs straight into the blue footer (one block, a thin line between), every other page keeps a gap */
.wp-site-blocks > footer.wp-block-template-part { margin-block-start: 0; }
.wp-site-blocks > main { padding-bottom: var(--wp--preset--spacing--60); }
.wp-site-blocks > main:has(.wp-block-post-content > .mh-contact-band:last-child) { padding-bottom: 0; }
.wp-block-post-content > .mh-contact-band:last-child { margin-bottom: 0; }
/* The thin line sits inside the page width, between the contact box and the bottom row */
.mh-footer { padding-top: 0 !important; }
.mh-footer > .wp-block-group { border-top: 1px solid rgba(244, 244, 244, .22); padding-top: 28px; }

/* Blue contact box (synced pattern "Contact band"): heading left, details stacked right */
.mh-contact-band { padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 120px); }
.mh-contact-band .mh-band-title { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; margin-top: 16px; }
.mh-contact-band a { text-decoration: none; }
.mh-contact-band a:hover { text-decoration: underline; }
.mh-contact-band .mh-detail p:not(.is-style-mh-label) { margin: 8px 0 0; font-size: 18px; line-height: 1.6; }
.mh-contact-band .mh-detail + .mh-detail { margin-top: 28px; }

/* ── Home hero (group "mh-hero" holding the copy and a YouTube embed "mh-hero-video") ── */
.mh-hero { position: relative; min-height: min(100svh, 900px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; margin-top: 0 !important; }
.mh-hero > .mh-hero-video { position: absolute; inset: 0; z-index: -2; margin: 0 !important; max-width: none !important; background: #000 center / cover no-repeat; }
.mh-hero-video .wp-block-embed__wrapper { position: absolute; inset: 0; }
.mh-hero-video .wp-block-embed__wrapper::before { display: none; }
.mh-hero-video iframe { position: absolute; top: 50%; left: 50%; width: max(100%, 177.78vh); height: max(100%, 56.25vw); transform: translate(-50%, -50%) scale(1.15); border: 0; pointer-events: none; opacity: 0; transition: opacity 1s; }
.mh-hero-video iframe.ready { opacity: 1; }
.mh-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .7) 30%, rgba(0, 0, 0, .1) 70%, rgba(0, 0, 0, .45) 100%); pointer-events: none; }
.mh-hero-copy { padding-top: 160px; padding-bottom: 72px; width: 100%; }
.mh-hero-copy h1 { font-size: clamp(34px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -.01em; max-width: 13ch; margin-block: 14px 22px; }
.mh-hero-copy p:not(.is-style-mh-label) { max-width: 54ch; color: #d9dbe2; }
.mh-hero-copy .is-style-mh-label { color: #d9dbe2 !important; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.mh-reel-ctrl { position: absolute; right: 20px; bottom: 40px; display: flex; align-items: center; gap: 12px; }
.mh-reel-label { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #d9dbe2; }
.mh-reel-ctrl button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(244, 244, 244, .45); background: rgba(0, 0, 0, .45); color: var(--wp--preset--color--light); display: grid; place-items: center; cursor: pointer; }
.mh-reel-ctrl .mh-ico { width: 12px; height: 12px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; box-sizing: border-box; }
.mh-reel-ctrl .is-paused .mh-ico { border: 0; border-left: 11px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; width: 0; height: 0; }
@media (max-width: 640px) { .mh-reel-ctrl { top: 92px; bottom: auto; } .mh-reel-label { display: none; } }
.mh-reel-dialog { border: 0; padding: 0; background: #000; width: min(1100px, 94vw); aspect-ratio: 16 / 9; max-height: 86vh; overflow: visible; }
.mh-reel-dialog::backdrop { background: rgba(0, 0, 0, .88); }
.mh-reel-dialog iframe { width: 100%; height: 100%; border: 0; display: block; }
.mh-reel-close { position: absolute; top: -48px; right: 0; background: none; border: 1px solid rgba(244, 244, 244, .45); color: var(--wp--preset--color--light); border-radius: 999px; padding: 8px 16px; cursor: pointer; font: inherit; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .mh-hero-video iframe { transition: none; } }

/* Home: the header sits on the hero, see-through until the page scrolls */
body.home .wp-site-blocks > header.wp-block-template-part { position: fixed; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0; z-index: 30; }
body.home .mh-header { background: transparent; backdrop-filter: none; transition: background .3s; }
body.home .mh-header.is-solid { background: rgba(0, 0, 0, .88); backdrop-filter: blur(10px); }
body.home .wp-site-blocks > main { margin-top: 0; }
body.home .wp-site-blocks > main > .wp-block-post-content > .mh-hero:first-child { margin-top: 0; }

/* ── Work cards (Query Loop "mh-cards"), like the redesign's tiles ── */
.mh-cards .wp-block-post-template { gap: 54px 24px; }
.mh-cards .wp-block-post-featured-image { position: relative; overflow: hidden; margin: 0 0 14px; background: #0b0e18; }
.mh-cards .wp-block-post-featured-image img { transition: transform .6s; }
.mh-cards .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.05); }
.mh-cards .wp-block-post-featured-image::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 6px; background: var(--mh-accent, #6f8cff); }
.mh-card-meta { display: flex; justify-content: space-between; align-items: start; gap: 12px; min-height: 44px; }
.mh-cards .mh-card-title { margin: 0; font-size: 16px !important; font-weight: 600; line-height: 1.35; text-transform: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mh-cards .mh-card-title a { text-decoration: none; }
.mh-kind { font-size: 11px; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--grey); white-space: nowrap; padding-top: 3px; }
.mh-cards .wp-block-post:has(.mh-kind[data-kind="advertisement"]) { --mh-accent: #0033cc; }
.mh-cards .wp-block-post:has(.mh-kind[data-kind="event"]) { --mh-accent: #b08d41; }
.mh-cards .wp-block-post:has(.mh-kind[data-kind="led-billboard"]) { --mh-accent: #d14a68; }
.mh-cards .wp-block-post:has(.mh-kind[data-kind="projection-mapping"]) { --mh-accent: #3bb54a; }
.mh-cards .wp-block-post:has(.mh-kind[data-kind="visual-concert"]) { --mh-accent: #b3b3b3; }
@media (prefers-reduced-motion: reduce) { .mh-cards .wp-block-post-featured-image img { transition: none; } }
.mh-reel-ctrl .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Hero copy lines up with the header's 1320px column at every screen width */
.mh-hero > .mh-hero-copy { box-sizing: border-box; width: 100%; max-width: calc(1320px + 2 * var(--wp--style--root--padding-left, 20px)); margin-inline: auto; }
/* The showreel control lines up with the right edge of the header's 1320px column */
.mh-reel-ctrl { right: max(var(--wp--style--root--padding-right, 20px), calc((100% - 1320px) / 2)); }
/* No language plugin yet: the empty EN/TH slot takes no room, so the menu ends on the column edge */
.mh-header .mh-lang:empty, .mh-header .mh-lang:not(:has(*)) { display: none; }
/* WordPress's own ".wp-embed-responsive .wp-has-aspect-ratio iframe" (top/left 0, 100% size) is more specific
   than the rule above; win over it so the background video stays centred and 16:9, covering the hero */
.mh-hero .mh-hero-video.mh-hero-video iframe {
	position: absolute !important; top: 50% !important; left: 50% !important; right: auto !important; bottom: auto !important;
	width: max(100%, 177.78vh) !important; height: max(100%, 56.25vw) !important;
	transform: translate(-50%, -50%) scale(1.15) !important;
}

/* Fluent Forms submit button (Work with us form): same look as the theme's buttons instead of the plugin's blue/Arial */
.fluentform .ff-btn.ff-btn-submit,
.fluentform .ff-btn.ff-btn-submit:not(.ff_btn_no_style) {
	background: var(--wp--preset--color--blue) !important;
	color: var(--wp--preset--color--light) !important;
	border: 1px solid transparent !important;
	border-radius: 999px !important;
	padding: 15px 24px !important;
	font-family: inherit !important;
	font-size: var(--wp--preset--font-size--label) !important;
	font-weight: 500 !important;
	letter-spacing: .14em !important;
	text-transform: uppercase !important;
	line-height: 1.2 !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color .2s ease;
}
.fluentform .ff-btn.ff-btn-submit:hover,
.fluentform .ff-btn.ff-btn-submit:focus-visible { background: #1a4ae0 !important; color: var(--wp--preset--color--light) !important; opacity: 1 !important; }
.fluentform .ff-btn.ff-btn-submit:focus-visible { outline: 2px solid var(--wp--preset--color--light); outline-offset: 3px; }

/* ── Works pages (category archives): page head, breadcrumb, filter buttons, count — like the redesign ── */
.mh-page-head { position: relative; margin-top: 0 !important; padding-top: clamp(64px, 9vw, 120px); padding-bottom: 56px; margin-bottom: 48px; background: linear-gradient(160deg, var(--wp--preset--color--navy) -20%, var(--wp--preset--color--black) 55%); display: grid; gap: 20px; }
.mh-page-head > * { margin-block: 0 !important; }
.mh-page-head::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--mh-accent, transparent); transition: background-color .45s ease; }
.mh-page-head:not(.mh-accent)::after { background: transparent; }
.mh-cat-advertisement .mh-page-head::after { background: #0033cc; }
.mh-cat-event .mh-page-head::after { background: #b08d41; }
.mh-cat-led-billboard .mh-page-head::after { background: #d14a68; }
.mh-cat-projection-mapping .mh-page-head::after { background: #3bb54a; }
.mh-cat-visual-concert .mh-page-head::after { background: #b3b3b3; }
.mh-cat-other .mh-page-head::after { background: #6f8cff; }
.mh-page-head .mh-head-title { margin: 0; font-size: clamp(24px, 6.2vw, 76px) !important; font-weight: 500; line-height: 1.06; text-transform: uppercase; max-width: 16ch; overflow-wrap: break-word; }
.mh-page-head .mh-head-title b { font-weight: 500; }
.mh-page-head .mh-head-intro p, .mh-page-head .mh-head-intro { margin: 0; max-width: 60ch; color: var(--wp--preset--color--soft); font-size: clamp(16px, 1.5vw, 18px); }
.mh-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--grey); }
.mh-crumbs p { margin: 0; }
.mh-crumbs a { text-decoration: none; color: inherit; }
.mh-crumbs a:hover { color: var(--wp--preset--color--light); }
.mh-crumb-kind:not([hidden]) { display: inline-flex; gap: 8px; }
.mh-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; }
.mh-filters button { font: inherit; font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--light); background: none; border: 1px solid rgba(244, 244, 244, .3); border-radius: 999px; padding: 11px 16px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: background-color .2s, color .2s, border-color .2s; }
.mh-filters button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mh-accent, var(--wp--preset--color--light)); }
.mh-filters button:hover { border-color: rgba(244, 244, 244, .7); }
.mh-filters button[aria-pressed="true"] { background: var(--wp--preset--color--light); color: var(--wp--preset--color--black); border-color: var(--wp--preset--color--light); }
.mh-filters button:focus-visible { outline: 2px solid var(--wp--preset--color--light); outline-offset: 3px; }
.mh-count { color: var(--wp--preset--color--grey); font-size: 14px; margin-top: -20px !important; margin-bottom: 28px !important; }
.mh-filter-grid .wp-block-post-template { transition: opacity .2s ease; }
.mh-filter-grid .wp-block-post[hidden] { display: none !important; }
.mh-cards .wp-block-post:has(.mh-kind[data-kind="other"]) { --mh-accent: #6f8cff; }
@media (max-width: 781px) {
	.mh-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-inline: 0; }
	.mh-filters::-webkit-scrollbar { display: none; }
	.mh-filters button { flex: none; }
}
/* Page head content lines up with the 1320px page column, text left (not centred like a constrained group) */
.mh-page-head.alignfull { padding-left: calc(var(--wp--style--root--padding-left, 20px) + max(0px, (100% - 1320px) / 2)) !important; padding-right: calc(var(--wp--style--root--padding-right, 20px) + max(0px, (100% - 1320px) / 2)) !important; }

/* ── Mobile menu, like the redesign: the header (logo + button) stays, the menu drops down under it,
   one link per row with thin lines, the current page in light blue, the language pill below ──
   The header's blur (backdrop-filter) would trap the fixed menu inside the 80px bar, so it is off while open. */
.mh-header:has(.wp-block-navigation__responsive-container.is-menu-open) { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: #000 !important; }
.mh-header .mh-logo { position: relative; z-index: 2; }
.mh-header .wp-block-navigation__responsive-container.is-menu-open {
	position: fixed; inset: 0; z-index: 1; height: 100dvh; overflow-y: auto;
	padding: 0 var(--wp--style--root--padding-left, 20px) 24px !important;
	animation: none;
}
.mh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog { margin-top: 0; }
.mh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 80px !important; align-items: stretch !important; }
.mh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { flex-direction: column; align-items: stretch !important; gap: 0 !important; width: 100%; }
.mh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--wp--preset--color--line); }
.mh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { display: block; width: 100%; padding: 22px 0 !important; font-size: 18px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.mh-header .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content,
.mh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content[aria-current="page"] { color: #6f8cff; opacity: 1; }
/* the X sits where the menu button was, inside the header bar */
.mh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { position: absolute; top: 28px; right: var(--wp--style--root--padding-right, 20px); }
.mh-header .wp-block-navigation__responsive-container.is-menu-open::after { content: ""; position: absolute; left: 0; right: 0; top: 80px; border-top: 1px solid var(--wp--preset--color--line); }
@media (max-width: 599px) { .mh-header .mh-lang { display: none; } }

/* ── Pages with a gradient page head (About, Works): header on top of the head, like the redesign ── */
body.mh-see-through .wp-site-blocks > header.wp-block-template-part { position: fixed; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0; z-index: 30; }
body.mh-see-through .mh-header { background: transparent; backdrop-filter: none; transition: background .3s; }
body.mh-see-through .mh-header.is-solid { background: rgba(0, 0, 0, .88); backdrop-filter: blur(10px); }
body.mh-see-through .wp-site-blocks > main { margin-top: 0; padding-top: 0 !important; }
body.mh-see-through .mh-page-head { padding-top: 156px; }
body.mh-see-through .wp-block-post-content > .mh-page-head:first-child { margin-top: 0 !important; }
@media (max-width: 781px) { body.mh-see-through .mh-page-head { padding-top: 120px; } }

/* About: Studio / Record columns like the redesign's split (1 : 1.4, 64px apart) */
.mh-split { gap: 32px 64px !important; }
.mh-split > .wp-block-column:first-child { flex: 0 0 calc((100% - 64px) / 2.4) !important; }
.mh-split .wp-block-column:last-child > p { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; color: #e4e5ea; margin: 0 0 18px; }
@media (max-width: 820px) { .mh-split { flex-direction: column; } .mh-split > .wp-block-column:first-child { flex-basis: auto !important; } }
/* Festivals list: year as a small label, roomier rows, line on top */
.mh-record { border-top: 1px solid var(--wp--preset--color--line); }
.mh-record li { grid-template-columns: 90px minmax(0, 1fr); gap: 20px; padding-block: 20px; }
.mh-record li:first-child { border-top: 0; }
.mh-record .mh-year { font-size: 13px; font-weight: 500; line-height: 1.6; letter-spacing: .12em; padding-top: 3px; }
/* Sections divided by a thin line, 96px apart (groups with the class "mh-sec") */
.mh-sec { padding-block: 96px; border-top: 1px solid var(--wp--preset--color--line); }
.mh-sec.mh-flush { border-top: 0; }
/* Team: round photo, then role and nickname in grey, then the name (like the redesign's team grid) */
.mh-sec h2 { margin-top: 14px; }
.mh-team { gap: 48px 40px !important; margin-top: 44px !important; }
.mh-person > * { margin-block: 0 !important; }
.mh-person .mh-team-photo { margin-bottom: 24px !important; }
.mh-person .mh-team-photo img { display: block; width: 160px; max-width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50% !important; }
.mh-person .mh-role, .mh-person .mh-nick { font-size: 17px; line-height: 1.7; color: var(--wp--preset--color--grey); }
.mh-person .mh-nick { margin-top: 2px !important; }
.mh-person .mh-person-name { margin-top: 2px !important; font-size: 19px !important; font-weight: 400; line-height: 1.4; text-transform: none; }
@media (max-width: 781px) { .mh-team { flex-wrap: wrap !important; } .wp-block-columns.mh-team:not(.is-not-stacked-on-mobile) > .wp-block-column.mh-person { flex-basis: calc(50% - 12px) !important; flex-grow: 0 !important; } .mh-team { gap: 40px 24px !important; } }

/* About: sections sit straight under the page head and against each other (lines touch, no extra gaps),
   so the first text starts 96px under the head like the redesign */
.wp-block-post-content > .mh-page-head:has(+ .mh-sec) { margin-bottom: 0 !important; }
.wp-block-post-content > .mh-sec { margin-top: 0 !important; }
.wp-block-post-content > .mh-sec + .mh-contact-band { margin-top: 0 !important; }
/* Contact band: same column split as the About sections, so its details line up with the Studio text */
.mh-contact-band .mh-band-cols { gap: 32px 64px !important; }
.mh-contact-band .mh-band-cols > .wp-block-column:first-child { flex: 0 0 calc((100% - 64px) / 2.4) !important; }
.mh-contact-band .mh-band-cols > .wp-block-column:last-child { flex: 1 1 0 !important; }
@media (max-width: 781px) { .mh-contact-band .mh-band-cols > .wp-block-column:first-child { flex-basis: auto !important; } }
.mh-page-head { align-content: start; } /* extra height (filter.js keeps the tallest version's height) goes below the text */
