/*
Theme Name: Screenlight Pictures
Theme URI: https://screenlightpictures.com
Author: Screenlight Pictures
Description: Cinematic studio theme for Screenlight Pictures. Full-screen features, a filmography, a timeline, and news.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: screenlight
*/

:root {
	--ink: #161616;
	--muted: #6e685f;
	--paper: #f4f1eb;
	--white: #fffcf8;
	--line: #e4ddd2;
	--gold: #a07d49;
	--dark: #0c0c0c;
	--header: 84px;
	--serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	color: var(--ink);
	background: var(--white);
	font-family: var(--sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }

.skip-link {
	position: absolute;
	left: 16px;
	top: -40px;
	background: #fff;
	color: #000;
	padding: 8px 12px;
	z-index: 100;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.kicker {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--gold);
}
.section { padding: 92px 0; }
.section-head { text-align: center; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); }

.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 40;
	height: var(--header);
	color: #fff;
	transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.site-header.is-solid,
body:not(.is-front) .site-header {
	background: rgba(255, 252, 248, 0.94);
	color: var(--ink);
	box-shadow: 0 1px 0 var(--line);
	backdrop-filter: blur(12px);
}
body:not(.is-front) { padding-top: var(--header); }
.header-bar {
	height: 100%;
	width: min(1280px, calc(100% - 40px));
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-beam {
	width: 28px;
	height: 2px;
	background: var(--gold);
	box-shadow: 0 7px 0 rgba(160, 125, 73, 0.45);
	flex: none;
}
.logo-type { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
	font-family: var(--serif);
	font-size: 22px;
	letter-spacing: 0.08em;
}
.logo-sub {
	margin-top: 4px;
	font-size: 10px;
	letter-spacing: 0.42em;
	text-transform: uppercase;
}
.custom-logo { max-height: 48px; width: auto; }
.nav-list, .footer-links { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav-list a, .footer-links a { text-decoration: none; }
.nav-list a {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}
.nav-list .current-menu-item a { box-shadow: inset 0 -1px 0 currentColor; }
.nav-toggle {
	display: none;
	background: none;
	border: 0;
	color: inherit;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-size: 11px;
}
.nav-toggle-lines, .nav-toggle-lines:before, .nav-toggle-lines:after {
	display: block;
	width: 18px;
	height: 1px;
	background: currentColor;
	position: relative;
}
.nav-toggle-lines:before, .nav-toggle-lines:after {
	content: "";
	position: absolute;
	left: 0;
}
.nav-toggle-lines:before { top: -6px; }
.nav-toggle-lines:after { top: 6px; }

.hero {
	position: relative;
	height: 100vh;
	min-height: 640px;
	background: #000;
	color: #fff;
	overflow: hidden;
}
.hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .7s ease;
	pointer-events: none;
}
.hero-slide.is-active { opacity: 1; z-index: 1; pointer-events: auto; }
.hero-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.08);
}
.hero-slide.is-active img { animation: sl-drift 16s ease forwards; }
@keyframes sl-drift { to { transform: scale(1); } }
.hero-shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.05) 28%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.78) 100%),
		linear-gradient(90deg, rgba(0,0,0,.5), transparent 60%);
}
.hero-copy {
	position: absolute;
	left: max(32px, calc((100% - 1280px) / 2));
	bottom: 72px;
	z-index: 2;
	max-width: 760px;
}
.hero-copy h1 { font-size: clamp(3.4rem, 8vw, 7rem); color: #fff; }
.hero-meta { margin: 14px 0 0; letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px; }
.hero .kicker { color: #e6d3b0; }
.play {
	position: absolute;
	left: 50%;
	top: 46%;
	z-index: 2;
	width: 92px;
	height: 92px;
	margin: -46px 0 0 -46px;
	border: 1px solid rgba(255,255,255,.75);
	border-radius: 50%;
	display: grid;
	place-items: center;
	text-decoration: none;
	transition: background .2s ease;
}
.play:hover, .play:focus-visible { background: rgba(255,255,255,.12); }
.play span {
	width: 0; height: 0;
	border-left: 16px solid #fff;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	margin-left: 4px;
}
.hero-ui {
	position: absolute;
	right: max(32px, calc((100% - 1280px) / 2));
	bottom: 36px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 12px;
	letter-spacing: 0.18em;
}
.hero-ui button, .text-link, .btn, .filter-bar button, .year-list button, .tab-list button {
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
}
.hero-ui button { letter-spacing: 0.18em; text-transform: uppercase; font-size: 11px; }
.text-link {
	display: inline-block;
	margin-top: 18px;
	padding-bottom: 4px;
	border-bottom: 1px solid currentColor;
	text-decoration: none;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-size: 11px;
	font-weight: 500;
}

.synopsis { background: var(--paper); }
.synopsis-grid, .split, .film-layout, .contact-grid, .news-article {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}
.synopsis h2, .page-hero h1, .film-hero h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); }
.lede { font-size: 1.05rem; color: #3c3832; }
.still-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.still {
	position: relative;
	display: block;
	aspect-ratio: 3/2;
	overflow: hidden;
	text-decoration: none;
	color: #fff;
}
.still img, .film-card img, .practice-card img, .news-card img, .panel-media img, .page-hero img, .film-hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.still span, .practice-card > span {
	position: absolute;
	left: 16px;
	bottom: 14px;
	z-index: 1;
	font-family: var(--serif);
	font-size: 1.4rem;
}
.still:after, .practice-card:after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(transparent 40%, rgba(0,0,0,.62));
}

.quotes { text-align: center; background: var(--white); }
.quote-slide { display: none; max-width: 820px; margin: 0 auto; }
.quote-slide.is-active { display: block; }
.quote-slide blockquote {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(1.6rem, 3vw, 2.35rem);
	font-weight: 500;
	line-height: 1.35;
}
.quote-slide footer { margin-top: 22px; color: var(--muted); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.quote-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.quote-dots button {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--line); border: 0; padding: 0;
}
.quote-dots button.is-active { background: var(--gold); }

.film-grid, .news-grid, .practice-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px 22px;
}
.practice-grid { grid-template-columns: repeat(4, 1fr); }
.film-card, .news-card { text-decoration: none; color: inherit; display: block; }
.film-card-media, .news-card-media, .practice-card {
	position: relative;
	display: block;
	overflow: hidden;
	background: #111;
	aspect-ratio: 3/2;
}
.practice-card { aspect-ratio: 3/4; color: #fff; }
.film-card:hover img, .news-card:hover img, .still:hover img { transform: scale(1.05); }
.film-card img, .news-card img, .still img { transition: transform .6s ease; }
.film-card-kicker, .news-card time, .status-pill {
	display: block;
	margin-top: 12px;
	color: var(--gold);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}
.film-card-title, .news-card h3 { display: block; margin-top: 4px; font-size: 1.7rem; }
.news-card p { color: var(--muted); margin: 8px 0 0; }
.status-pill {
	position: absolute;
	top: 12px;
	left: 12px;
	margin: 0;
	background: rgba(12,12,12,.72);
	color: #fff;
	padding: 6px 8px;
	z-index: 1;
}

.band { background: var(--paper); position: relative; overflow: hidden; }
.outline {
	position: absolute;
	left: -2vw;
	top: 10px;
	font-family: var(--serif);
	font-size: 16vw;
	line-height: .8;
	color: transparent;
	-webkit-text-stroke: 1px rgba(22,22,22,.08);
	pointer-events: none;
	white-space: nowrap;
}
.practice-card h3 { position: absolute; left: 18px; bottom: 58px; z-index: 1; font-size: 1.8rem; color: #fff; }
.practice-card p { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; margin: 0; font-size: 13px; line-height: 1.45; }

.tabs { background: var(--dark); color: #f4f1eb; }
.tab-list { display: flex; gap: 22px; border-bottom: 1px solid rgba(255,255,255,.16); margin-bottom: 28px; }
.tab-list button {
	padding: 0 0 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-size: 12px;
	color: rgba(255,255,255,.55);
}
.tab-list button.is-active { color: #fff; box-shadow: inset 0 -1px 0 #fff; }
.tab-panel { display: none; max-width: 760px; }
.tab-panel.is-active { display: block; }
.tab-panel p { color: rgba(244,241,235,.82); }

.timeline { background: var(--white); }
.year-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin: 0 0 28px; }
.year-list button {
	flex: none;
	min-width: 72px;
	padding: 10px 8px;
	border-bottom: 1px solid var(--line);
	letter-spacing: 0.12em;
	font-size: 13px;
}
.year-list button.is-active { border-color: var(--ink); font-weight: 600; }
.time-panel { display: none; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.time-panel.is-active { display: grid; }
.panel-media { aspect-ratio: 16/10; overflow: hidden; background: #111; }
.time-panel h3 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 8px 0 12px; }

.studio-band { background: var(--paper); }
.studio-band img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/11; }
.partners { padding: 28px 0 64px; }
.partner-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-size: 12px;
}

.page-hero, .film-hero { position: relative; min-height: 420px; color: #fff; background: #111; display: grid; align-items: end; }
.page-hero img, .film-hero img { position: absolute; inset: 0; }
.page-hero .shade, .film-hero .shade {
	position: absolute; inset: 0;
	background: linear-gradient(transparent, rgba(0,0,0,.72));
}
.page-hero .wrap, .film-hero .wrap { position: relative; z-index: 1; padding-bottom: 42px; }
.page-hero .kicker, .film-hero .kicker { color: #e6d3b0; }
.page-section { padding: 72px 0 96px; }
.prose { max-width: 760px; }
.prose p, .film-copy p { margin: 0 0 1em; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.facts dd { margin: 0; }
.credit-block, .award-block { white-space: pre-line; }
.related { margin-top: 64px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-bar button {
	border: 1px solid var(--line);
	padding: 8px 14px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-size: 11px;
}
.filter-bar button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
	border: 1px solid var(--line);
	background: #fff;
	padding: 12px 14px;
	color: var(--ink);
	font-size: 15px;
	letter-spacing: 0;
	text-transform: none;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.btn {
	justify-self: start;
	background: var(--ink);
	color: #fff;
	padding: 14px 22px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-size: 12px;
	text-decoration: none;
}
.notice { padding: 14px 16px; background: var(--paper); margin-bottom: 16px; }
.hp { position: absolute; left: -9999px; }

.site-footer { background: var(--dark); color: #f4f1eb; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr .8fr; gap: 32px; }
.footer-label { letter-spacing: 0.2em; text-transform: uppercase; font-size: 11px; color: var(--gold); }
.footer-links { flex-direction: column; gap: 8px; }
.footer-note, .footer-fine { color: rgba(244,241,235,.72); }
.footer-base {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 36px;
	padding-top: 18px;
	border-top: 1px solid rgba(255,255,255,.12);
	color: rgba(244,241,235,.55);
	font-size: 12px;
}
.footer-base p { margin: 0; }
.logo-on-dark { color: #fff; margin-bottom: 14px; }

.empty { color: var(--muted); }

@media (max-width: 980px) {
	.synopsis-grid, .split, .film-layout, .contact-grid, .news-article, .time-panel.is-active, .footer-grid {
		grid-template-columns: 1fr;
	}
	.practice-grid, .film-grid, .news-grid { grid-template-columns: 1fr 1fr; }
	.still-row { grid-template-columns: 1fr; }
	.footer-base { flex-direction: column; }
}
@media (max-width: 760px) {
	.nav-toggle { display: flex; }
	.site-nav {
		display: none;
		position: fixed;
		inset: 0;
		background: rgba(12,12,12,.96);
		z-index: 30;
		padding: calc(var(--header) + 24px) 32px 32px;
	}
	.site-header.is-open .site-nav { display: block; }
	.site-header.is-open { color: #fff; background: transparent; box-shadow: none; }
	.nav-list { flex-direction: column; gap: 18px; }
	.nav-list a { color: #fff; font-size: 22px; letter-spacing: 0.14em; font-family: var(--serif); text-transform: none; }
	.film-grid, .news-grid, .practice-grid { grid-template-columns: 1fr; }
	.hero-copy { left: 20px; right: 20px; bottom: 88px; }
	.hero-ui { left: 20px; right: auto; }
	.play { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
	.facts div { grid-template-columns: 1fr; gap: 4px; }
	.wrap { width: min(var(--max), calc(100% - 32px)); }
}
body.is-intro { background: #000; overflow: hidden; }
.intro {
	min-height: 100vh;
	min-height: 100dvh;
	background: #000;
	display: grid;
	place-items: center;
	position: relative;
	color: #fff;
}
.intro-stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 28px;
	width: min(920px, calc(100% - 48px));
	padding-bottom: 48px;
}
.intro-video {
	width: auto;
	height: auto;
	max-width: min(34vw, 280px);
	max-height: 34vh;
	object-fit: contain;
	background: #000;
}
.intro-line {
	margin: 0;
	max-width: 100%;
	font-family: "Abril Fatface", serif;
	font-style: italic;
	font-weight: 400;
	font-synthesis: style;
	font-size: clamp(2.15rem, 5.6vw, 4.35rem);
	line-height: 1.05;
	letter-spacing: 0;
	text-align: center;
	color: #f4efe6;
}
.intro-play {
	position: absolute;
	z-index: 2;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.75);
	background: transparent;
	color: #fff;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-size: 11px;
	cursor: pointer;
}
.intro-play[hidden] { display: none; }
.intro-bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 28px 26px;
}
.intro-text, .intro-enter {
	background: none;
	border: 0;
	color: rgba(255,255,255,.72);
	cursor: pointer;
	text-decoration: none;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-size: 11px;
	font-weight: 500;
}
.intro-enter { border-bottom: 1px solid rgba(255,255,255,.45); padding-bottom: 3px; }
@media (max-width: 760px) {
	.intro-video { max-width: min(52vw, 220px); max-height: 30vh; }
	.intro-bar { padding: 18px 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero-slide, .hero-slide img, .film-card img, .news-card img, .still img { animation: none !important; transition: none !important; }
}
