/*
 * MGhulamHasnain123 theme — components and pages.
 * All values come from tokens.css (Figma DS / Foundations). Desktop design = 1920px,
 * mobile design = 390px; the Mobile token set applies below 768px.
 */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--color-bg-page);
	color: var(--color-text-primary);
	font-family: var(--font-family-body);
	font-size: var(--font-size-base);
	line-height: var(--line-height-22);
	-webkit-font-smoothing: antialiased;
	transition: background-color 200ms ease-in-out, color 200ms ease-in-out;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: inherit; }

button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--color-action-primary); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

.mgh-skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 200;
	padding: var(--space-12) var(--space-16);
	border-radius: var(--radius-md);
	background: var(--color-bg-inverse); color: var(--color-text-inverse);
	font-weight: var(--font-weight-semibold);
	pointer-events: auto;
}
.mgh-skip-link:focus { top: 16px; }

/* Mono icons drawn with a mask so they follow currentColor and the theme. */
.mgh-icon {
	display: inline-block; flex: none;
	width: 24px; height: 24px;
	background-color: currentColor;
	-webkit-mask: var(--mgh-icon) center / contain no-repeat;
	mask: var(--mgh-icon) center / contain no-repeat;
}
.mgh-icon--hamburger { --mgh-icon: url("../icons/hamburger.svg"); width: 36px; height: 36px; }
.mgh-icon--theme-light, .mgh-icon--theme-dark { --mgh-icon: url("../icons/theme-light.svg"); width: 36px; height: 36px; }
.mgh-icon--theme-dark { --mgh-icon: url("../icons/theme-dark.svg"); } /* sun, shown in dark mode (Figma "Theme Mode=Dark") */
.mgh-icon--modal-lock { --mgh-icon: url("../icons/modal-lock.svg"); }
.mgh-icon--modal-back { --mgh-icon: url("../icons/modal-back.svg"); }
.mgh-icon--modal-contact { --mgh-icon: url("../icons/modal-contact.svg"); }
.mgh-icon--contact-phone { --mgh-icon: url("../icons/contact-phone.svg"); width: 21.1px; height: 28.1px; }
.mgh-icon--contact-resume { --mgh-icon: url("../icons/contact-resume.svg"); width: 28.1px; height: 28.1px; }
.mgh-icon--contact-email { --mgh-icon: url("../icons/contact-email.svg"); width: 30px; height: 30px; }
.mgh-icon--contact-linkedin { --mgh-icon: url("../icons/contact-linkedin.svg"); width: 29.6px; height: 29.7px; }
.mgh-icon--contact-behance { --mgh-icon: url("../icons/contact-behance.svg"); width: 33.3px; height: 21.2px; }
.mgh-icon--nav-back { --mgh-icon: url("../icons/nav-back.svg"); width: 48px; height: 48px; }
.mgh-icon--nav-forward { --mgh-icon: url("../icons/nav-forward.svg"); width: 48px; height: 48px; }

/* The theme template gives every block its own spacing; WordPress' flow gap is 0. */
.wp-site-blocks > * { margin-block: 0; }

.mgh-main { padding-top: var(--size-header-height); }

/* Shared section label + title: "(04)  What I do" */
.mgh-section-title {
	display: flex; align-items: baseline; gap: var(--space-16);
	margin: 0;
	font-family: var(--font-family-display);
	font-weight: var(--font-weight-medium);
	font-size: var(--type-section-title);
	line-height: 1.3334;
	color: var(--color-text-primary);
}
.mgh-section-title em {
	flex: none;
	font-family: var(--font-family-body);
	font-style: normal;
	font-weight: var(--font-weight-medium);
	font-size: var(--font-size-md);
	line-height: var(--line-height-20);
	color: var(--color-text-secondary);
}

/* "(05)  PHILOSOPHY" — Label/Overline */
.mgh-overline {
	margin: 0;
	font-family: var(--font-family-body);
	font-weight: var(--font-weight-semibold);
	font-size: var(--font-size-xs);
	line-height: var(--line-height-16);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: pre;
	color: var(--color-text-secondary);
}

/* ── Section / Header ─────────────────────────────────── */
.mgh-header {
	position: fixed; inset: 0 0 auto; z-index: 50;
	padding: var(--space-24) var(--space-48) 0;
	pointer-events: none;
}
.admin-bar .mgh-header { top: 32px; }

.mgh-header__bar {
	pointer-events: auto;
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
	max-width: 1824px; min-height: 84px;
	margin: 0 auto;
	padding: var(--space-16) 36px;
	border-radius: var(--radius-lg);
	background: var(--color-bg-glass);
	-webkit-backdrop-filter: blur(var(--blur-glass));
	backdrop-filter: blur(var(--blur-glass));
}

.mgh-logo {
	position: relative; display: block; flex: none;
	width: 30px; height: 30px;
	overflow: hidden;
	color: var(--color-text-primary);
	text-decoration: none;
	transition: width 300ms ease-in-out;
}
.mgh-logo__word {
	position: absolute; left: 0; top: 0;
	font-family: var(--font-family-display);
	font-weight: var(--font-weight-regular);
	font-size: 30px; line-height: 30px;
	text-transform: uppercase;
	white-space: nowrap;
	opacity: 0;
	transform: translateX(-20px);
	transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
}
.mgh-logo__name { font-weight: var(--font-weight-black); }
.mgh-logo__mark { position: absolute; top: 0; right: 0; width: 30px; height: 30px; }
.mgh-logo__half {
	position: absolute; left: 0; width: 30px; height: 15px;
	background-color: currentColor;
	-webkit-mask: var(--mgh-icon) center / 100% 100% no-repeat;
	mask: var(--mgh-icon) center / 100% 100% no-repeat;
}
.mgh-logo__half--top { top: 0; --mgh-icon: url("../icons/logo-mark-top.svg"); }
.mgh-logo__half--bottom { top: 15px; --mgh-icon: url("../icons/logo-mark-bottom.svg"); }
.mgh-logo:hover,
.mgh-logo:focus-visible,
.mgh-logo.is-expanded { width: 232.5px; }
.mgh-logo:hover .mgh-logo__word,
.mgh-logo:focus-visible .mgh-logo__word,
.mgh-logo.is-expanded .mgh-logo__word { opacity: 1; transform: none; }

.mgh-nav { display: flex; align-items: center; gap: var(--space-24); margin-left: auto; margin-right: var(--space-24); }
.mgh-nav__link {
	display: inline-flex; align-items: center;
	padding: var(--space-12) var(--space-24);
	border: 0; border-radius: var(--radius-full);
	background: transparent;
	font-family: var(--font-family-display);
	font-weight: var(--font-weight-extrabold);
	font-size: var(--font-size-2xl); line-height: var(--line-height-28);
	color: var(--color-text-primary);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 200ms ease-in-out;
}
.mgh-nav__link:hover { background: var(--color-bg-surface-muted); }

.mgh-header__right { display: flex; align-items: center; gap: var(--space-20); }

.mgh-status {
	display: inline-flex; align-items: center; gap: var(--space-8);
	height: 52px; margin: 0;
	padding: var(--space-12) var(--space-16);
	border-radius: var(--radius-full);
	background: var(--color-bg-surface-muted);
	font-weight: var(--font-weight-medium);
	font-size: var(--font-size-base); line-height: 18px;
	color: var(--color-text-primary);
	white-space: nowrap;
}
.mgh-status__dot {
	width: 12px; height: 12px; flex: none;
	background: url("../icons/status-dot.svg") center / contain no-repeat;
}

.mgh-theme-toggle {
	display: inline-grid; place-items: center;
	width: 36px; height: 36px; padding: 0;
	border: 0; background: transparent;
	color: var(--color-text-primary);
	cursor: pointer;
}
.mgh-theme-toggle > .mgh-icon { grid-area: 1 / 1; }
.mgh-theme-toggle__to-light { display: none; }
[data-theme="dark"] .mgh-theme-toggle__to-dark { display: none; }
[data-theme="dark"] .mgh-theme-toggle__to-light { display: inline-block; }

.mgh-burger {
	display: none; place-items: center;
	width: 48px; height: 44px; padding: 0;
	border: 0; background: transparent;
	color: var(--color-text-primary);
	cursor: pointer;
}
.mgh-header__status-row { display: none; }

/* ── Dialogs: Access Modal (Step = Contact) ───────────── */
dialog { color: inherit; }

.mgh-modal {
	width: min(736px, calc(100vw - 2 * var(--layout-gutter)));
	max-width: none; max-height: calc(100dvh - 32px);
	padding: 0; border: 0;
	background: transparent;
	overflow: visible;
}
.mgh-modal::backdrop,
.mgh-menu::backdrop {
	background: var(--color-alpha-ink-60);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.mgh-modal__panel {
	display: flex; flex-direction: column; gap: var(--space-24);
	padding: var(--space-48);
	border-radius: var(--radius-2xl);
	background: var(--color-modal-bg);
	color: var(--color-modal-text);
	-webkit-backdrop-filter: blur(48px);
	backdrop-filter: blur(48px);
	box-shadow: var(--elevation-3);
}
.mgh-modal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-24); }
.mgh-modal__icon { color: var(--color-modal-icon); }
.mgh-modal__icon--lock { width: 75px; height: 96px; }
.mgh-modal__icon--contact { width: 96px; height: 96px; }
.mgh-modal__text { display: flex; flex-direction: column; gap: var(--space-10); }
.mgh-modal__title {
	margin: 0;
	font-family: var(--font-family-display);
	font-weight: var(--font-weight-bold);
	font-size: var(--font-size-4xl); line-height: var(--line-height-44);
}
.mgh-modal__subtitle,
.mgh-modal__footer {
	margin: 0;
	font-weight: var(--font-weight-medium);
	font-size: var(--font-size-lg); line-height: var(--line-height-24);
}
.mgh-modal__link {
	font-weight: var(--font-weight-semibold);
	color: var(--color-modal-link);
	text-decoration: underline; text-underline-position: from-font;
}

/* Round 72px close / toggle button (Closed / Opened — Cancel). Stays dark in both themes. */
.mgh-close {
	position: relative; display: inline-grid; place-items: center; flex: none;
	width: 72px; height: 72px; padding: 0;
	border: 0; border-radius: var(--radius-full);
	background: var(--color-modal-close-bg);
	color: var(--color-modal-close-icon);
	cursor: pointer;
}
/* × from Figma "Closed / Opened — Icon=Cancel" (72px artboard, scales with the button). */
.mgh-close__x {
	position: absolute; inset: 0;
	background-color: currentColor;
	-webkit-mask: url("../icons/close.svg") center / 100% 100% no-repeat;
	mask: url("../icons/close.svg") center / 100% 100% no-repeat;
}
.mgh-close--small { width: 44px; height: 44px; }

.mgh-back { display: inline-grid; place-items: center; width: 72px; height: 72px; color: var(--color-modal-icon); }
.mgh-back .mgh-icon { width: 72px; height: 72px; }

.mgh-contact-list { display: flex; flex-direction: column; gap: var(--space-12); margin: 0; padding: 0; list-style: none; }
.mgh-contact-list__link {
	display: flex; align-items: center; gap: var(--space-12);
	font-weight: var(--font-weight-semibold);
	font-size: var(--font-size-2xl); line-height: var(--line-height-24);
	color: var(--color-modal-text);
	text-decoration: none;
	overflow-wrap: anywhere;
}
.mgh-contact-list__link:hover span:last-child { text-decoration: underline; text-underline-position: from-font; }
.mgh-contact-list__icon { display: grid; place-items: center; flex: none; width: 60px; height: 60px; color: var(--color-modal-icon); }

/* ── Mobile / Menu — Open (full screen, always dark) ──── */
.mgh-menu {
	width: 100%; height: 100%; max-width: none; max-height: none;
	margin: 0; padding: 0; border: 0;
	background: var(--color-menu-bg);
	color: var(--color-menu-text);
}
.mgh-menu__inner {
	display: flex; flex-direction: column; gap: var(--space-16);
	min-height: 100%;
	padding: var(--space-16) var(--layout-gutter) var(--space-24);
}
.mgh-menu__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); }
.mgh-menu .mgh-logo { color: var(--color-menu-text); }
.mgh-menu .mgh-status { background: var(--color-menu-status-bg); color: var(--color-menu-status-text); }
.mgh-menu .mgh-theme-toggle { color: var(--color-menu-icon); }
.mgh-menu__contact { display: flex; flex-direction: column; gap: var(--space-12); padding: var(--space-24) 0; }
.mgh-menu__contact-icon { width: 48px; height: 48px; color: var(--color-menu-icon); }
.mgh-menu__title {
	margin: 0;
	font-family: var(--font-family-display);
	font-weight: var(--font-weight-bold);
	font-size: 28px; line-height: var(--line-height-44);
}
.mgh-menu .mgh-contact-list__link { font-size: 17px; color: var(--color-menu-text); }
.mgh-menu .mgh-contact-list__link.is-accent { color: var(--color-menu-link); }
.mgh-menu .mgh-contact-list__icon { color: var(--color-menu-icon); }
.mgh-menu__nav { margin-top: auto; padding-top: var(--space-32); border-top: 1px solid var(--color-menu-divider); }
.mgh-menu__link {
	font-family: var(--font-family-display);
	font-size: var(--type-menu-nav); line-height: 59px;
	color: var(--color-menu-text);
	text-decoration: none;
}

html.mgh-scroll-locked { overflow: hidden; }

/* ── Home · Section / Hero – About ────────────────────── */
.mgh-hero {
	padding: var(--layout-section-pad-y) var(--layout-gutter);
}
.mgh-hero__heading,
.mgh-hero__intro { max-width: var(--layout-content-max); margin-inline: auto; }
.mgh-hero__heading { display: flex; flex-direction: column; gap: 60px; }

.mgh-eyebrow {
	display: flex; align-items: center; gap: var(--space-16);
	margin: 0;
	font-weight: var(--font-weight-semibold);
	font-size: var(--font-size-sm); line-height: var(--line-height-20);
	letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--color-text-primary);
}
.mgh-eyebrow em {
	font-style: normal; font-weight: var(--font-weight-medium);
	font-size: var(--font-size-md); letter-spacing: 0;
	color: var(--color-text-secondary);
}
.mgh-eyebrow::after { content: ""; width: 64px; height: 1px; background: var(--color-bg-inverse); }

.mgh-hero__title {
	margin: 0;
	font-family: var(--font-family-display);
	font-weight: var(--font-weight-regular);
	font-size: var(--type-display-hero);
	line-height: 1.077;
	letter-spacing: -0.02em;
	color: var(--color-text-primary);
}
.mgh-hero__title em, .mgh-cta-title em { font-style: italic; }
.mgh-hero__title strong, .mgh-cta-title strong { font-weight: var(--font-weight-bold); }

.mgh-hero__intro {
	display: grid;
	/* Avatar 366 + text 676 with a 0 gap between them, then 48 + Meta (1728 − 1042 = 686). */
	grid-template-columns: 366px minmax(0, 676fr) minmax(0, 686fr);
	align-items: center;
	margin-top: 72px;
}
/* Animated avatar (Figma "Frame 187", 366×244): face at x 61–305, thought dots and idea bulb on the right.
 * The text column starts right at the avatar's edge (x 366, gap 0). */
.mgh-hero__avatar { position: relative; z-index: 1; margin: 0; align-self: start; pointer-events: none; }
.mgh-hero__avatar :is(img, .mgh-lottie) { display: block; width: 366px; max-width: none; height: 244px; }
.mgh-hero__text {
	margin: 0;
	font-size: var(--type-body); line-height: var(--line-height-28);
	color: var(--color-text-primary);
}
.mgh-meta { align-self: start; margin-left: var(--space-48); }
.mgh-meta__row { border-top: 1px solid var(--color-border-default); padding: 13px 0 12px; }
.mgh-meta__label {
	margin: 0 0 6px;
	font-weight: var(--font-weight-semibold);
	font-size: var(--font-size-xs); line-height: var(--line-height-16);
	letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--color-text-secondary);
}
.mgh-meta__value {
	margin: 0;
	font-weight: var(--font-weight-medium);
	font-size: var(--font-size-base); line-height: var(--line-height-22);
	color: var(--color-text-primary);
}

/* ── Home · Section / Selected Work + Clients (iframe) ── */
.mgh-work { border-top: 1px solid var(--color-border-default); }
/* The frame inherits the page's color-scheme so the browser keeps it transparent in both themes. */
.mgh-work__frame { display: block; width: 100%; height: 1108px; border: 0; background: transparent; }

/* ── Home · Section / Capabilities ────────────────────── */
.mgh-capabilities {
	display: flex; flex-direction: column; gap: var(--space-56);
	padding: var(--layout-section-pad-y) 0;
	border-top: 1px solid var(--color-border-default);
}
.mgh-capabilities__header,
.mgh-capabilities__columns,
.mgh-skills { width: 100%; max-width: calc(var(--layout-content-max) + 2 * var(--layout-gutter)); margin-inline: auto; padding-inline: var(--layout-gutter); }
.mgh-capabilities__header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-24); }
.mgh-section-desc {
	width: 560px; max-width: 100%; margin: 0;
	font-size: var(--type-body); line-height: var(--line-height-28);
	color: var(--color-text-primary);
}
.mgh-capabilities__columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mgh-capability {
	display: flex; flex-direction: column; gap: var(--space-24);
	padding: var(--space-40) var(--space-40) var(--space-48);
	border-top: 1px solid var(--color-border-default);
}
.mgh-capability + .mgh-capability { border-left: 1px solid var(--color-border-default); }
.mgh-capability__art { margin: 0; padding: var(--space-8) 0 var(--space-16); display: flex; justify-content: center; }
.mgh-capability__art :is(img, .mgh-lottie) { display: block; width: 300px; height: 300px; max-width: 100%; aspect-ratio: 1; }
.mgh-capability__title {
	display: flex; align-items: baseline; gap: 14px;
	margin: 0;
	font-family: var(--font-family-display);
	font-weight: var(--font-weight-regular);
	font-size: var(--type-capability-title); line-height: 1.2;
	color: var(--color-text-primary);
}
.mgh-capability__title em {
	font-family: var(--font-family-body); font-style: normal;
	font-weight: var(--font-weight-semibold);
	font-size: var(--font-size-sm); line-height: var(--line-height-16);
	color: var(--color-text-secondary);
}
.mgh-capability__text { margin: 0; font-size: var(--type-body-sm); line-height: var(--line-height-22); }

.mgh-skills {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px var(--space-12);
	margin-block: 0; list-style: none;
}
.mgh-skills li {
	display: inline-flex; align-items: center; gap: var(--space-10);
	padding: var(--space-10) 18px;
	border: 1px solid var(--color-border-default);
	border-radius: var(--radius-full);
	background: var(--color-bg-glass);
	font-weight: var(--font-weight-medium);
	font-size: var(--font-size-base); line-height: var(--line-height-22);
	white-space: nowrap;
	transition: background-color 100ms ease-out, border-color 100ms ease-out, color 100ms ease-out;
}
/* Hover (Figma Skill pill hover variant, Smart Animate 100 ms ease-out): bg/inverse fill,
   text/inverse text and icon. Both tokens flip with the theme, so this covers Light and Dark.
   The border takes the fill colour instead of disappearing, so the pill doesn't shift. */
@media (hover: hover) {
	.mgh-skills li:hover {
		background: var(--color-bg-inverse);
		border-color: var(--color-bg-inverse);
		color: var(--color-text-inverse);
	}
}
.mgh-skills li::before {
	content: ""; flex: none; width: 22px; height: 22px;
	background-color: currentColor;
	-webkit-mask: var(--mgh-icon) center / contain no-repeat;
	mask: var(--mgh-icon) center / contain no-repeat;
}
.mgh-skills .skill--user-research { --mgh-icon: url("../icons/skill-user-research.svg"); }
.mgh-skills .skill--product-design { --mgh-icon: url("../icons/skill-product-design.svg"); }
.mgh-skills .skill--interaction-design { --mgh-icon: url("../icons/skill-interaction-design.svg"); }
.mgh-skills .skill--prototyping { --mgh-icon: url("../icons/skill-prototyping.svg"); }
.mgh-skills .skill--wireframing { --mgh-icon: url("../icons/skill-wireframing.svg"); }
.mgh-skills .skill--gen-ai { --mgh-icon: url("../icons/skill-gen-ai.svg"); }
.mgh-skills .skill--usability-testing { --mgh-icon: url("../icons/skill-usability-testing.svg"); }
.mgh-skills .skill--mobile-app-design { --mgh-icon: url("../icons/skill-mobile-app-design.svg"); }
/* Design Systems: 3×3 dot grid drawn in CSS, as in the design (18px). */
.mgh-skills .skill--design-systems::before {
	width: 18px; height: 18px; margin: 2px;
	-webkit-mask: none; mask: none; background: none;
	background-image: radial-gradient(circle, currentColor 1.6px, transparent 1.7px);
	background-size: 7.5px 7.5px; background-position: -1.9px -1.9px;
}

/* ── Home · Section / Philosophy ──────────────────────── */
.mgh-philosophy {
	display: flex; flex-direction: column; align-items: center; gap: var(--space-24);
	padding: var(--layout-section-pad-y) var(--layout-gutter);
	border-block: 1px solid var(--color-border-default);
	text-align: center;
}
.mgh-quote {
	max-width: 1240px; margin: 0;
	font-family: var(--font-family-display);
	font-size: var(--type-display-quote); line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--color-text-primary);
}
.mgh-quote strong { font-family: var(--font-family-body); font-weight: var(--font-weight-semibold); }
.mgh-quote em { font-style: italic; }

/* ── Section / Contact & Footer ───────────────────────── */
.mgh-footer {
	display: flex; flex-direction: column; gap: var(--space-48);
	max-width: calc(var(--layout-content-max) + 2 * var(--layout-gutter));
	margin-inline: auto;
	padding: var(--layout-section-pad-y) var(--layout-gutter) var(--space-24);
}
.mgh-footer__cta { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-24); }
.mgh-footer__cta-text { display: flex; flex-direction: column; gap: var(--space-24); }
.mgh-cta-title {
	max-width: 1100px; margin: 0;
	font-family: var(--font-family-display);
	font-weight: var(--font-weight-regular);
	font-size: var(--type-display-cta); line-height: 1.0953;
	letter-spacing: -0.015em;
	color: var(--color-text-primary);
}
.mgh-footer__links { margin: 0; text-align: right; }
.mgh-footer__links a {
	font-weight: var(--font-weight-medium);
	font-size: var(--type-link-lg); line-height: normal;
	color: var(--color-text-primary);
	text-decoration: underline; text-underline-position: from-font;
	white-space: nowrap;
}
.mgh-wordmark { container-type: inline-size; display: flex; flex-direction: column; }
.mgh-wordmark__names {
	display: flex; justify-content: space-between;
	margin-bottom: -24px;
	font-weight: var(--font-weight-medium);
	font-size: var(--type-label-wordmark); line-height: var(--line-height-24);
	letter-spacing: 0.4em;
	color: var(--color-text-secondary);
}
.mgh-wordmark__names p { margin: 0; }
.mgh-wordmark__name {
	margin: 0;
	font-family: var(--font-family-display);
	font-weight: var(--font-weight-black);
	/* 380px across the 1728px column = 21.99% of the column width. */
	font-size: 21.99cqi;
	line-height: 0.921;
	letter-spacing: -0.02em;
	color: var(--color-wordmark);
	white-space: nowrap;
	user-select: none;
}
.mgh-footer__bottom {
	display: flex; justify-content: space-between; gap: var(--space-16);
	padding-top: var(--space-24);
	border-top: 1px solid var(--color-border-default);
	font-weight: var(--font-weight-medium);
	font-size: var(--type-caption); line-height: var(--line-height-20);
	color: var(--color-text-secondary);
}
.mgh-footer__bottom p { margin: 0; }
.mgh-footer__bottom a { color: inherit; text-decoration: none; }
.mgh-footer__bottom a:hover { text-decoration: underline; }

/* ── Work embed (/work-embed/): Selected Work + Clients ── */
.mgh-embed {
	margin: 0; overflow: hidden;
	background: transparent;
}
.mgh-embed .mgh-section {
	display: flex; flex-direction: column; gap: var(--space-56);
	padding: var(--layout-section-pad-y) 0;
}
.mgh-embed .mgh-section__header {
	display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-24);
	width: 100%; max-width: calc(var(--layout-content-max) + 2 * var(--layout-gutter));
	margin-inline: auto; padding-inline: var(--layout-gutter);
}
.mgh-cards {
	display: flex; gap: var(--space-24); justify-content: space-between;
	width: 100%; max-width: calc(var(--layout-content-max) + 2 * var(--layout-gutter));
	margin: 0 auto; padding: 0 var(--layout-gutter);
	list-style: none;
}
.mgh-cards__item { flex: 1 1 0; max-width: 326px; min-width: 0; }
.mgh-card {
	position: relative; display: block;
	aspect-ratio: 326 / 489;
	border-radius: var(--radius-xl);
	overflow: hidden;
	background: var(--card-color, var(--color-bg-card));
	color: var(--color-text-on-color);
	text-decoration: none;
	transition: transform 300ms ease-in-out, box-shadow 300ms ease-in-out;
}
.mgh-card:hover, .mgh-card:focus-visible { transform: translateY(-6px); box-shadow: var(--elevation-2); }
.mgh-card__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mgh-card__title {
	position: absolute; left: 16px; right: 16px; top: 16px; margin: 0;
	font-family: var(--font-family-display); font-weight: var(--font-weight-bold);
	font-size: 22px; line-height: 1.2;
}
.mgh-card.has-media .mgh-card__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mgh-swipe-hint { display: none; }

.mgh-logos {
	display: flex;
	width: 100%; max-width: calc(var(--layout-content-max) + 2 * var(--layout-gutter));
	margin: 0 auto; padding: 0 var(--layout-gutter);
	list-style: none;
}
.mgh-logos__cell {
	flex: 1 1 0; min-width: 0;
	display: grid; place-items: center;
	min-height: 110px;
	padding: var(--space-24) var(--space-16);
	border: 1px solid var(--color-border-default);
}
.mgh-logos__cell + .mgh-logos__cell { margin-left: -1px; }
.mgh-logos__cell:first-child { border-radius: var(--radius-xl) 0 0 var(--radius-xl); }
.mgh-logos__cell:last-child { border-radius: 0 var(--radius-xl) var(--radius-xl) 0; }
.mgh-logos__cell { position: relative; transition: background-color 300ms ease-out, border-color 300ms ease-out; }
.mgh-logos__cell img { grid-area: 1 / 1; display: block; max-width: 100%; height: auto; transition: opacity 300ms ease-out; }
[data-theme="dark"] .mgh-logos__img { filter: invert(1) hue-rotate(180deg); }
/* Hover (Figma "<client>-Logo cell", Smart Animate 300 ms ease-out): the cell takes modal/bg
   (dark in Light, cream in Dark) and the logo switches to its brand colours. */
.mgh-logos__hover { opacity: 0; }
.mgh-logos__cell .mgh-logos__hover--dark, [data-theme="dark"] .mgh-logos__cell .mgh-logos__hover--light { display: none; }
[data-theme="dark"] .mgh-logos__cell .mgh-logos__hover--dark { display: block; }
.mgh-logos__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.mgh-logos__link:focus-visible { outline: 2px solid var(--color-text-primary); outline-offset: 2px; }
.mgh-logos__cell:focus-within { z-index: 1; background: var(--color-modal-bg); border-color: var(--color-modal-bg); }
.mgh-logos__cell:focus-within .mgh-logos__img { opacity: 0; }
.mgh-logos__cell:focus-within .mgh-logos__hover { opacity: 1; }
@media (hover: hover) {
	.mgh-logos__cell:hover { z-index: 1; background: var(--color-modal-bg); border-color: var(--color-modal-bg); }
	.mgh-logos__cell:hover .mgh-logos__img { opacity: 0; }
	.mgh-logos__cell:hover .mgh-logos__hover { opacity: 1; }
}

/* ── Case study template ──────────────────────────────── */
.mgh-case {
	display: flex; flex-direction: column; align-items: center; gap: var(--space-48);
	padding-inline: var(--layout-gutter);
	padding-bottom: var(--space-48);
}
.mgh-case > .wp-block-post-content,
.mgh-case__content {
	display: flex; flex-direction: column; align-items: center; gap: var(--space-48);
	width: 100%;
}
.mgh-case__content > * { width: 100%; max-width: var(--layout-column-max); margin: 0; }
.mgh-case__content > .mgh-canvas { max-width: var(--layout-content-max); }
.mgh-case__content > .mgh-panel + .mgh-panel { margin-top: calc(var(--space-24) - var(--space-48)); }

/* Canvas viewer (Block / Cover) */
.mgh-canvas { position: relative; width: 100%; max-width: var(--layout-content-max); }
.mgh-canvas__viewport {
	position: relative;
	aspect-ratio: var(--canvas-ratio, 1728 / 684);
	overflow: hidden;
	border-radius: var(--radius-xl);
	background: var(--canvas-bg, var(--color-bg-card-muted));
	cursor: grab;
	touch-action: pan-y;
	user-select: none;
	outline-offset: 4px;
}
.mgh-canvas.is-dragging .mgh-canvas__viewport { cursor: grabbing; }
.mgh-canvas__stage {
	position: absolute;
	left: calc(var(--canvas-cx, 0) * 100%);
	top: calc(var(--canvas-cy, 0) * 100%);
	width: calc(var(--canvas-cw, 1) * 100%);
	transform-origin: 0 0;
}
.mgh-canvas.is-ready .mgh-canvas__stage { left: 0; top: 0; }
/* GPU-scale only while moving; once still, the browser redraws the (vector) cover sharply at the new zoom. */
.mgh-canvas.is-moving .mgh-canvas__stage { will-change: transform; }
.mgh-canvas__img { display: block; width: 100%; max-width: none; height: auto; pointer-events: none; -webkit-user-drag: none; }
.mgh-canvas__title {
	position: absolute; top: var(--space-48); left: var(--space-48); right: var(--space-48);
	margin: 0; pointer-events: none;
}
.mgh-canvas__title span {
	display: inline-block;
	padding: var(--space-24) var(--space-48);
	border-radius: var(--radius-xl);
	background: rgb(16 16 14 / 0.16);
	-webkit-backdrop-filter: blur(var(--blur-glass));
	backdrop-filter: blur(var(--blur-glass));
	box-shadow: 0 4px 24px 0 rgb(0 0 0 / 0.35);
	font-family: var(--font-family-body);
	font-weight: var(--font-weight-bold);
	font-size: var(--type-cs-title); line-height: normal;
	letter-spacing: 0.04em;
	color: var(--color-neutral-25);
}
.mgh-canvas__controls {
	position: absolute; right: var(--space-24); bottom: var(--space-24);
	display: flex; gap: var(--space-8);
}
.mgh-canvas__btn {
	min-width: 40px; height: 40px; padding: 0 var(--space-12);
	border: 0; border-radius: var(--radius-full);
	background: rgb(16 16 14 / 0.6);
	-webkit-backdrop-filter: blur(var(--blur-glass));
	backdrop-filter: blur(var(--blur-glass));
	color: var(--color-neutral-25);
	font-size: var(--font-size-xl); line-height: 1;
	cursor: pointer;
}
.mgh-canvas__btn--reset { font-size: var(--font-size-md); font-weight: var(--font-weight-semibold); }
.mgh-canvas__btn:hover { background: rgb(16 16 14 / 0.8); }

/* Block / Project Info */
.mgh-info { display: flex; flex-direction: column; gap: var(--space-24); color: var(--color-text-primary); }
.mgh-info__row { display: flex; gap: var(--space-24); }
.mgh-info__row > .mgh-info__card { flex: 1 1 0; min-width: 0; }
.mgh-info__card {
	display: flex; flex-direction: column; gap: var(--space-6);
	padding: var(--space-24);
	border-radius: var(--radius-md) var(--radius-2xl) var(--radius-2xl) var(--radius-2xl);
	background: var(--color-bg-card);
}
.mgh-info__card p { margin: 0; letter-spacing: 0.04em; line-height: normal; }
.mgh-info__label { font-weight: var(--font-weight-bold); font-size: var(--type-cs-label); text-transform: uppercase; }
.mgh-info__value { font-family: var(--font-family-display); font-weight: var(--font-weight-bold); font-size: var(--type-cs-info-value); }
.mgh-info__note { font-size: var(--type-cs-label); }

/* Panel / NN — Title (accordion) */
.mgh-panel {
	padding: 36px;
	border-radius: var(--radius-2xl);
	background: var(--color-bg-card);
	color: var(--color-text-primary);
}
.mgh-panel__heading { margin: 0; font: inherit; }
.mgh-panel__header {
	display: flex; align-items: center; justify-content: space-between; gap: var(--space-24);
	width: 100%; padding: 0;
	border: 0; background: none;
	text-align: left;
	font-family: var(--font-family-display);
	font-weight: var(--font-weight-bold);
	font-size: var(--type-cs-panel-title); line-height: 1.375;
	color: inherit;
	cursor: pointer;
}
.mgh-toggle-icon {
	position: relative; flex: none;
	width: var(--size-toggle); height: var(--size-toggle);
	border-radius: var(--radius-full);
	background: rgb(50 50 50 / 0.98);
	/* Closing: Figma ease-in-out (0.65, 0, 0.35, 1), 600 ms. */
	transition: border-radius 600ms cubic-bezier(0.65, 0, 0.35, 1);
}
/* + / − from the Figma "Closed / Opened" motion: the two bars of the + (Rectangle 39 and 38)
   turn into the −. Frame 176 spins 180° and Rectangle 38 a further 90°, so the vertical bar
   ends flat on the horizontal one. */
.mgh-toggle-icon::before,
.mgh-toggle-icon::after {
	content: ""; position: absolute; left: 50%; top: 50%;
	width: calc(var(--size-toggle) / 3); height: calc(var(--size-toggle) * 0.0472);
	margin: calc(var(--size-toggle) * -0.0236) 0 0 calc(var(--size-toggle) / -6);
	border-radius: 999px;
	background-color: #fff;
	transition: transform 600ms cubic-bezier(0.65, 0, 0.35, 1);
}
.mgh-toggle-icon::after { transform: rotate(90deg); }
.mgh-panel.is-open .mgh-toggle-icon { border-radius: var(--radius-xl); }
.mgh-panel.is-open .mgh-toggle-icon::before { transform: rotate(180deg); }
.mgh-panel.is-open .mgh-toggle-icon::after { transform: rotate(360deg); } /* 90° own + 180° frame → flat */
/* Opening: Figma ease-out (0.22, 1, 0.36, 1), 600 ms. */
.mgh-panel.is-open .mgh-toggle-icon,
.mgh-panel.is-open .mgh-toggle-icon::before,
.mgh-panel.is-open .mgh-toggle-icon::after { transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
/* The button dips to 94% and springs back on every toggle (only after a click, not on load). */
@keyframes mgh-toggle-pop-open { 0% { transform: scale(1); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); } 20% { transform: scale(0.94); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 100% { transform: scale(1); } }
@keyframes mgh-toggle-pop-close { 0% { transform: scale(1); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); } 20% { transform: scale(0.94); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 100% { transform: scale(1); } }
.mgh-panel.was-toggled.is-open .mgh-toggle-icon { animation: mgh-toggle-pop-open 600ms both; }
.mgh-panel.was-toggled:not(.is-open) .mgh-toggle-icon { animation: mgh-toggle-pop-close 600ms both; }

.mgh-panel__region {
	display: grid; grid-template-rows: 1fr;
	transition: grid-template-rows 300ms ease-in-out, opacity 300ms ease-in-out, visibility 0s;
}
.js .mgh-panel:not(.is-open) .mgh-panel__region {
	grid-template-rows: 0fr; opacity: 0; visibility: hidden;
	transition: grid-template-rows 300ms ease-in-out, opacity 300ms ease-in-out, visibility 0s 300ms;
}
.mgh-panel__clip { min-height: 0; overflow: hidden; }
.mgh-panel__content {
	display: flex; flex-direction: column; gap: var(--space-32);
	padding-top: var(--space-32);
	font-size: var(--type-cs-body); line-height: var(--type-cs-body-line);
}
.mgh-panel__content > * { margin: 0; }
.mgh-panel__content strong { font-weight: var(--font-weight-bold); }
.mgh-panel__content h3,
.mgh-panel__content h4 {
	margin: 0;
	font-family: var(--font-family-body); font-weight: var(--font-weight-bold);
	font-size: var(--type-cs-body); line-height: var(--type-cs-body-line);
}
.mgh-panel__content h3 + *, .mgh-panel__content h4 + * { margin-top: calc(var(--space-16) - var(--space-32)); }
.mgh-panel__content ul, .mgh-panel__content ol { padding-left: 36px; }
.mgh-panel__content a { color: var(--color-text-link); }
.mgh-panel__content .wp-block-image img { border-radius: var(--radius-xl); }
.mgh-panel__content figcaption {
	margin-top: var(--space-8);
	font-size: var(--font-size-base); line-height: var(--line-height-22);
	color: var(--color-text-secondary);
}
.mgh-panel__content .wp-block-table table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--color-border-default); border-radius: var(--radius-xl); }
.mgh-panel__content .wp-block-table th,
.mgh-panel__content .wp-block-table td { padding: var(--space-16) var(--space-24); border: 0; border-bottom: 1px solid var(--color-border-default); text-align: left; vertical-align: top; }
.mgh-panel__content .wp-block-table tr:last-child td { border-bottom: 0; }
.mgh-panel__content .wp-block-table thead th { background: var(--color-bg-card-muted); font-weight: var(--font-weight-bold); }
.mgh-decision {
	display: flex; flex-direction: column; gap: var(--space-8);
	padding: var(--space-24);
	border-radius: var(--radius-md) var(--radius-xl) var(--radius-xl) var(--radius-xl);
	background: var(--color-bg-surface);
}
.mgh-decision > * { margin: 0; }
.mgh-image-placeholder { background: var(--color-bg-card-muted); border-radius: var(--radius-xl); }

/* Block / Case Study Navigation */
.mgh-cs-nav { display: flex; gap: var(--space-10); width: 100%; max-width: var(--layout-column-max); }
.mgh-cs-nav__link {
	flex: 1 1 0; min-width: 0;
	display: flex; align-items: center; gap: var(--space-24);
	padding: 36px;
	background: var(--color-bg-card);
	color: var(--color-text-primary);
	font-family: var(--font-family-display);
	font-weight: var(--font-weight-bold);
	font-size: var(--type-cs-panel-title); line-height: 1.375;
	text-decoration: none;
	transition: background-color 200ms ease-in-out;
}
.mgh-cs-nav__link:hover { background: var(--color-bg-card-muted); }
.mgh-cs-nav__link--prev { border-radius: 36px 4px 4px 36px; }
.mgh-cs-nav__link--next { justify-content: flex-end; text-align: right; border-radius: 4px 36px 36px 4px; }

/* ── Generic pages (page.html, index.html, 404) ───────── */
.mgh-page {
	max-width: calc(var(--layout-column-max) + 2 * var(--layout-gutter));
	margin-inline: auto;
	padding: calc(var(--size-header-height) + var(--space-48)) var(--layout-gutter) var(--space-96);
}
.mgh-page > * + * { margin-top: var(--space-24); }
.mgh-page a { color: var(--color-text-link); }

/* ── Access Modal (locked case study) ─────────────────── */
.mgh-gate {
	position: fixed; inset: 0; z-index: 100;
	display: grid; place-items: center;
	padding: var(--space-24);
	overflow-y: auto;
	/* #444 in the design = ink at 78% over the page. */
	background: color-mix(in srgb, var(--color-neutral-950) 78%, var(--color-bg-page));
}
.admin-bar .mgh-gate { top: 32px; }
.mgh-gate__panel { width: min(736px, 100%); }
.mgh-gate__step { display: flex; flex-direction: column; gap: var(--space-24); }
.mgh-gate__step[hidden] { display: none; }

.mgh-form { margin: 0; display: flex; gap: var(--space-20); }
.mgh-form--inline { align-items: flex-start; }
.mgh-form--inline .mgh-form__field-wrap { flex: 1 1 auto; min-width: 0; }
.mgh-form--stacked { flex-direction: column; }
.mgh-form__field-wrap { display: flex; flex-direction: column; gap: var(--space-6); }

.mgh-field { position: relative; }
.mgh-field__input {
	display: block; width: 100%; height: 60px;
	padding: 22px var(--space-16) 4px;
	border: var(--border-width-medium) solid var(--color-field-border);
	border-radius: var(--radius-md);
	background: transparent;
	color: var(--color-modal-text);
	caret-color: var(--color-field-caret);
	font-family: var(--font-family-body);
	font-weight: var(--font-weight-semibold);
	font-size: var(--font-size-base); line-height: var(--line-height-22);
	outline: none;
}
.mgh-field__input:focus { border-color: var(--color-modal-text); }
.mgh-field__label {
	position: absolute; left: 18px; top: 50%;
	transform: translateY(-50%);
	font-weight: var(--font-weight-semibold);
	font-size: var(--font-size-base); line-height: var(--line-height-22);
	color: var(--color-field-text);
	pointer-events: none;
	transition: top 150ms ease-in-out, font-size 150ms ease-in-out, transform 150ms ease-in-out;
}
.mgh-field__input:focus + .mgh-field__label,
.mgh-field__input:not(:placeholder-shown) + .mgh-field__label {
	top: 9px; transform: none;
	font-size: var(--font-size-xs); line-height: var(--line-height-16);
}
.mgh-field.is-error .mgh-field__input { border-color: var(--color-field-border-error); }
.mgh-field__error {
	margin: 0; padding-left: 10px;
	font-weight: var(--font-weight-medium);
	font-size: var(--font-size-xs); line-height: var(--line-height-16);
	color: var(--color-text-error);
}

.mgh-button {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	height: 60px; padding: 0 var(--space-24);
	border: 0; border-radius: var(--radius-md);
	background: var(--color-action-primary);
	color: var(--color-text-on-action);
	font-family: var(--font-family-body);
	font-weight: var(--font-weight-semibold);
	font-size: var(--font-size-xl); line-height: var(--line-height-28);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 200ms ease-in-out;
}
.mgh-button:hover { background: var(--color-action-primary-hover); }
.mgh-button--block { width: 100%; }

.mgh-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── In between: fluid desktop ────────────────────────── */
@media (max-width: 1279.98px) {
	.mgh-hero__intro { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); row-gap: var(--space-32); }
	.mgh-hero__avatar :is(img, .mgh-lottie) { width: 300px; height: 200px; }
	.mgh-meta { grid-column: 1 / -1; margin-left: 0; }
	.mgh-capability { padding: var(--space-32) var(--space-24) var(--space-40); }
}

@media (max-width: 1199.98px) {
	.mgh-cards {
		justify-content: flex-start; overflow-x: auto;
		scroll-snap-type: x mandatory; scroll-padding-inline: var(--layout-gutter);
		padding-bottom: var(--space-8);
		scrollbar-width: none;
	}
	.mgh-cards::-webkit-scrollbar { display: none; }
	.mgh-cards__item { flex: 0 0 260px; max-width: none; scroll-snap-align: start; }
	.mgh-logos { flex-wrap: wrap; }
	.mgh-logos__cell { flex: 1 1 25%; }
	.mgh-logos__cell + .mgh-logos__cell { margin-left: 0; }
	.mgh-logos__cell:first-child, .mgh-logos__cell:last-child { border-radius: 0; }
	.mgh-swipe-hint {
		display: block; margin: calc(var(--space-16) - var(--space-56)) auto 0;
		width: 100%; max-width: calc(var(--layout-content-max) + 2 * var(--layout-gutter));
		padding-inline: var(--layout-gutter);
		font-weight: var(--font-weight-medium); font-size: var(--font-size-md); line-height: var(--line-height-20);
		color: var(--color-text-secondary);
	}
}

@media (max-width: 1023.98px) {
	.mgh-capabilities__columns { grid-template-columns: minmax(0, 1fr); }
	.mgh-capability + .mgh-capability { border-left: 0; }
	.mgh-header { padding-inline: var(--space-24); }
	.mgh-header__bar { padding-inline: var(--space-24); }
	.mgh-nav { gap: var(--space-8); margin-right: var(--space-8); }
	.mgh-nav__link { padding-inline: var(--space-16); }
}

/* ── Mobile (390px design, Responsive = Mobile) ───────── */
@media (max-width: 767.98px) {
	/* Header: not fixed; logo + hamburger, status pill on its own row. */
	.mgh-header { position: static; padding: var(--space-16) var(--layout-gutter) var(--space-16); }
	.admin-bar .mgh-header { top: 0; }
	.mgh-header__bar {
		min-height: 0; padding: 0; gap: var(--space-16);
		border-radius: 0; background: none;
		-webkit-backdrop-filter: none; backdrop-filter: none;
	}
	.mgh-header .mgh-logo { width: 232.5px; }
	.mgh-header .mgh-logo__word { opacity: 1; transform: none; }
	.mgh-nav, .mgh-header__right { display: none; }
	.mgh-burger { display: inline-grid; }
	.mgh-header__status-row { display: block; flex: 1 0 100%; }

	.mgh-modal__panel { padding: var(--space-24); border-radius: var(--radius-xl); }
	.mgh-modal__title { font-size: 28px; line-height: 36px; }
	.mgh-contact-list__link { font-size: 17px; }
	.mgh-modal__icon--contact { width: 48px; height: 48px; }

	/* Hero: avatar (135px) left of the headline, then intro and meta. */
	.mgh-hero { display: grid; grid-template-columns: 135px minmax(0, 1fr); column-gap: var(--space-24); padding-top: 40px; }
	.mgh-hero__heading, .mgh-hero__intro { display: contents; }
	.mgh-eyebrow { grid-column: 1 / -1; margin-bottom: 32px; }
	.mgh-hero__avatar { grid-column: 1; grid-row: 2; width: 135px; height: 206px; overflow: hidden; }
	/* Mobile frame: the 366×244 avatar at 308×205, offset −84px inside a 135px window (face only). */
	.mgh-hero__avatar :is(img, .mgh-lottie) { width: 308px; height: 205px; margin-left: -84px; }
	.mgh-hero__title { grid-column: 2; grid-row: 2; align-self: center; line-height: 1.3; }
	.mgh-hero__text { grid-column: 1 / -1; margin-top: var(--space-16); }
	.mgh-meta { grid-column: 1 / -1; margin: 28px 0 0; }

	.mgh-capabilities { gap: var(--space-24); }
	.mgh-capabilities__header { flex-direction: column; align-items: flex-start; gap: var(--space-12); }
	.mgh-capability { padding: var(--space-24) 0 var(--space-32); }
	.mgh-capability__art :is(img, .mgh-lottie) { width: 220px; height: 220px; }
	.mgh-skills { justify-content: flex-start; gap: var(--space-8); margin-top: var(--space-24); }
	.mgh-skills li { font-size: 15px; padding: 6px 14px; }

	.mgh-footer { gap: var(--space-32); padding-top: 56px; }
	.mgh-footer__cta { flex-direction: column; align-items: flex-start; }
	.mgh-footer__links { text-align: left; }
	.mgh-wordmark__names { margin-bottom: -12px; letter-spacing: 0.3em; }
	.mgh-footer__bottom { flex-direction: column; gap: var(--space-6); }

	/* Work embed */
	.mgh-embed .mgh-section { gap: var(--space-24); }
	.mgh-embed .mgh-section__header { flex-direction: column; gap: var(--space-12); }
	.mgh-cards { gap: var(--space-8); padding-inline: 14px; scroll-padding-inline: 14px; }
	.mgh-cards__item { flex-basis: 225px; }
	.mgh-swipe-hint { margin-top: calc(var(--space-16) - var(--space-24)); }
	.mgh-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mgh-logos__cell { min-height: 88px; margin: 0 0 -1px; }
	.mgh-logos__cell:nth-child(even) { margin-left: -1px; }
	.mgh-logos__cell:first-child { border-top-left-radius: var(--radius-xl); }
	.mgh-logos__cell:nth-child(2) { border-top-right-radius: var(--radius-xl); }
	.mgh-logos__cell:last-child { grid-column: 1 / -1; border-radius: 0 0 var(--radius-xl) var(--radius-xl); }

	/* Case study: cover crop, title as h1 below it, stacked info cards. */
	.mgh-case { gap: var(--space-24); }
	.mgh-case__content { gap: var(--space-24); }
	.mgh-case__content > .mgh-panel + .mgh-panel { margin-top: calc(var(--space-12) - var(--space-24)); }
	.mgh-canvas__viewport { aspect-ratio: 350 / 220; border-radius: var(--radius-lg); }
	.mgh-canvas__title { position: static; margin-top: var(--space-16); }
	.mgh-canvas__title span {
		padding: 0; border-radius: 0; background: none; box-shadow: none;
		-webkit-backdrop-filter: none; backdrop-filter: none;
		font-family: var(--font-family-display); letter-spacing: 0;
		color: var(--color-text-primary);
	}
	.mgh-canvas__controls { right: var(--space-8); bottom: var(--space-8); gap: var(--space-4); }
	.mgh-canvas__btn { min-width: 32px; height: 32px; font-size: var(--font-size-lg); }
	.mgh-info__row { flex-direction: column; gap: var(--space-12); }
	.mgh-info { gap: var(--space-12); }
	.mgh-info__card { padding: var(--space-16); border-radius: var(--radius-md) var(--radius-xl) var(--radius-xl) var(--radius-xl); }
	.mgh-panel { padding: var(--space-16); border-radius: var(--radius-xl); }
	.mgh-panel__content { gap: var(--space-16); padding-top: var(--space-16); }
	.mgh-panel__content ul, .mgh-panel__content ol { padding-left: 20px; }
	.mgh-panel__content .wp-block-table th,
	.mgh-panel__content .wp-block-table td { padding: var(--space-8) var(--space-12); }
	.mgh-cs-nav__link { gap: var(--space-8); padding: var(--space-16); font-size: 15px; line-height: 20px; }
	.mgh-cs-nav__link--prev { border-radius: var(--radius-xl) 4px 4px var(--radius-xl); }
	.mgh-cs-nav__link--next { border-radius: 4px var(--radius-xl) var(--radius-xl) 4px; }
	.mgh-cs-nav .mgh-icon { width: 24px; height: 24px; }

	/* Mobile password / request-access screens: full screen, follow the page theme. */
	.mgh-gate {
		place-items: stretch; padding: 0;
		background: var(--color-bg-page);
		--color-modal-bg: var(--color-bg-page);
		--color-modal-text: var(--color-text-primary);
		--color-modal-icon: var(--color-text-primary);
		--color-modal-link: var(--color-text-link);
		--color-field-border: var(--color-border-input);
		--color-field-text: var(--color-text-secondary);
		--color-field-caret: var(--color-text-primary);
	}
	.admin-bar .mgh-gate { top: 46px; }
	.mgh-gate__panel {
		width: 100%; min-height: 100%;
		padding: var(--space-24) var(--layout-gutter);
		border-radius: 0; box-shadow: none;
		-webkit-backdrop-filter: none; backdrop-filter: none;
	}
	.mgh-modal__icon--lock { width: 47px; height: 60px; }
	.mgh-back, .mgh-back .mgh-icon { width: 44px; height: 44px; }
	.mgh-gate .mgh-close { width: 44px; height: 44px; }
	.mgh-form--inline { flex-direction: column; align-items: stretch; }
	.mgh-form--inline .mgh-button { width: 100%; }
}

@media (max-width: 782px) {
	.admin-bar .mgh-header { top: 0; }
}

/* ── Loader (first visit to Home) ─────────────────────── */
.mgh-loader { display: none; }
.js:not(.mgh-loader-done) .mgh-loader {
	position: fixed; inset: 0; z-index: 1000;
	display: grid; place-items: center;
	background: var(--color-neutral-950); /* Loader frame fill #10100E, same in both themes */
	transition: opacity 400ms ease-in-out;
}
/* The 675×120 reel, sized as in the 1920×1080 Figma frame (675/1920 of the width, scaled
   to fit the height too); phones get a larger share so the name stays readable. */
.mgh-loader :is(img, .mgh-lottie) { width: min(35.16vw, 62.5vh); height: auto; max-width: none; aspect-ratio: 675 / 120; }
@media (max-width: 767.98px) {
	.mgh-loader :is(img, .mgh-lottie) { width: 88vw; }
}
.mgh-loader.is-leaving { opacity: 0; pointer-events: none; }
.js:not(.mgh-loader-done) body:has(> .mgh-loader) { overflow: hidden; }

/* ── Cursors (Build Notes §12) ────────────────────────────
 * 36px (1.5x the original 24px), bg/inverse fill with a bg/page outline, one set per theme.
 * Desktop only; the system cursor stays as the fallback. Hotspots: default 3 3,
 * pointer 14 3, text 5 5 (Figma's 1/9/2 scaled, plus the outline padding). */
@media (hover: hover) and (pointer: fine) {
	:root {
		--cursor-default: url("../cursors/cursor-default-light.svg") 3 3, url("../cursors/cursor-default-light.png") 3 3, auto;
		--cursor-pointer: url("../cursors/cursor-pointer-light.svg") 14 3, url("../cursors/cursor-pointer-light.png") 14 3, pointer;
		--cursor-text: url("../cursors/cursor-text-light.svg") 5 5, url("../cursors/cursor-text-light.png") 5 5, text;
	}
	:root[data-theme="dark"] {
		--cursor-default: url("../cursors/cursor-default-dark.svg") 3 3, url("../cursors/cursor-default-dark.png") 3 3, auto;
		--cursor-pointer: url("../cursors/cursor-pointer-dark.svg") 14 3, url("../cursors/cursor-pointer-dark.png") 14 3, pointer;
		--cursor-text: url("../cursors/cursor-text-dark.svg") 5 5, url("../cursors/cursor-text-dark.png") 5 5, text;
	}
	body:not(.editor-styles-wrapper) { cursor: var(--cursor-default); }
	body:not(.editor-styles-wrapper) :is(a[href], button, [role="button"], summary, label[for], select,
		.mgh-card, .mgh-panel__header, .mgh-nav__link, .mgh-theme-toggle, .mgh-burger, .mgh-close, .mgh-back, .mgh-canvas__btn) { cursor: var(--cursor-pointer); }
	body:not(.editor-styles-wrapper) :is(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="hidden"]), textarea, [contenteditable="true"]) { cursor: var(--cursor-text); }
	body:not(.editor-styles-wrapper) :is(:disabled, [aria-disabled="true"]) { cursor: not-allowed; }
	/* The cover keeps grab/grabbing so dragging is discoverable. */
	body:not(.editor-styles-wrapper) .mgh-canvas__viewport { cursor: grab; }
	body:not(.editor-styles-wrapper) .mgh-canvas.is-dragging .mgh-canvas__viewport { cursor: grabbing; }
}

/* ── Reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }
}

/* ── Block editor ─────────────────────────────────────── */
.editor-styles-wrapper .mgh-header { position: relative; padding-top: 0; }
.editor-styles-wrapper .mgh-main { padding-top: 0; }
.editor-styles-wrapper .mgh-gate { position: relative; inset: auto; min-height: 480px; }
.editor-styles-wrapper .mgh-work-placeholder {
	display: grid; place-items: center; min-height: 240px; padding: var(--space-24);
	border: 1px dashed var(--color-border-input); border-radius: var(--radius-xl);
	color: var(--color-text-secondary); text-align: center;
}
.editor-styles-wrapper .mgh-panel .mgh-panel__region { grid-template-rows: 1fr; opacity: 1; visibility: visible; }
.editor-styles-wrapper .mgh-panel__header { cursor: text; }

/* ── Lottie (assets/js/lottie.js) ────────────────────────── */
.mgh-lottie { position: relative; display: block; overflow: hidden; }
.mgh-lottie__stage { position: absolute; inset: 0; }
.mgh-lottie__stage svg { display: block; width: 100% !important; height: 100% !important; }
.mgh-lottie__poster { display: block; width: 100%; height: 100%; object-fit: contain; }
.mgh-lottie.is-ready .mgh-lottie__poster { visibility: hidden; }
.mgh-card__media.mgh-lottie { height: 100%; }

/* Lottie block (any panel, page or website design) */
.wp-block-mghasnain-lottie { margin: 0 auto; max-width: 100%; }
.wp-block-mghasnain-lottie .mgh-lottie { width: 100%; }
.wp-block-mghasnain-lottie figcaption { margin-top: var(--space-12); font-size: var(--type-body-sm); color: var(--color-text-secondary); text-align: center; }
.editor-styles-wrapper .mgh-lottie-placeholder { display: grid; place-items: center; min-height: 160px; padding: var(--space-24); border: 1px dashed var(--color-border-input); border-radius: var(--radius-xl); color: var(--color-text-secondary); text-align: center; }

/* ── Website Design pages (Build Notes §4b) ──────────────────
   Full-page "dialog" per client. Colours come from the page (website/* tokens:
   --wd-bg, --wd-on, --wd-text) and stay the same in Light and Dark. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

body.mgh-wd-page {
	background: var(--wd-bg, #10100E) var(--wd-bg-image, none) center bottom / 100% auto no-repeat;
	color: var(--wd-text, #FFFFFF);
}
.mgh-wd { display: flex; flex-direction: column; align-items: center; padding: 0; }
.mgh-wd__header {
	display: flex; align-items: center; justify-content: space-between; gap: var(--space-24);
	width: 100%; padding: 48px 48px 0; box-sizing: border-box;
}
.mgh-wd__back {
	display: inline-flex; align-items: center; gap: 12px;
	color: var(--wd-on, #FFFFFF); text-decoration: none;
	font: 400 24px/32px "Roboto", var(--font-family-body);
}
.mgh-wd__back:hover, .mgh-wd__back:focus-visible { text-decoration: underline; text-underline-offset: 6px; }
.mgh-icon--wd-back { --mgh-icon: url("../icons/wd-back.svg"); width: 48px; height: 48px; }
/* Close keeps modal/close-bg + modal/close-icon (same in both themes). */
.mgh-wd__close { background: var(--color-modal-close-bg); color: var(--color-modal-close-icon); }
.mgh-wd__logo { margin: 96px 0 0; line-height: 0; }
.mgh-wd__logo :is(img, .mgh-lottie) { display: block; width: var(--wd-logo-w, auto); max-width: calc(100vw - 40px); height: auto; }
.mgh-wd__content { width: 100%; display: flex; flex-direction: column; align-items: center; }
/* Intro text */
.mgh-wd__content > :is(p, h2, h3, h4, ul, ol, blockquote) {
	width: min(1400px, calc(100% - 2 * var(--layout-gutter))); max-width: none;
	margin: 0; color: var(--wd-text, #FFFFFF);
	font: 500 26px/34px "Montserrat", var(--font-family-body);
}
.mgh-wd__content > :is(p, h2, h3, h4, ul, ol, blockquote):first-child { margin-top: 48px; }
.mgh-wd__content > :is(p, h2, h3, h4, ul, ol, blockquote) + :is(p, h2, h3, h4, ul, ol, blockquote) { margin-top: 34px; }
.mgh-wd__content a { color: inherit; }
.mgh-wd__content :is(strong, b) { font-weight: 700; }
/* Website screens: images or Lottie, stacked, 1327px wide */
.mgh-wd__content > :is(.wp-block-image, .wp-block-mghasnain-lottie, .wp-block-gallery, .wp-block-video, .wp-block-group) {
	width: min(1327px, 100%); max-width: none; margin: 0;
}
.mgh-wd__content > :is(p, h2, h3, h4, ul, ol, blockquote) + :is(.wp-block-image, .wp-block-mghasnain-lottie, .wp-block-gallery, .wp-block-video, .wp-block-group) { margin-top: 60px; }
.mgh-wd__content > .wp-block-image:first-of-type { box-shadow: 0 -24px 96px rgba(0, 0, 0, .25); }
.mgh-wd__content .wp-block-image img { display: block; width: 100%; height: auto; }
.mgh-wd__content > :last-child { margin-bottom: 0; }

@media (max-width: 767.98px) {
	.mgh-wd__header { padding: 12px 20px 0; }
	.mgh-wd__close { width: 72px; height: 72px; }
	.mgh-wd__logo { margin-top: 24px; }
	.mgh-wd__logo :is(img, .mgh-lottie) { width: calc(var(--wd-logo-w, 300px) * .6875); }
	.mgh-wd__content > :is(p, h2, h3, h4, ul, ol, blockquote) { width: calc(100% - 24px); font-size: 16px; line-height: 1.22; }
	.mgh-wd__content > :is(p, h2, h3, h4, ul, ol, blockquote):first-child { margin-top: 24px; }
	.mgh-wd__content > :is(p, h2, h3, h4, ul, ol, blockquote) + :is(p, h2, h3, h4, ul, ol, blockquote) { margin-top: 19.5px; }
	.mgh-wd__content > :is(p, h2, h3, h4, ul, ol, blockquote) + :is(.wp-block-image, .wp-block-mghasnain-lottie, .wp-block-gallery, .wp-block-video, .wp-block-group) { margin-top: 12px; }
	.mgh-wd__content > :is(.wp-block-image, .wp-block-mghasnain-lottie, .wp-block-gallery, .wp-block-video, .wp-block-group) { width: 100%; }
	.mgh-wd__content > .wp-block-image:first-of-type { box-shadow: none; }
}
/* ── Case study panel content: columns, shadows, showcase ─── */
.mgh-panel__content .wp-block-columns { gap: var(--space-24); margin: 0; align-items: flex-start; }
.mgh-panel__content .wp-block-column { display: flex; flex-direction: column; gap: var(--space-16); min-width: 0; }
.mgh-panel__content .wp-block-column > * { margin: 0; }
.mgh-panel__content .wp-block-column > h3 + * { margin-top: 0; }
.mgh-panel__content .wp-block-columns.is-vertically-aligned-center { align-items: center; }
.mgh-panel__content .wp-block-image { margin: 0; }
.mgh-panel__content .wp-block-image img { display: block; width: 100%; height: auto; }
.mgh-panel__content .wp-block-image.mgh-plain img { border-radius: 0; }
/* Figma card shadows (Drop shadow 0 6 24 / 85% black) on sketches and device frames. */
.mgh-panel__content .wp-block-image.mgh-shadow img { box-shadow: 0 6px 24px rgb(0 0 0 / 0.85); }
.mgh-panel__content .wp-block-image.mgh-r22 img { border-radius: 22px; }
.mgh-panel__content .wp-block-image.mgh-r16 img { border-radius: 16px; }
.mgh-panel__content .wp-block-image.mgh-phone { max-width: 309px; }

.mgh-showcase { display: flex; flex-direction: column; gap: var(--space-24); }
.mgh-showcase__tabs {
	display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
	padding: 1px; border: 1px solid var(--color-border-default); border-radius: var(--radius-xl);
	background: var(--color-bg-card);
	overflow-x: auto; scrollbar-width: none;
}
.mgh-showcase__tab {
	min-height: 94px; padding: var(--space-8) var(--space-16);
	border: 0; border-radius: calc(var(--radius-xl) - 1px); background: transparent;
	color: var(--color-text-primary); font: inherit; font-size: 20px; line-height: 30px; font-weight: var(--font-weight-medium);
	cursor: pointer; transition: background-color 200ms ease-out;
}
.mgh-showcase__tab[aria-selected="true"] { background: var(--color-bg-card-muted); }
.mgh-showcase__tab:hover { background: var(--color-bg-card-muted); }
.mgh-showcase__tab:focus-visible { outline: 2px solid var(--color-text-primary); outline-offset: -4px; }
.mgh-showcase__panel { display: flex; flex-direction: column; gap: var(--space-24); }
.mgh-showcase__notes { margin: 0; padding-left: 36px; }
.mgh-showcase__stage { position: relative; }
.mgh-showcase__img { display: block; width: 100%; height: auto; border-radius: var(--radius-xl); }
.mgh-showcase.is-enhanced [data-inactive] { display: none; }
.mgh-showcase:not(.is-enhanced) .mgh-showcase__tabs, .mgh-showcase:not(.is-enhanced) .mgh-showcase__switch { display: none; }
/* Glass switch on the image (Figma "Before/After/Changes": white 10% + 12px blur, radius 16). */
.mgh-showcase__switch {
	position: absolute; top: clamp(8px, 2.9%, 24px); left: 50%; transform: translateX(-50%);
	display: flex; gap: 0; padding: 6px;
	border-radius: 16px; background: rgb(255 255 255 / 0.10);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	box-shadow: 0 8px 48px rgb(0 0 0 / 0.25);
}
.mgh-showcase__option {
	min-height: 34px; padding: 0 16px; border: 0; border-radius: 12px;
	background: transparent; color: #fff; font: inherit; font-size: 16px; line-height: 22px; white-space: nowrap;
	cursor: pointer; transition: background-color 200ms ease-out;
}
.mgh-showcase__option[aria-pressed="true"] { background: #686868; }
.mgh-showcase__option:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

@media (max-width: 767.98px) {
	.mgh-panel__content .wp-block-columns { gap: var(--space-16); }
	/* ~2.6 tabs fit, so the next one peeks in and shows the bar scrolls. */
	.mgh-showcase__tabs { position: relative; grid-auto-columns: minmax(118px, 38%); scroll-snap-type: x proximity; }
	.mgh-showcase__tab { scroll-snap-align: start; }
	.mgh-showcase__tab { min-height: 56px; font-size: 15px; line-height: 20px; }
	.mgh-showcase__notes { padding-left: 20px; }
	.mgh-showcase__switch { padding: 3px; border-radius: 10px; }
	.mgh-showcase__option { min-height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12px; }
	.mgh-showcase__img { border-radius: var(--radius-md); }
}