/*
 * Career - Life.
 *
 * Read from cp-all-designer css/career.css:550-764, 4048-4071, 716-737 and
 * css/app.css:4546-4615.
 *
 * Colour, type, sizes and the spaces between the parts arrive from the Style
 * tab and are not repeated here.
 */

/* career.css:550 — a navy that deepens across the band */
.custom-career-life {
	position: relative;
	overflow: hidden;
	color: #FFFFFF;
	background: linear-gradient(160deg, var(--custom-career-life-from, #1E4EA5) 0%, var(--custom-career-life-to, #16418C) 100%);
}

.custom-career-life .nb {
	white-space: nowrap;
}

/* career.css:551-555 — the head on the left, the arrows level with its foot on the right */
.custom-career-life .custom-career-life__top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 48px;                             /* career.css:553 (43.2 capped at 48 · 27.6) */
}

.custom-career-life .custom-career-life__opening {
	min-width: 0;
	max-width: 780px;
}

.custom-career-life .custom-career-life__opening [data-custom-investor-title] {
	text-wrap: balance;
}

/* career.css:560-561 */
.custom-career-life .custom-career-life__lead {
	margin: 0;
	padding: 0;
	font-weight: 400;
	line-height: 1.7;
	letter-spacing: 0;
}

.custom-career-life .custom-career-life__lead b,
.custom-career-life .custom-career-life__lead strong {
	font-weight: 500;
}

/* ------------------------------------------------------------------ */
/* The arrows — career.css:564-574                                     */
/* ------------------------------------------------------------------ */

.custom-career-life .custom-career-life__nav {
	display: flex;
	flex-shrink: 0;
	gap: 10px;
	padding-bottom: 6px;
}

.custom-career-life .custom-career-life__nav[hidden] {
	display: none;
}

.custom-career-life .custom-career-life__arrow {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	box-sizing: border-box;
	padding: 0;
	border: 2px solid var(--custom-career-life-arrow-edge, rgba(255, 255, 255, 0.28));   /* career.css:569 measures 1px */
	border-radius: 50%;
	font-family: inherit;
	font-size: 20px;
	line-height: 1;
	color: var(--custom-career-life-arrow-ink, #FFFFFF);
	background: var(--custom-career-life-arrow-ground, rgba(255, 255, 255, 0.08));
	cursor: pointer;
	transition: background-color 250ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            border-color 250ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            opacity 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-career-life .custom-career-life__arrow:hover:not(:disabled) {
	border-color: var(--custom-career-life-arrow-edge-on, #FFFFFF);
	background: var(--custom-career-life-arrow-ground-on, rgba(255, 255, 255, 0.2));
}

.custom-career-life .custom-career-life__arrow:disabled {
	opacity: 0.32;
	cursor: default;
}

.custom-career-life .custom-career-life__arrow:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* The rail — career.css:576-620                                       */
/* ------------------------------------------------------------------ */

.custom-career-life .custom-career-life__view {
	margin-top: -10px;
	margin-bottom: -10px;
}

.custom-career-life .custom-career-life__track {
	gap: var(--custom-career-rail-gap, 24px);
	align-items: stretch;
	padding-top: 10px;
	padding-bottom: 14px;
}

/* career.css:630-646 — a pane of frosted glass: the words beside the picture */
.custom-career-life .custom-career-life__card {
	position: relative;
	display: grid;
	flex: 0 0 664px;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	overflow: hidden;
	box-sizing: border-box;
	margin: 0;
	border: 2px solid var(--custom-career-life-edge, rgba(255, 255, 255, 0.18));   /* career.css:643 measures 1px */
	background: linear-gradient(150deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.06) 62%, rgba(255, 255, 255, 0.09) 100%);
	transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            border-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-career-life .custom-career-life__card:hover {
	border-color: var(--custom-career-life-edge-on, rgba(255, 255, 255, 0.44));
	transform: translateY(-6px);
}

/* career.css:678-682 */
.custom-career-life .custom-career-life__copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	box-sizing: border-box;
}

.custom-career-life .custom-career-life__name {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-style: normal;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
}

.custom-career-life .custom-career-life__sub {
	margin: 4px 0 0;
	padding: 0;
	font-weight: 300;
	line-height: 1.5;
	letter-spacing: 0;
}

.custom-career-life .custom-career-life__say {
	margin-right: 0;
	margin-bottom: 0;
	margin-left: 0;
	padding: 0;
	font-weight: 300;
	line-height: 1.7;
	letter-spacing: 0;
}

.custom-career-life .custom-career-life__say b,
.custom-career-life .custom-career-life__say strong {
	font-weight: 400;
}

/* career.css:4069 — on a desktop the story's line is the page's 1.6 (the design's
   min() of a number and a length is no line at all, so the body's stands) */
@media (min-width: 1025px) {
	.custom-career-life .custom-career-life__say {
		line-height: 1.6;
	}
}

/* career.css:668-676 — the tags sit at the foot of the words */
.custom-career-life .custom-career-life__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: auto 0 0;
	padding-right: 0;
	padding-bottom: 0;
	padding-left: 0;
	list-style: none;
}

.custom-career-life .custom-career-life__tag {
	margin: 0;
	padding: 6px 12px;
	border: 2px solid rgba(255, 255, 255, 0.2);   /* career.css:675 measures 1px */
	border-radius: 1000px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0;
	background: rgba(255, 255, 255, 0.1);
	list-style: none;
}

/* ------------------------------------------------------------------ */
/* The picture, and the way into the film — career.css:685-714         */
/* ------------------------------------------------------------------ */

.custom-career-life .custom-career-life__media {
	position: relative;
	display: block;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.08);
}

.custom-career-life .custom-career-life__picture {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.custom-career-life .custom-career-life__picture > img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

a.custom-career-life__media {
	cursor: pointer;
}

/* a veil that lifts as the film is reached */
.custom-career-life a.custom-career-life__media::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: rgba(14, 30, 84, 0.22);
	transition: background-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-career-life a.custom-career-life__media:hover::after {
	background: rgba(14, 30, 84, 0.08);
}

.custom-career-life a.custom-career-life__media:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: -4px;
}

.custom-career-life a.custom-career-life__media .custom-career-life__picture > img {
	transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-career-life a.custom-career-life__media:hover .custom-career-life__picture > img {
	transform: scale(1.04);
}

.custom-career-life .custom-career-life__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	border-radius: 50%;
	color: var(--custom-career-life-play-ink, #16418C);
	background: var(--custom-career-life-play-ground, rgba(255, 255, 255, 0.94));
	box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.24), 0 12px 28px rgba(14, 30, 84, 0.35);
	transform: translate(-50%, -50%);
	transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            background-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            color 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-career-life .custom-career-life__play svg {
	width: 40%;
	height: 40%;
	margin-left: 6%;
}

.custom-career-life a.custom-career-life__media:hover .custom-career-life__play {
	color: var(--custom-career-life-play-ink-on, #FFFFFF);
	background: var(--custom-career-life-play-ground-on, #CE2929);
	transform: translate(-50%, -50%) scale(1.08);
}

/* ------------------------------------------------------------------ */
/* The bar — career.css:749-758                                        */
/* ------------------------------------------------------------------ */

.custom-career-life .custom-career-life__bar {
	position: relative;
	height: 2px;
	overflow: hidden;
	border-radius: 2px;
}

.custom-career-life .custom-career-life__bar i {
	position: absolute;
	top: 0;
	left: 0;
	width: 30%;
	height: 100%;
	border-radius: 2px;
	transition: width 250ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ------------------------------------------------------------------ */
/* Tablet — 768px to 1024px (career.css:742-745, drawn below 1200)     */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	/* the picture over the words */
	.custom-career-life .custom-career-life__card {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto 1fr;
	}
	.custom-career-life .custom-career-life__media {
		order: -1;
		aspect-ratio: 16 / 10;
	}
	.custom-career-life .custom-career-life__top {
		gap: 28px;
	}
}

/* ------------------------------------------------------------------ */
/* Mobile — up to 767px (career.css:760-764, drawn at 900)             */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	/* the arrows stand under the head, on the right */
	.custom-career-life .custom-career-life__top {
		display: block;
	}
	/* app.css:3016 — the line of copy closes up on a phone */
	.custom-career-life .custom-career-life__lead {
		line-height: 1.5;
	}
	.custom-career-life .custom-career-life__nav {
		justify-content: flex-end;
		margin-top: var(--custom-career-life-nav-space, 20px);
		padding-bottom: 0;
	}
}

/* ------------------------------------------------------------------ */
/* The film, over the page — app.css:4559-4615, career.css:716-737     */
/* ------------------------------------------------------------------ */

.custom-career-life-player {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 28px;                         /* app.css:4562 (28.8) */
	opacity: 0;
	visibility: hidden;
	transition: opacity 300ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 300ms;
}

.custom-career-life-player.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-career-life-player__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 14, 40, 0.82);
}

.custom-career-life-player__dialog {
	position: relative;
	width: min(1080px, 100%);
	transform: translateY(14px);
	transition: transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-career-life-player.is-open .custom-career-life-player__dialog {
	transform: none;
}

.custom-career-life-player__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 14px;
	background: #000000;
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}

.custom-career-life-player__frame iframe,
.custom-career-life-player__frame video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	border: 0;
}

/* the close floats over the frame's top right corner, never over the film */
.custom-career-life-player__close {
	position: absolute;
	top: -46px;
	right: 0;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: #FFFFFF;
	background: rgba(255, 255, 255, 0.14);
	cursor: pointer;
	transition: background-color 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-career-life-player__close:hover {
	background: rgba(255, 255, 255, 0.26);
}

.custom-career-life-player__close:focus-visible {
	outline: 2px solid #50A3D5;
	outline-offset: 2px;
}

.custom-career-life-player__close svg {
	width: 18px;
	height: 18px;
}

body.custom-career-life-lock {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.custom-career-life-player {
		padding: 18px;                     /* 18.4 */
	}
}

@media (max-width: 767px) {
	.custom-career-life-player {
		padding: 16px;
	}
}

/* career.css:731-737 — a short window has no room over the frame: the close
   moves into its top left corner, clear of the player's own buttons */
@media (max-height: 520px) {
	.custom-career-life-player__close {
		top: 10px;
		left: 10px;
		right: auto;
		z-index: 1;
		background: rgba(6, 14, 40, 0.62);
	}
	.custom-career-life-player__close:hover {
		background: rgba(6, 14, 40, 0.82);
	}
}

@media (prefers-reduced-motion: reduce) {
	.custom-career-life .custom-career-life__card,
	.custom-career-life .custom-career-life__play,
	.custom-career-life a.custom-career-life__media .custom-career-life__picture > img,
	.custom-career-life-player,
	.custom-career-life-player__dialog {
		transition: none;
	}
	.custom-career-life .custom-career-life__card:hover {
		transform: none;
	}
}
