/**
 * PUMPT Work — single case-study layout.
 *
 * Layout rule: .pw-single__row spans the full viewport and owns the divider
 * line; .pw-single__inner holds the copy at 1440px, centred. That gives
 * edge-to-edge rules and an edge-to-edge hero without any 100vw tricks
 * (which would fight the scrollbar).
 *
 * Palette is taken from the live site: page background #f0eeed, headings
 * #000, body copy #333, warm grey rules.
 */

.pw-single {
	--pw-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--pw-font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--pw-font-heading: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--pw-line: rgba(0, 0, 0, 0.2);
	--pw-brand: #EF5F56;
	--pw-ink: #000;
	--pw-body: #333;
	--pw-max: 1440px;
	--pw-gutter: 40px;
	--pw-block-pad: 80px;
	width: 100%;
	margin: 0;
	color: var(--pw-body);
	font-family: var(--pw-font-body);
}

/* Full-bleed row; the rule between sections lives here. */
.pw-single__row {
	width: 100%;
}

.pw-single__row + .pw-single__row {
	border-top: 1px solid var(--pw-line);
}

/* The hero is its own visual break — no rule above it. */
.pw-single__media + .pw-single__row {
	border-top: 1px solid var(--pw-line);
}

.pw-single__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--pw-max);
	margin: 0 auto;
	padding: var(--pw-block-pad) var(--pw-gutter);
}

/* ------------------------------------------------------------- Intro */

.pw-single__row--intro .pw-single__inner {
	padding-top: 72px;
	padding-bottom: 56px;
}

/* Back to Work — Helvetica Neue 700 / 16px / 26px / 0 / uppercase / #EF5F56.
   Three classes to beat Astra's content-link underline. */
.pw-single .pw-single__inner a.pw-single__back {
	display: inline-block;
	margin: 0 0 30px;
	color: var(--pw-brand);
	font-family: var(--pw-font);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 26px;
	text-decoration: none;
	text-transform: uppercase;
	transition: opacity var(--pw-transition, 300ms) ease;
}

.pw-single .pw-single__inner a.pw-single__back:hover,
.pw-single .pw-single__inner a.pw-single__back:focus {
	text-decoration: none;
	opacity: 0.7;
}

.pw-single__eyebrow {
	margin: 0 0 22px;
	color: var(--pw-ink);
	font-family: var(--pw-font);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 26px;
	text-transform: uppercase;
}

.pw-single .pw-single__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
}

.pw-single .pw-single__terms .pw-card__term {
	margin: 0;
	padding: 10px 22px;
	border: 1px solid #111;
	border-radius: 999px;
	color: #111;
	font-size: 14px;
	line-height: 1.2;
	list-style: none;
	white-space: nowrap;
}

.pw-single .pw-single__title {
	max-width: 1100px;
	margin: 0 0 26px;
	color: var(--pw-ink);
	font-family: var(--pw-font);
	font-size: 40px;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 60px;
}

.pw-single__summary {
	max-width: 900px;
	margin: 0;
	color: var(--pw-ink);
	font-family: var(--pw-font);
	font-size: 22px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 28px;
}

/* -------------------------------------------------- Hero image / video */

.pw-single__media {
	width: 100%;
	margin: 0;
	overflow: hidden;
	background-color: #000;
	line-height: 0;
}

.pw-single__media-el {
	display: block;
	width: 100%;
	height: auto;
	border: 0;
}

/* Cropped band, matching the cinematic hero in the design. */
.pw-single__media--ratio {
	aspect-ratio: var(--pw-media-ratio, 21 / 9);
}

.pw-single__media--ratio .pw-single__media-el {
	height: 100%;
	object-fit: cover;
}

.pw-single__embed,
.pw-single__embed iframe {
	display: block;
	width: 100%;
	border: 0;
}

.pw-single__media--ratio .pw-single__embed,
.pw-single__media--ratio .pw-single__embed iframe {
	height: 100%;
}

/* ------------------------------------------------------------- Stats */

.pw-single__stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px;
}

.pw-stat {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.pw-stat__value {
	color: var(--pw-ink);
	font-family: var(--pw-font);
	font-size: 60px;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 60px;
	text-transform: uppercase;
}

.pw-stat__label {
	max-width: 26ch;
	color: var(--pw-ink);
	font-family: var(--pw-font);
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 26px;
}

/* ------------------------------------------------- Label + copy blocks */

/* Two equal columns: the label and heading stack in the left one, the body
   copy sits in the right one, top-aligned with the label — not with the
   heading. Measured off the design, the right column starts at ~51.5%. */
.pw-single__block {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: 80px;
}

/* The heading below carries 60px leading on 40px text, so 10px of half-leading
   already sits above its glyphs. The visual gap is that plus this margin —
   which is why 34px here read as ~45px on screen. */
.pw-single__block-label {
	margin: 0 0 10px;
	color: var(--pw-ink);
	font-family: var(--pw-font);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 26px;
	text-transform: uppercase;
}

.pw-single__block-head .pw-single__block-title {
	margin: 0;
}

.pw-single__block-body {
	max-width: none;
}

.pw-single .pw-single__block-title {
	margin: 0;
	color: var(--pw-ink);
	font-family: var(--pw-font);
	font-size: 40px;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 60px;
}

.pw-single__prose {
	color: var(--pw-ink);
	font-family: var(--pw-font);
	font-size: 22px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 28px;
}

.pw-single__prose > *:first-child { margin-top: 0; }
.pw-single__prose > *:last-child  { margin-bottom: 0; }

/* ------------------------------------------------------------- Quote */

/* Astra styles the bare element:
   blockquote { border-left:5px …; padding:20px; font-size:1.2em; font-style:italic }
   font-size and font-style both inherit down to the text, so all four have to
   be reset here, not just the border and padding. */
.pw-single .pw-quote {
	max-width: 1180px;
	margin: 0 0 48px;
	padding: 0;
	border: 0;
	font-size: inherit;
	font-style: normal;
	quotes: none;
}

.pw-single .pw-quote__text,
.pw-single .pw-quote__mark {
	font-style: normal;
}

.pw-quote__mark {
	display: block;
	margin: 0;
	color: var(--pw-ink);
	font-family: var(--pw-font);
	font-size: 60px;
	font-weight: 700;
	line-height: 1;
}

.pw-quote__text {
	margin: 0;
	color: var(--pw-ink);
	font-family: var(--pw-font);
	font-size: 60px;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 60px;
}

.pw-quote__by {
	display: flex;
	align-items: center;
	gap: 32px;
}

.pw-quote__avatar {
	flex: none;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	object-fit: cover;
}

.pw-quote__meta {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.pw-quote__name {
	color: var(--pw-ink);
	font-family: var(--pw-font);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 26px;
	text-transform: uppercase;
}

.pw-quote__role {
	color: #6b6b6b;
	font-family: var(--pw-font);
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 26px;
	text-transform: uppercase;
}

/* ------------------------------------------------------ Related work */

/* Related grid sits tighter than the main work grid. */
.pw-single__row--related .pw-grid {
	--pw-column-gap: 40px;
	--pw-row-gap: 48px;
}

/* Pills read as full caps in this section of the design. */
.pw-single__row--related .pw-card__term {
	text-transform: uppercase;
}

/* Coral "SEE ALL WORK", matching the back link. */
.pw-single .pw-footer {
	margin-top: 48px;
}

.pw-single .pw-footer .pw-see-all,
.pw-single .pw-footer a.pw-see-all {
	color: var(--pw-brand);
	font-family: var(--pw-font);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 26px;
	text-decoration: none;
	text-transform: uppercase;
}

.pw-single .pw-single__related-title {
	margin: 10px 0 44px;
	color: var(--pw-ink);
	font-family: var(--pw-font);
	font-size: 40px;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 60px;
}

/* ------------------------------------------------------- Responsive */

@media (max-width: 1024px) {
	.pw-single {
		--pw-gutter: 28px;
		--pw-block-pad: 48px;
	}

	.pw-single__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px;
	}

	.pw-single__block {
		gap: 48px;
	}
}

@media (max-width: 767px) {
	.pw-single {
		--pw-gutter: 20px;
		--pw-block-pad: 40px;
	}

	.pw-single__row--intro .pw-single__inner {
		padding-top: 40px;
	}

	.pw-single__stats {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}

	.pw-single__block {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.pw-single__block-label {
		margin-bottom: 6px;
	}

	.pw-single__media--ratio {
		aspect-ratio: 16 / 9;
	}
}

/* The Figma type is fixed-px; scale the two 60px styles down on small screens
   so a 60px/60px line does not overflow a phone. */
@media (max-width: 900px) {
	.pw-quote__text { font-size: 38px; line-height: 44px; }
	.pw-quote__mark { font-size: 38px; }
	.pw-quote__avatar { width: 52px; height: 52px; }
	.pw-quote__by { gap: 20px; }
	.pw-stat__value { font-size: 40px; line-height: 46px; }
	.pw-single .pw-single__title,
	.pw-single .pw-single__block-title,
	.pw-single .pw-single__related-title { font-size: 30px; line-height: 40px; }
	.pw-single__summary, .pw-single__prose { font-size: 18px; line-height: 26px; }
}

/* --------------------------------------------------------- Closing CTA
 * Inverted band: the row carries the black so it runs edge to edge, while
 * the copy stays inside the same 1440px column as every other section.
 */
.pw-single__row--cta {
	background-color: #000;
	border-top: 0;
}

.pw-single__row--cta .pw-single__block-label {
	color: #fff;
}

.pw-single .pw-single__cta-title {
	margin: 10px 0 32px;
	color: #fff;
	font-family: var(--pw-font);
	font-size: 60px;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 60px;
}

.pw-single__cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

/* Three classes so the theme's content-link styling cannot reach them. */
.pw-single .pw-single__cta-actions a.pw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 52px;
	padding: 10px 26px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--pw-font);
	font-size: 18px;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 30px;
	text-decoration: none;
	text-transform: uppercase;
	transition:
		background-color var(--pw-transition, 300ms) ease,
		border-color var(--pw-transition, 300ms) ease,
		color var(--pw-transition, 300ms) ease;
}

.pw-single .pw-single__cta-actions a.pw-btn--primary {
	border-color: var(--pw-brand);
	background-color: var(--pw-brand);
	color: #fff;
}

.pw-single .pw-single__cta-actions a.pw-btn--primary:hover,
.pw-single .pw-single__cta-actions a.pw-btn--primary:focus {
	border-color: #d94c43;
	background-color: #d94c43;
	color: #fff;
	text-decoration: none;
}

.pw-single .pw-single__cta-actions a.pw-btn--ghost {
	border-color: #fff;
	background-color: transparent;
	color: #fff;
}

.pw-single .pw-single__cta-actions a.pw-btn--ghost:hover,
.pw-single .pw-single__cta-actions a.pw-btn--ghost:focus {
	background-color: #fff;
	color: #000;
	text-decoration: none;
}

.pw-single .pw-single__cta-actions a.pw-btn:focus-visible {
	outline: 2px solid var(--pw-brand);
	outline-offset: 3px;
}

@media (max-width: 900px) {
	.pw-single .pw-single__cta-title {
		font-size: 34px;
		line-height: 40px;
	}
}

/* Related grid: its own gap variables are set at desktop width, so the base
   mobile fallback in pumpt-work.css cannot reach them. */
@media (max-width: 1024px) {
	.pw-single__row--related .pw-grid {
		--pw-column-gap: 28px;
		--pw-row-gap: 40px;
	}
}

@media (max-width: 767px) {
	.pw-single__row--related .pw-grid {
		--pw-column-gap: 24px;
		--pw-row-gap: 40px;
	}

	/* Full-width cards do not need a tall crop. */
	.pw-single__row--related .pw-card {
		--pw-media-height: 220px;
	}
}
