/* Specification page. Desktop (lg+) is proportional to the 2000 x 1118 design, in cqw / %. */

.spec-panel {
	position: relative;
	overflow: hidden;
	background-color: #004f2f; /* matches the sRGB background images */
	color: #fff;
	padding-block: 1.75rem 66vw;
}
.spec-panel__bgwrap { display: block; }
.spec-panel__bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: auto;
	z-index: 0;
}
.spec-panel__content { position: relative; z-index: 2; }

.spec-title {
	margin: 0;
	font-size: 1.45rem;
	line-height: 1.2;
	font-weight: 300;
}
.spec-title strong { font-weight: 700; }

.spec-lead {
	margin: 1.25rem 0 0;
	max-width: 30rem;
	font-size: .95rem;
	line-height: 1.4;
	font-weight: 300;
}
.spec-lead strong { font-weight: 700; }

.spec-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	row-gap: 2rem;
	margin: 2.5rem 0 0;
	padding: 0;
}
.spec-item { text-align: center; }
.spec-item__icon {
	display: block;
	width: 5.5rem;
	height: auto;
	margin: 0 auto .75rem;
}
.spec-item__label {
	display: block;
	font-size: .8rem;
	line-height: 1.2;
	font-weight: 500;
	letter-spacing: .02em;
	text-transform: uppercase;
}

/* Mobile order: power, 24/7 / height, PV / BREEAM, EPC / EV, yards / floor loading, doors. */
.spec-item:nth-child(1)  { order: 1; }
.spec-item:nth-child(2)  { order: 2; }
.spec-item:nth-child(6)  { order: 3; }
.spec-item:nth-child(7)  { order: 4; }
.spec-item:nth-child(3)  { order: 5; }
.spec-item:nth-child(4)  { order: 6; }
.spec-item:nth-child(8)  { order: 7; }
.spec-item:nth-child(9)  { order: 8; }
.spec-item:nth-child(5)  { order: 9; }
.spec-item:nth-child(10) { order: 10; }

.spec-photo {
	position: absolute;
	height: auto;
	z-index: 1;
}
.spec-photo--interior {
	left: -8vw;
	bottom: 16.6vw;
	width: 37.4vw;
}
.spec-photo--warehouse {
	left: 48.5vw;
	bottom: -.5vw;
	width: 55vw;
}

@media (min-width: 992px) {
	.spec-panel {
		container-type: inline-size;
		aspect-ratio: 2560 / 1433;
		padding: 0;
	}
	.spec-panel__bg {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
	.spec-panel__content {
		position: static;
		padding: 0 !important;
		max-width: none;
	}

	.spec-title {
		position: absolute;
		left: 4.05%;
		top: 9.6%;
		font-size: 2.6cqw;
		line-height: 1.19;
		z-index: 2;
	}
	.spec-lead {
		position: absolute;
		left: 4.05%;
		top: 27.3%;
		width: 22.4cqw;
		max-width: none;
		margin: 0;
		font-size: 1.12cqw;
		line-height: 1.16;
		z-index: 2;
	}

	.spec-grid {
		position: absolute;
		left: 42.8%;
		top: 18.07%;
		width: 52.75%;
		margin: 0;
		grid-template-columns: repeat(5, 1fr);
		grid-auto-rows: 14.05cqw;
		row-gap: 0;
		z-index: 2;
	}
	.spec-item:nth-child(n) { order: 0; }
	.spec-item__icon { width: 6.3cqw; margin-bottom: .85cqw; }
	.spec-item__label { font-size: .88cqw; line-height: 1.17; }

	.spec-photo--exterior  { left: 0; bottom: 0; width: 25.3cqw; }
	.spec-photo--interior  { left: 23%; top: 38.2%; bottom: auto; width: 15.1cqw; }
	.spec-photo--warehouse { left: 34.75%; top: 65.2%; bottom: auto; width: 17.25cqw; }
	.spec-photo--bauder    { left: 57.85%; top: 76.2%; width: 9.15cqw; }
}

/* Below lg the grid is re-ordered into two columns, so stagger left to right within each row
   (the delay classes in the markup follow the desktop order). */
@media (max-width: 991.98px) {
	.spec-item:nth-child(1),
	.spec-item:nth-child(3),
	.spec-item:nth-child(5),
	.spec-item:nth-child(6),
	.spec-item:nth-child(8) { --anim-delay: 0ms; }
	.spec-item:nth-child(2),
	.spec-item:nth-child(4),
	.spec-item:nth-child(7),
	.spec-item:nth-child(9),
	.spec-item:nth-child(10) { --anim-delay: 100ms; }
}

/* Desktop animation order: title, paragraph, then the icons (0.1s apart, starting at 0.4s). */
@media (min-width: 992px) {
	.spec-item:nth-child(1) { --anim-delay: 400ms; }
	.spec-item:nth-child(2) { --anim-delay: 500ms; }
	.spec-item:nth-child(3) { --anim-delay: 600ms; }
	.spec-item:nth-child(4) { --anim-delay: 700ms; }
	.spec-item:nth-child(5) { --anim-delay: 800ms; }
	.spec-item:nth-child(6) { --anim-delay: 900ms; }
	.spec-item:nth-child(7) { --anim-delay: 1000ms; }
	.spec-item:nth-child(8) { --anim-delay: 1100ms; }
	.spec-item:nth-child(9) { --anim-delay: 1200ms; }
	.spec-item:nth-child(10) { --anim-delay: 1300ms; }
}
