/* Agent Recruitment, Chapter 04 (Your Business. Your Opportunities.) - staging only - 1.0.0-recruit-ch04-t6435u
   An interactive showcase, deliberately NOT a gold-line scroll story: a lighter brand-blue section (no vertical line, no timeline), four selectable cards and one shared display.
   Same tokens as Chapters 01-03 (ink/navy/ivory/gold, Cinzel headings, Inter body). No animation library. Photo crossfade 250 ms; description typed at ~30 ms per character by script. */
.rc4 {
	overflow-x: clip;
	--navy: #0c263a;
	--navy-hi: #12344f;
	--ink: #071624;
	--brand: #274565;
	--ivory: #f6f2ea;
	--gold: #d5ae59;
	--gold-lt: #e8ca86;
	position: relative;
	color: var(--ivory);
	font-family: Inter, Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	background: var(--ink);
}
.rc4 *, .rc4 *::before, .rc4 *::after { box-sizing: border-box; }
.rc4 h2, .rc4 h3, .rc4 p, .rc4 figure { margin: 0; }
.rc4 img { max-width: 100%; display: block; }

/* Section transition: starts exactly on the Chapter 03 ink and settles into the brand blue; a short horizontal gold rule (not a vertical line) marks the new chapter. */
.rc4-ch {
	position: relative;
	padding: 88px 0 96px;
	background: linear-gradient(180deg, var(--ink) 0, #15304a 160px, var(--brand) 420px, #1f3b5a 100%);
}
.rc4-ch::before {
	content: "";
	position: absolute;
	top: 40px;
	left: 50%;
	width: 64px;
	height: 2px;
	margin-left: -32px;
	background: var(--gold);
}

.rc4-head { max-width: 760px; margin: 0 auto; padding: 0 24px; text-align: center; }
.rc4-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; line-height: 1.4; color: var(--gold-lt); }
.rc4-h {
	margin-top: 14px;
	font-family: Cinzel, "Times New Roman", serif;
	font-weight: 500;
	font-size: clamp(28px, 7.6vw, 42px);
	line-height: 1.12;
	letter-spacing: 0.01em;
	color: #f7f4ee;
	text-wrap: balance;
}
.rc4-intro { margin-top: 18px; font-size: 19px; line-height: 1.5; color: #fff; }
.rc4-instr { margin-top: 10px; font-size: 16px; line-height: 1.5; color: rgba(246, 242, 234, 0.92); }

/* ---------- Cards + showcase ---------- */
.rc4-ui { max-width: 1240px; margin: 40px auto 0; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.rc4-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rc4-card {
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 104px;
	margin: 0;
	padding: 14px 10px;
	border: 2px solid rgba(213, 174, 89, 0.28);
	border-radius: 10px;
	background: var(--navy);
	color: var(--ivory);
	font: inherit;
	text-align: center;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	transition: border-color 0.2s, background-color 0.2s;
}
.rc4-ico { width: 32px; height: 32px; color: var(--gold); flex: none; }
.rc4-card-t { font-family: Cinzel, "Times New Roman", serif; font-weight: 500; font-size: 17px; line-height: 1.2; letter-spacing: 0.01em; text-wrap: balance; }
.rc4-card:hover { border-color: rgba(232, 202, 134, 0.7); }
.rc4-card.is-active { border-color: var(--gold); background: var(--navy-hi); box-shadow: inset 0 0 0 1px rgba(232, 202, 134, 0.45); }
.rc4-card.is-active .rc4-card-t { color: var(--gold-lt); }
/* Keyboard focus: its own two-tone ring (white outer, dark gap), separate from the gold selected border. */
.rc4-card:focus-visible { outline: 3px solid #fff !important; outline-offset: 3px !important; box-shadow: 0 0 0 3px #04101a; }
.rc4-card.is-active:focus-visible { box-shadow: inset 0 0 0 1px rgba(232, 202, 134, 0.45), 0 0 0 3px #04101a; }

.rc4-show { border: 1px solid rgba(213, 174, 89, 0.35); border-radius: 12px; overflow: hidden; background: var(--navy); box-shadow: 0 18px 38px rgba(2, 10, 18, 0.45); }
.rc4-fig { position: relative; width: 100%; aspect-ratio: 1672 / 941; background: #0a1d2e; overflow: hidden; }
.rc4-layer { position: absolute; inset: 0; opacity: 0; z-index: 0; transition: none; }
.rc4-layer.is-prev { opacity: 1; z-index: 1; }
.rc4-layer.is-active { opacity: 1; z-index: 2; transition: opacity 250ms linear; }
.rc4-layer picture { display: block; width: 100%; height: 100%; }
.rc4-img { width: 100%; height: 100%; object-fit: cover; }

.rc4-copy { padding: 22px 22px 24px; }
.rc4-sizer { display: grid; }
.rc4-sizer > * { grid-area: 1 / 1; }
.rc4-twin { visibility: hidden; pointer-events: none; user-select: none; -webkit-user-select: none; }
.rc4-sh {
	font-family: Cinzel, "Times New Roman", serif;
	font-weight: 500;
	font-size: clamp(22px, 6vw, 30px);
	line-height: 1.2;
	letter-spacing: 0.01em;
	color: var(--gold-lt);
}
.rc4-twin-h { font-family: Cinzel, "Times New Roman", serif; font-weight: 500; font-size: clamp(22px, 6vw, 30px); line-height: 1.2; letter-spacing: 0.01em; }
.rc4-sizer + .rc4-sizer { margin-top: 12px; }
.rc4-sd, .rc4-twin-d { font-size: 17px; line-height: 1.65; color: rgba(246, 242, 234, 0.96); }
.rc4-twin-d { display: block; }
/* The not-yet-typed part keeps its place (no re-wrapping while typing) and stays in the page for assistive technology; it is simply not painted. */
.rc4-rest { color: transparent; user-select: none; -webkit-user-select: none; }
.rc4-cursor { display: none; position: relative; width: 0; height: 1em; }
.rc4-cursor::after { content: ""; position: absolute; left: 1px; bottom: -0.15em; width: 2px; height: 1.15em; background: var(--gold); }
.rc4-sd.is-typing .rc4-cursor { display: inline-block; }
.rc4-live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* No-script fallback: all four opportunities as text. */
.rc4-ns { max-width: 760px; margin: 28px auto 0; padding: 0 24px; display: grid; gap: 18px; }
.rc4-ns-h { font-family: Cinzel, "Times New Roman", serif; font-weight: 500; font-size: 22px; color: var(--gold-lt); }
.rc4-ns-p { margin-top: 6px; }
@media (scripting: none) { .rc4-cards { display: none; } .rc4-show { display: none; } }

/* ---------- Closing statement ---------- */
.rc4-close { max-width: 820px; margin: 64px auto 0; padding: 0 24px; text-align: center; }
.rc4-c { font-family: Cinzel, "Times New Roman", serif; font-weight: 500; font-size: clamp(22px, 5.6vw, 32px); line-height: 1.3; letter-spacing: 0.01em; color: #f7f4ee; text-wrap: balance; }

@media (min-width: 561px) and (max-width: 900px) {
	.rc4-ui { padding: 0 40px; }
	.rc4-head { padding: 0 40px; }
	.rc4-close { padding: 0 40px; }
	.rc4-card { min-height: 120px; }
}

/* ---------- Wide: cards left (2x2), large showcase right ---------- */
@media (min-width: 901px) {
	.rc4-ch { padding: 112px 0 120px; }
	.rc4-ch::before { top: 56px; }
	.rc4-h { font-size: clamp(36px, 3.4vw, 56px); }
	.rc4-intro { font-size: 22px; }
	.rc4-ui { margin-top: 56px; padding: 0 48px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
	.rc4-cards { gap: 16px; }
	.rc4-card { min-height: 168px; gap: 14px; padding: 20px 14px; }
	.rc4-ico { width: 40px; height: 40px; }
	.rc4-card-t { font-size: clamp(17px, 1.5vw, 21px); }
	.rc4-copy { padding: 28px 32px 32px; }
	.rc4-sh { font-size: clamp(26px, 2.2vw, 34px); }
	.rc4-twin-h { font-size: clamp(26px, 2.2vw, 34px); }
	.rc4-sd, .rc4-twin-d { font-size: 18px; }
	.rc4-close { margin-top: 88px; max-width: 1000px; }
	.rc4-c { font-size: clamp(26px, 2.4vw, 38px); }
}

@media (prefers-reduced-motion: reduce) {
	.rc4-layer.is-active { transition: none; }
	.rc4-card { transition: none; }
}
