/* =========================================================
   PACIFIC SALMON SLAM HERO
   ========================================================= */

.slamhero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 70vh;

	overflow: hidden;
	isolation: isolate;

	clip-path: polygon(
		50% 50%,
		50% 50%,
		50% 50%,
		50% 50%
	);

	animation:
		slamhero-reveal
		1.25s
		cubic-bezier(0.29, 0.8, 0.8, 0.98)
		forwards;

	will-change: clip-path;
}


/* =========================================================
   BACKGROUND IMAGE
   Does not control the hero height
   ========================================================= */

.slamhero__background {
	position: absolute;
	inset: 0;
	z-index: 1;

	overflow: hidden;
	opacity: 0;

	animation:
		slamhero-background-fade
		0.75s
		linear
		forwards;
}


/* Dark overlay */

.slamhero__background::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;

	pointer-events: none;

	background:
		linear-gradient(
			90deg,
			rgba(13, 35, 31, 0.68) 0%,
			rgba(13, 35, 31, 0.38) 55%,
			rgba(13, 35, 31, 0.2) 100%
		);
}


.slamhero__background img {
	display: block;
	width: 100%;
	height: 100%;

	object-fit: cover;
	object-position: center;

	transform: scale(1.25);

	animation:
		slamhero-background-scale
		4s 0.25s
		cubic-bezier(0, 0.71, 0.4, 0.97)
		forwards;

	will-change: transform;
}


/* =========================================================
   CONTENT
   Content can increase the hero height
   ========================================================= */

.slamhero__content {
	position: relative;
	z-index: 10;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	width: min(1100px, calc(100% - 40px));
	margin-inline: auto;
	padding: 80px 20px;

	color: #fff;
	text-align: center;

	opacity: 0;
	transform: translateY(18px);

	animation:
		slamhero-content-fade
		0.75s 1.25s
		linear
		forwards;
}


.slamhero__salmon {
	display: block;
	width: min(520px, 70vw);
	height: auto;
	margin-bottom: 20px;
}


.slamhero__content h1 {
	max-width: 900px;
	margin: 0;

	color: inherit;
	font-size: clamp(2.4rem, 5vw, 5rem);
	line-height: 0.95;
}


.slamhero__content p {
	max-width: 760px;
	margin: 24px 0 0;

	color: inherit;
	font-size: clamp(1rem, 1.5vw, 1.25rem);
	line-height: 1.6;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes slamhero-reveal {

	from {
		clip-path: polygon(
			50% 50%,
			50% 50%,
			50% 50%,
			50% 50%
		);
	}

	to {
		clip-path: polygon(
			0 0,
			100% 0,
			100% 100%,
			0 100%
		);
	}

}


@keyframes slamhero-background-fade {

	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}

}


@keyframes slamhero-background-scale {

	from {
		transform: scale(1.25);
	}

	to {
		transform: scale(1.05);
	}

}


@keyframes slamhero-content-fade {

	from {
		opacity: 0;
		transform: translateY(18px);
	}

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

}


/* =========================================================
   TABLET
   ========================================================= */

@media only screen and (max-width: 1024px) {

	.slamhero__content {
		width: min(900px, calc(100% - 40px));
		padding: 70px 20px;
	}

	.slamhero__salmon {
		width: min(460px, 75vw);
	}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media only screen and (max-width: 689px) {

	.slamhero {
		min-height: 80svh;
	}

	.slamhero__content {
		width: calc(100% - 30px);
		padding: 60px 15px;
	}

	.slamhero__salmon {
		width: min(380px, 88vw);
		margin-bottom: 16px;
	}

	.slamhero__content h1 {
		font-size: clamp(2rem, 10vw, 3.25rem);
		line-height: 1;
	}

	.slamhero__content p {
		margin-top: 18px;
		font-size: 1rem;
		line-height: 1.55;
	}

	.slamhero__background::after {
		background:
			linear-gradient(
				180deg,
				rgba(13, 35, 31, 0.25) 0%,
				rgba(13, 35, 31, 0.68) 100%
			);
	}

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

	.slamhero,
	.slamhero__background,
	.slamhero__background img,
	.slamhero__content {
		animation: none !important;
	}

	.slamhero {
		clip-path: none;
	}

	.slamhero__background,
	.slamhero__content {
		opacity: 1;
		transform: none;
	}

	.slamhero__background img {
		transform: none;
	}

}



.slamhero__salmon{
	display:block;
	width:min(520px,70vw);
	height:auto;
	margin-bottom:20px;

	will-change:transform;
	transform-style:preserve-3d;

	filter:drop-shadow(0 20px 24px rgba(0,0,0,.24));
}


@media (hover: none), (prefers-reduced-motion: reduce) {
	.slamhero__salmon {
		transform: none !important;
		transition: none;
	}
}