/**
 * Motion Redux presentation layer.
 *
 * Light palette matching the original motionredux.com: white background,
 * monochrome black logo/brand, gray hairlines and muted body copy.
 */

:root {
	--mr-bg: #ffffff;
	--mr-bg-alt: #f7f7f7;
	--mr-panel: #ffffff;
	--mr-line: #e2e2e2;
	--mr-line-soft: #eeeeee;
	--mr-text: #1a1a1a;
	--mr-muted: #666666;
	--mr-accent: #1a1a1a;
	--mr-accent-soft: #f0f0f0;
	--mr-radius: 6px;
	--mr-max: 1180px;
}

body.motionredux,
.mr-page {
	background: var(--mr-bg);
	color: var(--mr-text);
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	line-height: 1.65;
}

.mr-page a {
	color: var(--mr-text);
	text-decoration: none;
}

.mr-page a:hover,
.mr-page a:focus {
	text-decoration: underline;
}

.mr-container {
	width: 100%;
	max-width: var(--mr-max);
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

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

.mr-hero-title,
.mr-page-title,
.mr-section-title,
.mr-discipline h3,
.mr-news-title,
.mr-contact-name {
	font-family: 'Barlow Condensed', 'Inter', sans-serif;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.08;
	text-transform: uppercase;
	margin: 0;
	color: var(--mr-text);
}

.mr-section-title {
	font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

/* ---------- Home page (mirrors the original layout) ---------- */

.mr-home-wrap {
	width: 100%;
	max-width: 1500px;
	margin: 0 auto;
	padding: 0 45px 40px;
	box-sizing: border-box;
}

.mr-home-tagline {
	margin: 0 0 14px;
	padding: 0;
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: #535353;
	text-align: left;
}

.mr-home-reel .mr-video {
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.mr-home-intro {
	margin: 22px 0 0;
	max-width: 760px;
	font-size: 0.95rem;
	color: var(--mr-muted);
}

.mr-page .mr-home-intro a {
	color: var(--mr-text);
	border-bottom: 1px solid #bbb;
}

@media (max-width: 782px) {
	.mr-home-wrap {
		padding: 0 18px 28px;
	}
}

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

.mr-hero {
	padding: clamp(30px, 4vw, 48px) 0 clamp(24px, 3vw, 36px);
	background: var(--mr-bg);
	border-bottom: 1px solid var(--mr-line);
	text-align: center;
}

.mr-hero-title {
	font-size: clamp(2.8rem, 8vw, 5.5rem);
}

.mr-hero-tagline {
	margin: 14px 0 0;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: clamp(1.05rem, 2.4vw, 1.5rem);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mr-muted);
}

.mr-hero-lead {
	max-width: 720px;
	margin: 20px auto 0;
	color: var(--mr-muted);
	font-size: 1.05rem;
}

.mr-hero-reel {
	margin-top: clamp(32px, 5vw, 48px);
}

.mr-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin-top: 32px;
}

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

.mr-btn {
	display: inline-block;
	padding: 13px 30px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mr-page .mr-btn:hover,
.mr-page .mr-btn:focus {
	text-decoration: none;
	transform: translateY(-2px);
}

.mr-page .mr-btn-primary {
	background: var(--mr-accent);
	color: #ffffff;
}

.mr-page .mr-btn-primary:hover {
	background: #000000;
	color: #ffffff;
}

.mr-page .mr-btn-ghost {
	border-color: #cccccc;
	color: var(--mr-text);
	background: transparent;
}

.mr-page .mr-btn-ghost:hover {
	border-color: var(--mr-accent);
	background: var(--mr-accent-soft);
}

/* ---------- Video ---------- */

.mr-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border: 1px solid var(--mr-line);
	border-radius: var(--mr-radius);
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

/* ---------- Sections ---------- */

.mr-section {
	padding: clamp(32px, 4vw, 54px) 0;
}

.mr-section-disciplines {
	background: var(--mr-bg-alt);
	border-bottom: 1px solid var(--mr-line);
}

.mr-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 28px;
}

.mr-section-more {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--mr-muted);
}

/* ---------- Page headers ---------- */

.mr-page-head {
	padding: clamp(26px, 3.5vw, 42px) 0 clamp(6px, 1.5vw, 12px);
	background: var(--mr-bg);
	border-bottom: 1px solid var(--mr-line);
}

.mr-page-title {
	font-size: clamp(2.1rem, 5.5vw, 3.6rem);
}

.mr-page-intro {
	max-width: 680px;
	margin: 16px 0 0;
	color: var(--mr-muted);
}

.mr-breadcrumb {
	margin: 0 0 12px;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mr-muted);
}

.mr-page .mr-breadcrumb a {
	color: var(--mr-muted);
}

.mr-breadcrumb span {
	margin: 0 8px;
	color: #c4c4c4;
}

/* ---------- Disciplines ---------- */

.mr-discipline-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	margin-top: 28px;
}

.mr-discipline {
	padding: 26px;
	background: var(--mr-panel);
	border: 1px solid var(--mr-line);
	border-radius: var(--mr-radius);
}

.mr-discipline h3 {
	font-size: 1.3rem;
	margin-bottom: 10px;
}

.mr-discipline p {
	color: var(--mr-muted);
	margin: 0 0 14px;
}

.mr-page .mr-discipline a {
	font-size: 0.85rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--mr-text);
}

.mr-page .mr-discipline a:hover {
	text-decoration: none;
	opacity: 0.65;
}

/* ---------- Portfolio grid ---------- */

.mr-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mr-grid-item {
	margin: 0;
	list-style: none;
}

.mr-page .mr-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--mr-panel);
	border: 1px solid var(--mr-line);
	border-radius: var(--mr-radius);
	overflow: hidden;
	color: var(--mr-text);
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mr-page .mr-card:hover,
.mr-page .mr-card:focus {
	transform: translateY(-3px);
	border-color: #bdbdbd;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
	text-decoration: none;
}

.mr-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 11;
	background: #f2f2f2;
	overflow: hidden;
}

.mr-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.mr-card:hover .mr-card-media img {
	transform: scale(1.04);
}

.mr-card-play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.62);
	border: 1px solid rgba(255, 255, 255, 0.7);
}

.mr-card-play::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 9px 0 9px 15px;
	border-color: transparent transparent transparent #fff;
}

.mr-card-title {
	display: block;
	padding: 16px 18px 0;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
}

.mr-card-meta {
	display: block;
	padding: 8px 18px 18px;
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mr-muted);
}

.mr-card-title:last-child {
	padding-bottom: 18px;
}

/* ---------- Work detail ---------- */

.mr-work-media {
	margin-bottom: 32px;
}

.mr-work-image,
.mr-page .mr-work-fullimage img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--mr-line);
	border-radius: var(--mr-radius);
}

.mr-page .mr-work-fullimage {
	position: relative;
	display: block;
}

.mr-work-zoom {
	position: absolute;
	right: 14px;
	bottom: 14px;
	padding: 8px 16px;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid var(--mr-line);
	border-radius: 999px;
	font-size: 0.78rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--mr-text);
}

.mr-work-body {
	max-width: 760px;
	font-size: 1.05rem;
	color: var(--mr-muted);
}

.mr-work-body p {
	margin: 0 0 16px;
}

.mr-work-body strong {
	color: var(--mr-text);
}

.mr-work-links {
	margin: 24px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--mr-line);
	list-style: none;
}

.mr-work-links li {
	margin-bottom: 8px;
}

.mr-page .mr-work-links a {
	border-bottom: 1px solid var(--mr-text);
}

.mr-page .mr-work-links a:hover {
	text-decoration: none;
	opacity: 0.65;
}

.mr-section-related {
	background: var(--mr-bg-alt);
	border-top: 1px solid var(--mr-line);
}

/* ---------- News ---------- */

.mr-news-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 20px;
}

.mr-news-item {
	padding: 26px;
	background: var(--mr-panel);
	border: 1px solid var(--mr-line);
	border-radius: var(--mr-radius);
}

.mr-news-outlet {
	margin: 0 0 8px;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mr-muted);
}

.mr-news-title {
	font-size: 1.45rem;
	text-transform: none;
}

.mr-page .mr-news-title a {
	color: var(--mr-text);
}

.mr-page .mr-news-title a:hover {
	opacity: 0.7;
}

.mr-news-blurb {
	margin: 12px 0 0;
	color: var(--mr-muted);
}

.mr-news-link {
	margin: 14px 0 0;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mr-page .mr-news-link a {
	border-bottom: 1px solid var(--mr-text);
}

/* ---------- Clients ---------- */

.mr-clients-image {
	display: block;
	width: 100%;
	height: auto;
	background: #fff;
	border-radius: var(--mr-radius);
}

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

.mr-contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	align-items: start;
}

.mr-contact-card,
.mr-contact-aside {
	padding: 28px;
	background: var(--mr-panel);
	border: 1px solid var(--mr-line);
	border-radius: var(--mr-radius);
}

.mr-contact-aside {
	background: var(--mr-bg-alt);
}

.mr-contact-name {
	font-size: 1.7rem;
	margin-bottom: 16px;
}

.mr-contact-line {
	margin: 0 0 12px;
	color: var(--mr-muted);
}

.mr-contact-label {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mr-muted);
	margin-bottom: 2px;
}

.mr-contact-line a {
	font-size: 1.1rem;
	border-bottom: 1px solid var(--mr-text);
}

.mr-page .mr-contact-line a:hover {
	text-decoration: none;
	opacity: 0.65;
}

.mr-contact-social {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 22px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--mr-line);
	list-style: none;
}

.mr-contact-social a {
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--mr-text);
}

.mr-contact-checklist {
	margin: 18px 0 0;
	padding-left: 20px;
	color: var(--mr-muted);
}

.mr-contact-checklist li {
	margin-bottom: 8px;
}

.mr-contact-note {
	margin: 18px 0 0;
	color: var(--mr-muted);
	font-size: 0.95rem;
}

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

.mr-section-cta {
	background: var(--mr-bg-alt);
	border-top: 1px solid var(--mr-line);
}

.mr-cta-inner {
	text-align: center;
}

.mr-cta-inner p {
	max-width: 620px;
	margin: 14px auto 24px;
	color: var(--mr-muted);
}

/* ---------- Astra shell overrides ---------- */

body.motionredux,
body.motionredux .site,
body.motionredux .site-content,
body.motionredux #content {
	background: var(--mr-bg);
}

/* Only the content area goes edge-to-edge; sections handle their own gutters. */
body.motionredux .site-content .ast-container,
body.motionredux .site-content > .ast-container {
	max-width: 100%;
	padding: 0;
	display: block;
}

/* Header and footer stay aligned with the page container. */
body.motionredux .site-header .ast-container,
body.motionredux .site-footer .ast-container,
body.motionredux .site-primary-footer-wrap .ast-container,
body.motionredux .site-below-footer-wrap .ast-container {
	max-width: var(--mr-max);
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

body.motionredux #primary,
body.motionredux .ast-separate-container #primary {
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: 100%;
	background: var(--mr-bg);
}

body.motionredux .entry-header,
body.motionredux .ast-single-post .entry-header,
body.motionredux .ast-archive-description {
	display: none;
}

body.motionredux .site-header,
body.motionredux .ast-primary-header-bar,
body.motionredux .main-header-bar {
	background: var(--mr-bg);
	border-bottom: 1px solid var(--mr-line);
}

body.motionredux .main-header-menu a,
body.motionredux .site-title a,
body.motionredux .ast-header-break-point .main-header-menu a {
	color: var(--mr-text);
}

/*
 * The logo is a portrait wordmark (110x147). Astra collapses the link height,
 * which clips it, so the link becomes a flex box and the image sizes by height.
 */
body.motionredux .custom-logo-link {
	display: inline-flex;
	align-items: center;
	height: auto;
	line-height: 0;
}

body.motionredux .custom-logo-link img,
body.motionredux .astra-logo-svg {
	height: 167px;
	width: auto;
	max-width: none;
	max-height: none;
}

/*
 * Astra adds generous header padding; the original site had almost none, so the
 * tagline sat directly under the logo. Collapse it to match.
 */
body.motionredux .site-branding,
body.motionredux .ast-site-identity {
	padding: 10px 0;
}

body.motionredux .ast-primary-header-bar,
body.motionredux .main-header-bar {
	min-height: 0;
	padding-top: 0;
	padding-bottom: 0;
}

body.motionredux .ast-primary-header-bar .site-primary-header-wrap {
	min-height: 0;
}

body.motionredux .site-content {
	padding-top: 0;
	margin-top: 0;
}

body.motionredux.motionredux-home .site-header,
body.motionredux.motionredux-home .ast-primary-header-bar {
	border-bottom: 0;
}

body.motionredux .mr-home-wrap {
	padding-top: 0;
}

/*
 * Astra gives #primary a 60px top margin via a higher-specificity rule, which
 * pushed all content down. IDs here so the reset actually wins.
 */
body.motionredux #page #content #primary {
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 0;
	padding-bottom: 0;
}

@media (max-width: 921px) {
	body.motionredux .custom-logo-link img,
	body.motionredux .astra-logo-svg {
		height: 96px;
	}
}

@media (max-width: 544px) {
	body.motionredux .custom-logo-link img,
	body.motionredux .astra-logo-svg {
		height: 72px;
	}
}

/* The original header sits flush to the page edges, matching the reel width. */
body.motionredux .site-header .ast-container {
	max-width: 1500px;
	padding-left: 45px;
	padding-right: 45px;
}

/* Small, understated nav like the original. */
body.motionredux #ast-hf-menu-1 .menu-link {
	font-size: 13px;
	font-weight: 500;
}

body.motionredux .site-footer .ast-container,
body.motionredux .site-below-footer-wrap .ast-container {
	max-width: 1500px;
	padding-left: 45px;
	padding-right: 45px;
}

body.motionredux .site-below-footer-wrap,
body.motionredux .ast-small-footer {
	font-size: 12px;
	text-align: center;
}

/*
 * Astra styles nav links via .ast-builder-menu-1, which outranks a plain
 * .main-header-menu rule, and colours the active item blue. The brand is
 * monochrome, so match Astra's selector depth to win.
 */
body.motionredux .ast-builder-menu-1 .menu-item > .menu-link {
	color: var(--mr-text);
}

body.motionredux .ast-builder-menu-1 .menu-item.current-menu-item > .menu-link,
body.motionredux .ast-builder-menu-1 .menu-item.current_page_item > .menu-link,
body.motionredux .ast-builder-menu-1 .current-menu-ancestor > .menu-link {
	color: var(--mr-text);
	font-weight: 600;
}

body.motionredux .ast-builder-menu-1 .menu-item > .menu-link:hover,
body.motionredux .ast-builder-menu-1 .menu-item:hover > .menu-link {
	color: var(--mr-muted);
}

/* Same treatment for the mobile drawer, which renders a second copy of the menu. */
body.motionredux .site-header .menu-item > .menu-link,
body.motionredux .site-header .menu-item.current-menu-item > .menu-link,
body.motionredux .ast-mobile-popup-drawer .menu-item > .menu-link,
body.motionredux .ast-mobile-popup-drawer .menu-item.current-menu-item > .menu-link {
	color: var(--mr-text);
}

body.motionredux .ast-mobile-popup-drawer .menu-item > .menu-link:hover {
	color: var(--mr-muted);
}

/*
 * Astra renders the desktop and mobile menus as two lists with generated IDs.
 * Targeting them by ID guarantees the monochrome colour wins over Astra's
 * dynamic CSS, which otherwise leaves the mobile drawer slate-blue.
 */
body.motionredux #ast-hf-menu-1 .menu-link,
body.motionredux #ast-hf-mobile-menu .menu-link,
body.motionredux #ast-hf-menu-1 .menu-item.current-menu-item > .menu-link,
body.motionredux #ast-hf-mobile-menu .menu-item.current-menu-item > .menu-link {
	color: var(--mr-text);
}

body.motionredux #ast-hf-menu-1 .menu-link:hover,
body.motionredux #ast-hf-mobile-menu .menu-link:hover {
	color: var(--mr-muted);
}

body.motionredux .site-footer,
body.motionredux .ast-small-footer,
body.motionredux .site-below-footer-wrap,
body.motionredux .site-primary-footer-wrap {
	background: var(--mr-bg);
	border-top: 1px solid var(--mr-line-soft);
	color: var(--mr-muted);
}

body.motionredux .site-footer a {
	color: var(--mr-text);
}

@media (prefers-reduced-motion: reduce) {
	.mr-page .mr-card,
	.mr-card-media img,
	.mr-btn {
		transition: none !important;
		transform: none !important;
	}
}

@media (max-width: 640px) {
	.mr-container {
		padding: 0 18px;
	}

	.mr-grid {
		grid-template-columns: 1fr;
	}

	.mr-hero-actions .mr-btn {
		width: 100%;
		text-align: center;
	}
}
