/* =========================================================================
   Maqsood Muhammed — Portfolio Experience
   Editorial design system (light, warm neutrals; Cinzel display + Raleway text).
   All selectors are scoped to body.mx-site (added only when the experience is active).
   ========================================================================= */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cinzel-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cinzel-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/raleway-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/raleway-latin-wght-italic.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
body.mx-site {
	--mx-font-display: "Cinzel", "Times New Roman", serif;
	--mx-font-body: "Raleway", "Helvetica Neue", Arial, sans-serif;
	--mx-dark-1: #111111;
	--mx-dark-2: #262626;
	--mx-dark-3: #333333;
	--mx-light-1: #eeece6;
	--mx-light-2: #f2f1ed;
	--mx-light-3: #f7f6f3;
	--mx-sand: #f1e9db;
	--mx-muted: #66645f;          /* labels on light (≥ 4.5:1) */
	--mx-muted-dark: #a3a19b;     /* labels on dark (≥ 4.5:1) */
	--mx-accent: #7d6234;         /* AFM gold, darkened for text on light (≥ 4.85:1 on all light tones) */
	--mx-accent-light: #c2a46b;   /* AFM gold on dark */
	--mx-line: rgba(17, 17, 17, .14);
	--mx-line-dark: rgba(238, 236, 230, .16);
	--mx-ease: cubic-bezier(.22, 1, .36, 1);
	--mx-ease-io: cubic-bezier(.77, 0, .175, 1);
	--mx-header-h: 96px;
	--wp--style--root--padding-left: clamp(20px, 7vw, 120px);
	--wp--style--root--padding-right: clamp(20px, 7vw, 120px);
	/* Point the theme's font presets at our fonts so the theme's own Inter/Cardo files are never requested. */
	--wp--preset--font-family--body: var(--mx-font-body);
	--wp--preset--font-family--heading: var(--mx-font-display);

	background: var(--mx-light-3);
	color: var(--mx-dark-2);
	font-family: var(--mx-font-body);
	font-size: clamp(16px, 0.35vw + 14.8px, 18px);
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
body.mx-site :is(h1, h2, h3, h4, h5, h6) { font-family: var(--mx-font-display); font-weight: 400; color: inherit; letter-spacing: .01em; line-height: 1.15; }
body.mx-site a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
body.mx-site a:hover { color: var(--mx-accent); }
body.mx-site ::selection { background: var(--mx-dark-1); color: var(--mx-light-1); }
body.mx-site img { max-width: 100%; height: auto; }
body.mx-site .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
body.mx-site :focus-visible { outline: 2px solid var(--mx-accent) !important; outline-offset: 3px; }

/* WordPress layout resets for full-bleed sections */
body.mx-site .wp-site-blocks { padding: 0; }
body.mx-site main#mx-main { margin-top: 0 !important; }
body.mx-site .wp-block-post-content > .mx-section,
body.mx-site .wp-block-post-content > .mx-hero { margin-block: 0 !important; }
body.mx-site .wp-block-post-content > :first-child { margin-top: 0 !important; }

/* ---------- Skip link ---------- */
.mx-skip { position: fixed; left: 16px; top: -100px; z-index: 2000; background: var(--mx-dark-1); color: #fff !important; padding: .8rem 1.2rem; font: 600 .8rem/1 var(--mx-font-body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: top .2s; }
.mx-skip:focus { top: 16px; }

/* ---------- Typography helpers ---------- */
body.mx-site .mx-label { font-family: var(--mx-font-body); font-size: .72rem !important; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; line-height: 1.6; color: var(--mx-muted); margin: 0 0 1.6rem !important; }
body.mx-site .mx-dark .mx-label, body.mx-site .mx-dark2 .mx-label, body.mx-site .mx-footer .mx-label { color: var(--mx-muted-dark); }
body.mx-site :is(.mx-dark, .mx-dark2) .mx-sources { color: var(--mx-muted-dark); }
body.mx-site .mx-display { font-size: clamp(2.9rem, 7.2vw, 7.6rem) !important; line-height: 1.04 !important; margin: 0 !important; }
body.mx-site .mx-h1 { font-size: clamp(2.5rem, 5.4vw, 6rem) !important; line-height: 1.08 !important; margin: 0 0 1.5rem !important; }
body.mx-site .mx-h2 { font-size: clamp(2rem, 3.9vw, 4.1rem) !important; line-height: 1.14 !important; margin: 0 0 1.75rem !important; }
body.mx-site .mx-h3 { font-size: clamp(1.45rem, 2.2vw, 2.4rem) !important; line-height: 1.25 !important; margin: 0 0 1rem !important; }
body.mx-site .mx-lead { font-size: clamp(1.06rem, .6vw + .9rem, 1.32rem) !important; line-height: 1.8 !important; max-width: 38em; }
body.mx-site .mx-small { font-size: .9rem !important; line-height: 1.7; color: var(--mx-muted); }
body.mx-site .mx-dark .mx-small, body.mx-site .mx-dark2 .mx-small { color: var(--mx-muted-dark); }
body.mx-site .mx-center { text-align: center; margin-inline: auto; }

/* ---------- Sections ---------- */
body.mx-site .mx-section { position: relative; padding-top: clamp(84px, 11vw, 190px) !important; padding-bottom: clamp(84px, 11vw, 190px) !important; overflow: hidden; }
body.mx-site .mx-light { background: var(--mx-light-1); color: var(--mx-dark-2); }
body.mx-site .mx-light2 { background: var(--mx-light-2); color: var(--mx-dark-2); }
body.mx-site .mx-light3 { background: var(--mx-light-3); color: var(--mx-dark-2); }
body.mx-site .mx-white { background: #fff; color: var(--mx-dark-2); }
body.mx-site .mx-dark { background: var(--mx-dark-1); color: #d6d4ce; }
body.mx-site .mx-dark2 { background: #1a1a1a; color: #d6d4ce; }
body.mx-site :is(.mx-dark, .mx-dark2) :is(h1, h2, h3, h4) { color: var(--mx-light-1); }
body.mx-site :is(.mx-dark, .mx-dark2) a:hover { color: var(--mx-accent-light); }
body.mx-site .mx-section > * { position: relative; z-index: 1; }

/* Giant decorative letters (CSS content with empty alt text so screen readers skip them) */
body.mx-site [class*="mx-letter-"]::before {
	position: absolute; z-index: 0; top: clamp(30px, 6vw, 90px); right: var(--wp--style--root--padding-right);
	font: 400 clamp(14rem, 30vw, 30rem)/.8 var(--mx-font-display); color: rgba(17, 17, 17, .045); pointer-events: none;
}
body.mx-site :is(.mx-dark, .mx-dark2)[class*="mx-letter-"]::before { color: rgba(238, 236, 230, .04); }
body.mx-site .mx-letter-m::before { content: "M" / ""; }
body.mx-site .mx-letter-j::before { content: "J" / ""; }
body.mx-site .mx-letter-v::before { content: "V" / ""; }
body.mx-site .mx-letter-a::before { content: "A" / ""; }
body.mx-site .mx-letter-s::before { content: "S" / ""; }
body.mx-site .mx-letter-left::before { right: auto; left: var(--wp--style--root--padding-left); }

/* ---------- Header ---------- */
.mx-header {
	position: fixed; z-index: 950; inset: 0 0 auto 0; height: var(--mx-header-h);
	display: flex; align-items: center; justify-content: space-between; gap: 2rem;
	padding: 0 var(--wp--style--root--padding-right) 0 var(--wp--style--root--padding-left);
	color: var(--mx-dark-1); transition: transform .6s var(--mx-ease), background-color .4s, height .4s var(--mx-ease), box-shadow .4s;
}
.admin-bar .mx-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mx-header { top: 46px; } }
/* Logo: the signature (image) plus the name as live text at the nav/button size, so it stays readable on every screen. */
.mx-header .mx-logo { display: flex; align-items: center; gap: .8rem; color: inherit; text-decoration: none; line-height: 1; }
.mx-header .mx-logo img { width: auto; height: clamp(32px, 3.2vw, 46px); filter: invert(1); transition: filter .4s; }
.mx-logo__name { font: 600 .74rem/1 var(--mx-font-body); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 359px) { .mx-header .mx-logo { gap: .55rem; } .mx-logo__name { letter-spacing: .12em; } }
.mx-nav ul { list-style: none; display: flex; gap: clamp(1.4rem, 2.6vw, 2.8rem); margin: 0; padding: 0; }
.mx-nav a { position: relative; display: inline-block; padding: .4rem 0; color: inherit; text-decoration: none; font: 600 .74rem/1 var(--mx-font-body); letter-spacing: .2em; text-transform: uppercase; }
.mx-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--mx-ease); }
.mx-nav a:hover::after, .mx-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.mx-nav a:hover { color: inherit; }
html.mx-scrolled .mx-header { height: 74px; background: rgba(247, 246, 243, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--mx-line); }
html.mx-header-hidden:not(.mx-menu-open) .mx-header { transform: translateY(-110%); }
html.mx-hero-dark:not(.mx-scrolled):not(.mx-menu-open) .mx-header { color: var(--mx-light-1); }
html.mx-hero-dark:not(.mx-scrolled):not(.mx-menu-open) .mx-header .mx-logo img { filter: none; }

.mx-burger { display: none; position: relative; width: 48px; height: 48px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.mx-burger__line { position: absolute; right: 4px; height: 1.5px; background: currentColor; transition: transform .5s var(--mx-ease), width .5s var(--mx-ease), top .5s var(--mx-ease); }
.mx-burger__line:nth-child(1) { top: 19px; width: 40px; }
.mx-burger__line:nth-child(2) { top: 28px; width: 28px; }
.mx-burger:hover .mx-burger__line:nth-child(2) { width: 40px; }
html.mx-menu-open .mx-burger__line:nth-child(1) { top: 24px; width: 36px; transform: rotate(45deg); }
html.mx-menu-open .mx-burger__line:nth-child(2) { top: 24px; width: 36px; transform: rotate(-45deg); }

@media (max-width: 1023px) {
	.mx-nav { display: none; }
	.mx-burger { display: block; }
	body.mx-site { --mx-header-h: 76px; }
}

/* ---------- Full-screen menu ---------- */
.mx-menu { position: fixed; inset: 0; z-index: 940; background: var(--mx-light-1); color: var(--mx-dark-1); display: flex; align-items: center; padding: calc(var(--mx-header-h) + 2rem) var(--wp--style--root--padding-right) 3rem var(--wp--style--root--padding-left); overflow-y: auto; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .9s var(--mx-ease-io), visibility 0s linear .9s; }
.mx-menu[hidden] { display: flex; visibility: hidden; }
html.mx-menu-open .mx-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--mx-ease-io), visibility 0s; }
.mx-menu__inner { width: 100%; display: grid; gap: 3rem; }
.mx-menu__nav ol { list-style: none; margin: 0; padding: 0; }
.mx-menu__nav li { overflow: hidden; }
.mx-menu__nav a { display: inline-flex; align-items: baseline; gap: 1.2rem; color: inherit; text-decoration: none; font: 400 clamp(2.3rem, 7vw, 5.2rem)/1.2 var(--mx-font-display); transform: translateY(110%); transition: transform .9s var(--mx-ease) calc(.25s + var(--i) * .07s), color .3s; }
.mx-menu__nav a:hover { color: var(--mx-accent); }
.mx-menu__num { font: 600 .72rem/1 var(--mx-font-body); letter-spacing: .2em; color: var(--mx-muted); }
html.mx-menu-open .mx-menu__nav a { transform: none; }
.mx-menu__info { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; font-size: .95rem; opacity: 0; transition: opacity .8s .6s; }
html.mx-menu-open .mx-menu__info { opacity: 1; }
.mx-menu__info p { margin: 0; }
.mx-menu__info .mx-label { margin-bottom: .6rem !important; color: var(--mx-muted) !important; }
.mx-menu__social { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
@media (min-width: 1024px) { .mx-menu__inner { grid-template-columns: 1.3fr 1fr; align-items: end; } }

/* ---------- Page curtain ---------- */
.mx-curtain { position: fixed; inset: 0; z-index: 1500; background: var(--mx-dark-1); display: grid; place-items: center; transform: translateY(-101%); border-bottom-left-radius: 50% 0; border-bottom-right-radius: 50% 0; pointer-events: none; transition: transform 1s var(--mx-ease-io), border-radius 1s var(--mx-ease-io); }
.mx-curtain__mark { width: 120px; opacity: 0; transition: opacity .4s; }
.mx-curtain__mark img { width: 100%; height: auto; }
html.mx-loading .mx-curtain { transform: none; transition: none; }
html.mx-loading .mx-curtain__mark { opacity: 1; }
html:not(.mx-loading) .mx-curtain { border-bottom-left-radius: 50% 14vh; border-bottom-right-radius: 50% 14vh; }
html.mx-leaving .mx-curtain { animation: mx-curtain-in .75s var(--mx-ease-io) forwards; pointer-events: all; }
html.mx-leaving .mx-curtain__mark { opacity: 1; transition-delay: .35s; }
@keyframes mx-curtain-in { from { transform: translateY(101%); border-radius: 50% 50% 0 0 / 14vh 14vh 0 0; } to { transform: none; border-radius: 0; } }

/* ---------- Cursor & floating preview ---------- */
.mx-cursor, .mx-float { display: none; }
@media (hover: hover) and (pointer: fine) {
	html.mx-js .mx-cursor { display: grid; place-items: center; position: fixed; z-index: 1400; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1px solid #fff; border-radius: 50%; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: width .4s var(--mx-ease), height .4s var(--mx-ease), margin .4s var(--mx-ease), opacity .3s, background-color .3s; }
	html.mx-js .mx-cursor.is-visible { opacity: 1; }
	html.mx-js .mx-cursor.is-hover { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
	html.mx-js .mx-cursor.has-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: #fff; }
	.mx-cursor__label { font: 600 .66rem/1 var(--mx-font-body); letter-spacing: .18em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .3s; }
	.mx-cursor.has-label .mx-cursor__label { opacity: 1; }
	html.mx-js .mx-float { display: grid; place-items: center; position: fixed; z-index: 1300; left: 0; top: 0; width: 300px; height: 190px; margin: -95px 0 0 -150px; background: #fff; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); pointer-events: none; opacity: 0; transform: scale(.85); transition: opacity .35s, transform .5s var(--mx-ease); }
	html.mx-js .mx-float.is-active { opacity: 1; transform: none; }
	.mx-float img { max-width: 72%; max-height: 62%; object-fit: contain; filter: brightness(0); }
}

/* ---------- Hero (split) ---------- */
body.mx-site .mx-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100svh; padding: 0 !important; margin-block: 0 !important; }
body.mx-site .mx-hero > * { max-width: none !important; margin: 0 !important; }
body.mx-site .mx-hero .mx-display { font-size: clamp(2.6rem, 5.2vw, 6.2rem) !important; }
body.mx-site .mx-hero__panel { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: right; background: var(--mx-light-1); padding: calc(var(--mx-header-h) + 3rem) clamp(24px, 6vw, 120px) 7rem var(--wp--style--root--padding-left) !important; position: relative; }
body.mx-site .mx-hero__panel > * { max-width: 34rem; margin-left: auto !important; margin-right: 0 !important; }
body.mx-site .mx-hero__media { position: relative; display: flex; align-items: flex-end; justify-content: center; background: var(--mx-light-3); padding: calc(var(--mx-header-h) + 2rem) clamp(24px, 6vw, 110px) 0 !important; overflow: hidden; }
body.mx-site .mx-hero__media figure { margin: 0 !important; width: 100%; max-width: 560px; }
body.mx-site .mx-hero__media img { width: 100%; height: auto; display: block; }
body.mx-site .mx-hero--photo .mx-hero__media { align-items: center; padding-bottom: 4rem !important; }
body.mx-site .mx-hero--photo .mx-hero__media img { aspect-ratio: 4 / 5; object-fit: cover; }
/* Cut-out portraits: on laptops, desktops and TVs the photo is sized by screen height and sits on the bottom edge,
   instead of a fixed 560 px width (capped at 1700 px so large TVs never upscale it). */
@media (min-width: 901px) {
	body.mx-site .mx-hero:not(.mx-hero--photo) .mx-hero__media { padding: var(--mx-header-h) clamp(16px, 3vw, 64px) 0 !important; }
	body.mx-site .mx-hero:not(.mx-hero--photo) .mx-hero__media figure { width: auto; max-width: 100%; }
	body.mx-site .mx-hero:not(.mx-hero--photo) .mx-hero__media img { width: auto; max-width: 100%; height: min(86vh, 1700px); height: min(86svh, 1700px); object-fit: contain; object-position: 50% 100%; }
}
/* Short laptop screens (e.g. 1280×720, 1366×768): tighten the text column so the whole hero fits on one screen. */
@media (min-width: 901px) and (max-height: 820px) {
	body.mx-site .mx-hero__panel { padding-top: calc(var(--mx-header-h) + .75rem) !important; padding-bottom: 2rem !important; }
	body.mx-site .mx-hero .mx-display { font-size: clamp(2.4rem, min(5.2vw, 8.6vh), 6.2rem) !important; }
	body.mx-site .mx-hero .mx-lead { margin-top: 1.2rem !important; }
	body.mx-site .mx-hero .mx-arrow { margin-top: 1.6rem !important; }
	body.mx-site .mx-hero .mx-scrolldown { margin-top: 1.4rem !important; }
	body.mx-site .mx-hero .mx-scrolldown a { width: 96px; height: 96px; }
}
body.mx-site .mx-hero .mx-lead { margin-top: 1.8rem !important; }
body.mx-site .mx-hero.mx-dark .mx-hero__panel { background: var(--mx-dark-1); color: #d6d4ce; }
body.mx-site .mx-hero.mx-dark .mx-hero__media { background: #1a1a1a; }
@media (max-width: 900px) {
	body.mx-site .mx-hero { grid-template-columns: 1fr; min-height: 0; }
	body.mx-site .mx-hero__panel { align-items: flex-start; text-align: left; padding: calc(var(--mx-header-h) + 3rem) var(--wp--style--root--padding-right) 4rem var(--wp--style--root--padding-left) !important; }
	body.mx-site .mx-hero__panel > * { margin-left: 0 !important; }
	body.mx-site .mx-hero__media { padding-top: 3rem !important; }
	body.mx-site .mx-hero__media figure { max-width: 420px; }
}

/* Scroll-down ring */
body.mx-site .mx-scrolldown { margin: 3.5rem 0 0 !important; }
body.mx-site .mx-scrolldown a { position: relative; display: inline-grid; place-items: center; width: 118px; height: 118px; color: inherit; text-decoration: none; font: 600 .62rem/1 var(--mx-font-body); letter-spacing: .2em; text-transform: uppercase; }
.mx-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: mx-spin 14s linear infinite; }
.mx-ring text { font: 600 9.5px var(--mx-font-body); letter-spacing: 3.2px; text-transform: uppercase; fill: currentColor; }
.mx-mouse { width: 22px; height: 34px; border: 1.5px solid currentColor; border-radius: 12px; position: relative; }
.mx-mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; background: currentColor; border-radius: 2px; animation: mx-wheel 1.8s var(--mx-ease) infinite; }
@keyframes mx-spin { to { transform: rotate(360deg); } }
@keyframes mx-wheel { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px); } }

/* ---------- Arrow links (circle + line) ---------- */
body.mx-site .mx-arrow { margin-top: 2.5rem !important; }
body.mx-site .mx-arrow a { display: inline-flex; align-items: center; gap: 1.1rem; color: inherit; text-decoration: none; font: 600 .74rem/1 var(--mx-font-body); letter-spacing: .2em; text-transform: uppercase; }
body.mx-site .mx-arrow a::before {
	content: ""; width: 76px; height: 56px; flex: none; background: currentColor; transition: transform .6s var(--mx-ease);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 56'%3E%3Ccircle cx='48' cy='28' r='27' fill='none' stroke='%23000' stroke-opacity='.45'/%3E%3Cpath d='M0 28h64M58 22l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.3'/%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 76 56'%3E%3Ccircle cx='48' cy='28' r='27' fill='none' stroke='%23000' stroke-opacity='.45'/%3E%3Cpath d='M0 28h64M58 22l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.mx-site .mx-arrow a:hover::before { transform: translateX(10px); }
body.mx-site .mx-arrow.mx-center, body.mx-site .mx-arrow.has-text-align-center { text-align: center; }

/* ---------- Intro & stats ---------- */
body.mx-site .mx-stats { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 !important; margin-top: clamp(3rem, 7vw, 6rem) !important; border-top: 1px solid var(--mx-line); }
body.mx-site .mx-stat { margin: 0 !important; padding: 2rem 1.5rem 0 0 !important; }
body.mx-site .mx-stat .mx-num { font: 400 clamp(2.8rem, 4.6vw, 4.6rem)/1 var(--mx-font-display) !important; margin: 0 0 .9rem !important; color: var(--mx-dark-1); }
body.mx-site .mx-stat p:not(.mx-num) { font-size: .9rem !important; line-height: 1.6; color: var(--mx-muted); margin: 0 !important; }

/* ---------- Quote ---------- */
body.mx-site .mx-quote { border: 0 !important; padding: 0 !important; margin: 0 auto !important; max-width: 62rem; text-align: center; background: none !important; border-radius: 0 !important; box-shadow: none !important; }
body.mx-site .mx-quote p { font: 300 clamp(1.55rem, 3.1vw, 3rem)/1.45 var(--mx-font-body) !important; letter-spacing: -.005em; color: var(--mx-light-1); margin: 0 !important; }
body.mx-site .mx-light .mx-quote p, body.mx-site .mx-light2 .mx-quote p, body.mx-site .mx-light3 .mx-quote p { color: var(--mx-dark-1); }
body.mx-site .mx-quote cite { display: block; margin-top: 2.2rem; font: 600 .74rem/1.6 var(--mx-font-body); font-style: normal; letter-spacing: .22em; text-transform: uppercase; color: var(--mx-muted-dark); }
body.mx-site .mx-light .mx-quote cite { color: var(--mx-muted); }
body.mx-site .mx-quote::before { content: "\201C" / ""; display: block; font: 400 7rem/0.6 var(--mx-font-display); color: var(--mx-accent-light); margin-bottom: 1.2rem; }

/* ---------- Full-bleed image band ---------- */
body.mx-site .mx-band { padding: 0 !important; margin-block: 0 !important; }
body.mx-site .mx-band figure { position: relative; margin: 0 !important; height: clamp(320px, 62vw, 860px); max-width: none !important; }
body.mx-site .mx-band img, body.mx-site .mx-band video { width: 100%; height: 100%; object-fit: cover; display: block; }
body.mx-site .mx-band video { background: var(--mx-dark-1); }
body.mx-site .mx-band.mx-band--video figcaption { right: calc(var(--wp--style--root--padding-right) + 184px); transition: opacity .3s; }
/* Band captions (drawn by script from the video's caption track), centred just above the buttons. */
body.mx-site .mx-vidcue { position: absolute; left: 50%; bottom: calc(1.1rem + 64px); z-index: 2; width: max-content; max-width: min(46rem, calc(100% - 2 * var(--wp--style--root--padding-left))); margin: 0; transform: translateX(-50%); text-align: center; pointer-events: none; }
body.mx-site .mx-vidcue[hidden] { display: none; }
body.mx-site .mx-vidcue span { padding: .2em .5em; font: 500 clamp(1rem, .55rem + .75vw, 1.5rem)/1.6 "Raleway", Arial, sans-serif; white-space: pre-line; color: #fff; background: rgba(17, 17, 17, .72); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (max-width: 600px) {
	body.mx-site .mx-band.mx-band--video figcaption { right: var(--wp--style--root--padding-right); bottom: calc(1.1rem + 60px); }
	body.mx-site .mx-band.mx-band--video :is(.is-cc, .is-held, .is-quiet) figcaption { opacity: 0; }
	body.mx-site .mx-vidcue { bottom: calc(1.1rem + 60px); }
	body.mx-site .mx-vidcue span { font-size: .95rem; }
}
/* Band controls (added by script; pause is required for moving content longer than 5 s): captions, sound, play/pause. */
.mx-vidbar { position: absolute; right: var(--wp--style--root--padding-right); bottom: 1.1rem; z-index: 2; display: flex; gap: .6rem; }
.mx-vidbtn { position: relative; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .75); border-radius: 50%; background: rgba(17, 17, 17, .4); color: #fff; cursor: pointer; transition: background-color .3s, border-color .3s; }
.mx-vidbtn:hover { background: rgba(17, 17, 17, .65); border-color: #fff; }
body.mx-site .mx-vidbtn:focus-visible { outline-color: #fff !important; }
.mx-vidbtn--cc { font: 700 .72rem/1 "Raleway", Arial, sans-serif; letter-spacing: .06em; }
.mx-vidbtn--cc[aria-pressed="true"] { background: #fff; color: var(--mx-dark-1); border-color: #fff; }
.mx-vidbtn__off { display: none; }
.mx-vidbtn--sound.is-muted .mx-vidbtn__waves { display: none; }
.mx-vidbtn--sound.is-muted .mx-vidbtn__off { display: inline; }
/* Captions on every site video (band, feature, "More moments"). */
body.mx-site video::cue { font: 500 1rem/1.4 "Raleway", Arial, sans-serif; color: #fff; background: rgba(17, 17, 17, .72); }
.mx-vidtoggle::before, .mx-vidtoggle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 3px; height: 14px; margin-top: -7px; background: currentColor; }
.mx-vidtoggle::before { margin-left: -5px; }
.mx-vidtoggle::after { margin-left: 2px; }
.mx-vidtoggle.is-paused::before { width: 0; height: 0; margin: -8px 0 0 -4px; background: none; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; }
.mx-vidtoggle.is-paused::after { display: none; }
/* Centre button on the band: "Turn sound on" (speaker) while the browser makes it play silently; "Play with sound" (play) when paused. */
.mx-vidplay { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; justify-items: center; gap: 1rem; padding: .5rem; border: 0; background: none; color: #fff; cursor: pointer; transform: translate(-50%, -50%); transition: opacity .45s, visibility .45s; }
.mx-band figure:not(.is-held):not(.is-quiet) .mx-vidplay { opacity: 0; visibility: hidden; }
.mx-vidplay__icon svg { display: none; width: 30px; height: 30px; }
.is-quiet .mx-vidplay__icon::before { display: none; }
.is-quiet .mx-vidplay__icon svg { display: block; }
.mx-vidplay__icon { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border: 1px solid rgba(255, 255, 255, .85); border-radius: 50%; background: rgba(17, 17, 17, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background-color .3s, transform .5s var(--mx-ease); }
.mx-vidplay__icon::before { content: ""; margin-left: 6px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent currentColor; }
.mx-vidplay__icon::after { content: ""; position: absolute; inset: -1px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; animation: mx-vidplay-ring 2.4s var(--mx-ease) infinite; }
@keyframes mx-vidplay-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.mx-vidplay__label { padding: .75em 1.15em .75em 1.35em; font: 600 .74rem/1 var(--mx-font-body); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; background: rgba(17, 17, 17, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.mx-vidplay:hover .mx-vidplay__icon { background: rgba(17, 17, 17, .65); transform: scale(1.05); }
body.mx-site .mx-vidplay:focus-visible { outline-color: #fff !important; }
@media (max-width: 600px) { .mx-vidplay { top: 43%; gap: .75rem; } .mx-vidplay__icon { width: 72px; height: 72px; } }
@media (prefers-reduced-motion: reduce) { .mx-vidplay__icon::after { animation: none; opacity: 0; } }
body.mx-site .mx-band figcaption { position: absolute; left: var(--wp--style--root--padding-left); bottom: 1.6rem; margin: 0; font: 600 .7rem/1.5 var(--mx-font-body); letter-spacing: .18em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }

/* ---------- Milestones strip ---------- */
body.mx-site .mx-milestones { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 !important; margin-top: clamp(2.5rem, 6vw, 5rem) !important; border-top: 1px solid var(--mx-line); }
body.mx-site .mx-milestone { margin: 0 !important; padding: 2rem 1.75rem 0 0 !important; position: relative; }
body.mx-site .mx-milestone::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--mx-accent); }
body.mx-site .mx-milestone .mx-year { font: 400 clamp(1.9rem, 2.6vw, 2.6rem)/1 var(--mx-font-display) !important; margin: 0 0 1rem !important; color: var(--mx-dark-1); }
body.mx-site .mx-milestone h3 { font-size: 1.05rem !important; font-family: var(--mx-font-body) !important; font-weight: 700 !important; letter-spacing: .02em; margin: 0 0 .5rem !important; }
body.mx-site .mx-milestone p:not(.mx-year) { font-size: .95rem !important; line-height: 1.65; margin: 0 !important; color: #3d3c39; }

/* ---------- Ventures list (hover reveal) ---------- */
body.mx-site .mx-vlist { margin-top: clamp(2.5rem, 6vw, 5rem) !important; border-top: 1px solid var(--mx-line); }
body.mx-site :is(.mx-dark, .mx-dark2) .mx-vlist { border-color: var(--mx-line-dark); }
body.mx-site .mx-vrow { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .3rem 2rem !important; padding: clamp(1.4rem, 2.6vw, 2.4rem) 0 !important; margin: 0 !important; border-bottom: 1px solid var(--mx-line); transition: opacity .5s; }
body.mx-site :is(.mx-dark, .mx-dark2) .mx-vrow { border-color: var(--mx-line-dark); }
body.mx-site .mx-vrow > * { margin: 0 !important; }
body.mx-site .mx-vrow figure { display: none; }
body.mx-site .mx-vname { font-size: clamp(1.6rem, 3.6vw, 3.6rem) !important; line-height: 1.1 !important; transition: transform .6s var(--mx-ease); }
body.mx-site .mx-vname a { text-decoration: none; }
body.mx-site .mx-vsector { font: 600 .7rem/1.5 var(--mx-font-body) !important; letter-spacing: .22em; text-transform: uppercase; color: var(--mx-muted); text-align: right; }
body.mx-site :is(.mx-dark, .mx-dark2) .mx-vsector { color: var(--mx-muted-dark); }
body.mx-site .mx-vdesc { grid-column: 1 / -1; max-width: 46rem; font-size: .98rem !important; line-height: 1.75; opacity: .85; }
body.mx-site .mx-vlinks { grid-column: 1 / -1; font: 600 .7rem/1.6 var(--mx-font-body) !important; letter-spacing: .2em; text-transform: uppercase; }
body.mx-site .mx-vlinks a { margin-right: 1.6rem; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .15rem; }
@media (hover: hover) and (pointer: fine) {
	body.mx-site .mx-vlist:hover .mx-vrow { opacity: .35; }
	body.mx-site .mx-vlist:hover .mx-vrow:hover { opacity: 1; }
	body.mx-site .mx-vrow:hover .mx-vname { transform: translateX(1.4rem); }
}
@media (max-width: 781px) {
	body.mx-site .mx-vrow { grid-template-columns: 1fr; }
	body.mx-site .mx-vsector { text-align: left; }
	body.mx-site .mx-vrow figure { display: block; order: -1; margin-bottom: .6rem !important; }
	body.mx-site .mx-vrow figure img { max-height: 46px; width: auto; filter: brightness(0); opacity: .75; }
	body.mx-site :is(.mx-dark, .mx-dark2) .mx-vrow figure img { filter: brightness(0) invert(1); }
}

/* ---------- Generic list rows (recognition, press, timeline index) ---------- */
body.mx-site .mx-list { margin-top: clamp(2rem, 5vw, 4rem) !important; border-top: 1px solid var(--mx-line); }
body.mx-site :is(.mx-dark, .mx-dark2) .mx-list { border-color: var(--mx-line-dark); }
body.mx-site .mx-row { display: grid !important; grid-template-columns: minmax(120px, 210px) minmax(0, 1fr) minmax(0, 220px); gap: .4rem 2.5rem !important; align-items: baseline; padding: 1.7rem 0 !important; margin: 0 !important; border-bottom: 1px solid var(--mx-line); }
body.mx-site :is(.mx-dark, .mx-dark2) .mx-row { border-color: var(--mx-line-dark); }
body.mx-site .mx-row > * { margin: 0 !important; }
body.mx-site .mx-row .mx-k { font: 600 .72rem/1.5 var(--mx-font-body) !important; letter-spacing: .2em; text-transform: uppercase; color: var(--mx-accent); }
body.mx-site :is(.mx-dark, .mx-dark2) .mx-row .mx-k { color: var(--mx-accent-light); }
body.mx-site .mx-row .mx-t { font: 400 clamp(1.12rem, 1.5vw, 1.5rem)/1.4 var(--mx-font-display) !important; }
body.mx-site .mx-row .mx-t a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--mx-ease); }
body.mx-site .mx-row .mx-t a:hover { background-size: 100% 1px; }
body.mx-site .mx-row .mx-m { font-size: .88rem !important; line-height: 1.6; color: var(--mx-muted); text-align: right; }
body.mx-site :is(.mx-dark, .mx-dark2) .mx-row .mx-m { color: var(--mx-muted-dark); }
body.mx-site .wp-block-column .mx-row { grid-template-columns: minmax(96px, 150px) minmax(0, 1fr); }
body.mx-site .wp-block-column .mx-row .mx-m { grid-column: 2; text-align: left; }
@media (max-width: 781px) {
	body.mx-site .mx-row, body.mx-site .wp-block-column .mx-row { grid-template-columns: 1fr; }
	body.mx-site .mx-row .mx-m, body.mx-site .wp-block-column .mx-row .mx-m { grid-column: auto; text-align: left; }
}

/* ---------- Chapters (journey) ---------- */
body.mx-site .mx-chapters { counter-reset: mx-chapter; padding: 0 !important; margin-block: 0 !important; }
body.mx-site .mx-chapters > * { margin-block: 0 !important; }
body.mx-site .mx-chapter { counter-increment: mx-chapter; }
body.mx-site .mx-chapter::after {
	content: counter(mx-chapter, upper-roman) / ""; position: absolute; z-index: 0; top: clamp(20px, 4vw, 60px); right: var(--wp--style--root--padding-right);
	font: 400 clamp(9rem, 22vw, 22rem)/.8 var(--mx-font-display); color: rgba(17, 17, 17, .05); pointer-events: none;
}
body.mx-site :is(.mx-dark, .mx-dark2).mx-chapter::after { color: rgba(238, 236, 230, .045); }
body.mx-site .mx-chapter:nth-child(even)::after { right: auto; left: var(--wp--style--root--padding-left); }
body.mx-site .mx-chapter .wp-block-columns { gap: clamp(2rem, 6vw, 7rem) !important; align-items: center !important; }
body.mx-site .mx-chapter figure { margin: 0 !important; }
body.mx-site .mx-chapter p:not(.mx-label) { font-size: clamp(1.02rem, .35vw + .95rem, 1.16rem); }
body.mx-site .mx-pullquote { font: 300 clamp(1.25rem, 1.9vw, 1.7rem)/1.55 var(--mx-font-body) !important; border-left: 1px solid var(--mx-accent); padding-left: 1.5rem !important; margin: 2rem 0 !important; }
body.mx-site .mx-caption, body.mx-site figure figcaption { font-size: .78rem !important; letter-spacing: .06em; color: var(--mx-muted); margin-top: .9rem !important; text-align: left; }
body.mx-site :is(.mx-dark, .mx-dark2) figure figcaption { color: var(--mx-muted-dark); }

/* ---------- Timeline ---------- */
body.mx-site .mx-timeline { position: relative; margin-top: clamp(2.5rem, 6vw, 5rem) !important; padding-left: clamp(1.5rem, 3vw, 3rem) !important; }
body.mx-site .mx-timeline::before { content: ""; position: absolute; left: 0; top: .6rem; bottom: .6rem; width: 1px; background: var(--mx-line); }
body.mx-site .mx-timeline::after { content: ""; position: absolute; left: 0; top: .6rem; width: 1px; height: calc((100% - 1.2rem) * var(--mx-progress, 0)); background: var(--mx-accent); }
body.mx-site .mx-tl { position: relative; display: grid !important; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr); gap: .3rem 2.5rem !important; padding: 0 0 2.6rem !important; margin: 0 !important; }
body.mx-site .mx-tl::before { content: ""; position: absolute; left: calc(-1 * clamp(1.5rem, 3vw, 3rem) - 4px); top: .55rem; width: 9px; height: 9px; border-radius: 50%; background: var(--mx-light-1); border: 1px solid var(--mx-accent); }
body.mx-site .mx-tl > * { margin: 0 !important; }
body.mx-site .mx-tl .mx-when { font: 600 .74rem/1.9 var(--mx-font-body) !important; letter-spacing: .2em; text-transform: uppercase; color: var(--mx-accent); }
body.mx-site .mx-tl .mx-what { font-size: 1.02rem !important; line-height: 1.7; }
body.mx-site .mx-tl .mx-what a { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-left: .5rem; white-space: nowrap; }
@media (max-width: 640px) { body.mx-site .mx-tl { grid-template-columns: 1fr; } }

/* ---------- Principles ---------- */
body.mx-site .mx-principles { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 !important; margin-top: clamp(2.5rem, 6vw, 5rem) !important; border-top: 1px solid var(--mx-line-dark); }
body.mx-site .mx-principle { margin: 0 !important; padding: 2.4rem 2.2rem 0 0 !important; }
body.mx-site .mx-principle h3 { font-size: clamp(1.4rem, 2vw, 2rem) !important; margin: 0 0 1rem !important; }
body.mx-site .mx-principle p { margin: 0 !important; line-height: 1.75; }

/* ---------- Gallery ---------- */
body.mx-site .mx-gallery { columns: 3 300px; column-gap: clamp(1rem, 2vw, 2rem); margin-top: clamp(2.5rem, 6vw, 5rem) !important; }
body.mx-site .mx-gallery > * { break-inside: avoid; margin: 0 0 clamp(1rem, 2vw, 2rem) !important; }
body.mx-site .mx-gallery figure { margin: 0 !important; overflow: hidden; }
body.mx-site .mx-gallery figure a { display: block; overflow: hidden; }
body.mx-site .mx-gallery img { display: block; width: 100%; transition: transform 1.2s var(--mx-ease), filter .6s; filter: grayscale(.25); }
body.mx-site .mx-gallery figure:hover img { transform: scale(1.05); filter: none; }
body.mx-site .mx-gallery figcaption { font-size: .8rem !important; line-height: 1.6; }

/* ---------- Film ---------- */
body.mx-site .mx-film figure { margin: clamp(2.5rem, 5vw, 4rem) 0 0 !important; }
body.mx-site .mx-film video { width: 100%; display: block; background: #000; }

/* ---------- More moments: poster cards that open a full-screen viewer ---------- */
body.mx-site .mx-reels__title { margin: clamp(3.5rem, 7vw, 6rem) 0 1.75rem !important; }
body.mx-site .mx-reels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
@media (max-width: 1023px) { body.mx-site .mx-reels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.mx-site .mx-reel { position: relative; margin: 0 !important; }
/* !important: WordPress adds an inline aspect-ratio (the video's own shape) to every video; cards use one shared 4:5 shape. */
body.mx-site .mx-reel video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5 !important; object-fit: cover; background: #000; filter: grayscale(.25); transition: filter .6s var(--mx-ease); }
body.mx-site .mx-reel:hover video { filter: none; }
body.mx-site .mx-reel figcaption { margin: 1rem 0 0 !important; font-size: .82rem !important; line-height: 1.6; color: var(--mx-muted-dark); text-align: left; }
body.mx-site .mx-reel figcaption strong { display: block; margin-bottom: .3rem; font: 400 1.12rem/1.35 var(--mx-font-display); color: var(--mx-light-1); }
body.mx-site .mx-reel figcaption a { color: var(--mx-light-1); }
.mx-reel__play { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: linear-gradient(to top, rgba(17, 17, 17, .5), rgba(17, 17, 17, 0) 45%); color: #fff; cursor: pointer; }
.mx-reel__play::before { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 1px solid rgba(255, 255, 255, .85); border-radius: 50%; transition: transform .5s var(--mx-ease), background-color .3s; }
.mx-reel__play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -5px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent currentColor; }
.mx-reel:hover .mx-reel__play::before, .mx-reel__play:focus-visible::before { transform: scale(1.12); background: rgba(255, 255, 255, .14); }
body.mx-site .mx-reel__play:focus-visible { outline-color: #fff !important; outline-offset: -6px; }
/* Viewer */
.mx-theatre { position: fixed; inset: 0; z-index: 1600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 4.5rem 4vw 2rem; background: rgba(12, 12, 12, .96); opacity: 0; transition: opacity .4s var(--mx-ease); }
.mx-theatre[hidden] { display: none; }
.mx-theatre.is-open { opacity: 1; }
.mx-theatre video { display: block; width: min(92vw, calc((100vh - 10rem) * var(--mx-ar, 1.7778))); width: min(92vw, calc((100svh - 10rem) * var(--mx-ar, 1.7778))); height: auto; aspect-ratio: var(--mx-ar, 1.7778); object-fit: contain; background: #000; }
.mx-theatre__caption { margin: 0; max-width: 62ch; text-align: center; font: 400 .88rem/1.6 var(--mx-font-body); color: #c9c7c1; }
.mx-theatre__caption strong { display: block; font: 400 1.25rem/1.35 var(--mx-font-display); color: #fff; }
.mx-theatre__caption a { color: #fff; }
.mx-theatre__close { position: absolute; top: 1.2rem; right: 1.2rem; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.mx-theatre__close::before, .mx-theatre__close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; margin: -.75px 0 0 -9px; background: currentColor; transform: rotate(45deg); }
.mx-theatre__close::after { transform: rotate(-45deg); }
body.mx-site .mx-theatre :focus-visible { outline-color: #fff !important; }
html.mx-theatre-open, html.mx-theatre-open body { overflow: hidden; }
/* Logged-in editors: keep the close button clear of the WordPress admin bar. */
.admin-bar .mx-theatre { padding-top: calc(4.5rem + 32px); }
.admin-bar .mx-theatre__close { top: calc(1.2rem + 32px); }
@media (max-width: 782px) { .admin-bar .mx-theatre { padding-top: calc(4.5rem + 46px); } .admin-bar .mx-theatre__close { top: calc(1.2rem + 46px); } }

/* ---------- Call to action ---------- */
body.mx-site .mx-cta { text-align: center; }
body.mx-site .mx-cta .mx-label, body.mx-site .mx-cta .mx-h1, body.mx-site .mx-cta .mx-display { margin-inline: auto !important; }
body.mx-site .mx-email { margin: 2rem 0 0 !important; }
body.mx-site .mx-email a { font: 400 clamp(1.5rem, 3.4vw, 3.2rem)/1.3 var(--mx-font-display); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: .2rem; overflow-wrap: anywhere; transition: background-size .6s var(--mx-ease); }
body.mx-site .mx-email a:hover { background-size: 0 1px; background-position: 100% 100%; }
body.mx-site .mx-hero .mx-email a { font-size: clamp(1.05rem, 2.1vw, 2.1rem); white-space: nowrap; overflow-wrap: normal; }
body.mx-site .mx-social { display: flex; flex-wrap: wrap; gap: .8rem 2.2rem; justify-content: center; margin-top: 2.6rem !important; font: 600 .72rem/1.6 var(--mx-font-body) !important; letter-spacing: .22em; text-transform: uppercase; }
body.mx-site .mx-social a { text-decoration: none; }
body.mx-site .mx-sources { font-size: .86rem !important; line-height: 1.7; color: var(--mx-muted); max-width: 52rem; }

/* ---------- Contact form (Fluent Forms, restyled to the editorial system) ---------- */
body.mx-site .mx-formsection .wp-block-columns { gap: clamp(2.5rem, 6vw, 7rem); }
body.mx-site .mx-form { max-width: 44rem; }
body.mx-site .mx-form .fluentform { --fluentform-primary: var(--mx-dark-1); --fluentform-danger: #a3261b; --fluentform-border-color: var(--mx-muted); --fluentform-border-radius: 0; font-family: var(--mx-font-body); }
body.mx-site .mx-form .fluentform .ff-el-group { margin-bottom: 2rem; }
body.mx-site .mx-form .fluentform .ff-el-input--label { margin-bottom: .1rem; }
body.mx-site .mx-form .fluentform .ff-el-input--label label { font: 600 .72rem/1.6 var(--mx-font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--mx-muted); }
body.mx-site .mx-form .fluentform .ff-el-input--label.ff-el-is-required.asterisk-right label::after { color: var(--mx-accent); }
body.mx-site .mx-form .fluentform .ff-el-form-control { font: 400 1.05rem/1.6 var(--mx-font-body); color: var(--mx-dark-1); background: transparent; border: 0; border-bottom: 1px solid var(--mx-muted); border-radius: 0; padding: .65rem 0; box-shadow: none; transition: border-color .3s var(--mx-ease), box-shadow .3s var(--mx-ease); }
body.mx-site .mx-form .fluentform .ff-el-form-control::placeholder { color: #77746e; opacity: 1; }
/* Focus: a 3px gold rule under the field; the transparent outline still shows in forced-colours mode. */
body.mx-site .mx-form .fluentform .ff-el-form-control:focus { background: transparent; color: var(--mx-dark-1); border-bottom-color: var(--mx-accent); box-shadow: 0 2px 0 0 var(--mx-accent); outline: 2px solid transparent !important; }
body.mx-site .mx-form .fluentform textarea.ff-el-form-control { min-height: 10rem; resize: vertical; }
body.mx-site .mx-form .fluentform .ff-el-is-error .ff-el-form-control { border-bottom-color: #a3261b; }
body.mx-site .mx-form .fluentform .text-danger, body.mx-site .mx-form .ff-errors-in-stack { color: #a3261b; font-size: .85rem; line-height: 1.5; margin-top: .55rem; }
body.mx-site .mx-form .fluentform form .ff-btn-submit:not(.ff_btn_no_style) { background: var(--mx-dark-1); color: var(--mx-light-1); border: 1px solid var(--mx-dark-1); border-radius: 0; padding: 1.15rem 2.4rem; font: 600 .74rem/1 var(--mx-font-body); letter-spacing: .2em; text-transform: uppercase; opacity: 1; transition: background-color .35s var(--mx-ease), border-color .35s var(--mx-ease), color .35s var(--mx-ease); }
body.mx-site .mx-form .fluentform form .ff-btn-submit:not(.ff_btn_no_style):hover { background: var(--mx-accent); border-color: var(--mx-accent); color: #fff; opacity: 1; }
body.mx-site .mx-form .ff_submit_btn_wrapper { margin: .6rem 0 0; }
body.mx-site .mx-form .ff-message-success { border: 0; border-left: 2px solid var(--mx-accent); box-shadow: none; background: transparent; margin: 0; padding: .3rem 0 .3rem 1.6rem; font: 400 clamp(1.25rem, 1.9vw, 1.7rem)/1.5 var(--mx-font-display); color: var(--mx-dark-1); }
@media (min-width: 768px) { body.mx-site .mx-form .frm-fluent-form .ff-t-container { gap: 2rem; } }
/* Fluent bottom-aligns name cells; keep both labels on one line when only one field shows an error. */
body.mx-site .mx-form .frm-fluent-form .ff-name-field-wrapper .ff-t-cell { justify-content: flex-start; }

/* ---------- Legal pages ---------- */
body.mx-site .mx-legal { padding-top: calc(var(--mx-header-h) + clamp(48px, 7vw, 110px)) !important; }
body.mx-site .mx-legal__body { max-width: 46rem !important; margin-inline: auto !important; }
body.mx-site .mx-legal__title { font-size: clamp(2.4rem, 5vw, 4.4rem) !important; }
body.mx-site .mx-legal .mx-lead { margin-top: 2rem !important; }
body.mx-site .mx-legal .mx-h3 { margin: 3.2rem 0 1rem !important; }
body.mx-site .mx-legal :is(p, li) { max-width: 40em; }
body.mx-site .mx-legal ul { padding-left: 1.2em; margin: 0 0 1.2rem; }
body.mx-site .mx-legal li { margin: .35rem 0; }
body.mx-site .mx-legal li::marker { color: var(--mx-accent); }

/* ---------- Media frames ---------- */
body.mx-site .mx-frame img { box-shadow: 0 40px 80px -40px rgba(17, 17, 17, .45); }
body.mx-site .mx-portrait { max-width: 360px !important; margin-inline: auto !important; }
body.mx-site .mx-portrait img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
body.mx-site .mx-afmlogo img { max-width: 260px !important; height: auto; }

/* ---------- Footer ---------- */
.mx-footer { background: var(--mx-dark-1); color: #c9c7c1; padding: clamp(80px, 10vw, 160px) var(--wp--style--root--padding-right) 2.2rem var(--wp--style--root--padding-left); font-family: var(--mx-font-body); font-size: .95rem; line-height: 1.8; }
.mx-footer a { color: inherit; text-decoration: none; }
.mx-footer a:hover { color: var(--mx-accent-light); }
.mx-footer__inner { display: grid; gap: 3.5rem; }
.mx-footer__title { font: 400 clamp(1.6rem, 2.6vw, 2.4rem)/1.2 var(--mx-font-display); color: var(--mx-light-1); margin: 0 0 .6rem; }
.mx-footer__role { margin: 0 0 1.4rem; color: var(--mx-muted-dark); }
.mx-footer__email { margin: 0; }
.mx-footer__email a { font: 400 clamp(1.15rem, 1.8vw, 1.6rem)/1.4 var(--mx-font-display); border-bottom: 1px solid var(--mx-accent-light); padding-bottom: .2rem; }
.mx-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2rem; }
.mx-footer__cols ul { list-style: none; margin: 0; padding: 0; }
.mx-footer .mx-label { margin: 0 0 1rem !important; }
.mx-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: clamp(4rem, 8vw, 7rem); padding-top: 1.6rem; border-top: 1px solid var(--mx-line-dark); font-size: .78rem; letter-spacing: .08em; color: var(--mx-muted-dark); }
.mx-footer__bottom p { margin: 0; }
.mx-footer__links { display: flex; flex-wrap: wrap; gap: .4rem 2rem; }
@media (min-width: 1024px) { .mx-footer__inner { grid-template-columns: 1.2fr 1fr; align-items: end; } }

/* ---------- Blog / posts / archives inside the experience ---------- */
body.mx-site:not(.page) main#mx-main { padding-top: calc(var(--mx-header-h) + 3rem); }
body.mx-site.blog main#mx-main h1, body.mx-site.archive main#mx-main h1, body.mx-site.search main#mx-main h1, body.mx-site.error404 main#mx-main h1 { font-size: clamp(2.6rem, 6vw, 6rem) !important; }
body.mx-site .wp-block-post-title { font-family: var(--mx-font-display); }
body.mx-site .mx-post-title { font-size: clamp(2.1rem, 4.4vw, 4.3rem) !important; line-height: 1.12 !important; margin: 0 0 2.2rem !important; }
body.mx-site .wp-block-post-title a { text-decoration: none; }
body.mx-site .wp-block-post-excerpt__excerpt, body.mx-site .wp-block-post-date { color: var(--mx-muted) !important; }
body.mx-site .wp-block-post-featured-image img { border-radius: 0 !important; transition: transform 1.2s var(--mx-ease); }
body.mx-site .wp-block-post-featured-image:hover img { transform: scale(1.04); }
body.mx-site .wp-block-search__input { border: 1px solid var(--mx-line); background: #fff; }
body.mx-site .wp-block-search__button, body.mx-site .wp-element-button { background: var(--mx-dark-1) !important; color: var(--mx-light-1) !important; border-radius: 0 !important; font: 600 .74rem/1 var(--mx-font-body); letter-spacing: .18em; text-transform: uppercase; padding: 1.05rem 1.6rem; }

/* ---------- Motion (only when JS is running) ---------- */
html.mx-js body.mx-site .mx-reveal { opacity: 0; transform: translate3d(0, 46px, 0); transition: opacity 1.1s var(--mx-ease), transform 1.3s var(--mx-ease); transition-delay: var(--mx-delay, 0s); }
html.mx-js body.mx-site .mx-reveal.is-in { opacity: 1; transform: none; }
.mx-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.mx-word__in { display: inline-block; transform: translate3d(0, 108%, 0); transition: transform 1.15s var(--mx-ease); transition-delay: calc(var(--i, 0) * 45ms + var(--mx-delay, 0s)); }
.is-in .mx-word__in, .mx-split.is-in .mx-word__in { transform: none; }
/* The clip sits on the image (not the observed figure) so IntersectionObserver still sees a non-zero area. */
body.mx-site .mx-mask { overflow: hidden; }
html.mx-js body.mx-site .mx-mask img { clip-path: inset(100% 0 0 0); transform: scale(1.18); transition: clip-path 1.5s var(--mx-ease-io), transform 2s var(--mx-ease); transition-delay: var(--mx-delay, 0s); }
html.mx-js body.mx-site .mx-mask.is-in img { clip-path: inset(0 0 0 0); transform: none; }
body.mx-site .mx-parallax { overflow: hidden; }
html.mx-js body.mx-site .mx-parallax :is(img, video) { transform: translate3d(0, var(--py, 0px), 0) scale(1.14); will-change: transform; }

/* Hero: CSS-only entrance so the first paint never waits for JavaScript (keeps LCP fast). */
/* Transform-only (no fade): Chrome delays Largest Contentful Paint for elements that fade in, which cost ~1.3 s of LCP. */
@keyframes mx-rise { from { transform: translate3d(0, 34px, 0); } to { transform: none; } }
@keyframes mx-unveil { from { transform: scale(1.06) translate3d(0, 2%, 0); } to { transform: none; } }
html.mx-js body.mx-site .mx-hero :is(.mx-reveal, .mx-split) { opacity: 1; transform: none; transition: none; animation: mx-rise 1.15s var(--mx-ease) both; }
html.mx-js body.mx-site .mx-hero__panel > :nth-child(1) { animation-delay: .05s; }
html.mx-js body.mx-site .mx-hero__panel > :nth-child(2) { animation-delay: .15s; }
html.mx-js body.mx-site .mx-hero__panel > :nth-child(3) { animation-delay: .3s; }
html.mx-js body.mx-site .mx-hero__panel > :nth-child(4) { animation-delay: .42s; }
html.mx-js body.mx-site .mx-hero__panel > :nth-child(n+5) { animation-delay: .55s; }
html.mx-js body.mx-site .mx-hero .mx-mask img { clip-path: none; transform: none; transition: none; animation: mx-unveil 1.5s var(--mx-ease) .1s both; }

/* ---------- Motion polish (1.4.0): drawn lines, label dashes, quiet hovers, depth on the hero and chapter numerals ---------- */
/* Section labels: a short gold dash that draws in with the label. */
body.mx-site :is(.mx-section, .mx-hero) .mx-label::before { content: ""; display: inline-block; width: 1.6rem; height: 1px; margin: 0 .8rem .2em 0; background: var(--mx-accent); vertical-align: middle; transform-origin: left; transition: transform .9s var(--mx-ease) .1s; }
body.mx-site :is(.mx-dark, .mx-dark2) .mx-label::before { background: var(--mx-accent-light); }
html.mx-js body.mx-site :is(.mx-section, .mx-hero) .mx-label:not(.is-in)::before { transform: scaleX(0); }
/* List rows: the rule under each row draws from the left as the row appears. */
body.mx-site .mx-row, body.mx-site .mx-vrow { position: relative; border-bottom-color: transparent !important; }
body.mx-site .mx-row::after, body.mx-site .mx-vrow::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--mx-line); transform-origin: left; transition: transform 1.1s var(--mx-ease) .15s; }
body.mx-site :is(.mx-dark, .mx-dark2) :is(.mx-row, .mx-vrow)::after { background: var(--mx-line-dark); }
html.mx-js body.mx-site :is(.mx-row, .mx-vrow):not(.is-in)::after { transform: scaleX(0); }
/* Quiet hovers. */
body.mx-site .mx-milestone, body.mx-site .mx-principle { transition: transform .6s var(--mx-ease); }
body.mx-site .mx-milestone:hover, body.mx-site .mx-principle:hover { transform: translateY(-4px); }
body.mx-site .mx-milestone::before { transition: transform .5s var(--mx-ease), background-color .3s; }
body.mx-site .mx-milestone:hover::before { transform: scale(1.7); }
body.mx-site .mx-milestone .mx-year { transition: color .4s; }
body.mx-site .mx-milestone:hover .mx-year { color: var(--mx-accent); }
html.mx-js body.mx-site .mx-chapter .mx-mask.is-in img { transition: transform 1.2s var(--mx-ease); }
html.mx-js body.mx-site .mx-chapter .mx-mask.is-in:hover img { transform: scale(1.035); }
body.mx-site .mx-reel { overflow: hidden; }
body.mx-site .mx-reel video { transition: filter .6s var(--mx-ease), transform .9s var(--mx-ease); }
body.mx-site .mx-reel:hover video { transform: scale(1.04); }
body.mx-site .mx-arrow a::before { transition: transform .5s var(--mx-ease), background-color .4s, border-color .4s; }
/* Depth: the big chapter numeral drifts slower than the page; the hero leans gently towards the pointer.
   Uses the `translate` property so it never fights the transform-based reveals. */
body.mx-site .mx-chapter::after { translate: 0 var(--pyn, 0px); will-change: translate; }
html.mx-js body.mx-site .mx-hero__media figure { translate: calc(var(--mx-px, 0) * 16px) calc(var(--mx-py, 0) * 12px); transition: translate 1.1s var(--mx-ease); }
html.mx-js body.mx-site .mx-hero__panel > * { translate: calc(var(--mx-px, 0) * -7px) calc(var(--mx-py, 0) * -5px); transition: translate 1.1s var(--mx-ease); }

/* Lenis smooth scroll helpers */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	html.mx-js body.mx-site .mx-reveal, html.mx-js body.mx-site .mx-mask, html.mx-js body.mx-site .mx-mask img, .mx-word__in { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
	html.mx-js body.mx-site .mx-parallax :is(img, video) { transform: none !important; }
	html.mx-js body.mx-site .mx-hero :is(.mx-reveal, .mx-split), html.mx-js body.mx-site .mx-hero .mx-mask img { animation: none !important; opacity: 1 !important; }
	.mx-ring, .mx-mouse::after { animation: none !important; }
	.mx-curtain { display: none !important; }
	.mx-menu, .mx-menu__nav a, .mx-header { transition: none !important; }
	.mx-theatre, .mx-reel video, .mx-reel__play::before { transition: none !important; }
	body.mx-site :is(.mx-section, .mx-hero) .mx-label::before, body.mx-site :is(.mx-row, .mx-vrow)::after { transform: none !important; transition: none !important; }
	body.mx-site .mx-milestone, body.mx-site .mx-principle, body.mx-site .mx-reel video, body.mx-site .mx-chapter .mx-mask img { transform: none !important; }
	body.mx-site .mx-chapter::after, body.mx-site .mx-hero__media figure, body.mx-site .mx-hero__panel > * { translate: none !important; }
}
