/* Homepage product composition. Loaded after style.css on the three home routes. */
.ipd-home .ipd-hero {
	background: radial-gradient(ellipse at 78% 42%, #2e4850 0, transparent 42%), linear-gradient(128deg, #3b222b 0%, #202b33 58%, #17242a 100%);
}

.ipd-home .ipd-hero::before {
	background: linear-gradient(125deg, rgb(191 30 46 / 12%) 0 18%, transparent 18% 100%);
}

.ipd-home .ipd-hero-grid {
	grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
	min-height: 670px;
	gap: clamp(34px, 4vw, 74px);
	padding-block: clamp(80px, 7vw, 112px);
}

.ipd-home .ipd-hero-copy h1 {
	max-width: 14ch;
	font-size: clamp(43px, 4.4vw, 71px);
	line-height: 1.08;
	letter-spacing: -.05em;
}

.ipd-home .ipd-hero-copy .ipd-lead {
	max-width: 52ch;
	font-size: clamp(17px, 1.4vw, 19px);
	line-height: 1.68;
}

.ipd-home .ipd-hero-copy::before {
	width: 60px;
	margin-block-end: 36px;
}

.ipd-home .ipd-hero-art {
	max-width: none;
	width: 100%;
	perspective: none;
}

.ipd-home .ipd-hero-art picture {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	animation: none;
	transform: none;
}

.ipd-home-stage {
	position: relative;
	width: 100%;
	min-height: 500px;
	isolation: isolate;
}

.ipd-home-stage__grid {
	position: absolute;
	z-index: -1;
	inset: 0;
	background-image: linear-gradient(rgb(255 255 255 / 7%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 7%) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(ellipse, #000 20%, transparent 72%);
}

.ipd-home-stage__charter,
.ipd-home-stage__esimla {
	position: absolute;
	margin: 0;
	box-shadow: 0 32px 65px rgb(0 0 0 / 30%);
}

.ipd-home-stage__charter {
	z-index: 1;
	inset-block-start: 7%;
	inset-inline-start: 0;
	width: 88%;
	padding: 7px;
	border: 1px solid rgb(255 255 255 / 28%);
	border-radius: 13px;
	background: #f4f6f7;
	transform: rotate(-1.8deg);
}

.ipd-home-stage__charter picture,
.ipd-home-stage__charter img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1760 / 988;
}

.ipd-home-stage__charter img {
	object-fit: contain;
	border-radius: 4px;
}

.ipd-home-stage__charter figcaption {
	padding: 10px 12px 6px;
	color: #52616d;
	font-size: 13px;
	line-height: 1.4;
}

.ipd-home-stage__esimla {
	z-index: 2;
	inset-block-start: 25%;
	inset-inline-end: 0;
	width: 27%;
	padding: 5px;
	border: 1px solid rgb(255 255 255 / 32%);
	border-radius: 14px;
	background: #f4f5f5;
	transform: rotate(3deg);
}

.ipd-home-stage__esimla img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 600 / 1304;
	object-fit: contain;
	border-radius: 7px;
}

.ipd-home-stage__esimla figcaption {
	padding: 6px 5px 3px;
	color: #44505c;
	font-size: 13px;
	line-height: 1.35;
	text-align: center;
}

.ipd-home .ipd-section--products {
	background: #f0f2f0;
}

.ipd-home-product-list {
	display: grid;
	gap: 18px;
}

.ipd-home-product {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
	min-height: 405px;
	background: #fff;
	color: #1a2329;
}

.ipd-home-product:nth-child(even) {
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

.ipd-home-product:nth-child(even) .ipd-home-product__media {
	order: -1;
}

.ipd-home-product__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-width: 0;
	padding: clamp(34px, 4vw, 66px);
}

.ipd-home-product__type {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 26px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.ipd-home-product__type span {
	font-variant-numeric: tabular-nums;
	opacity: .68;
}

.ipd-home-product__copy h3 {
	max-width: 19ch;
	margin: 0;
	font-size: clamp(29px, 2.7vw, 43px);
	line-height: 1.13;
	letter-spacing: -.04em;
}

.ipd-home-product__copy > p:not(.ipd-home-product__type) {
	max-width: 48ch;
	margin-block: 18px 0;
	color: inherit;
	font-size: 17px;
	line-height: 1.65;
	opacity: .8;
}

.ipd-home-product__link {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	min-height: 44px;
	margin-block-start: 28px;
	padding-block: 6px;
	border-block-end: 2px solid currentColor;
	color: inherit;
	font-size: 15px;
	font-weight: 750;
	text-decoration: none;
	transition: gap 180ms ease;
}

.ipd-home-product__link:hover,
.ipd-home-product__link:focus-visible {
	gap: 26px;
}

.ipd-home-product__link:focus-visible {
	outline: 2px solid var(--ipd-focus);
	outline-offset: 4px;
}

.ipd-home-product__media {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 405px;
	margin: 0;
	padding: 30px;
	background: #d8e7e5;
}

.ipd-home-product__media picture {
	display: block;
	width: 100%;
}

.ipd-home-product__media img {
	display: block;
	max-width: 100%;
	max-height: 380px;
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: 0 18px 38px rgb(11 30 35 / 17%);
}

.ipd-home-product__media picture img {
	width: 100%;
	margin-inline: auto;
}

.ipd-home-product__media figcaption {
	max-width: 60ch;
	margin-block-start: 15px;
	font-size: 12px;
	line-height: 1.45;
	text-align: center;
}

.ipd-home-product--charter {
	background: #16343c;
	color: #fff;
}

.ipd-home-product--charter .ipd-home-product__media {
	background: linear-gradient(145deg, #0e7978, #0d535d);
}

.ipd-home-product--charter .ipd-home-product__media figcaption {
	color: #ecffff;
}

.ipd-home-product--charter .ipd-home-product__type {
	color: #d9eeee;
}

.ipd-home-product--esimla {
	background: #f6e8e7;
}

.ipd-home-product--esimla .ipd-home-product__media {
	background: #d65172;
}

.ipd-home-product--esimla .ipd-home-product__media img {
	max-height: 440px;
}

.ipd-home-product--esimla .ipd-home-product__media figcaption {
	color: #fff;
}

.ipd-home-product--myesimstore {
	background: #f6f2e9;
}

.ipd-home-product--myesimstore .ipd-home-product__media {
	background: #d3e1db;
}

@media (min-width: 1024px) and (hover: hover) {
	.ipd-home-stage__charter:hover,
	.ipd-home-stage__esimla:hover {
		animation: none;
		transform: translate3d(0, -6px, 0) rotate(0);
		transition: transform 220ms ease;
	}
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.ipd-home-product__media img {
		transition: transform 360ms cubic-bezier(.2,.7,.2,1);
	}

	.ipd-home-product:hover .ipd-home-product__media img {
		transform: translate3d(0, -5px, 0);
	}
}

@media (max-width: 1023px) {
	.ipd-home .ipd-hero-grid {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
		gap: 24px;
	}

	.ipd-home .ipd-hero-copy h1 {
		max-width: 20ch;
	}

	.ipd-home .ipd-hero-art {
		max-width: 760px;
		margin-inline: auto;
	}

	.ipd-home-stage {
		min-height: 600px;
	}
}

@media (max-width: 767px) {
	.ipd-home .ipd-hero-grid {
		padding-block: 62px 24px;
	}

	.ipd-home .ipd-hero-copy h1 {
		max-width: 15ch;
		font-size: clamp(37px, 10vw, 56px);
	}

	.ipd-home .ipd-hero-copy .ipd-lead {
		font-size: 17px;
	}

	.ipd-home-stage {
		min-height: clamp(420px, 100vw, 610px);
	}

	.ipd-home-stage__charter {
		width: 88%;
		inset-block-start: 6%;
	}

	.ipd-home-stage__esimla {
		width: min(37%, 170px);
		inset-block-start: 16%;
	}

	.ipd-home-stage__charter figcaption,
	.ipd-home-stage__esimla figcaption {
		font-size: 13px;
	}

	.ipd-home-product,
	.ipd-home-product:nth-child(even) {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.ipd-home-product:nth-child(even) .ipd-home-product__media {
		order: initial;
	}

	.ipd-home-product__copy {
		padding: 30px 26px 34px;
	}

	.ipd-home-product__media {
		min-height: 250px;
		padding: 25px 20px;
	}

	.ipd-home-product--esimla .ipd-home-product__media img {
		max-height: 390px;
	}
}

@media (max-width: 390px) {
	.ipd-home-stage {
		min-height: 420px;
	}

	.ipd-home-stage__charter {
		width: 89%;
	}

	.ipd-home-stage__esimla {
		width: 37%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ipd-home .ipd-hero-copy h1,
	.ipd-home .ipd-hero-copy .ipd-lead,
	.ipd-home .ipd-hero-copy .ipd-actions {
		animation: none;
	}

	.ipd-home-product__link {
		transition: none;
	}
}
