@font-face {
	font-family: "Upascend Bebas";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/BebasNeue-Regular.ttf") format("truetype");
}

@font-face {
	font-family: "Upascend Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/Inter-VariableFont.ttf") format("truetype");
}

.uphb,
.uphb *,
.uphb *::before,
.uphb *::after {
	box-sizing: border-box;
}

.uphb {
	--uphb-accent: #df202c;
	--uphb-background: #faf9f6;
	--uphb-ink: #333;
	--uphb-navy: #0b276b;
	background: var(--uphb-background);
	border-top: 14px solid var(--uphb-navy);
	color: var(--uphb-navy);
	font-family: "Upascend Inter", Arial, Helvetica, sans-serif;
	overflow: hidden;
	padding: 38px clamp(32px, 4.64vw, 69px) 63px;
	width: 100%;
}

.uphb__inner {
	margin: 0 auto;
	max-width: 1349px;
}

.uphb__header {
	align-items: start;
	display: grid;
	gap: 88px;
	grid-template-columns: minmax(0, 1.25fr) minmax(420px, 1fr);
}

.uphb__eyebrow {
	color: var(--uphb-accent);
	font-size: 15px;
	font-weight: 760;
	letter-spacing: 0.17em;
	line-height: 1.3;
	margin: 0;
	text-transform: uppercase;
}

.uphb__title {
	color: var(--uphb-navy);
	font-family: "Upascend Bebas", "Arial Narrow", Arial, sans-serif;
	font-size: 92px;
	font-weight: 400;
	letter-spacing: 0.002em;
	line-height: 0.91;
	margin: 18px 0 0;
	text-transform: uppercase;
	transform: scale(0.94, 1.03);
	transform-origin: left top;
}

.uphb__title span {
	display: block;
	white-space: nowrap;
}

.uphb__title span:nth-child(2) {
	transform: scaleX(0.95);
	transform-origin: left top;
}

.uphb__summary {
	padding-top: 35px;
}

.uphb__intro {
	color: var(--uphb-ink);
	font-size: 18px;
	font-weight: 440;
	line-height: 1.62;
	margin: 0;
	max-width: 525px;
}

.uphb__cta {
	align-items: center;
	border: 1px solid var(--uphb-navy);
	color: var(--uphb-navy);
	display: inline-flex;
	font-family: "Upascend Bebas", "Arial Narrow", Arial, sans-serif;
	font-size: 23px;
	font-weight: 400;
	gap: 24px;
	justify-content: space-between;
	letter-spacing: 0.025em;
	line-height: 1;
	margin-top: 27px;
	min-height: 63px;
	min-width: 277px;
	padding: 0 24px 0 26px;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease;
}

.uphb__cta i,
.uphb-card__arrow {
	color: var(--uphb-accent);
	font-size: 28px;
	line-height: 1;
	transition: color 180ms ease, transform 180ms ease;
}

.uphb__grid {
	display: grid;
	gap: 35px 30px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 37px;
}

.uphb-card {
	color: var(--uphb-navy);
	display: flex;
	flex-direction: column;
	min-width: 0;
	text-decoration: none;
}

.uphb-card__media {
	aspect-ratio: 1.224 / 1;
	display: block;
	overflow: hidden;
	position: relative;
}

.uphb-card__image {
	display: block;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: filter 260ms ease, transform 260ms ease;
	width: 100%;
}

.uphb-card__copy {
	border-bottom: 1px solid var(--uphb-accent);
	display: block;
	min-height: 73px;
	padding-top: 10px;
}

.uphb-card__meta {
	align-items: baseline;
	display: flex;
	gap: 14px;
	min-width: 0;
}

.uphb-card__number {
	color: var(--uphb-accent);
	font-family: "Upascend Bebas", "Arial Narrow", Arial, sans-serif;
	font-size: 19px;
	font-weight: 400;
	line-height: 1;
}

.uphb-card__category {
	color: #5b5b5b;
	font-size: 12px;
	font-weight: 650;
	letter-spacing: 0.11em;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.uphb-card__title-row {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	min-height: 42px;
	padding: 4px 8px 7px 0;
}

.uphb-card__name {
	color: var(--uphb-navy);
	display: -webkit-box;
	font-family: "Upascend Bebas", "Arial Narrow", Arial, sans-serif;
	font-size: 27px;
	font-weight: 400;
	letter-spacing: 0.003em;
	line-height: 1;
	min-width: 0;
	overflow: hidden;
	text-transform: uppercase;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.uphb-card__arrow {
	flex: 0 0 auto;
	font-size: 27px;
}

.uphb__cta:hover,
.uphb__cta:focus {
	background: var(--uphb-navy);
	color: #fff;
	text-decoration: none;
}

.uphb__cta:hover i,
.uphb-card:hover .uphb-card__arrow {
	transform: translateX(4px);
}

.uphb-card:hover .uphb-card__image {
	filter: saturate(1.04) contrast(1.02);
	transform: scale(1.025);
}

.uphb__cta:focus-visible,
.uphb-card:focus-visible {
	outline: 3px solid var(--uphb-navy);
	outline-offset: 4px;
}

.uphb__notice {
	background: #faf9f6;
	border: 1px solid #df202c;
	color: #0b276b;
	font-family: "Upascend Inter", Arial, Helvetica, sans-serif;
	padding: 18px;
}

@media (min-width: 1161px) {
	.uphb-card:nth-child(n + 5) .uphb-card__media {
		aspect-ratio: 1.206 / 1;
	}
}

@media (max-width: 1160px) {
	.uphb {
		padding-inline: 38px;
	}

	.uphb__header {
		gap: 54px;
		grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
	}

	.uphb__title {
		font-size: 76px;
	}

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

@media (max-width: 920px) {
	.uphb__header {
		display: block;
	}

	.uphb__title {
		font-size: clamp(60px, 9.5vw, 76px);
	}

	.uphb__summary {
		padding-top: 30px;
	}
}

@media (max-width: 767px) {
	.uphb {
		border-top-width: 8px;
		padding: 27px 14px 38px;
	}

	.uphb__header {
		display: block;
	}

	.uphb__eyebrow {
		font-size: 11px;
		letter-spacing: 0.13em;
	}

	.uphb__title {
		font-size: clamp(42px, 13vw, 66px);
		line-height: 0.92;
		margin-top: 13px;
	}

	.uphb__summary {
		padding-top: 19px;
	}

	.uphb__intro {
		font-size: 14px;
		line-height: 1.52;
		max-width: 520px;
	}

	.uphb__cta {
		font-size: 19px;
		margin-top: 17px;
		min-height: 49px;
		min-width: 224px;
		padding-inline: 18px;
	}

	.uphb__cta i {
		font-size: 23px;
	}

	.uphb__grid {
		gap: 24px 10px;
		margin-top: 28px;
	}

	.uphb-card__media,
	.uphb-card:nth-child(n + 5) .uphb-card__media {
		aspect-ratio: 1 / 1;
	}

	.uphb-card__copy {
		min-height: 70px;
		padding-top: 8px;
	}

	.uphb-card__meta {
		gap: 7px;
	}

	.uphb-card__number {
		font-size: 16px;
	}

	.uphb-card__category {
		font-size: 9px;
		letter-spacing: 0.045em;
	}

	.uphb-card__title-row {
		gap: 6px;
		min-height: 42px;
		padding: 3px 2px 7px 0;
	}

	.uphb-card__name {
		font-size: clamp(17px, 5vw, 23px);
		line-height: 1.02;
	}

	.uphb-card__arrow {
		font-size: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.uphb__cta,
	.uphb__cta i,
	.uphb-card__arrow,
	.uphb-card__image {
		transition: none;
	}
}
