/*
 * FLO — Homepage: the hero (Ken Burns photo, rise-in text, numbers), the
 * founder block, the three latest news, support. The other sections are
 * library sections. Values from design/source/Homepage.dc.html.
 * prefers-reduced-motion switches the animations off (base.css).
 */

/* ---- Hero ---- */

.p-home-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100vh;
	min-height: 600px;
	overflow: hidden;
	background: var(--navy);
}

.p-home-hero__img {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: flo-ken-burns 26s ease-in-out infinite alternate;
	will-change: transform;
}

.p-home-hero__shade,
.p-home-hero__vignette {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.p-home-hero__shade {
	background: linear-gradient(180deg, rgba(0, 16, 40, .9) 0%, rgba(0, 16, 40, .52) 22%, rgba(0, 16, 40, .58) 52%, rgba(0, 16, 40, .92) 100%);
}

.p-home-hero__vignette {
	background: radial-gradient(120% 85% at 50% 44%, transparent 34%, rgba(0, 16, 40, .58) 100%);
}

.p-home-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 0;
	/* The design's 128px, but never less than the top stack (announcement bar
	   + header, measured by header.js) plus a gap: the eyebrow never sits
	   under the header (DECISIONS 2026-10-12). */
	padding: max(128px, calc(var(--flo-topbar-h, 72px) + 28px)) var(--gutter) 20px;
	text-align: center;
	color: var(--paper);
}

.p-home-hero__content {
	width: 100%;
	max-width: 960px;
}

.p-home-hero__eyebrow {
	font-weight: 700;
	font-size: 12px;
	line-height: 1;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--gold);
}

.p-home-hero__title {
	margin: 20px auto 0;
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 800;
	font-size: clamp(44px, 6.6vw, 86px);
	line-height: .98;
	letter-spacing: -.035em;
	color: var(--paper);
	text-shadow: 0 2px 34px rgba(0, 8, 24, .5);
}

.p-home-hero__lead {
	max-width: 50ch;
	margin: 24px auto 0;
	font-size: clamp(16px, 1.7vw, 21px);
	line-height: 1.6;
	color: rgba(255, 255, 255, .92);
	text-shadow: 0 1px 16px rgba(0, 8, 24, .45);
}

.p-home-hero__cta {
	justify-content: center;
	gap: 14px;
	margin-top: 36px;
}

.p-home-hero__cta .c-btn {
	padding: 16px 34px;
}

/* The gold button's passing shine */
.p-home-hero__cta .c-btn--primary {
	position: relative;
	overflow: hidden;
	box-shadow: 0 16px 40px -14px rgba(245, 163, 4, .5);
}

.p-home-hero__cta .c-btn--primary::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 34%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent);
	transform: translateX(-220%) skewX(-18deg);
	animation: flo-shine 7s ease-in-out infinite;
	pointer-events: none;
}

.p-home-hero__cta .c-btn--ghost:hover {
	border-color: var(--paper);
	background: rgba(255, 255, 255, .22);
	color: var(--paper);
}

/* Rise-in, one after another (eyebrow, title, lead, buttons, numbers) */
.p-rise {
	animation: flo-rise .85s cubic-bezier(.2, .7, .2, 1) both;
}

.p-home-hero__eyebrow.p-rise {
	animation-duration: .8s;
	animation-delay: .05s;
}

.p-home-hero__title.p-rise {
	animation-delay: .16s;
}

.p-home-hero__lead.p-rise {
	animation-delay: .3s;
}

.p-home-hero__cta.p-rise {
	animation-delay: .44s;
}

.p-home-stats.p-rise {
	animation-delay: .6s;
}

.p-home-stats {
	position: relative;
	z-index: 2;
	border-top: 1px solid rgba(255, 255, 255, .16);
}

.p-home-stats__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 18px 0;
	max-width: var(--container);
	margin: 0 auto;
	padding: 18px var(--gutter) 26px;
	text-align: left;
}

.p-home-stats__item {
	padding: 2px 26px;
	border-left: 1px solid rgba(255, 255, 255, .16);
}

.p-home-stats__item:last-child {
	border-right: 1px solid rgba(255, 255, 255, .16);
}

.p-home-stats__value {
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 800;
	font-size: clamp(26px, 3vw, 40px);
	line-height: 1;
	color: var(--paper);
}

.p-home-stats__label {
	margin-top: 6px;
	font-weight: 600;
	font-size: 12.5px;
	line-height: 1.4;
	color: rgba(255, 255, 255, .66);
}

@keyframes flo-rise {
	from {
		opacity: 0;
		transform: translateY(22px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes flo-ken-burns {
	from {
		transform: scale(1.02);
	}

	to {
		transform: scale(1.12);
	}
}

@keyframes flo-shine {
	0% {
		transform: translateX(-220%) skewX(-18deg);
	}

	32%,
	100% {
		transform: translateX(430%) skewX(-18deg);
	}
}

/* ---- Founder ---- */

.p-founder {
	overflow: hidden;
	padding: 96px var(--gutter) 100px;
}

.p-founder__glow {
	position: absolute;
	left: -160px;
	top: -180px;
	width: 560px;
	height: 560px;
	background: radial-gradient(circle, rgba(245, 163, 4, .13), transparent 66%);
	pointer-events: none;
}

.p-founder__inner {
	position: relative;
}

.p-founder__head {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: clamp(32px, 4.5vw, 56px);
	align-items: end;
	padding-bottom: 30px;
	border-bottom: 2px solid var(--navy);
}

.p-founder__eyebrow {
	font-size: 12px;
	letter-spacing: .22em;
}

.p-founder__title {
	max-width: 14ch;
	margin: 18px 0 0;
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 800;
	font-size: clamp(34px, 4.4vw, 58px);
	line-height: .96;
	letter-spacing: -.032em;
	color: var(--navy);
}

.p-founder__side {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding-bottom: 6px;
}

.p-founder__text {
	margin: 0;
	font-size: clamp(16px, 1.4vw, 17px);
	line-height: 1.66;
	color: var(--text);
}

.p-founder__text strong {
	font-weight: 700;
	color: var(--navy);
}

.p-founder__actions {
	gap: 12px;
}

.p-founder__actions .c-btn {
	padding: 14px 28px;
	font-size: 14.5px;
}

.p-founder__photo {
	position: relative;
	margin: 34px 0 0;
	aspect-ratio: 24 / 9;
	border-radius: 18px;
	overflow: hidden;
	background: #EDE7DB;
	box-shadow: 0 30px 62px -38px rgba(0, 27, 66, .5);
}

.p-founder__photo::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 52%;
	background: linear-gradient(to top, rgba(0, 27, 66, .76), transparent);
	pointer-events: none;
}

.p-founder__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.p-founder__caption {
	position: absolute;
	z-index: 1;
	left: clamp(20px, 3vw, 34px);
	right: clamp(20px, 3vw, 34px);
	bottom: clamp(18px, 2.4vw, 26px);
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.p-founder__name {
	display: block;
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 700;
	font-size: clamp(18px, 2vw, 23px);
	line-height: 1.05;
	color: var(--paper);
}

.p-founder__role {
	display: block;
	margin-top: 4px;
	font-weight: 600;
	font-size: 13.5px;
	line-height: 1.4;
	color: rgba(255, 255, 255, .78);
}

.p-founder__place {
	font-weight: 600;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .6);
}

/* ---- News ---- */

.p-home-news {
	padding: 100px var(--gutter);
}

.p-home-news__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
}

.p-home-news__eyebrow,
.p-home-support__eyebrow {
	font-size: 12px;
	letter-spacing: .2em;
}

.p-home-news__title {
	margin: 16px 0 0;
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 800;
	font-size: clamp(30px, 3.6vw, 44px);
	line-height: 1.05;
	letter-spacing: -.02em;
	color: var(--navy);
}

.p-home-news__all {
	flex: none;
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	color: var(--navy-ink);
	text-decoration: none;
	transition: color .2s ease;
}

.p-home-news__all:hover {
	color: var(--gold-text);
}

.p-home-news__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 22px;
	margin-top: 44px;
}

.p-ncard {
	display: block;
	border: 1px solid var(--line);
	border-radius: 18px;
	overflow: hidden;
	background: var(--white);
	color: inherit;
	text-decoration: none;
	transition: transform .25s ease, box-shadow .25s ease;
}

.p-ncard:hover {
	transform: translateY(-4px);
	box-shadow: 0 26px 52px -34px rgba(0, 27, 66, .45);
	color: inherit;
}

.p-ncard__photo {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--sand);
}

.p-ncard__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.p-ncard__body {
	display: block;
	padding: 24px;
}

.p-ncard__date {
	display: block;
	font-weight: 700;
	font-size: 11.5px;
	line-height: 1;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--gold-text);
}

.p-ncard__title {
	margin: 10px 0 0;
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 700;
	font-size: 19px;
	line-height: 1.25;
	letter-spacing: 0;
	color: var(--navy);
}

.p-ncard__text {
	display: block;
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--muted);
}

.p-ncard__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	font-weight: 700;
	font-size: 13.5px;
	line-height: 1;
	color: var(--navy-ink);
}

/* ---- Support ---- */

.p-home-support {
	overflow: hidden;
	padding: 104px var(--gutter) 112px;
}

.p-home-support__rays {
	position: absolute;
	left: 50%;
	bottom: -560px;
	width: 1220px;
	height: 1220px;
	transform: translateX(-50%);
	background: repeating-conic-gradient(from 180deg at 50% 50%, rgba(245, 163, 4, .05) 0deg .55deg, transparent .55deg 5.2deg);
	-webkit-mask: radial-gradient(circle, #000, transparent 55%);
	mask: radial-gradient(circle, #000, transparent 55%);
	pointer-events: none;
}

.p-home-support__glow {
	position: absolute;
	left: 50%;
	bottom: -380px;
	width: 700px;
	height: 700px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(245, 163, 4, .11), transparent 66%);
	pointer-events: none;
}

.p-home-support__inner {
	position: relative;
}

.p-home-support__head {
	max-width: 66ch;
}

.p-home-support__title {
	margin: 18px 0 0;
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 800;
	font-size: clamp(32px, 4.4vw, 56px);
	line-height: 1;
	letter-spacing: -.025em;
	color: var(--paper);
}

.p-home-support__lead {
	margin: 20px 0 0;
	font-size: clamp(16px, 1.5vw, 19px);
	line-height: 1.6;
	color: rgba(255, 255, 255, .78);
}

.p-home-support__full {
	font-weight: 700;
	color: var(--gold);
}

.p-htiers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(244px, 1fr));
	gap: 18px;
	align-items: stretch;
	margin-top: 46px;
}

.p-htier {
	display: flex;
	flex-direction: column;
	padding: 26px;
	border: 1px solid rgba(255, 255, 255, .13);
	border-radius: 22px;
	background: rgba(255, 255, 255, .05);
	transition: background .25s, border-color .25s, transform .22s;
}

.p-htier:hover {
	border-color: rgba(245, 163, 4, .55);
	background: rgba(255, 255, 255, .09);
	transform: translateY(-4px);
}

.p-htier--featured {
	border-color: rgba(245, 163, 4, .5);
	background: rgba(245, 163, 4, .13);
}

.p-htier--featured:hover {
	background: rgba(245, 163, 4, .19);
}

.p-htier__badge {
	align-self: flex-start;
	margin-bottom: 14px;
	padding: 6px 13px;
	border-radius: var(--r-pill);
	background: var(--gold);
	font-weight: 700;
	font-size: 10.5px;
	line-height: 1;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--navy);
}

.p-htier__row {
	display: flex;
	align-items: baseline;
	gap: 9px;
}

.p-htier__amount {
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 800;
	font-size: clamp(34px, 3.4vw, 42px);
	line-height: .9;
	letter-spacing: -.03em;
	color: var(--gold);
}

.p-htier__per {
	font-weight: 700;
	font-size: 11px;
	line-height: 1;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .55);
}

.p-htier__title {
	margin-top: 20px;
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.2;
	color: var(--paper);
}

.p-htier__text {
	margin: 10px 0 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .72);
}

.p-hproject {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 30px;
	margin-top: 20px;
	padding: 28px 32px;
	border: 1px solid rgba(255, 255, 255, .13);
	border-radius: 22px;
	background: rgba(255, 255, 255, .05);
}

.p-hproject__main {
	flex: 1 1 340px;
	min-width: 270px;
}

.p-hproject__title {
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 700;
	font-size: 20px;
	line-height: normal;
	color: var(--paper);
}

.p-hproject__text {
	max-width: 60ch;
	margin: 8px 0 0;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .72);
}

.p-hproject__actions {
	gap: 12px;
}

.p-hproject__actions .c-btn {
	padding: 14px 26px;
	font-size: 14px;
}

.p-hproject__actions .c-btn--ghost {
	border-color: rgba(255, 255, 255, .42);
	background: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
	.p-home-hero {
		height: auto;
		min-height: 86vh;
		min-height: 86svh;
	}

	.p-home-hero__img {
		object-position: 50% 26% !important; /* over the focal point of the photo, as the design does on phones */
	}

	.p-home-hero__inner {
		padding: max(108px, calc(var(--flo-topbar-h, 72px) + 28px)) 22px 46px;
	}

	.p-home-hero__title {
		font-size: clamp(33px, 8.6vw, 44px);
		letter-spacing: -.03em;
	}

	.p-home-hero__cta {
		flex-direction: column;
		align-items: stretch;
		gap: 11px;
	}

	.p-home-hero__cta .c-btn {
		width: 100%;
		padding: 17px 20px;
	}

	.p-home-stats__grid {
		grid-template-columns: 1fr 1fr;
		gap: 14px 0;
	}

	.p-home-stats__item {
		padding: 2px 16px;
	}

	.p-home-news__grid,
	.p-htiers {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

@media (max-width: 480px) {
	.p-home-hero__inner {
		padding: max(100px, calc(var(--flo-topbar-h, 72px) + 24px)) 18px 40px;
	}

	.p-home-hero__title {
		font-size: clamp(30px, 8.4vw, 38px);
	}

	.p-home-stats__grid {
		grid-template-columns: 1fr;
	}

	.p-home-stats__item,
	.p-home-stats__item:last-child {
		padding: 12px 4px 0;
		border-top: 1px solid rgba(255, 255, 255, .16);
		border-right: 0;
		border-left: 0;
	}
}

@media (max-width: 768px) {
	.p-founder__head {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}
