/*
Theme Name: Twenty Twenty-Five FMP
Theme URI: https://forwardmotionproductions.org/
Description: Forward Motion Productions cinematic child theme of Twenty Twenty-Five. Dark studio surface, cyan brand accent, Fraunces + Inter pairing. Built to derive from the FMP logo (cyan running figure) and reference Universal/MGM editorial cinematic theming.
Author: Forward Motion Productions
Author URI: https://forwardmotionproductions.org/
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive-fmp
*/

/* ============================================================
   Forward Motion Productions — Brand Tokens
   Locked via ui-ux-pro-max. Do not modify without re-running.
   ============================================================ */

:root {
	--fmp-bg:               #0A0B0E;
	--fmp-surface:          #13151A;
	--fmp-surface-elevated: #1B1E25;
	--fmp-fg:               #F5F7FA;
	--fmp-fg-muted:         #9AA3B2;
	--fmp-fg-subtle:        #5C6473;
	--fmp-border:           rgba(245, 247, 250, 0.08);
	--fmp-border-strong:    rgba(245, 247, 250, 0.16);
	--fmp-cyan:             #7CD5EC;
	--fmp-cyan-deep:        #4EBBDA;
	--fmp-cyan-glow:        rgba(124, 213, 236, 0.18);
	--fmp-peach:            #F4C9B5;
	--fmp-overlay:          rgba(10, 11, 14, 0.72);

	--fmp-ease:             cubic-bezier(0.2, 0, 0, 1);
	--fmp-dur-fast:         160ms;
	--fmp-dur-base:         220ms;
	--fmp-dur-slow:         320ms;
}

/* ============================================================
   Global surface
   ============================================================ */

html, body {
	background: var(--fmp-bg);
	color: var(--fmp-fg);
	font-feature-settings: "ss01", "cv11";
}

a {
	color: var(--fmp-cyan);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	text-decoration-color: var(--fmp-cyan);
	transition: text-decoration-thickness var(--fmp-dur-fast) var(--fmp-ease);
}

a:hover {
	text-decoration-thickness: 2px;
}

a:focus-visible {
	outline: 2px solid var(--fmp-cyan);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Tabular numerals on data fields */
.fmp-tabular,
.fmp-meta time,
.fmp-runtime,
.fmp-year {
	font-feature-settings: "tnum", "lnum";
	font-variant-numeric: tabular-nums lining-nums;
}

/* ============================================================
   Hero video
   ============================================================ */

.fmp-hero {
	position: relative;
	width: 100%;
	min-height: 88vh;
	min-height: 88dvh;
	overflow: hidden;
	background: var(--fmp-bg);
	display: flex;
	align-items: flex-end;
}

.fmp-hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	pointer-events: none;
	transition: opacity var(--fmp-dur-slow) var(--fmp-ease),
	            filter var(--fmp-dur-slow) var(--fmp-ease);
}

/* While the logo animation plays, let it own the frame; once it ends the
   frozen white frame is dimmed so the white hero copy stays legible. */
.fmp-hero.is-revealed .fmp-hero-video {
	opacity: 0.32;
	filter: brightness(0.7) saturate(1.05);
}

.fmp-hero-scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(10,11,14,0.35) 0%, rgba(10,11,14,0.0) 30%, var(--fmp-overlay) 100%);
	z-index: 1;
	pointer-events: none;
	transition: background var(--fmp-dur-slow) var(--fmp-ease);
}

.fmp-hero.is-revealed .fmp-hero-scrim {
	background:
		linear-gradient(180deg, rgba(10,11,14,0.62) 0%, rgba(10,11,14,0.55) 45%, rgba(10,11,14,0.85) 100%);
}

.fmp-hero-content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vw, 6rem);
}

/* Copy is hidden only when JS confirms the video will play through.
   No-JS, reduced-motion, and error paths leave it visible. */
.fmp-hero.is-pending .fmp-hero-content {
	opacity: 0;
	transform: translateY(14px);
}

.fmp-hero .fmp-hero-content {
	transition: opacity var(--fmp-dur-slow) var(--fmp-ease),
	            transform var(--fmp-dur-slow) var(--fmp-ease);
}

.fmp-hero.is-revealed .fmp-hero-content {
	opacity: 1;
	transform: none;
}

/* Keep white copy readable over the (light) logo frame. */
.fmp-hero-title,
.fmp-hero-sub,
.fmp-hero-eyebrow {
	text-shadow: 0 1px 24px rgba(10, 11, 14, 0.6);
}

.fmp-hero-eyebrow {
	font-family: "Inter", system-ui, sans-serif;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--fmp-cyan);
	margin: 0 0 1rem;
}

.fmp-hero-title {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 400;
	font-size: clamp(2.5rem, 7vw, 5.96rem);
	line-height: 1.05;
	letter-spacing: -0.015em;
	color: var(--fmp-fg);
	margin: 0;
	max-width: 18ch;
	text-wrap: balance;
}

.fmp-hero-title em {
	font-style: italic;
	color: var(--fmp-cyan);
	text-shadow: 0 0 32px var(--fmp-cyan-glow);
}

.fmp-hero-sub {
	font-family: "Inter", system-ui, sans-serif;
	font-size: clamp(1rem, 1.4vw, 1.25rem);
	color: var(--fmp-fg-muted);
	margin: 1.5rem 0 0;
	max-width: 52ch;
	line-height: 1.55;
}

/* ============================================================
   Buttons (primary cyan, secondary ghost)
   ============================================================ */

.fmp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 1.5rem;
	min-height: 44px;
	font-family: "Inter", system-ui, sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 2px;
	cursor: pointer;
	transition: background-color var(--fmp-dur-base) var(--fmp-ease),
	            border-color var(--fmp-dur-base) var(--fmp-ease),
	            color var(--fmp-dur-base) var(--fmp-ease),
	            transform var(--fmp-dur-base) var(--fmp-ease);
}

.fmp-btn-primary {
	background: var(--fmp-cyan);
	color: var(--fmp-bg);
}

.fmp-btn-primary:hover {
	background: var(--fmp-cyan-deep);
	text-decoration: none;
}

.fmp-btn-primary:active {
	transform: translateY(1px);
}

.fmp-btn-ghost {
	background: transparent;
	color: var(--fmp-fg);
	border-color: var(--fmp-border-strong);
}

.fmp-btn-ghost:hover {
	border-color: var(--fmp-cyan);
	color: var(--fmp-cyan);
	text-decoration: none;
}

.fmp-btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

/* ============================================================
   Sections
   ============================================================ */

.fmp-section {
	padding: clamp(4rem, 9vw, 6rem) clamp(1.25rem, 4vw, 3rem);
	max-width: 1280px;
	margin: 0 auto;
}

.fmp-section-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 3rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--fmp-border);
}

.fmp-section-title {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 400;
	font-size: clamp(1.75rem, 3.5vw, 2.441rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--fmp-fg);
	margin: 0;
}

.fmp-section-eyebrow {
	font-family: "Inter", system-ui, sans-serif;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--fmp-cyan);
	margin: 0 0 0.5rem;
}

.fmp-section-link {
	font-family: "Inter", system-ui, sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--fmp-fg-muted);
	text-decoration: none;
	white-space: nowrap;
}

.fmp-section-link:hover {
	color: var(--fmp-cyan);
}

/* ============================================================
   Featured films grid
   ============================================================ */

.fmp-films-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

@media (min-width: 768px) {
	.fmp-films-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1024px) {
	.fmp-films-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.fmp-film-card {
	position: relative;
	display: block;
	background: var(--fmp-surface);
	color: var(--fmp-fg);
	text-decoration: none;
	overflow: hidden;
	transition: transform var(--fmp-dur-slow) var(--fmp-ease),
	            box-shadow var(--fmp-dur-slow) var(--fmp-ease);
}

.fmp-film-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px -12px rgba(124, 213, 236, 0.25);
	text-decoration: none;
}

.fmp-film-poster {
	position: relative;
	width: 100%;
	aspect-ratio: 2 / 3;
	background: var(--fmp-surface-elevated);
	overflow: hidden;
}

.fmp-film-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--fmp-dur-slow) var(--fmp-ease);
}

.fmp-film-card:hover .fmp-film-poster img {
	transform: scale(1.04);
}

.fmp-film-meta {
	padding: 1rem 1.25rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.fmp-film-title {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 400;
	font-size: 1.25rem;
	line-height: 1.2;
	letter-spacing: -0.005em;
	color: var(--fmp-fg);
	margin: 0;
}

.fmp-film-submeta {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	font-family: "Inter", system-ui, sans-serif;
	font-size: 0.75rem;
	color: var(--fmp-fg-muted);
}

.fmp-coming-soon {
	font-family: "Inter", system-ui, sans-serif;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--fmp-cyan);
}

.fmp-status-pill {
	display: inline-block;
	padding: 0.125rem 0.5rem;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border: 1px solid var(--fmp-border-strong);
	border-radius: 999px;
	color: var(--fmp-fg-muted);
}

.fmp-status-pill[data-status="released"] {
	color: var(--fmp-cyan);
	border-color: rgba(124, 213, 236, 0.4);
}

.fmp-status-pill[data-status="in-development"] {
	color: var(--fmp-peach);
	border-color: rgba(244, 201, 181, 0.4);
}

/* ============================================================
   Studio CTA strip
   ============================================================ */

.fmp-studio-cta {
	padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
	background: var(--fmp-surface);
	border-top: 1px solid var(--fmp-border);
	border-bottom: 1px solid var(--fmp-border);
}

.fmp-studio-cta-inner {
	max-width: 960px;
	margin: 0 auto;
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.fmp-studio-cta-inner {
		grid-template-columns: 1fr auto;
		align-items: center;
	}
}

.fmp-studio-cta-title {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 400;
	font-size: clamp(1.5rem, 3vw, 2.441rem);
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--fmp-fg);
	margin: 0 0 0.75rem;
}

.fmp-studio-cta-body {
	font-family: "Inter", system-ui, sans-serif;
	color: var(--fmp-fg-muted);
	max-width: 56ch;
	line-height: 1.6;
	margin: 0;
}

/* ============================================================
   Music strip (horizontal scroll)
   ============================================================ */

.fmp-music-strip {
	display: flex;
	gap: 1.25rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 0.75rem;
	scrollbar-width: thin;
	scrollbar-color: var(--fmp-border-strong) transparent;
}

.fmp-music-card {
	flex: 0 0 240px;
	scroll-snap-align: start;
	background: var(--fmp-surface);
	padding: 1rem;
	text-decoration: none;
	color: var(--fmp-fg);
	transition: background var(--fmp-dur-base) var(--fmp-ease);
}

.fmp-music-card:hover {
	background: var(--fmp-surface-elevated);
	text-decoration: none;
}

.fmp-music-art {
	aspect-ratio: 1 / 1;
	background: var(--fmp-surface-elevated);
	margin-bottom: 0.75rem;
}

.fmp-music-title {
	font-family: "Fraunces", Georgia, serif;
	font-size: 1rem;
	margin: 0 0 0.25rem;
}

.fmp-music-sub {
	font-family: "Inter", system-ui, sans-serif;
	font-size: 0.75rem;
	color: var(--fmp-fg-muted);
}

/* ============================================================
   Single film layout
   ============================================================ */

.fmp-single {
	max-width: 1100px;
	margin: 0 auto;
	padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
	display: grid;
	gap: clamp(2rem, 4vw, 3rem);
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.fmp-single {
		grid-template-columns: minmax(280px, 360px) 1fr;
		align-items: start;
	}
}

.fmp-single-poster img {
	width: 100%;
	height: auto;
	display: block;
	background: var(--fmp-surface);
}

.fmp-single-title {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 400;
	font-size: clamp(2rem, 4.5vw, 3.815rem);
	line-height: 1.1;
	letter-spacing: -0.015em;
	margin: 0 0 1rem;
	text-wrap: balance;
}

.fmp-single-logline {
	font-family: "Fraunces", Georgia, serif;
	font-style: italic;
	font-size: clamp(1.125rem, 1.6vw, 1.375rem);
	line-height: 1.45;
	color: var(--fmp-fg-muted);
	max-width: 56ch;
	margin: 0 0 2rem;
}

.fmp-single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 2rem;
	padding: 1.25rem 0;
	border-top: 1px solid var(--fmp-border);
	border-bottom: 1px solid var(--fmp-border);
	margin: 0 0 2rem;
	font-family: "Inter", system-ui, sans-serif;
	font-size: 0.875rem;
	color: var(--fmp-fg-muted);
}

.fmp-single-meta dt {
	font-size: 0.6875rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fmp-fg-subtle);
	margin-bottom: 0.25rem;
}

.fmp-single-meta dd {
	margin: 0;
	color: var(--fmp-fg);
}

.fmp-single-trailer {
	aspect-ratio: 16 / 9;
	background: var(--fmp-surface);
	margin: 2rem 0;
}

.fmp-single-trailer iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

/* ============================================================
   Header / Nav
   ============================================================ */

.fmp-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1.25rem, 4vw, 3rem);
}

.fmp-header-inner {
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.fmp-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	color: var(--fmp-fg);
	text-decoration: none;
	font-family: "Inter", system-ui, sans-serif;
	font-weight: 600;
	letter-spacing: 0.1em;
	font-size: 0.875rem;
	text-transform: uppercase;
}

.fmp-logo img {
	height: clamp(46px, 6vw, 56px);
	width: auto;
	filter: drop-shadow(0 0 16px var(--fmp-cyan-glow));
}

.fmp-footer .fmp-logo img {
	height: 47px;
}

.fmp-nav {
	display: flex;
	gap: clamp(1.25rem, 3vw, 2.5rem);
}

.fmp-nav a {
	font-family: "Inter", system-ui, sans-serif;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fmp-fg);
	text-decoration: none;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.fmp-nav a:hover,
.fmp-nav a[aria-current="page"] {
	color: var(--fmp-cyan);
}

/* ============================================================
   Footer
   ============================================================ */

.fmp-footer {
	background: var(--fmp-surface);
	border-top: 1px solid var(--fmp-border);
	padding: clamp(3rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem) 2rem;
	color: var(--fmp-fg-muted);
}

.fmp-footer-inner {
	max-width: 1280px;
	margin: 0 auto;
	display: grid;
	gap: 2.5rem;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.fmp-footer-inner {
		grid-template-columns: 2fr 1fr 1fr 1fr;
	}
}

.fmp-footer h4 {
	font-family: "Inter", system-ui, sans-serif;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fmp-fg-subtle);
	margin: 0 0 1rem;
}

.fmp-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.fmp-footer a {
	color: var(--fmp-fg);
	text-decoration: none;
	font-family: "Inter", system-ui, sans-serif;
	font-size: 0.875rem;
}

.fmp-footer a:hover {
	color: var(--fmp-cyan);
}

.fmp-footer-bottom {
	max-width: 1280px;
	margin: 3rem auto 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--fmp-border);
	font-size: 0.75rem;
	color: var(--fmp-fg-subtle);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.fmp-film-card:hover {
		transform: none;
	}

	.fmp-film-card:hover .fmp-film-poster img {
		transform: none;
	}

	.fmp-hero-video {
		display: none;
	}
}
