:root {
	--blue: #078dcc;
	--bright-blue: #079bd8;
	--dark-blue: #063a7c;
	--navy: #07143e;
	--cream: #f6eee4;
	--text: #111827;
	--muted: #777b82;
}

* {
	box-sizing: border-box;
}

html {
	scroll-padding-top: 80px;
	overflow-x: clip;
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--text);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
}

a {
	color: inherit;
	text-decoration: none;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: clamp(24px, 3vw, 44px);
	min-height: 74px;
	padding: 12px clamp(24px, 5.5vw, 88px);
	background: #fff;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--blue);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -1px;
	white-space: nowrap;
}

.logo-mark {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--blue);
}

.navigation {
	display: flex;
	gap: 34px;
	margin-right: auto;
}

.navigation a {
	font-size: 14px;
	font-weight: 600;
}

.navigation a:hover,
.footer-links a:hover {
	color: var(--bright-blue);
}

.button {
	display: inline-block;
	padding: 14px 30px;
	border: 0;
	border-radius: 28px;
	background: var(--bright-blue);
	color: #fff;
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
	transition: background-color 160ms ease, transform 160ms ease;
}

.button:hover {
	background: #0578b8;
	transform: translateY(-1px);
}

.button-small {
	padding: 10px 20px;
	font-size: 13px;
}

.hero {
	display: flex;
	align-items: center;
	min-height: clamp(500px, 58vw, 820px);
	background:
		linear-gradient(90deg, rgba(4, 25, 61, 0.78), rgba(4, 25, 61, 0.38)),
		url("https://images.unsplash.com/photo-1509099836639-18ba1795216d?auto=format&fit=crop&w=2200&q=85")
		center 48% / cover;
	color: #fff;
}

.hero-content {
	width: min(760px, 75%);
	margin-left: 6%;
}

.eyebrow {
	margin-bottom: 10px;
	color: var(--blue);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.1px;
	text-transform: uppercase;
}

.hero .eyebrow {
	color: #64c8ee;
}

.hero h1 {
	max-width: 760px;
	margin-bottom: 18px;
	font-size: clamp(38px, 3.3vw, 58px);
	font-weight: 700;
	line-height: 1.04;
	text-wrap: balance;
}

.hero-content > p:not(.eyebrow) {
	max-width: 600px;
	font-size: 17px;
	line-height: 1.6;
}

.hero .button {
	margin-top: 10px;
}

.intro {
	padding: 88px 8% 82px;
	text-align: center;
}

.intro h2 {
	max-width: 1120px;
	margin: 0 auto;
	font-size: clamp(20px, 1.8vw, 28px);
	font-weight: 700;
	line-height: 1.5;
	text-wrap: balance;
}

.values {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 7%;
	max-width: 1050px;
	margin: 54px auto 0;
}

.values article {
	display: flex;
	align-items: center;
	flex-direction: column;
}

.icon-frame {
	position: relative;
	display: block;
	width: 68px;
	height: 68px;
	margin-bottom: 12px;
	overflow: hidden;
	flex: 0 0 68px;
	background: var(--cream);
}

.value-icon {
	position: absolute;
	display: block;
	max-width: none;
	height: auto;
	mix-blend-mode: multiply;
}

.value-icon-water {
	width: 400px;
	left: calc(50% - 144px);
	top: calc(50% - 36px);
}

.value-icon-person {
	width: 205px;
	left: calc(50% - 95px);
	top: calc(50% - 46px);
}

.value-icon-chart {
	width: 171px;
	left: calc(50% - 73px);
	top: calc(50% - 48px);
}

.values p {
	max-width: 230px;
	margin-bottom: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.donations {
	padding: 82px 6% 94px;
	background: var(--dark-blue);
	color: #fff;
}

.section-heading {
	max-width: 660px;
	margin: 0 auto;
	text-align: center;
}

.section-heading .eyebrow,
.call-to-action .eyebrow {
	color: #4ac4ee;
}

.section-heading h2 {
	margin-bottom: 12px;
	font-size: clamp(28px, 2.5vw, 38px);
	text-wrap: balance;
}

.section-heading > p:last-child {
	color: #c4d8ed;
	font-size: 15px;
	line-height: 1.55;
}

.donation-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	max-width: 1380px;
	margin: 44px auto 0;
}

.donation-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 26px;
	border: 1px solid #0e4a88;
	border-radius: 12px;
	background: #052e68;
}

.donation-card h3 {
	margin-bottom: 0;
	font-size: 32px;
}

.per-month {
	margin-bottom: 18px;
	color: #46c3ee;
	font-size: 14px;
}

.donation-card > p:not(.per-month) {
	min-height: 82px;
	margin-bottom: 18px;
	color: #d4e3f2;
	font-size: 14px;
	line-height: 1.5;
}

.donation-card .button {
	width: 100%;
	margin-top: auto;
	padding: 11px;
	border-radius: 5px;
	font-size: 14px;
}

.donation-card.featured {
	background: #078dcc;
}

.donation-card .button-dark {
	background: var(--navy);
}

.donation-card .button-dark:hover {
	background: #030b28;
}

.recommended {
	position: absolute;
	top: 16px;
	right: 18px;
	padding: 5px 9px;
	border-radius: 12px;
	background: var(--navy);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
}

.partners {
	padding: 88px 5% 100px;
	background: var(--cream);
}

.partner-heading,
.partner-grid {
	max-width: 1420px;
	margin-right: auto;
	margin-left: auto;
}

.partner-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;	
	margin-bottom: 38px;
}

.partner-heading h2 {
	max-width: 650px;
	margin-bottom: 0;
	font-size: clamp(24px, 2.2vw, 34px);
	line-height: 1.15;
	text-wrap: balance;
}

.partner-heading .eyebrow {
	color: #716d68;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0;
}

.partner-heading > span {
	padding-bottom: 4px;
	color: #888;
	font-size: 13px;
}

.partner-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 34px 24px;
}

.partner-grid article {
	font-size: 13px;
}

.portrait {
	aspect-ratio: 1;
	margin-bottom: 14px;
	background-color: #dedbd6;
	background-image: url("assets/partner-portraits.png");
	background-repeat: no-repeat;
	background-size: 495.5% 385.8%;
}

.portrait-one,
.portrait-five {
	background-position: 5% 26.6%;
}

.portrait-two,
.portrait-six {
	background-position: 34.7% 26.6%;
}

.portrait-three,
.portrait-seven {
	background-position: 64.5% 26.6%;
}

.portrait-four,
.portrait-eight {
	background-position: 94.2% 26.6%;
}

.portrait-five,
.portrait-six,
.portrait-seven,
.portrait-eight {
	background-position-y: 73.6%;
}

.partner-grid h3 {
	margin-bottom: 5px;
	font-size: 16px;
}

.partner-grid p {
	margin-bottom: 0;
	color: #777;
	font-size: 12px;
	line-height: 1.35;
}

.partner-grid .partner-role {
	margin-bottom: 5px;
	color: #8c837b;
	font-size: 11px;
}

.call-to-action {
	padding: 76px 8%;
	background:
		linear-gradient(rgba(4, 25, 61, 0.83), rgba(4, 25, 61, 0.86)),
		url("https://images.unsplash.com/photo-1437482078695-73f5ca6c96e2?auto=format&fit=crop&w=2200&q=85")
		center / cover;
	color: #fff;
	text-align: center;
}

.call-to-action h2 {
	max-width: 800px;
	margin: 0 auto 14px;
	font-size: clamp(30px, 3.2vw, 44px);
	line-height: 1.13;
	text-wrap: balance;
}

.call-to-action > p {
	max-width: 620px;
	margin: 0 auto 24px;
	color: #d4e3f2;
	font-size: 15px;
	line-height: 1.6;
}

.contact {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	gap: 8%;
	max-width: 1500px;
	margin: 0 auto;
	padding: 82px 5%;
}

.contact-copy h2 {
	margin-bottom: 14px;
	color: var(--blue);
	font-size: clamp(28px, 2.5vw, 36px);
}

.contact-copy > p:not(.eyebrow) {
	max-width: 510px;
	margin-bottom: 26px;
	color: #a0a3a6;
	font-size: 16px;
	line-height: 1.6;
}

.contact-details {
	display: grid;
	gap: 15px;
	margin: 0;
	padding: 0;
	color: var(--blue);
	font-size: 14px;
	font-weight: 700;
	list-style: none;
}

.contact-details li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.contact-details svg {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.contact-form {
	display: flex;
	flex-direction: column;
	padding: 30px 32px;
	border-radius: 16px;
	background: var(--blue);
}

.contact-form label {
	margin: 5px 0 9px;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 15px 18px;
	border: 0;
	border-radius: 9px;
	background: var(--cream);
	color: var(--text);
	font: inherit;
	font-size: 15px;
}

.contact-form input {
	min-height: 52px;
	margin-bottom: 10px;
}

.contact-form textarea {
	min-height: 140px;
	resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: #6e95ac;
	opacity: 1;
}

.contact-form .button {
	margin-top: 18px;
	border-radius: 8px;
	background: var(--navy);
	font-size: 16px;
}

.contact-form .button:hover {
	background: #030b28;
}

.link-ticker {
	overflow: hidden;
	pointer-events: none;
	padding: 8px 0;
	background: var(--navy);
	color: #fff;
}

.ticker-track {
	display: flex;
	width: max-content;
	animation: ticker-scroll 38s linear infinite;
}

.ticker-group {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 18px;
	padding: 0 18px;
	white-space: nowrap;
}

.ticker-sequence {
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.ticker-group[aria-hidden="true"] a {
	pointer-events: none;
}

@keyframes ticker-scroll {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

.link-ticker a {
	font-size: clamp(14px, 1vw, 16px);
	font-weight: 400;
}

.link-ticker span {
	color: var(--blue);
}

.what-we-do {
	min-height: 590px;
	padding: 58px 8% 80px;
	background: var(--cream);
}

.what-we-do h2 {
	margin-bottom: 58px;
	color: var(--blue);
	font-size: clamp(32px, 3.2vw, 44px);
	text-wrap: balance;
	text-align: center;
}

.what-we-do-boxes {
	display: grid;
	gap: 20px;
	width: 100%;
}

.what-box {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	align-items: center;
	gap: 28px;
	width: 100%;
	min-height: 132px;
	padding: 22px 8%;
	border-radius: 100px;
	background: #fff;
	color: var(--text);
	transition: width 240ms ease, margin-left 240ms ease, background-color 240ms ease, color 240ms ease, transform 240ms ease;
}

.what-box:hover {
	width: 100vw;
	margin-left: calc((100% - 100vw) / 2);
	transform: scaleY(1.04);
	background: var(--dark-blue);
	color: #fff;
}

.what-box:hover h3 {
	color: #fff;
}

.what-box h3 {
	margin: 0;
	color: var(--navy);
	font-size: clamp(22px, 2vw, 30px);
	font-weight: 700;
	line-height: 0.98;
	text-wrap: balance;
}

.what-box p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.site-footer {
	display: flex;
	justify-content: space-between;
	gap: 12%;
	padding: 82px 8%;
	background: var(--dark-blue);
	color: #fff;
}

.footer-about {
	max-width: 400px;
}

.footer-logo {
	color: #fff;
}

.footer-logo .logo-mark {
	background: var(--bright-blue);
}

.site-footer p {
	max-width: 340px;
	margin-top: 20px;
	color: #c3d3e6;
	font-size: 14px;
	line-height: 1.6;
}

.footer-links {
	display: flex;
	gap: clamp(45px, 8vw, 120px);
}

.footer-links div {
	display: flex;
	flex-direction: column;
	gap: 13px;
	min-width: 110px;
}

.footer-links strong {
	margin-bottom: 2px;
	font-size: 14px;
}

.footer-links a {
	color: #c3d3e6;
	font-size: 13px;
}

@media (max-width: 900px) {
	.site-header {
		gap: 24px;
		padding-right: 4%;
		padding-left: 4%;
	}

	.navigation {
		gap: 18px;
	}

	.partner-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.portrait {
		height: clamp(210px, 34vw, 330px);
	}

	.what-box { padding-right: 6%; padding-left: 6%; }
}

@media (max-width: 650px) {
	body {
		font-size: 14px;
	}

	.site-header {
		min-height: 64px;
		gap: 14px;
		padding: 10px 4%;
	}

	.logo {
		font-size: 18px;
	}

	.logo-mark {
		width: 11px;
		height: 11px;
	}

	.navigation {
		gap: 12px;
		margin-left: auto;
	}

	.navigation a {
		font-size: 11px;
	}

	.navigation a:nth-child(2),
	.navigation a:nth-child(4),
	.header-donate {
		display: none;
	}

	.hero {
		min-height: 580px;
		background-position: 58% center;
	}

	.hero-content {
		width: 86%;
		margin: 0 7%;
	}

	.hero h1 {
		font-size: clamp(38px, 11vw, 54px);
	}

	.hero-content > p:not(.eyebrow) {
		font-size: 15px;
	}

	.intro {
		padding: 54px 7%;
	}

	.intro h2 {
		font-size: 20px;
	}

	.values {
		gap: 18px 10px;
		margin-top: 38px;
	}

	.icon-frame {
		width: 52px;
		height: 52px;
		flex-basis: 52px;
	}

	.value-icon {
		transform: scale(0.765);
		transform-origin: top left;
	}

	.value-icon-water {
		left: calc(50% - 110px);
		top: calc(50% - 28px);
	}

	.value-icon-person {
		left: calc(50% - 72px);
		top: calc(50% - 36px);
	}

	.value-icon-chart {
		left: calc(50% - 56px);
		top: calc(50% - 37px);
	}

	.values p {
		font-size: 11px;
	}

	.donations {
		padding: 58px 6%;
	}

	.donation-grid {
		grid-template-columns: 1fr;
		gap: 14px;
		margin-top: 28px;
	}

	.donation-card {
		padding: 24px;
	}

	.donation-card h3 {
		font-size: 32px;
	}

	.donation-card > p:not(.per-month) {
		min-height: 0;
	}

	.partners {
		padding: 58px 6%;
	}

	.partner-heading {
		align-items: start;
		flex-direction: column;
		gap: 10px;
	}

	.partner-grid {
		gap: 24px 14px;
	}

	.partner-grid article {
		font-size: 12px;
	}

	.portrait {
		height: 42vw;
		margin-bottom: 9px;
	}

	.partner-grid h3 {
		font-size: 14px;
	}

	.call-to-action {
		padding: 68px 7%;
	}

	.call-to-action h2 {
		font-size: 32px;
	}

	.contact {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 58px 6%;
	}

	.contact-form {
		padding: 26px;
	}

	.link-ticker {
		padding: 16px 0;
	}

	.link-ticker a {
		font-size: 13px;
	}

	.ticker-group {
		gap: 8px;
		padding-right: 6px;
		padding-left: 6px;
	}

	.what-we-do {
		min-height: 0;
		padding: 48px 6% 70px;
	}

	.what-we-do h2 {
		margin-bottom: 34px;
	}

	.what-we-do-boxes {
		gap: 14px;
	}

	.what-box {
		grid-template-columns: 1fr;
		gap: 12px;
		min-height: 0;
		padding: 24px;
		border-radius: 24px;
	}

	.what-box h3 {
		font-size: 24px;
	}

	.what-box p {
		font-size: 13px;
	}

	.site-footer {
		flex-direction: column;
		gap: 38px;
		padding: 56px 7%;
	}

	.footer-links {
		gap: 42px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.ticker-track {
		animation: none;
	}

	.ticker-group[aria-hidden="true"],
	.ticker-sequence[aria-hidden="true"] {
		display: none;
	}

	* {
		transition-duration: 0.01ms !important;
	}
}
