/* Agent Recruitment, Chapter 07 (The Personal Invitation) - staging only - 1.0.0-recruit-ch07-t6443u
   Navy and gold, warm conversation photograph on the left, ivory inquiry form on the right, curved gold divider and the official logo at the close.
   Default (no script, reduced motion, mobile) = everything visible and static. With data-rc7-anim (script, motion allowed) the parts start hidden and are revealed once, in order:
   a) heading, b) photograph settles + invitation, c) form panel enters from the right, d) divider draws, logo and final statement. Classes are never removed. */
.rc7 {
	overflow-x: clip;
	--navy: #0e2236;
	--ink: #08182a;
	--brand: #274565;
	--ivory: #f8f3e8;
	--ivory-2: #fffdf8;
	--gold: #c9a45a;
	--gold-lt: #e3c27c;
	--text: #f6f2ea;
	position: relative;
	color: var(--text);
	font-family: Inter, Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	background: var(--ink);
}
.rc7 *, .rc7 *::before, .rc7 *::after { box-sizing: border-box; }
.rc7 h2, .rc7 h3, .rc7 p, .rc7 figure { margin: 0; padding: 0; }
.rc7 img { max-width: 100%; display: block; }
.rc7-ch { position: relative; padding: 84px 0 0; background: radial-gradient(ellipse 70% 50% at 35% 55%, rgba(160, 110, 55, 0.14), rgba(160, 110, 55, 0) 70%), linear-gradient(180deg, #0a2036 0, var(--navy) 260px, #0b1d31 100%); }

/* heading */
.rc7-head { max-width: 980px; margin: 0 auto; padding: 0 24px; text-align: center; }
.rc7-eyebrow { display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 14px; font-weight: 600; letter-spacing: 0.22em; color: var(--text); }
.rc7-eyebrow::before, .rc7-eyebrow::after { content: ""; height: 1px; width: min(18vw, 200px); background: linear-gradient(90deg, rgba(201, 164, 90, 0), var(--gold)); }
.rc7-eyebrow::after { background: linear-gradient(90deg, var(--gold), rgba(201, 164, 90, 0)); }
.rc7-desig { margin-top: 8px; font-size: 14px; letter-spacing: 0.26em; color: rgba(246, 242, 234, 0.92); }
.rc7-title { margin-top: 12px; font-family: "Playfair Display", Cinzel, Georgia, "Times New Roman", serif; font-weight: 600; font-size: clamp(32px, 8vw, 60px); line-height: 1.1; color: #fbf8f1; text-wrap: balance; }
.rc7-gold { color: var(--gold-lt); }
.rc7-sub { margin-top: 12px; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: clamp(18px, 4.6vw, 23px); color: rgba(246, 242, 234, 0.95); }

/* body: stacked by default */
.rc7-body { max-width: 760px; margin: 36px auto 0; padding: 0 20px; }
.rc7-left { position: relative; }
.rc7-photo { position: relative; aspect-ratio: 1060 / 620; overflow: hidden; border-radius: 10px; background: #12243a; }
.rc7-photo picture, .rc7-img { display: block; width: 100%; height: 100%; }
.rc7-img { object-fit: fill; }
/* masks over the reference's baked-in text/logo (positions in % of the 1060x620 crop) */
.rc7-mask { position: absolute; pointer-events: none; }
.rc7-mask--top { left: 36%; top: 0; width: 64%; height: 16%; background: linear-gradient(180deg, rgb(11, 19, 33) 0, rgb(11, 19, 33) 72%, rgba(11, 19, 33, 0) 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%); mask-image: linear-gradient(90deg, transparent 0, #000 9%); }
.rc7-mask--logo { left: 29%; top: 10%; width: 43%; height: 38%; background: radial-gradient(closest-side, rgb(21, 31, 45) 0, rgb(21, 31, 45) 82%, rgba(21, 31, 45, 0) 100%); }
.rc7-mask--foot { left: 0; right: 0; bottom: 0; height: 32%; background: linear-gradient(0deg, rgb(8, 18, 32) 0, rgb(8, 18, 32) 62%, rgba(8, 18, 32, 0) 100%); }
.rc7-photo-logo { position: absolute; left: 50.5%; top: 27.6%; width: 25%; transform: translate(-50%, -50%); }
.rc7-photo-logo picture, .rc7-logo { display: block; width: 100%; height: auto; }

.rc7-invite { position: relative; margin-top: 22px; text-align: center; }
.rc7-inv-h { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-style: italic; font-weight: 600; font-size: clamp(25px, 6.4vw, 34px); line-height: 1.2; color: var(--gold-lt); }
.rc7-inv-p { margin-top: 10px; font-size: 17px; line-height: 1.55; color: rgba(246, 242, 234, 0.96); }
.rc7-accent { display: block; height: 1px; width: 70%; margin: 16px auto 0; background: linear-gradient(90deg, rgba(201, 164, 90, 0), var(--gold), rgba(201, 164, 90, 0)); }

/* form */
.rc7-formwrap { margin-top: 30px; }
.rc7-form, .rc7-done { position: relative; background: linear-gradient(180deg, var(--ivory-2), var(--ivory)); color: #13202f; border: 1.5px solid var(--gold); border-radius: 16px; padding: 26px 22px 24px; box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38); }
.rc7-fh { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(24px, 6vw, 30px); line-height: 1.2; color: #0e2236; text-align: center; }
.rc7-fintro { margin-top: 6px; font-size: 15.5px; color: #24364a; text-align: center; }
.rc7-fdeco { display: block; width: 72px; height: 1px; margin: 12px auto 4px; background: var(--gold); }
.rc7-field { margin-top: 14px; }
.rc7-field label { display: block; font-size: 15px; font-weight: 700; color: #0e2236; }
.rc7-req { color: #9a2a1d; }
.rc7 .rc7-form input[type="text"], .rc7 .rc7-form input[type="email"], .rc7 .rc7-form select, .rc7 .rc7-form textarea {
	display: block; width: 100%; margin: 6px 0 0; padding: 11px 14px; font: inherit; font-size: 16px; line-height: 1.35; color: #13202f; background: #fff;
	border: 1px solid #b9ad95; border-radius: 9px; box-shadow: none; min-height: 46px; max-width: none;
}
.rc7 .rc7-form textarea { min-height: 96px; resize: vertical; }
.rc7 .rc7-form select { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, #0e2236 50%), linear-gradient(135deg, #0e2236 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.rc7 .rc7-form ::placeholder { color: #5d6672; opacity: 1; }
.rc7 .rc7-form input:focus-visible, .rc7 .rc7-form select:focus-visible, .rc7 .rc7-form textarea:focus-visible { outline: 3px solid #0e2236 !important; outline-offset: 2px; border-color: #0e2236; }
.rc7 .rc7-form [aria-invalid="true"] { border-color: #9a2a1d; }
.rc7-err, .rc7-ferr { margin-top: 6px; font-size: 14px; font-weight: 600; color: #9a2a1d; }
.rc7-ferr { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #fbeae6; }
.rc7-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13px; line-height: 1.45; color: #2b3a4b; }
.rc7-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #0e2236; }
.rc7-check input:focus-visible { outline: 3px solid #0e2236 !important; outline-offset: 2px; }
.rc7-check a { color: #0e2236; text-decoration: underline; }
.rc7-check a:focus-visible { outline: 3px solid #0e2236 !important; outline-offset: 2px; }
.rc7 .rc7-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 18px; min-height: 52px; padding: 12px 18px; font: inherit; font-size: 17px; font-weight: 700; letter-spacing: 0.01em;
	color: #fff; background: linear-gradient(180deg, #13304d, #0b1f33); border: 1px solid var(--gold); border-radius: 10px; cursor: pointer; text-transform: none; box-shadow: 0 0 0 0 rgba(201, 164, 90, 0); transition: box-shadow 0.3s ease, background 0.3s ease; }
.rc7 .rc7-submit:hover { background: linear-gradient(180deg, #183a5c, #0e2236); box-shadow: 0 0 0 3px rgba(201, 164, 90, 0.35); }
.rc7 .rc7-submit:focus-visible { outline: 3px solid #0e2236 !important; outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
.rc7 .rc7-submit[disabled] { opacity: 0.75; cursor: progress; }
.rc7-nojs { margin-top: 10px; font-size: 14px; color: #24364a; }
.rc7-done .rc7-fh:focus { outline: none; }

/* closing */
.rc7-close { position: relative; margin-top: 56px; padding: 0 0 56px; background: linear-gradient(180deg, rgba(8, 24, 42, 0), var(--ink) 50%); }
.rc7-curve { display: block; width: 100%; height: 60px; }
.rc7-curve path { fill: none; stroke: var(--gold); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.rc7-brand { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 980px; margin: 14px auto 0; padding: 0 24px; text-align: center; }
.rc7-brand-logo { display: block; width: 150px; }
.rc7-vr { display: none; }
.rc7-final { font-size: clamp(15px, 4vw, 20px); font-weight: 600; letter-spacing: 0.2em; color: #fbf8f1; }
.rc7-final-sub { margin-top: 6px; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: clamp(18px, 4.6vw, 23px); color: var(--gold-lt); }

@media (min-width: 561px) and (max-width: 900px) { .rc7-body { padding: 0 40px; } .rc7-form, .rc7-done { padding: 30px 34px 28px; } }

/* stacked and narrow two-column (<=1199px): clip the crop just above the reference's baked-in bottom copy (77.4% of its height);
   every overlay keeps its place on the full-height image (factor 620/480 = 1.2917) */
@media (max-width: 1199px) {
	.rc7-photo { aspect-ratio: 1060 / 480; }
	.rc7-photo picture { height: 129.17%; }
	.rc7-mask--top { height: 20.67%; }
	.rc7-mask--logo { top: 12.92%; height: 49.08%; }
	.rc7-photo-logo { top: 35.65%; }
	.rc7-mask--foot { height: 16%; background: linear-gradient(0deg, rgba(8, 18, 32, 0.85) 0, rgba(8, 18, 32, 0) 100%); }
}

/* desktop: two-column composition, the form overlapping the photograph's right edge */
@media (min-width: 901px) {
	.rc7-ch { padding-top: 110px; }
	.rc7-body { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(370px, 1fr); align-items: center; max-width: 1340px; margin-top: 40px; padding: 0 40px; }
	.rc7-left { grid-column: 1; grid-row: 1; }
	.rc7-photo { border-radius: 14px; }
	.rc7-inv-h { font-size: clamp(24px, 2.4vw, 34px); }
	.rc7-inv-p { margin-top: 6px; font-size: clamp(14px, 1.08vw, 16px); line-height: 1.45; }
	.rc7-accent { margin-top: 10px; }
	.rc7-formwrap { grid-column: 2; grid-row: 1; position: relative; z-index: 2; margin: 0 0 0 -7%; }
	.rc7-form, .rc7-done { padding: 26px 28px 24px; }
	.rc7-brand { flex-direction: row; justify-content: center; gap: 34px; text-align: left; }
	.rc7-brand-logo { width: 170px; }
	.rc7-vr { display: block; width: 1px; height: 74px; background: var(--gold); }
}
/* 901-1199px: invitation text below the (clipped) photograph, form beside it without overlap */
@media (min-width: 901px) and (max-width: 1199px) {
	.rc7-body { column-gap: 28px; }
	.rc7-formwrap { margin: 0; }
}
/* >=1200px: invitation over the photograph's foot, on its own scrim so the text keeps its contrast at every width */
@media (min-width: 1200px) {
	.rc7-invite { position: absolute; left: 4%; bottom: 4%; width: 74%; margin: 0; text-align: center; isolation: isolate; }
	.rc7-invite::before { content: ""; position: absolute; z-index: -1; left: -6%; right: -6%; top: -34%; bottom: -14%; pointer-events: none;
		background: linear-gradient(0deg, rgba(8, 18, 32, 0.94) 0, rgba(8, 18, 32, 0.9) 72%, rgba(8, 18, 32, 0) 100%);
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
	.rc7-inv-p { font-size: 16px; }
	.rc7-mask--foot { height: 42%; background: linear-gradient(0deg, rgb(8, 18, 32) 0, rgba(8, 18, 32, 0.96) 58%, rgba(8, 18, 32, 0) 100%); }
}

/* ---------- reveals (script + motion allowed only) ---------- */
[data-rc7-anim] .rc7-head .rc7-rv { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 0.4s ease, transform 0.4s ease; }
[data-rc7-anim].is-a .rc7-head .rc7-rv { opacity: 1; transform: none; }
[data-rc7-anim].is-a .rc7-desig { transition-delay: 0.12s; }
[data-rc7-anim].is-a .rc7-title { transition-delay: 0.26s; }
[data-rc7-anim].is-a .rc7-sub { transition-delay: 0.5s; }
[data-rc7-anim] .rc7-photo { opacity: 0; transform: scale(1.04); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-rc7-anim].is-a .rc7-photo { opacity: 0.55; }
[data-rc7-anim].is-b .rc7-photo { opacity: 1; transform: none; }
[data-rc7-anim] .rc7-invite .rc7-rv { opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity 0.35s ease, transform 0.35s ease; }
[data-rc7-anim].is-b .rc7-invite .rc7-rv { opacity: 1; transform: none; }
[data-rc7-anim].is-b .rc7-inv-h { transition-delay: 0.35s; }
[data-rc7-anim].is-b .rc7-inv-p { transition-delay: 0.55s; }
[data-rc7-anim].is-b .rc7-inv-p + .rc7-inv-p { transition-delay: 0.72s; }
[data-rc7-anim] .rc7-accent { transform: scaleX(0); transition: transform 0.5s ease 0.9s; }
[data-rc7-anim].is-b .rc7-accent { transform: scaleX(1); }
[data-rc7-anim] .rc7-formwrap { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-rc7-anim].is-c .rc7-formwrap { opacity: 1; transform: none; }
[data-rc7-anim].is-c .rc7-submit { animation: rc7-glow 1.6s ease 0.7s 1 both; }
@keyframes rc7-glow { 0% { box-shadow: 0 0 0 0 rgba(201, 164, 90, 0); } 45% { box-shadow: 0 0 0 4px rgba(201, 164, 90, 0.45); } 100% { box-shadow: 0 0 0 0 rgba(201, 164, 90, 0); } }
[data-rc7-anim] .rc7-curve path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.9s ease; }
[data-rc7-anim].is-d .rc7-curve path { stroke-dashoffset: 0; }
[data-rc7-anim] .rc7-close .rc7-rv { opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity 0.4s ease, transform 0.4s ease; }
[data-rc7-anim].is-d .rc7-close .rc7-rv { opacity: 1; transform: none; }
[data-rc7-anim].is-d .rc7-brand-logo { transition-delay: 0.4s; }
[data-rc7-anim].is-d .rc7-final { transition-delay: 0.6s; }
[data-rc7-anim].is-d .rc7-final-sub { transition-delay: 0.8s; }
@media (min-width: 901px) {
	[data-rc7-anim] .rc7-left { transition: transform 0.6s ease; }
	[data-rc7-anim].is-c .rc7-left { transform: translate3d(-1.5%, 0, 0); }
	[data-rc7-anim] .rc7-formwrap { transform: translate3d(48px, 0, 0); }
	[data-rc7-anim].is-c .rc7-formwrap { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.rc7 .rc7-rv, .rc7 .rc7-photo, .rc7 .rc7-formwrap, .rc7 .rc7-left, .rc7 .rc7-accent, .rc7 .rc7-submit { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
	.rc7 .rc7-curve path { stroke-dashoffset: 0 !important; transition: none !important; }
}
