:root {
	/* Primary from logo_concept_1(revised): sampled #366299 */
	--mgm-navy: #366299;
	--mgm-navy-deep: #1e3a5f;
	--mgm-teal: #366299;
	--mgm-teal-bright: #4f82b8;
	--mgm-ink: #1a2a3d;
	--mgm-muted: #5a6b7d;
	--mgm-paper: #f4f6f9;
	--mgm-line: rgba(54, 98, 153, 0.18);
	--mgm-accent: #2a9ed6;
	--mgm-font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--mgm-font-body: "Manrope", "Segoe UI", sans-serif;
	--mgm-max: 68rem;
	--mgm-header-h: 4.5rem;
}

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

html {
	scroll-behavior: smooth;
}

body.mgm-body {
	margin: 0;
	color: var(--mgm-ink);
	font-family: var(--mgm-font-body);
	font-size: 1.05rem;
	line-height: 1.65;
	background:
		radial-gradient(1200px 500px at 10% -10%, rgba(54, 98, 153, 0.14), transparent 60%),
		radial-gradient(900px 420px at 90% 0%, rgba(42, 158, 214, 0.1), transparent 55%),
		linear-gradient(180deg, #eef2f7 0%, var(--mgm-paper) 28%, #e8edf3 100%);
	min-height: 100vh;
}

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

a {
	color: var(--mgm-teal);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
	color: var(--mgm-navy);
}

.screen-reader-text,
.mgm-skip {
	position: absolute;
	left: -9999px;
}

.mgm-skip:focus {
	left: 1rem;
	top: 1rem;
	z-index: 1000;
	background: #fff;
	padding: 0.5rem 0.75rem;
}

/* Header */
.mgm-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(10px);
	background: rgba(243, 246, 248, 0.88);
	border-bottom: 1px solid var(--mgm-line);
}

.mgm-header__inner {
	max-width: var(--mgm-max);
	margin: 0 auto;
	padding: 0.75rem 1.25rem;
	min-height: var(--mgm-header-h);
	display: flex;
	align-items: center;
	gap: 1rem;
}

.mgm-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.mgm-brand__mark {
	display: block;
	flex-shrink: 0;
	text-decoration: none;
}

.mgm-brand__img {
	width: 3.35rem;
	height: 3.35rem;
	object-fit: cover;
	border-radius: 0.2rem;
	box-shadow: 0 1px 2px rgba(30, 58, 95, 0.18);
}

.mgm-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	min-width: 0;
	text-decoration: none;
	color: inherit;
}

.mgm-brand__name {
	font-family: var(--mgm-font-display);
	font-weight: 700;
	font-size: clamp(0.95rem, 2.2vw, 1.15rem);
	color: var(--mgm-navy-deep);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mgm-brand__cred {
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mgm-navy);
	font-weight: 600;
}

/* Logo already carries the wordmark — hide redundant title on narrow screens */
@media (max-width: 560px) {
	.mgm-brand__name {
		display: none;
	}
}

.mgm-nav {
	margin-left: auto;
}

.mgm-nav__list {
	display: flex;
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mgm-nav__list a {
	color: var(--mgm-navy);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.92rem;
}

.mgm-nav__list a:hover,
.mgm-nav__list a:focus-visible {
	color: var(--mgm-teal);
}

.mgm-nav__toggle {
	display: none;
	background: transparent;
	border: 0;
	padding: 0.4rem;
	cursor: pointer;
}

.mgm-nav__toggle-bar,
.mgm-nav__toggle-bar::before,
.mgm-nav__toggle-bar::after {
	display: block;
	width: 1.35rem;
	height: 2px;
	background: var(--mgm-navy);
	position: relative;
}

.mgm-nav__toggle-bar::before,
.mgm-nav__toggle-bar::after {
	content: "";
	position: absolute;
	left: 0;
}

.mgm-nav__toggle-bar::before {
	top: -6px;
}

.mgm-nav__toggle-bar::after {
	top: 6px;
}

.mgm-lang {
	display: inline-flex;
	border: 1px solid var(--mgm-line);
	border-radius: 999px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.7);
}

.mgm-lang__opt {
	padding: 0.35rem 0.7rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	color: var(--mgm-muted);
}

.mgm-lang__opt.is-active {
	background: var(--mgm-navy);
	color: #fff;
}

/* Hero — one composition */
.mgm-hero {
	position: relative;
	isolation: isolate;
	min-height: calc(100vh - var(--mgm-header-h));
	display: grid;
	align-items: end;
	overflow: hidden;
	color: #f5f8fb;
}

.mgm-hero__atmosphere {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(115deg, rgba(30, 58, 95, 0.94) 0%, rgba(54, 98, 153, 0.88) 48%, rgba(79, 130, 184, 0.72) 100%),
		repeating-linear-gradient(
			-18deg,
			rgba(255, 255, 255, 0.035) 0 1px,
			transparent 1px 14px
		),
		radial-gradient(ellipse 80% 60% at 70% 40%, rgba(42, 158, 214, 0.28), transparent 70%),
		linear-gradient(160deg, #1e3a5f, #366299 55%, #4f82b8);
	transform: scale(1.04);
	animation: mgm-drift 18s ease-in-out infinite alternate;
}

.mgm-hero__atmosphere::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 35%;
	background: linear-gradient(transparent, rgba(30, 58, 95, 0.55));
}

.mgm-hero__content {
	max-width: var(--mgm-max);
	width: 100%;
	margin: 0 auto;
	padding: clamp(3rem, 10vh, 6rem) 1.25rem clamp(3.5rem, 9vh, 5.5rem);
	animation: mgm-rise 0.9s ease-out both;
}

.mgm-hero__eyebrow {
	margin: 0 0 0.85rem;
	font-size: clamp(1.35rem, 3.6vw, 2.15rem);
	font-family: var(--mgm-font-display);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
}

.mgm-hero__title {
	margin: 0 0 1rem;
	max-width: 16ch;
	font-family: var(--mgm-font-display);
	font-weight: 500;
	font-size: clamp(1.85rem, 5vw, 3.1rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.mgm-hero__lead {
	margin: 0 0 0.75rem;
	max-width: 38rem;
	font-size: clamp(1rem, 2.2vw, 1.2rem);
	color: rgba(245, 248, 251, 0.88);
}

.mgm-hero__tagline {
	margin: 0 0 1.75rem;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: rgba(220, 232, 244, 0.95);
}

.mgm-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.mgm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.35rem;
	border-radius: 0.35rem;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mgm-btn:hover,
.mgm-btn:focus-visible {
	transform: translateY(-2px);
}

.mgm-btn--primary {
	background: #fff;
	color: var(--mgm-navy-deep);
	border: 1px solid transparent;
}

.mgm-btn--primary:hover,
.mgm-btn--primary:focus-visible {
	background: var(--mgm-teal-bright);
	color: #fff;
}

.mgm-btn--ghost {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.45);
}

.mgm-btn--ghost:hover,
.mgm-btn--ghost:focus-visible {
	border-color: #fff;
	color: #fff;
}

/* Sections */
.mgm-section {
	padding: clamp(3.5rem, 8vh, 5.5rem) 1.25rem;
}

.mgm-section__inner {
	max-width: var(--mgm-max);
	margin: 0 auto;
}

.mgm-section__head {
	margin-bottom: 2rem;
	max-width: 40rem;
}

.mgm-section__head h2 {
	margin: 0 0 0.5rem;
	font-family: var(--mgm-font-display);
	font-size: clamp(1.75rem, 3.5vw, 2.35rem);
	color: var(--mgm-navy);
	letter-spacing: -0.02em;
}

.mgm-section__head p {
	margin: 0;
	color: var(--mgm-muted);
}

.mgm-services {
	background: rgba(255, 255, 255, 0.45);
}

.mgm-services__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.75rem 2rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mgm-service h3 {
	margin: 0 0 0.55rem;
	font-family: var(--mgm-font-display);
	font-size: 1.35rem;
	color: var(--mgm-navy);
}

.mgm-service p {
	margin: 0;
	color: var(--mgm-muted);
}

.mgm-service {
	padding-top: 1rem;
	border-top: 2px solid var(--mgm-teal);
	opacity: 0;
	transform: translateY(12px);
	animation: mgm-rise 0.7s ease-out forwards;
}

.mgm-service:nth-child(2) {
	animation-delay: 0.12s;
}

.mgm-service:nth-child(3) {
	animation-delay: 0.24s;
}

.mgm-about {
	background:
		linear-gradient(90deg, rgba(11, 31, 58, 0.04), transparent 40%),
		transparent;
}

.mgm-about__name {
	margin: 0 0 0.25rem;
	font-family: var(--mgm-font-display);
	font-size: clamp(1.35rem, 2.8vw, 1.85rem);
	color: var(--mgm-navy);
}

.mgm-about__cred {
	margin: 0 0 1.25rem;
	font-weight: 600;
	color: var(--mgm-navy);
}

.mgm-about__body {
	margin: 0;
	max-width: 42rem;
	color: var(--mgm-muted);
}

.mgm-contact {
	background: var(--mgm-navy-deep);
	color: #e8eef4;
}

.mgm-contact .mgm-section__head h2 {
	color: #fff;
}

.mgm-contact .mgm-section__head p {
	color: rgba(232, 238, 244, 0.75);
}

.mgm-contact__list {
	margin: 0;
	display: grid;
	gap: 1.35rem 2rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mgm-contact__list dt {
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #9ec0e0;
	margin-bottom: 0.25rem;
}

.mgm-contact__list dd {
	margin: 0;
	font-size: 1.05rem;
}

.mgm-contact__list a {
	color: #fff;
	text-decoration: none;
}

.mgm-contact__list a:hover,
.mgm-contact__list a:focus-visible {
	color: var(--mgm-teal-bright);
}

.mgm-contact__ext {
	opacity: 0.75;
	font-size: 0.92em;
}

.mgm-footer {
	padding: 1.5rem 1.25rem 2rem;
	border-top: 1px solid var(--mgm-line);
	background: rgba(255, 255, 255, 0.5);
}

.mgm-footer__inner {
	max-width: var(--mgm-max);
	margin: 0 auto;
}

.mgm-footer__brand {
	margin: 0 0 0.35rem;
	font-weight: 700;
	color: var(--mgm-navy);
}

.mgm-footer__meta {
	margin: 0;
	font-size: 0.85rem;
	color: var(--mgm-muted);
}

.mgm-main--page {
	padding: 3rem 1.25rem 4rem;
}

.mgm-article h1 {
	font-family: var(--mgm-font-display);
	color: var(--mgm-navy);
}

@keyframes mgm-rise {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes mgm-drift {
	from {
		transform: scale(1.02) translate3d(0, 0, 0);
	}
	to {
		transform: scale(1.06) translate3d(-1.5%, 1%, 0);
	}
}

@media (max-width: 860px) {
	.mgm-services__list,
	.mgm-contact__list {
		grid-template-columns: 1fr;
	}

	.mgm-nav__toggle {
		display: inline-flex;
		align-items: center;
	}

	.mgm-nav__list {
		display: none;
		position: absolute;
		right: 1.25rem;
		top: calc(var(--mgm-header-h) - 0.25rem);
		flex-direction: column;
		gap: 0;
		background: #fff;
		border: 1px solid var(--mgm-line);
		border-radius: 0.5rem;
		min-width: 11rem;
		padding: 0.4rem 0;
		box-shadow: 0 10px 30px rgba(11, 31, 58, 0.12);
	}

	.mgm-nav.is-open .mgm-nav__list {
		display: flex;
	}

	.mgm-nav__list a {
		display: block;
		padding: 0.7rem 1rem;
	}

	.mgm-header__inner {
		position: relative;
	}

	.mgm-brand__name {
		max-width: 11rem;
	}
}

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

	.mgm-hero__atmosphere,
	.mgm-hero__content,
	.mgm-service {
		animation: none !important;
		opacity: 1;
		transform: none;
	}
}
