/* Homepage Content — what the homepage library adds, and nothing more.

   Loaded only where `homepage_content` renders (the front page and the private
   Homepage Components page). The shared layouts — Text, Media Layout, Stats,
   Quote, Before / After — and the section shell are styled by
   project-content.css; the established homepage sections by home.css and
   commercial.css. This file carries the four things that are new: the eyebrow,
   Campaign Rollout, Production Scenario and the logo presentation.

   Every value is a token and every breakpoint is one the theme already uses
   (1200, 900, 640). Nothing here is reachable from an editor. */

/* ---- Eyebrow ----
   The small label above a section heading. Same treatment as the Project Text
   eyebrow, so a label reads the same wherever it appears. */
.section-eyebrow {
	margin: 0 0 var(--space-sm);
	font-size: var(--size-label);
	font-weight: 700;
	text-transform: none; /* Direction C: no capitals */
	letter-spacing: 0;
	color: var(--color-fg-dim);
}

/* The established intros are a wrapping flex row — heading left, copy right.
   An eyebrow takes its own full-width line above them, and gives back most of
   the row gap so it stays attached to the heading it labels. */
.produce__intro > .section-eyebrow,
.process__intro > .section-eyebrow,
.reasons__intro > .section-eyebrow,
.experience__intro > .section-eyebrow {
	flex-basis: 100%;
	margin-bottom: calc(var(--space-2xs) - var(--space-lg));
}

/* Company transition is a two-column grid; the eyebrow spans both. */
.company-transition > .section-eyebrow {
	grid-column: 1 / -1;
	margin-bottom: calc(var(--space-2xs) - var(--space-lg));
}

.work-intro__head .section-eyebrow {
	margin-bottom: var(--space-2xs);
}

.service-work .section-eyebrow + .service-section__heading {
	margin-top: 0;
}

/* ---- Section intro ----
   Eyebrow, heading and a line of copy above a component that has no intro of
   its own — Campaign Rollout and Production Scenario. Heading scale is the
   Project Text heading's, so the new components sit in the same hierarchy as
   the shared ones around them. */
.section-intro {
	margin-bottom: var(--space-lg);
}

.section-intro__heading {
	font-size: var(--size-h2);
	font-weight: 800;
	line-height: 1.1;
	max-width: 20ch;
	text-wrap: balance;
}

.section-intro__copy {
	margin-top: var(--space-sm);
	max-width: 50ch;
	font-size: var(--size-body-lg);
	color: var(--color-fg-dim);
}

/* ---- Campaign Rollout ----
   One campaign, many executions. Nothing here sizes a creative: HTML5 frames
   keep their real pixel size (and scale down only when the screen is narrower
   than they are — the frame's own JS), and image and film cells share one
   width so a wall of social assets reads as a set. The wall wraps by itself
   and sits every execution on a common baseline, the way a placement sheet
   does.

   The master takes a third of the width beside the wall on desktop, with an
   arrow between them; below 900px the two stack and the arrow turns down. */
.rollout {
	--rollout-cell: clamp(9rem, 18vw, 16rem);
}

.rollout--has-master {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 2fr);
	/* Top, not centre: a wall of skyscrapers is far taller than one master,
	   and centring would float the master halfway down an empty column. */
	align-items: start;
	gap: var(--space-md);
}

.rollout__master {
	min-width: 0;
}

.rollout__arrow {
	/* Level with the master's label, pointing along the first row. */
	margin-top: var(--space-sm);
	font-size: var(--size-h2);
	line-height: 1;
	color: var(--color-fg-dim);
}

.rollout__wall {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Without a master the wall is the whole component, so it centres. */
.rollout:not(.rollout--has-master) .rollout__wall {
	justify-content: center;
}

.rollout__item {
	flex: 0 1 auto;
	max-width: 100%;
	min-width: 0;
}

.rollout__item--image,
.rollout__item--video {
	width: var(--rollout-cell);
}

/* Stacked, each part centred on its own. Not `justify-items: center` on the
   grid: that sizes the wall to its content — a 970px billboard wide — and the
   frames, measuring the wall, never scale down to the screen. The wall must
   stay exactly as wide as the column. */
@media (max-width: 899px) {
	.rollout--has-master {
		grid-template-columns: minmax(0, 1fr);
	}

	.rollout__master {
		width: 100%;
		max-width: 32rem;
		margin-inline: auto;
	}

	.rollout__arrow {
		justify-self: center;
		transform: rotate(90deg);
	}

	.rollout__wall {
		justify-content: center;
	}
}

/* Two cells to a row on a phone, so a social set stays a set rather than a
   column of full-width images. */
@media (max-width: 640px) {
	.rollout {
		--rollout-cell: calc(50% - var(--space-md) / 2);
	}
}

/* ---- Production Scenario ----
   The brief as a sequence: intro on the left, the numbers down the right as a
   ruled list, read top to bottom. The last line — "1 deadline" — is where the
   list lands, so it takes the accent. Stacks below 900px. */
.scenario {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: var(--space-lg);
	align-items: start;
}

.scenario__intro {
	margin-bottom: 0;
}

.project-stats--scenario {
	display: block;
	border-top: 1px solid var(--color-line);
}

.project-stats--scenario .project-stats__item {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	align-items: baseline;
	gap: var(--space-sm);
	padding-block: var(--space-xs);
	border-bottom: 1px solid var(--color-line);
}

.project-stats--scenario .project-stats__value {
	font-size: var(--size-h2);
}

.project-stats--scenario .project-stats__label {
	margin: 0;
	font-size: var(--size-body);
	text-transform: none;
	letter-spacing: 0;
}

.project-stats--scenario .project-stats__item:last-child .project-stats__value {
	color: var(--color-accent);
}

.scenario__closing {
	margin-top: var(--space-md);
	font-size: var(--size-h2);
	font-weight: 800;
	line-height: 1.1;
}

@media (max-width: 899px) {
	.scenario {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---- Client Logos: logo presentation ----
   A restrained row, not a wall: every mark at one common height, set in the
   foreground colour so no client's brand colour outshouts the page, and the
   row wraps rather than shrinking marks to fit. An entry without a file keeps
   its place as its name. */
.experience__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-md) var(--space-lg);
	margin: 0;
	padding: 0;
	list-style: none;
}

.experience__logo {
	display: flex;
	align-items: center;
	height: clamp(1.75rem, 1.4rem + 1.2vw, 2.75rem);
}

.experience__logo-image {
	width: auto;
	height: 100%;
	max-width: 10rem;
	object-fit: contain;
	/* One-colour marks, in whichever foreground the section's ground uses. */
	filter: brightness(0) invert(1);
	opacity: 0.8;
}

.project-block--bg-light .experience__logo-image {
	filter: brightness(0);
	opacity: 0.75;
}

.experience__logo-name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--size-body-lg);
	color: var(--color-fg-dim);
	white-space: nowrap;
}
