/* ============================================================
   KODIF — CAREERS
   Tokens (--primary, --bg-reverse, …) are declared in css/style.css.
   Order: components → @media (breakpoints at the end of the file).
   ============================================================ */

/* ============ HERO ============ */
/* Dark stage: oversized headline, lead + CTA, then a hairline-topped stats row. */
.section-career-hero {
	background: var(--bg-reverse);
	padding: 88px 0 72px;
}

.career-hero {
	max-width: 760px;
}

.career-hero__eyebrow {
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8a8a8a;
}

.career-hero__title {
	margin-bottom: 28px;
}

.career-hero__lead {
	max-width: 540px;
	font-size: 18px;
	line-height: 1.6;
	color: var(--text-dim);
}

.career-hero__cta {
	margin-top: 36px;
}

/* Three quick facts under a hairline divider */
.career-stats {
	list-style: none;
	margin: 64px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.career-stat {
	padding: 24px 0;
}

.career-stat__num {
	font-size: 40px;
	line-height: 1.1;
	font-weight: 600;
	color: var(--primary);
}

.career-stat__label {
	margin-top: 12px;
	font-size: 14px;
	color: var(--text-dim);
}

/* ============ BENEFIT (extends .section-info-card) ============ */
/* Center the reused info-card head; switch the card grid to three columns. */
.info-card__head--center {
	text-align: center;
}

.info-card__head--center .top-title {
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.info-card__cards--three {
	grid-template-columns: repeat(3, 1fr);
}

/* ============ BACKERS ============ */
/* Soft-pink stage with a faint grid behind the heading + logo wall. */
.section-backers {
	--backer-line: #ffa7ed;
	position: relative;
	background: #ffbcf1;
	padding: 72px 0;
	overflow: hidden;
}

.backers__grid {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(var(--backer-line) 1px, transparent 1px), linear-gradient(90deg, var(--backer-line) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 85%);
	mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 85%);
	pointer-events: none;
}

/* Keep content above the grid */
.section-backers .container {
	position: relative;
	z-index: 1;
}

.backers__head {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
}

.backers__head .top-title {
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #5a4a55;
}

.backers__head .title {
	margin-bottom: 18px;
}

.backers__lead {
	max-width: 460px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.6;
	color: #5a4a55;
}

/* ----- Logo marquee ----- */
/* Full-bleed wall; two identical tracks scroll RIGHT in a seamless loop.
   The track starts shifted left one list-width and animates back to 0. */
.logos {
	position: relative;
	z-index: 1;
	margin: 64px 0;
	overflow: hidden;
	/* Fade the wall out toward both edges */
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logos__track {
	display: flex;
	width: max-content;
	animation: logos-right 32s linear infinite;
}

/* Hover anywhere on the wall pauses the scroll */
.logos:hover .logos__track {
	animation-play-state: paused;
}

.logos__list {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 24px;
	margin: 0;
	padding: 0 12px 0 0;
	list-style: none;
}

/* White logo chip */
.logos__item {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	height: 88px;
	overflow: hidden;
	background: var(--white);
	border-radius: 20px;
}

.logos__item img {
	width: auto;
	height: 100%;
	object-fit: contain;
}

@keyframes logos-right {
	from {
		transform: translateX(-50%);
	}
	to {
		transform: translateX(0);
	}
}

/* Honor reduced-motion: freeze the wall in place */
@media (prefers-reduced-motion: reduce) {
	.logos__track {
		animation: none;
	}
}

/* ----- Proudly part of ----- */
.backers__partners {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.backers__partners-label {
	letter-spacing: 0.06em;
	color: #383838;
}

.backers__badges {
	display: flex;
	align-items: center;
	gap: 12px;
}

.backers__badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 20px;
	background: rgba(255, 255, 255, 0.4);
	border-radius: 18px;
}

.backers__badge img {
	height: 20px;
	width: auto;
	display: block;
}

/* ============ OPEN ROLES ============ */
.section-roles {
	background: var(--white);
	padding: 80px 0;
}

/* Head: title block left, supporting note right */
.roles__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 40px;
	margin-bottom: 64px;
}

.roles__note {
	max-width: 345px;
	flex-shrink: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--text-mute);
}

.roles__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid #e6e6e6;
}

/* Each role is a row: title | role name | location | apply. A subtle hover state
   tints the row, recolors the title, and reveals a connector on the right. */
.role-item {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 200px 160px auto;
	align-items: center;
	gap: 64px;
	padding: 32px;
	border-bottom: 1px solid #e6e6e6;
	transition-property: all !important;
}

.role-item:hover {
	background: rgba(235, 235, 235, 0.5);
}

.role-item__title {
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--text-title);
	transition: color 0.3s ease;
}

.role-item:hover .role-item__title {
	color: var(--primary);
}

.role-item__role-name,
.role-item__loc {
	font-size: 16px;
	color: var(--text-mute);
}

.role-item__apply {
	min-width: 92px;
}

/* On hover the outline CTA turns solid black */
.role-item:hover .role-item__apply {
	background: var(--bg-reverse);
	border-color: var(--bg-reverse);
	color: var(--white);
}

/* Connector that pokes out past the right edge on hover (matches mock) */
.role-item__apply::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -16px;
	width: 12px;
	height: 1px;
	background: var(--primary);
	transform: translateY(-50%) scaleX(0);
	transform-origin: left center;
	opacity: 0;
	transition:
		transform 0.3s ease,
		opacity 0.3s ease;
}

.role-item:hover .role-item__apply::after {
	transform: translateY(-50%) scaleX(1);
	opacity: 1;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1199px) {
	.section-career-hero {
		padding: 72px 0 64px;
	}
	.career-stat__num {
		font-size: 34px;
	}
	.logos__item {
		height: 84px;
	}
	.role-item {
		grid-template-columns: minmax(0, 1fr) 160px 130px auto;
		gap: 40px;
		padding: 20px;
	}
	.role-item__title {
		font-size: 20px;
	}
}

@media (max-width: 991px) {
	.section-career-hero {
		padding: 56px 0;
	}
	.career-hero__lead {
		font-size: 16px;
	}
	.career-hero__cta {
		margin-top: 28px;
	}
	.career-stats {
		margin-top: 48px;
		gap: 24px;
	}
	.career-stat__num {
		font-size: 30px;
	}
	/* BENEFIT: drop to two columns (matches info-card base at this width) */
	.info-card__cards--three {
		grid-template-columns: repeat(2, 1fr);
	}
	.section-backers,
	.section-roles {
		padding: 56px 0;
	}
	.role-item {
		grid-template-columns: minmax(0, 1fr) 130px 110px auto;
		gap: 16px;
		padding-left: 0;
		padding-right: 0;
	}
	.role-item__title {
		font-size: 17px;
	}
	.role-item__role-name,
	.role-item__loc {
		font-size: 14px;
	}
}

@media (max-width: 767px) {
	.career-hero__title {
		margin-bottom: 20px;
	}
	.career-stats {
		gap: 12px;
		text-align: left;
	}
	.career-stat__num {
		font-size: 18px;
	}
	.career-stat__label {
		font-size: 12px;
		margin-top: 8px;
	}
	.career-hero__cta {
		margin-top: 24px;
	}
	/* BACKERS: stack the partner row */
	.backers__partners {
		flex-direction: column;
		align-items: center;
		gap: 16px;
		text-align: center;
	}
	.logos__item {
		height: 76px;
	}
	.backers__badge {
		padding: 4px 12px;
	}
	.backers__badge img {
		height: 16px;
	}
	/* ROLES: title block over the note */
	.roles__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
	.roles__note {
		max-width: none;
	}
	/* Compact two-line rows: title spans the top, meta + CTA below */
	.role-item {
		grid-template-columns: 1fr auto;
		gap: 8px 16px;
		padding: 16px 0;
	}
	.role-item__title {
		grid-column: 1 / -1;
	}
	.role-item__role-name {
		grid-column: 1;
	}
	.role-item__loc {
		display: block;
		grid-column: 1;
	}
	.role-item__apply {
		grid-column: 2;
		grid-row: 2 / span 2;
		align-self: center;
	}
	/* Drop the poke-out connector on touch layouts */
	.role-item__apply::after {
		display: none;
	}
}

@media (max-width: 539px) {
	.section-career-hero {
		padding: 48px 0;
	}
	.career-hero__lead {
		font-size: 15px;
	}
	.career-hero__cta {
		width: 100%;
	}
	.career-stat {
		padding: 16px 0;
	}
	.roles__head {
		margin-bottom: 36px;
	}
	/* BENEFIT: single column on mobile */
	.info-card__cards--three {
		grid-template-columns: 1fr;
	}
	.logos {
		margin: 36px 0;
	}
	.logos__item {
		height: 56px;
	}
}
