/*
 * Home hero — Figma 45:999 artboard 1912×1003. All % positions use that frame.
 */

.dmf-hero {
	position: relative;
	padding: 1rem clamp(1rem, 4vw, 2rem) 2.5rem;
	overflow: hidden;
	min-height: 0;
	background-color: var(--dmf-bg-hero-fallback);
	padding-bottom: 0;
}

.dmf-hero__bg {
	position: absolute;
	inset: 0;
	background-image: var(--dmf-hero-bg);
	background-size: 105.4%;
	background-position: 48.65% top;
	background-repeat: no-repeat;
	z-index: 0;
}

.dmf-hero__layout {
	position: relative;
	z-index: 1;
	max-width: min(var(--dmf-max-wide), 100%);
	margin: 0 auto;
}

/* Proportional stage — width capped by viewport height so layout matches file */
.dmf-hero__stage {
	--hero-w: 1912;
	--hero-h: 1003;
	position: relative;
	width: min(100%, calc(88vh * var(--hero-w) / var(--hero-h)));
	max-width: 100%;
	margin: 0 auto;
	aspect-ratio: var(--hero-w) / var(--hero-h);
	isolation: isolate;
	container-type: inline-size;
	container-name: dmf-hero-stage;
}

/* 45:1002 — headline centered at ~20.7% / 50% */
.dmf-hero__stage .dmf-hero__title {
	position: absolute;
	left: 50%;
	top: 20.684%;
	transform: translate(-50%, -50%);
	margin: 0;
	width: 39%;
	max-width: 46.5rem;
	text-align: center;
	z-index: 7;
	text-transform: uppercase;
	pointer-events: none;
}

.dmf-hero__title-line {
	display: block;
	font-size: clamp(1.75rem, 4.2vw, 5.3125rem);
	font-weight: 700;
	line-height: 0.94;
	color: var(--dmf-green);
	letter-spacing: -0.02em;
}

@supports (font-size: 1cqw) {
	.dmf-hero__stage .dmf-hero__title-line {
		font-size: clamp(1.75rem, 4.445cqw, 5.3125rem);
	}
}

.dmf-hero__title-line--light {
	font-weight: 400;
}

/* 45:1004 + 45:1007 — play 64px @ 19.4%, vertical ~50% − 68.52px */
.dmf-hero__intro {
	position: absolute;
	left: 19.404%;
	top: calc(50% - 6.8315%);
	transform: translateY(-50%);
	z-index: 5;
}

.dmf-hero__video {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 1.5rem;
	text-decoration: none;
	color: var(--dmf-green);
}

.dmf-hero__video-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	flex-shrink: 0;
	background: #fff;
	border: 1px solid var(--dmf-border);
	border-radius: 2rem;
	font-size: 0;
	box-sizing: border-box;
}

.dmf-hero__video-icon:not(:has(img)) {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231c4b42'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 1.3125rem;
}

.dmf-hero__video-icon img {
	display: block;
	width: 0.9375rem;
	height: auto;
	max-height: 1.3125rem;
	object-fit: contain;
}

.dmf-hero__video-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	font-size: 0.9375rem;
	font-weight: 600;
	font-style: italic;
	line-height: 1.1;
	color: var(--dmf-green);
}

.dmf-hero__video-text-line {
	display: block;
}

/* Card images — 46:1755 / 46:1756 / 46:1754 */
.dmf-hero__float {
	position: absolute;
	z-index: 1;
	border-radius: 1rem;
	overflow: hidden;
	/* box-shadow: 0 12px 40px rgba(28, 75, 66, 0.12); */
}

.dmf-hero__float img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.dmf-hero__float--bl {
	left: 28.19%;
	top: 43.17%;
	width: 14.54%;
	height: 33.99%;
}

.dmf-hero__float--tl {
	left: 58.11%;
	top: 39.78%;
	width: 13.554%;
	height: 14.66%;
	z-index: 2;
}

.dmf-hero__float--r {
	left: 66.736%;
	top: 31.984%;
	width: 16.475%;
	height: 37.09%;
}

/* 45:1003 — 400px wide @ 1912; aspect 413/775.23; top 251px */
.dmf-hero__person {
	position: absolute;
	left: 39.54%;
	top: 25.025%;
	width: 20.92%;
	height: auto;
	aspect-ratio: 413 / 775.23;
	object-fit: cover;
	object-position: center top;
	z-index: 2;
	border-radius: 0.25rem;
}

/* 46:1761 / 46:1757 — overlay copy (not under-card) */
.dmf-hero__label {
	position: absolute;
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: normal;
	color: var(--dmf-green);
	text-align: center;
	z-index: 4;
	pointer-events: none;
}

.dmf-hero__label-line {
	display: block;
}

.dmf-hero__label--data {
	left: 35.332%;
	top: 51.346%;
	transform: translate(-50%, -50%);
	white-space: nowrap;
}

.dmf-hero__label--same {
	left: 74.974%;
	top: 38.285%;
	transform: translate(-50%, -50%);
	text-align: center;
	white-space: nowrap;
	z-index: 3;
}

/* 46:1758 / 46:1759 / 46:1760 — $20K / $200K micro-type on right card */
.dmf-hero__fund-range {
	position: absolute;
	inset: 0;
	z-index: 5;
	pointer-events: none;
}

.dmf-hero__fund-range__accent {
	position: absolute;
	left: 63.347%;
	top: 47.109%;
	width: 0.785%;
	height: 2.592%;
	background: #fbfdfb;
}

.dmf-hero__fund-range__line {
	position: absolute;
	left: 62.186%;
	top: 45.075%;
	transform: translate(-50%, -50%);
	margin: 0;
	font-family: var(--dmf-font);
	font-weight: 700;
	color: var(--dmf-green);
	line-height: 1;
	white-space: nowrap;
}

.dmf-hero__fund-range__line--lg {
	left: 62.844%;
	top: 47.707%;
}

/* Scale with stage width (laptops / short viewports) — same cqw idea as .dmf-hero__title-line */
.dmf-hero__fund-range__xs {
	font-size: 0.625rem;
}

.dmf-hero__fund-range__md {
	font-size: 1.25rem;
}

.dmf-hero__fund-range__sm {
	font-size: 1.007rem;
}

.dmf-hero__fund-range__lg {
	font-size: 2.014rem;
}

@supports (font-size: 1cqw) {
	.dmf-hero__fund-range__xs {
		font-size: clamp(0.45rem, 0.52cqw, 0.625rem);
	}

	.dmf-hero__fund-range__md {
		font-size: clamp(0.7rem, 1.05cqw, 1.25rem);
	}

	.dmf-hero__fund-range__sm {
		font-size: clamp(0.65rem, 0.84cqw, 1.007rem);
	}

	.dmf-hero__fund-range__lg {
		font-size: clamp(1rem, 1.68cqw, 2.014rem);
	}
}

/* 45:1015 — 60px FAB */
.dmf-hero__fab {
	position: absolute;
	left: 65.95%;
	top: 62.21%;
	transform: translate(-50%, -50%);
	width: 3.75rem;
	height: 3.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 1.875rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	z-index: 5;
}

.dmf-hero__fab img {
	width: 1.4375rem;
	height: auto;
	max-height: 1.375rem;
	object-fit: contain;
}

/* 45:1008 */
.dmf-hero__cta-wrap {
	position: absolute;
	left: 60.408%;
	top: 74.875%;
	width: 10.335%;
	min-width: 11.5rem;
	z-index: 6;
	margin: 0;
}

.dmf-hero .dmf-hero__cta.dmf-btn-pill {
	width: 100%;
	min-height: 3rem;
	height: 4.786%;
	box-sizing: border-box;
	/* Match global .dmf-btn-pill padding so icon inset matches other CTAs */
	padding: 0.375rem 1.25rem 0.375rem 0.375rem;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.1;
	text-transform: capitalize;
	justify-content: flex-start;
	border-radius: var(--dmf-radius-pill);
}

/* Video copy, card labels, CTA label — scale with stage like fund-range (title unchanged). */
@supports (font-size: 1cqw) {
	.dmf-hero__video-text {
		font-size: clamp(0.75rem, 0.78cqw, 0.9375rem);
	}

	.dmf-hero__label {
		font-size: clamp(0.8rem, 1.05cqw, 1.25rem);
	}

	.dmf-hero .dmf-hero__cta.dmf-btn-pill {
		font-size: clamp(0.75rem, 0.78cqw, 0.9375rem);
	}
}

@media (max-width: 61.99rem) {
	/* Home hero: mobile hides video, bg art, cards, labels, FAB — title + person + CTA stay. */
	.dmf-hero__bg,
	.dmf-hero__intro,
	.dmf-hero__float,
	.dmf-hero__label,
	.dmf-hero__fund-range,
	.dmf-hero__fab {
		display: none !important;
	}

	.dmf-hero__stage {
		width: 100%;
		aspect-ratio: 1912 / 1003;
		min-height: 26rem;
	}

	.dmf-hero__stage .dmf-hero__title {
		width: 92%;
		top: 12%;
	}

	.dmf-hero__title-line {
		font-size: clamp(1.35rem, 7vw, 2.25rem);
	}

	.dmf-hero__person {
		left: 50%;
		top: 30%;
		transform: translateX(-50%);
		width: 52%;
		max-width: 16rem;
		height: auto;
		aspect-ratio: 413 / 775.23;
	}

	.dmf-hero__cta-wrap {
		left: auto;
		right: 3%;
		top: auto;
		bottom: 4%;
		width: auto;
		min-width: 0;
	}

	.dmf-hero .dmf-hero__cta.dmf-btn-pill {
		width: auto;
		min-height: 2.75rem;
		padding: 0.375rem 1rem 0.375rem 0.375rem;
		font-size: 0.8125rem;
	}
}

.dmf-hero.dmf-hero--ready .dmf-hero__title-line {
	animation: dmf-hero-in 0.7s ease-out both;
}

.dmf-hero.dmf-hero--ready .dmf-hero__title-line--light {
	animation-delay: 0.08s;
}

@keyframes dmf-hero-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Inner pages — compact hero */
.dmf-hero--simple {
	min-height: auto;
	padding: 3rem 1.25rem;
	background: linear-gradient(165deg, var(--dmf-green) 0%, #0f2e28 100%);
	color: #fff;
}

.dmf-hero--simple .dmf-hero__badge {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.dmf-hero-simple__inner {
	max-width: 40rem;
	margin: 0 auto;
	text-align: center;
}

.dmf-hero-simple__title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	color: #fff;
}

.dmf-hero--simple .dmf-hero__sub {
	color: rgba(255, 255, 255, 0.9);
}

.dmf-hero--simple .dmf-hero__actions {
	justify-content: center;
}

.dmf-hero--simple .dmf-btn-pill {
	background: #fff;
	color: var(--dmf-green);
}

