/* Sustainability page. Mobile design 714 x 1276, desktop (lg+) 2000 x 1039. Everything in cqw / %. */

.sus-panel {
	position: relative;
	overflow: hidden;
	container-type: inline-size;
	aspect-ratio: 714 / 1276;
	background: #1c3a4f;
	color: #fff;
}
.sus-panel picture { display: contents; }
.sus-panel__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0;
}

.sus-title {
	position: absolute;
	left: 6.16%;
	top: 5.1%;
	margin: 0;
	font-size: 5.3cqw;
	line-height: 1.19;
	font-weight: 300;
	z-index: 2;
}
.sus-title strong { font-weight: 700; }

.sus-circles {
	position: absolute;
	left: 5.32%;
	top: 25.1%;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 19.9cqw);
	column-gap: 14.5cqw;
	row-gap: 12.3cqw;
	z-index: 2;
}
.sus-circles img {
	display: block;
	width: 100%;
	height: auto;
}

.sus-note {
	position: absolute;
	left: 6.3%;
	top: 80.1%;
	width: 87.5%;
	margin: 0;
	padding: 4.6cqw 4cqw 6.6cqw;
	font-size: 3.4cqw;
	line-height: 1.2;
	font-weight: 300;
	text-align: center;
	border-radius: 7cqw;
	background: rgba(126, 168, 36, 0.72);
	background: linear-gradient(180deg, rgba(126, 168, 36, 1) 0%, rgba(126, 168, 36, 0) 100%);
	z-index: 2;
}
.sus-note strong { font-weight: 700; }

@media (min-width: 992px) {
	.sus-panel { aspect-ratio: 2000 / 1039; }

	.sus-title {
		left: 3.85%;
		top: 10.1%;
		font-size: 2.7cqw;
	}

	.sus-circles {
		left: 55.05%;
		top: 15.01%;
		grid-template-columns: repeat(3, 8.5cqw);
		column-gap: 5.9cqw;
		row-gap: 4.95cqw;
	}

	.sus-note {
		left: 10.5%;
		top: 57.55%;
		width: 30cqw;
		padding: 1.55cqw 2cqw 5cqw;
		font-size: 1.1cqw;
		border-radius: 2.2cqw;
	}
}

/* ---------- Gallery: four building photos (carousel on mobile, 2 x 2 grid on lg+) ---------- */
.sus-gallery {
	position: relative;
	overflow: hidden;
	container-type: inline-size;
	aspect-ratio: 1010 / 786;
	background: #1c3a4f;
	color: #fff;
}
.sus-gallery .carousel,
.sus-gallery .carousel-inner,
.sus-gallery .carousel-item { height: 100%; }

.sus-gallery__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.sus-gallery__photo--start { object-position: 0 50%; }
.sus-gallery__photo--end { object-position: 100% 50%; }

.sus-gallery__title {
	position: absolute;
	left: 6.4%;
	top: 6.2%;
	margin: 0;
	font-size: 5.13cqw;
	line-height: 1.2;
	font-weight: 300;
	text-shadow: 0 0 1.5cqw rgba(14, 24, 47, .35);
	z-index: 3;
	pointer-events: none;
}
.sus-gallery__title strong { font-weight: 700; }

.sus-gallery__breeam {
	position: absolute;
	left: 65.9%;
	top: 20.2%;
	width: 21.4cqw;
	height: auto;
	z-index: 3;
	pointer-events: none;
}

.sus-ctl {
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	width: 14cqw;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
}
.sus-ctl--prev { left: 3cqw; justify-content: flex-start; }
.sus-ctl--next { right: 3cqw; justify-content: flex-end; }
.sus-ctl svg {
	width: 5.4cqw;
	height: auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: square;
	filter: drop-shadow(0 0 .6cqw rgba(0, 0, 0, .35));
}
.sus-ctl:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

@media (min-width: 992px) {
	.sus-gallery { aspect-ratio: 2000 / 1227; }
	.sus-gallery .carousel,
	.sus-gallery .carousel-inner,
	.sus-gallery .carousel-item { height: auto; }

	.sus-gallery .carousel-inner {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}
	.sus-gallery .carousel-item {
		display: block !important;
		float: none;
		margin: 0;
		transform: none !important;
		transition: none;
	}
	.sus-gallery__photo { height: auto; }
	.sus-ctl { display: none; }

	.sus-gallery__title {
		left: 4.35%;
		top: 6.4%;
		font-size: 2.6cqw;
		line-height: 1.19;
		text-shadow: 0 0 1cqw rgba(14, 24, 47, .3);
	}
	.sus-gallery__breeam {
		left: 40.95%;
		top: 34.8%;
		width: 18.45cqw;
	}
}

/* Animation order. Desktop: title, paragraph, then the circles (0.1s apart, starting at 0.4s).
   Below lg the paragraph sits under the circles, so there everything just staggers from 0. */
@media (min-width: 992px) {
	.sus-circles li:nth-child(1) { --anim-delay: 400ms; }
	.sus-circles li:nth-child(2) { --anim-delay: 500ms; }
	.sus-circles li:nth-child(3) { --anim-delay: 600ms; }
	.sus-circles li:nth-child(4) { --anim-delay: 700ms; }
	.sus-circles li:nth-child(5) { --anim-delay: 800ms; }
	.sus-circles li:nth-child(6) { --anim-delay: 900ms; }
	.sus-circles li:nth-child(7) { --anim-delay: 1000ms; }
	.sus-circles li:nth-child(8) { --anim-delay: 1100ms; }
	.sus-circles li:nth-child(9) { --anim-delay: 1200ms; }
}
@media (max-width: 991.98px) {
	.sus-note.anim-fade-up { --anim-delay: 0ms; }
}
