/* ==========================================================================
   MAGNIFISA — theme styles
   Brand: Pale Champagne F0E6D2 · Classic Gold C6A227 · Charcoal Noir 141210 · Smoke Grey 6F6A5E
   ========================================================================== */

:root {
	--noir: #0A1631;
	--noir-2: #112047;
	--noir-3: #1A2C58;
	--champagne: #D8E2F0;
	--champagne-soft: #EEF2F9;
	--gold: #1B3A73;
	--gold-soft: #2A4F94;
	--smoke: #5B667D;
	--paper: #F3F6FB;
	--ink: #0A1631;
	--ink-60: rgba(10, 22, 49, .62);
	--ink-40: rgba(10, 22, 49, .4);
	--line: rgba(10, 22, 49, .12);
	--line-dark: rgba(216, 226, 240, .14);

	--ff-display: "Outfit", "Poppins", ui-sans-serif, system-ui, sans-serif;
	--ff-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1240px;
	--gut: clamp(20px, 5vw, 56px);
	--r: 14px;
	--r-lg: 22px;

	--ease: cubic-bezier(.22, .61, .36, 1);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--header-h: 76px;
}

/* ---------- base ---------- */

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

/* The content is English. Render LTR even if WordPress sets dir="rtl" because
   the admin language is Arabic — an author rule beats the dir attribute. */
html, html[dir="rtl"] { direction: ltr; }
body.mg, body.mg[dir="rtl"] { direction: ltr; text-align: start; }

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

body.mg {
	margin: 0;
	font-family: var(--ff-body);
	font-size: 16.5px;
	line-height: 1.68;
	color: var(--ink);
	background: var(--paper);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.mg-wrap { width: min(100% - (var(--gut) * 2), var(--wrap)); margin-inline: auto; }

.mg-skip {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--gold); color: var(--noir); padding: 12px 20px; border-radius: 0 0 10px 0;
}
.mg-skip:focus { left: 0; }

::selection { background: var(--gold); color: var(--noir); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- typography ---------- */

.mg-display {
	font-family: var(--ff-display);
	font-weight: 700;
	font-size: clamp(2.6rem, 7vw, 5.4rem);
	line-height: .98;
	letter-spacing: -.035em;
	margin: 0 0 .4em;
}

.mg-h2 {
	font-family: var(--ff-display);
	font-weight: 600;
	font-size: clamp(1.9rem, 4.2vw, 3.2rem);
	line-height: 1.06;
	letter-spacing: -.03em;
	margin: 0 0 .5em;
}

.mg-h3 {
	font-family: var(--ff-display);
	font-weight: 600;
	font-size: clamp(1.3rem, 2.4vw, 1.75rem);
	line-height: 1.18;
	letter-spacing: -.02em;
	margin: 0 0 .6em;
}

.mg-eyebrow {
	font-family: var(--ff-body);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .19em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 1.1em;
}

.mg-lede {
	font-size: clamp(1.02rem, 1.5vw, 1.18rem);
	line-height: 1.66;
	color: var(--ink-60);
	max-width: 62ch;
	margin: 0 0 1.4em;
}

.mg-ink { color: var(--gold); }

/* ---------- buttons ---------- */

.mg-btn {
	--bg: var(--noir); --fg: var(--champagne); --bd: var(--noir);
	position: relative;
	display: inline-flex; align-items: center; gap: 10px;
	padding: 15px 26px;
	border: 1px solid var(--bd);
	border-radius: 100px;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--ff-display);
	font-weight: 600;
	font-size: .94rem;
	letter-spacing: -.01em;
	cursor: pointer;
	overflow: hidden;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.mg-btn svg { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.mg-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(10, 22, 49, .2); }
.mg-btn:hover svg { transform: translateX(4px); }

.mg-btn--gold { --bg: var(--gold); --fg: var(--noir); --bd: var(--gold); }
.mg-btn--gold:hover { --bg: var(--gold-soft); --bd: var(--gold-soft); }
.mg-btn--dark { --bg: var(--noir); --fg: var(--champagne); --bd: var(--noir); }
.mg-btn--outline { --bg: transparent; --fg: var(--champagne); --bd: rgba(216, 226, 240, .38); }
.mg-btn--outline:hover { --bg: rgba(216, 226, 240, .1); --bd: var(--champagne); }
.mg-btn--ghost { --bg: transparent; --fg: inherit; --bd: transparent; padding-inline: 14px; }
.mg-btn--ghost:hover { --bd: currentColor; box-shadow: none; }
.mg-btn--sm { padding: 10px 18px; font-size: .86rem; }
.mg-btn--wide { width: 100%; justify-content: center; }

.mg-btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6em; }

.mg-link {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--ff-display); font-weight: 600; font-size: .95rem;
	color: var(--gold);
	border: 0; background: none; padding: 0; cursor: pointer;
}
.mg-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.mg-link:hover svg { transform: translateX(5px); }

/* ---------- ticker ---------- */

.mg-ticker {
	background: var(--noir); color: var(--champagne);
	overflow: hidden; border-bottom: 1px solid var(--line-dark);
	font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
}
.mg-ticker__track {
	display: flex; gap: 22px; align-items: center;
	padding: 9px 0; white-space: nowrap;
	width: max-content;
	animation: mg-ticker 46s linear infinite;
}
.mg-ticker__track i { color: var(--gold); font-style: normal; font-size: .55rem; }
@keyframes mg-ticker { to { transform: translateX(-50%); } }

/* ---------- header ---------- */

.mg-header {
	position: sticky; top: 0; z-index: 90;
	background: rgba(10, 22, 49, .82);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid transparent;
	transition: background .4s var(--ease), border-color .4s, padding .4s var(--ease);
}
.mg-header.is-stuck { background: rgba(10, 22, 49, .95); border-bottom-color: var(--line-dark); }

.mg-header__inner {
	width: min(100% - (var(--gut) * 2), 1400px);
	margin-inline: auto;
	display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
	height: var(--header-h);
	transition: height .4s var(--ease);
}
.mg-header.is-stuck .mg-header__inner { height: 64px; }

.mg-header__brand { display: flex; align-items: center; flex-shrink: 0; }
.mg-logo { height: 30px; width: auto; transition: height .4s var(--ease); }
.mg-header.is-stuck .mg-logo { height: 26px; }

.mg-nav { margin-inline-start: auto; }
.mg-nav__list {
	display: flex; align-items: center; gap: clamp(14px, 2vw, 30px);
	list-style: none; margin: 0; padding: 0;
}
.mg-nav__list a {
	position: relative;
	color: var(--champagne);
	font-family: var(--ff-display); font-weight: 500; font-size: .95rem;
	padding: 6px 2px;
	opacity: .82;
	transition: opacity .25s;
}
.mg-nav__list a::after {
	content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
	background: var(--gold); transition: width .35s var(--ease);
}
.mg-nav__list a:hover { opacity: 1; }
.mg-nav__list a:hover::after,
.mg-nav__list .current-menu-item > a::after { width: 100%; }
.mg-nav__list .current-menu-item > a { opacity: 1; }

.mg-header__actions { display: flex; align-items: center; gap: 10px; color: var(--champagne); }
.mg-header__actions .mg-ico svg { width: 16px; height: 16px; }
.mg-header__actions .mg-btn--ghost { color: var(--champagne); opacity: .85; }

.mg-burger {
	display: none; width: 42px; height: 42px; border: 1px solid var(--line-dark);
	border-radius: 50%; background: none; cursor: pointer;
	flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.mg-burger span { display: block; width: 16px; height: 1.5px; background: var(--champagne); transition: transform .3s var(--ease), opacity .2s; }
.mg-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.mg-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mg-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- drawer ---------- */

.mg-drawer { position: fixed; inset: 0; z-index: 95; background: rgba(10, 22, 49, .97); backdrop-filter: blur(10px); }
.mg-drawer[hidden] { display: none; }
.mg-drawer__panel {
	height: 100%; display: flex; flex-direction: column; justify-content: center;
	padding: 100px var(--gut) 40px; color: var(--champagne);
}
.mg-drawer__list { list-style: none; margin: 0 0 40px; padding: 0; }
.mg-drawer__list li { opacity: 0; transform: translateY(18px); animation: mg-in .5s var(--ease-out) forwards; }
.mg-drawer__list li:nth-child(1) { animation-delay: .06s; }
.mg-drawer__list li:nth-child(2) { animation-delay: .12s; }
.mg-drawer__list li:nth-child(3) { animation-delay: .18s; }
.mg-drawer__list li:nth-child(4) { animation-delay: .24s; }
.mg-drawer__list li:nth-child(5) { animation-delay: .3s; }
.mg-drawer__list a {
	display: block; padding: 12px 0;
	font-family: var(--ff-display); font-weight: 600;
	font-size: clamp(1.9rem, 8vw, 3rem); letter-spacing: -.03em; line-height: 1.1;
	border-bottom: 1px solid var(--line-dark);
}
.mg-drawer__list a:hover { color: var(--gold); }
.mg-drawer__meta { color: rgba(216, 226, 240, .6); font-size: .95rem; display: grid; gap: 6px; }
.mg-drawer__meta a:hover { color: var(--gold); }

@keyframes mg-in { to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */

.mg-hero {
	position: relative;
	min-height: clamp(560px, 92vh, 900px);
	display: flex; align-items: flex-end;
	background: var(--noir);
	color: var(--champagne);
	overflow: hidden;
	isolation: isolate;
}
.mg-hero__media { position: absolute; inset: -8% 0 -8%; z-index: -2; }
.mg-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .58; }
.mg-hero__scrim {
	position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(120% 90% at 15% 100%, rgba(10, 22, 49, .95) 0%, rgba(10, 22, 49, .55) 45%, rgba(10, 22, 49, .2) 75%),
		linear-gradient(to top, rgba(10, 22, 49, .96) 0%, rgba(10, 22, 49, .35) 55%, rgba(10, 22, 49, .75) 100%);
}
.mg-hero__inner { padding: clamp(120px, 16vh, 200px) 0 clamp(60px, 9vh, 110px); position: relative; }

.mg-hero__title {
	font-family: var(--ff-display); font-weight: 700;
	font-size: clamp(2.9rem, 8.4vw, 6.6rem);
	line-height: .95; letter-spacing: -.04em;
	margin: 0 0 .45em;
}
.mg-line { display: block; overflow: hidden; }
.mg-line > span {
	display: block;
	transform: translateY(105%);
	animation: mg-line-up .95s var(--ease-out) forwards;
}
.mg-line:nth-child(1) > span { animation-delay: .12s; }
.mg-line:nth-child(2) > span { animation-delay: .22s; }
.mg-line:nth-child(3) > span { animation-delay: .32s; }
@keyframes mg-line-up { to { transform: none; } }

.mg-hero__lede { color: rgba(216, 226, 240, .8); max-width: 58ch; }
.mg-hero__lede strong { color: var(--champagne); font-weight: 600; }

.mg-hero__stats {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px; margin: clamp(34px, 5vw, 56px) 0 0;
	background: var(--line-dark);
	border: 1px solid var(--line-dark);
	border-radius: var(--r);
	overflow: hidden;
	max-width: 760px;
}
.mg-hero__stats > div { background: rgba(10, 22, 49, .5); padding: 18px 20px; }
.mg-hero__stats dt { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(216, 226, 240, .55); margin: 0 0 6px; }
.mg-hero__stats dd { margin: 0; font-family: var(--ff-display); font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.4rem); color: var(--champagne); letter-spacing: -.02em; }

.mg-hero__scroll { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; width: 1px; height: 46px; background: var(--line-dark); overflow: hidden; }
.mg-hero__scroll span { position: absolute; inset: 0; background: var(--gold); animation: mg-scroll 2.2s var(--ease) infinite; }
@keyframes mg-scroll { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- page hero ---------- */

.mg-phero {
	position: relative; background: var(--noir); color: var(--champagne);
	padding: clamp(120px, 15vh, 190px) 0 clamp(50px, 8vh, 90px);
	overflow: hidden; isolation: isolate;
}
.mg-phero__media { position: absolute; inset: 0; z-index: -2; }
.mg-phero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.mg-phero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(to top, var(--noir) 5%, rgba(10, 22, 49, .55) 60%, rgba(10, 22, 49, .8) 100%);
}
.mg-phero--plain { padding-block: clamp(110px, 13vh, 160px) clamp(40px, 6vh, 70px); }
.mg-phero .mg-lede { color: rgba(216, 226, 240, .78); }
.mg-phero .mg-lede a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.mg-phero__specs {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1px; margin: clamp(30px, 4vw, 44px) 0 0;
	background: var(--line-dark); border: 1px solid var(--line-dark);
	border-radius: var(--r); overflow: hidden; max-width: 720px;
}
.mg-phero__specs > div { background: rgba(10, 22, 49, .55); padding: 16px 18px; }
.mg-phero__specs dt { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(216, 226, 240, .55); margin: 0 0 5px; }
.mg-phero__specs dd { margin: 0; font-family: var(--ff-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; }

/* ---------- sections ---------- */

.mg-section { padding: clamp(64px, 10vw, 130px) 0; position: relative; }
.mg-section--tight { padding-top: clamp(34px, 5vw, 58px); }
.mg-section--light { background: var(--paper); }
.mg-section--champagne { background: var(--champagne-soft); }
.mg-section--dark { background: var(--noir); color: var(--champagne); }
.mg-section--dark .mg-lede { color: rgba(216, 226, 240, .72); }
.mg-section--dark .mg-h2 { color: var(--champagne); }

.mg-shead { max-width: 72ch; margin-bottom: clamp(34px, 5vw, 60px); }

.mg-prose { max-width: 74ch; }
.mg-prose p { margin: 0 0 1.3em; color: var(--ink-60); }
.mg-prose p strong { color: var(--ink); }
.mg-prose img { border-radius: var(--r); margin-bottom: 1.6em; }

/* ---------- divisions ---------- */

.mg-divisions { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: clamp(20px, 3vw, 34px); }

.mg-division {
	display: block; background: #fff; border: 1px solid var(--line);
	border-radius: var(--r-lg); overflow: hidden;
	transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.mg-division:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(10, 22, 49, .13); border-color: rgba(74, 111, 181, .5); }

.mg-division__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--champagne-soft); }
.mg-division__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .5s var(--ease); }
.mg-division__hover { position: absolute; inset: 0; opacity: 0; }
.mg-division:hover .mg-division__hover { opacity: 1; }
.mg-division:hover .mg-division__media img { transform: scale(1.06); }

.mg-division__body { padding: clamp(22px, 3vw, 34px); }
.mg-division__body h3 { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -.03em; margin: 0 0 .35em; }
.mg-division__desc { color: var(--ink-60); margin: 0 0 1.2em; }

.mg-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 1.5em; padding: 0; }
.mg-tags li {
	font-size: .76rem; letter-spacing: .04em; padding: 5px 12px;
	border: 1px solid var(--line); border-radius: 100px; color: var(--smoke);
}

/* ---------- marquee ---------- */

.mg-marquee { background: var(--noir); padding: 26px 0 30px; overflow: hidden; }
.mg-marquee__row { display: flex; gap: 14px; width: max-content; padding-block: 7px; }
.mg-marquee__row[data-dir="1"] { animation: mg-marq 62s linear infinite; }
.mg-marquee__row[data-dir="-1"] { animation: mg-marq 62s linear infinite reverse; }
.mg-marquee:hover .mg-marquee__row { animation-play-state: paused; }
@keyframes mg-marq { to { transform: translateX(-50%); } }

.mg-chip { margin: 0; position: relative; width: clamp(140px, 15vw, 200px); flex: 0 0 auto; }
.mg-chip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; filter: saturate(.9); transition: filter .4s, transform .5s var(--ease); }
.mg-chip figcaption {
	position: absolute; left: 10px; bottom: 10px; right: 10px;
	font-size: .72rem; letter-spacing: .05em; color: #fff;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
	opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.mg-chip:hover img { filter: saturate(1.1); transform: scale(1.03); }
.mg-chip:hover figcaption { opacity: 1; transform: none; }

/* ---------- split ---------- */

.mg-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.mg-split--rev .mg-split__text { order: 2; }
.mg-split__media { position: relative; }
.mg-split__media img { width: 100%; border-radius: var(--r-lg); }
.mg-split__media--offset {
	position: absolute; right: -6%; bottom: -14%; width: 52%;
	border: 6px solid var(--noir); box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}

.mg-checks { list-style: none; margin: 1.6em 0 0; padding: 0; display: grid; gap: 14px; }
.mg-checks li { position: relative; padding-inline-start: 30px; color: var(--ink-60); }
.mg-section--dark .mg-checks li { color: rgba(216, 226, 240, .72); }
.mg-checks li strong { color: inherit; font-weight: 600; }
.mg-section--dark .mg-checks li strong { color: var(--champagne); }
.mg-checks li::before {
	content: ""; position: absolute; inset-inline-start: 0; top: .62em;
	width: 11px; height: 11px; border-radius: 3px;
	background: var(--gold); transform: rotate(45deg);
}

/* ---------- tables ---------- */

.mg-table-wrap { overflow-x: auto; margin-top: clamp(34px, 5vw, 60px); border-radius: var(--r); border: 1px solid var(--line-dark); }
.mg-section--light .mg-table-wrap { border-color: var(--line); }
.mg-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.mg-table th, .mg-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line-dark); }
.mg-section--light .mg-table th, .mg-section--light .mg-table td { border-bottom-color: var(--line); }
.mg-table thead th {
	font-family: var(--ff-display); font-weight: 600; font-size: .8rem;
	letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
	background: rgba(216, 226, 240, .04);
}
.mg-table tbody th { font-weight: 500; opacity: .8; }
.mg-table .is-hero { background: rgba(74, 111, 181, .09); font-weight: 600; }
.mg-table thead .is-hero { color: var(--gold-soft); }
.mg-table tbody tr:last-child th, .mg-table tbody tr:last-child td { border-bottom: 0; }
.mg-table tbody tr { transition: background .25s; }
.mg-table tbody tr:hover { background: rgba(216, 226, 240, .04); }
.mg-section--light .mg-table tbody tr:hover { background: rgba(10, 22, 49, .03); }

.mg-note {
	margin-top: clamp(30px, 4vw, 48px);
	display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
	padding: clamp(20px, 3vw, 30px);
	border: 1px solid var(--line-dark); border-radius: var(--r);
	background: rgba(216, 226, 240, .04);
}
.mg-section--champagne .mg-note { border-color: var(--line); background: rgba(255, 255, 255, .7); }
.mg-note p { margin: 0; max-width: 62ch; color: rgba(216, 226, 240, .74); }
.mg-section--champagne .mg-note p { color: var(--ink-60); }
.mg-note strong { color: var(--gold); }

/* ---------- collections (home) ---------- */

.mg-colls { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(16px, 2.2vw, 26px); }
.mg-coll {
	display: block; border: 1px solid var(--line); border-radius: var(--r);
	overflow: hidden; background: #fff;
	transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.mg-coll:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(10, 22, 49, .12); border-color: rgba(74, 111, 181, .45); }
.mg-coll__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.mg-coll__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.mg-coll:hover .mg-coll__media img { transform: scale(1.07); }
.mg-coll__body { display: block; padding: 18px 20px 20px; }
.mg-coll__body strong { display: block; font-family: var(--ff-display); font-size: 1.18rem; font-weight: 600; letter-spacing: -.02em; }
.mg-coll__body em { display: block; font-style: normal; font-size: .84rem; color: var(--smoke); margin-bottom: 12px; }
.mg-coll__dots { display: flex; gap: 5px; margin-bottom: 10px; }
.mg-coll__dots i { width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line); display: block; }
.mg-coll__count { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

/* ---------- cards ---------- */

.mg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(16px, 2.4vw, 26px); }
.mg-card {
	padding: clamp(22px, 3vw, 32px);
	border: 1px solid var(--line); border-radius: var(--r);
	background: rgba(255, 255, 255, .72);
	transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .3s;
}
.mg-section--dark .mg-card { border-color: var(--line-dark); background: rgba(216, 226, 240, .04); }
.mg-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(10, 22, 49, .1); }
.mg-card__num { display: block; font-family: var(--ff-display); font-size: .8rem; font-weight: 700; letter-spacing: .18em; color: var(--gold); margin-bottom: 16px; }
.mg-card h3 { font-family: var(--ff-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; margin: 0 0 .5em; }
.mg-card p { margin: 0; font-size: .95rem; color: var(--ink-60); }
.mg-section--dark .mg-card p { color: rgba(216, 226, 240, .7); }

/* ---------- gallery ---------- */

.mg-apps { padding-bottom: 0; }
.mg-gallery {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 2px; margin-top: clamp(30px, 4vw, 54px);
}
.mg-gallery__item { margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--noir-2); }
.mg-gallery__item img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .8s var(--ease), opacity .4s; }
.mg-gallery__item:hover img { transform: scale(1.06); opacity: 1; }
.mg-gallery__item figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px;
	font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--champagne);
	background: linear-gradient(to top, rgba(10, 22, 49, .9), transparent);
}

/* ---------- filter bar ---------- */

.mg-filterbar {
	position: sticky; top: var(--header-h); z-index: 60;
	background: rgba(243, 246, 251, .93);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-block: 1px solid var(--line);
	padding: 12px 0;
	transition: top .4s var(--ease);
}
.mg-header.is-stuck ~ .mg-filterbar { top: 64px; }
.mg-filterbar__inner { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; }
.mg-filterbar__group { display: flex; flex-wrap: wrap; gap: 8px; }
.mg-filterbar__right { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-inline-start: auto; }

.mg-chipbtn {
	border: 1px solid var(--line); background: #fff; border-radius: 100px;
	padding: 8px 15px; font-size: .84rem; font-family: var(--ff-display); font-weight: 500;
	cursor: pointer; white-space: nowrap;
	transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.mg-chipbtn span { opacity: .45; margin-inline-start: 5px; font-size: .78em; }
.mg-chipbtn:hover { border-color: var(--gold); transform: translateY(-1px); }
.mg-chipbtn.is-active { background: var(--noir); color: var(--champagne); border-color: var(--noir); }
.mg-chipbtn.is-active span { opacity: .55; }

.mg-swatchfilter { display: flex; gap: 5px; }
.mg-swatchbtn {
	width: 30px; height: 30px; padding: 3px; border-radius: 50%;
	border: 1.5px solid transparent; background: none; cursor: pointer;
	transition: border-color .25s, transform .25s var(--ease);
}
.mg-swatchbtn span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid var(--line); }
.mg-swatchbtn:hover { transform: scale(1.12); }
.mg-swatchbtn.is-active { border-color: var(--gold); }

.mg-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 100px; padding: 7px 16px; }
.mg-search svg { width: 16px; height: 16px; color: var(--smoke); flex: 0 0 auto; }
.mg-search input { border: 0; outline: 0; background: none; font-size: .9rem; width: 150px; }

.mg-count { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--smoke); margin: 0 0 22px; }
.mg-empty { text-align: center; padding: 60px 0; color: var(--smoke); }

/* ---------- product grid ---------- */

.mg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: clamp(14px, 2vw, 24px); }

.mg-tile {
	background: #fff; border: 1px solid var(--line); border-radius: var(--r);
	overflow: hidden; cursor: pointer;
	transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, opacity .3s;
}
.mg-tile:hover { transform: translateY(-5px); box-shadow: 0 20px 46px rgba(10, 22, 49, .13); border-color: rgba(74, 111, 181, .5); }
.mg-tile.is-hidden { display: none; }

.mg-tile__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--champagne-soft); }
.mg-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.mg-tile:hover .mg-tile__media img { transform: scale(1.06); }
.mg-tile__badge {
	position: absolute; top: 10px; inset-inline-start: 10px;
	background: rgba(10, 22, 49, .82); color: var(--champagne);
	font-size: .68rem; letter-spacing: .06em; padding: 4px 9px; border-radius: 100px;
	backdrop-filter: blur(6px);
}

.mg-tile__body { padding: 15px 17px 17px; }
.mg-tile__body h3 { font-family: var(--ff-display); font-size: 1.06rem; font-weight: 600; letter-spacing: -.02em; margin: 0 0 4px; }
.mg-tile__meta { font-size: .78rem; color: var(--gold); margin: 0 0 6px; font-weight: 500; }
.mg-tile__meta i { font-style: normal; opacity: .5; margin-inline: 5px; }
.mg-tile__sizes { font-size: .78rem; color: var(--smoke); margin: 0 0 12px; }
.mg-tile__dots { display: flex; align-items: center; gap: 4px; }
.mg-tile__dots i { width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--line); display: block; }
.mg-tile__dots em { font-style: normal; font-size: .7rem; color: var(--smoke); margin-inline-start: 6px; white-space: nowrap; }

/* ---------- modal ---------- */

.mg-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.mg-modal[hidden] { display: none; }
.mg-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 22, 49, .78); backdrop-filter: blur(6px); animation: mg-fade .3s var(--ease) forwards; }
@keyframes mg-fade { from { opacity: 0; } }

.mg-modal__panel {
	position: relative; width: min(100%, 980px); max-height: 90vh; overflow-y: auto;
	background: var(--paper); border-radius: var(--r-lg);
	box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
	animation: mg-pop .45s var(--ease-out) forwards;
}
@keyframes mg-pop { from { opacity: 0; transform: translateY(24px) scale(.98); } }

.mg-modal__close {
	position: absolute; top: 12px; inset-inline-end: 14px; z-index: 3;
	width: 40px; height: 40px; border-radius: 50%;
	border: 1px solid var(--line); background: rgba(255, 255, 255, .9);
	font-size: 1.5rem; line-height: 1; cursor: pointer;
	transition: background .25s, transform .25s var(--ease);
}
.mg-modal__close:hover { background: var(--noir); color: var(--champagne); transform: rotate(90deg); }

.mg-detail { display: grid; grid-template-columns: 1fr 1fr; }
.mg-detail__media { background: var(--champagne-soft); }
.mg-detail__media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.mg-detail__body { padding: clamp(24px, 3.4vw, 40px); }
.mg-detail__body h2 { font-family: var(--ff-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.03em; margin: 0 0 .2em; }
.mg-detail__zh { font-size: .9rem; color: var(--smoke); margin: 0 0 1em; }
.mg-detail__blurb { color: var(--ink-60); margin: 0 0 1.5em; }

.mg-detail__spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.mg-detail__spec > div { background: #fff; padding: 13px 15px; }
.mg-detail__spec dt { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); margin: 0 0 4px; }
.mg-detail__spec dd { margin: 0; font-family: var(--ff-display); font-weight: 600; font-size: .96rem; }

.mg-detail__ctitle { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 12px; }
.mg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 10px; margin-bottom: 24px; }
.mg-swatch { border: 0; background: none; padding: 0; cursor: pointer; text-align: center; }
.mg-swatch__chip {
	display: block; width: 100%; aspect-ratio: 1 / 1.5; border-radius: 8px;
	border: 1px solid var(--line); background-size: cover; background-position: center;
	transition: transform .3s var(--ease), box-shadow .3s;
}
.mg-swatch:hover .mg-swatch__chip, .mg-swatch.is-active .mg-swatch__chip { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(10, 22, 49, .18); }
.mg-swatch.is-active .mg-swatch__chip { outline: 2px solid var(--gold); outline-offset: 2px; }
.mg-swatch__name { display: block; font-size: .72rem; margin-top: 6px; line-height: 1.3; }
.mg-swatch__code { display: block; font-size: .66rem; color: var(--smoke); }

@media (max-width: 720px) {
	.mg-detail { grid-template-columns: 1fr; }
	.mg-detail__media img { min-height: 240px; max-height: 300px; }
}

/* ---------- surface slabs ---------- */

.mg-collsec__head { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 54px); align-items: end; margin-bottom: clamp(28px, 4vw, 46px); }
.mg-collsec__spec { display: grid; gap: 12px; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, .7); }
.mg-collsec__spec dt { font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.mg-collsec__spec dd { margin: 3px 0 0; font-size: .92rem; }

.mg-slabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(14px, 2vw, 22px); }
.mg-slab { margin: 0; cursor: pointer; }
.mg-slab__media { display: block; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); aspect-ratio: 2 / 1; }
.mg-slab__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.mg-slab:hover .mg-slab__media img { transform: scale(1.08); }
.mg-slab figcaption { display: flex; align-items: center; gap: 9px; padding: 11px 3px 0; }
.mg-slab figcaption i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); flex: 0 0 auto; }
.mg-slab figcaption span { font-family: var(--ff-display); font-weight: 600; font-size: .96rem; }
.mg-slab figcaption em { font-style: normal; font-size: .72rem; color: var(--smoke); margin-inline-start: auto; letter-spacing: .04em; }

.mg-props { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.mg-prop { background: #fff; padding: clamp(20px, 2.6vw, 28px); transition: background .3s; }
.mg-prop:hover { background: var(--champagne-soft); }
.mg-prop h3 { font-family: var(--ff-display); font-size: 1.02rem; font-weight: 600; margin: 0 0 .5em; letter-spacing: -.01em; }
.mg-prop p { margin: 0; font-size: .9rem; color: var(--ink-60); }

.mg-formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-bottom: clamp(34px, 5vw, 56px); }
.mg-format { border: 1px solid var(--line-dark); border-radius: var(--r); padding: 24px; background: rgba(216, 226, 240, .035); }
.mg-format__viz { height: 82px; display: flex; align-items: flex-end; margin-bottom: 18px; }
.mg-format__viz span { display: block; background: var(--gold); border-radius: 3px; opacity: .85; }
.mg-format__viz[data-w="0"] span { width: 100%; height: 50%; }
.mg-format__viz[data-w="1"] span { width: 50%; height: 100%; }
.mg-format__viz[data-w="2"] span { width: 44%; height: 82%; }
.mg-format__viz[data-w="3"] span { width: 78%; height: 52%; }
.mg-format h3 { font-family: var(--ff-display); font-size: 1.2rem; font-weight: 600; margin: 0 0 .2em; }
.mg-format__th { color: var(--gold); font-size: .84rem; margin: 0 0 .8em; letter-spacing: .06em; }
.mg-format p { margin: 0; font-size: .9rem; color: rgba(216, 226, 240, .68); }

.mg-apps-list { border-top: 1px solid var(--line-dark); padding-top: 30px; }
.mg-apps-list h3 { font-family: var(--ff-display); font-size: 1.1rem; font-weight: 600; margin: 0 0 16px; }
.mg-apps-list ul { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; }
.mg-apps-list li { border: 1px solid var(--line-dark); border-radius: 100px; padding: 7px 16px; font-size: .85rem; color: rgba(216, 226, 240, .78); transition: border-color .3s, color .3s; }
.mg-apps-list li:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Applico: families & tall slabs ---------- */

.mg-fam { margin-bottom: clamp(44px, 6vw, 80px); }
.mg-fam:last-of-type { margin-bottom: 0; }
.mg-fam__head {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: clamp(16px, 3vw, 46px); align-items: end;
	padding-bottom: 20px; margin-bottom: clamp(20px, 3vw, 30px);
	border-bottom: 1px solid var(--line);
}
.mg-fam__head h3 { margin: 0; }
.mg-fam__intro { margin: 0; color: var(--ink-60); font-size: .96rem; }

.mg-slabgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: clamp(14px, 2vw, 24px); }

.mg-tall { margin: 0; cursor: pointer; }
.mg-tall__media {
	position: relative; display: block; overflow: hidden;
	border-radius: var(--r); border: 1px solid var(--line);
	aspect-ratio: 80 / 260; background: var(--champagne-soft);
	transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.mg-tall:hover .mg-tall__media { transform: translateY(-5px); box-shadow: 0 22px 46px rgba(10, 22, 49, .16); }
.mg-tall__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mg-tall:hover .mg-tall__media img { transform: scale(1.05); }
.mg-tall__solid { position: absolute; inset: 0; display: block; }
.mg-tall__faces {
	position: absolute; top: 9px; inset-inline-start: 9px;
	font-style: normal; font-size: .66rem; letter-spacing: .06em;
	background: rgba(10, 22, 49, .78); color: var(--champagne);
	padding: 3px 8px; border-radius: 100px; backdrop-filter: blur(6px);
}
.mg-tall figcaption { padding: 11px 2px 0; }
.mg-tall figcaption strong { display: block; font-family: var(--ff-display); font-weight: 600; font-size: .96rem; letter-spacing: -.01em; }
.mg-tall figcaption span { display: block; font-size: .76rem; color: var(--smoke); margin-top: 2px; }

/* ---------- downloads ---------- */

.mg-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(16px, 2.4vw, 26px); }
.mg-download {
	padding: clamp(22px, 3vw, 30px);
	border: 1px solid var(--line-dark); border-radius: var(--r);
	background: rgba(216, 226, 240, .04);
	display: flex; flex-direction: column; align-items: flex-start;
	transition: transform .45s var(--ease), border-color .3s, background .3s;
}
.mg-download:hover { transform: translateY(-5px); border-color: rgba(74, 111, 181, .5); background: rgba(216, 226, 240, .07); }
.mg-download__ico { color: var(--gold); margin-bottom: 16px; }
.mg-download__ico svg { width: 26px; height: 26px; }
.mg-download h3 { font-family: var(--ff-display); font-size: 1.1rem; font-weight: 600; margin: 0 0 .5em; letter-spacing: -.01em; }
.mg-download p { margin: 0 0 1.4em; font-size: .92rem; color: rgba(216, 226, 240, .7); flex: 1; }

/* ---------- timeline ---------- */

.mg-timeline { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.mg-timeline li { position: relative; padding: 22px 0 22px 0; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: baseline; }
.mg-timeline li:last-child { border-bottom: 1px solid var(--line-dark); }
.mg-timeline__year { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.03em; color: var(--gold); }
.mg-timeline p { margin: 0; color: rgba(216, 226, 240, .74); max-width: 68ch; }

/* ---------- contact ---------- */

.mg-contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.mg-address { font-style: normal; color: var(--ink-60); margin: 0 0 24px; max-width: 34ch; }
.mg-contact__list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 18px; }
.mg-contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.mg-contact__ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); }
.mg-contact__ico svg { width: 17px; height: 17px; }
.mg-contact__list a { border-bottom: 1px solid transparent; transition: border-color .25s, color .25s; }
.mg-contact__list a:hover { color: var(--gold); border-bottom-color: currentColor; }

.mg-map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.mg-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }

.mg-contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 40px); }
.mg-form { display: grid; gap: 16px; }
.mg-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mg-field { display: grid; gap: 7px; }
.mg-field > span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--smoke); font-weight: 600; }
.mg-field > span i { color: var(--gold); font-style: normal; }
.mg-field input, .mg-field select, .mg-field textarea {
	font-family: inherit; font-size: .96rem; color: var(--ink);
	padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
	background: var(--paper); outline: 0;
	transition: border-color .25s, box-shadow .25s, background .25s;
}
.mg-field input:focus, .mg-field select:focus, .mg-field textarea:focus {
	border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(74, 111, 181, .16);
}
.mg-field textarea { resize: vertical; }
.mg-form__note { font-size: .8rem; color: var(--smoke); margin: 0; }
.mg-hp { position: absolute; left: -9999px; }

.mg-alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-size: .93rem; }
.mg-alert--ok { background: rgba(74, 111, 181, .14); border: 1px solid rgba(74, 111, 181, .45); }
.mg-alert--err { background: rgba(158, 57, 46, .1); border: 1px solid rgba(158, 57, 46, .4); }

/* ---------- posts ---------- */

.mg-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(20px, 3vw, 34px); }
.mg-post { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.mg-post__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mg-post__body { padding: 22px; }
.mg-pagination { margin-top: 40px; }
.mg-pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; margin-inline-end: 6px; }
.mg-pagination .current { background: var(--noir); color: var(--champagne); border-color: var(--noir); }

/* ---------- footer ---------- */

.mg-footer { background: var(--noir); color: var(--champagne); }
.mg-footer__cta {
	padding: clamp(70px, 10vw, 130px) 0;
	text-align: center;
	background:
		radial-gradient(80% 120% at 50% 0%, rgba(74, 111, 181, .16) 0%, transparent 62%),
		var(--noir-2);
	border-bottom: 1px solid var(--line-dark);
}
.mg-footer__cta .mg-eyebrow { color: var(--gold); }
.mg-footer__cta .mg-lede { color: rgba(216, 226, 240, .7); margin-inline: auto; }
.mg-footer__cta .mg-btn-row { justify-content: center; }

.mg-footer__grid {
	display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
	gap: clamp(26px, 4vw, 56px);
	padding: clamp(50px, 7vw, 84px) 0 clamp(34px, 4vw, 54px);
}
.mg-footer__logo { height: 30px; margin-bottom: 20px; }
.mg-footer__tagline { color: var(--gold); font-family: var(--ff-display); font-size: 1rem; margin: 0 0 16px; }
.mg-footer__note { font-size: .88rem; color: rgba(216, 226, 240, .6); margin: 0; line-height: 1.8; }
.mg-footer__note strong { color: var(--champagne); font-weight: 600; }
.mg-footer__col h3 { font-family: var(--ff-display); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; font-weight: 600; }
.mg-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mg-footer__col a { font-size: .93rem; color: rgba(216, 226, 240, .74); transition: color .25s, padding-inline-start .25s; }
.mg-footer__col a:hover { color: var(--gold); padding-inline-start: 5px; }
.mg-footer__address { font-size: .88rem; color: rgba(216, 226, 240, .55); margin: 16px 0 0; max-width: 30ch; line-height: 1.7; }

.mg-footer__base {
	display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
	padding: 22px 0 34px; border-top: 1px solid var(--line-dark);
	font-size: .82rem; color: rgba(216, 226, 240, .5);
}
.mg-footer__base p { margin: 0; }

/* ---------- whatsapp fab ---------- */

.mg-whatsapp {
	position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 80;
	width: 52px; height: 52px; border-radius: 50%;
	display: grid; place-items: center;
	background: #25d366; color: #fff;
	box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
	transition: transform .35s var(--ease), box-shadow .35s;
}
.mg-whatsapp svg { width: 26px; height: 26px; }
.mg-whatsapp:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 16px 34px rgba(0, 0, 0, .35); }

/* ---------- reveal animation ---------- */

.reveal, .mg-reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in, .mg-reveal {
	animation: mg-reveal .85s var(--ease-out) forwards;
	animation-delay: var(--d, 0s);
}
.reveal:not(.is-in) { animation: none; }
@keyframes mg-reveal { to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
	.mg-footer__grid { grid-template-columns: 1fr 1fr; }
	.mg-collsec__head { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
	:root { --header-h: 66px; }
	.mg-nav { display: none; }
	.mg-burger { display: flex; }
	.mg-hide-sm { display: none; }
	.mg-split, .mg-contact { grid-template-columns: 1fr; }
	.mg-split--rev .mg-split__text { order: 0; }
	.mg-split__media--offset { position: static; width: 60%; margin-top: 14px; border-width: 4px; }
	.mg-hero__stats { grid-template-columns: repeat(2, 1fr); }
	.mg-timeline li { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 900px) {
	/* The filter bar is tall on small screens — let it scroll away rather than
	   eating a third of the viewport. */
	.mg-filterbar { position: static; }
	.mg-filterbar__group {
		flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
		-webkit-overflow-scrolling: touch; scrollbar-width: none;
		padding-bottom: 2px; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut);
	}
	.mg-filterbar__group::-webkit-scrollbar { display: none; }
}

@media (max-width: 620px) {
	body.mg { font-size: 16px; }
	.mg-form__row { grid-template-columns: 1fr; }
	.mg-header__actions .mg-btn--gold { padding: 9px 13px; font-size: .78rem; white-space: nowrap; }
	.mg-header__actions .mg-btn--ghost { display: none; }
	.mg-footer__grid { grid-template-columns: 1fr; }
	.mg-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
	.mg-tile__body { padding: 12px 13px 14px; }
	.mg-tile__body h3 { font-size: .96rem; }
	.mg-slabs { grid-template-columns: 1fr 1fr; }
	.mg-slabgrid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
	.mg-fam__head { grid-template-columns: 1fr; }
	.mg-detail__spec { grid-template-columns: 1fr; }
	.mg-filterbar__right { width: 100%; }
	.mg-search { flex: 1; }
	.mg-search input { width: 100%; }
	.mg-note { flex-direction: column; align-items: flex-start; }
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
	.reveal, .mg-reveal, .mg-line > span { opacity: 1 !important; transform: none !important; }
	.mg-ticker__track, .mg-marquee__row { animation: none !important; }
}

/* ---------- print ---------- */

@media print {
	.mg-header, .mg-ticker, .mg-filterbar, .mg-whatsapp, .mg-footer__cta { display: none !important; }
	body.mg { background: #fff; color: #000; }
}
