/* Meaningful Things Studio: site styles on top of theme.json.
   Colours and fonts come from theme.json presets so the editor and site stay in sync. */

:root {
	--mt-white: var(--wp--preset--color--white);
	--mt-cream: var(--wp--preset--color--cream);
	--mt-cream-deep: var(--wp--preset--color--cream-deep);
	--mt-red: var(--wp--preset--color--red);
	--mt-red-dark: var(--wp--preset--color--red-dark);
	--mt-ink: var(--wp--preset--color--ink);
	--mt-muted: var(--wp--preset--color--muted);
	--mt-script: var(--wp--preset--font-family--script);
	--mt-caps: var(--wp--preset--font-family--caps);
	--mt-section-y: clamp(72px, 10vw, 112px);
	--mt-gutter: 16px;
	--mt-header-h: 76px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--mt-header-h) + var(--wp-admin--admin-bar--height, 0px)); }
body { background: var(--mt-white); color: var(--mt-ink); -webkit-font-smoothing: antialiased; }

/* ---------- Shared pieces ---------- */
.mt-eyebrow {
	font: 500 13px/1.4 var(--wp--preset--font-family--sans);
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--mt-red);
	margin-bottom: 18px !important;
}
.mt-lead { font-size: var(--wp--preset--font-size--large); color: var(--mt-muted); }
.mt-accent { background: none; color: var(--mt-red); }
.mt-todo { background: #FFF4C2; outline: 1px dashed #C9A400; padding: 4px 8px; border-radius: 4px; font-size: 16px; }

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--mt-ink);
	border: 1px solid var(--mt-ink);
	padding: 13px 27px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--mt-ink); color: var(--mt-white); }
.wp-block-button__link { white-space: nowrap; transition: background-color .2s, color .2s; }

/* ---------- Header ---------- */
header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}
.mt-header {
	position: relative;
	border-bottom: 1px solid var(--mt-cream-deep);
	padding: 0 var(--mt-gutter);
}
/* The frosted background sits on a layer behind the header. A blur on the header itself
   would trap the mobile menu's full-screen overlay inside the 77px bar. */
.mt-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.mt-header__inner { min-height: var(--mt-header-h); gap: 16px; }
.mt-header__actions { gap: 28px; }
.mt-logo { display: inline-flex; align-items: center; line-height: 0; }
.mt-logo img { display: block; height: auto; }
.mt-header .mt-logo__full { width: 220px; }
.mt-header .mt-logo__mono { display: none; width: 48px; }
.mt-nav { font-size: 15px; letter-spacing: .04em; }
.mt-nav a { color: var(--mt-ink); text-decoration: none; }
.mt-nav a:hover { color: var(--mt-red); }
.mt-header__cta .wp-block-button__link { padding: 12px 22px; font-size: 13px; }

/* ---------- Footer ---------- */
.mt-footer { background: var(--mt-cream); padding: 56px var(--mt-gutter); }
.mt-footer__inner { gap: 24px; align-items: center; }
.mt-footer .mt-logo__full { width: 260px; max-width: 100%; }
.mt-footer__note { margin: 0; font-size: 15px; color: var(--mt-muted); }

/* ---------- Homepage sections ---------- */
.mt-home { margin-top: 0; }
.mt-home > * { margin-block: 0 !important; }
.mt-home > .wp-block-group { padding: var(--mt-section-y) var(--mt-gutter); }

/* Hero */
.mt-hero { background: var(--mt-cream); overflow: hidden; }
.mt-hero__cols { gap: 56px; }
.mt-hero__title { letter-spacing: -.01em; margin-top: 0; }
.mt-hero__title em {
	font-family: var(--mt-script);
	font-style: normal;
	font-weight: 400;
	color: var(--mt-red);
	font-size: 1.15em;
	line-height: .8;
}
.mt-hero .mt-lead { margin: 28px 0 36px; max-width: 640px; }

.mt-portrait {
	aspect-ratio: 4 / 5;
	border-radius: 16px;
	background: linear-gradient(160deg, var(--mt-cream-deep), #D9C7A8);
	color: var(--mt-muted);
	font-size: 15px;
	position: relative;
	padding: 24px;
}
.mt-portrait--arch { border-radius: 200px 200px 16px 16px; }
.mt-portrait--arch::after {
	content: "";
	position: absolute;
	inset: -14px 14px 14px -14px;
	border: 1px solid var(--mt-red);
	border-radius: 200px 200px 16px 16px;
	z-index: -1;
}
.mt-hero .wp-block-column:has(.mt-carousel-frame) { position: relative; z-index: 0; }

/* Hero carousel: a gallery shown as a fading slideshow inside the arch.
   Without JavaScript (or in the editor) it stays an ordinary gallery. */
.mt-carousel-frame { position: relative; }
.mt-carousel-frame::after {
	content: "";
	position: absolute;
	inset: -14px 14px 14px -14px;
	border: 1px solid var(--mt-red);
	border-radius: 200px 200px 16px 16px;
	z-index: -1;
}
.home .mt-carousel.wp-block-gallery {
	display: block !important;
	position: relative;
	aspect-ratio: 4 / 5;
	margin: 0;
	border-radius: 200px 200px 16px 16px;
	overflow: hidden;
	background: var(--mt-cream-deep);
}
.home .mt-carousel.wp-block-gallery > .wp-block-image {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100%;
	margin: 0 !important;
	opacity: 0;
	transition: opacity 1.2s ease;
}
.home .mt-carousel:not(.is-ready) > .wp-block-image:first-child,
.home .mt-carousel.is-ready > .wp-block-image.is-active { opacity: 1; }
.home .mt-carousel.wp-block-gallery > .wp-block-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}
.mt-carousel__dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.mt-carousel__dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--mt-red);
	background: transparent;
	cursor: pointer;
	transition: background-color .2s, transform .2s;
}
.mt-carousel__dots button[aria-current="true"] { background: var(--mt-red); transform: scale(1.2); }
.mt-carousel__dots button:focus-visible { outline: 2px solid var(--mt-red); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	.home .mt-carousel.wp-block-gallery > .wp-block-image { transition: none; }
}

/* Belief statement */
.mt-belief { text-align: center; }
.mt-belief h2 { margin-bottom: 28px; }
.mt-belief p:not(.mt-eyebrow) { color: var(--mt-muted); }

/* Pillars */
.mt-pillars { background: var(--mt-cream); }
.mt-pillars__head { text-align: center; margin-bottom: 64px !important; }
.mt-pillar {
	background: var(--mt-white);
	border-radius: 20px;
	padding: 48px;
	gap: 48px;
	margin-top: 24px !important;
}
.mt-num { font-family: var(--mt-caps); font-size: 20px; letter-spacing: .2em; color: var(--mt-red); margin: 0; }
.mt-verb { font-family: var(--mt-script); font-size: 64px; line-height: 1; color: var(--mt-red); margin-top: 8px !important; }
.mt-pillar h3 { margin: 0 0 12px; }
.mt-service {
	font: 500 13px/1.4 var(--wp--preset--font-family--sans);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--mt-muted);
	margin-top: 0 !important;
}
.mt-list { list-style: none; padding: 0; margin: 0; }
.mt-list li {
	padding: 10px 0 10px 28px;
	border-bottom: 1px solid var(--mt-cream-deep);
	position: relative;
	font-size: 16px;
}
.mt-list li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 21px;
	width: 10px;
	height: 1px;
	background: var(--mt-red);
}
.mt-format { font-size: 15px; color: var(--mt-muted); margin-top: 18px !important; }

.mt-pillar--legacy { background: var(--mt-red); color: var(--mt-white); }
.mt-pillar--legacy h3 { color: var(--mt-white); }
.mt-pillar--legacy .mt-num,
.mt-pillar--legacy .mt-verb { color: var(--mt-cream); }
.mt-pillar--legacy .mt-service,
.mt-pillar--legacy .mt-format { color: var(--mt-cream-deep); }
.mt-pillar--legacy .mt-list li { border-color: rgba(255, 255, 255, .2); }
.mt-pillar--legacy .mt-list li::before { background: var(--mt-cream); }

/* Who it's for */
.mt-cards { gap: 20px; margin-top: 48px !important; }
.mt-card { border-top: 2px solid var(--mt-red); padding-top: 20px; }
.mt-card h3 { font-size: 24px; margin: 0 0 8px; }
.mt-card p { margin: 0; color: var(--mt-muted); font-size: 16px; }

/* Process */
.mt-process { background: var(--mt-ink); color: var(--mt-cream); }
.mt-process h2, .mt-process h3 { color: var(--mt-white); }
.mt-process .mt-eyebrow { color: #E7A3A7; }
.mt-steps { gap: 32px; margin-top: 56px !important; counter-reset: mt-step; }
.mt-step { counter-increment: mt-step; }
.mt-step::before {
	content: "0" counter(mt-step);
	display: block;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 48px;
	line-height: 1;
	color: #E7A3A7;
	margin-bottom: 16px;
}
.mt-step h3 { font-size: 24px; margin: 0 0 8px; }
.mt-step p { margin: 0; font-size: 16px; color: #CFC5BA; }

/* About */
.mt-about .wp-block-columns { gap: 64px; }
.mt-about h2 { margin-bottom: 24px; }
.mt-signature { font-family: var(--mt-script); font-size: 56px; line-height: 1; color: var(--mt-red); margin-top: 8px !important; }

/* Call to action */
.mt-cta { background: var(--mt-red); color: var(--mt-white); text-align: center; }
.mt-cta h2 { color: var(--mt-white); margin-bottom: 20px; }
.mt-cta p:not(.mt-eyebrow) { color: var(--mt-cream-deep); }
.mt-cta .mt-eyebrow { color: var(--mt-cream); }
.mt-button-cream > .wp-block-button__link { background: var(--mt-cream); color: var(--mt-red); }
.mt-button-cream > .wp-block-button__link:hover { background: var(--mt-white); color: var(--mt-red-dark); }

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
	.mt-pillar { padding: 32px 24px; gap: 20px; }
	.mt-hero .wp-block-column:has(.mt-carousel-frame) { max-width: 360px; }
}
@media (max-width: 781px) {
	/* WordPress stacks columns below 782px; keep the card grids at two across where they fit */
	.mt-cards, .mt-steps { display: grid !important; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.mt-header .mt-logo__full { display: none; }
	.mt-header .mt-logo__mono { display: block; }
	.mt-header__actions { gap: 12px; }
	.mt-cards, .mt-steps { grid-template-columns: 1fr; }
	.mt-footer .mt-logo__full { width: 220px; }
}

/* ---------- Standard pages (including the client portal) ---------- */
.mt-page { padding: clamp(48px, 7vw, 80px) var(--mt-gutter) clamp(72px, 10vw, 112px); margin-top: 0; }
.mt-page__title { font-size: var(--wp--preset--font-size--xx-large); margin-bottom: 32px; }
.mt-format strong { color: var(--mt-ink); font-weight: 500; }
.mt-pillar--legacy .mt-format strong { color: var(--mt-white); }
.mt-pillar__cta { margin-top: 20px !important; }
.mt-pillar--legacy .is-style-outline > .wp-block-button__link { color: var(--mt-white); border-color: var(--mt-white); }
.mt-pillar--legacy .is-style-outline > .wp-block-button__link:hover { background: var(--mt-white); color: var(--mt-red); }
.mt-about__photo { margin: 0; }
.mt-about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 16px; display: block; }

/* ---------- Lerato's profile page ---------- */
.mt-profile-hero .mt-hero__title em { font-size: 1em; }
.mt-profile-photo .wp-block-image { margin: 0; border-radius: 200px 200px 16px 16px; overflow: hidden; }
.mt-profile-photo .wp-block-image img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }

.mt-facts { background: var(--mt-white); padding-top: 56px !important; padding-bottom: 56px !important; border-bottom: 1px solid var(--mt-cream-deep); }
.mt-facts__grid { gap: 24px; }
.mt-fact { border-left: 2px solid var(--mt-red); padding-left: 20px; }
.mt-fact p { margin: 0; color: var(--mt-muted); font-size: 16px; }
.mt-fact .mt-fact__big { font-family: var(--wp--preset--font-family--serif); font-size: 30px; font-weight: 600; color: var(--mt-ink); line-height: 1.1; margin-bottom: 6px; }

.mt-quote-section { text-align: center; }
.mt-quote { border: 0; margin: 0; padding: 0; }
.mt-quote p { font-family: var(--wp--preset--font-family--serif); font-size: clamp(26px, 3.4vw, 38px); line-height: 1.3; font-style: italic; }
.mt-quote p::before { content: "“"; display: block; font-family: var(--mt-script); font-style: normal; font-size: 96px; line-height: .6; color: var(--mt-red); margin-bottom: 12px; }
.mt-quote cite { display: block; margin-top: 20px; font-family: var(--mt-script); font-style: normal; font-size: 40px; color: var(--mt-red); }

.mt-brings { background: var(--mt-cream); }
.mt-brings__grid { gap: 24px; margin-top: 24px !important; }
.mt-bring { background: var(--mt-white); border-radius: 20px; padding: 36px; }
.mt-bring h3 { margin: 8px 0 16px; font-size: 28px; }
.mt-bring--legacy { background: var(--mt-red); color: var(--mt-white); }
.mt-bring--legacy h3, .mt-bring--legacy .mt-num { color: var(--mt-white); }
.mt-bring--legacy .mt-list li { border-color: rgba(255, 255, 255, .2); }
.mt-bring--legacy .mt-list li::before { background: var(--mt-cream); }

.mt-experience h2 { margin-bottom: 40px; }
.mt-role { position: relative; padding: 0 0 36px 32px; margin-block: 0 !important; border-left: 1px solid var(--mt-cream-deep); }
.mt-role::before { content: ""; position: absolute; left: -7px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--mt-red); }
.mt-role--earlier::before { background: var(--mt-cream-deep); }
.mt-role:last-child { border-left-color: transparent; padding-bottom: 0; }
.mt-role > * { margin-block: 0 !important; }
.mt-role__when { font: 500 13px/1.4 var(--wp--preset--font-family--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mt-red); }
.mt-role h3 { font-size: 28px; margin-top: 6px !important; }
.mt-role__org { color: var(--mt-muted); font-size: 16px; margin: 4px 0 10px !important; }

.mt-training { background: var(--mt-white); border-top: 1px solid var(--mt-cream-deep); }
.mt-training .wp-block-columns { gap: 64px; }
.mt-creds { list-style: none; padding: 0; margin: 0; }
.mt-creds li { padding: 14px 0; border-bottom: 1px solid var(--mt-cream-deep); color: var(--mt-muted); font-size: 16px; }
.mt-creds strong { color: var(--mt-ink); font-weight: 500; font-size: 18px; }
.mt-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-tags span { padding: 6px 14px; border-radius: 999px; background: var(--mt-cream); font-size: 15px; }
.mt-eyebrow--spaced { margin-top: 32px !important; }

@media (max-width: 781px) {
	.mt-facts__grid { display: grid !important; grid-template-columns: 1fr 1fr; }
	.mt-bring { padding: 28px 24px; }
}
@media (max-width: 480px) {
	.mt-facts__grid { grid-template-columns: 1fr; }
}
.mt-portfolio { background: var(--mt-cream); text-align: center; }
.mt-portfolio h2 { margin-bottom: 20px; }
.mt-portfolio p:not(.mt-eyebrow) { color: var(--mt-muted); }
.mt-portfolio__note { font-size: 14px; margin-top: 16px !important; }
.mt-audiences { background: var(--mt-white); }
.mt-audiences__grid { gap: 24px; margin-top: 24px !important; }
.mt-audience { border: 1px solid var(--mt-cream-deep); border-radius: 20px; padding: 36px; }
.mt-audience h3 { margin: 8px 0 12px; font-size: 28px; }
.mt-audience > p:not(.mt-num) { color: var(--mt-muted); }
.mt-audience--corporate { background: var(--mt-ink); border-color: var(--mt-ink); color: var(--mt-cream); }
.mt-audience--corporate h3 { color: var(--mt-white); }
.mt-audience--corporate .mt-num { color: #E7A3A7; }
.mt-audience--corporate > p:not(.mt-num) { color: #CFC5BA; }
.mt-audience--corporate .mt-list li { border-color: rgba(255, 255, 255, .15); }
.mt-audience--corporate .mt-list li::before { background: #E7A3A7; }
@media (max-width: 781px) { .mt-audience { padding: 28px 24px; } }
.mt-audience__cta { margin-top: 24px !important; }
.mt-role-offer { background: var(--mt-cream); }
.mt-role-offer h2 { margin-bottom: 16px; }
.mt-role-offer > p:not(.mt-eyebrow) { color: var(--mt-muted); }

/* ---------- Header logo: twice the size, on a tab that hangs below the menu bar ----------
   The menu bar keeps its height; the logo is positioned over it and tucks back to the
   original size once the page scrolls. */
.mt-header__inner { position: relative; justify-content: flex-end !important; }
.mt-header .mt-logo {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 3;
	display: block;
	margin-left: -24px;
	padding: 16px 24px 18px;
	background: var(--mt-white);
	border-bottom: 3px solid var(--mt-red);
	border-radius: 0 0 20px 20px;
	box-shadow: 0 18px 32px -20px rgba(43, 37, 34, .45);
	transform-origin: 0 0;
	transition: transform .35s ease, box-shadow .35s ease, background-color .35s ease, border-color .35s ease;
}
.mt-header .mt-logo svg { height: auto; overflow: visible; }
.mt-header .mt-logo svg.mt-logo__full { display: block; width: 440px; }
.mt-header .mt-logo svg.mt-logo__mono { display: none; width: 96px; }
.mt-header.is-scrolled .mt-logo {
	transform: translateY(8px) scale(.5);
	background: transparent;
	border-bottom-color: transparent;
	box-shadow: none;
}

/* Script capitals: a small flourish on hover */
.mt-logo .mt-logo__em { transform-box: fill-box; transform-origin: 50% 80%; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), fill .3s ease; }
@media (prefers-reduced-motion: no-preference) {
	.mt-logo:hover .mt-logo__em, .mt-logo:focus-visible .mt-logo__em { transform: rotate(-5deg) translateY(-3%); fill: var(--mt-red-dark); }
}

/* First visit: the M and T draw themselves in like handwriting, then the capitals rise in.
   The page head adds .mt-logo-intro (hidden, waiting); the footer measures the letters and adds .mt-logo-go. */
.mt-logo-intro .mt-logo .mt-logo__em { fill-opacity: 0; stroke-opacity: 0; }
.mt-logo-intro .mt-logo .mt-logo__sub { opacity: 0; transform-box: fill-box; transform: translateY(18%); }
.mt-logo-intro.mt-logo-go .mt-logo .mt-logo__em {
	stroke: var(--mt-red);
	stroke-opacity: 1;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: var(--mt-len, 4000);
	stroke-dashoffset: var(--mt-len, 4000);
	animation: mt-logo-draw 1.6s ease-in-out .15s forwards, mt-logo-ink .6s ease 1.45s forwards;
}
.mt-logo-intro.mt-logo-go .mt-logo .mt-logo__sub { animation: mt-logo-rise .5s ease forwards; animation-delay: 1s; }
.mt-logo-intro.mt-logo-go .mt-logo svg > g > .mt-logo__sub:nth-child(2) { animation-delay: 1.000s; }
.mt-logo-intro.mt-logo-go .mt-logo svg > g > .mt-logo__sub:nth-child(3) { animation-delay: 1.045s; }
.mt-logo-intro.mt-logo-go .mt-logo svg > g > .mt-logo__sub:nth-child(4) { animation-delay: 1.090s; }
.mt-logo-intro.mt-logo-go .mt-logo svg > g > .mt-logo__sub:nth-child(5) { animation-delay: 1.135s; }
.mt-logo-intro.mt-logo-go .mt-logo svg > g > .mt-logo__sub:nth-child(6) { animation-delay: 1.180s; }
.mt-logo-intro.mt-logo-go .mt-logo svg > g > .mt-logo__sub:nth-child(7) { animation-delay: 1.225s; }
.mt-logo-intro.mt-logo-go .mt-logo svg > g > .mt-logo__sub:nth-child(8) { animation-delay: 1.270s; }
.mt-logo-intro.mt-logo-go .mt-logo svg > g > .mt-logo__sub:nth-child(9) { animation-delay: 1.315s; }
.mt-logo-intro.mt-logo-go .mt-logo svg > g > .mt-logo__sub:nth-child(10) { animation-delay: 1.360s; }
.mt-logo-intro.mt-logo-go .mt-logo svg > g > .mt-logo__sub:nth-child(11) { animation-delay: 1.405s; }
.mt-logo-intro.mt-logo-go .mt-logo svg > g > .mt-logo__sub:nth-child(12) { animation-delay: 1.450s; }
.mt-logo-intro.mt-logo-go .mt-logo svg > g > .mt-logo__sub:nth-child(13) { animation-delay: 1.495s; }
.mt-logo-intro.mt-logo-go .mt-logo svg > g > .mt-logo__sub:nth-child(14) { animation-delay: 1.540s; }
.mt-logo-intro.mt-logo-go .mt-logo svg > g > .mt-logo__sub:nth-child(15) { animation-delay: 1.585s; }
.mt-logo-intro.mt-logo-go .mt-logo svg > g > .mt-logo__sub:nth-child(16) { animation-delay: 1.630s; }
.mt-logo-intro.mt-logo-go .mt-logo svg > g > .mt-logo__sub:nth-child(17) { animation-delay: 1.675s; }
.mt-logo-intro.mt-logo-go .mt-logo svg > g > .mt-logo__sub:nth-child(18) { animation-delay: 1.720s; }
.mt-logo-intro.mt-logo-go .mt-logo svg > g > .mt-logo__sub:nth-child(19) { animation-delay: 1.765s; }
.mt-logo-intro.mt-logo-go .mt-logo svg > g > .mt-logo__sub:nth-child(20) { animation-delay: 1.810s; }
.mt-logo-intro.mt-logo-go .mt-logo svg > g > .mt-logo__sub:nth-child(21) { animation-delay: 1.855s; }
.mt-logo-intro.mt-logo-go .mt-logo svg > g > .mt-logo__sub:nth-child(22) { animation-delay: 1.900s; }
.mt-logo-intro.mt-logo-go .mt-logo svg > g > .mt-logo__sub:nth-child(23) { animation-delay: 1.945s; }
@keyframes mt-logo-draw { to { stroke-dashoffset: 0; } }
@keyframes mt-logo-ink { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes mt-logo-rise { to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
	.mt-header .mt-logo { margin-left: -14px; padding: 10px 14px 12px; border-radius: 0 0 16px 16px; }
	.mt-header .mt-logo svg.mt-logo__full { display: none; }
	.mt-header .mt-logo svg.mt-logo__mono { display: block; }
	.mt-header.is-scrolled .mt-logo { transform: translateY(10px) scale(.5); }
}

/* ---------- Mobile menu ----------
   WordPress prints its navigation styles after the theme's, so the overrides that matter are marked !important. */
.mt-nav .mt-nav__cta { display: none; } /* the header button covers this on larger screens */
.has-modal-open .mt-header .mt-logo { opacity: 0; pointer-events: none; } /* no empty tab behind the menu */
.mt-header .mt-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--mt-cream) !important;
	color: var(--mt-ink) !important;
	padding: 20px 24px 40px !important;
}
.mt-header .mt-nav .is-menu-open .wp-block-navigation__responsive-container-close { top: 26px; right: 22px; color: var(--mt-ink); }
.mt-header .mt-nav .is-menu-open .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }
.mt-header .mt-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	position: relative;
	padding-top: 104px !important;
	align-items: stretch !important;
}
.mt-header .mt-nav .is-menu-open .wp-block-navigation__responsive-container-content::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 76px;
	height: 76px;
	background: url("../logo/mts-monogram.svg") left center / contain no-repeat;
}
.mt-header .mt-nav .is-menu-open .wp-block-navigation__container {
	gap: 0 !important;
	width: 100%;
	align-items: stretch !important;
	justify-content: flex-start !important;
}
.mt-header .mt-nav .is-menu-open .wp-block-navigation-item {
	width: 100%;
	align-items: flex-start !important;
	border-bottom: 1px solid var(--mt-cream-deep);
}
.mt-header .mt-nav .is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 18px 0 !important;
	text-align: left;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 30px;
	letter-spacing: 0;
	line-height: 1.15;
	color: var(--mt-ink) !important;
}
.mt-header .mt-nav .is-menu-open .wp-block-navigation-item__content:hover { color: var(--mt-red) !important; }
.mt-header .mt-nav .is-menu-open .mt-nav__cta { display: block; border-bottom: 0; margin-top: 28px; }
.mt-header .mt-nav .is-menu-open .mt-nav__cta .wp-block-navigation-item__content {
	display: inline-block;
	width: auto;
	padding: 16px 32px !important;
	border-radius: 999px;
	background: var(--mt-red);
	color: var(--mt-white) !important;
	font: 500 15px/1 var(--wp--preset--font-family--sans);
	letter-spacing: .06em;
	text-transform: uppercase;
}
