/*
 * Styles for CONVERTED pages only. Every selector is prefixed with
 * .bpxg-converted (body class added by each page-templates/ file) for two
 * reasons:
 *   1. nothing leaks INTO Elementor passthrough pages, and
 *   2. nothing leaks in FROM the Elementor kit global.css — its selectors
 *      (.elementor-kit-9 a, .elementor-kit-9 h2 …) carry class+element
 *      specificity and override bare single-class rules. Two classes win.
 *
 * Breakpoints (kit #9): mobile ≤767 / tablet 768 / desktop 1025. Mobile-first.
 *
 * No pages converted yet — this file only holds the converted-page base.
 * Per-page sections get appended below as pages migrate (see CLAUDE.md).
 */

/* ============ Converted-page base ============ */

.bpxg-converted {
	font-family: var(--font-sans);
	color: var(--color-ink);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

.bpxg-converted .bpxg-container {
	width: min(var(--container), calc(100% - 40px));
	margin-inline: auto;
}

/* Scroll reveal (driven by assets/js/main.js) */
.bpxg-converted [data-reveal] {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.bpxg-converted [data-reveal].is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.bpxg-converted [data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ============================================================
   Page: Congen (#456)  —  scope: .congen
   Brand yellow #fcd11e · dark #141414 · Roboto / Roboto Slab
   ============================================================ */

.congen {
	--c-yellow: #fcd11e;
	--c-yellow-deep: #e9bd00;
	--c-ink: #141414;
	--c-muted: #5b5b5b;
	--c-line: #ececec;
	--c-soft: #f6f6f4;
	--display: var(--font-sans); /* unified — same family as body, no serif mix */
	font-size: 16px;
	line-height: 1.65;
}

.congen img { max-width: 100%; height: auto; display: block; }

.congen .congen-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 16px 34px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 1.0625rem;
	line-height: 1;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
	white-space: nowrap;
}
.congen .congen-btn--primary {
	background: var(--c-yellow);
	color: var(--c-ink);
	box-shadow: 0 10px 26px -10px rgba(252, 209, 30, 0.9);
}
.congen .congen-btn--primary:hover { background: var(--c-yellow-deep); transform: translateY(-2px); }
.congen .congen-btn--dark {
	background: var(--c-ink);
	color: #fff;
}
.congen .congen-btn--dark:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(0,0,0,0.6); }

.congen .congen-h2 {
	font-family: var(--display);
	font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--c-ink);
	margin: 0;
}

/* ---- Hero ---- */
.congen-hero { padding: clamp(48px, 7vw, 104px) 0; background: #fff; overflow: hidden; }
.congen-hero__inner { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.congen-hero__eyebrow {
	font-weight: 700; letter-spacing: 0.28em; font-size: 0.8125rem;
	color: var(--c-yellow-deep); margin: 0 0 14px;
}
.congen-hero__title {
	font-family: var(--display);
	font-size: clamp(2.1rem, 1.2rem + 4vw, 3.6rem);
	font-weight: 700; line-height: 1.12; letter-spacing: -0.02em;
	color: var(--c-ink); margin: 0 0 20px;
}
.congen-hero__lead { font-size: clamp(1rem, 0.95rem + 0.4vw, 1.1875rem); color: var(--c-muted); margin: 0 0 32px; max-width: 36em; }
.congen-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.congen-video {
	position: relative; width: 100%; aspect-ratio: 16 / 9;
	border-radius: 18px; overflow: hidden; background: #000;
	box-shadow: 0 30px 60px -28px rgba(0,0,0,0.45);
}
.congen-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Brand band (dark) ---- */
.congen-band { background: var(--c-ink); color: #fff; padding: clamp(64px, 9vw, 128px) 0; text-align: center; }
.congen-band__logo { height: 52px; width: auto; margin: 0 auto 28px; opacity: 0.95; }
.congen-band__title {
	font-family: var(--display);
	font-size: clamp(2rem, 1rem + 5vw, 4rem);
	font-weight: 700; letter-spacing: 0.02em; margin: 0 0 22px;
	background: linear-gradient(90deg, #fff 0%, var(--c-yellow) 120%);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.congen-band__text { font-size: clamp(0.98rem, 0.9rem + 0.4vw, 1.15rem); color: #c7c7c7; margin: 0 auto; max-width: 44em; }

/* ---- Storyboard intro ---- */
.congen-intro { padding: clamp(56px, 8vw, 112px) 0; background: #fff; }
.congen-intro__inner { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.congen-intro__text { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); color: var(--c-muted); margin: 18px 0 0; }
.congen-intro__shot img { border-radius: 14px; box-shadow: 0 24px 50px -26px rgba(0,0,0,0.4); border: 1px solid var(--c-line); }

/* ---- Loop: 기획 → 제작 → 피드백 (alternating rows) ---- */
.congen-loop { padding: clamp(56px, 8vw, 120px) 0; background: #fff; }
.congen-loop__head { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.congen-loop__sub { color: var(--c-muted); margin: 12px 0 0; font-size: 1.05rem; }
.congen-loop__stages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(40px, 6vw, 88px); }

.congen-stage { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.congen-stage__media { position: relative; margin: 0; }
.congen-stage__media img {
	border-radius: 18px; aspect-ratio: 1 / 1; object-fit: cover; width: 100%;
	box-shadow: 0 24px 50px -28px rgba(0,0,0,0.45);
}
.congen-stage__badge {
	position: absolute; left: 16px; top: 16px;
	background: var(--c-yellow); color: var(--c-ink);
	font-weight: 700; font-size: 0.95rem; padding: 7px 16px; border-radius: 999px;
}
.congen-stage__en {
	display: inline-block; font-family: var(--display); font-weight: 700;
	font-size: 0.95rem; letter-spacing: 0.04em; color: var(--c-yellow-deep);
	border-bottom: 3px solid var(--c-yellow); padding-bottom: 2px; margin-bottom: 16px;
}
.congen-stage__title { font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); font-weight: 700; color: var(--c-ink); margin: 0 0 14px; line-height: 1.3; }
.congen-stage__desc { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem); color: var(--c-muted); margin: 0; max-width: 32em; }

.congen-loop__cycle {
	text-align: center; margin: clamp(40px, 6vw, 72px) auto 0; max-width: 38em;
	font-weight: 600; color: var(--c-ink);
}
.congen-loop__cycle span { color: var(--c-yellow-deep); font-size: 1.3em; margin-right: 6px; }

/* ---- Final CTA (yellow band) ---- */
.congen-cta { background: var(--c-yellow); padding: clamp(56px, 8vw, 110px) 0; text-align: center; }
.congen-cta__title { font-family: var(--display); font-size: clamp(1.7rem, 1rem + 3.4vw, 3rem); font-weight: 700; color: var(--c-ink); margin: 0 0 18px; }
.congen-cta__text { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); color: #5a4d00; margin: 0 auto 32px; max-width: 38em; }

/* ============ Tablet ============ */
@media (min-width: 768px) {
	.congen-hero__inner { grid-template-columns: 1.05fr 1fr; }
	.congen-intro__inner { grid-template-columns: 1fr 1.1fr; }
	.congen-stage { grid-template-columns: 1fr 1fr; }
	.congen-stage:nth-child(even) .congen-stage__media { order: 2; }
}

/* ============ Desktop ============ */
@media (min-width: 1025px) {
	.congen-hero__inner { grid-template-columns: 1.1fr 1fr; gap: 72px; }
	.congen-stage { gap: 64px; }
}
