/* The video and timeline share one viewport beneath the header. */
:root {
	--opening-header-height: 81px;
}
.opening-scene {
	height: calc(100svh - var(--opening-header-height));
	height: calc(100dvh - var(--opening-header-height));
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding-bottom: 18px;
}
.opening-scene .hero {
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	min-height: 0;
}
.opening-scene .hero-media {
	flex: 1 1 0;
	height: auto;
	min-height: 0;
	max-height: none;
	aspect-ratio: auto;
	container-type: size;
}
.opening-scene .mini-timeline,
.opening-scene .hero-footnote,
.opening-scene .ticker {
	flex-shrink: 0;
}
.opening-scene .mini-timeline.is-behind-header {
	visibility: hidden;
}
.opening-scene .hero-film-title {
	font-size: min(8vw, 18cqh, 220px);
	top: 23%;
}
/* Keep the preview footage unobstructed; the image composition remains available. */
.opening-scene .hero-media-video::after {
	background: linear-gradient(0deg, #0005, transparent 18%, transparent 88%, #0003);
}
.opening-scene .hero-media-video > video {
	object-position: center;
}
.timeline-toolbar .video-sound {
	width: auto;
	flex-shrink: 0;
	border: 1px solid #d8d8d8;
	border-radius: 5px;
	background: #fff;
	color: #191919;
	padding: 5px 8px;
	font: inherit;
	font-size: 11px;
	white-space: nowrap;
	cursor: pointer;
}
.video-sound:hover {
	background: #efefef;
}
.hero-video-toggle {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: grid;
	place-items: center;
}
.hero-pause-indicator {
	display: grid;
	place-items: center;
	width: clamp(48px, 5vw, 76px);
	aspect-ratio: 1;
	border: 1px solid #fff9;
	border-radius: 50%;
	background: #1515157a;
	backdrop-filter: blur(12px);
	color: #fff;
	font-size: 22px;
	padding-left: 3px;
	opacity: 0;
}
.hero-video-toggle[data-paused="true"] .hero-pause-indicator {
	opacity: 1;
}
.hero-video-toggle:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -6px;
}
.hero-media-video .hero-media-top,
.hero-media-video .hero-media-bottom {
	pointer-events: none;
}
.hero-media-video .showreel-button {
	pointer-events: auto;
}
/* Every lane shares the same time origin and width, including the range input. */
.synced-timeline {
	--track-gutter: 30px;
	container-type: inline-size;
}
.synced-timeline .track {
	gap: 0;
}
.synced-timeline .track > span {
	width: var(--track-gutter);
}
.synced-timeline .track .track-lane {
	position: relative;
	flex: 1;
	min-width: 0;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: hidden;
	border-radius: 3px;
}
.synced-timeline .scene-clip,
.synced-timeline .synced-title {
	position: absolute;
	top: 0;
	height: 100%;
	border-radius: 3px;
	overflow: hidden;
}
.scene-clip img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: brightness(.7);
}
.scene-clip > span {
	position: absolute;
	inset: 4px 6px auto;
	font-size: 8px;
	white-space: nowrap;
	color: #fff;
	text-shadow: 0 1px 4px #000;
}
.scene-clip::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid #fff9;
	border-radius: inherit;
}
.scene-clip.is-active img {
	filter: none;
}
.scene-clip.is-active::after {
	border: 2px solid #171717;
	box-shadow: inset 0 0 0 1px #fff;
}
.scene-effect > span {
	display: none;
}
.synced-timeline .synced-title {
	background: #e3e3e3;
	color: #555;
	border: 1px solid #ccc;
	padding: 4px 6px;
	font-family: var(--mono);
	font-size: 8px;
	white-space: nowrap;
}
.synced-timeline .synced-title.is-active {
	background: #202020;
	border-color: #202020;
	color: #fff;
}
.synced-timeline .track .wave-track {
	background: #e6e6e6;
	gap: .08%;
}
.synced-timeline .wave-track i {
	min-width: 0;
}
.synced-timeline .timeline-ruler {
	padding-left: var(--track-gutter);
	padding-right: 0;
	background: none;
}
.synced-timeline .ruler-lane {
	position: relative;
	width: 100%;
	background: repeating-linear-gradient(90deg, #7774 0 1px, transparent 1px 2%);
	background-size: 100% 4px;
	background-position: bottom;
	background-repeat: no-repeat;
}
.ruler-lane > span {
	position: absolute;
	transform: translateX(-50%);
}
.ruler-lane > span:first-child { transform: none; }
.ruler-lane > span:last-child { transform: translateX(-100%); }
.synced-timeline .playhead,
.synced-timeline .timeline-scrub {
	left: var(--track-gutter);
}
.synced-timeline .timeline-scrub {
	width: calc(100% - var(--track-gutter));
	touch-action: none;
}
.opening-scene .hero:has(.hero-media-video) {
	width: calc(100% - var(--gutter) * 2);
	max-width: 2240px;
	padding-top: 18px;
	justify-content: center;
}
.opening-scene .hero-media-video {
	flex: 1 1 0;
	width: 100%;
	height: auto;
	aspect-ratio: auto;
}
.opening-scene:has(.hero-media-video) .hero-footnote {
	display: none;
}
.opening-scene .synced-timeline {
	padding-bottom: 9px;
}
.synced-timeline .timeline-toolbar { height: 34px; }
.synced-timeline .timeline-toolbar > .mono { white-space: nowrap; }
.synced-timeline .timeline-toolbar > div { flex-shrink: 0; }
.synced-timeline .timeline-ruler { height: 20px; padding-top: 3px; }
.synced-timeline .timeline-tracks { gap: 3px; padding-top: 4px; }
.synced-timeline .text-track { height: 18px; }
.synced-timeline .video-track { height: 30px; }
.synced-timeline .audio-track { height: 18px; }
.footer-ticker > div {
	padding-block: 12px;
}
.footer-ticker {
	position: relative;
	margin: 0;
}
@media (max-width: 740px) and (min-height: 600px) {
	.opening-scene .hero-media-video {
		max-height: calc((100vw - var(--gutter) * 2) * 1.25);
	}
}
@container (max-width: 560px) {
	.synced-timeline .timeline-demo-label { display: none; }
	.synced-timeline .timeline-toolbar > div { gap: 8px; }
	.synced-timeline .timeline-toolbar .mono { font-size: 8px; }
}
@container (max-width: 360px) {
	.synced-timeline .timeline-toolbar > .mono { display: none; }
	.synced-timeline .timeline-toolbar { justify-content: flex-end; }
	.synced-timeline .scene-clip > span { display: none; }
}
@media (max-width: 740px) {
	.synced-timeline { --track-gutter: 21px; }
	.scene-clip > span { font-size: 6px; inset: 3px; }
}
@media (max-width: 500px) {
	.hero-media-video + .mini-timeline .timeline-toolbar > .mono {
		display: none;
	}
	.hero-media-video + .mini-timeline .timeline-toolbar {
		justify-content: flex-end;
	}
}
@media (min-width: 1920px) {
	:root {
		--opening-header-height: 91px;
	}
}
@media (max-width: 1180px) {
	:root {
		--opening-header-height: 73px;
	}
}
@media (max-width: 740px) {
	:root {
		--opening-header-height: 66px;
	}
	.opening-scene .hero-film-title {
		font-size: min(10.2vw, 18cqh);
		top: 32%;
	}
}
/* Short screens keep the composition useful by tightening the timeline. */
@media (max-height: 640px) {
	.opening-scene .hero {
		padding-top: 10px;
	}
	.opening-scene .hero-footnote {
		display: none;
	}
	.opening-scene .ticker {
		margin-top: 12px;
	}
	.opening-scene .ticker > div {
		padding-block: 12px;
	}
	.opening-scene .ticker span {
		font-size: 24px;
	}
	.opening-scene .ticker i {
		font-size: 24px;
	}
	.opening-scene .mini-timeline {
		padding-bottom: 8px;
	}
	.opening-scene .timeline-toolbar {
		height: 32px;
	}
	.opening-scene .timeline-ruler {
		height: 18px;
		padding-top: 3px;
	}
	.opening-scene .timeline-tracks {
		gap: 3px;
		padding-top: 4px;
	}
	.opening-scene .track {
		height: 18px;
	}
	.opening-scene .video-track {
		height: 26px;
	}
	.opening-scene .text-track > div {
		padding-block: 1px;
	}
	.opening-scene .hero-media-top {
		top: 15px;
	}
	.opening-scene .hero-media-bottom {
		bottom: 15px;
	}
}
@media (max-height: 440px) {
	.opening-scene .timeline-ruler,
	.opening-scene .text-track,
	.opening-scene .audio-track,
	.opening-scene .hero-media-top {
		display: none;
	}
	.opening-scene .mini-timeline {
		padding-bottom: 5px;
	}
	.opening-scene .timeline-toolbar {
		height: 28px;
	}
	.opening-scene .video-track {
		height: 22px;
	}
	.opening-scene .hero-film-title {
		top: 17%;
		font-size: min(7vw, 27cqh);
	}
	.opening-scene .hero-media-bottom {
		bottom: 10px;
	}
	.opening-scene .showreel-button {
		padding: 5px 10px 5px 5px;
		font-size: 10px;
	}
	.opening-scene .showreel-button small {
		display: none;
	}
	.opening-scene .play-disc {
		width: 26px;
		height: 26px;
		font-size: 16px;
	}
}
