/*
 * Mara Quinn Coaching — site chrome and sections.
 *
 * Translated from the inline styles in .design/index.html. The reference is a
 * single static page and could lean on `data-r` attribute selectors and
 * element-position selectors; a WordPress page cannot, because the markup
 * around any block can change the moment somebody edits the page. Every rule
 * here keys off an explicit `mq-` class carried on the block's className.
 */

/* ============================================================
 * 1. Base
 * ============================================================ */

/*
 * Core applies border-box to its own block wrappers and nothing else, so an
 * element inside a wp:html block — the whole header, drawer and marquee —
 * was still content-box, and its padding sat outside its max-width. The
 * navigation bar came out 64px wider than every section beneath it.
 * lawfirm and roofing both ship this same reset for the same reason.
 */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/*
 * The page-level clip, which is the one thing the reference really does need
 * from us. Its own markup wraps everything in a div with overflow:hidden, so
 * the rotating hero ring, which genuinely extends 45px past the hero, is
 * clipped at the WINDOW edge rather than at its own section.
 * Clipping at the section instead cuts the ring visibly short.
 *
 * `clip` and not `hidden`, and on the site wrapper and not on html or body:
 * anything that creates a scrollport here un-sticks the sticky header, which
 * the harness checks after every change. `overflow: clip` clips without
 * creating one.
 */
.wp-site-blocks { overflow-x: clip; }

body {
	background: var(--mq-paper);
	color: var(--mq-ink);
	font-family: var(--mq-sans);
	-webkit-font-smoothing: antialiased;
}

.mq-serif { font-family: var(--mq-display); }

.mq-shell { max-width: var(--mq-max); margin-inline: auto; padding-inline: var(--mq-gutter); }

.mq-g12 {
	display: grid;
	grid-template-columns: var(--mq-cols);
	column-gap: var(--mq-colgap);
}

/*
 * Core wraps every group in `is-layout-flow` and spaces its children with
 * `> * + * { margin-block-start: var(--wp--style--block-gap) }`. Every
 * component below is a flex or grid container that does its own spacing with
 * `gap`, so that margin only ever shows up as a doubled gap. `.mq-x :is(p)`
 * is (0,1,1) and beats core's (0,1,0), without !important.
 *
 * .mq-prose is deliberately absent — running text wants its margins.
 */
.mq-hero :is(p, h1, h2, h3, figure, ul, ol),
.mq-arc :is(p, h2, h3, figure),
.mq-bandwrap :is(p, h2, figure),
.mq-about :is(p, h2, h3, figure),
.mq-engagements :is(p, h2, h3, figure),
.mq-resources :is(p, h2, h3, figure),
.mq-words :is(p, h2, h3, figure, blockquote),
.mq-ctawrap :is(p, h2, figure),
.mq-pagehead :is(p, h1) {
	margin-block: 0;
}

/* The same groups should not inherit a flow gap onto their own wrappers. */
.mq-hero__copy > *,
.mq-card > *,
.mq-guide__body > *,
.mq-stat > *,
.mq-chip__text > *,
.mq-about__copy > *,
.mq-sectionhead__main > * {
	margin-block: 0;
}

/* Core's constrained layout would re-impose a max-width inside our sections. */
.mq-hero .wp-block-group,
.mq-engagements .wp-block-group,
.mq-words .wp-block-group { max-width: none; }

.mq-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mq-muted);
}
.mq-eyebrow::before {
	content: "";
	flex: none;
	width: 36px;
	height: 2px;
	background: var(--mq-acc);
}
.mq-eyebrow.mq-eyebrow--bare::before { display: none; }
.mq-on-ink .mq-eyebrow { color: var(--mq-stone); }

/* Visually hidden, still announced. */
.mq-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* A visible focus ring everywhere, on both grounds. */
:where(a, button, [tabindex]):focus-visible {
	outline: 3px solid var(--mq-acc);
	outline-offset: 3px;
	border-radius: 4px;
}
.mq-on-ink :where(a, button, [tabindex]):focus-visible { outline-color: var(--mq-acc-light); }

/* ============================================================
 * 2. Buttons
 *
 * Two shapes reach these rules. A bare <a class="mq-btn"> in the header and
 * drawer patterns, and a core/button block — whose `className` lands on the
 * wrapping <div class="wp-block-button">, never on the <a> inside it. Both
 * are matched so the seed can use real, editable core buttons for page copy.
 * ============================================================ */
.mq-btn:not(.wp-block-button),
.mq-btn.wp-block-button > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
	border-radius: var(--mq-r-pill);
	font-family: var(--mq-sans);
	font-weight: 600;
	line-height: 1;
	border: 1.5px solid transparent;
	transition: transform 0.25s, background 0.25s, color 0.25s;
}

.mq-btn--solid:not(.wp-block-button),
.mq-btn--solid.wp-block-button > .wp-block-button__link {
	background: var(--mq-ink);
	color: var(--mq-paper);
	padding: 18px 28px;
	font-size: 17px;
}

.mq-btn--outline:not(.wp-block-button),
.mq-btn--outline.wp-block-button > .wp-block-button__link {
	background: transparent;
	color: var(--mq-ink);
	border-color: var(--mq-ink);
	padding: 17px 26px;
	font-size: 17px;
}

.mq-btn--sm:not(.wp-block-button),
.mq-btn--sm.wp-block-button > .wp-block-button__link {
	padding: 13px 22px;
	font-size: 15px;
}

.mq-btn:not(.wp-block-button):hover,
.mq-btn.wp-block-button > .wp-block-button__link:hover { transform: translateY(-2px); }

/* On the terracotta CTA panel the outline button needs the light ground. */
.mq-cta .mq-btn--outline.wp-block-button > .wp-block-button__link {
	color: var(--mq-white);
	border-color: var(--mq-white);
}

/* ============================================================
 * 3. Header
 * ============================================================ */
.mq-headerwrap {
	position: sticky;
	top: 0;
	z-index: 20;
}

.mq-header {
	background: color-mix(in srgb, var(--mq-paper) 86%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(27, 26, 23, 0.08);
}

.mq-nav {
	max-width: var(--mq-max);
	margin-inline: auto;
	padding: 18px var(--mq-gutter);
	display: flex;
	align-items: center;
	gap: 40px;
}

.mq-wordmark {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--mq-ink);
	font-family: var(--mq-display);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.02em;
	white-space: nowrap;
}
.mq-wordmark em { font-weight: 400; font-style: italic; }
.mq-wordmark svg { flex: none; }

.mq-nav__links {
	flex-grow: 1;
	display: flex;
	gap: 32px;
	justify-content: center;
	font-size: 15px;
	font-weight: 500;
}

.mq-navlink {
	position: relative;
	text-decoration: none;
	color: #4A463F;
}
.mq-navlink:hover { color: var(--mq-ink); }
.mq-navlink::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -4px;
	height: 2px;
	background: var(--mq-acc);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.35s;
}
.mq-navlink:hover::after,
.mq-navlink[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.mq-nav__cta { flex: none; }

/* ============================================================
 * 4. Burger + drawer
 * ============================================================ */
.mq-burger {
	display: none;
	width: 48px; height: 48px;
	border-radius: 50%;
	/* 3:1 against white — the reference's rgba(ink,.2) was 1.53:1. */
	border: 1.5px solid var(--mq-rule-strong);
	background: var(--mq-white);
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	cursor: pointer;
	padding: 0;
	margin-left: auto;
}
.mq-burger span {
	display: block;
	width: 22px; height: 2px;
	background: var(--mq-ink);
	border-radius: 2px;
}
.mq-burger span:nth-child(2) { width: 14px; margin-left: 8px; }

/*
 * The menu layer: one viewport-sized clip box holding the scrim and the
 * drawer. The closed drawer is translated a full panel-width past the right
 * edge, and a fixed element still counts toward scrollable overflow even at
 * visibility:hidden — which is what put 340px of phantom width on every page.
 *
 * Clipping here rather than on html or body is deliberate. Overflow on the
 * root propagates to the viewport and takes the scrollport with it, and the
 * sticky header then scrolls away. Measured, not assumed: the harness checks
 * the header is still stuck after scrolling 1600px.
 */
.mq-menu {
	position: fixed;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 90;
}
.mq-menu > * { pointer-events: auto; }

.mq-scrim {
	position: absolute;
	inset: 0;
	background: rgba(27, 26, 23, 0.5);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.4s;
	z-index: 1;
}

.mq-drawer {
	position: absolute;
	top: 0; right: 0;
	height: 100%;
	width: min(82vw, 340px);
	background: var(--mq-ink);
	color: var(--mq-paper);
	transform: translateX(100%);
	transition: transform 0.55s var(--mq-ease-draw);
	z-index: 2;
	box-sizing: border-box;
	padding: 20px 28px 28px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	overflow-y: auto;
	visibility: hidden;
}

.mq-drawer__top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.mq-drawer__label,
.mq-drawer__note {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mq-stone);
}
.mq-drawer__note { text-align: center; letter-spacing: 0.04em; text-transform: none; font-weight: 500; }

.mq-drawer__close {
	width: 48px; height: 48px;
	border-radius: 50%;
	border: 1.5px solid rgba(244, 239, 230, 0.45);
	background: transparent;
	color: var(--mq-paper);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.mq-drawer__links { display: flex; flex-direction: column; gap: 6px; }

.mq-dlink {
	display: flex;
	align-items: baseline;
	gap: 14px;
	min-height: 52px;
	text-decoration: none;
	color: var(--mq-paper);
	font-family: var(--mq-display);
	font-size: 40px;
	font-weight: 300;
	letter-spacing: -0.02em;
	opacity: 0;
	transform: translateX(30px);
	transition: opacity 0.45s, transform 0.45s var(--mq-ease);
}
.mq-dlink:hover { color: #E9B8A5; }
.mq-dlink span {
	font-family: var(--mq-sans);
	font-size: 12px;
	font-weight: 600;
	color: var(--mq-stone);
}

.mq-drawer__photo { flex: 1; min-height: 140px; border-radius: 20px; overflow: hidden; position: relative; }
.mq-drawer__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

.mq-drawer__cta {
	min-height: 54px;
	border-radius: var(--mq-r-pill);
	background: var(--mq-acc);
	color: var(--mq-white);
	text-decoration: none;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

.mq-menu-open { overflow: hidden; }
.mq-menu-open .mq-scrim { opacity: 1; }
.mq-menu-open .mq-drawer { transform: none; visibility: visible; }
.mq-menu-open .mq-dlink { opacity: 1; transform: none; }
.mq-menu-open .mq-dlink:nth-child(1) { transition-delay: 0.18s; }
.mq-menu-open .mq-dlink:nth-child(2) { transition-delay: 0.25s; }
.mq-menu-open .mq-dlink:nth-child(3) { transition-delay: 0.32s; }
.mq-menu-open .mq-dlink:nth-child(4) { transition-delay: 0.39s; }

/* ============================================================
 * 5. Hero
 * ============================================================ */
.mq-hero {
	position: relative;
	max-width: var(--mq-max);
	margin-inline: auto;
	padding: 96px var(--mq-gutter) 72px;
	align-items: center;
}

.mq-hero__glow {
	position: absolute;
	width: 620px; height: 620px;
	right: -120px; top: 20px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--mq-acc-soft) 0%, rgba(244, 239, 230, 0) 65%);
	pointer-events: none;
}

.mq-hero__copy {
	grid-column: span 7;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.mq-hero__title {
	margin: 0;
	font-size: 92px;
	line-height: 0.98;
	font-weight: 400;
	letter-spacing: -0.035em;
}
.mq-hero__title em { font-style: italic; font-weight: 300; }

.mq-hero__lede { margin: 0; max-width: 580px; font-size: 19px; line-height: 1.6; color: var(--mq-body); }

.mq-hero__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.mq-hero__actions .wp-block-button { margin: 0; }

.mq-hero__vis { grid-column: span 5; position: relative; height: 560px; z-index: 1; }
.mq-hero__vis > svg { position: absolute; left: 0; top: 20px; }

.mq-portrait {
	position: absolute;
	left: 70px; top: 90px;
	width: 380px; height: 380px;
	background: var(--mq-acc);
	overflow: hidden;
}
.mq-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.mq-portrait figure { margin: 0; height: 100%; }

.mq-chip {
	position: absolute;
	background: var(--mq-white);
	border-radius: 18px;
	padding: 14px 18px;
	box-shadow: var(--mq-shadow-chip);
	display: flex;
	align-items: center;
	gap: 12px;
}
.mq-chip--w1 { left: -36px; top: 96px; }
.mq-chip--w12 { right: -10px; bottom: 60px; background: var(--mq-ink); color: var(--mq-paper); box-shadow: 0 18px 40px -18px rgba(27, 26, 23, 0.5); }
.mq-chip__badge {
	width: 34px; height: 34px;
	border-radius: 50%;
	background: var(--mq-ink);
	color: var(--mq-paper);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
	flex: none;
}
.mq-chip--w12 .mq-chip__badge { background: var(--mq-acc); color: var(--mq-white); }
.mq-chip__text { display: flex; flex-direction: column; }
.mq-chip__when { font-size: 12px; color: #6B655B; }
.mq-chip--w12 .mq-chip__when { color: var(--mq-cream); }
.mq-chip__what { font-size: 15px; font-weight: 600; }

/* ============================================================
 * 6. Marquee
 * ============================================================ */
/* Kept as a containment guard: .mq-marquee clips its own scrolling track, and
   this clips the band itself if anyone ever gives it a transform again. */
.mq-marqueewrap { overflow: hidden; }

/*
 * Level, not tilted.
 *
 * The reference sets `transform: rotate(-1.2deg)` with `margin: 20px -20px 0` —
 * the negative margins exist only to hide the paper wedges the tilt opens at
 * each end. Level, the band spans the page exactly and the bleed is no longer
 * needed, so both come off together.
 */
.mq-marquee {
	background: var(--mq-ink);
	color: var(--mq-paper);
	padding: 26px 0;
	margin: 20px 0 0;
	overflow: hidden;
}
.mq-marquee__text {
	font-family: var(--mq-display);
	gap: 0;
	font-size: 40px;
	font-weight: 300;
	font-style: italic;
	white-space: nowrap;
}
.mq-marquee__text > span { padding-right: 48px; }
.mq-marquee__star { color: var(--mq-acc-light); font-style: normal; }

/* ============================================================
 * 7. Twelve-week arc
 * ============================================================ */
.mq-arc {
	max-width: var(--mq-max);
	margin-inline: auto;
	padding: 140px var(--mq-gutter) 60px;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.mq-sectionhead { display: flex; align-items: flex-end; gap: 48px; }
.mq-sectionhead__main { flex-grow: 1; display: flex; flex-direction: column; gap: 16px; }
.mq-sectionhead__title { margin: 0; font-size: 64px; line-height: 1; font-weight: 400; letter-spacing: -0.03em; }
.mq-sectionhead__title em { font-weight: 300; }
.mq-sectionhead__intro { margin: 0; max-width: 400px; font-size: 18px; line-height: 1.6; color: var(--mq-body); }
.mq-on-ink .mq-sectionhead__intro { color: var(--mq-cream); }
.mq-sectionhead__link { font-size: 17px; font-weight: 600; text-underline-offset: 6px; flex: none; }

.mq-chart {
	background: var(--mq-white);
	border-radius: var(--mq-r-chart);
	padding: 40px 40px 28px;
	box-shadow: var(--mq-shadow-chart);
}
.mq-chart svg { display: block; width: 100%; height: auto; }

/* ============================================================
 * 8. Cinematic band
 * ============================================================ */
.mq-bandwrap { padding: 60px var(--mq-gutter) 0; }

.mq-band {
	max-width: 1344px;
	margin-inline: auto;
	position: relative;
	height: 620px;
	border-radius: var(--mq-r-panel);
	overflow: hidden;
	background: #6E3A24;
}
.mq-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.mq-band figure { margin: 0; }
.mq-band__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(27, 26, 23, 0.78) 0%, rgba(27, 26, 23, 0.35) 45%, rgba(27, 26, 23, 0) 70%);
}
.mq-band__text {
	position: absolute;
	left: 72px; bottom: 72px;
	max-width: 560px;
	color: var(--mq-paper);
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.mq-band__text .mq-eyebrow { color: #E9DCCB; }
.mq-band__line {
	margin: 0;
	font-family: var(--mq-display);
	font-size: 52px;
	line-height: 1.05;
	font-weight: 300;
	letter-spacing: -0.02em;
}
.mq-band__badge {
	position: absolute;
	right: 56px; top: 56px;
	width: 128px; height: 128px;
	border-radius: 50%;
	background: var(--mq-paper);
	color: var(--mq-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.3;
}

/* ============================================================
 * 9. About
 * ============================================================ */
.mq-about {
	max-width: var(--mq-max);
	margin-inline: auto;
	padding: 120px var(--mq-gutter) 100px;
	align-items: center;
}

.mq-about__media { grid-column: span 5; position: relative; height: 580px; }
.mq-about__arch {
	position: absolute;
	inset: 40px 40px 0 0;
	border-radius: 240px 240px 28px 28px;
	background: var(--mq-sand);
	overflow: hidden;
}
.mq-about__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; display: block; }
.mq-about__arch figure { margin: 0; height: 100%; }

.mq-about__badge {
	position: absolute;
	right: 0; top: 0;
	width: 150px; height: 150px;
	border-radius: 50%;
	background: var(--mq-acc);
	color: var(--mq-white);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.mq-about__badge b { font-family: var(--mq-display); font-size: 44px; line-height: 1; font-weight: 400; }
.mq-about__badge span { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

.mq-about__copy { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 28px; }
.mq-about__title { margin: 0; font-size: 72px; line-height: 0.98; font-weight: 400; letter-spacing: -0.03em; }
.mq-about__title em { font-weight: 300; color: var(--mq-acc-text); font-style: italic; }
.mq-about__copy > p { margin: 0; font-size: 19px; line-height: 1.65; color: var(--mq-body); }

.mq-pills { display: flex; gap: 12px; flex-wrap: wrap; }
.mq-pill {
	padding: 10px 16px;
	border-radius: var(--mq-r-pill);
	/* 3:1 boundary — the reference used rgba(ink,.2) at 1.51:1. */
	border: 1.5px solid var(--mq-rule-strong);
	font-size: 14px;
	font-weight: 500;
}
.mq-on-ink .mq-pill { border-color: rgba(244, 239, 230, 0.5); }

.mq-textlink { font-size: 17px; font-weight: 600; text-underline-offset: 6px; align-self: flex-start; }

/* ============================================================
 * 10. Engagements (dark)
 * ============================================================ */
.mq-engagements {
	background: var(--mq-ink);
	color: var(--mq-paper);
	padding: 130px 0 140px;
	border-radius: 48px 48px 0 0;
}
.mq-engagements__inner {
	max-width: var(--mq-max);
	margin-inline: auto;
	padding-inline: var(--mq-gutter);
	display: flex;
	flex-direction: column;
	gap: 64px;
}
.mq-engagements .mq-sectionhead__title { font-size: 72px; }
.mq-engagements .mq-sectionhead__title em { color: var(--mq-acc-light); font-style: italic; }

.mq-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.mq-card {
	background: var(--mq-paper);
	color: var(--mq-ink);
	border-radius: var(--mq-r-card);
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.mq-card__media { position: relative; height: 260px; border-radius: 20px; background: var(--mq-bone); }
.mq-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mq-card__media figure { margin: 0; height: 100%; }
.mq-card__glyph {
	position: absolute;
	right: 12px; bottom: 12px;
	width: 132px; height: 88px;
	border-radius: 16px;
	background: color-mix(in srgb, var(--mq-paper) 94%, transparent);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.mq-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mq-card__index { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mq-muted); }
.mq-card__tag {
	font-size: 13px;
	font-weight: 600;
	background: var(--mq-ink);
	color: var(--mq-paper);
	padding: 6px 12px;
	border-radius: var(--mq-r-pill);
	white-space: nowrap;
}
.mq-card__title { margin: 0; font-size: 36px; font-weight: 400; letter-spacing: -0.02em; }
.mq-card p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--mq-body); }

/* ============================================================
 * 11. Stats
 * ============================================================ */
.mq-stats {
	margin-top: 60px;
	border-top: 1px solid var(--mq-rule-on-ink);
	padding-top: 56px;
	display: flex;
	flex-direction: column;
	gap: 40px;
}
.mq-stats__head { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.mq-stats__title {
	margin: 0;
	font-size: 40px;
	font-weight: 300;
	font-style: italic;
	letter-spacing: -0.02em;
}
.mq-stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.mq-stat { display: flex; flex-direction: column; gap: 8px; }
.mq-stat__value {
	font-family: var(--mq-display);
	font-size: 120px;
	line-height: 0.9;
	font-weight: 300;
	letter-spacing: -0.04em;
}
.mq-stat--accent .mq-stat__value { color: var(--mq-acc-light); }
.mq-stat__suffix { font-size: 44px; font-style: italic; }
.mq-stat__label { font-size: 16px; color: var(--mq-cream); }

/* ============================================================
 * 12. Resources
 * ============================================================ */
.mq-resources {
	max-width: var(--mq-max);
	margin-inline: auto;
	padding: 140px var(--mq-gutter) 20px;
	display: flex;
	flex-direction: column;
	gap: 56px;
}
.mq-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }

.mq-guide {
	text-decoration: none;
	color: var(--mq-ink);
	background: var(--mq-white);
	border-radius: var(--mq-r-card);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.mq-guide--offset { margin-top: 64px; }
.mq-guide__media { height: 340px; }
.mq-guide__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mq-guide__media figure { margin: 0; height: 100%; }
.mq-guide__body { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 10px; }
.mq-guide__kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mq-muted); }
.mq-guide__title { margin: 0; font-size: 34px; font-weight: 400; letter-spacing: -0.02em; }
.mq-guide p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--mq-body); }

/* ============================================================
 * 13. Testimonials
 *
 * The three testimonials are ordinary editable blocks. site.js promotes them
 * into an ARIA tab widget and builds the tablist from their own names, roles
 * and avatars — so editing a quote in WordPress is all it takes to change
 * what the tab shows. The reference held the quotes in a JavaScript array,
 * which desynchronises the first time anybody edits one.
 *
 * Without JavaScript there is no widget and all three simply stack, which is
 * why the decorative mark and glow only appear once .mq-words--tabbed is on.
 * ============================================================ */
.mq-words {
	max-width: var(--mq-max);
	margin-inline: auto;
	padding: 140px var(--mq-gutter) 120px;
}
.mq-words__side { grid-column: span 4; display: flex; flex-direction: column; gap: 28px; }
.mq-words__title { margin: 0; font-size: 60px; line-height: 1; font-weight: 400; letter-spacing: -0.03em; }
.mq-words__title em { font-weight: 300; font-style: italic; }

.mq-tabs { display: flex; flex-direction: column; gap: 10px; }
.mq-tab {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	min-height: 64px;
	border-radius: 18px;
	/* 3:1 boundary — the reference used rgba(ink,.18), which is 1.44:1. */
	border: 1.5px solid var(--mq-rule-strong);
	background: transparent;
	color: var(--mq-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.mq-tab img {
	width: 44px; height: 44px;
	border-radius: 50%;
	object-fit: cover;
	filter: grayscale(0.6);
	transition: filter 0.3s;
	flex: none;
}
.mq-tab__text { display: flex; flex-direction: column; }
.mq-tab__name { font-weight: 600; font-size: 16px; }
.mq-tab__role { font-size: 14px; color: var(--mq-muted); }
.mq-tab[aria-selected="true"] { background: var(--mq-ink); border-color: var(--mq-ink); color: var(--mq-paper); }
.mq-tab[aria-selected="true"] img { filter: none; box-shadow: 0 0 0 3px var(--mq-acc); }
.mq-tab[aria-selected="true"] .mq-tab__role { color: var(--mq-cream); }

.mq-quotewrap {
	grid-column: 6 / span 7;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 64px;
}
.mq-words--tabbed .mq-quotewrap {
	min-height: 520px;
	justify-content: center;
	gap: 0;
}

.mq-quotewrap__glow,
.mq-quotewrap__mark { display: none; }
.mq-words--tabbed .mq-quotewrap__glow,
.mq-words--tabbed .mq-quotewrap__mark { display: block; }

.mq-quotewrap__glow {
	position: absolute;
	left: -40px; top: -20px;
	width: 360px; height: 360px;
	border-radius: 50%;
	background: var(--mq-acc-soft);
}
.mq-quotewrap__mark {
	position: absolute;
	left: -20px; top: -60px;
	font-family: var(--mq-display);
	font-size: 300px;
	line-height: 1;
	color: var(--mq-acc);
	opacity: 0.9;
	pointer-events: none;
}

.mq-testimonial {
	position: relative;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 36px;
}
.mq-words--tabbed .mq-testimonial { padding-top: 80px; }
.mq-testimonial[hidden] { display: none; }

.mq-testimonial__text {
	margin: 0;
	font-family: var(--mq-display);
	font-size: 40px;
	line-height: 1.22;
	font-weight: 300;
	letter-spacing: -0.015em;
}
.mq-testimonial__by { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mq-testimonial__avatar { flex: none; margin-right: 8px; }
.mq-testimonial__avatar img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block; }
.mq-testimonial__avatar figure { margin: 0; }
.mq-testimonial__name { font-size: 17px; font-weight: 700; }
.mq-testimonial__role { font-size: 17px; color: var(--mq-body); }
.mq-testimonial__role::before { content: "— "; }

/* ============================================================
 * 14. CTA
 * ============================================================ */
.mq-ctawrap { padding: 0 var(--mq-gutter) 120px; }
.mq-cta {
	/* 1280 content + 2 x 80 padding, matching the reference's content box. */
	max-width: 1440px;
	margin-inline: auto;
	position: relative;
	overflow: hidden;
	background: var(--mq-acc);
	color: var(--mq-white);
	border-radius: var(--mq-r-panel);
	padding: 96px 80px;
	display: flex;
	align-items: center;
	gap: 48px;
}
.mq-cta__ring { position: absolute; right: -120px; top: -110px; opacity: 0.25; pointer-events: none; }
.mq-cta__copy { flex-grow: 1; position: relative; display: flex; flex-direction: column; gap: 20px; }
.mq-cta__title { margin: 0; font-size: 84px; line-height: 0.95; font-weight: 400; letter-spacing: -0.035em; }
.mq-cta__title em { font-weight: 300; font-style: italic; }
.mq-cta__copy p { margin: 0; font-size: 19px; line-height: 1.6; max-width: 560px; }
.mq-cta__btn {
	position: relative;
	flex-shrink: 0;
	text-decoration: none;
	background: var(--mq-ink);
	color: var(--mq-paper);
	width: 200px; height: 200px;
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 18px;
	font-weight: 600;
	text-align: center;
}

/* ============================================================
 * 15. Footer
 * ============================================================ */
.mq-footer {
	max-width: var(--mq-max);
	margin-inline: auto;
	padding: 0 var(--mq-gutter) 56px;
	display: flex;
	flex-direction: column;
	gap: 48px;
}
.mq-footer__grid { row-gap: 32px; }
.mq-footer__brand { grid-column: span 6; display: flex; flex-direction: column; gap: 16px; }
.mq-footer__wordmark { font-family: var(--mq-display); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.mq-footer__wordmark em { font-weight: 400; font-style: italic; }
.mq-footer__brand p { margin: 0; max-width: 460px; font-size: 16px; line-height: 1.6; color: var(--mq-body); }
.mq-footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.mq-footer__col--links { grid-column: span 2; }
.mq-footer__col--reach { grid-column: span 4; }
.mq-footer__col .mq-eyebrow { font-size: 13px; }
.mq-footer__col a { align-self: flex-start; }
.mq-footer__hours { color: var(--mq-body); line-height: 1.6; }
.mq-footer__bottom {
	border-top: 1px solid var(--mq-rule);
	padding-top: 24px;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 14px;
	color: var(--mq-muted);
}

/* ============================================================
 * 16. Inner pages
 *
 * The reference only specifies the homepage. About, Coaching, Resources and
 * Book carry the same language — type, palette, chrome, motion — through a
 * small set of page-level components rather than a second bespoke layout.
 * ============================================================ */
.mq-pagehead {
	position: relative;
	max-width: var(--mq-max);
	margin-inline: auto;
	padding: 88px var(--mq-gutter) 56px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.mq-pagehead__glow {
	position: absolute;
	width: 520px; height: 520px;
	right: -140px; top: -60px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--mq-acc-soft) 0%, rgba(244, 239, 230, 0) 65%);
	pointer-events: none;
}
.mq-pagehead__title {
	margin: 0;
	position: relative;
	font-size: 84px;
	line-height: 0.98;
	font-weight: 400;
	letter-spacing: -0.035em;
	max-width: 15ch;
}
.mq-pagehead__title em { font-weight: 300; font-style: italic; color: var(--mq-acc-text); }
.mq-pagehead__deck {
	margin: 0;
	position: relative;
	max-width: 620px;
	font-size: 19px;
	line-height: 1.6;
	color: var(--mq-body);
}

.mq-prose {
	max-width: var(--mq-max);
	margin-inline: auto;
	padding: 0 var(--mq-gutter) 96px;
}
.mq-prose__col { max-width: 760px; }
.mq-prose h2 { margin: 64px 0 20px; font-size: 48px; line-height: 1.02; font-weight: 400; letter-spacing: -0.03em; }
.mq-prose h2 em { font-weight: 300; font-style: italic; color: var(--mq-acc-text); }
.mq-prose h3 { margin: 40px 0 14px; font-size: 30px; font-weight: 400; letter-spacing: -0.02em; }
.mq-prose p { margin: 0 0 20px; font-size: 19px; line-height: 1.65; color: var(--mq-body); }
.mq-prose > :first-child { margin-top: 0; }

/*
 * The Book page puts Mara's address in an <h3>. It is a single 30-character
 * token with no break opportunity, so at 390px it ran 56px past the edge.
 * `anywhere` rather than `break-word` because it also lets the heading's
 * min-content width shrink, which is what stops it forcing the panel wide.
 */
.mq-prose :is(h2, h3, p, li) { overflow-wrap: break-word; }
.mq-prose a[href^="mailto:"],
.mq-prose a[href^="http"] { overflow-wrap: anywhere; }
.mq-prose ul, .mq-prose ol { margin: 0 0 24px; padding-left: 22px; }
.mq-prose li { font-size: 19px; line-height: 1.65; color: var(--mq-body); margin-bottom: 10px; }
.mq-prose li::marker { color: var(--mq-acc); }

.mq-panel {
	background: var(--mq-white);
	border-radius: var(--mq-r-card);
	padding: 36px 40px;
	box-shadow: var(--mq-shadow-chart);
}
.mq-panel + .mq-panel { margin-top: 24px; }
.mq-panel h3 { margin-top: 0; }

.mq-pullquote {
	margin: 48px 0;
	padding-left: 28px;
	border-left: 4px solid var(--mq-acc);
	font-family: var(--mq-display);
	font-size: 30px;
	line-height: 1.25;
	font-weight: 300;
	font-style: italic;
	letter-spacing: -0.015em;
}

.mq-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.mq-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/*
 * Photography on the inner pages.
 *
 * The reference only specifies the homepage, so About, Coaching and Resources
 * needed their own treatment for the photographs the original build carried:
 * one wide plate on About, and alternating image/copy rows for the three
 * engagements and the two guides.
 */
.mq-platewrap {
	max-width: var(--mq-max);
	margin-inline: auto;
	padding: 0 var(--mq-gutter) 72px;
}
.mq-plate {
	border-radius: var(--mq-r-panel);
	overflow: hidden;
	background: var(--mq-sand);
	aspect-ratio: 16 / 7;
}
.mq-plate img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mq-plate figure { margin: 0; height: 100%; }

.mq-features {
	max-width: var(--mq-max);
	margin-inline: auto;
	padding: 0 var(--mq-gutter) 96px;
	display: flex;
	flex-direction: column;
	gap: 96px;
}
.mq-feature {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
}
.mq-feature__media {
	border-radius: var(--mq-r-card);
	overflow: hidden;
	background: var(--mq-bone);
	aspect-ratio: 12 / 7;
}
.mq-feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mq-feature__media figure { margin: 0; height: 100%; }
.mq-feature--reverse .mq-feature__media { order: 2; }

.mq-feature__copy { display: flex; flex-direction: column; gap: 18px; }
.mq-feature__title { font-size: 40px; font-weight: 400; letter-spacing: -0.02em; }
.mq-feature__price { font-size: 18px; }
.mq-features :is(p, h2, h3, figure, ul, ol),
.mq-platewrap :is(figure) { margin-block: 0; }
.mq-features .wp-block-group { max-width: none; }
.mq-features .wp-block-buttons { margin-block: 6px 0; }

/* ============================================================
 * 17. Tablet — 1024
 * ============================================================ */
@media (max-width: 1024px) {
	.mq-g12 {
		display: flex;
		flex-direction: column;
		gap: 48px;
		align-items: stretch;
	}
	.mq-g12 > * { grid-column: auto; }

	.mq-hero__vis { align-self: center; width: 520px; flex: none; zoom: 0.8; }
	.mq-about__media { max-width: 520px; }
	.mq-quotewrap { min-height: 0; }

	.mq-sectionhead { flex-direction: column; align-items: flex-start; gap: 18px; }
	.mq-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mq-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
	.mq-stat__value { font-size: 96px; }

	.mq-cta { flex-direction: column; align-items: flex-start; padding: 64px 48px; }
	.mq-pagehead__title { font-size: 68px; }
	.mq-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.mq-feature { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.mq-feature--reverse .mq-feature__media { order: 0; }
	.mq-features { gap: 72px; }
}

/* ============================================================
 * 18. Burger — 900
 * ============================================================ */
@media (max-width: 900px) {
	/* Scoped to .mq-header so these outrank .mq-btn:not(.wp-block-button),
	   which is two classes and would otherwise keep the pill laid out. */
	.mq-header .mq-nav__links,
	.mq-header .mq-nav__cta { display: none; }
	.mq-burger { display: flex; }
	.mq-nav { padding: 10px 12px 10px 20px; gap: 12px; }
}

/* ============================================================
 * 19. Phone — 720
 * ============================================================ */
@media (max-width: 720px) {
	.mq-hero { padding-top: 36px; padding-bottom: 24px; }
	.mq-hero__title { font-size: 50px; line-height: 1; }
	.mq-hero__copy { gap: 22px; }
	.mq-hero__lede { font-size: 17px; }
	.mq-hero__actions { flex-direction: column; align-items: stretch; }
	.mq-hero__actions .mq-btn { text-align: center; width: 100%; }
	.mq-hero__vis { zoom: 0.6; margin-inline: auto; }

	.mq-arc,
	.mq-about,
	.mq-resources,
	.mq-words { padding-top: 72px; padding-bottom: 40px; }

	.mq-engagements { padding: 72px 0; border-radius: 32px 32px 0 0; }
	.mq-engagements__inner { padding-inline: var(--mq-gutter); gap: 40px; }

	.mq-sectionhead__title,
	.mq-about__title,
	.mq-words__title,
	.mq-engagements .mq-sectionhead__title { font-size: 40px; line-height: 1.02; }

	/* The chart keeps its geometry and scrolls sideways inside the card. */
	.mq-chart { padding: 20px 16px 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.mq-chart svg { width: 720px; height: auto; }

	.mq-cards,
	.mq-guides { grid-template-columns: minmax(0, 1fr); }
	.mq-guide--offset { margin-top: 0; }

	.mq-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
	.mq-stats__head { flex-direction: column; gap: 10px; }
	.mq-stat__value { font-size: 72px; }
	.mq-stat__suffix { font-size: 28px; }

	.mq-marquee__text { font-size: 24px; }

	.mq-bandwrap { padding: 40px 12px 0; }
	.mq-band { height: 460px; border-radius: 28px; }
	.mq-band img { object-position: 78% 30%; }
	.mq-band__scrim {
		background: linear-gradient(0deg, rgba(27, 26, 23, 0.85) 0%, rgba(27, 26, 23, 0.2) 55%, rgba(27, 26, 23, 0) 75%);
	}
	.mq-band__text { left: 24px; right: 24px; bottom: 28px; }
	.mq-band__line { font-size: 30px; }
	.mq-band__badge { display: none; }

	.mq-about__media { height: 420px; }

	.mq-testimonial__text { font-size: 25px; }
	.mq-quotewrap__mark { font-size: 140px; top: -30px; }

	/* Tabs collapse to a row of avatars. */
	.mq-tabs { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
	.mq-tab {
		padding: 3px;
		min-height: 0;
		width: 62px; height: 62px;
		border-radius: 50%;
		justify-content: center;
		flex: none;
	}
	.mq-tab .mq-tab__text { display: none; }
	.mq-tab img { width: 52px; height: 52px; }

	.mq-ctawrap { padding: 0 12px 40px; }
	.mq-cta {
		flex-direction: column;
		align-items: stretch;
		padding: 48px 24px;
		border-radius: 28px;
		gap: 24px;
	}
	.mq-cta__title { font-size: 44px; }
	.mq-cta__btn {
		width: auto; height: 56px;
		border-radius: var(--mq-r-pill);
		flex-direction: row;
	}
	.mq-cta__btn br { display: none; }

	.mq-card:hover,
	.mq-guide:hover { transform: none; }

	.mq-pagehead { padding-top: 48px; padding-bottom: 32px; }
	.mq-pagehead__title { font-size: 44px; }
	.mq-prose h2 { font-size: 34px; margin-top: 48px; }
	.mq-prose h3 { font-size: 25px; }
	.mq-prose p, .mq-prose li { font-size: 17px; }
	.mq-panel { padding: 26px 22px; }
	.mq-pullquote { font-size: 24px; margin: 32px 0; }
	.mq-split, .mq-facts { grid-template-columns: minmax(0, 1fr); }
	.mq-footer__bottom { flex-direction: column; gap: 8px; }

	.mq-features { gap: 56px; padding-bottom: 56px; }
	.mq-feature__title { font-size: 30px; }
	.mq-plate { aspect-ratio: 4 / 3; }
	.mq-platewrap { padding-bottom: 40px; }
}
