/* MIM Home Hero — Wave | Split | Full-bleed | Centered */

.mim-w-home-hero .mim-hero__title { margin: 0; }
.mim-w-home-hero .mim-hero__text { margin: 0; text-wrap: pretty; }
/* Design: outline buttons hover to sky */
.mim-w-home-hero .mim-btn--outline { --mim-btn-hover-fg: var(--mim-sky); --mim-btn-hover-border: var(--mim-sky); }

/* --------------------------------------------------------------------------
 * Wave
 * ------------------------------------------------------------------------ */
.mim-hero--wave {
	--mim-hero-full: max(var(--mim-hero-min, 690px), var(--mim-hero-vh, 100vh));
	--mim-hero-up: var(--mim-hero-offset, 90px);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	height: calc(var(--mim-hero-full) - var(--mim-hero-offset, 90px));
}
/* Transparent-header mode: pull the hero up under the site header. */
.mim-hero--wave.mim-hero--overlap {
	--mim-hero-up: 0px;
	height: var(--mim-hero-full);
	margin-top: calc(-1 * var(--mim-hero-offset, 90px));
	padding-top: var(--mim-hero-offset, 90px);
}
.mim-hero--wave.mim-hero--none {
	--mim-hero-up: 0px;
	height: var(--mim-hero-full);
}
.mim-hero--wave > .mim-container {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}
.mim-hero--wave .mim-hero__content {
	position: relative;
	z-index: 3;
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: clamp(16px, 4vh, 48px) var(--mim-pad-x) clamp(24px, 5vh, 48px);
	pointer-events: none;
}
.mim-hero--wave .mim-hero__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
}
.mim-hero--wave .mim-hero__title a,
.mim-hero--wave .mim-hero__buttons,
.mim-hero--wave .mim-hero__text { pointer-events: auto; }
.mim-hero--wave .mim-hero__bottom {
	position: absolute;
	left: var(--mim-pad-x);
	right: var(--mim-pad-x);
	bottom: clamp(24px, 5vh, 48px);
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	flex-wrap: wrap;
}
.mim-hero--wave .mim-hero__bottom .mim-hero__text {
	max-width: 240px;
	margin-left: auto;
	font-size: 14px;
	line-height: 1.5;
	color: var(--mim-fg-soft);
	text-align: right;
}
/* Wrapped under the buttons on phones: stay at the start of the row (design). */
@media (max-width: 767px) {
	.mim-hero--wave .mim-hero__bottom .mim-hero__buttons + .mim-hero__text { margin-left: 0; }
}

/* Spinning circular badge */
.mim-w-home-hero .mim-hero__badge {
	position: relative;
	flex: none;
	width: 104px;
	height: 104px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--mim-fg);
}
.mim-w-home-hero .mim-hero__badge-ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	animation: mim-hero-spin 18s linear infinite;
}
.mim-w-home-hero .mim-hero__badge-ring text {
	font-family: var(--mim-font-mono);
	font-size: 8.6px;
	letter-spacing: 1.2px;
}
.mim-w-home-hero .mim-hero__badge-logo {
	position: relative;
	width: 30px;
	height: 24px;
	object-fit: contain;
}
@keyframes mim-hero-spin { to { transform: rotate(360deg); } }

/* Floating cards */
.mim-hero--wave .mim-hero__track {
	position: absolute;
	z-index: 1;
	left: 0;
	right: 0;
	bottom: 0;
	top: calc(-1 * var(--mim-hero-up));
	pointer-events: none;
	opacity: 0;
	transition: opacity .5s ease;
}
.mim-hero--wave .mim-hero__track.is-ready { opacity: 1; }
.mim-w-home-hero .mim-hero__card {
	position: absolute;
	left: 0;
	top: 0;
	display: block;
	width: clamp(150px, 15vw, 220px);
	aspect-ratio: 4 / 3;
	border-radius: var(--mim-radius-sm);
	overflow: hidden;
	background: var(--mim-white);
	box-shadow: var(--mim-shadow);
	will-change: transform;
	pointer-events: auto;
	transform-origin: 50% 50%;
}
.mim-w-home-hero .mim-hero__card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
}
.mim-w-home-hero .mim-hero__pill {
	position: absolute;
	left: 10px;
	bottom: 10px;
	display: flex;
	gap: 6px;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	font-family: var(--mim-font-mono);
	font-size: 10px;
	line-height: 1.5;
	letter-spacing: .08em;
	color: var(--mim-navy);
	pointer-events: none;
	white-space: nowrap;
}

/* Cut-out main image */
.mim-hero--wave .mim-hero__main {
	position: absolute;
	z-index: 2;
	left: 0;
	right: 0;
	bottom: -40px;
	margin: 0 auto;
	width: min(64vw, 920px);
	min-width: 340px;
	max-width: 100%;
	height: calc((100% + var(--mim-hero-up)) * var(--mim-hero-img-h, 82) / 100);
	pointer-events: none;
}
.mim-hero--wave .mim-hero__main img {
	position: absolute;
	left: 50%;
	top: calc(50% + var(--mim-hero-img-shift, 4.9%));
	width: calc(100% * var(--mim-hero-img-zoom, 1.1));
	height: calc(100% * var(--mim-hero-img-zoom, 1.1));
	max-width: none;
	transform: translate(-50%, -50%);
	object-fit: contain;
	object-position: center;
}

/* --------------------------------------------------------------------------
 * Split
 * ------------------------------------------------------------------------ */
.mim-hero--split { padding: clamp(16px, 4vh, 48px) var(--mim-pad-x) clamp(48px, 8vh, 96px); }
.mim-w-home-hero .mim-hero__split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}
.mim-w-home-hero .mim-hero__split--photo-left .mim-hero__photo { order: -1; }
.mim-w-home-hero .mim-hero__copy { display: flex; flex-direction: column; gap: 24px; }
.mim-hero--split .mim-hero__title { max-width: 8em; }
.mim-w-home-hero .mim-hero__photo {
	position: relative;
	aspect-ratio: 4 / 3.4;
	border-radius: 24px;
	overflow: hidden;
	background: var(--mim-white);
}
.mim-w-home-hero .mim-hero__photo > img,
.mim-w-home-hero .mim-hero__tile > img,
.mim-w-home-hero .mim-hero__bleed-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
.mim-w-home-hero .mim-hero__stats {
	position: absolute;
	left: 18px;
	top: 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	pointer-events: none;
}
.mim-w-home-hero .mim-hero__stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 18px;
	border-radius: 14px;
	background: var(--mim-white);
	color: var(--mim-navy);
}
.mim-w-home-hero .mim-hero__stat-value { font-size: 22px; line-height: 1.2; font-weight: 800; font-stretch: 88%; }
.mim-w-home-hero .mim-hero__stat-label { font-family: var(--mim-font-mono); font-size: 10px; letter-spacing: .1em; color: var(--mim-muted); }
.mim-w-home-hero .mim-hero__note {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 18px;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--mim-white);
	color: var(--mim-navy);
	pointer-events: none;
}
.mim-w-home-hero .mim-hero__note-icon {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--mim-navy);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--mim-font-mono);
}
.mim-w-home-hero .mim-hero__note-text { font-size: 14px; line-height: 1.45; }

/* --------------------------------------------------------------------------
 * Full-bleed photo
 * ------------------------------------------------------------------------ */
.mim-hero--bleed { padding: 0 var(--mim-pad-x) var(--mim-pad-x); }
.mim-w-home-hero .mim-hero__bleed {
	--mim-hero-ov-from: rgba(20, 40, 74, .92);
	--mim-hero-ov-mid: rgba(20, 40, 74, .6);
	--mim-hero-ov-to: rgba(20, 40, 74, .1);
	position: relative;
	display: flex;
	min-height: max(560px, calc(100vh - 120px));
	border-radius: 24px;
	overflow: hidden;
	background: var(--mim-navy);
	color: #fff;
}
.mim-w-home-hero .mim-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--mim-hero-ov-from) 0%, var(--mim-hero-ov-mid) 45%, var(--mim-hero-ov-to) 100%);
	pointer-events: none;
}
.mim-w-home-hero .mim-hero__bleed-copy {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 24px;
	box-sizing: content-box; /* design: 720px content + padding */
	max-width: 720px;
	padding: clamp(28px, 5vw, 64px);
}
.mim-hero--bleed .mim-hero__title { max-width: 9em; }
.mim-hero--bleed .mim-btn--outline { --mim-btn-border: #fff; }

/* --------------------------------------------------------------------------
 * Centered + image strip
 * ------------------------------------------------------------------------ */
.mim-hero--centered { padding: 0 var(--mim-pad-x); }
.mim-w-home-hero .mim-hero__center {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 24px;
	padding: clamp(32px, 8vh, 96px) 0 clamp(32px, 6vh, 64px);
}
.mim-hero--centered .mim-hero__title {
	font-size: clamp(44px, 6.4vw, 104px);
	max-width: 11em;
	margin-inline: auto;
}
.mim-hero--centered .mim-hero__text { max-width: 36em; font-size: 17px; }
.mim-hero--centered .mim-hero__buttons { justify-content: center; }
.mim-w-home-hero .mim-hero__strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--mim-hero-strip-min, 180px)), 1fr));
	gap: 12px;
	padding-bottom: clamp(40px, 7vh, 80px);
}
.mim-w-home-hero .mim-hero__tile {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	border-radius: var(--mim-radius-md);
	overflow: hidden;
	background: var(--mim-white);
}
.mim-w-home-hero .mim-hero__tile:nth-child(even) { margin-top: var(--mim-hero-stagger, 32px); }
.mim-w-home-hero .mim-hero__tile .mim-hero__pill { padding: 5px 11px; background: rgba(255, 255, 255, .94); }
.mim-w-home-hero a.mim-hero__tile > img { transition: transform .6s var(--mim-ease); }
.mim-w-home-hero a.mim-hero__tile:hover > img { transform: scale(1.04); }

/* --------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.mim-w-home-hero .mim-hero__badge-ring { animation: none; }
}
