/* Awards highlights — a light panel with the award count, the latest awards as
   a list that fades toward its ends, and the 3D award floating at the right. */

.awards-hl {
	position: relative;
	background: #e5e5e5;
	border-radius: 5px;
	color: #000;
	padding: 36px 36px 52px;
}

/* ── Header ─────────────────────────────────────────────────── */

.awards-hl__head {
	display: flex;
	align-items: center;
	gap: 16px;
}

.awards-hl__mark {
	display: block;
	width: 56px;
	height: auto;
	flex: none;
}

.awards-hl__title {
	font-family: aktiv-grotesk, 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
	font-weight: 900;
	line-height: 1.43;
	letter-spacing: 0;
	color: #000;
	margin: 0;
}

/* ── Award list ──────────────────────────────────────────────── */

.awards-hl__list {
	list-style: none;
	margin: 36px 0 0;
	padding: 0;
}

/* Award | awarded by | year | project. The project column stays where the design
   puts it (x 842 of 1248 → 59.8%), so the 3D award's spot over the right of the
   list is unchanged; the awarding body takes room from the award and year. */
.awards-hl__row {
	display: grid;
	grid-template-columns: 32% 18.5% 9.3% 1fr;
	align-items: start;
	min-height: 66px;
	/* The 10px at the foot is what a one-line row has left over anyway (it
	   still comes to 66px); it keeps the same gap under a name that wraps. */
	padding: 16px 0 10px;
	border-top: 1px solid #6b6b6b;
	font-family: aktiv-grotesk, 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.125;
}

/* The list fades toward its ends, rule and text together. Each row's strength
   is a custom property so the arrival below can land exactly on it. */
.awards-hl__row { opacity: var(--row-op, 1); }
.awards-hl__row:nth-child(1) { --row-op: 0.25; }
.awards-hl__row:nth-child(2) { --row-op: 0.5; }
.awards-hl__row:nth-child(5) { --row-op: 0.5; }
.awards-hl__row:nth-child(6) { --row-op: 0.25; }
.awards-hl__row:nth-child(n+7) { --row-op: 0.1; }

/* Arrival (About's highlights): when the panel scrolls into view the rows rise
   into place one after another and settle on the faded pattern above.
   src/js/awards-reveal.js adds .is-waiting (rows hidden, instantly) and removes
   it once the panel is in view — so without JS, or with reduced motion, the
   rows are simply there. The full /awards list has its own scroll motion. */
.awards-hl--highlights .awards-hl__row {
	transition:
		opacity 0.6s ease,
		transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.awards-hl--highlights .awards-hl__row:nth-child(2) { transition-delay: 80ms; }
.awards-hl--highlights .awards-hl__row:nth-child(3) { transition-delay: 160ms; }
.awards-hl--highlights .awards-hl__row:nth-child(4) { transition-delay: 240ms; }
.awards-hl--highlights .awards-hl__row:nth-child(5) { transition-delay: 320ms; }
.awards-hl--highlights .awards-hl__row:nth-child(6) { transition-delay: 400ms; }
.awards-hl--highlights .awards-hl__row:nth-child(n+7) { transition-delay: 480ms; }

.awards-hl.is-waiting .awards-hl__row {
	opacity: 0;
	transform: translateY(14px);
	transition: none;
}

.awards-hl__name,
.awards-hl__show {
	padding-right: 24px;
}

/* The award cell: the category, with the result (ACE Award, Award of Merit,
   Nominee…) beneath it in small type, so a nomination never reads as a win.
   Not-won rows (nominations, selections) are quieter still. */
.awards-hl__award {
	display: block;
}

.awards-hl__result {
	display: block;
	margin-top: 5px;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.02em;
	opacity: 0.6;
}

.awards-hl__row--not-won .awards-hl__award {
	font-weight: 500;
}

.awards-hl__project {
	color: inherit;
	text-decoration: none;
}

a.awards-hl__project:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* ── The rolodex (every win, in a loop) ───────────────────────────
   The list sits in a window seven rows tall and src/js/awards-loop.js scrolls
   it, wrapping seamlessly onto a copy of itself: a slow drift, faster while
   you wheel over it, easing back after. The window's mask is the still list's
   fade (faint at the top, full through rows 3–4, fainter to the bottom), so it
   reads the same at rest, and rows pass through it as they go by. Rows are
   full strength themselves. With reduced motion there's no drift and no copy:
   the window just scrolls by hand. */
.awards-hl--loop .awards-hl__window {
	--loop-h: 462px; /* 7 rows of 66px */
	height: var(--loop-h);
	margin-top: 36px;
	overflow: hidden;
	overflow: clip;
	/* The drum (awards-loop.js) is seen from this far away. */
	perspective: var(--loop-perspective, 2000px);
	-webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.2) 0%, rgb(0 0 0 / 0.55) 16%, #000 30%, #000 56%, rgb(0 0 0 / 0.5) 74%, rgb(0 0 0 / 0.08) 100%);
	        mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.2) 0%, rgb(0 0 0 / 0.55) 16%, #000 30%, #000 56%, rgb(0 0 0 / 0.5) 74%, rgb(0 0 0 / 0.08) 100%);
}

.awards-hl--loop .awards-hl__track {
	will-change: transform;
}

/* The rows share the window's 3D space, so they curve around one drum. Rows
   tipped back sit behind the lists' flat plane, which would take their clicks:
   the lists let the pointer through to them. */
.awards-hl--loop .awards-hl__track,
.awards-hl--loop .awards-hl__list {
	transform-style: preserve-3d;
	pointer-events: none;
}

.awards-hl--loop .awards-hl__row {
	pointer-events: auto;
}

.awards-hl--loop .awards-hl__list {
	margin: 0;
}

.awards-hl--loop .awards-hl__row:nth-child(n) {
	--row-op: 1;
}

@media (prefers-reduced-motion: reduce) {
	.awards-hl--loop .awards-hl__window {
		overflow-y: auto;
		overscroll-behavior: contain;
	}
	.awards-hl--loop .awards-hl__track { will-change: auto; }
}

/* ── See all ─────────────────────────────────────────────────── */

/* Sits over the last (faded) row, as in the design, so it's lifted above the
   list and the 3D award to stay the click target in every browser. */
.awards-hl__all {
	position: absolute;
	z-index: 2;
	right: 36px;
	bottom: 36px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: aktiv-grotesk, 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.714;
	text-transform: uppercase;
	color: #000;
	text-decoration: none;
	transition: opacity 0.2s;
}

.awards-hl__all:hover {
	opacity: 0.6;
}

/* ── 3D award object ─────────────────────────────────────────── */

/* Floats above the right of the list, as in the design (260 × 375, 88px from
   the panel's right edge, 183px down). Nothing is painted until the WebGL
   canvas mounts, so the list never reflows. */
.awards-hl__object {
	position: absolute;
	z-index: 1;
	top: 183px;
	right: 6.7%;
	width: 19.7%;
	max-width: 260px;
	aspect-ratio: 260 / 375;
}

/* awards-3d.js fills this box with a stage that takes the pointer (grab
   cursor, touch-action: pan-y so vertical page scroll stays alive on touch)
   and a canvas that overhangs it, so a leaning award never meets an edge. */

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 781px) {
	.awards-hl {
		padding: 24px 20px 28px;
	}

	.awards-hl__mark {
		width: 44px;
	}

	.awards-hl__object { display: none; }

	.awards-hl__list {
		margin-top: 20px;
	}

	/* Three lines a row: the award with its year at the right; the result
	   and the awarding body together in the small type ("Award of Distinction
	   · ACE Awards"); then the project. The name cell steps aside
	   (display: contents) so its award and result can sit on those lines. */
	.awards-hl__row {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		row-gap: 4px;
		min-height: 0;
		padding: 14px 0;
	}

	.awards-hl__name { display: contents; }

	.awards-hl__award {
		order: 1;
		flex: 0 0 calc(100% - 4.5rem);
		padding-right: 12px;
	}

	.awards-hl__year {
		order: 2;
		flex: 0 0 4.5rem;
		text-align: right;
		font-weight: 500;
	}

	.awards-hl__result {
		order: 3;
		margin-top: 0;
	}

	.awards-hl__show {
		order: 4;
		padding-right: 0;
		font-size: 0.75rem;
		font-weight: 500;
		line-height: 1.3;
		letter-spacing: 0.02em;
		opacity: 0.6;
	}

	/* "Result · Awarding body" — the dot only when both are there. */
	.awards-hl__name:has(.awards-hl__result) ~ .awards-hl__show::before {
		content: '\00b7';
		margin: 0 0.45em;
	}

	.awards-hl__project {
		order: 5;
		flex: 0 0 100%;
		margin-top: 2px;
		font-weight: 500;
	}

	.awards-hl__all {
		position: static;
		margin-top: 20px;
	}

	/* Rows run two or three lines here, so the window is a height, not a count. */
	.awards-hl--loop .awards-hl__window {
		--loop-h: 440px;
		margin-top: 20px;
	}
}
