/* MedLab About page widgets */

.mla-hero {
	--mla-hero-from: #003958;
	--mla-hero-to: #004a73;
	--mla-hero-accent: #f58220;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48vh;
	padding: clamp(56px, 9vw, 110px) 24px;
	color: #fff;
	text-align: center;
	background: linear-gradient(135deg, var(--mla-hero-from), var(--mla-hero-to) 55%, #0070ad);
}

.mla-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.04);
	animation: mla-kenburns 18s ease-in-out infinite alternate;
}

.mla-hero__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		radial-gradient(900px 420px at 80% 15%, rgba(0, 112, 173, 0.35), transparent 60%),
		linear-gradient(180deg, rgba(0, 40, 60, 0.55), rgba(0, 57, 88, 0.82));
}

.mla-hero:not(.mla-hero--has-media) .mla-hero__shade {
	background:
		radial-gradient(1000px 420px at 85% 10%, rgba(0, 112, 173, 0.4), transparent 60%),
		radial-gradient(700px 360px at 10% 90%, rgba(245, 130, 32, 0.18), transparent 55%),
		transparent;
}

.mla-hero__grid {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 52px 52px;
	mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
	pointer-events: none;
	animation: mla-grid 20s linear infinite;
}

.mla-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 760px;
	margin: 0 auto;
}

.mla-hero__brand {
	margin: 0 0 14px;
	font-size: clamp(1.7rem, 3.6vw, 2.55rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	animation: mla-rise 0.7s ease both;
}

.mla-hero__title {
	margin: 0 0 14px;
	font-size: clamp(1.25rem, 2.2vw, 1.7rem);
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
	animation: mla-rise 0.75s ease 0.08s both;
}

.mla-hero__subtitle {
	margin: 0 auto 28px;
	max-width: 36em;
	font-size: 1.05rem;
	line-height: 1.85;
	color: rgba(255, 255, 255, 0.8);
	animation: mla-rise 0.8s ease 0.14s both;
}

.mla-hero__actions {
	animation: mla-rise 0.85s ease 0.2s both;
}

.mla-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 160px;
	padding: 14px 28px;
	border-radius: 12px;
	background: var(--mla-hero-accent);
	color: #1a1a1a;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 10px 28px rgba(245, 130, 32, 0.35);
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.mla-hero__cta:hover {
	transform: translateY(-2px);
	background: #ff8f2c;
	color: #1a1a1a;
	box-shadow: 0 14px 34px rgba(245, 130, 32, 0.42);
}

/* Story */
.mla-story {
	--mla-story-accent: #0070ad;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(28px, 5vw, 56px);
	align-items: center;
}

.mla-story--media-right .mla-story__media {
	order: 2;
}

.mla-story--media-right .mla-story__content {
	order: 1;
}

.mla-story__eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(0, 112, 173, 0.1);
	color: var(--mla-story-accent);
	font-size: 0.8rem;
	font-weight: 700;
	animation: mla-rise 0.65s ease both;
}

.mla-story__title {
	margin: 0 0 16px;
	font-size: clamp(1.45rem, 2.4vw, 2rem);
	font-weight: 800;
	color: #004a73;
	line-height: 1.35;
	animation: mla-rise 0.7s ease 0.05s both;
}

.mla-story__lead {
	margin: 0 0 16px;
	font-size: 1.08rem;
	line-height: 1.9;
	color: #334155;
	font-weight: 600;
	animation: mla-rise 0.75s ease 0.1s both;
}

.mla-story__body {
	color: #64748b;
	line-height: 1.9;
	animation: mla-rise 0.8s ease 0.14s both;
}

.mla-story__body p {
	margin: 0 0 0.9em;
}

.mla-story__body p:last-child {
	margin-bottom: 0;
}

.mla-story__media {
	animation: mla-rise 0.8s ease 0.1s both;
}

.mla-story__frame {
	position: relative;
	border-radius: 28px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #e8f2f8;
	box-shadow: 0 24px 60px rgba(0, 74, 115, 0.14);
}

.mla-story__frame::before {
	content: '';
	position: absolute;
	inset: auto auto -18% -12%;
	width: 42%;
	height: 42%;
	border-radius: 50%;
	background: color-mix(in srgb, var(--mla-story-accent) 35%, transparent);
	filter: blur(2px);
	z-index: 0;
	pointer-events: none;
}

.mla-story__frame img,
.mla-story__placeholder {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mla-story__placeholder {
	background:
		linear-gradient(135deg, #d7e8f3, #eef5f9 45%, #c9dce9);
}

.mla-story__badge {
	position: absolute;
	z-index: 2;
	inset-inline-start: 18px;
	bottom: 18px;
	max-width: calc(100% - 36px);
	padding: 10px 14px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.92);
	color: #004a73;
	font-size: 0.82rem;
	font-weight: 700;
	backdrop-filter: blur(8px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Pillars — open layout, no heavy cards */
.mla-pillars {
	--mla-pillar-accent: #004a73;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(24px, 4vw, 40px);
}

.mla-pillar {
	position: relative;
	padding: 8px 8px 8px 0;
	animation: mla-rise 0.7s ease both;
	animation-delay: var(--mla-delay, 0s);
}

.mla-pillar:not(:last-child)::after {
	content: '';
	position: absolute;
	inset-inline-end: -12px;
	top: 10%;
	bottom: 10%;
	width: 1px;
	background: linear-gradient(180deg, transparent, rgba(0, 74, 115, 0.18), transparent);
}

.mla-pillar__icon {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 16px;
	border-radius: 16px;
	color: var(--mla-pillar-accent);
	background: linear-gradient(145deg, rgba(0, 112, 173, 0.12), rgba(0, 74, 115, 0.06));
}

.mla-pillar__title {
	margin: 0 0 10px;
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--mla-pillar-accent);
}

.mla-pillar__text {
	margin: 0;
	line-height: 1.85;
	color: #64748b;
}

/* Stats strip */
.mla-stats {
	--mla-stats-from: #004a73;
	--mla-stats-to: #003958;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	padding: clamp(28px, 4vw, 40px) clamp(16px, 3vw, 28px);
	border-radius: 24px;
	color: #fff;
	background:
		radial-gradient(600px 220px at 100% 0%, rgba(0, 112, 173, 0.45), transparent 60%),
		linear-gradient(120deg, var(--mla-stats-from), var(--mla-stats-to));
	box-shadow: 0 18px 48px rgba(0, 57, 88, 0.2);
}

.mla-stats__item {
	text-align: center;
	padding: 8px 10px;
	animation: mla-rise 0.65s ease both;
}

.mla-stats__item + .mla-stats__item {
	border-inline-start: 1px solid rgba(255, 255, 255, 0.14);
}

.mla-stats__value {
	display: block;
	margin-bottom: 6px;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
}

.mla-stats__label {
	display: block;
	font-size: 0.9rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.78);
}

@keyframes mla-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes mla-grid {
	from { background-position: 0 0, 0 0; }
	to { background-position: 52px 52px, 52px 52px; }
}

@keyframes mla-kenburns {
	from { transform: scale(1.02); }
	to { transform: scale(1.08); }
}

@media (max-width: 980px) {
	.mla-story {
		grid-template-columns: 1fr;
	}

	.mla-story--media-right .mla-story__media,
	.mla-story--media-right .mla-story__content {
		order: initial;
	}

	.mla-pillars {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.mla-pillar:not(:last-child)::after {
		display: none;
	}

	.mla-pillar {
		padding-bottom: 24px;
		border-bottom: 1px solid rgba(0, 74, 115, 0.1);
	}

	.mla-pillar:last-child {
		border-bottom: 0;
		padding-bottom: 0;
	}

	.mla-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mla-stats__item:nth-child(2n + 1) {
		border-inline-start: 0;
	}

	.mla-stats__item:nth-child(n + 3) {
		border-top: 1px solid rgba(255, 255, 255, 0.14);
		padding-top: 18px;
	}
}

@media (max-width: 560px) {
	.mla-stats {
		grid-template-columns: 1fr;
	}

	.mla-stats__item,
	.mla-stats__item:nth-child(n + 3) {
		border: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.14);
		padding: 16px 8px;
	}

	.mla-stats__item:first-child {
		border-top: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mla-hero__media,
	.mla-hero__grid,
	.mla-hero__brand,
	.mla-hero__title,
	.mla-hero__subtitle,
	.mla-hero__actions,
	.mla-story__eyebrow,
	.mla-story__title,
	.mla-story__lead,
	.mla-story__body,
	.mla-story__media,
	.mla-pillar,
	.mla-stats__item {
		animation: none !important;
	}
}
