/*
 * se-hero-film
 * Figma 137:4 at 1920, 160:278 at 390.
 * The film fills the window at any width, the top of the frame fades to black
 * so the header sits on it, and the logo, dates and button are laid out over it.
 */

.se-hero-film {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 100svh;
	overflow: clip;
	isolation: isolate;
}

.se-hero-film__stage {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: var(--se-black);
}

.se-hero-film__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--se-focal, 50% 50%);
	opacity: 0;
	transition: opacity 1.1s var(--se-ease);
}

.se-hero-film__video.is-ready {
	opacity: 1;
}

/* The fade she liked: dark at the very top so the header reads, dark again at
   the foot so the giant dates and the button sit on solid ground. */
.se-hero-film__shade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(11, 10, 9, 0.88) 0%,
		rgba(11, 10, 9, 0) 28%,
		rgba(11, 10, 9, 0) 58%,
		rgba(11, 10, 9, 0.8) 86%,
		rgb(11, 10, 9) 100%
	);
}

.se-hero-film__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-bottom: clamp(2rem, 2.64vw, 3.17rem);
}

.se-hero-film__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
}

.se-hero-film__logo {
	display: block;
	height: auto;
	max-width: 100%;
}

.se-hero-film__dates {
	margin-top: 0.375rem;
	font-weight: 800;
	font-size: clamp(3.25rem, 11.1146vw, 13.3375rem);
	line-height: 0.88;
	color: var(--se-bone);
	/* Pull the first glyph back so the display line optically lines up with the
	   smaller type below it, the way the frame is set. */
	margin-inline-start: -0.019em;
}

.se-hero-film__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	width: 100%;
	margin-top: clamp(1.5rem, 2.38vw, 2.856rem);
}

.se-hero-film__cta {
	display: flex;
	align-items: center;
	gap: clamp(1.25rem, 2.29vw, 2.75rem);
}

.se-hero-film__place {
	font-size: clamp(0.9375rem, 1.0417vw, 1.25rem);
	color: var(--se-bone);
}

.se-hero-film__sound {
	display: inline-flex;
	align-items: center;
	gap: clamp(0.625rem, 0.729vw, 0.875rem);
	color: var(--se-bone);
	text-decoration: none;
}

.se-hero-film__ring {
	display: block;
	flex: none;
	width: clamp(1.75rem, 1.7708vw, 2.125rem);
	height: clamp(1.75rem, 1.7708vw, 2.125rem);
	transition: transform var(--se-dur) var(--se-ease);
}

.se-hero-film__sound-label {
	font-size: clamp(0.8125rem, 0.7813vw, 0.9375rem);
	letter-spacing: 0.04em;
	color: var(--se-bone);
}

.se-hero-film__sound:hover .se-hero-film__ring,
.se-hero-film__sound:focus-visible .se-hero-film__ring {
	transform: scale(1.08);
}

.se-hero-film__sound:focus-visible {
	outline: 2px solid var(--se-red-hot);
	outline-offset: 3px;
}

/* The dates fold to two lines on their own on a laptop, which is what the
   frame does, so nothing else has to change. */
@media (max-width: 1024px) {
	.se-hero-film__bottom {
		flex-wrap: wrap;
		row-gap: 1.75rem;
	}
}

/* Phones: one column, the dates split over two lines at two sizes, the button
   runs the full width and the ring is dropped. */
@media (max-width: 767px) {
	.se-hero-film {
		min-height: min(100svh, 48.75rem);
	}

	.se-hero-film__shade {
		background: linear-gradient(
			180deg,
			rgba(11, 10, 9, 0.9) 0%,
			rgba(11, 10, 9, 0) 30%,
			rgba(11, 10, 9, 0) 42%,
			rgba(11, 10, 9, 0.86) 78%,
			rgb(11, 10, 9) 100%
		);
	}

	.se-hero-film__inner {
		padding-bottom: 2.875rem;
	}

	.se-hero-film__logo {
		width: clamp(11.5rem, 59vw, 16rem) !important;
	}

	.se-hero-film__dates {
		/* .se-d3 already switches to 24vw here, which is the phone frame size. */
		margin-top: 1.375rem;
		margin-inline-start: -0.035em;
	}

	.se-hero-film__days,
	.se-hero-film__month {
		display: block;
	}

	.se-hero-film__month {
		font-size: clamp(1.875rem, 15.64vw, 5.25rem);
		line-height: 0.92;
	}

	.se-hero-film__bottom {
		flex-direction: column;
		align-items: stretch;
		row-gap: 1.125rem;
		margin-top: 1.25rem;
	}

	.se-hero-film__cta {
		flex-direction: column;
		align-items: stretch;
		gap: 1.5rem;
	}

	.se-hero-film__place {
		font-family: var(--se-font-mono);
		font-weight: 400;
		font-size: 0.8125rem;
		color: var(--se-text-soft);
	}

	.se-hero-film__ring {
		display: none;
	}

	.se-hero-film__sound-label {
		font-size: 0.75rem;
		letter-spacing: 0.06em;
		color: var(--se-grey);
	}
}

@media (prefers-reduced-motion: reduce) {
	.se-hero-film__video,
	.se-hero-film__ring {
		transition: none;
	}
}
