/*
 * Home - Sustainability.
 *
 * Read from cp-all-designer/index.html:272-327 and css/app.css:200, 272-281,
 * 1424-1540, 3044-3045.
 *
 * Drawn at 1440 (app.css:113): a fixed measure carries across unchanged.
 * Colour, type, padding, the sizes, the gaps and the corners arrive from the
 * Style tab and are not repeated here.
 *
 * Left behind:
 * - `.esg__video.is-playing` (app.css:1473) — it sets the same corner the rule
 *   at 1465 already set, so it changes nothing.
 * - `.on-dark .link-arrow` (app.css:318) — this section draws no such link.
 * - Of `.esg__head .lead` (app.css:1447) only the colour and the centring
 *   survive: `.esg__top .esg__head .lead` at 1457 overrides its size, its
 *   measure and its top margin, and 1514 its line height. The losing half is
 *   not carried.
 */

.custom-home-sustainability {
	position: relative;
	display: block;
	overflow: hidden;
	box-sizing: border-box;
	color: #FFFFFF;
	background: linear-gradient(160deg, var(--band-from, #1E4EA5) 0%, var(--band-to, #16418C) 100%);
}

/* ---- the headline's muted copy — app.css:264-265, the dark-section grey ---- */
.custom-home-sustainability {
	--custom-sweep-ghost: #566187;
}

/* ---- the brand outline, twice — app.css:1422-1427 ----
   Printed into the page as an <svg>, the way the design prints it, so the
   stroke takes the colour the section gives it. */
.custom-home-sustainability__outline {
	position: absolute;
	z-index: 0;
	display: block;
	height: auto;
	pointer-events: none;
}

.custom-home-sustainability__outline-a {
	top: -72px;
	left: -62px;
	width: 188px;                          /* clamp(130, 13*14.4, 195) = 187.2 → even */
}

.custom-home-sustainability__outline-b {
	bottom: -170px;
	right: -80px;
	width: 360px;                          /* clamp(230, 25*14.4, 360) */
	transform: rotate(180deg);
}

.custom-home-sustainability__inner {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	margin: 0 auto;
	max-width: 1920px;                     /* the content cap, every band */
}

/* ------------------------------------------------------------------ */
/* Copy beside the film                                                */
/* ------------------------------------------------------------------ */

/* app.css:1439-1443 — the film leads on the left, the copy answers. */
.custom-home-sustainability__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
}

.custom-home-sustainability__head {
	min-width: 0;
	margin-inline: auto;
	text-align: center;
}

.custom-home-sustainability__film {
	order: -1;                             /* app.css:1443 */
	position: relative;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	background: #000000;
	box-shadow: 0 34px 80px -20px rgba(22, 65, 140, 0.3);   /* --sh-lg, app.css:147 */
}

.custom-home-sustainability__eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0 0 22px;
	font-size: 12px;
	font-weight: 600;
	/* app.css:190 measures 1.15px; every px value here is even. */
	letter-spacing: 2px;
	text-transform: uppercase;
}

.custom-home-sustainability__title {
	margin: 0;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
}

.custom-home-sustainability__title em {
	position: relative;
	display: inline-block;
	font-style: normal;                    /* app.css:255-260: upright, a step larger than its line */
	font-weight: 700;
	font-size: 108%;  
}

.custom-home-sustainability__title em::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 4px;
	height: 6px;
	border-radius: 4px;                    /* app.css:238 measures 3px */
	background: currentColor;
	opacity: 0.18;
}

.custom-home-sustainability__description {
	margin: 16px auto 0;                   /* app.css:1457 min(16, 1.8*9) */
	line-height: 1.6;
	max-width: none;
}

/* ---- the film slot — app.css:1465-1483 ---- */
.custom-home-sustainability__film-picture {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	max-height: inherit;
}

.custom-home-sustainability__film-picture > img,
.custom-home-sustainability__film-picture > video,
.custom-home-sustainability__film iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.custom-home-sustainability__play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 12px 26px 12px 14px;
	border: 0;
	border-radius: 1000px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
	--custom-press-edge: transparent;
	--custom-press-shadow: 0 14px 40px rgba(0, 0, 0, 0.34);
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.34);
}

.custom-home-sustainability__play:hover {
	transform: translate(-50%, -50%) scale(1.06);   /* app.css:1481 */
}

.custom-home-sustainability__play-mark {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	color: #FFFFFF;
	font-style: normal;
}

.custom-home-sustainability__film.is-playing .custom-home-sustainability__play {
	display: none;                         /* app.css:1483 */
}

/* ------------------------------------------------------------------ */
/* The three figures                                                   */
/* ------------------------------------------------------------------ */

/* app.css:1486 — the boxes fit themselves, so adding or removing one needs
   no change here. */
.custom-home-sustainability__pills {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.custom-home-sustainability__pill {
	position: relative;
	box-sizing: border-box;
	min-width: 0;
	border-width: 2px;                     /* app.css:1493 measures 1px */
	border-style: solid;
	-webkit-backdrop-filter: blur(10px);
	        backdrop-filter: blur(10px);
	transition: background-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            border-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-home-sustainability__pill:hover {
	background-color: rgba(255, 255, 255, 0.12);   /* app.css:1496 */
	border-color: rgba(255, 255, 255, 0.32);
	transform: translateY(-4px);
}

.custom-home-sustainability__pill-name {
	margin: 0 0 10px;
	font-weight: 300;
	line-height: 1.4;
	color: #FFFFFF;
}

.custom-home-sustainability__pill-accent {
	font-weight: 700;                      /* app.css:1498 */
}

.custom-home-sustainability__pill-value {
	font-weight: 700;
	line-height: 1;
	color: #FFFFFF;
}

.custom-home-sustainability__pill-unit {
	font-size: 18px;                       /* app.css:1504 .42em of 44px = 18.48 → nearest even */
	font-weight: 500;
	margin-left: 4px;
	letter-spacing: 0;
	line-height: 1.5;
}

.custom-home-sustainability__pill-label {
	margin-top: 8px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.9);
}

.custom-home-sustainability__pill-description {
	margin: 12px 0 0;
	padding-top: 12px;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.7);
	border-top-width: 2px;                 /* app.css:1506 measures 1px */
	border-top-style: solid;
	border-top-color: rgba(255, 255, 255, 0.16);
}

/* ------------------------------------------------------------------ */
/* Tablet — 768px to 1024px                                            */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.custom-home-sustainability__top {
		grid-template-columns: 1fr;        /* app.css:1511 */
	}
	.custom-home-sustainability__film {
		order: 0;                          /* app.css:1512 — stacked, the headline first */
	}
	.custom-home-sustainability__film-picture {
		aspect-ratio: 16 / 9;              /* app.css:1513 */
	}
	.custom-home-sustainability__description {
		margin-top: 14px;                  /* app.css:1514 */
	}
	.custom-home-sustainability__pills {
		grid-template-columns: repeat(3, minmax(0, 1fr));   /* app.css:1519 */
	}
	.custom-home-sustainability__pill-name {
		margin-bottom: 6px;                /* app.css:1521 */
	}
	.custom-home-sustainability__pill-label {
		margin-top: 4px;                   /* app.css:1522 */
	}
	.custom-home-sustainability__pill-description {
		display: none;                     /* app.css:1523 */
	}
	/* app.css:903 — the author's own line breaks close up below the wide tier. */
	.custom-home-sustainability__description br {
		display: none;
	}
}

/* ------------------------------------------------------------------ */
/* Mobile — up to 767px                                                */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	.custom-home-sustainability__outline-a {
		width: 130px;                      /* clamp floor, app.css:1431 */
	}
	.custom-home-sustainability__outline-b {
		width: 230px;                      /* clamp floor, app.css:1432 */
	}
	.custom-home-sustainability__pills {
		grid-template-columns: 1fr;        /* app.css:1531 */
	}
	.custom-home-sustainability__pill-unit {
		font-size: 18px;                   /* app.css:1539 .55em of 32px = 17.6 → even */
	}
	.custom-home-sustainability__pill-label {
		line-height: 1.4;                  /* app.css:1540 */
	}
	.custom-home-sustainability__title em::after {
		bottom: 2px;
		height: 4px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.custom-home-sustainability__pill,
	.custom-home-sustainability__play {
		transition: none;
	}
	.custom-home-sustainability__pill:hover {
		transform: none;
	}
	.custom-home-sustainability__play:hover {
		transform: translate(-50%, -50%);
	}
}

/* ------------------------------------------------------------------ */
/* One band, one screen — desktop only                                 */
/* ------------------------------------------------------------------ */

/* app.css:336-338 (.sec) gives this band the window's height, and app.css:2830 hands it back
   at 1024 and below, where the content sets the height as it does everywhere
   else. min-height, so a band that outgrows the window takes the room it needs
   and the page scrolls rather than cutting anything off. */
@media (min-width: 1025px) {
	.custom-home-sustainability {
		min-height: 100vh;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	/* A flex item with auto side margins shrinks to its own content, so the
	   content box is told its width again: the whole band, up to the cap. */
	.custom-home-sustainability > .custom-home-sustainability__inner {
		width: 100%;
	}
}
