@charset "UTF-8";
/* =============================================================================
   Faculty strip — "Professors From World's Leading Institutions".
   [figma] node 747:4563, 1440x575 on a dark navy gradient.

   Heading Lora 52 centred, intro Lora 24/40 centred, then a row of partner
   logos that runs off both edges of the frame — a marquee, same construction as
   the news ticker.

   Logos are <img>, not inlined. Hard rule 9 is about not using icon fonts; these
   are detailed institutional crests (duke.svg alone is 62 KB) and inlining all
   eight would add ~230 KB to every page for no styling benefit — they are
   forced to white with a filter, so they never need currentColor.
   ========================================================================== */

.faculty {
	--faculty-start: #012a48;                /* [figma] gradient, dark corner */
	--faculty-end: #05304f;

	background-image: linear-gradient(135deg, var(--faculty-start) 0%, var(--faculty-end) 100%);
	color: var(--color-on-dark);
	overflow: hidden;
}

.faculty__head {
	max-width: 71rem;
	margin-inline: auto;
	text-align: center;
}

/* [figma] Lora Regular 52, white, centred. */
.faculty__title {
	font-family: var(--font-display);
	font-size: var(--fs-display-lg);
	font-weight: var(--fw-regular);
	line-height: var(--lh-tight);
	color: var(--color-on-dark);
	/* Every word capitalised, "Professors From The World’s Leading
	   Institutions" (Domagoj, 2026-09-28). The stored copy is unchanged. */
	text-transform: capitalize;
}

/* The heading reads as one line (Domagoj, 2026-09-24). It is long, so the size
   follows the viewport until it reaches the scale's own step — below that the
   line would get too small, and the heading wraps instead. */
@media (min-width: 64em) {
	.faculty__title {
		/* Capped at 50 once it is capitalised: at the full 52 the line ran
		   33px past its box on a 1920 screen. */
		font-size: min(var(--fs-display-lg), 3.4vw, 3.125rem);
		white-space: nowrap;
	}
}

/* [figma] Lora Regular 24/40, white, centred. */
.faculty__intro {
	margin-block-start: var(--space-8);
	font-family: var(--font-display);
	font-size: var(--fs-copy-24);
	line-height: var(--lh-editorial-lg);
	color: var(--color-on-dark);
}

/* --- Logo marquee ----------------------------------------------------------
   [figma] logos on a ~285px pitch, vertically centred in a 138px band, running
   past both edges. Edges are masked so they fade rather than cut. */

.faculty__marquee {
	position: relative;
	margin-block-start: var(--space-16);
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 6rem, #000 calc(100% - 6rem), transparent);
	mask-image: linear-gradient(to right, transparent, #000 6rem, #000 calc(100% - 6rem), transparent);
}

.faculty__track {
	display: flex;
	align-items: center;
	gap: 5.3125rem;                          /* 85 — 285 pitch less a 200 slot */
	width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
	animation: faculty-scroll var(--marquee-duration, 60s) linear infinite;
}

/* No pause on hover — the strip ignores the mouse (Domagoj, 2026-09-29). */

.faculty__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 12.5rem;                          /* 200 [figma] slot */
	height: 4.5rem;
}

/* WordPress wraps each logo in <picture>. Without a height of its own the
   wrapper let max-height: 100% resolve to nothing, and the square London
   Business School tile rendered 200x200 in a 72px row (2026-09-14). */
.faculty__logo picture {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

/* Dark artwork drawn for light backgrounds, forced to flat white without
   editing eight source files. Greyed back at rest and full white on hover
   (Domagoj, 2026-09-02) — hover is per LOGO, not per marquee. */
.faculty__logo :where(img, svg) {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: brightness(0) invert(1);
	opacity: 0.45;
	transition: opacity var(--duration) var(--ease);
}

.faculty__logo:hover :where(img, svg) {
	opacity: 1;
}

/* London Business School is WHITE lettering on its own solid grey box, not dark
   artwork on transparent. Inverting it turns the whole box white — it rendered
   as a plain white square. It already reads correctly on navy, so it opts out.
   Harvard too: a white wordmark beside a white-filled crest (2026-09-17). */
.faculty__logo--keep :where(img, svg) {
	filter: none;
}

@keyframes faculty-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(var(--marquee-shift, -50%)); }   /* one measured period — marquee.js */
}

@media (prefers-reduced-motion: reduce) {
	.faculty__track { animation: none; }
	.faculty__marquee { overflow-x: auto; }
}
