/* AVP Portfolio — editorial homepage company carousel */
.avp-home-companies {
	--avp-home-ink: #202026;
	--avp-home-muted: #626269;
	--avp-home-rule: #d8d8da;
	--avp-home-accent: #ed174c;
	width: 100%;
	color: var(--avp-home-ink);
	font-family: inherit;
}

.avp-home-companies,
.avp-home-companies * {
	box-sizing: border-box;
}

.avp-home-companies-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 0 0 clamp(22px, 2.5vw, 40px);
}

.avp-home-companies-title {
	margin: 0;
	color: var(--avp-home-ink);
	font: inherit;
	font-size: clamp(28px, 2.2vw, 40px);
	font-weight: 400;
	line-height: 1.15;
}

.avp-home-companies-controls {
	display: flex;
	align-items: center;
	gap: clamp(14px, 1.6vw, 26px);
	flex: 0 0 auto;
}

.avp-home-companies-counter {
	color: var(--avp-home-muted);
	font-size: 15px;
	line-height: 1;
	white-space: nowrap;
}

.avp-home-companies .avp-home-companies-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--avp-home-ink) !important;
	font-family: inherit;
	font-size: 27px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	transition: opacity 160ms ease;
}

.avp-home-companies .avp-home-companies-nav:hover,
.avp-home-companies .avp-home-companies-nav:focus-visible {
	background: transparent !important;
	color: var(--avp-home-ink) !important;
	opacity: .58;
}

.avp-home-companies .avp-home-companies-nav:focus-visible {
	outline: 2px solid var(--avp-home-accent);
	outline-offset: 4px;
}

.avp-home-companies .avp-home-companies-nav:disabled {
	cursor: default;
	opacity: .3;
}

.avp-home-companies-slides {
	position: relative;
	width: 100%;
	height: 40vw;
	min-height: 0;
	overflow: hidden;
	isolation: isolate;
}

.avp-home-company-slide {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: minmax(0, 2.75fr) minmax(300px, 1fr);
	width: 100%;
	height: 40vw;
	min-height: 0;
	background: #fff;
	visibility: hidden;
	transform: translateX(100%);
	transition: transform 560ms cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
}

.avp-home-company-slide.is-active {
	position: relative;
	visibility: visible;
	transform: translateX(0);
	z-index: 2;
}

.avp-home-company-slide.is-entering-from-right,
.avp-home-company-slide.is-entering-from-left {
	visibility: visible;
	z-index: 3;
}

.avp-home-company-slide.is-entering-from-right { transform: translateX(100%); }
.avp-home-company-slide.is-entering-from-left { transform: translateX(-100%); }

.avp-home-company-slide.is-exiting-to-left,
.avp-home-company-slide.is-exiting-to-right {
	visibility: visible;
	z-index: 2;
}

.avp-home-company-slide.is-exiting-to-left { transform: translateX(-100%); }
.avp-home-company-slide.is-exiting-to-right { transform: translateX(100%); }

.avp-home-company-slide[hidden] {
	display: none !important;
}

.avp-home-company-media {
	position: relative;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	background: #eeeef0;
}

.avp-home-company-image {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	min-width: 100%;
	min-height: 100%;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	object-fit: cover !important;
	object-position: center center;
}

.avp-home-company-image-fallback {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	padding: 30px;
	color: var(--avp-home-muted);
	font-size: clamp(24px, 3vw, 42px);
	text-align: center;
}

.avp-home-company-panel {
	display: flex;
	min-width: 0;
	flex-direction: column;
	justify-content: space-between;
	padding: clamp(28px, 3vw, 48px);
	background: #fff;
}

.avp-home-company-intro {
	max-width: 34em;
}

.avp-home-company-name {
	min-width: 0;
	max-width: 100%;
	white-space: normal !important;
	overflow-wrap: anywhere;
	word-break: normal;
	hyphens: auto;
	margin: 0 0 12px;
	color: var(--avp-home-ink);
	font: inherit;
	font-size: clamp(28px, 2.55vw, 42px);
	font-weight: 400;
	line-height: 1.1;
}

.avp-home-company-one-liner {
	margin: 0;
	color: #3d3d45;
	font-size: clamp(16px, 1.35vw, 21px);
	font-weight: 400;
	line-height: 1.45;
}

.avp-home-company-news {
	margin-top: clamp(36px, 5vw, 76px);
	padding-top: 18px;
	border-top: 1px solid var(--avp-home-rule);
}

.avp-home-company-news-label {
	margin: 0 0 8px;
	color: var(--avp-home-accent);
	font-size: 14px;
	line-height: 1.3;
}

.avp-home-company-news-link {
	display: inline-block;
	color: var(--avp-home-ink);
	font-size: clamp(17px, 1.35vw, 21px);
	font-weight: 400;
	line-height: 1.35;
	text-decoration: none;
}

.avp-home-company-news-link:hover,
.avp-home-company-news-link:focus-visible {
	color: var(--avp-home-accent);
	text-decoration: none;
}

.avp-home-companies-empty {
	margin: 24px 0;
	color: var(--avp-home-muted);
	font-size: 15px;
}

@media (max-width: 900px) {
	.avp-home-company-slide {
		grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
	}
	.avp-home-company-panel {
		padding: 28px;
	}
}

@media (max-width: 680px) {
	.avp-home-companies-header {
		align-items: flex-end;
		margin-bottom: 20px;
	}
	.avp-home-companies-title {
		font-size: 28px;
	}
	.avp-home-companies-controls {
		gap: 10px;
	}
	.avp-home-companies-slides {
		height: auto;
		overflow: visible;
	}
	.avp-home-company-slide {
		position: relative;
		inset: auto;
		display: none;
		height: auto;
		flex-direction: column;
		visibility: visible;
		transform: none;
		transition: none;
		will-change: auto;
	}
	.avp-home-company-slide.is-active {
		display: flex;
		position: relative;
		transform: none;
	}
	.avp-home-company-media {
		width: 100%;
		height: clamp(240px, 67vw, 420px);
		flex: 0 0 auto;
	}
	.avp-home-company-panel {
		min-height: 240px;
		padding: 26px 24px;
	}
	.avp-home-company-name {
		font-size: 30px;
	}
	.avp-home-company-news {
		margin-top: 42px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.avp-home-company-slide {
		transition: none !important;
	}
	.avp-home-companies .avp-home-companies-nav {
		transition: none;
	}
}


/* 0.8.2: project-specific homepage typography refinements. */
.avp-home-company-news-link {
	font-size: clamp(15px, 1.35vw, 21px) !important;
}

.avp-home-company-one-liner {
	font-size: clamp(15px, 1.35vw, 21px) !important;
}
