/* Agent Recruitment, Chapter 02 (The Opportunity) - staging only - 1.0.0-recruit-ch02-t6332u
   Continues Chapter 01 (same tokens: navy/ink/ivory/gold, Cinzel headings, Inter body). Scroll position drives the story (script sets --b / --f); the gold line is an SVG
   drawn by script from real layout positions. No animation library, no scroll lock. Hidden start states exist only when script runs (html.js-rc, set by the Chapter 01
   head flag, reduced motion off). Without script, with script blocked, or with reduced motion: all copy, both objects and the line are shown, static. */
.rc2 {
	overflow-x: clip;
	--navy: #0c263a;
	--ink: #071624;
	--ivory: #f6f2ea;
	--gold: #d5ae59;
	--gold-lt: #e8ca86;
	position: relative;
	background: var(--ink);
	color: var(--ivory);
	font-family: Inter, Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
}
.rc2 *, .rc2 *::before, .rc2 *::after { box-sizing: border-box; }
:where(.rc2) :where(h2, h3, p) { margin: 0; }
.rc2 img { max-width: 100%; display: block; }

.rc2-ch {
	position: relative;
	isolation: isolate;
	padding: 56px 0 0;
	background: linear-gradient(180deg, var(--navy) 0, var(--ink) 560px);
}

/* Static line (no script / script blocked): same x as the Chapter 01 line, whole chapter height. Hidden once the script has drawn the real branching line. */
.rc2-fallback {
	display: block;
	position: absolute;
	z-index: 1;
	top: 0;
	bottom: 0;
	left: calc(max(0px, (100% - 1440px) / 2) + 24px);
	width: 2px;
	background: var(--gold);
	pointer-events: none;
}
.rc2[data-rc2-ready] .rc2-fallback { display: none; }
.rc2-lines { position: absolute; left: 0; top: 0; z-index: 1; display: block; overflow: visible; pointer-events: none; }
.rc2-lines path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: butt; stroke-linejoin: round; shape-rendering: geometricPrecision; }
.rc2-lines circle { fill: var(--gold); }

/* ---------- Head ---------- */
.rc2-head { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; padding: 0 24px; }
.rc2-eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	line-height: 1.4;
	color: var(--gold-lt);
}
.rc2-h {
	margin-top: 14px;
	font-family: Cinzel, "Times New Roman", serif;
	font-weight: 500;
	font-size: clamp(30px, 8vw, 42px);
	line-height: 1.1;
	letter-spacing: 0.01em;
	color: #f7f4ee;
}
.rc2-intro { margin-top: 20px; font-size: 17px; line-height: 1.65; color: rgba(246, 242, 234, 0.95); }

/* ---------- Fork (spacer the split is drawn in) ---------- */
.rc2-fork { height: 112px; }

/* ---------- Paths ---------- */
.rc2-paths { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; padding: 0 24px; }
.rc2-path + .rc2-path { margin-top: 56px; }
.rc2-obj { position: relative; z-index: 2; width: min(66vw, 300px); }
.rc2-obj--R { width: min(70vw, 318px); margin-left: auto; }
.rc2-obj__img { width: 100%; height: auto; filter: drop-shadow(0 12px 18px rgba(2, 10, 18, 0.5)); }
.rc2-h3 {
	margin-top: 22px;
	font-family: Cinzel, "Times New Roman", serif;
	font-weight: 500;
	font-size: clamp(22px, 6vw, 28px);
	line-height: 1.2;
	letter-spacing: 0.01em;
	color: var(--gold-lt);
}
.rc2-tag { margin-top: 10px; font-size: 18px; font-weight: 600; line-height: 1.4; color: #f7f4ee; }
.rc2-body { margin-top: 12px; font-size: 17px; line-height: 1.65; color: rgba(246, 242, 234, 0.92); }

/* ---------- Shared benefit + closing ---------- */
.rc2-benefit { position: relative; z-index: 2; max-width: 640px; margin: 64px auto 0; padding: 0 24px; text-align: center; }
.rc2-ben {
	font-family: Cinzel, "Times New Roman", serif;
	font-weight: 500;
	font-size: clamp(22px, 6vw, 28px);
	line-height: 1.25;
	letter-spacing: 0.01em;
	color: var(--gold-lt);
}
.rc2-ben, .rc2-c1, .rc2-c2, .rc2-h3 { text-wrap: balance; }
.rc2-note { margin: 12px auto 0; max-width: 34ch; font-size: 16px; line-height: 1.6; color: rgba(246, 242, 234, 0.9); }
.rc2-close { position: relative; z-index: 2; max-width: 640px; margin: 120px auto 0; padding: 0 24px; text-align: center; }
.rc2-c1 {
	font-family: Cinzel, "Times New Roman", serif;
	font-weight: 500;
	font-size: clamp(24px, 6.4vw, 34px);
	line-height: 1.2;
	letter-spacing: 0.01em;
	color: #f7f4ee;
}
.rc2-c2 {
	margin-top: 12px;
	font-family: Cinzel, "Times New Roman", serif;
	font-weight: 500;
	font-size: clamp(19px, 5vw, 24px);
	line-height: 1.3;
	letter-spacing: 0.01em;
	color: var(--gold-lt);
}
.rc2-end { height: 120px; }

/* ---------- Scroll-driven start states (only with script, reduced motion off) ---------- */
.js-rc .rc2 .rc2-r {
	opacity: var(--b, 0);
	transform: translate3d(0, calc((1 - var(--b, 0)) * 14px), 0);
}
.js-rc .rc2 .rc2-obj {
	opacity: var(--f, 0);
	transform: translate3d(calc(var(--side, -1) * (1 - var(--f, 0)) * var(--slide, 64px)), 0, 0);
}
.js-rc .rc2 .rc2-obj { will-change: transform, opacity; }
.rc2-obj--L { --side: -1; }
.rc2-obj--R { --side: 1; }
/* Fail-safe: if the script never starts, everything still appears (never permanently hidden). */
.js-rc .rc2:not([data-rc2-live]) .rc2-r,
.js-rc .rc2:not([data-rc2-live]) .rc2-obj { animation: rc2-failsafe 0.01s linear 4s forwards; }
@keyframes rc2-failsafe { to { opacity: 1; transform: none; } }

/* ---------- Gold line position for the no-script fallback: same breakpoints as Chapter 01 ---------- */
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
	.rc2-fallback { left: 11px; }
}
@media (min-width: 560px) and (max-width: 900px), (min-width: 560px) and (max-aspect-ratio: 1/1) {
	.rc2-fallback { left: 19px; }
	.rc2-head, .rc2-paths, .rc2-benefit, .rc2-close { padding-left: 40px; padding-right: 40px; }
}

/* ---------- Wide: two balanced columns, centre fork ---------- */
@media (min-width: 901px) {
	.rc2-ch { padding-top: 72px; }
	.rc2-head { max-width: 1440px; padding: 0 48px; }
	.rc2-head > * { max-width: 640px; }
	.rc2-h { font-size: clamp(36px, 3.4vw, 56px); }
	.rc2-intro { margin-top: 22px; font-size: 18px; max-width: 40ch; }
	.rc2-fork { height: 270px; }
	.rc2-paths {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: clamp(40px, 6vw, 96px);
		align-items: start;
		max-width: 1180px;
		padding: 0 48px;
	}
	.rc2-path { text-align: center; }
	.rc2-path + .rc2-path { margin-top: 0; }
	.rc2-obj, .rc2-obj--R { width: clamp(250px, 25vw, 380px); margin: 0 auto; }
	.rc2-obj--R { width: clamp(265px, 26.5vw, 403px); }
	.rc2-h3 { margin-top: 26px; font-size: clamp(24px, 2.1vw, 32px); }
	.rc2-tag { margin-top: 10px; font-size: 19px; }
	.rc2-body { margin: 12px auto 0; max-width: 36ch; }
	.rc2-benefit { max-width: min(480px, 40%); margin-top: 72px; padding: 0; }
	.rc2-ben { font-size: clamp(24px, 2.1vw, 32px); }
	.rc2-note { margin-top: 12px; }
	.rc2-close { margin-top: 130px; max-width: 900px; }
	.rc2-c1 { font-size: clamp(26px, 2.3vw, 38px); }
	.rc2-c2 { font-size: clamp(21px, 1.9vw, 28px); }
	.rc2-end { height: 150px; }
	.rc2-fallback { left: calc(max(0px, (100% - 1440px) / 2) + 24px); }
}
/* Wide but portrait (large tablet held upright): Chapter 01 is stacked there and its line sits at 19px. */
@media (min-width: 901px) and (max-aspect-ratio: 1/1) {
	.rc2-fallback { left: 19px; }
}

@media (prefers-reduced-motion: reduce) {
	.rc2 .rc2-r, .rc2 .rc2-obj { opacity: 1 !important; transform: none !important; animation: none !important; }
}
