/**
 * Management Team — hierarchical leadership page
 */

.mgmt {
	--mgmt-navy: #12263a;
	--mgmt-red: var(--mara-primary, #c62828);
	--mgmt-gold: var(--mara-secondary, #d4a017);
	--mgmt-surface: #f5f6f8;
	--mgmt-line: #d5dbe3;
	--mgmt-radius: 0.75rem;
	--mgmt-shadow: 0 14px 34px rgba(18, 38, 58, 0.08);
	color: var(--mara-text, #1a1a1a);
	background: #fff;
}

.mgmt a:focus-visible,
.mgmt button:focus-visible {
	outline: 2px solid var(--mgmt-gold);
	outline-offset: 3px;
}

/* ---------- Hero ---------- */
.mgmt__hero {
	position: relative;
	isolation: isolate;
	min-height: clamp(14rem, 28vw, 18.5rem);
	padding: clamp(2.75rem, 5.5vw, 3.75rem) 0 clamp(2.25rem, 4.5vw, 3rem);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: #070d14;
	color: #fff;
}

.mgmt__hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.mgmt__hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 18% 35%;
	display: block;
	transform: scale(1.04);
	filter: saturate(1.05) contrast(1.05);
}

.mgmt__hero-scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			105deg,
			rgba(5, 10, 16, 0.28) 0%,
			rgba(7, 13, 20, 0.45) 38%,
			rgba(7, 13, 20, 0.78) 68%,
			rgba(7, 13, 20, 0.92) 100%
		),
		linear-gradient(
			180deg,
			rgba(5, 10, 16, 0.45) 0%,
			transparent 36%,
			transparent 58%,
			rgba(5, 10, 16, 0.7) 100%
		);
}

.mgmt__hero-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(212, 160, 23, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(212, 160, 23, 0.07) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: linear-gradient(105deg, transparent 0%, rgba(0, 0, 0, 0.55) 48%, #000 100%);
	-webkit-mask-image: linear-gradient(105deg, transparent 0%, rgba(0, 0, 0, 0.55) 48%, #000 100%);
	opacity: 0.55;
	pointer-events: none;
}

.mgmt__hero-beam {
	position: absolute;
	top: -20%;
	right: 8%;
	width: min(42vw, 28rem);
	height: 140%;
	background: linear-gradient(
		180deg,
		transparent 0%,
		rgba(212, 160, 23, 0.12) 35%,
		rgba(198, 40, 40, 0.1) 55%,
		transparent 100%
	);
	transform: rotate(18deg);
	filter: blur(28px);
	pointer-events: none;
	animation: mgmt-hero-beam 7s ease-in-out infinite;
}

.mgmt__hero-scan {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		transparent 0%,
		rgba(255, 255, 255, 0.045) 48%,
		transparent 52%
	);
	background-size: 100% 220%;
	animation: mgmt-hero-scan 8s linear infinite;
	pointer-events: none;
	mix-blend-mode: soft-light;
}

.mgmt__hero-copy {
	position: relative;
	z-index: 1;
	width: min(100%, 34rem);
	margin-left: auto;
	text-align: left;
	padding-inline: 0.25rem;
}

.mgmt__hero-eyebrow {
	margin: 0 0 0.55rem;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mgmt-gold);
	text-shadow: 0 0 24px rgba(212, 160, 23, 0.35);
}

.mgmt__hero-title {
	margin: 0 0 0.65rem;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.55rem, 3.4vw, 2.35rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: #fff;
	text-wrap: balance;
	text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.mgmt__hero-intro {
	margin: 0 0 0.9rem;
	max-width: 32rem;
	font-size: clamp(0.95rem, 1.4vw, 1.05rem);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.84);
}

.mgmt__hero-accent {
	display: block;
	width: 3.75rem;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--mgmt-red), var(--mgmt-gold));
	box-shadow: 0 0 18px rgba(212, 160, 23, 0.45);
	animation: mgmt-hero-pulse 2.8s ease-in-out infinite;
}

@keyframes mgmt-hero-beam {
	0%,
	100% { opacity: 0.55; transform: rotate(18deg) translate3d(0, 0, 0); }
	50% { opacity: 0.9; transform: rotate(18deg) translate3d(0, -1.5%, 0); }
}

@keyframes mgmt-hero-scan {
	0% { background-position: 0 -40%; }
	100% { background-position: 0 140%; }
}

@keyframes mgmt-hero-pulse {
	0%,
	100% { opacity: 0.75; box-shadow: 0 0 12px rgba(212, 160, 23, 0.3); }
	50% { opacity: 1; box-shadow: 0 0 22px rgba(212, 160, 23, 0.55); }
}

@media (max-width: 719px) {
	.mgmt__hero {
		align-items: flex-end;
		min-height: clamp(16rem, 62vw, 20rem);
		padding: 3rem 0 2rem;
	}

	.mgmt__hero-bg img {
		object-position: 12% 30%;
	}

	.mgmt__hero-scrim {
		background:
			linear-gradient(
				180deg,
				rgba(5, 10, 16, 0.35) 0%,
				rgba(5, 10, 16, 0.2) 28%,
				rgba(5, 10, 16, 0.78) 62%,
				rgba(5, 10, 16, 0.94) 100%
			);
	}

	.mgmt__hero-copy {
		margin-left: 0;
		width: 100%;
	}
}

/* ---------- Hierarchy tree ---------- */
.mgmt__hierarchy {
	padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(3rem, 7vw, 4.5rem);
	background: linear-gradient(180deg, #fff 0%, var(--mgmt-surface) 100%);
}

.mgmt__hierarchy-header {
	text-align: center;
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.mgmt__hierarchy-title {
	margin: 0 0 0.65rem;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.35rem, 2.8vw, 1.85rem);
	font-weight: 800;
	color: var(--mgmt-navy);
}

.mgmt__hierarchy-path {
	margin: 0 auto;
	max-width: 48rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem 0.45rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--mara-text-muted, #667);
}

.mgmt__hierarchy-path-sep {
	color: var(--mgmt-red);
	opacity: 0.7;
}

.mgmt__tree {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	max-width: 72rem;
	margin-inline: auto;
}

.mgmt__spine {
	display: none;
}

.mgmt__tier {
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	opacity: 0;
	transform: translateY(1.75rem);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.mgmt__tier.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.mgmt__tier-label {
	margin: 0 0 0.85rem;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mgmt-red);
	text-align: center;
}

.mgmt__tier-title {
	margin: 0 0 1rem;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	font-weight: 800;
	color: var(--mgmt-navy);
	text-align: center;
}

.mgmt__connector--grow {
	width: 2px;
	height: 0;
	background: var(--mgmt-line);
	flex-shrink: 0;
	margin-bottom: 0.85rem;
	transition: height 0.65s ease;
}

.mgmt__tier.is-visible .mgmt__connector--grow {
	height: clamp(1.35rem, 3vw, 2.15rem);
}

.mgmt__tier--1 .mgmt__connector--grow {
	display: none;
}

.mgmt__branch {
	display: none;
}

.mgmt__row {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	display: grid;
	gap: 1.15rem;
}

.mgmt__row--2 {
	grid-template-columns: 1fr;
	max-width: 40rem;
	margin-inline: auto;
}

.mgmt__row--4 {
	grid-template-columns: 1fr;
	max-width: 22rem;
	margin-inline: auto;
}

.mgmt__row--3 {
	grid-template-columns: 1fr;
	max-width: 26rem;
	margin-inline: auto;
}

.mgmt__node {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	opacity: 0;
	transform: translateY(1rem);
	transition: opacity 0.55s ease, transform 0.55s ease;
}

.mgmt__tier.is-visible .mgmt__node {
	opacity: 1;
	transform: translateY(0);
}

.mgmt__tier.is-visible .mgmt__node:nth-child(1) { transition-delay: 0.08s; }
.mgmt__tier.is-visible .mgmt__node:nth-child(2) { transition-delay: 0.16s; }
.mgmt__tier.is-visible .mgmt__node:nth-child(3) { transition-delay: 0.24s; }
.mgmt__tier.is-visible .mgmt__node:nth-child(4) { transition-delay: 0.32s; }

.mgmt__stem {
	display: none;
}

@media (max-width: 899px) {
	.mgmt__row .mgmt__node + .mgmt__node::before {
		content: '';
		display: block;
		width: 2px;
		height: 1rem;
		margin: 0 auto 0.15rem;
		background: var(--mgmt-line);
	}
}

/* ---------- Cards (photo + overlay message) ---------- */
.mgmt__card {
	appearance: none;
	border: 0;
	padding: 0;
	margin: 0;
	background: #fff;
	border-radius: var(--mgmt-radius);
	box-shadow: var(--mgmt-shadow);
	overflow: hidden;
	height: 100%;
	width: 100%;
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: inherit;
	display: block;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.mgmt__card:hover,
.mgmt__card:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(18, 38, 58, 0.14);
}

.mgmt__card--principal {
	max-width: 28rem;
	margin-inline: auto;
}

.mgmt__card-media {
	position: relative;
	margin: 0;
	background: #e8ebef;
	aspect-ratio: 1;
	overflow: hidden;
	display: block;
}

.mgmt__card--principal .mgmt__card-media {
	aspect-ratio: 4 / 5;
}

.mgmt__card-photo,
.mgmt__card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 18%;
	display: block;
	transition: transform 0.55s ease;
}

.mgmt__card:hover .mgmt__card-photo,
.mgmt__card:focus-visible .mgmt__card-photo {
	transform: scale(1.045);
}

.mgmt__card-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(10, 20, 32, 0.05) 0%,
		rgba(10, 20, 32, 0.28) 42%,
		rgba(10, 20, 32, 0.82) 100%
	);
	pointer-events: none;
}

.mgmt__card-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 1.15rem 1.1rem 1.2rem;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	color: #fff;
}

.mgmt__card-role {
	margin: 0;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #ffd56a;
}

.mgmt__card-name {
	margin: 0;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.05rem, 1.8vw, 1.3rem);
	font-weight: 800;
	line-height: 1.2;
	color: #fff;
}

.mgmt__card--principal .mgmt__card-name {
	font-size: clamp(1.25rem, 2.4vw, 1.65rem);
}

.mgmt__card-summary {
	margin: 0.35rem 0 0;
	font-size: 0.9rem;
	line-height: 1.45;
	font-style: italic;
	color: rgba(255, 255, 255, 0.88);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mgmt__card--ops .mgmt__card-media {
	aspect-ratio: 4 / 5;
	width: 100%;
	height: auto;
}

.mgmt__card--ops .mgmt__card-summary {
	-webkit-line-clamp: 2;
}

.mgmt__avatar {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 12rem;
	color: #8a93a0;
	background: linear-gradient(155deg, #eef1f4, #dde3ea);
}

.mgmt__avatar svg {
	width: 2.5rem;
	height: 2.5rem;
}

.mgmt__btn {
	border-radius: 0.4rem;
}

/* ---------- Futuristic action buttons ---------- */
.mgmt__fx-btn {
	--fx-border: rgba(212, 160, 23, 0.45);
	--fx-glow: rgba(212, 160, 23, 0.28);
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.85rem;
	padding: 0.7rem 1.25rem;
	overflow: hidden;
	text-decoration: none;
	color: #f4f7fb;
	font-family: var(--mara-font-heading);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.2;
	background:
		linear-gradient(145deg, rgba(18, 38, 58, 0.92) 0%, rgba(8, 14, 22, 0.96) 100%);
	border: 1px solid var(--fx-border);
	clip-path: polygon(
		0 0,
		calc(100% - 10px) 0,
		100% 10px,
		100% 100%,
		10px 100%,
		0 calc(100% - 10px)
	);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.04) inset,
		0 10px 28px rgba(5, 10, 16, 0.35),
		0 0 22px rgba(212, 160, 23, 0.08);
	transition:
		color 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.25s ease,
		transform 0.2s ease;
}

.mgmt__fx-btn::before,
.mgmt__fx-btn::after {
	content: '';
	position: absolute;
	width: 0.7rem;
	height: 0.7rem;
	border: 2px solid var(--mgmt-gold);
	z-index: 2;
	pointer-events: none;
}

.mgmt__fx-btn::before {
	top: 4px;
	left: 4px;
	border-right: 0;
	border-bottom: 0;
}

.mgmt__fx-btn::after {
	right: 4px;
	bottom: 4px;
	border-left: 0;
	border-top: 0;
}

.mgmt__fx-btn-glow {
	position: absolute;
	inset: -40% -20%;
	background: linear-gradient(
		115deg,
		transparent 30%,
		rgba(212, 160, 23, 0.18) 48%,
		rgba(198, 40, 40, 0.14) 54%,
		transparent 68%
	);
	transform: translateX(-60%);
	opacity: 0.55;
	pointer-events: none;
	z-index: 0;
	animation: mgmt-fx-sweep 4.8s ease-in-out infinite;
}

.mgmt__fx-btn-label {
	position: relative;
	z-index: 1;
}

.mgmt__fx-btn:hover,
.mgmt__fx-btn:focus-visible {
	color: #fff;
	border-color: rgba(212, 160, 23, 0.85);
	box-shadow:
		0 0 0 1px rgba(212, 160, 23, 0.18) inset,
		0 12px 32px rgba(5, 10, 16, 0.4),
		0 0 28px rgba(212, 160, 23, 0.28);
	transform: translateY(-2px);
}

.mgmt__fx-btn:focus-visible {
	outline: 2px solid var(--mgmt-gold);
	outline-offset: 3px;
}

.mgmt__fx-btn--solid {
	--fx-border: rgba(198, 40, 40, 0.55);
	background:
		linear-gradient(145deg, rgba(198, 40, 40, 0.95) 0%, rgba(120, 18, 18, 0.98) 55%, rgba(18, 38, 58, 0.95) 100%);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.08) inset,
		0 10px 26px rgba(120, 18, 18, 0.28),
		0 0 20px rgba(198, 40, 40, 0.18);
}

.mgmt__fx-btn--solid::before,
.mgmt__fx-btn--solid::after {
	border-color: rgba(255, 214, 120, 0.9);
}

.mgmt__fx-btn--solid:hover,
.mgmt__fx-btn--solid:focus-visible {
	border-color: rgba(255, 214, 120, 0.95);
	box-shadow:
		0 0 0 1px rgba(255, 214, 120, 0.16) inset,
		0 14px 34px rgba(120, 18, 18, 0.35),
		0 0 32px rgba(212, 160, 23, 0.3);
}

@keyframes mgmt-fx-sweep {
	0%,
	100% { transform: translateX(-70%); opacity: 0.35; }
	50% { transform: translateX(40%); opacity: 0.75; }
}

/* ---------- Desktop org connectors ---------- */
@media (min-width: 720px) {
	.mgmt__card--principal {
		max-width: 32rem;
	}

	.mgmt__card--principal .mgmt__card-media {
		aspect-ratio: 4 / 5;
		min-height: 18rem;
	}

	.mgmt__row--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: 44rem;
		gap: 1.5rem;
	}

	.mgmt__row--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: 40rem;
		gap: 1.25rem;
	}

	.mgmt__row--3 {
		grid-template-columns: 1fr;
		max-width: 28rem;
	}
}

@media (min-width: 900px) {
	.mgmt__row .mgmt__node + .mgmt__node::before {
		display: none;
	}

	.mgmt__tree {
		padding-top: 0.5rem;
	}

	.mgmt__branch {
		display: block;
		position: relative;
		width: calc(50% - 0.75rem);
		max-width: 22rem;
		height: 2px;
		margin: 0 auto 0;
		background: var(--mgmt-line);
		transform: scaleX(0);
		transform-origin: center;
		transition: transform 0.55s ease 0.12s;
		z-index: 0;
	}

	.mgmt__tier.is-visible .mgmt__branch {
		transform: scaleX(1);
	}

	.mgmt__tier--3 .mgmt__branch--wide {
		width: calc(75% + 0.5rem);
		max-width: 52rem;
	}

	.mgmt__tier--4 .mgmt__branch--ops {
		width: calc(66% - 1rem);
		max-width: 36rem;
		margin-bottom: 0;
	}

	.mgmt__stem {
		display: block;
		width: 2px;
		height: 0;
		margin: 0 auto;
		background: var(--mgmt-line);
		position: relative;
		z-index: 1;
		transition: height 0.45s ease 0.2s;
	}

	.mgmt__tier.is-visible .mgmt__stem {
		height: 1.15rem;
	}

	.mgmt__row--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		max-width: 68rem;
		gap: 1.1rem;
	}

	.mgmt__row--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		max-width: 54rem;
		gap: 1.25rem;
	}
}

/* ---------- Related links (before philosophy CTA) ---------- */
.mgmt__links {
	position: relative;
	isolation: isolate;
	padding: clamp(2rem, 4.5vw, 2.85rem) 0;
	overflow: hidden;
	background: #070d14;
	border-top: 1px solid rgba(212, 160, 23, 0.12);
	border-bottom: 1px solid rgba(212, 160, 23, 0.12);
}

.mgmt__links-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.mgmt__links-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(212, 160, 23, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(212, 160, 23, 0.06) 1px, transparent 1px);
	background-size: 42px 42px;
	opacity: 0.7;
	mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%);
	-webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%);
}

.mgmt__links-beam {
	position: absolute;
	top: 50%;
	left: 10%;
	width: 80%;
	height: 2px;
	transform: translateY(-50%);
	background: linear-gradient(
		90deg,
		transparent,
		rgba(212, 160, 23, 0.35),
		rgba(198, 40, 40, 0.28),
		rgba(212, 160, 23, 0.35),
		transparent
	);
	filter: blur(0.5px);
	opacity: 0.65;
	animation: mgmt-links-beam 5.5s ease-in-out infinite;
}

.mgmt__links .mara-container {
	position: relative;
	z-index: 1;
}

.mgmt__links-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem 0.85rem;
}

@keyframes mgmt-links-beam {
	0%,
	100% { opacity: 0.35; transform: translateY(-50%) scaleX(0.92); }
	50% { opacity: 0.85; transform: translateY(-50%) scaleX(1); }
}

/* ---------- Philosophy ---------- */
.mgmt__philosophy {
	padding: clamp(3rem, 7vw, 4.75rem) 0;
	background: var(--mgmt-navy);
	color: #fff;
}

.mgmt__philosophy-grid {
	display: grid;
	gap: 2rem;
	align-items: start;
}

@media (min-width: 900px) {
	.mgmt__philosophy-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
		gap: 2.5rem 3rem;
		align-items: center;
	}
}

.mgmt__philosophy-title {
	margin: 0 0 1rem;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.55rem, 3.2vw, 2.25rem);
	font-weight: 800;
	line-height: 1.15;
	color: #fff;
}

.mgmt__philosophy-intro {
	margin: 0 0 1.5rem;
	max-width: 32rem;
	font-size: 1.02rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.78);
}

.mgmt__principles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
}

@media (min-width: 560px) {
	.mgmt__principles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.mgmt__principle {
	padding: 1.15rem 1.2rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 0.65rem;
	background: rgba(255, 255, 255, 0.04);
}

.mgmt__principle-icon {
	display: inline-flex;
	color: var(--mgmt-gold);
	margin-bottom: 0.55rem;
}

.mgmt__principle-title {
	margin: 0 0 0.35rem;
	font-family: var(--mara-font-heading);
	font-size: 1.05rem;
	font-weight: 800;
	color: #fff;
}

.mgmt__principle-text {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.7);
}

/* ---------- Modal ---------- */
.mgmt-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: grid;
	place-items: center;
	padding: 1rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mgmt-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.mgmt-modal[hidden] {
	display: none !important;
}

.mgmt-modal.is-open[hidden] {
	display: grid !important;
}

.mgmt-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 18, 28, 0.62);
	backdrop-filter: blur(2px);
}

.mgmt-modal__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 52rem);
	max-height: min(92vh, 44rem);
	overflow: auto;
	background: #fff;
	border-radius: 0.9rem;
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
	padding: 1.25rem 1.25rem 1.5rem;
}

.mgmt-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 2;
	appearance: none;
	border: 0;
	background: var(--mgmt-surface);
	color: var(--mgmt-navy);
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 999px;
	display: grid;
	place-items: center;
	cursor: pointer;
}

.mgmt-modal__nav {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
	padding-right: 2.75rem;
}

.mgmt-modal__nav-btn {
	appearance: none;
	border: 1px solid rgba(18, 38, 58, 0.12);
	background: #fff;
	color: var(--mgmt-navy);
	border-radius: 999px;
	padding: 0.45rem 0.85rem;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
}

.mgmt-modal__nav-btn:hover,
.mgmt-modal__nav-btn:focus-visible {
	border-color: var(--mgmt-red);
	color: var(--mgmt-red);
}

.mgmt-modal__layout {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 720px) {
	.mgmt-modal__layout {
		grid-template-columns: minmax(12rem, 0.85fr) minmax(0, 1.2fr);
		gap: 1.5rem;
		align-items: start;
	}

	.mgmt-modal__panel {
		padding: 1.5rem 1.65rem 1.75rem;
	}
}

.mgmt-modal__portrait {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.mgmt-modal__media {
	margin: 0;
	border-radius: 0.65rem;
	overflow: hidden;
	background: #e8ebef;
	aspect-ratio: 4 / 5;
	position: relative;
	min-height: 16rem;
}

.mgmt-modal__media img {
	width: 100%;
	height: 100%;
	min-height: 16rem;
	object-fit: cover;
	object-position: center 18%;
	display: block;
}

.mgmt-modal__media img.is-empty {
	display: none;
}

.mgmt-modal__avatar {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: #8a93a0;
	background: linear-gradient(155deg, #eef1f4, #dde3ea);
}

.mgmt-modal__avatar[hidden] {
	display: none !important;
}

.mgmt-modal__avatar svg {
	width: 3.5rem;
	height: 3.5rem;
}

.mgmt-modal__identity {
	text-align: center;
}

@media (min-width: 720px) {
	.mgmt-modal__identity {
		text-align: left;
	}
}

.mgmt-modal__name {
	margin: 0 0 0.3rem;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.25rem, 2.4vw, 1.55rem);
	font-weight: 800;
	line-height: 1.2;
	color: var(--mgmt-navy);
}

.mgmt-modal__role {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mgmt-red);
}

.mgmt-modal__block {
	margin-bottom: 1.1rem;
}

.mgmt-modal__label {
	margin: 0 0 0.4rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mgmt-navy);
}

.mgmt-modal__text,
.mgmt-modal__quote {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.65;
	color: var(--mara-text-muted, #445);
	white-space: pre-line;
}

.mgmt-modal__quote {
	font-style: italic;
	border-left: 3px solid var(--mgmt-gold);
	padding-left: 0.85rem;
}

.mgmt-modal__list {
	margin: 0;
	padding-left: 1.15rem;
	color: var(--mara-text-muted, #445);
	line-height: 1.55;
}

.mgmt-modal__meta {
	display: grid;
	gap: 0.55rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(18, 38, 58, 0.08);
	font-size: 0.95rem;
}

.mgmt-modal__meta a {
	color: var(--mgmt-navy);
	font-weight: 700;
}

.mgmt-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 0.15rem;
	padding-top: 0;
	border-top: 0;
	justify-content: center;
}

@media (min-width: 720px) {
	.mgmt-modal__actions {
		justify-content: flex-start;
	}
}

.mgmt-modal__actions[hidden] {
	display: none !important;
}

.mgmt-modal__actions .mgmt__fx-btn {
	font-size: 0.72rem;
	min-height: 2.55rem;
	padding: 0.6rem 0.95rem;
	width: 100%;
	letter-spacing: 0.06em;
}

body.mgmt-modal-open {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.mgmt__tier,
	.mgmt__node,
	.mgmt__connector--grow,
	.mgmt__branch,
	.mgmt__stem,
	.mgmt__card,
	.mgmt__card-photo,
	.mgmt-modal,
	.mgmt__hero-beam,
	.mgmt__hero-scan,
	.mgmt__hero-accent,
	.mgmt__fx-btn,
	.mgmt__fx-btn-glow,
	.mgmt__links-beam {
		transition: none !important;
		animation: none !important;
	}

	.mgmt__tier,
	.mgmt__node {
		opacity: 1;
		transform: none;
	}

	.mgmt__card:hover .mgmt__card-photo,
	.mgmt__fx-btn:hover,
	.mgmt__fx-btn:focus-visible {
		transform: none;
	}
}
