/* Agent Recruitment, Chapter 06 (The Future Platform) - staging only - 1.0.0-recruit-ch06-t6441u
   One DOM, two presentations:
   - default (mobile, tablet, portrait, reduced motion, no script): stacked moments, all copy and all five images visible and static, illustrative captions visible.
   - stage (script sets data-rc6-mode="stage" on wide landscape screens, motion allowed): a pinned (position: sticky) workspace. The opening workspace stays as the dimmed backdrop while the
     webpage, portal and resources artwork rise in as layered frames (560 ms), then the people photograph takes over (560 ms). Text reveals 320 ms, headline then description.
     One scroll-linked value --k per moment drives a small scale. Normal scrolling is never intercepted; after moment 5 the section simply ends. Hidden start states exist only when script set a mode. */
.rc6 {
	overflow-x: clip;
	--navy: #0c263a;
	--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);
}
.rc6 *, .rc6 *::before, .rc6 *::after { box-sizing: border-box; }
.rc6 h2, .rc6 h3, .rc6 p, .rc6 figure, .rc6 ul { margin: 0; padding: 0; }
.rc6 img { max-width: 100%; display: block; }
.rc6-ch { position: relative; background: linear-gradient(180deg, #0a2036 0, var(--ink) 220px, var(--ink) 100%); padding: 88px 0 0; }

/* ---------- Default: stacked ---------- */
.rc6-open { max-width: 780px; margin: 0 auto; padding: 0 24px; text-align: center; }
.rc6-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; line-height: 1.4; color: var(--gold-lt); }
.rc6-title { margin-top: 12px; font-family: Cinzel, "Times New Roman", serif; font-weight: 500; font-size: clamp(20px, 5.4vw, 26px); letter-spacing: 0.06em; color: var(--gold-lt); }
.rc6-open-h { margin-top: 22px; font-family: Cinzel, "Times New Roman", serif; font-weight: 500; font-size: clamp(30px, 8.4vw, 46px); line-height: 1.12; color: #f7f4ee; text-wrap: balance; }
.rc6-open-sub { margin-top: 14px; font-size: 19px; font-weight: 600; letter-spacing: 0.04em; color: var(--gold-lt); }
.rc6-open-p { margin-top: 14px; font-size: 18px; line-height: 1.6; color: rgba(246, 242, 234, 0.96); }

.rc6-m { max-width: 760px; margin: 64px auto 0; padding: 0 24px; }
.rc6-fig { position: relative; width: 100%; }
.rc6-fig picture { display: block; width: 100%; aspect-ratio: 1672 / 941; border-radius: 10px; overflow: hidden; background: #0a1d2e; box-shadow: 0 18px 38px rgba(2, 10, 18, 0.5); }
.rc6-img { width: 100%; height: 100%; object-fit: cover; }
.rc6-cap { margin-top: 10px; font-size: 14px; line-height: 1.45; color: rgba(246, 242, 234, 0.92); font-style: italic; }
.rc6-txt { margin-top: 24px; }
.rc6-hd { font-family: Cinzel, "Times New Roman", serif; font-weight: 500; font-size: clamp(26px, 7vw, 34px); line-height: 1.18; color: #f7f4ee; text-wrap: balance; }
.rc6-sp { margin-top: 14px; font-size: 18px; line-height: 1.6; color: rgba(246, 242, 234, 0.96); }
.rc6-close { margin-top: 16px; font-family: Cinzel, "Times New Roman", serif; font-size: clamp(21px, 5.6vw, 28px); line-height: 1.3; color: var(--gold-lt); text-wrap: balance; }
.rc6-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 16px; }
.rc6-chips li { font-size: 14px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-lt); position: relative; padding-left: 16px; }
.rc6-chips li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--gold); }
.rc6-m--final .rc6-txt { text-align: center; }
.rc6-exit { height: 96px; background: linear-gradient(180deg, var(--ink), #0a2036); }

@media (min-width: 561px) and (max-width: 900px) { .rc6-open, .rc6-m { padding-left: 40px; padding-right: 40px; } }
@media (min-width: 901px) {
	.rc6-ch { padding-top: 112px; }
	.rc6-open-h { font-size: clamp(40px, 4.6vw, 64px); }
	.rc6-m { max-width: 960px; margin-top: 80px; }
	.rc6-hd { font-size: clamp(30px, 3vw, 44px); }
}

/* Flow mode (script ready, stacked layout, motion allowed): gentle reveals as each part scrolls in. */
[data-rc6-mode="flow"] .rc6-rv { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity 0.35s ease, transform 0.35s ease; }
[data-rc6-mode="flow"] .rc6-rv.is-in { opacity: 1; transform: none; }
[data-rc6-mode="flow"] .rc6-fig.rc6-rv { transition-duration: 0.55s; }
[data-rc6-mode="flow"] .rc6-sp.rc6-rv { transition-delay: 0.15s; }

/* ---------- Stage mode: pinned layered workspace ---------- */
[data-rc6-mode="stage"] .rc6-ch { padding: 0; background: var(--ink); }
[data-rc6-mode="stage"] .rc6-track { position: relative; height: 760vh; height: 760svh; }
[data-rc6-mode="stage"] .rc6-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #0a2036 0, #0b1d2e 40%, var(--ink) 100%); }
/* left-hand reading scrim, over the workspace backdrop, under the frames */
[data-rc6-mode="stage"] .rc6-stage::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.56s ease; background: linear-gradient(90deg, rgba(4, 12, 20, 0.95) 0, rgba(4, 12, 20, 0.9) 30%, rgba(4, 12, 20, 0.5) 46%, rgba(4, 12, 20, 0) 62%); }
[data-rc6-mode="stage"][data-rc6-n="1"] .rc6-stage::before, [data-rc6-mode="stage"][data-rc6-n="2"] .rc6-stage::before, [data-rc6-mode="stage"][data-rc6-n="3"] .rc6-stage::before, [data-rc6-mode="stage"][data-rc6-n="4"] .rc6-stage::before { opacity: 1; }

[data-rc6-mode="stage"] .rc6-open { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: none; padding: 0 48px; margin: 0; }
[data-rc6-mode="stage"] .rc6-open > * { max-width: 980px; opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 0.25s ease, transform 0.25s ease; }
[data-rc6-mode="stage"] .rc6-open.is-on > * { opacity: 1; transform: none; transition: opacity 0.4s ease, transform 0.4s ease; }
[data-rc6-mode="stage"] .rc6-open.is-on > * { transition-delay: 0.2s; }   /* T6444U: the opening waits for moment 1's text (0.2 s fade-out) on reverse scroll */
[data-rc6-mode="stage"] .rc6-open.is-on > .rc6-title { transition-delay: 0.35s; }
[data-rc6-mode="stage"] .rc6-open.is-on > .rc6-open-h { transition-delay: 0.6s; }
[data-rc6-mode="stage"] .rc6-open.is-on > .rc6-open-sub { transition-delay: 0.9s; }
[data-rc6-mode="stage"] .rc6-open.is-on > .rc6-open-p { transition-delay: 1.15s; }
[data-rc6-mode="stage"] .rc6-open-h { font-size: clamp(44px, 5.2vw, 84px); }
[data-rc6-mode="stage"] .rc6-open-p { font-size: clamp(18px, 1.5vw, 22px); }

[data-rc6-mode="stage"] .rc6-m { position: absolute; inset: 0; max-width: none; margin: 0; padding: 0; pointer-events: none; }
[data-rc6-mode="stage"] .rc6-fig { position: absolute; width: auto; opacity: 0; transition: opacity 560ms ease, transform 560ms ease, filter 560ms ease; }
[data-rc6-mode="stage"] .rc6-fig picture { height: 100%; }
[data-rc6-mode="stage"] .rc6-img { transform: scale(calc(1.01 + 0.04 * var(--k, 0))); will-change: transform; }

/* moment 1: the workspace, full bleed backdrop; faint behind the opening, crisp for moment 1, dimmed once the frames arrive */
[data-rc6-mode="stage"] .rc6-m--full .rc6-fig { inset: 0; z-index: 1; width: 100%; height: 100%; }
[data-rc6-mode="stage"] .rc6-m--full .rc6-fig picture { border-radius: 0; box-shadow: none; }
[data-rc6-mode="stage"] .rc6-m--full .rc6-img { transform: scale(calc(1.02 + 0.07 * var(--k, 0))); }
[data-rc6-mode="stage"][data-rc6-n="0"] .rc6-m--full .rc6-fig { opacity: 0.22; }
[data-rc6-mode="stage"] .rc6-m--full.is-on .rc6-fig, [data-rc6-mode="stage"] .rc6-m--full.is-past .rc6-fig { opacity: 1; }
[data-rc6-mode="stage"] .rc6-m--full.is-past .rc6-fig { filter: brightness(0.34); }

/* moments 2-4: layered frames that rise into place on the right */
[data-rc6-mode="stage"] .rc6-m--frame .rc6-fig { right: 4vw; top: 46%; width: min(56vw, calc(70vh * 1672 / 941)); z-index: 3; transform: translate3d(0, calc(-50% + 40px), 0) scale(0.94); }
[data-rc6-mode="stage"] .rc6-m--frame[data-rc6-m="3"] .rc6-fig { z-index: 4; }
[data-rc6-mode="stage"] .rc6-m--frame[data-rc6-m="4"] .rc6-fig { z-index: 5; }
[data-rc6-mode="stage"] .rc6-m--frame.is-on .rc6-fig { opacity: 1; transform: translate3d(0, -50%, 0) scale(1); }
[data-rc6-mode="stage"] .rc6-m--frame.is-past .rc6-fig { opacity: 0; transform: translate3d(0, -50%, 0) scale(0.97); transition: opacity 0.3s ease 0.5s, transform 0.5s ease; }
[data-rc6-mode="stage"] .rc6-m--frame .rc6-fig picture { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); border: 1px solid rgba(232, 202, 134, 0.28); }
[data-rc6-mode="stage"] .rc6-m--frame[data-rc6-m="4"].is-on .rc6-fig picture { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 38px rgba(213, 174, 89, 0.2); }
[data-rc6-mode="stage"] .rc6-cap { position: absolute; left: 0; right: 0; top: 100%; margin-top: 12px; font-size: 14px; }
/* T6444U (SVA-L-000656): clean caption handoff. The outgoing caption leaves in 0.15 s; the incoming one appears after 0.3 s (0.3 s fade), so two captions never show at once.
   The image timing (560 ms) and text timing (250-400 ms) are unchanged. */
[data-rc6-mode="stage"] .rc6-m--frame .rc6-cap { opacity: 0; transition: opacity 0.15s ease; }
[data-rc6-mode="stage"] .rc6-m--frame.is-on .rc6-cap { opacity: 1; transition: opacity 0.3s ease 0.3s; }

/* moment 5: back to people; warmer, full bleed, with a reading scrim at the foot */
[data-rc6-mode="stage"] .rc6-m--final .rc6-fig { inset: 0; z-index: 7; width: 100%; height: 100%; }
[data-rc6-mode="stage"] .rc6-m--final .rc6-fig picture { border-radius: 0; box-shadow: none; position: relative; }
[data-rc6-mode="stage"] .rc6-m--final .rc6-fig picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 12, 20, 0.96) 0, rgba(4, 12, 20, 0.9) 30%, rgba(4, 12, 20, 0.5) 54%, rgba(4, 12, 20, 0) 78%), rgba(170, 105, 40, 0.1); }
[data-rc6-mode="stage"] .rc6-m--final.is-on .rc6-fig { opacity: 1; }

/* text column */
[data-rc6-mode="stage"] .rc6-txt { position: absolute; z-index: 20; margin: 0; left: 5vw; top: 46%; width: min(33vw, 470px); transform: translate3d(0, -50%, 0); }
[data-rc6-mode="stage"] .rc6-hd { font-size: clamp(28px, 2.7vw, 42px); }
[data-rc6-mode="stage"] .rc6-sp { font-size: clamp(17px, 1.3vw, 20px); }
[data-rc6-mode="stage"] .rc6-m--final .rc6-txt { left: 50%; top: auto; bottom: 7vh; width: min(88vw, 940px); transform: translate3d(-50%, 0, 0); }
[data-rc6-mode="stage"] .rc6-m--final .rc6-hd { font-size: clamp(22px, 1.9vw, 28px); color: var(--gold-lt); }
[data-rc6-mode="stage"] .rc6-close { font-size: clamp(24px, 2.7vw, 40px); color: #fbf8f1; }
[data-rc6-mode="stage"] .rc6-m--final .rc6-sp { color: var(--gold-lt); font-weight: 500; }
/* connecting accent: a short gold rule that draws in beside the text */
[data-rc6-mode="stage"] .rc6-m--frame .rc6-txt::before { content: ""; display: block; width: 64px; height: 2px; margin-bottom: 20px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
[data-rc6-mode="stage"] .rc6-m--frame.is-on .rc6-txt::before { transform: scaleX(1); transition-delay: 0.2s; }

[data-rc6-mode="stage"] .rc6-txt .rc6-rv { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 0.2s ease, transform 0.2s ease; }
[data-rc6-mode="stage"] .rc6-m.is-on .rc6-hd { opacity: 1; transform: none; transition: opacity 0.32s ease 0.25s, transform 0.32s ease 0.25s; }
[data-rc6-mode="stage"] .rc6-m.is-on .rc6-close { opacity: 1; transform: none; transition: opacity 0.4s ease 0.6s, transform 0.4s ease 0.6s; }
[data-rc6-mode="stage"] .rc6-m.is-on .rc6-sp { opacity: 1; transform: none; transition: opacity 0.32s ease 0.5s, transform 0.32s ease 0.5s; }
[data-rc6-mode="stage"] .rc6-m--final.is-on .rc6-sp { transition-delay: 1s; }
[data-rc6-mode="stage"] .rc6-chips { display: flex; }
[data-rc6-mode="stage"] .rc6-chips.rc6-rv { opacity: 1; transform: none; }
[data-rc6-mode="stage"] .rc6-chips li { opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity 0.2s ease, transform 0.2s ease; }
[data-rc6-mode="stage"] .rc6-m.is-on .rc6-chips li { opacity: 1; transform: none; transition: opacity 0.32s ease, transform 0.32s ease; }
[data-rc6-mode="stage"] .rc6-m.is-on .rc6-chips li:nth-child(1) { transition-delay: 0.75s; }
[data-rc6-mode="stage"] .rc6-m.is-on .rc6-chips li:nth-child(2) { transition-delay: 0.9s; }
[data-rc6-mode="stage"] .rc6-m.is-on .rc6-chips li:nth-child(3) { transition-delay: 1.05s; }
[data-rc6-mode="stage"] .rc6-exit { height: 140px; margin-top: -1px; }
/* the figures are part of .rc6-rv for flow mode; in stage mode their own rules above govern */
[data-rc6-mode="stage"] .rc6-fig.rc6-rv { transform: none; }
[data-rc6-mode="stage"] .rc6-m--frame .rc6-fig.rc6-rv { transform: translate3d(0, calc(-50% + 40px), 0) scale(0.94); }
[data-rc6-mode="stage"] .rc6-m--frame.is-on .rc6-fig.rc6-rv { transform: translate3d(0, -50%, 0) scale(1); }
[data-rc6-mode="stage"] .rc6-m--frame.is-past .rc6-fig.rc6-rv { transform: translate3d(0, -50%, 0) scale(0.97); }

@media (prefers-reduced-motion: reduce) {
	.rc6 .rc6-rv, .rc6 .rc6-fig, .rc6 .rc6-img, .rc6 .rc6-hd, .rc6 .rc6-sp, .rc6 .rc6-open > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}
