:root {
	--mg-black: #050505;
	--mg-ink: #151411;
	--mg-gold: #9d8243;
	--mg-gold-light: #c5ad72;
	--mg-ivory: #f4f2ed;
	--mg-line: rgba(157, 130, 67, 0.38);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body.mg-case {
	margin: 0;
	color: var(--mg-ink);
	background: var(--mg-ivory);
	font-family: Arial, Helvetica, sans-serif;
	overflow-x: hidden;
}

.mg-case img {
	display: block;
	max-width: 100%;
	height: auto;
}

.mg-case a {
	color: inherit;
}

.mg-wrap {
	width: min(1240px, calc(100% - 80px));
	margin-inline: auto;
}

.mg-overline,
.mg-label {
	margin: 0;
	color: var(--mg-gold);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1.4;
	text-transform: uppercase;
}

.mg-case h1,
.mg-case h2,
.mg-case h3,
.mg-type__serif {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
}

.mg-case h2 {
	margin: 18px 0 0;
	font-size: clamp(45px, 5.2vw, 76px);
	letter-spacing: -0.045em;
	line-height: 0.98;
}

.all-cases {
	display: flex;
	align-items: center;
	position: fixed;
	z-index: 100;
	top: 20px;
	right: -300px;
	height: 52px;
	color: #fff !important;
	font-size: 14px;
	text-decoration: none !important;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.18);
	transition: right 0.5s ease-in-out;
}

.all-cases:hover,
.all-cases:focus,
.all-cases span {
	color: #fff !important;
	text-decoration: none !important;
}

.all-cases.active {
	right: 20px;
}

.mg-hero {
	position: relative;
	min-height: 100vh;
	padding: 34px 0 0;
	color: #fff;
	background:
		linear-gradient(90deg, rgba(157, 130, 67, 0.05) 1px, transparent 1px) 0 0 / 80px 80px,
		linear-gradient(rgba(157, 130, 67, 0.05) 1px, transparent 1px) 0 0 / 80px 80px,
		var(--mg-black);
	overflow: hidden;
}

.mg-hero::after {
	position: absolute;
	right: 18%;
	bottom: 10%;
	width: 300px;
	height: 300px;
	border: 1px solid rgba(157, 130, 67, 0.18);
	border-radius: 50%;
	box-shadow: 0 0 0 60px rgba(157, 130, 67, 0.03), 0 0 0 120px rgba(157, 130, 67, 0.02);
	content: "";
}

.mg-hero__orb {
	position: absolute;
	border: 1px solid var(--mg-line);
	border-radius: 50%;
}

.mg-hero__orb--one {
	top: -220px;
	left: -180px;
	width: 560px;
	height: 560px;
}

.mg-hero__orb--two {
	top: -140px;
	left: -100px;
	width: 400px;
	height: 400px;
}

.mg-hero__top {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mg-brand {
	display: block;
	width: 160px;
	height: auto;
	margin: 0;
}

.mg-hero__grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: 60px;
	align-items: center;
	min-height: 760px;
	padding-block: 78px 110px;
}

.mg-hero h1 {
	max-width: 620px;
	margin: 25px 0 30px;
	font-size: clamp(58px, 7vw, 105px);
	letter-spacing: -0.055em;
	line-height: 0.86;
}

.mg-hero h1 em {
	display: block;
	margin-top: 18px;
	color: var(--mg-gold-light);
	font-size: 0.63em;
	font-weight: 400;
	line-height: 1;
}

.mg-hero__lead {
	max-width: 520px;
	margin: 0;
	color: rgba(255, 255, 255, 0.69);
	font-size: 17px;
	line-height: 1.65;
}

.mg-hero__actions {
	display: flex;
	gap: 24px;
	align-items: center;
	margin-top: 38px;
}

.mg-hero__actions span {
	max-width: 190px;
	color: rgba(255, 255, 255, 0.45);
	font-size: 10px;
	letter-spacing: 0.12em;
	line-height: 1.55;
	text-transform: uppercase;
}

.mg-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 180px;
	min-height: 54px;
	padding: 14px 24px;
	border: 1px solid var(--mg-gold);
	color: #fff !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.25s, background-color 0.25s;
}

.mg-button:hover {
	color: var(--mg-black) !important;
	background: var(--mg-gold-light);
}

.mg-hero__visual {
	position: relative;
	margin-right: -18vw;
	transform: rotate(1.5deg);
}

.mg-browser {
	position: relative;
	margin: 0;
	padding: 34px 8px 8px;
	border: 1px solid rgba(197, 173, 114, 0.32);
	background: #12110f;
	box-shadow: 0 38px 80px rgba(0, 0, 0, 0.5);
}

.mg-browser__bar {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	gap: 6px;
	align-items: center;
	width: 100%;
	height: 34px;
	padding-inline: 13px;
}

.mg-browser__bar span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--mg-gold);
	opacity: 0.6;
}

.mg-browser__bar small {
	margin-left: 10px;
	color: rgba(255, 255, 255, 0.35);
	font-size: 9px;
	letter-spacing: 0.08em;
}

.mg-browser img {
	width: 100%;
	height: auto;
}

.mg-hero__note {
	margin: 16px 0 0 12px;
	color: var(--mg-gold);
	font-family: Georgia, serif;
	font-size: 12px;
	font-style: italic;
}

.mg-marquee {
	position: absolute;
	z-index: 3;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 18px 0;
	border-top: 1px solid var(--mg-line);
	color: rgba(255, 255, 255, 0.33);
	font-size: 10px;
	letter-spacing: 0.2em;
	overflow: hidden;
	text-transform: uppercase;
	white-space: nowrap;
}

.mg-marquee div {
	width: max-content;
	animation: mg-marquee 32s linear infinite;
}

@keyframes mg-marquee {
	to { transform: translateX(-50%); }
}

.mg-section-no {
	margin: 0;
	color: var(--mg-gold);
	font-family: Georgia, serif;
	font-size: 28px;
	line-height: 0.9;
}

.mg-section-no span {
	font-family: Arial, sans-serif;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.mg-intro {
	padding: 160px 0;
	background: var(--mg-ivory);
}

.mg-intro__grid {
	display: grid;
	grid-template-columns: 100px 1fr 1fr;
	gap: 60px;
}

.mg-intro__copy {
	padding-right: 35px;
}

.mg-intro__lead {
	margin: 35px 0 0;
	font-size: 18px;
	line-height: 1.7;
}

.mg-intro__facts {
	border-top: 1px solid var(--mg-line);
}

.mg-intro__facts article {
	position: relative;
	padding: 28px 10px 28px 64px;
	border-bottom: 1px solid var(--mg-line);
}

.mg-intro__facts span {
	position: absolute;
	top: 31px;
	left: 2px;
	color: var(--mg-gold);
	font-family: Georgia, serif;
	font-size: 14px;
}

.mg-intro__facts h3,
.mg-details h3 {
	margin: 0 0 9px;
	font-size: 25px;
}

.mg-intro__facts p,
.mg-details p {
	margin: 0;
	color: #67635b;
	font-size: 14px;
	line-height: 1.65;
}

.mg-principles {
	padding: 150px 0;
	color: #fff;
	background: var(--mg-black);
}

.mg-heading {
	display: grid;
	grid-template-columns: 160px 1fr;
}

.mg-heading h2 {
	color: inherit;
}

.mg-heading--light {
	color: #fff;
}

.mg-path {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin: 95px 0 0;
	padding: 0;
	list-style: none;
}

.mg-path li {
	position: relative;
	min-height: 260px;
	padding: 0 42px 0 0;
}

.mg-path__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border: 1px solid var(--mg-gold);
	border-radius: 50%;
	color: var(--mg-gold-light);
	font-family: Georgia, serif;
}

.mg-path__line {
	position: absolute;
	top: 30px;
	right: 0;
	left: 60px;
	height: 1px;
	background: var(--mg-line);
}

.mg-path h3 {
	margin: 45px 0 15px;
	font-size: 26px;
}

.mg-path p {
	margin: 0;
	color: rgba(255, 255, 255, 0.52);
	font-size: 14px;
	line-height: 1.65;
}

.mg-catalog {
	padding: 170px 0;
	background: #e8e3da;
	overflow: hidden;
}

.mg-catalog__grid {
	display: grid;
	grid-template-columns: 0.72fr 1.28fr;
	gap: 100px;
	align-items: center;
}

.mg-catalog__copy p:not(.mg-overline) {
	margin: 35px 0;
	color: #625f58;
	font-size: 16px;
	line-height: 1.75;
}

.mg-catalog__copy ul {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--mg-line);
	list-style: none;
}

.mg-catalog__copy li {
	padding: 17px 0;
	border-bottom: 1px solid var(--mg-line);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.mg-catalog__copy li span {
	display: inline-block;
	width: 34px;
	color: var(--mg-gold);
	font-family: Georgia, serif;
}

.mg-catalog__shot {
	position: relative;
	margin-right: -11vw;
}

.mg-browser--light {
	background: #fff;
	box-shadow: 0 45px 90px rgba(49, 40, 25, 0.17);
	transform: rotate(-1.3deg);
}

.mg-browser--light .mg-browser__bar small {
	color: rgba(0, 0, 0, 0.38);
}

.mg-catalog__caption {
	position: absolute;
	right: 5%;
	bottom: -44px;
	color: var(--mg-gold);
	font-family: Georgia, serif;
	font-size: 13px;
	font-style: italic;
}

.mg-identity {
	padding: 160px 0;
	color: #fff;
	background:
		radial-gradient(circle at 70% 40%, rgba(157, 130, 67, 0.13), transparent 35%),
		var(--mg-black);
}

.mg-identity__grid {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 80px;
	margin: 90px 0 0 160px;
}

.mg-quote {
	position: relative;
	padding: 50px 0;
	border-block: 1px solid var(--mg-line);
}

.mg-quote > span {
	position: absolute;
	top: 14px;
	left: 0;
	color: var(--mg-gold);
	font-family: Georgia, serif;
	font-size: 75px;
	line-height: 1;
}

.mg-quote p {
	margin: 30px 0 0;
	font-family: Georgia, serif;
	font-size: 28px;
	line-height: 1.45;
}

.mg-palette {
	display: grid;
	grid-template-columns: 1fr 0.8fr 1.2fr;
	height: 220px;
}

.mg-swatch {
	display: flex;
	align-items: flex-end;
	padding: 20px;
}

.mg-swatch span {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.13em;
	line-height: 1.6;
	text-transform: uppercase;
}

.mg-swatch--black {
	border: 1px solid #2d2b27;
	background: #050505;
}

.mg-swatch--gold {
	color: #050505;
	background: var(--mg-gold);
}

.mg-swatch--ivory {
	color: #050505;
	background: var(--mg-ivory);
}

.mg-type {
	grid-column: 2;
	padding-top: 30px;
}

.mg-type__serif {
	margin: 0;
	color: var(--mg-gold-light);
	font-size: 88px;
	font-style: italic;
	line-height: 1;
}

.mg-type__sans {
	margin: 22px 0;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.25em;
}

.mg-type small {
	display: block;
	max-width: 510px;
	color: rgba(255, 255, 255, 0.48);
	font-size: 12px;
	line-height: 1.7;
}

.mg-details {
	padding: 150px 0;
}

.mg-details h2 {
	max-width: 800px;
}

.mg-details__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	margin-top: 80px;
	background: var(--mg-line);
	border: 1px solid var(--mg-line);
}

.mg-details article {
	min-height: 300px;
	padding: 32px;
	background: var(--mg-ivory);
}

.mg-details article > span {
	display: block;
	margin-bottom: 80px;
	color: var(--mg-gold);
	font-family: Georgia, serif;
}

.mg-mobile {
	padding: 150px 0;
	color: #fff;
	background: #11100e;
	overflow: hidden;
}

.mg-mobile__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 100px;
	align-items: center;
}

.mg-mobile__visual {
	position: relative;
	display: flex;
	justify-content: center;
}

.mg-phone {
	position: relative;
	z-index: 2;
	width: 340px;
	padding: 20px 10px;
	border: 1px solid #6f633f;
	border-radius: 42px;
	background: #000;
	box-shadow: 0 45px 100px rgba(0, 0, 0, 0.55);
}

.mg-phone__speaker {
	position: absolute;
	z-index: 3;
	top: 8px;
	left: 50%;
	width: 75px;
	height: 5px;
	border-radius: 10px;
	background: #242424;
	transform: translateX(-50%);
}

.mg-phone img {
	width: 100%;
	height: auto;
	border-radius: 28px;
}

.mg-mobile__ring {
	position: absolute;
	top: 50%;
	left: 50%;
	border: 1px solid var(--mg-line);
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

.mg-mobile__ring--one {
	width: 550px;
	height: 550px;
}

.mg-mobile__ring--two {
	width: 720px;
	height: 720px;
	opacity: 0.45;
}

.mg-mobile__copy .mg-section-no {
	margin-bottom: 60px;
}

.mg-mobile__copy h2 {
	margin-bottom: 35px;
}

.mg-mobile__copy > p:not(.mg-section-no, .mg-overline) {
	max-width: 560px;
	color: rgba(255, 255, 255, 0.56);
	font-size: 16px;
	line-height: 1.75;
}

.mg-mobile__stats {
	display: flex;
	gap: 60px;
	margin-top: 50px;
	padding-top: 35px;
	border-top: 1px solid var(--mg-line);
}

.mg-mobile__stats div {
	display: flex;
	gap: 18px;
	align-items: center;
}

.mg-mobile__stats strong {
	color: var(--mg-gold-light);
	font-family: Georgia, serif;
	font-size: 48px;
	font-weight: 400;
}

.mg-mobile__stats span {
	color: rgba(255, 255, 255, 0.47);
	font-size: 10px;
	letter-spacing: 0.08em;
	line-height: 1.5;
	text-transform: uppercase;
}

.mg-stack {
	padding: 150px 0;
}

.mg-stack__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: 90px 0 0 160px;
	border-top: 1px solid var(--mg-line);
	border-left: 1px solid var(--mg-line);
}

.mg-stack__item {
	min-height: 155px;
	padding: 28px;
	border-right: 1px solid var(--mg-line);
	border-bottom: 1px solid var(--mg-line);
}

.mg-stack__item span {
	display: block;
	margin-bottom: 50px;
	color: var(--mg-gold);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.mg-stack__item strong {
	font-family: Georgia, serif;
	font-size: 21px;
	font-weight: 400;
}

.mg-result {
	padding: 150px 0 50px;
	color: #fff;
	background: var(--mg-black);
}

.mg-result__grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 120px;
	padding-bottom: 130px;
}

.mg-result__copy > p {
	margin: 0 0 24px;
	color: rgba(255, 255, 255, 0.58);
	font-size: 16px;
	line-height: 1.75;
}

.mg-button--light {
	margin-top: 30px;
}

.mg-result__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 45px;
	border-top: 1px solid var(--mg-line);
}

.mg-result__footer .sa-logo {
	display: block;
	width: 135px;
}

.mg-result__footer .sa-logo img {
	width: 100%;
	height: auto;
}

.mg-result__footer > div {
	display: flex;
	gap: 40px;
	align-items: center;
}

.mg-result__footer p {
	max-width: 370px;
	margin: 0;
	color: rgba(255, 255, 255, 0.48);
	font-size: 12px;
	line-height: 1.6;
}

.mg-result__footer > div a {
	color: var(--mg-gold-light);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

@media (max-width: 1100px) {
	.mg-wrap {
		width: min(100% - 48px, 940px);
	}

	.mg-hero__grid {
		grid-template-columns: 1fr;
		padding-top: 100px;
	}

	.mg-hero__copy {
		max-width: 700px;
	}

	.mg-hero__visual {
		margin: 0 -20vw -10px 15vw;
	}

	.mg-intro__grid {
		grid-template-columns: 80px 1fr;
	}

	.mg-intro__facts {
		grid-column: 2;
	}

	.mg-catalog__grid {
		grid-template-columns: 1fr;
	}

	.mg-catalog__copy {
		max-width: 650px;
	}

	.mg-catalog__shot {
		margin: 20px -15vw 0 10vw;
	}

	.mg-identity__grid,
	.mg-stack__grid {
		margin-left: 80px;
	}

	.mg-details__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.mg-mobile__grid {
		gap: 50px;
	}
}

@media (max-width: 760px) {
	.mg-wrap {
		width: calc(100% - 36px);
	}

	.mg-case h2 {
		font-size: clamp(39px, 12vw, 56px);
	}

	.mg-hero {
		padding-top: 24px;
	}

	.mg-hero__top {
		align-items: flex-start;
	}

	.mg-brand {
		width: 120px;
	}

	.mg-label {
		max-width: 110px;
		text-align: right;
		font-size: 9px;
		letter-spacing: 0.12em;
	}

	.mg-hero__grid {
		gap: 65px;
		min-height: auto;
		padding: 75px 0 110px;
	}

	.mg-hero h1 {
		font-size: 58px;
	}

	.mg-hero__lead {
		font-size: 15px;
	}

	.mg-hero__actions {
		align-items: flex-start;
		flex-direction: column;
	}

	.mg-hero__visual {
		margin: 0 -12vw 0 0;
		transform: none;
	}

	.mg-browser {
		padding: 25px 5px 5px;
	}

	.mg-browser__bar {
		height: 25px;
	}

	.mg-intro,
	.mg-principles,
	.mg-catalog,
	.mg-identity,
	.mg-details,
	.mg-mobile,
	.mg-stack {
		padding: 95px 0;
	}

	.mg-intro__grid,
	.mg-heading {
		grid-template-columns: 1fr;
		gap: 45px;
	}

	.mg-intro__facts {
		grid-column: auto;
	}

	.mg-path {
		grid-template-columns: 1fr;
		gap: 30px;
		margin-top: 65px;
	}

	.mg-path li {
		display: grid;
		grid-template-columns: 62px 1fr;
		gap: 20px;
		min-height: auto;
		padding: 0 0 30px;
	}

	.mg-path h3 {
		margin: 0 0 10px;
	}

	.mg-path__line {
		top: 60px;
		bottom: -30px;
		left: 30px;
		width: 1px;
		height: auto;
	}

	.mg-catalog__grid {
		gap: 60px;
	}

	.mg-catalog__shot {
		margin: 0 -8vw 0 0;
	}

	.mg-browser--light {
		transform: none;
	}

	.mg-identity__grid {
		grid-template-columns: 1fr;
		gap: 55px;
		margin: 60px 0 0;
	}

	.mg-type {
		grid-column: auto;
	}

	.mg-type__serif {
		font-size: 68px;
	}

	.mg-details__grid,
	.mg-stack__grid {
		grid-template-columns: 1fr;
		margin: 55px 0 0;
	}

	.mg-details article {
		min-height: 245px;
	}

	.mg-details article > span {
		margin-bottom: 50px;
	}

	.mg-mobile__grid {
		grid-template-columns: 1fr;
		gap: 100px;
	}

	.mg-phone {
		width: 270px;
	}

	.mg-mobile__ring--one {
		width: 380px;
		height: 380px;
	}

	.mg-mobile__ring--two {
		width: 500px;
		height: 500px;
	}

	.mg-mobile__stats {
		gap: 28px;
	}

	.mg-result {
		padding-top: 95px;
	}

	.mg-result__grid {
		grid-template-columns: 1fr;
		gap: 55px;
		padding-bottom: 85px;
	}

	.mg-result__footer,
	.mg-result__footer > div {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.mg-marquee div {
		animation: none;
	}
}
