/* ============================================================
   MOTION CRAFT — "The Screening Room"
   Dark cinema aesthetic · Big Shoulders / Schibsted / Fragment
   ============================================================ */

:root {
	/* warm-shifted neutrals so the signal accent feels native (noxediem's olive trick, desert-keyed) */
	--ink: #0E0D0B;
	--surface: #17150F;
	--line: #2A2620;
	--paper: #F4F1EA;
	--paper-tint: #E9E3D6;
	--muted: #9A9284;
	--muted-paper: #6E675B;
	/* THE accent: desert-sunset signal orange (deep variant carries small text on paper) */
	--signal: #F84300;
	--signal-deep: #B83A00;
	--font-display: "Big Shoulders Display", Impact, sans-serif;
	--font-body: "Schibsted Grotesk", -apple-system, sans-serif;
	--font-mono: "Fragment Mono", ui-monospace, monospace;
	--font-quote: "Instrument Serif", Georgia, serif;
	--pad-x: clamp(20px, 4vw, 56px);
	--max-w: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
/* WP core injects a 24px block-gap between header part, main, and footer
   part; sections own their spacing, so the gap reads as stray padding
   under the nav (visible wherever the hero has imagery behind it). */
.wp-site-blocks > * + * { margin-block-start: 0; }
body {
	margin: 0;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* Film grain over everything (pure CSS, no image requests) */
body::after {
	content: "";
	position: fixed; inset: 0;
	pointer-events: none;
	z-index: 9999;
	opacity: 0.035;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 800;
	text-transform: uppercase;
	line-height: 0.95;
	letter-spacing: 0.01em;
	margin: 0 0 0.5em;
}
.mc-eyebrow {
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--signal);
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}
.mc-eyebrow::before {
	content: "";
	width: 32px; height: 1px;
	background: var(--signal);
	display: inline-block;
}
.mc-lead { font-size: clamp(18px, 1.4vw + 12px, 21px); color: var(--muted); max-width: 56ch; }
.mc-lead strong, .mc-lead b { color: var(--paper); }

/* ---------- Layout primitives ---------- */

.mc-section { padding: clamp(72px, 10vw, 140px) var(--pad-x); position: relative; }
.mc-section--tight { padding-block: clamp(48px, 6vw, 80px); }
.mc-wrap { max-width: var(--max-w); margin-inline: auto; }
.mc-wrap--narrow { max-width: 820px; margin-inline: auto; }
.mc-section--paper { background: var(--paper); color: var(--ink); }
.mc-section--paper .mc-lead { color: #5d5950; }
.mc-section--surface { background: var(--surface); }
.mc-hairline { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Buttons ---------- */

.mc-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 17px 30px;
	border-radius: 2px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all 0.2s ease-out;
}
.mc-btn--primary { background: var(--signal); color: var(--ink); }
.mc-btn--primary:hover { background: var(--signal-deep); color: var(--ink); transform: translateY(-2px); }
.mc-btn--ghost { border-color: rgba(244, 241, 234, 0.35); color: var(--paper); background: transparent; }
.mc-btn--ghost:hover { border-color: var(--signal); color: var(--signal); }
.mc-section--paper .mc-btn--ghost { border-color: rgba(14, 13, 11, 0.3); color: var(--ink); }
.mc-section--paper .mc-btn--ghost:hover { border-color: var(--signal-deep); color: var(--signal-deep); }
.mc-btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }

/* ---------- Header ---------- */

.mc-header {
	position: sticky; top: 0; z-index: 100;
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px;
	padding: 0 var(--pad-x);
	height: 76px;
	background: color-mix(in srgb, var(--ink) 88%, transparent);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.mc-logo {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 24px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	line-height: 1;
}
.mc-logo em { font-style: normal; color: var(--signal); }
.mc-logo small {
	display: block;
	font-family: var(--font-mono);
	font-size: 9px;
	letter-spacing: 0.55em;
	color: var(--muted);
	margin-top: 3px;
}
.mc-nav { display: flex; align-items: center; gap: 34px; }
.mc-nav > a, .mc-nav-drop > button {
	font-family: var(--font-mono);
	font-size: 12.5px;
	line-height: 1; /* buttons don't inherit line-height; pin it so every item shares one baseline */
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--paper);
	background: none; border: 0; cursor: pointer;
	padding: 6px 0;
	position: relative;
}
.mc-nav > a:hover, .mc-nav-drop > button:hover { color: var(--signal); }
.mc-nav > a[aria-current="page"]::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
	height: 2px; background: var(--signal);
}
.mc-nav-drop { position: relative; }
.mc-nav-drop > button { display: block; } /* no inline strut from the wrapper's 17px line box */
.mc-nav-drop > button::after { content: " ▾"; font-size: 10px; }
.mc-nav-drop__menu {
	position: absolute; top: calc(100% + 14px); left: -20px;
	min-width: 250px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 8px;
	display: none;
	flex-direction: column;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}
/* Transparent bridge across the gap so hover survives the button→menu move */
.mc-nav-drop__menu::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: -16px;
	height: 16px;
}
.mc-nav-drop.is-open .mc-nav-drop__menu,
.mc-nav-drop:focus-within .mc-nav-drop__menu { display: flex; }
@media (hover: hover) { .mc-nav-drop:hover .mc-nav-drop__menu { display: flex; } }
.mc-nav-drop__menu a {
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 12px 14px;
	border-radius: 3px;
}
.mc-nav-drop__menu a:hover { background: var(--ink); color: var(--signal); }
.mc-header .mc-btn { padding: 12px 20px; }
.mc-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.mc-burger span { display: block; width: 24px; height: 2px; background: var(--paper); margin: 5px 0; transition: 0.25s; }

@media (max-width: 920px) {
	.mc-burger { display: block; }
	.mc-nav {
		position: fixed; inset: 76px 0 auto 0;
		flex-direction: column; align-items: flex-start;
		gap: 4px;
		background: var(--ink);
		border-bottom: 1px solid var(--line);
		padding: 16px var(--pad-x) 28px;
		display: none;
	}
	.mc-nav.is-open { display: flex; }
	.mc-nav > a, .mc-nav-drop > button { padding: 12px 0; font-size: 14px; }
	.mc-nav-drop__menu { position: static; display: flex; border: 0; background: none; box-shadow: none; padding: 0 0 0 18px; }
	.mc-header .mc-btn { display: none; }
	body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */

.mc-hero {
	position: relative;
	min-height: min(92vh, 980px);
	display: flex;
	align-items: flex-end;
	padding: 120px var(--pad-x) clamp(56px, 8vw, 110px);
	isolation: isolate;
	overflow: hidden;
}
.mc-hero__bg, .mc-hero__bg img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	z-index: -2;
}
.mc-hero__bg::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(14,13,11,0.55) 0%, rgba(14,13,11,0.25) 40%, rgba(14,13,11,0.92) 100%),
		linear-gradient(90deg, rgba(14,13,11,0.55) 0%, transparent 60%);
	z-index: -1;
}
/* letterbox bars */
.mc-hero::before, .mc-hero::after {
	content: ""; position: absolute; left: 0; right: 0;
	height: clamp(14px, 2.4vw, 30px);
	background: var(--ink);
	z-index: 2;
}
.mc-hero::before { top: 0; }
.mc-hero::after { bottom: 0; }
.mc-hero h1 {
	/* Billboard scale: vw+svh average keeps it sane in both orientations */
	font-size: clamp(4rem, calc((10.5vw + 10.5svh) / 2), 10.5rem);
	font-weight: 800;
	line-height: 0.92;
	max-width: 11ch;
	margin-bottom: 22px;
}
.mc-hero h1 em { font-style: normal; color: var(--signal); }
.mc-hero .mc-lead { color: rgba(244, 241, 234, 0.85); }
.mc-hero__meta {
	position: absolute;
	top: clamp(34px, 5vw, 56px); right: var(--pad-x);
	font-family: var(--font-mono);
	font-size: 11px; letter-spacing: 0.2em;
	color: rgba(244, 241, 234, 0.6);
	text-transform: uppercase;
	display: none;
}
@media (min-width: 720px) { .mc-hero__meta { display: block; } }

/* Page hero (inner pages): typographic, no image required */
.mc-pagehero {
	padding: clamp(90px, 12vw, 160px) var(--pad-x) clamp(48px, 6vw, 80px);
	border-bottom: 1px solid var(--line);
	position: relative;
	overflow: hidden;
}
.mc-pagehero h1 { font-size: clamp(3.4rem, calc((8.5vw + 8.5svh) / 2), 8.75rem); line-height: 0.92; max-width: 14ch; }
.mc-pagehero h1 em { font-style: normal; color: var(--signal); }
.mc-pagehero__index {
	position: absolute;
	right: var(--pad-x); bottom: 24px;
	font-family: var(--font-mono);
	font-size: 11px; letter-spacing: 0.2em;
	color: var(--muted); text-transform: uppercase;
}

/* ---------- Roster marquee ---------- */

.mc-marquee {
	border-block: 1px solid var(--line);
	padding-block: 22px;
	overflow: hidden;
	position: relative;
}
.mc-marquee__inner {
	display: flex;
	gap: 0;
	width: max-content;
	animation: mc-scroll 46s linear infinite;
}
.mc-marquee:hover .mc-marquee__inner { animation-play-state: paused; }
.mc-marquee__group {
	display: flex; align-items: center;
	font-family: var(--font-mono);
	font-size: 13.5px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
	white-space: nowrap;
}
.mc-marquee__group span { padding-inline: 18px; }
.mc-marquee__group i {
	font-style: normal;
	color: var(--signal);
	font-size: 9px;
}
@keyframes mc-scroll { to { transform: translateX(-50%); } }

/* ---------- Service cards ---------- */

.mc-services {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}
.mc-card {
	background: var(--ink);
	padding: clamp(28px, 3.4vw, 48px);
	text-decoration: none;
	position: relative;
	transition: background 0.25s ease-out;
	display: block;
}
.mc-card:hover { background: var(--surface); }
.mc-card--wide { grid-column: 1 / -1; }
.mc-card__num {
	font-family: var(--font-mono);
	font-size: 12px; letter-spacing: 0.2em;
	color: var(--muted);
	display: block; margin-bottom: 38px;
}
.mc-card h3 { font-size: clamp(26px, 2.4vw, 38px); margin-bottom: 10px; }
.mc-card p { color: var(--muted); margin: 0; max-width: 46ch; }
.mc-card p strong { color: var(--paper); display: block; margin-bottom: 4px; }
.mc-card__arrow {
	position: absolute;
	top: clamp(28px, 3.4vw, 48px); right: clamp(28px, 3.4vw, 48px);
	color: var(--muted);
	font-size: 22px;
	transition: 0.25s ease-out;
}
.mc-card:hover .mc-card__arrow { color: var(--signal); transform: translate(4px, -4px); }
@media (max-width: 760px) { .mc-services { grid-template-columns: 1fr; } }

/* ---------- Video cards / lite YouTube ---------- */

.mc-video-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.mc-video-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .mc-video-grid, .mc-video-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .mc-video-grid, .mc-video-grid--2 { grid-template-columns: 1fr; } }

.mc-video {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
}
.mc-video__thumb {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease-out, opacity 0.3s;
	opacity: 0.85;
}
.mc-video:hover .mc-video__thumb { transform: scale(1.04); opacity: 1; }
.mc-video__play {
	position: absolute; inset: 0; margin: auto;
	width: 64px; height: 64px;
	border-radius: 999px;
	border: 0;
	background: color-mix(in srgb, var(--ink) 72%, transparent);
	backdrop-filter: blur(6px);
	color: var(--paper);
	display: grid; place-items: center;
	cursor: pointer;
	transition: 0.2s ease-out;
	outline-offset: 4px;
}
.mc-video:hover .mc-video__play { background: var(--signal); color: var(--ink); transform: scale(1.08); }
.mc-video__label {
	position: absolute; left: 14px; bottom: 12px; right: 14px;
	font-family: var(--font-mono);
	font-size: 11px; letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(244, 241, 234, 0.92);
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
	pointer-events: none;
}
.mc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Featured (hero-size) video */
.mc-video--feature { aspect-ratio: 21 / 9; border-radius: 6px; }
.mc-video--feature .mc-video__play { width: 88px; height: 88px; }
@media (max-width: 760px) { .mc-video--feature { aspect-ratio: 16 / 9; } }

/* ---------- Case study band ---------- */

.mc-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	margin-top: 56px;
}
.mc-stat { border-top: 1px solid var(--line); padding-top: 22px; }
.mc-stat__num {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(48px, 6vw, 88px);
	line-height: 0.9;
	color: var(--signal);
	display: block;
	text-transform: uppercase;
}
.mc-stat__label {
	font-family: var(--font-mono);
	font-size: 12px; letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
	display: block; margin-top: 12px;
}
@media (max-width: 720px) { .mc-stats { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Process rail ---------- */

.mc-process { counter-reset: step; display: grid; gap: 0; margin-top: 26px; }
.mc-step {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 26px;
	padding: 30px 0;
	border-top: 1px solid rgba(14, 13, 11, 0.16);
	align-items: baseline;
}
.mc-section--paper .mc-step h3 { color: var(--ink); }
.mc-step__num {
	font-family: var(--font-mono);
	font-size: 13px; letter-spacing: 0.2em;
	color: var(--signal-deep);
}
.mc-step h3 { font-size: 26px; margin-bottom: 6px; }
.mc-step p { margin: 0; color: #5d5950; max-width: 62ch; }
@media (max-width: 640px) { .mc-step { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Testimonials ---------- */

.mc-quotes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	margin-top: 40px;
}
.mc-quote {
	background: rgba(14, 13, 11, 0.035);
	border: 1px solid rgba(14, 13, 11, 0.12);
	border-radius: 4px;
	padding: 30px;
	display: flex; flex-direction: column; gap: 18px;
}
.mc-quote p {
	font-family: var(--font-quote);
	font-style: italic;
	font-size: 20px;
	line-height: 1.45;
	margin: 0;
	color: var(--ink);
}
.mc-quote cite {
	font-family: var(--font-mono);
	font-style: normal;
	font-size: 11.5px; letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #5d5950;
	margin-top: auto;
}
.mc-quote cite::before { content: ""; }
@media (max-width: 900px) { .mc-quotes { grid-template-columns: 1fr; } }

/* ---------- Feature rows (image + text) ---------- */

.mc-row {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}
.mc-row--flip > :first-child { order: 2; }
.mc-row__media {
	border: 1px solid var(--line);
	border-radius: 4px;
	overflow: hidden;
	position: relative;
}
.mc-row__media::after {
	content: "";
	position: absolute; inset: 0;
	box-shadow: inset 0 0 80px rgba(14, 13, 11, 0.45);
	pointer-events: none;
}
@media (max-width: 860px) { .mc-row { grid-template-columns: 1fr; } .mc-row--flip > :first-child { order: 0; } }

/* ---------- Checklist / deliverables ---------- */

.mc-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; }
.mc-list li {
	padding: 22px 0;
	border-top: 1px solid var(--line);
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 20px;
	align-items: baseline;
}
.mc-list li:last-child { border-bottom: 1px solid var(--line); }
.mc-list strong {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 21px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
.mc-list span { color: var(--muted); }
@media (max-width: 640px) { .mc-list li { grid-template-columns: 1fr; gap: 6px; } }

/* three-up "why" columns */
.mc-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 44px; }
.mc-col h3 { font-size: 22px; color: var(--signal); margin-bottom: 8px; }
.mc-col p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .mc-cols { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- CTA band ---------- */

.mc-cta {
	text-align: center;
	padding: clamp(90px, 12vw, 170px) var(--pad-x);
	position: relative;
	overflow: hidden;
	border-top: 1px solid var(--line);
}
.mc-cta::before {
	content: "";
	position: absolute; inset: -40% -20%;
	background: radial-gradient(ellipse at 50% 110%, rgba(255, 77, 0, 0.13), transparent 55%);
	pointer-events: none;
}
.mc-cta h2, .mc-cta h1 { font-size: clamp(3rem, 1.5rem + 7vw, 6.5rem); }
.mc-cta .mc-lead { margin-inline: auto; }
.mc-cta .mc-btn-row { justify-content: center; }

/* ---------- Footer ---------- */

.mc-footer {
	border-top: 1px solid var(--line);
	padding: clamp(56px, 7vw, 90px) var(--pad-x) 40px;
	background: var(--ink);
}
.mc-footer__grid {
	max-width: var(--max-w); margin-inline: auto;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
}
.mc-footer h4 {
	font-family: var(--font-mono);
	font-size: 11.5px; letter-spacing: 0.2em;
	color: var(--muted);
	font-weight: 400;
	margin-bottom: 18px;
}
.mc-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mc-footer a { text-decoration: none; color: var(--paper); font-size: 15px; }
.mc-footer a:hover { color: var(--signal); }
.mc-footer__tag { font-family: var(--font-quote); font-style: italic; font-size: 22px; color: var(--muted); margin-top: 14px; }
.mc-footer__legal {
	max-width: var(--max-w); margin: 56px auto 0;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	font-family: var(--font-mono);
	font-size: 11px; letter-spacing: 0.14em;
	color: var(--muted);
	text-transform: uppercase;
}
@media (max-width: 860px) { .mc-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .mc-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */

.mc-contact-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: clamp(36px, 5vw, 72px);
	align-items: start;
}
.mc-form-shell {
	background: var(--paper);
	border-radius: 6px;
	padding: 10px;
	min-height: 760px;
}
.mc-form-shell iframe { width: 100%; min-height: 745px; border: 0; }
.mc-contact-aside { display: grid; gap: 8px; }
.mc-contact-aside .mc-list li { grid-template-columns: 1fr; }
@media (max-width: 900px) { .mc-contact-grid { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */

.mc-posts { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.mc-post-item { background: var(--ink); padding: 40px 0; display: block; text-decoration: none; }
.mc-post-item:hover h3 { color: var(--signal); }
.mc-post-item h3 { font-size: clamp(26px, 3vw, 40px); transition: color 0.2s; }
.mc-post-item p { color: var(--muted); max-width: 70ch; margin: 0; }
.mc-post-meta {
	font-family: var(--font-mono);
	font-size: 11.5px; letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
	display: block; margin-bottom: 14px;
}
.mc-prose { max-width: 720px; }
.mc-prose p { margin: 0 0 1.4em; color: rgba(244, 241, 234, 0.88); font-size: 17.5px; }
.mc-prose h2 { font-size: clamp(28px, 3vw, 40px); margin: 1.6em 0 0.6em; }
.mc-prose h3 { font-size: 23px; margin: 1.5em 0 0.5em; }
.mc-prose a { color: var(--signal); }
.mc-prose ul, .mc-prose ol { color: rgba(244, 241, 234, 0.88); padding-left: 1.2em; margin-bottom: 1.4em; }
.mc-prose li { margin-bottom: 0.5em; }

/* ---------- Reveal animation ----------
   Visible by default (no-JS / reduced-motion safe); motion.js hides + reveals
   with GSAP when it boots. The legacy IO .is-in path is a harmless no-op. */

.mc-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.mc-marquee__inner { animation: none; }
	.mc-reveal { opacity: 1; transform: none; transition: none; }
	* { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Focus visibility ---------- */

a:focus-visible, button:focus-visible {
	outline: 2px solid var(--signal);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ---------- WP admin bar offset ---------- */
body.admin-bar .mc-header { top: 32px; }

/* ---------- Utility ---------- */
.mc-center { text-align: center; }
.mc-center .mc-eyebrow { justify-content: center; }
.mc-center .mc-eyebrow::before { display: none; }
.mc-mt-l { margin-top: clamp(40px, 5vw, 64px); }
.mc-max-60 { max-width: 60ch; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ============================================================
   SIGNATURE LAYER — the moves no other production site has
   ============================================================ */

/* ---------- 1. Timeline playhead (scroll scrubber) ---------- */

.mc-timeline {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 90;
	height: 34px;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 0 14px;
	background: color-mix(in srgb, var(--ink) 86%, transparent);
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--line);
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.12em;
	color: var(--muted);
	user-select: none;
	pointer-events: none;
}
.mc-timeline__tc { color: var(--signal); min-width: 96px; }
.mc-timeline__track {
	position: relative;
	flex: 1;
	height: 8px;
	background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 40px);
	border-inline: 1px solid var(--line);
}
.mc-timeline__marker {
	position: absolute; top: -2px; bottom: -2px;
	width: 1px;
	background: rgba(244, 241, 234, 0.25);
}
.mc-timeline__head {
	position: absolute; top: -5px; bottom: -5px; left: 0;
	width: 2px;
	background: var(--signal);
	box-shadow: 0 0 8px rgba(255, 77, 0, 0.8);
}
.mc-timeline__head::after {
	content: "";
	position: absolute; top: -4px; left: -3.5px;
	border: 4.5px solid transparent;
	border-top-color: var(--signal);
}
.mc-timeline__scene { min-width: 200px; text-align: right; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
@media (max-width: 760px) {
	.mc-timeline { height: 22px; gap: 10px; }
	.mc-timeline__scene { display: none; }
	.mc-timeline__tc { min-width: 84px; }
}
body { padding-bottom: 34px; }
@media (max-width: 760px) { body { padding-bottom: 22px; } }

/* ---------- 2. Director's commentary annotations ---------- */

.mc-note {
	display: block;
	max-width: 380px;
	margin-top: 26px;
	padding: 10px 0 10px 16px;
	border-left: 1px dashed color-mix(in srgb, var(--signal) 65%, transparent);
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.7;
	letter-spacing: 0.06em;
	color: color-mix(in srgb, var(--signal) 72%, var(--muted));
	text-transform: uppercase;
}
.mc-note b { color: var(--signal); font-weight: 400; }
.mc-section--paper .mc-note { border-left-color: color-mix(in srgb, var(--signal-deep) 65%, transparent); color: var(--signal-deep); }
.mc-note--right { margin-left: auto; text-align: right; border-left: 0; border-right: 1px dashed color-mix(in srgb, var(--signal) 65%, transparent); padding: 10px 16px 10px 0; }

/* ---------- 3. Grade wipe (RAW / GRADED comparison) ---------- */

.mc-grade {
	position: relative;
	aspect-ratio: 21 / 9;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 4px;
	--pos: 58%;
	touch-action: pan-y;
}
.mc-grade img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	pointer-events: none;
}
/* the "ungraded log" look is synthesized from the same image */
.mc-grade__raw { filter: saturate(0.34) contrast(0.72) brightness(1.18) hue-rotate(8deg); }
.mc-grade__graded { clip-path: inset(0 0 0 var(--pos)); }
.mc-grade__divider {
	position: absolute; top: 0; bottom: 0;
	left: var(--pos);
	width: 2px;
	background: var(--signal);
	box-shadow: 0 0 14px rgba(255, 77, 0, 0.7);
	pointer-events: none;
}
.mc-grade__divider::after {
	content: "◂ ▸";
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	background: var(--signal);
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	padding: 7px 10px;
	border-radius: 999px;
	white-space: nowrap;
}
.mc-grade__label {
	position: absolute; top: 14px;
	font-family: var(--font-mono);
	font-size: 10.5px; letter-spacing: 0.2em;
	padding: 6px 10px;
	background: rgba(14, 13, 11, 0.65);
	backdrop-filter: blur(4px);
	border-radius: 3px;
	pointer-events: none;
	text-transform: uppercase;
}
.mc-grade__label--raw { left: 14px; color: var(--muted); }
.mc-grade__label--graded { right: 14px; color: var(--signal); }
.mc-grade__range {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	opacity: 0;
	cursor: ew-resize;
	margin: 0;
}
@media (max-width: 760px) { .mc-grade { aspect-ratio: 16 / 10; } }

/* ---------- 4. AF focus brackets (hover viewfinder) ---------- */

.mc-af {
	position: fixed;
	z-index: 95;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.18s ease-out, top 0.22s cubic-bezier(.3,1.4,.4,1), left 0.22s cubic-bezier(.3,1.4,.4,1), width 0.22s cubic-bezier(.3,1.4,.4,1), height 0.22s cubic-bezier(.3,1.4,.4,1);
}
.mc-af.is-on { opacity: 1; }
.mc-af i {
	position: absolute;
	width: 14px; height: 14px;
	border: 2px solid var(--signal);
}
.mc-af i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.mc-af i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.mc-af i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.mc-af i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.mc-af span {
	position: absolute;
	top: -20px; right: 0;
	font-family: var(--font-mono);
	font-size: 9px;
	letter-spacing: 0.25em;
	color: var(--signal);
}
@media (hover: none) { .mc-af { display: none; } }

/* ---------- 5. Billing block (movie-poster credits) ---------- */

.mc-billing {
	max-width: 980px;
	margin: 0 auto clamp(48px, 7vw, 80px);
	text-align: center;
}
.mc-billing__presents {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.5em;
	color: var(--muted);
	margin-bottom: 22px;
	text-transform: uppercase;
}
.mc-billing__block {
	font-family: var(--font-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: clamp(13px, 1.6vw, 19px);
	line-height: 1.55;
	letter-spacing: 0.04em;
	color: rgba(244, 241, 234, 0.6);
	transform: scaleY(1.32);
	transform-origin: center;
}
.mc-billing__block b { color: rgba(244, 241, 234, 0.95); font-weight: 800; }
.mc-billing__block em { font-style: normal; color: var(--signal); }

/* ---------- 6. End-credits crawl ---------- */

.mc-credits {
	position: relative;
	height: 420px;
	overflow: hidden;
	border-block: 1px solid var(--line);
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
	mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.mc-credits__roll {
	display: flex; flex-direction: column; gap: 0;
	animation: mc-crawl 36s linear infinite;
	width: 100%;
}
.mc-credits:hover .mc-credits__roll { animation-play-state: paused; }
.mc-credits__item {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	padding: 13px 0;
	align-items: baseline;
}
.mc-credits__item span:first-child {
	font-family: var(--font-mono);
	font-size: 11px; letter-spacing: 0.18em;
	color: var(--muted);
	text-align: right;
	text-transform: uppercase;
}
.mc-credits__item span:last-child {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 24px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}
@keyframes mc-crawl { to { transform: translateY(-50%); } }

/* ---------- 7. Hero rack focus + REC ---------- */

.mc-hero__bg img { animation: mc-rackfocus 1.5s cubic-bezier(.25,.6,.3,1) both; }
@keyframes mc-rackfocus {
	from { filter: blur(16px) saturate(0.7) brightness(0.85); transform: scale(1.07); }
	to   { filter: blur(0)   saturate(1)   brightness(1);    transform: scale(1); }
}
.mc-rec {
	display: inline-flex; align-items: center; gap: 8px;
}
.mc-rec::before {
	content: "";
	width: 8px; height: 8px;
	border-radius: 999px;
	background: #E5484D;
	animation: mc-blink 1.2s steps(1) infinite;
}
@keyframes mc-blink { 50% { opacity: 0.15; } }

/* ---------- 8. Page-transition hard cut ---------- */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: mc-cut-out 90ms ease-in both; }
::view-transition-new(root) { animation: mc-cut-in 110ms ease-out 60ms both; }
@keyframes mc-cut-out { to { opacity: 0; } }
@keyframes mc-cut-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
	.mc-hero__bg img { animation: none; }
	.mc-credits__roll { animation: none; }
	.mc-timeline__head { transition: none; }
	.mc-af { display: none; }
	.mc-rec::before { animation: none; }
}

/* ============================================================
   3D LAYER — projection booth, aperture iris, card tilt
   ============================================================ */

/* WebGL canvas sits over the hero photo, under the gradient + text */
.mc-hero3d {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	z-index: -1;
	opacity: 0;
	transition: opacity 1.6s ease-out;
	pointer-events: none;
}
.mc-hero3d.is-live { opacity: 1; }

/* ---------- Aperture iris (scroll-driven) ---------- */

.mc-iris-section {
	padding: clamp(56px, 8vw, 110px) var(--pad-x);
	text-align: center;
	border-block: 1px solid var(--line);
	background:
		radial-gradient(ellipse 50% 65% at 50% 50%, rgba(232, 163, 61, 0.07), transparent 70%),
		var(--ink);
	overflow: hidden;
}
.mc-iris {
	width: min(340px, 64vw);
	margin: 0 auto;
	display: block;
}
.mc-iris__blade { transition: none; transform-box: fill-box; transform-origin: 50% 6%; }
.mc-iris-section .mc-note { margin-inline: auto; text-align: center; border-left: 0; padding-left: 0; max-width: 460px; }
.mc-iris__caption {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(22px, 2.6vw, 34px);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin-top: 30px;
}
.mc-iris__caption em { font-style: normal; color: var(--signal); }

/* ---------- 3D tilt cards ---------- */

@media (hover: hover) {
	.mc-video, .mc-card {
		transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
		transition: transform 0.5s cubic-bezier(.2,.9,.3,1);
		will-change: transform;
	}
	.mc-video.is-tilting, .mc-card.is-tilting { transition: transform 0.08s linear; }
	/* sheen that follows the pointer */
	.mc-video::after, .mc-card::after {
		content: "";
		position: absolute; inset: 0;
		pointer-events: none;
		opacity: 0;
		transition: opacity 0.3s;
		background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(244, 241, 234, 0.10), transparent 55%);
		z-index: 2;
	}
	.mc-video:hover::after, .mc-card:hover::after { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.mc-hero3d { display: none; }
	.mc-video, .mc-card { transform: none !important; }
}

/* ============================================================
   SCROLL CINEMA v2 — load cascade, scene deck, karaoke,
   editorial rows, scene morph, header choreography
   ============================================================ */

/* ---------- Section headline scale (billboard contrast) ---------- */

.mc-section h2 { font-size: clamp(2.4rem, 4.6vw, 4.6rem); line-height: 0.94; max-width: 16ch; }
.mc-section .mc-cols h3, .mc-section .mc-list strong { line-height: 1.05; }

/* ---------- The serif accent — "sun sweep" target ---------- */

.mc-sweep {
	font-family: var(--font-quote);
	font-style: italic;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: inherit; /* motion.js sweeps this to amber per-char */
	padding-right: 0.06em;
}
h1 .mc-sweep, h2 .mc-sweep { font-size: 0.98em; line-height: 1.1; }

/* SplitText line masks */
.mc-line { overflow: hidden; }

/* hero word wrappers (markup-authored; animated only under no-preference) */
.mc-hero h1 .mc-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mc-hero h1 .mc-w > i { display: inline-block; font-style: normal; }
.mc-hero h1 .mc-w > i .mc-sweep { font-style: italic; }

/* ---------- Hero load cascade (pure CSS title sequence) ---------- */

@media (prefers-reduced-motion: no-preference) {
	/* letterbox bars part like a curtain */
	.mc-hero::before { transform-origin: top;    animation: mc-bar 1.3s cubic-bezier(0.16, 1, 0.3, 1) both; }
	.mc-hero::after  { transform-origin: bottom; animation: mc-bar 1.3s cubic-bezier(0.16, 1, 0.3, 1) both; }
	@keyframes mc-bar { from { transform: scaleY(9); } to { transform: scaleY(1); } }

	/* words rise from their own baseline masks */
	.mc-hero h1 .mc-w > i {
		transform: translateY(115%);
		animation: mc-rise 1.05s cubic-bezier(0.16, 1, 0.3, 1) forwards;
		animation-delay: calc(0.45s + var(--wi, 0) * 0.09s);
	}
	@keyframes mc-rise { to { transform: translateY(0); } }

	/* the serif accent warms once it lands */
	.mc-hero h1 .mc-sweep {
		color: var(--paper);
		animation: mc-warm 0.7s ease-out 1.65s forwards;
	}
	@keyframes mc-warm { to { color: var(--signal); } }

	/* supporting cast enters after the title */
	.mc-hero .mc-eyebrow, .mc-hero .mc-lead, .mc-hero .mc-btn-row, .mc-hero__meta {
		opacity: 0;
		transform: translateY(26px);
		animation: mc-fadeup 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	}
	.mc-hero .mc-eyebrow { animation-delay: 0.35s; }
	.mc-hero .mc-lead    { animation-delay: 1.05s; }
	.mc-hero .mc-btn-row { animation-delay: 1.2s; }
	.mc-hero__meta       { animation-delay: 1.5s; }
	@keyframes mc-fadeup { to { opacity: 1; transform: translateY(0); } }

	/* header slides down over it all */
	.mc-header { animation: mc-navin 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
	@keyframes mc-navin { from { transform: translateY(-110%); } }
}
/* amber accent lands even without the animation timeline */
@media (prefers-reduced-motion: reduce) {
	.mc-hero h1 .mc-sweep { color: var(--signal); }
}

/* Letterbox failsafe: some WebKit builds never start pseudo-element
   animations, leaving the bars stuck at their scaleY(9) from-state.
   main.js stamps this class once the cascade window has passed. */
.mc-hero.mc-bars-set::before,
.mc-hero.mc-bars-set::after { animation: none; transform: scaleY(1); }

/* ---------- Header hide/show choreography ---------- */

.mc-header { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.mc-header.is-hidden { transform: translateY(-101%); }

/* nav link slide-up swap (needs <span> + data-text, set in header.html) */
.mc-nav > a[data-text] { overflow: hidden; display: inline-block; }
.mc-nav > a[data-text] > span { display: block; transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.mc-nav > a[data-text]::after {
	content: attr(data-text);
	position: absolute;
	left: 0; top: 100%;
	padding: 6px 0;
	color: var(--signal);
	transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) and (min-width: 921px) {
	/* one full slot = 1em text + 12px vertical padding; exact, so the
	   incoming label lands precisely where the outgoing one sat */
	.mc-nav > a[data-text]:hover > span,
	.mc-nav > a[data-text]:hover::after { transform: translateY(calc(-1em - 12px)); }
}

/* ---------- Karaoke manifesto ---------- */

.mc-karaoke {
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding: clamp(72px, 10vw, 140px) var(--pad-x);
}
.mc-karaoke__copy {
	font-family: var(--font-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: clamp(1.9rem, 3.6vw, 3.6rem);
	line-height: 1.12;
	letter-spacing: 0.01em;
	max-width: 26ch;
	margin: 0;
}
.mc-karaoke__copy em { font-style: normal; color: var(--signal); }

/* ---------- Sticky scene deck (services) ---------- */

.mc-deck { position: relative; }
.mc-deck__panel {
	position: sticky;
	top: 0;
	min-height: 100svh;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--ink);
	border-top: 1px solid var(--line);
}
.mc-deck__panel:nth-child(even) { background: var(--surface); }
.mc-deck__inner {
	width: 100%;
	max-width: var(--max-w);
	margin-inline: auto;
	padding: clamp(64px, 8vh, 110px) var(--pad-x);
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: center;
}
.mc-deck__num {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.22em;
	color: var(--signal);
	display: block;
	margin-bottom: 22px;
}
.mc-deck__panel h3 {
	font-size: clamp(2.6rem, calc((6vw + 6svh) / 2), 6rem);
	line-height: 0.92;
	margin-bottom: 16px;
}
.mc-deck__panel h3 a { text-decoration: none; }
.mc-deck__panel h3 a:hover { color: var(--signal); }
.mc-deck__promise { color: var(--muted); font-size: clamp(17px, 1.3vw, 20px); max-width: 44ch; margin: 0 0 30px; }
.mc-deck__promise strong { color: var(--paper); }
.mc-deck__thumbs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	align-content: center;
}
.mc-deck__thumbs img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover; /* crops hqdefault's baked-in 4:3 letterbox bars */
	border: 1px solid var(--line);
	filter: saturate(0.92) contrast(1.02);
}
.mc-deck__thumbs img:first-child { grid-column: 1 / -1; }
.mc-deck__thumbs--duo { grid-template-columns: 1fr; }
.mc-deck__thumbs--duo img:first-child { grid-column: auto; }
.mc-deck__link {
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--paper);
	border-bottom: 1px solid var(--signal);
	padding-bottom: 6px;
}
.mc-deck__link:hover { color: var(--signal); }
@media (max-width: 900px) {
	.mc-deck__panel { position: static; min-height: 0; }
	.mc-deck__inner { grid-template-columns: 1fr; padding-block: 56px; }
	.mc-deck__panel h3 { font-size: clamp(2.2rem, 9vw, 3.4rem); }
}

/* ---------- Editorial work rows + cursor peek ---------- */

.mc-workrows { list-style: none; margin: 0; padding: 0; }
.mc-workrow {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	gap: 20px;
	align-items: baseline;
	padding: clamp(20px, 2.6vw, 34px) 0;
	border-top: 1px solid var(--line);
	text-decoration: none;
	position: relative;
}
.mc-workrows .mc-workrow:last-child { border-bottom: 1px solid var(--line); }
.mc-workrow__num {
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.2em;
	color: var(--muted);
}
.mc-workrow__title {
	font-family: var(--font-display);
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(1.7rem, 3.4vw, 3.2rem);
	line-height: 1;
	transition: color 0.25s ease-out, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mc-workrow__tag {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
}
@media (hover: hover) {
	.mc-workrow:hover .mc-workrow__title { color: var(--signal); transform: translateX(12px); }
}
@media (max-width: 640px) {
	.mc-workrow { grid-template-columns: 40px 1fr; }
	.mc-workrow__tag { grid-column: 2; }
}
.mc-peek {
	position: fixed;
	top: 0; left: 0;
	width: min(340px, 26vw);
	aspect-ratio: 16 / 9;
	margin: -90px 0 0 28px;
	z-index: 80;
	pointer-events: none;
	opacity: 0;
	transform: scale(0.92);
	transition: opacity 0.25s ease-out, scale 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	overflow: hidden;
	border: 1px solid var(--line);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.mc-peek.is-on { opacity: 1; transform: scale(1); }
.mc-peek img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .mc-peek { display: none; } }

/* ---------- Scene morph runs (ink ⇄ paper rhythm) ----------
   motion.js scrubs body background between ink and paper around each
   [data-morph-run]; the .is-paper class flips the PRIMITIVE tokens for
   everything inside, so components re-theme themselves automatically. */

[data-morph-run] { --fg: var(--paper); color: var(--fg); transition: color 0.5s ease; }
[data-morph-run].is-paper {
	--fg: var(--ink);
	color: var(--fg);
	--muted: var(--muted-paper);
	--line: rgba(14, 13, 11, 0.16);
	--surface: var(--paper-tint);
	--signal: var(--signal-deep);
}
/* sections inside a run are windows onto the morphing body */
[data-morph-run] .mc-section--paper,
[data-morph-run] .mc-section--surface { background: transparent; color: inherit; }
/* neutralize paper-band hardcodes so the token flip drives everything */
[data-morph-run] .mc-lead strong,
[data-morph-run] .mc-lead b { color: var(--fg); } /* was hard paper-white: vanished on paper scenes */
[data-morph-run] .mc-btn--ghost { color: inherit; border-color: color-mix(in srgb, currentColor 35%, transparent); }
[data-morph-run] .mc-section--paper .mc-lead { color: var(--muted); }
[data-morph-run] .mc-section--paper .mc-step h3 { color: inherit; }
[data-morph-run] .mc-step p { color: var(--muted); }
[data-morph-run] .mc-step { border-top-color: var(--line); }
[data-morph-run] .mc-step__num { color: var(--signal); }
[data-morph-run] .mc-quote p { color: inherit; }
[data-morph-run] .mc-quote cite { color: var(--muted); }
[data-morph-run] .mc-quote {
	background: color-mix(in srgb, currentColor 4%, transparent);
	border-color: color-mix(in srgb, currentColor 13%, transparent);
	transition: background 0.5s ease, border-color 0.5s ease;
}
[data-morph-run] .mc-section--paper .mc-note { border-left-color: color-mix(in srgb, var(--signal) 65%, transparent); color: var(--signal); }
/* no-JS / reduced-motion fallback: runs are simply paper bands */
@media (prefers-reduced-motion: reduce) {
	[data-morph-run] {
		background: var(--paper);
		--fg: var(--ink);
		color: var(--fg);
		--muted: var(--muted-paper);
		--line: rgba(14, 13, 11, 0.16);
		--surface: var(--paper-tint);
		--signal: var(--signal-deep);
	}
}

/* ---------- Hero background video (ambient reel) ----------
   Injected by main.js after load on desktop; sits over the still,
   under the gradient scrim. Oversized to cover at any aspect ratio. */
.mc-hero__video {
	position: absolute;
	top: 50%; left: 50%;
	/* Held at exact 16:9 so YouTube never letter/pillarboxes the player;
	   the 1.34x factor zoom-crops the 90px bars baked into the reel file
	   (2.37:1 footage exported in a 16:9 frame). */
	width: max(135%, 240vh);
	aspect-ratio: 16 / 9;
	height: auto;
	transform: translate(-50%, -50%);
	z-index: -1;
	border: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity 1.4s ease-out;
}
.mc-hero__video.is-live { opacity: 1; }
/* paused (Low Power Mode, interruptions): snap to poster instantly so the
   player's native controls never show; resume fades back in */
.mc-hero__video.is-paused { opacity: 0; transition: none; }
/* Mobile: the letterbox frame reads as stray padding under the header
   hairline at phone scale; it's a desktop device. */
@media (max-width: 899px) {
	.mc-hero::before, .mc-hero::after { display: none; }
}

/* ---------- Reduced motion for v2 layer ---------- */

@media (prefers-reduced-motion: reduce) {
	.mc-deck__panel { position: static; min-height: 0; }
	.mc-karaoke { min-height: 0; }
	.mc-peek { display: none; }
	.mc-header.is-hidden { transform: none; }
}

/* ---------- data-split boot guard ----------
   With JS + motion available, split headlines start hidden and the engine
   reveals them. CSS watchdog unhides after 2.5s if the engine never boots. */
html.mc-js [data-split] {
	visibility: hidden;
	animation: mc-unhide 0s 2.5s forwards;
}
@keyframes mc-unhide { to { visibility: visible; } }

/* four-up variant (About pillars) — collapses with the base .mc-cols rule */
@media (min-width: 821px) {
	.mc-cols--4 { grid-template-columns: repeat(4, 1fr); }
}

/* karaoke headline goes full billboard: it IS the scene until the cut */
.mc-karaoke h2 {
	font-size: clamp(2.8rem, calc((7.2vw + 7.2svh) / 2), 7.4rem);
	line-height: 0.94;
	max-width: 14ch;
}
/* the receding line-masks get GPU hints only while the scene is doing 3D work */
.mc-karaoke__head { perspective: 900px; }
