/* Section Editor 스크롤 영상 블록
 * 블록 높이를 화면의 여러 배로 잡고, 안쪽 화면을 위에 붙여 둔 채 스크롤 진행률에 맞는 장면을 그린다.
 */
.se-film-wrap {
	background: #0b0b0a;
	color: #f6f4ee;
}

.se-film {
	position: relative;
	height: calc(var(--se-film-len, 6) * 100vh);
}

.se-film__sticky {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
}

.se-film__poster,
.se-film__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
}

.se-film__poster { object-fit: cover; }

/* 장면을 그리기 시작하면 대표 장면은 감춘다 */
.se-film.is-drawing .se-film__poster { visibility: hidden; }

.se-film__dim {
	position: absolute;
	inset: 0;
	/* 문구가 놓이는 양옆을 조금 더 어둡게 해서 밝은 장면에서도 글자가 읽히게 한다 */
	background:
		linear-gradient(to right, rgba(11, 11, 10, 0.5), rgba(11, 11, 10, 0) 42%, rgba(11, 11, 10, 0) 58%, rgba(11, 11, 10, 0.5)),
		rgba(11, 11, 10, var(--se-film-dim, 0.25));
	pointer-events: none;
}

/* ---------- 화면 모서리 표시와 진행 표시 ---------- */
.se-film__hud {
	position: absolute;
	inset: max(16px, calc(34 * var(--se-u)));
	pointer-events: none;
}

.se-film__mark {
	position: absolute;
	width: max(10px, calc(18 * var(--se-u)));
	height: max(10px, calc(18 * var(--se-u)));
	opacity: 0.7;
}

.se-film__mark::before,
.se-film__mark::after {
	content: "";
	position: absolute;
	background: currentColor;
}

.se-film__mark::before { left: 50%; top: 0; width: 1px; height: 100%; }
.se-film__mark::after { top: 50%; left: 0; width: 100%; height: 1px; }

.se-film__mark--tl { top: 0; left: 0; }
.se-film__mark--tr { top: 0; right: 0; }
.se-film__mark--bl { bottom: 0; left: 0; }
.se-film__mark--br { bottom: 0; right: 0; }

.se-film__count {
	position: absolute;
	top: 0;
	right: max(26px, calc(46 * var(--se-u)));
	font-family: var(--se-grotesk);
	font-size: max(10px, calc(13 * var(--se-u)));
	letter-spacing: 0.14em;
	line-height: max(10px, calc(18 * var(--se-u)));
	opacity: 0.8;
}

.se-film__count b { font-weight: 500; }

.se-film__bar {
	position: absolute;
	left: max(26px, calc(46 * var(--se-u)));
	right: max(26px, calc(46 * var(--se-u)));
	bottom: calc(max(10px, calc(18 * var(--se-u))) / 2);
	height: 1px;
	background: rgba(246, 244, 238, 0.25);
}

.se-film__bar i {
	display: block;
	width: 100%;
	height: 100%;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left center;
}

/* ---------- 장면 문구 ---------- */
.se-film__chapter {
	position: absolute;
	top: 50%;
	left: 8cqw;
	width: min(46cqw, 760px);
	opacity: 0;
	transform: translateY(calc(-50% + 24px));
	pointer-events: none;
	will-change: opacity, transform;
	text-shadow: 0 2px 28px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.35);
}

.se-film__chapter--right {
	left: auto;
	right: 8cqw;
	text-align: right;
}

.se-film__chapter--center {
	left: 50%;
	width: min(70cqw, 1000px);
	margin-left: calc(min(70cqw, 1000px) / -2);
	text-align: center;
}

.se-film__kicker {
	margin: 0 0 calc(22 * var(--se-u));
	font-family: var(--se-grotesk);
	font-size: max(11px, calc(15 * var(--se-u)));
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #c8b28c;
}

.se-film__title {
	margin: 0;
	padding: 0;
	font-family: var(--se-serif);
	font-size: max(34px, calc(96 * var(--se-u)));
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.01em;
	color: inherit;
	text-transform: none;
	word-break: keep-all;
}

.se-film__body {
	margin: calc(28 * var(--se-u)) 0 0;
	font-family: var(--se-kr);
	font-size: max(14px, calc(21 * var(--se-u)));
	line-height: 1.75;
	color: rgba(246, 244, 238, 0.86);
	word-break: keep-all;
}

.se-film__hint {
	position: absolute;
	left: 50%;
	bottom: max(34px, calc(70 * var(--se-u)));
	font-family: var(--se-grotesk);
	font-size: max(10px, calc(12 * var(--se-u)));
	letter-spacing: 0.3em;
	opacity: 0.7;
	transform: translateX(-50%);
	transition: opacity 0.4s ease;
}

.se-film.is-moving .se-film__hint { opacity: 0; }

/* ---------- 스크립트가 꺼져 있거나 편집 화면일 때: 대표 장면 위에 첫 문구만 ---------- */
html:not(.se-js) .se-film,
.se-film-wrap.is-preview .se-film {
	height: auto;
}

html:not(.se-js) .se-film__sticky,
.se-film-wrap.is-preview .se-film__sticky {
	position: relative;
	height: 56.25cqw;
	min-height: 320px;
}

html:not(.se-js) .se-film__chapter.is-first,
.se-film-wrap.is-preview .se-film__chapter.is-first {
	opacity: 1;
	transform: translateY(-50%);
}

.se-film-wrap.is-preview .se-film__canvas { display: none; }

@container (max-width: 767px) {
	.se-film__chapter,
	.se-film__chapter--right,
	.se-film__chapter--center {
		left: 7cqw;
		right: 7cqw;
		width: auto;
		margin-left: 0;
		text-align: left;
	}
	.se-film__title { font-size: 10.5cqw; }
	.se-film__body {
		margin-top: 4cqw;
		font-size: max(14px, 4cqw);
	}
	.se-film__dim {
		background:
			linear-gradient(to top, rgba(11, 11, 10, 0.5), rgba(11, 11, 10, 0.15)),
			rgba(11, 11, 10, var(--se-film-dim, 0.25));
	}
}
