/* ==========================================================================
   DJF theme, version 2
   Colours and fonts come from theme.json presets.
   ========================================================================== */

:root {
	--djf-ink: var(--wp--preset--color--ink, #000);
	--djf-navy: var(--wp--preset--color--navy, #0b1730);
	--djf-surface: var(--wp--preset--color--surface, #161616);
	--djf-line: var(--wp--preset--color--line, #2c2c2c);
	--djf-smoke: var(--wp--preset--color--smoke, #a6a39c);
	--djf-paper: var(--wp--preset--color--paper, #f4f2ee);
	--djf-bone: var(--wp--preset--color--bone, #efece6);
	--djf-tungsten: var(--wp--preset--color--tungsten, #e9a23b);
	--djf-display: var(--wp--preset--font-family--archivo, Archivo, "Arial Narrow", sans-serif);
	--djf-pad: clamp(1.25rem, 4vw, 3rem);
	--djf-header-h: 4.25rem;
	--djf-admin: var(--wp-admin--admin-bar--height, 0px);
	--djf-ease: cubic-bezier(0.76, 0, 0.24, 1);
	--djf-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	color-scheme: dark;
}

html {
	background: var(--djf-ink);
	-webkit-text-size-adjust: 100%;
}

html:has(dialog[open]) {
	overflow: hidden;
}

body {
	margin: 0;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img,
video,
iframe {
	max-width: 100%;
}

:focus-visible {
	outline: 2px solid var(--djf-tungsten);
	outline-offset: 3px;
}

[id] {
	scroll-margin-top: calc(var(--djf-header-h) + var(--djf-admin) + 1rem);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* The display voice: Archivo at its narrowest width. */
.djf-page-title,
.djf-panel__title,
.djf-section__title,
.djf-pop__title,
.djf-wordmark,
.djf-fallback-art,
.djf-header .djf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--djf-display);
	font-stretch: 62%;
	font-variation-settings: "wdth" 62;
}

/* Interface text stays in the sans, whatever the body font. */
.djf-card__title,
.djf-card__role,
.djf-card__meta,
.djf-card__more,
.djf-clip__title,
.djf-status,
.djf-pop__role,
.djf-pop__meta,
.djf-episode__title,
.djf-episode__credit,
.djf-episodes__title,
.djf-form label,
.djf-form__notice,
.djf-filter button,
.djf-lightbox__title,
.djf-lightbox__close,
.djf-modal__close,
.djf-featured__sound,
.djf-facade__play,
.djf-footer,
.djf-fv-hero__nav,
.djf-credits th,
.wp-element-button,
.wp-block-button__link,
h1, h2, h3, h4 {
	font-family: var(--djf-display);
}

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

/* ==========================================================================
   Header: solid navy everywhere
   ========================================================================== */

.djf-header {
	position: fixed;
	top: var(--djf-admin);
	left: 0;
	right: 0;
	z-index: 100;
	box-sizing: border-box;
	min-height: var(--djf-header-h);
	padding: 0.75rem var(--djf-pad);
	gap: 1.5rem;
	align-items: center;
	background: var(--djf-navy);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
	view-transition-name: djf-header;
}

.djf-brand {
	gap: 0.15rem 1rem;
	min-width: 0;
}

.djf-tagline {
	margin: 0;
	padding-left: 1rem;
	border-left: 1px solid rgba(255, 255, 255, 0.25);
	font-family: var(--djf-display);
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	line-height: 1.2;
	color: #b8bfcc;
}

/* On phones the tagline sits under the name instead of beside it */
@media (max-width: 40em) {
	.djf-brand {
		flex-direction: column;
		align-items: flex-start !important;
	}

	.djf-tagline {
		padding-left: 0;
		border-left: 0;
		font-size: 0.75rem;
	}
}

.djf-wordmark {
	margin: 0;
	font-size: clamp(1.25rem, 2.2vw, 1.625rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.djf-wordmark a,
.djf-wordmark a:hover {
	color: var(--djf-paper);
	text-decoration: none;
}

.djf-header .djf-nav .wp-block-navigation__responsive-container-open,
.djf-header .djf-nav .wp-block-navigation__responsive-container-close {
	font-family: var(--djf-display);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--djf-paper);
	padding: 0.5rem 0;
}

.djf-header .djf-nav .wp-block-navigation__responsive-container-open:hover,
.djf-header .djf-nav .wp-block-navigation__responsive-container-close:hover {
	color: var(--djf-tungsten);
}

/* Menu: translucent navy that slides open left to right */
.djf-header .wp-block-navigation.djf-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: rgba(11, 23, 48, 0.84);
	-webkit-backdrop-filter: blur(16px) saturate(120%);
	backdrop-filter: blur(16px) saturate(120%);
	color: var(--djf-paper);
	padding: calc(var(--djf-admin) + 1rem) var(--djf-pad) 2rem;
	animation: djf-menu-open 0.6s var(--djf-ease-out) both;
}

@keyframes djf-menu-open {
	from {
		clip-path: inset(0 100% 0 0);
	}
	to {
		clip-path: inset(0 0 0 0);
	}
}

.djf-header .djf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3rem;
	align-items: flex-start;
}

.djf-header .djf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0.5em;
	align-items: flex-start;
}

.djf-header .djf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	animation: djf-menu-item 0.5s var(--djf-ease-out) both;
}

.djf-header .djf-nav .is-menu-open .wp-block-navigation-item:nth-child(1) { animation-delay: 0.12s; }
.djf-header .djf-nav .is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: 0.16s; }
.djf-header .djf-nav .is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: 0.2s; }
.djf-header .djf-nav .is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: 0.24s; }
.djf-header .djf-nav .is-menu-open .wp-block-navigation-item:nth-child(5) { animation-delay: 0.28s; }
.djf-header .djf-nav .is-menu-open .wp-block-navigation-item:nth-child(6) { animation-delay: 0.32s; }
.djf-header .djf-nav .is-menu-open .wp-block-navigation-item:nth-child(7) { animation-delay: 0.36s; }
.djf-header .djf-nav .is-menu-open .wp-block-navigation-item:nth-child(8) { animation-delay: 0.4s; }
.djf-header .djf-nav .is-menu-open .wp-block-navigation-item:nth-child(9) { animation-delay: 0.44s; }

@keyframes djf-menu-item {
	from {
		opacity: 0;
		transform: translateX(-1.5rem);
	}
}

.djf-header .djf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: baseline;
	gap: 0.4em;
	font-size: clamp(1.75rem, 4.5vw, 3.25rem);
	font-weight: 700;
	line-height: 1.05;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--djf-paper);
	padding: 0;
}

/* The arrow after each section name */
.djf-header .djf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
	content: "\2192";
	font-size: 0.6em;
	color: var(--djf-tungsten);
	transform: translateX(0);
	transition: transform 0.3s var(--djf-ease-out);
}

.djf-header .djf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
.djf-header .djf-nav .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	color: var(--djf-tungsten);
}

.djf-header .djf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover::after {
	transform: translateX(0.35em);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.djf-main {
	padding-top: calc(var(--djf-header-h) + var(--djf-admin) + clamp(2rem, 5vw, 4rem));
	padding-bottom: clamp(4rem, 10vw, 8rem);
	min-height: 60vh;
}

.djf-main.djf-main--home {
	padding: 0;
	min-height: 0;
}

.djf-page-title {
	font-size: clamp(2.25rem, 5.5vw, 4.5rem);
	font-weight: 800;
	line-height: 0.9;
	text-transform: uppercase;
	margin-top: 0;
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
	overflow-wrap: break-word;
}

.djf-intro {
	font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
}

.djf-empty {
	padding: 1.5rem;
	border: 1px dashed var(--djf-line);
	color: var(--djf-smoke);
	font-family: var(--djf-display);
}

.djf-textlink {
	color: var(--djf-paper);
	text-decoration: underline;
	text-decoration-color: var(--djf-tungsten);
	text-decoration-thickness: 2px;
}

.djf-textlink:hover {
	color: var(--djf-tungsten);
}

.djf-linkbutton {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-family: var(--djf-display);
	font-weight: 600;
	cursor: pointer;
}

.djf-section__title {
	margin: 0 0 clamp(1.25rem, 2.5vw, 2rem);
	font-size: clamp(1.5rem, 2.8vw, 2.25rem);
	font-weight: 800;
	line-height: 0.95;
	text-transform: uppercase;
}

/* Typographic stand-in when something has no image yet */
.djf-fallback-art {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding: 1rem;
	background: radial-gradient(120% 90% at 20% 0%, #262626 0%, var(--djf-surface) 55%, #0d0d0d 100%);
	color: #f4f2ee;
	font-size: clamp(1.25rem, 2.5vw, 2rem);
	font-weight: 800;
	line-height: 0.9;
	text-transform: uppercase;
	text-align: left;
	overflow-wrap: anywhere;
}

/* Play mark on clickable media */
.djf-playmark {
	position: absolute;
	left: 0.75rem;
	bottom: 0.75rem;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: #f4f2ee;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.is-playable:hover .djf-playmark,
.is-playable:focus-visible .djf-playmark {
	background: var(--djf-tungsten);
	color: #000;
}

/* Shared media boxes */
.djf-card__media,
.djf-clip__media,
.djf-episode__media,
.djf-pop__poster,
.djf-facade {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	background: var(--djf-surface);
	border: 0;
	padding: 0;
	margin: 0;
	color: inherit;
	font: inherit;
	text-align: left;
}

a.djf-card__media,
button.djf-clip__media,
button.djf-episode__media {
	cursor: pointer;
}

.djf-card__media img,
.djf-clip__media img,
.djf-episode__media img,
.djf-pop__poster img,
.djf-facade img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--djf-ease-out), filter 0.3s ease;
}

a.djf-card__media:hover img,
.is-playable:hover img {
	transform: scale(1.035);
	filter: brightness(1.08);
}

.djf-card__more {
	position: absolute;
	left: 0.75rem;
	bottom: 0.75rem;
	padding: 0.3rem 0.75rem;
	background: rgba(0, 0, 0, 0.7);
	color: #f4f2ee;
	font-size: 0.875rem;
	font-weight: 600;
	opacity: 0;
	transform: translateY(0.5rem);
	transition: opacity 0.25s ease, transform 0.35s var(--djf-ease-out);
}

a.djf-card__media:hover .djf-card__more,
a.djf-card__media:focus-visible .djf-card__more {
	opacity: 1;
	transform: none;
}

.djf-button,
.wp-element-button {
	display: inline-block;
	padding: 0.8rem 1.5rem;
	background: var(--djf-paper);
	color: #000;
	font-weight: 600;
	text-decoration: none;
	border: 0;
	cursor: pointer;
}

.djf-button:hover,
.wp-element-button:hover {
	background: var(--djf-tungsten);
	color: #000;
}

.djf-status {
	display: inline-block;
	margin: 0 0 0.75rem;
	padding: 0.2rem 0.75rem;
	border: 1px solid var(--djf-tungsten);
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--djf-tungsten);
}

.djf-status--small {
	margin: 0.4rem 0 0;
	padding: 0.1rem 0.6rem;
	font-size: 0.8125rem;
}

/* ==========================================================================
   Home panels
   ========================================================================== */

.djf-splash {
	position: relative;
}

.djf-panel {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	background: radial-gradient(140% 100% at 70% 20%, #2a2a2a 0%, #0c0c0c 60%, #000 100%);
}

.djf-panel + .djf-panel {
	box-shadow: 0 -2rem 4rem rgba(0, 0, 0, 0.6);
}

.djf-panel__media {
	position: absolute;
	inset: 0;
}

.djf-panel__img,
.djf-panel__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--djf-focus, 50% 50%);
}

/* Shade that keeps the title readable whatever the footage does */
.djf-panel__scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			to top,
			rgba(0, 0, 0, var(--djf-scrim, 0.65)) 0%,
			rgba(0, 0, 0, calc(var(--djf-scrim, 0.65) * 0.6)) 32%,
			rgba(0, 0, 0, 0) 68%
		),
		linear-gradient(
			to right,
			rgba(0, 0, 0, calc(var(--djf-scrim, 0.65) * 0.55)) 0%,
			rgba(0, 0, 0, 0) 55%
		);
}

.djf-panel__content {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 100%;
	padding: 0 var(--djf-pad) clamp(5.5rem, 13vh, 8rem);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 0 2.5rem rgba(0, 0, 0, 0.4);
}

.djf-panel__title {
	margin: 0 0 1rem;
	/* Big, but capped so IN DEVELOPMENT always sits on one line */
	font-size: clamp(2.75rem, min(10vw, 18svh), 9.5rem);
	font-weight: 800;
	line-height: 0.86;
	text-transform: uppercase;
	color: #fff;
}

.djf-panel__title a,
.djf-panel__title a:hover {
	color: inherit;
	text-decoration: none;
}

.djf-panel__tagline {
	max-width: 34ch;
	margin: 0 0 1.5rem;
	font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
	line-height: 1.4;
	color: #fff;
}

.djf-panel__link {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	font-family: var(--djf-display);
	font-weight: 600;
	color: #fff;
	text-decoration: none;
}

.djf-panel__link::before {
	content: "";
	width: 2.5rem;
	height: 2px;
	background: var(--djf-tungsten);
	transition: width 0.35s var(--djf-ease);
}

.djf-panel:hover .djf-panel__link::before {
	width: 4.5rem;
}

.djf-panel__link:hover {
	color: var(--djf-tungsten);
}

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.djf-panel + .djf-panel .djf-panel__content {
			animation: djf-arrive linear both;
			animation-timeline: view();
			animation-range: entry 40% entry 100%;
		}
	}
}

@keyframes djf-arrive {
	from {
		opacity: 0;
		transform: translateY(2.5rem);
	}
}

/* Floating cue: down through the panels, up to the top at the end */
.djf-scrollcue {
	position: fixed;
	left: 50%;
	bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
	z-index: 50;
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	margin-left: -1.625rem;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	background: rgba(11, 23, 48, 0.55);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease;
	animation: djf-cue-bob 2.6s ease-in-out infinite;
}

.djf-scrollcue svg {
	transition: transform 0.6s var(--djf-ease);
}

.djf-scrollcue.is-up svg {
	transform: rotate(180deg);
}

.djf-scrollcue:hover {
	background: var(--djf-tungsten);
	border-color: var(--djf-tungsten);
	color: #000;
}

@keyframes djf-cue-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(6px); }
}

/* ==========================================================================
   Grids and cards
   ========================================================================== */

.djf-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.75rem);
}

.djf-grid > [hidden] {
	display: none;
}

.djf-card__media {
	aspect-ratio: 2 / 3;
}

.djf-card__title {
	margin: 0.9rem 0 0.15rem;
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.2;
}

.djf-card__role {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--djf-tungsten);
}

.djf-card__meta {
	margin: 0.1rem 0 0;
	font-size: 0.875rem;
	color: var(--djf-smoke);
}

.djf-card__blurb {
	margin: 0.6rem 0 0;
	font-size: 0.975rem;
	line-height: 1.5;
}

/* Writing / Directing: full-width bands, light then dark */
.djf-work {
	margin-top: clamp(0.5rem, 2vw, 1.5rem);
}

.djf-band {
	padding: clamp(3rem, 7vw, 6rem) var(--djf-pad);
}

.djf-band__inner {
	max-width: 90rem;
	margin: 0 auto;
}

.djf-band--light {
	--djf-paper: #141414;
	--djf-smoke: #5f5c56;
	--djf-tungsten: #8f5200;
	--djf-line: #d6d2ca;
	background: var(--djf-bone);
	color: #141414;
	color-scheme: light;
}

.djf-band--light a {
	color: #141414;
}

.djf-band--dark {
	background: var(--djf-ink);
}

.djf-grid--series {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
	max-width: 62rem;
	gap: clamp(2rem, 4vw, 3.5rem);
}

.djf-grid--series .djf-card__title {
	font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.djf-grid--films {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 64em) {
	.djf-grid--films {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.djf-grid--slate {
	grid-template-columns: repeat(auto-fill, minmax(min(46%, 12rem), 1fr));
}

/* ==========================================================================
   Reel
   ========================================================================== */

.djf-featured {
	position: relative;
	aspect-ratio: 16 / 9;
	margin-bottom: clamp(2.5rem, 6vw, 5rem);
	background: #000;
}

.djf-featured iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.djf-featured__sound {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	padding: 0.5rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.djf-featured__sound:hover,
.djf-featured__sound[aria-pressed="true"] {
	background: var(--djf-tungsten);
	border-color: var(--djf-tungsten);
	color: #000;
}

/* Reel sections alternate dark grey and black, edge to edge. */
.djf-reel__section {
	position: relative;
	padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.djf-reel__section:nth-of-type(odd) {
	background: #141414;
	box-shadow: 0 0 0 100vmax #141414;
	clip-path: inset(0 -100vmax);
}

.djf-reel__section:nth-of-type(even) {
	background: #000;
	box-shadow: 0 0 0 100vmax #000;
	clip-path: inset(0 -100vmax);
}

.djf-reel__section:last-child {
	margin-bottom: calc(clamp(4rem, 10vw, 8rem) * -1);
	padding-bottom: clamp(4rem, 8vw, 6rem);
}

.djf-grid--clips {
	grid-template-columns: 1fr;
}

@media (min-width: 36em) {
	.djf-grid--clips {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 56em) {
	.djf-grid--clips {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.djf-clip__media {
	aspect-ratio: 16 / 9;
}

.djf-clip__title {
	margin: 0.75rem 0 0;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.25;
}

/* ==========================================================================
   In Development
   ========================================================================== */

.djf-slate__note {
	margin-top: clamp(2.5rem, 6vw, 4rem);
	padding-top: 1.5rem;
	border-top: 1px solid var(--djf-line);
	color: var(--djf-smoke);
}

/* ==========================================================================
   Popups
   ========================================================================== */

.djf-popup {
	display: none;
}

.djf-modal .djf-popup {
	display: block;
}

.djf-modal {
	width: min(94vw, 72rem);
	max-width: none;
	max-height: none;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: #0e0e0f;
	color: var(--djf-paper);
	overflow: visible;
	animation: djf-modal-in 0.45s var(--djf-ease-out) both;
}

.djf-modal.is-closing {
	animation: djf-modal-out 0.22s ease both;
}

.djf-modal::backdrop {
	background: rgba(0, 0, 0, 0.72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

@keyframes djf-modal-in {
	from {
		opacity: 0;
		transform: translateY(1.5rem) scale(0.985);
	}
}

@keyframes djf-modal-out {
	to {
		opacity: 0;
		transform: translateY(0.75rem);
	}
}

.djf-modal__box {
	max-height: min(88vh, 88svh);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
}

.djf-modal__close {
	position: sticky;
	top: 0;
	z-index: 2;
	display: block;
	margin: 0 calc(clamp(1.25rem, 4vw, 3rem) * -1) 0 auto;
	padding: 1rem clamp(1.25rem, 4vw, 3rem);
	border: 0;
	background: linear-gradient(to bottom, #0e0e0f 60%, rgba(14, 14, 15, 0));
	color: var(--djf-paper);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.djf-modal__close:hover {
	color: var(--djf-tungsten);
}

.djf-pop {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: start;
}

@media (min-width: 48em) {
	.djf-pop {
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	}
}

.djf-pop__poster {
	aspect-ratio: 2 / 3;
	max-width: 24rem;
}

.djf-pop__title {
	margin: 0 0 0.5rem;
	font-size: clamp(2rem, 4.5vw, 3.5rem);
	font-weight: 800;
	line-height: 0.9;
	text-transform: uppercase;
}

.djf-pop__role {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--djf-tungsten);
}

.djf-pop__meta {
	margin: 0.25rem 0 1.25rem;
	color: var(--djf-smoke);
}

.djf-pop__cast,
.djf-episode__cast {
	margin: 0 0 1rem;
	font-size: 0.975rem;
	line-height: 1.5;
}

.djf-episode__cast {
	margin: -0.25rem 0 0.5rem;
	font-size: 0.9375rem;
}

.djf-cast__label {
	font-family: var(--djf-display);
	font-weight: 600;
	color: var(--djf-smoke);
	margin-right: 0.3em;
}

.djf-pop__logline {
	margin: 0 0 1.25rem;
	font-size: clamp(1.1875rem, 1.8vw, 1.4375rem);
	line-height: 1.45;
}

.djf-pop__text {
	margin: 0 0 1rem;
	max-width: 62ch;
}

.djf-pop .djf-facade {
	margin-top: 1.5rem;
}

.djf-pop__actions {
	margin-top: 1.75rem;
}

/* Episodes inside a series popup */
.djf-episodes {
	margin-top: clamp(2rem, 5vw, 3.5rem);
}

.djf-episodes__head {
	display: flex;
	align-items: flex-end;
	gap: 1.25rem;
	margin: 0 0 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--djf-line);
}

.djf-episodes__poster {
	width: clamp(6.5rem, 14vw, 9rem);
	height: auto;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	flex: none;
}

.djf-episodes__title {
	margin: 0;
	font-size: clamp(1.25rem, 2.4vw, 1.75rem);
	font-weight: 700;
}

.djf-episodes__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.5rem;
}

.djf-episode {
	display: grid;
	gap: 0.75rem 1.5rem;
}

@media (min-width: 40em) {
	.djf-episode {
		grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
		align-items: start;
	}
}

.djf-episode__media {
	aspect-ratio: 16 / 9;
}

.djf-episode__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.25;
}

.djf-episode__num {
	color: var(--djf-smoke);
	font-weight: 600;
	margin-right: 0.25rem;
}

.djf-episode__credit {
	margin: 0.2rem 0 0.5rem;
	font-size: 0.9375rem;
	color: var(--djf-tungsten);
}

.djf-episode__text {
	margin: 0 0 0.5rem;
	font-size: 0.975rem;
	line-height: 1.55;
}

/* Inline trailer */
.djf-facade {
	aspect-ratio: 16 / 9;
}

.djf-facade iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.djf-facade__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	gap: 0.75rem;
	padding: 0.75rem;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 55%);
	border: 0;
	color: #f4f2ee;
	font-weight: 600;
	cursor: pointer;
}

.djf-facade__play .djf-playmark {
	position: static;
}

.djf-facade__play:hover .djf-playmark,
.djf-facade__play:focus-visible .djf-playmark {
	background: var(--djf-tungsten);
	color: #000;
}

/* ==========================================================================
   Video lightbox
   ========================================================================== */

.djf-lightbox {
	width: min(94vw, 90rem);
	max-width: none;
	max-height: none;
	padding: 0;
	border: 0;
	background: transparent;
	color: #f4f2ee;
	overflow: visible;
}

.djf-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.92);
}

.djf-lightbox__bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0 0 0.75rem;
}

.djf-lightbox__title {
	margin: 0;
	font-weight: 600;
}

.djf-lightbox__close {
	appearance: none;
	background: none;
	border: 0;
	padding: 0.5rem 0;
	color: #f4f2ee;
	font: inherit;
	font-family: var(--djf-display);
	font-weight: 600;
	cursor: pointer;
}

.djf-lightbox__close:hover {
	color: var(--djf-tungsten);
}

.djf-lightbox__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	max-height: 80vh;
	margin: 0 auto;
	background: #000;
}

.djf-lightbox__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ==========================================================================
   Gallery carousel (Gallery block > Styles > Carousel)
   ========================================================================== */

.wp-block-gallery.is-style-djf-carousel {
	position: relative;
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 1rem !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	max-width: 64rem;
	margin-top: 2rem;
	margin-bottom: 0;
}

.wp-block-gallery.is-style-djf-carousel::-webkit-scrollbar {
	display: none;
}

.wp-block-gallery.is-style-djf-carousel.has-nested-images figure.wp-block-image:not(#individual-image) {
	flex: 0 0 min(85%, 44rem);
	width: auto;
	margin: 0;
	scroll-snap-align: center;
	aspect-ratio: 3 / 2;
}

.wp-block-gallery.is-style-djf-carousel.has-nested-images figure.wp-block-image:not(#individual-image) img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.djf-carousel__controls {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	max-width: 64rem;
	margin: 0.75rem auto 2rem;
}

.djf-carousel__btn {
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--djf-line);
	border-radius: 50%;
	background: transparent;
	color: var(--djf-paper);
	font-size: 1.125rem;
	cursor: pointer;
}

.djf-carousel__btn:hover {
	background: var(--djf-tungsten);
	border-color: var(--djf-tungsten);
	color: #000;
}

/* ==========================================================================
   Assistant Directing: wider content for the credits
   ========================================================================== */

.djf-ad .djf-intro > * {
	max-width: 64rem;
}

.djf-credits {
	margin: 0 0 2.5rem;
	overflow-x: auto;
}

.djf-credits table {
	width: 100%;
	min-width: 54rem;
	table-layout: auto;
	border-collapse: collapse;
	font-size: 0.975rem;
}

.djf-credits th,
.djf-credits td {
	padding: 0.65rem 1rem 0.65rem 0;
	border: 0;
	border-bottom: 1px solid var(--djf-line);
	text-align: left;
	vertical-align: top;
}

.djf-credits th {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--djf-smoke);
}

.djf-credits td:first-child,
.djf-credits th:first-child {
	width: 5.5rem;
	color: var(--djf-smoke);
}

.djf-credits td:nth-child(2) {
	width: 22%;
	font-weight: 600;
}

.djf-credits td:nth-child(3) {
	width: 16%;
	color: var(--djf-tungsten);
}

.djf-credits td:nth-child(6) {
	color: var(--djf-smoke);
}

.djf-ad h2 {
	margin-top: clamp(2rem, 5vw, 3rem);
	font-size: clamp(1.375rem, 2.4vw, 1.875rem);
}

/* ==========================================================================
   About
   ========================================================================== */

.djf-about {
	display: grid;
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: start;
}

@media (min-width: 48em) {
	.djf-about {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}
}

.djf-portrait {
	margin: 0;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--djf-surface);
}

.djf-portrait__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.djf-portrait--empty {
	display: grid;
	place-items: center;
	border: 1px dashed var(--djf-line);
	color: var(--djf-smoke);
	font-family: var(--djf-display);
	text-align: center;
	line-height: 1.5;
}

.djf-about__text > *:first-child {
	margin-top: 0;
}

/* ==========================================================================
   Contact form
   ========================================================================== */

.djf-form {
	margin-top: 1.5rem;
}

.djf-form__row {
	display: grid;
	gap: 0 1.25rem;
}

@media (min-width: 40em) {
	.djf-form__row {
		grid-template-columns: 1fr 1fr;
	}
}

.djf-form__field {
	margin: 0 0 1.25rem;
}

.djf-form label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.9375rem;
	font-weight: 600;
}

.djf-form__optional {
	font-weight: 400;
	color: var(--djf-smoke);
}

.djf-form input,
.djf-form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.8rem 0.9rem;
	border: 1px solid #3a3a3a;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.04);
	color: var(--djf-paper);
	font: inherit;
}

.djf-form input:focus,
.djf-form textarea:focus {
	outline: none;
	border-color: var(--djf-tungsten);
	box-shadow: 0 0 0 1px var(--djf-tungsten);
}

.djf-form__trap {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.djf-form__notice {
	margin: 0 0 1.5rem;
	padding: 0.9rem 1.1rem;
	border-left: 3px solid var(--djf-tungsten);
	background: rgba(255, 255, 255, 0.05);
}

.djf-form__notice.is-error {
	border-left-color: #e5484d;
}

/* ==========================================================================
   Fernavision: its own look
   ========================================================================== */

.djf-fv {
	--djf-fv-magenta: #c21fe0;
	--djf-fv-cyan: #1d8fe8;
	--djf-tungsten: #e04bf5;
	background-color: #040a22;
	background-image:
		radial-gradient(ellipse 80% 55% at 50% 10%, rgba(29, 90, 220, 0.28), rgba(4, 10, 34, 0) 70%),
		radial-gradient(circle, rgba(70, 120, 255, 0.16) 1.3px, transparent 1.8px);
	background-size: 100% 100%, 10px 10px;
	background-attachment: fixed, fixed;
}

.djf-fv .djf-fv-main {
	overflow-x: clip;
}

.djf-fv-hero {
	margin-bottom: clamp(1.5rem, 4vw, 3rem);
	text-align: center;
}

.djf-fv-hero__logo {
	display: block;
	width: 100%;
	max-width: 70rem;
	height: auto;
	margin: 0 auto;
	box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.5);
}

.djf-fv-hero__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 2.25rem;
	margin-top: 1.5rem;
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.djf-fv-hero__nav a {
	color: #fff;
	text-decoration: none;
}

.djf-fv-hero__nav a:hover {
	color: var(--djf-fv-magenta);
}

.djf-fv .fv-intro {
	max-width: 44rem;
	margin: 0 auto clamp(2rem, 5vw, 4rem);
	font-size: clamp(1.125rem, 1.6vw, 1.375rem);
	line-height: 1.55;
	text-align: center;
}

/* Sections alternate: a lifted navy band, then the halftone background.
   The band runs edge to edge while the text stays in the centre column. */
.djf-fv .fv-section {
	position: relative;
	padding: clamp(2.75rem, 6vw, 4.5rem) 0;
	color: #fff;
}

.djf-fv .fv-section:nth-of-type(odd) {
	background: rgba(22, 44, 120, 0.42);
	box-shadow: 0 0 0 100vmax rgba(22, 44, 120, 0.42);
	clip-path: inset(0 -100vmax);
}

.djf-fv .fv-section:nth-of-type(even) {
	background: rgba(2, 6, 22, 0.55);
	box-shadow: 0 0 0 100vmax rgba(2, 6, 22, 0.55);
	clip-path: inset(0 -100vmax);
}

.djf-fv .fv-section > h2,
.djf-fv .djf-popup > h2 {
	margin: 0 0 1.25rem;
	font-stretch: 62%;
	font-variation-settings: "wdth" 62;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
	font-style: oblique 10deg;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
	text-shadow: -3px -2px 0 var(--djf-fv-magenta), 3px 2px 0 var(--djf-fv-cyan);
}

.djf-fv .wp-element-button,
.djf-fv .wp-block-button__link {
	background: #fff;
	color: #061033;
}

.djf-fv .wp-element-button:hover,
.djf-fv .wp-block-button__link:hover {
	background: var(--djf-fv-magenta);
	color: #fff;
}

.djf-fv .djf-modal {
	background: #060d2b;
	border-color: rgba(120, 150, 255, 0.25);
}

.djf-fv .djf-modal__close {
	background: linear-gradient(to bottom, #060d2b 60%, rgba(6, 13, 43, 0));
}

.djf-fv .djf-form input,
.djf-fv .djf-form textarea {
	border-color: rgba(120, 150, 255, 0.35);
	background: rgba(4, 10, 34, 0.6);
}

/* ==========================================================================
   Footer: solid navy
   ========================================================================== */

.djf-footer {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	gap: 1rem 2rem;
	padding: 2rem var(--djf-pad) calc(2rem + env(safe-area-inset-bottom, 0px));
	background: var(--djf-navy);
	font-size: 0.9375rem;
	color: #b8bfcc;
}

.djf-footer p {
	margin: 0;
}

.djf-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

.djf-footer__links a {
	color: #b8bfcc;
	text-decoration: none;
}

.djf-footer__links a:hover {
	color: #fff;
}

/* ==========================================================================
   Page to page: wipe to black left to right, hold, wipe in left to right
   ========================================================================== */

@view-transition {
	navigation: auto;
}

::view-transition {
	background: #000;
}

::view-transition-group(root) {
	animation-duration: 1.4s;
}

::view-transition-old(root) {
	animation: djf-wipe-out 0.5s var(--djf-ease) both;
}

::view-transition-new(root) {
	animation: djf-wipe-in 0.5s var(--djf-ease) 0.9s both;
}

::view-transition-group(djf-header),
::view-transition-old(djf-header),
::view-transition-new(djf-header) {
	animation-duration: 0s;
}

/* Black edge travels left to right, covering the old page */
@keyframes djf-wipe-out {
	from {
		clip-path: inset(0 0 0 0);
	}
	to {
		clip-path: inset(0 0 0 100%);
	}
}

/* New page revealed left to right */
@keyframes djf-wipe-in {
	from {
		clip-path: inset(0 100% 0 0);
	}
	to {
		clip-path: inset(0 0 0 0);
	}
}

/* ==========================================================================
   Reduced motion: no wipes, no auto-advance, panels simply stack
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	@view-transition {
		navigation: none;
	}

	.djf-panel {
		position: relative;
	}

	.djf-scrollcue,
	.djf-modal,
	.djf-header .djf-nav .wp-block-navigation__responsive-container.is-menu-open,
	.djf-header .djf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		animation: none;
	}

	.djf-panel__link::before,
	.djf-card__media img,
	.djf-clip__media img,
	.djf-episode__media img {
		transition: none;
	}
}
