/* ==========================================================================
   Careers page — Figma 1365:9387 (desktop 1920) / 1365:12536 (mobile 390)

   Everything here is scoped under .pz-careers and lives in its own file,
   loaded only where the Prezlab Careers widget is on the page. Nothing in
   this stylesheet can reach another page.

   Desktop numbers are taken literally from the 1920 artboard, which draws
   its type at 0.75 scale (55.5 / 17.25 / 12) — those ARE the rendered
   sizes at 1920, not values to divide.
   ========================================================================== */

.pz-careers {
	--pz-c-dark: #002528;
	--pz-c-panel: #00363b;
	--pz-c-ink: #f3f5f5;
	--pz-c-mint: #b6edf3;
	--pz-c-bone: #f9f9f7;
	--pz-c-deep: #0b2427;
	--pz-c-muted: #415f63;

	--pz-c-h: 55.5px;      /* display size */
	--pz-c-lh: 66.75px;
	--pz-c-eyebrow: 12px;
	--pz-c-body: 17.25px;
	--pz-c-body-lh: 25.8px;
	--pz-c-pad: 120px;     /* section rhythm */
	--pz-c-gut: 24px;

	font-family: var(--pz-font, "Figtree", sans-serif);
}

/* The artboard sets the whole page on the dark teal; the one light band is
   "Why Prezlab" and the one mint band is the numbers. */
.pz-careers * { box-sizing: border-box; }

.pz-careers .pz-careers__eyebrow {
	font-family: inherit;
	margin: 0;
	font-size: var(--pz-c-eyebrow);
	font-weight: 500;
	letter-spacing: 0.612px;
	text-transform: uppercase;
	line-height: normal;
}

/* Two classes deliberately. The Elementor global kit styles headings as
   `.elementor-kit-12 h1`, which at 0,1,1 outranks a single class and was
   serving these at the kit's 64px instead of the artboard's 55.5. */
.pz-careers .pz-careers__h {
	margin: 0;
	font-size: var(--pz-c-h);
	line-height: var(--pz-c-lh);
	font-weight: 500;
	letter-spacing: normal;
}

/* The italic half of every heading. The artboard uses PP Editorial New in
   its italic cut and does NOT slant it further. */
.pz-careers .pz-accent,
.pz-careers__h em {
	font-family: var(--pz-accent-font, "PP Editorial New", Georgia, serif);
	font-style: italic;
	font-weight: 400;
}

.pz-careers__lede {
	margin: 0;
	font-size: var(--pz-c-body);
	line-height: var(--pz-c-body-lh);
	font-weight: 400;
}

/* ------------------------------------------------------------------ hero */

.pz-careers__hero {
	background-color: var(--pz-c-dark);
	padding: var(--pz-c-pad) var(--pz-c-gut) 0;
	display: flex;
	justify-content: center;
}

.pz-careers__hero-inner {
	width: 731px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	text-align: center;
}

.pz-careers__hero .pz-careers__eyebrow { color: var(--pz-c-mint); }
.pz-careers__hero .pz-careers__h { color: var(--pz-c-ink); }
.pz-careers__hero .pz-careers__lede { color: rgba(255, 255, 255, 0.6); }

.pz-careers__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 26px;
	border-radius: 4px;
	background-color: var(--pz-c-mint);
	color: var(--pz-c-dark);
	font-size: 16px;
	font-weight: 500;
	line-height: 16px;
	text-decoration: none;
	transition: opacity 200ms ease;
}

.pz-careers__cta:hover,
.pz-careers__cta:focus-visible { opacity: 0.85; color: var(--pz-c-dark); }

/* --------------------------------------------------------------- collage */

.pz-careers__collage {
	background-color: var(--pz-c-dark);
	padding: var(--pz-c-pad) var(--pz-c-gut);
	display: flex;
	justify-content: center;
}

/* 1399.878 wide on the artboard: a 724.862 hero frame, then a 657.861 group
   of three. The 17px is what justify-between leaves over between the two,
   pinned here so the gap does not grow with the viewport. */
.pz-careers__collage-inner {
	width: 100%;
	max-width: 1400px;
	display: flex;
	align-items: center;
	gap: 17px;
}

.pz-careers__collage-right {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 20px;
}

.pz-careers__collage-stack {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* Proportions rather than pixels, so the collage keeps the artboard's shape
   at any width instead of breaking at the first container that is not 1920.
   The stack's 195.862 + 18 + 175.245 = 389.107 matches the two tall frames
   beside it, which is what keeps all four bottom edges on one line. */
.pz-careers__shot {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	background-color: var(--pz-c-panel);
}

.pz-careers__shot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pz-careers__shot--hero {
	flex: 0 0 51.78%;
	aspect-ratio: 724.862 / 388.301;
}

.pz-careers__shot--tall {
	flex: 0 0 40.28%;
	aspect-ratio: 264.982 / 387.978;
}

.pz-careers__shot--wide-a { aspect-ratio: 372.879 / 195.862; }
.pz-careers__shot--wide-b { aspect-ratio: 372.879 / 175.245; }

/* ---------------------------------------------------------- why prezlab */

.pz-careers__why {
	background-color: var(--pz-c-bone);
	padding: var(--pz-c-pad) var(--pz-c-gut);
	display: flex;
	justify-content: center;
}

.pz-careers__why-inner {
	width: 100%;
	max-width: 1414.796px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 64px;
}

.pz-careers__why-head {
	width: 814px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 32px;
	text-align: center;
	color: var(--pz-c-dark);
}

.pz-careers__benefits {
	width: 100%;
	display: flex;
	gap: 40px;
}

.pz-careers__benefit {
	flex: 1 1 0;
	min-width: 0;
	min-height: 165px;
	padding: 23.25px 36px 24px;
	border-radius: 9px;
	background-color: var(--pz-c-dark);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 15.75px;
}

.pz-careers__benefit-title {
	margin: 0;
	font-size: 20.768px;
	font-weight: 500;
	line-height: normal;
	color: #fff;
}

.pz-careers__benefit-text {
	margin: 0;
	font-size: 14.538px;
	line-height: 21.81px;
	font-weight: 500;
	color: #fff;
}

/* -------------------------------------------------------------- numbers */

/* The band is 553 tall on the artboard: 83.13 above the eyebrow, the stats
   row at 323.25, and 86.58 left under it. Expressed as padding + gaps so it
   survives a longer label without clipping. */
.pz-careers__numbers {
	background-color: var(--pz-c-mint);
	padding: 83.13px var(--pz-c-gut) 86.58px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	color: var(--pz-c-deep);
}

.pz-careers__numbers .pz-careers__eyebrow { color: var(--pz-c-deep); }

.pz-careers__numbers .pz-careers__h {
	color: var(--pz-c-deep);
	margin-top: 25.54px;
}

.pz-careers__stats {
	width: 100%;
	max-width: 1400px;
	margin-top: 67.08px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 85px;
}

.pz-careers__stat {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* The inner block is what the phone sizes and aligns: there the number and
   its label sit left inside a 110px column that the cell centres, while the
   desktop simply centres both across the cell. */
.pz-careers__stat-inner {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.pz-careers__stat-n {
	margin: 0;
	font-size: 62.25px;
	font-weight: 500;
	line-height: normal;
	color: var(--pz-c-deep);
}

.pz-careers__stat-l {
	margin: 0;
	font-size: var(--pz-c-body);
	font-weight: 400;
	line-height: normal;
	color: var(--pz-c-muted);
}

.pz-careers__rule {
	flex: 0 0 1px;
	width: 1px;
	height: 143.172px;
	background-color: rgba(11, 36, 39, 0.18);
}

/* ----------------------------------------------------------------- team */

.pz-careers__team {
	background-color: var(--pz-c-dark);
	padding: var(--pz-c-pad) 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--pz-c-pad);
	/* The video row is 3164 wide against a 1920 frame — the middle panel is
	   centred and the two beside it are meant to run off both edges. */
	overflow: hidden;
}

.pz-careers__team-head {
	width: 778px;
	max-width: 100%;
	padding: 0 var(--pz-c-gut);
	display: flex;
	flex-direction: column;
	gap: 32px;
	text-align: center;
}

.pz-careers__team-head .pz-careers__eyebrow { color: var(--pz-c-mint); }
.pz-careers__team-head .pz-careers__h { color: var(--pz-c-ink); }

.pz-careers__team-head .pz-careers__lede {
	color: var(--pz-c-mint);
	opacity: 0.5;
}

/* The strip rests, jumps one panel, and rests again — the same stepped
   behaviour as the case-studies row. The stepping itself lives in
   prezlab-careers.js, which measures the pitch and writes the transform;
   all this needs to do is lay the panels out and hide the overflow. */
.pz-careers__videos {
	width: 100%;
	overflow: hidden;
}

.pz-careers__videos-track {
	display: flex;
	align-items: center;
	width: max-content;
	gap: 100px;
	will-change: transform;
}

.pz-careers__video {
	position: relative;
	flex: 0 0 988px;
	width: 988px;
	height: 492px;
	display: grid;
	place-items: center;
	background-color: var(--pz-c-panel);
	background-size: cover;
	background-position: center;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.pz-careers__video img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pz-careers__play {
	position: relative;
	width: 110.652px;
	height: 110.652px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.92);
	display: grid;
	place-items: center;
	transition: transform 220ms ease;
}

.pz-careers__video:hover .pz-careers__play { transform: scale(1.06); }

.pz-careers__play::before {
	content: "";
	width: 0;
	height: 0;
	margin-left: 6px;
	border-style: solid;
	border-width: 17px 0 17px 28px;
	border-color: transparent transparent transparent var(--pz-c-dark);
}

/* ===========================================================  the phone  */

/* Figma 1365:12536 — a 390 artboard with 24px gutters. Content is set
   against the left gutter here, where the desktop frames centre it. */
@media (max-width: 767px) {

	/* The headings carry the artboard's desktop line breaks. At 342px those
	   breaks fall in the wrong place, so the phone lets the text reflow. */
	.pz-careers__h br { display: none; }

	.pz-careers {
		--pz-c-h: 36px;
		--pz-c-lh: 43px;
		--pz-c-eyebrow: 11px;
		--pz-c-body: 16px;
		--pz-c-body-lh: 23px;
		--pz-c-pad: 72px;
	}

	/* ---- hero: 40 in, then an even 24 between every part ---- */
	.pz-careers__hero { padding: 40px var(--pz-c-gut) 0; }

	.pz-careers__hero-inner {
		width: 100%;
		align-items: flex-start;
		text-align: left;
		gap: 24px;
	}

	.pz-careers__cta {
		min-width: 172px;
		min-height: 48px;
		font-size: 16px;
		padding: 12px 26px;
	}

	/* ---- collage: one wide shot, then a 126 + 206 row ---- */
	.pz-careers__collage { padding: 48px var(--pz-c-gut); }

	.pz-careers__collage-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.pz-careers__collage-right { gap: 10px; }
	.pz-careers__collage-stack { gap: 10px; }

	.pz-careers__shot--hero {
		flex: 0 0 auto;
		aspect-ratio: 342 / 222;
	}

	.pz-careers__shot--tall {
		flex: 0 0 36.84%;      /* 126 of 342 */
		aspect-ratio: 126 / 180;
	}

	.pz-careers__shot--wide-a,
	.pz-careers__shot--wide-b { aspect-ratio: 206 / 85; }

	/* ---- why prezlab: heading left, cards stacked ---- */
	.pz-careers__why { padding: var(--pz-c-pad) var(--pz-c-gut); }
	.pz-careers__why-inner { gap: 40px; }

	.pz-careers__why-head {
		width: 100%;
		text-align: left;
		gap: 16px;
	}

	.pz-careers__benefits {
		flex-direction: column;
		gap: 12px;
	}

	.pz-careers__benefit {
		min-height: 177px;
		padding: 24px;
		gap: 12px;
	}

	.pz-careers__benefit-title { font-size: 20px; }
	.pz-careers__benefit-text { font-size: 15px; line-height: 22px; }

	/* ---- numbers: the four stats fold into 2 x 2, rules dropped ---- */
	.pz-careers__numbers { padding: 60px var(--pz-c-gut); }
	.pz-careers__numbers .pz-careers__h { margin-top: 16px; }

	/* The phone draws the four stats as a ruled 2 x 2 table — 350 wide, two
	   175 columns, hairlines at 1.13px in a 15% ink. The desktop band has no
	   rules at all, which is why every border here is inside the query. */
	.pz-careers__stats {
		position: relative;
		width: 350px;
		max-width: 100%;
		margin-top: 40px;
		flex-wrap: wrap;
		justify-content: flex-start;
		/* The two cells in a row are different heights — "Offices across the
		   GCC" takes a second line — and the artboard hangs both from the same
		   top rule. The desktop band centres its stats, and inheriting that
		   here dropped each shorter cell half its difference down the row,
		   pulling its borders out of line with its neighbour. */
		align-items: stretch;
		gap: 0;
	}

	.pz-careers__stat {
		flex: 0 0 50%;
		padding: 26px 0;
		border-top: 1.13px solid rgba(0, 38, 41, 0.15);
	}

	/* Only the inner edges are drawn: a left rule closes the right-hand pair
	   and a baseline closes the bottom row, so the table has no outer frame. */
	.pz-careers__stat--2,
	.pz-careers__stat--4 { border-left: 1.13px solid rgba(0, 38, 41, 0.15); }

	.pz-careers__stat--3,
	.pz-careers__stat--4 { border-bottom: 1.13px solid rgba(0, 38, 41, 0.15); }

	.pz-careers__stat-inner {
		width: 110px;
		align-items: flex-start;
		text-align: left;
		gap: 4px;
	}

	.pz-careers__stat-n { font-size: 32px; font-weight: 500; }

	.pz-careers__stat-l {
		font-size: 13px;
		font-weight: 500;
		color: #536466;
	}

	/* Two 17 x 16 notches punched out of the centre rule and painted in the
	   band's own colour — the artboard breaks that line once near the top and
	   again near the foot instead of running it the full height. */
	.pz-careers__stats::before,
	.pz-careers__stats::after {
		content: "";
		position: absolute;
		left: calc(50% - 8.5px);
		width: 17px;
		height: 16px;
		background-color: var(--pz-c-mint);
		z-index: 1;
	}

	.pz-careers__stats::before { top: 2px; }
	.pz-careers__stats::after  { bottom: 2px; }

	/* The desktop rules are separate elements between the cells; the table
	   draws its own borders, so they have no place here. */
	.pz-careers__rule { display: none; }

	/* ---- team: heading left, the strip swiped ---- */
	.pz-careers__team {
		padding: var(--pz-c-pad) 0;
		gap: 40px;
		align-items: stretch;
	}

	.pz-careers__team-head {
		width: 100%;
		text-align: left;
		gap: 16px;
	}

	/* Same stepped strip on the phone, at the artboard's smaller panel and
	   gap. The script measures both, so only the gap changes here. */
	.pz-careers__videos-track { gap: 23px; }

	.pz-careers__video {
		flex: 0 0 310.667px;
		width: 310.667px;
		height: 159px;
	}

	.pz-careers__play { width: 58px; height: 58px; }

	.pz-careers__play::before {
		margin-left: 3px;
		border-width: 9px 0 9px 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pz-careers__play,
	.pz-careers__cta { transition: none; }

	/* A strip that steps on its own is exactly what this setting asks to
	   stop. The script never starts its timer; the overflow is handed back
	   to the reader to scroll through by hand. */
	.pz-careers__videos-track { transition: none !important; }

	.pz-careers__videos {
		overflow-x: auto;
		scrollbar-width: none;
	}

	.pz-careers__videos::-webkit-scrollbar { display: none; }
}

/* ---- video plays inside its own panel ---- */
.pz-careers__video { position: relative; overflow: hidden; }
.pz-careers__video .pz-careers__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	transform: scale(1.28); /* 16:9 player in a wider frame, and the YouTube title/logo fall outside */
	z-index: 1;
}
.pz-careers__video .pz-careers__shield { position: absolute; inset: 0; z-index: 3; cursor: pointer; }
.pz-careers__video.is-playing .pz-careers__play { display: none; }
.pz-careers__video.is-playing.is-paused .pz-careers__play { display: grid; z-index: 4; pointer-events: none; }
.pz-careers__video.is-playing.is-paused::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	background: rgba(0, 37, 40, 0.55);
	pointer-events: none;
}

/* swipe sideways to move the strip; vertical scrolling stays with the page */
.pz-careers__videos { touch-action: pan-y; }

/* video panels: rounded corners like the other site videos */
.pz-careers__video { border-radius: 12px; overflow: hidden; }

/* ---- hover: the same slow zoom as the case-study cards ---- */
.pz-careers__shot img,
.pz-careers__video img {
	transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.pz-careers__shot:hover img,
.pz-careers__video:hover img { transform: scale(1.04); }

/* ---- video strip: drag / swipe on desktop and phone ---- */
.pz-careers__videos { cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.pz-careers__videos.is-dragging { cursor: grabbing; }
.pz-careers__videos img { -webkit-user-drag: none; }

@media (prefers-reduced-motion: reduce) {
	.pz-careers__shot img,
	.pz-careers__video img { transition: none; }
}
