/*
Theme Name: Media Horizons
Author: Graphic Insight
Author URI: https://graphic-insight.com
Description: Custom theme for mediahorizons.com, built by Graphic Insight on the Wuko theme by WebGeniusLab. Requires the Wuko parent theme. See BUILD-NOTES.md.
Version: 1.0.133
Template: wuko
Text Domain: wuko-child
*/

/*
 * Media Horizons custom styles.
 * Keep this file small. Fonts, colors, buttons and spacing live in Theme Options
 * and Elementor Site Settings, where they can be edited without code.
 */

/* ---------- Scroll effects (see assets/js/mh-scroll-effects.js) ---------- */

/* Photo reveal: the frame that masks the image during its wipe-in. */
.mh-reveal-wrap {
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	vertical-align: top;
	line-height: 0;
}
.mh-reveal-wrap img {
	display: block;
}

/* ---------- Typography helpers ---------- */

/* Accent words in headings, e.g. <em class="mh-accent">brand.</em>
   Fraunces Italic in Burnt Orange, as in the brand comps. */
.mh-accent {
	font-family: 'Fraunces', Georgia, serif;
	font-style: italic;
	font-weight: 400;
	color: #BB542F;
	letter-spacing: -0.01em;
}

/* ---------- Featured projects (Portfolio cards) ---------- */

/* Each card shows its descriptive title by default. On hover (desktop) a dark
   overlay brings in the campaign name, description and link. On touch screens
   the details sit under the image instead. Content comes from the Portfolio entry. */
.mh-project-card {
	position: relative;
	overflow: hidden;
	/* Backup for the card template's own background rules (Loop item 91). If a cached
	   page points at a stylesheet Elementor has since regenerated, the photo would show
	   at full size from its corner; these keep it filling the card. */
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}
/* The details layer runs 1px past each edge so no hairline of photo shows along an
   edge at fractional pixel positions. The card clips it (Project card template:
   Layout > Overflow: Hidden); the width is set here because Elementor fixes it at 100%. */
.mh-project-card .mh-project-details {
	position: absolute;
	inset: -1px;
	width: calc(100% + 2px);
	max-width: none;
	transition: clip-path .55s cubic-bezier(.65,0,.35,1);
}
.mh-project-card .mh-project-default {
	transition: opacity .35s ease;
}
@media (hover: hover) and (min-width: 1025px) {
	/* Details layer wipes in from the left over the photo, edge to edge. */
	.mh-project-card .mh-project-details {
		clip-path: inset(0 100% 0 0);
		pointer-events: none;
	}
	.mh-project-card:hover .mh-project-details,
	.mh-project-card:focus-within .mh-project-details {
		clip-path: inset(0 0 0 0);
		pointer-events: auto;
	}
	.mh-project-card:hover .mh-project-default,
	.mh-project-card:focus-within .mh-project-default {
		opacity: 0;
	}
}
/* Touch screens: details always shown, so the default title is hidden. */
@media not all and (hover: hover), (max-width: 1024px) {
	.mh-project-card .mh-project-default {
		display: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.mh-project-card .mh-project-details,
	.mh-project-card .mh-project-default {
		transition: none;
	}
}

/* ---------- Page spacing ---------- */

/* Wuko adds 40px of white space above and below page content. Elementor pages set
   their own spacing, so remove it there; the header sits directly on the first section
   and the last section runs straight into the footer. */
.elementor-page #main {
	padding-top: 0;
	padding-bottom: 0;
}

/* Wuko turns on smooth scrolling for the whole page. GSAP ScrollTrigger measures
   positions by jumping the page to the top and back; with smooth scrolling that jump
   is animated, so any recalculation made while scrolled down records wrong positions
   and the scroll masks close while on screen. Keep page scrolling instant. */
html {
	scroll-behavior: auto !important;
}

/* ---------- Text wipe ---------- */

/* The accent phrase needs its own box so the reveal mask fits it. */
.mh-text-wipe .mh-accent {
	display: inline-block;
}

/* ---------- Hero ---------- */

/* Hero video frame. Its height is set in Elementor (Min Height, in vw) to match the
   video's wide 1.9:1 shape; the script clips its sides to the page margins. */
.mh-hero-expand {
	will-change: clip-path;
}

/* Scroll cue holder: an HTML widget placed in the hero video wrapper. It sits centered
   over the bottom of the hero image; the script sets its position. */
.elementor-widget.mh-scroll-cue-holder {
	position: absolute;
	top: 3vh;
	right: 24px;
	width: auto;
	z-index: 3;
}

/* Scroll cue: outlined pill with a gently moving arrow. */
.mh-scroll-cue {
	display: inline-flex;
	align-items: flex-start;
	justify-content: center;
	width: 44px;
	height: 72px;
	padding-top: 16px;
	border: 1px solid currentColor;
	border-radius: 999px;
	color: #FFFFFF;
	filter: drop-shadow(0 1px 6px rgba(0,0,0,.35));
	overflow: hidden;
	text-decoration: none;
}
.mh-scroll-cue svg {
	width: 14px;
	height: auto;
	animation: mh-cue 1.8s ease-in-out infinite;
}
@keyframes mh-cue {
	0%   { transform: translateY(-4px); opacity: 0; }
	30%  { opacity: 1; }
	70%  { opacity: 1; }
	100% { transform: translateY(22px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.mh-scroll-cue svg { animation: none; }
}

/* ---------- Homepage intro ---------- */

/* While the intro is pending, the hero pieces wait out of sight. The effects script
   takes over from here; a 3-second safety net in the page head shows them regardless. */
html.mh-intro-pending .mh-hero-headline,
html.mh-intro-pending .mh-hero-lead,
html.mh-intro-pending .mh-hero-expand,
html.mh-intro-pending .mh-scroll-cue-holder {
	opacity: 0;
}

/* Hero supporting copy: no space under the last paragraph, so it lines up with the
   bottom of the headline. */
.mh-hero-lead p:last-child {
	margin-bottom: 0;
}

/* Scroll-linked photo masks: the frame fills its column; the photo is sized up a little
   inside it so it can drift without showing an edge. */
.mh-mask-scroll .mh-reveal-wrap {
	display: block;
	overflow: hidden;
}
.mh-mask-scroll .mh-reveal-wrap img {
	display: block;
	width: 100%;
}


/* ---------- Phones ---------- */

@media (max-width: 767px) {
	/* No scroll cue on phones. */
	.elementor-widget.mh-scroll-cue-holder {
		display: none;
	}
	/* Fewer orphans and lopsided breaks in headings and paragraphs. */
	.elementor-heading-title {
		text-wrap: balance;
	}
	.elementor-widget-text-editor p {
		text-wrap: pretty;
	}
}

/* Scroll-fill headings are split into fixed lines; keep each line on one line so a
   fraction of a pixel of difference between browsers can't push a word onto its own
   line. The lines are re-split whenever the width changes or fonts finish loading. */
.mh-text-fill .mh-line {
	white-space: nowrap;
}

/* ---------- Card icons ---------- */

/* What We Do icons (class mh-icon-swap on the Image widget) turn brand orange while the
   card's "Explore" link is hovered or focused. The link stays the only clickable part. */
.mh-icon-swap .mh-icon-svg {
	display: block;
	height: auto;
	max-width: 100%;
}
.mh-icon-swap .mh-icon-svg [fill]:not([fill="none"]) {
	transition: fill .3s ease;
}
.e-con:has(> .elementor-widget-button .elementor-button:hover) .mh-icon-swap .mh-icon-svg [fill]:not([fill="none"]),
.e-con:has(> .elementor-widget-button .elementor-button:focus-visible) .mh-icon-swap .mh-icon-svg [fill]:not([fill="none"]) {
	fill: #BB542F;
}

/* ---------- Hero slideshow captions ---------- */

/* Each caption is a cream panel (90% opaque) with ink text, sitting in the bottom-left
   corner of the image. The script tracks the image edges as it narrows on scroll, so the
   panel moves in with the frame. Text comes from the Media Library Caption field. */
.mh-hero-captions {
	container-type: inline-size;
	position: absolute;
	top: 0;
	right: var(--mh-clip-x, 0px);
	bottom: var(--mh-view-b, var(--mh-clip-b, 0px));
	left: var(--mh-clip-x, 0px);
	z-index: 2;
	pointer-events: none;
	overflow: hidden;
}
/* The cream bar draws itself in from its corner (left to right at bottom-left, right to
   left at top-right), then the text fades in. Leaving, it all fades out together. */
.mh-hero-caption {
	position: absolute;
	left: 48px;
	bottom: 48px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: fit-content;
	max-width: min(600px, calc(100% - 96px));
	padding: 28px 34px 30px;
	color: #161412;
	isolation: isolate;
	opacity: 0;
	transition: opacity .35s ease;
}
.mh-hero-caption::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(247,242,231,.9);
	clip-path: inset(0 100% 0 0);
	transition: clip-path 0s linear .35s;
}
.mh-hero-caption > span {
	opacity: 0;
	transition: opacity .3s ease;
}
.mh-hero-caption.is-active {
	opacity: 1;
	transition: none;
}
.mh-hero-caption.is-active::before {
	clip-path: inset(0 0 0 0);
	transition: clip-path .8s cubic-bezier(.65,0,.35,1) .3s;
}
.mh-hero-caption.is-active > span {
	opacity: 1;
	transition: opacity .6s ease .95s;
}
/* Thin orange pipe on the outer edge (left for left-hand captions, right for right-hand
   ones). It draws down first, then the panel follows out of it. */
.mh-hero-caption::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 8px;
	background: #BB542F;
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0s linear .35s;
}
.mh-hero-caption.is-active::after {
	transform: scaleY(1);
	transition: transform .4s cubic-bezier(.65,0,.35,1);
}
.mh-pos-bottom-right::after,
.mh-pos-top-right::after {
	left: auto;
	right: 0;
}
/* Positions from the caption field; bottom-left is the default. Right-hand bars draw
   in from the right. */
.mh-pos-bottom-right { left: auto; right: 48px; }
.mh-pos-top-left     { bottom: auto; top: 48px; }
.mh-pos-top-right    { bottom: auto; top: 48px; left: auto; right: 48px; }
.mh-pos-bottom-right::before,
.mh-pos-top-right::before {
	clip-path: inset(0 0 0 100%);
}
/* Right-hand captions are right-aligned. */
.mh-pos-bottom-right,
.mh-pos-top-right {
	align-items: flex-end;
	text-align: right;
}
/* Desktop: each tagline stays on one line (keep them short in the caption field), and
   captions hide while the image is too narrow to hold them (during the intro and once
   it narrows on scroll). */
@media (min-width: 768px) {
	.mh-cap-line {
		white-space: nowrap;
	}
	@container (max-width: 720px) {
		.mh-hero-caption {
			visibility: hidden;
		}
	}
}
/* Phones: same idea, hidden until the image has opened out to nearly full width. */
@media (max-width: 767px) {
	@container (max-width: 300px) {
		.mh-hero-caption {
			visibility: hidden;
		}
	}
}
.mh-cap-label {
	font-size: clamp(30px, 3vw, 46px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.02em;
}
.mh-cap-line {
	font-size: clamp(17px, 1.6vw, 24px);
	line-height: 1.3;
}
/* Small note (e.g. "A Virtual Brand Experience Lab concept"): a credit line in ink just
   under the image, lined up with its right edge (the script places it and moves it in as
   the image narrows). It stays up across every slide. */
.mh-hero-note {
	position: absolute;
	z-index: 2;
	color: #161412;
	font-size: 14px;
	line-height: 1.3;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity .6s ease;
}
.mh-hero-note.is-active {
	opacity: .7;
	transition: opacity .6s ease .9s;
}
@media (max-width: 767px) {
	.mh-hero-caption,
	.mh-pos-bottom-right,
	.mh-pos-top-left,
	.mh-pos-top-right {
		top: auto;
		right: auto;
		left: 16px;
		bottom: 16px;
		max-width: calc(100% - 32px);
		padding: 16px 20px 18px;
		gap: 4px;
		align-items: flex-start;
		text-align: left;
	}
	.mh-pos-bottom-right::before,
	.mh-pos-top-right::before {
		clip-path: inset(0 100% 0 0);
	}
	.mh-pos-bottom-right::after,
	.mh-pos-top-right::after {
		left: 0;
		right: auto;
	}
	.mh-cap-label {
		font-size: 24px;
	}
	.mh-cap-line {
		font-size: 15px;
	}
	.mh-hero-note {
		font-size: 12px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.mh-hero-caption,
	.mh-hero-caption::before,
	.mh-hero-caption::after,
	.mh-hero-caption > span,
	.mh-hero-note {
		transition: none !important;
	}
}

/* ---------- Hero slider (Elementor Pro Slides, class mh-hero-slides) ---------- */
/* 1.0.112. The revised homepage hero uses Elementor Pro's Slides widget so the team can
   swap images and edit captions in one panel (Slides > image, Title, Description). These
   rules give each slide's caption the same cream panel as the old hero: the orange bar
   draws down, the panel draws in from the left, then the text fades in, each time a
   slide becomes active. Positions come from each slide's Custom Style setting. No
   Elementor control styles the content box itself, hence the CSS. */
.mh-hero-slides .swiper-slide-contents {
	position: relative;
	isolation: isolate;
	padding: 28px 34px 30px;
	width: fit-content;
}
.mh-hero-slides .swiper-slide-contents::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(247,242,231,.9);
	clip-path: inset(0 100% 0 0);
}
.mh-hero-slides .swiper-slide-contents::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 8px;
	background: #BB542F;
	transform: scaleY(0);
	transform-origin: top;
}
.mh-hero-slides .swiper-slide-contents > * {
	opacity: 0;
}
.mh-hero-slides .swiper-slide-active .swiper-slide-contents::after {
	transform: scaleY(1);
	transition: transform .4s cubic-bezier(.65,0,.35,1) .5s;
}
.mh-hero-slides .swiper-slide-active .swiper-slide-contents::before {
	clip-path: inset(0 0 0 0);
	transition: clip-path .8s cubic-bezier(.65,0,.35,1) .8s;
}
.mh-hero-slides .swiper-slide-active .swiper-slide-contents > * {
	opacity: 1;
	transition: opacity .6s ease 1.45s;
}
/* While the homepage intro is still opening the image, hold the first caption back. */
html.mh-intro-pending .mh-hero-slides .swiper-slide-contents {
	visibility: hidden;
}
/* Keep captions inside the visible image: the hero's mask trims 4% off each side on
   desktop (see initHeroExpand), so the side padding is that plus 48px. */
@media (min-width: 768px) {
	.mh-hero-slides .swiper-slide-inner {
		padding-left: calc(4% + 48px) !important;
		padding-right: calc(4% + 48px) !important;
	}
}
/* Dots sit in their own strip under the image (Slides > Navigation > Dots position:
   Outside), on the page background, larger and easy to click. */
.mh-hero-slides .elementor-slides-wrapper,
.mh-hero-slides .swiper {
	background: transparent;
}
/* Dots: ink for the current slide, warm gray for the others. */
.mh-hero-slides .swiper-pagination-bullet {
	transition: opacity .3s ease, transform .3s ease;
}
.mh-hero-slides .swiper-pagination-bullet-active {
	transform: scale(1.25);
}
@media (max-width: 767px) {
	.mh-hero-slides .swiper-slide-contents {
		padding: 16px 20px 18px;
	}
	.mh-hero-slides .swiper-slide-inner {
		align-items: flex-end !important;
		justify-content: flex-start !important;
	}
}
@media (prefers-reduced-motion: reduce) {
	.mh-hero-slides .swiper-slide-contents::before,
	.mh-hero-slides .swiper-slide-contents::after,
	.mh-hero-slides .swiper-slide-contents > * {
		transition: none !important;
	}
}

/* ---------- Interior page openings: page-load build-in ---------- */

/* While the build-in is pending, these wait out of sight (see mh-scroll-effects.js,
   initLoadBuild). A 3-second safety net in the page head shows them regardless. */
html.mh-load-pending .mh-load-reveal {
	clip-path: inset(0 100% 0 0);
}
/* Hero-treatment photos wait as a closed center line until the script takes over; the
   page-head safety net shows them if it never runs (1.0.105). */
html.mh-load-pending .mh-frame-expand {
	clip-path: inset(0 50% 0 50%);
}
.mh-frame-expand {
	will-change: clip-path;
}
html.mh-load-pending .mh-load-rise > * {
	opacity: 0;
}
html.mh-load-pending .mh-load-wipe .mh-accent {
	clip-path: inset(-20% 100% -30% -5%);
}
.mh-load-wipe .mh-accent {
	display: inline-block;
}

/* Process steps cycle (mh-step-cycle): orange bar drawn over each step's top rule. */
.mh-step-cycle .e-con { position: relative; }
.mh-step-cycle .mh-step-bar { position: absolute; left: 0; right: 0; top: -1px; height: 4px; transform: scaleX(0); pointer-events: none; }
html.mh-reduced-motion .mh-step-cycle .mh-step-bar { display: none; }

/* Circle process steps (mh-circle-steps): full-width line through the circle centers.
   Elementor drives .e-con::before (background overlay), so these need !important. */
.e-con.mh-circle-steps { position: relative; }
.e-con.mh-circle-steps::before { content: '' !important; display: block !important; position: absolute !important; top: var(--mh-circle-line-top, 38px) !important; left: -100vw !important; right: -100vw !important; width: auto !important; height: 1px !important; background: var(--mh-circle-line, rgba(244, 236, 217, 0.18)) !important; opacity: 1 !important; pointer-events: none; z-index: 0; }
.mh-circle-steps .mh-step-circle { position: relative; z-index: 1; will-change: transform; }
@media (max-width: 767px) { .e-con.mh-circle-steps::before { display: none !important; } }

/* Rising circle (mh-circle-rise): desktop only; the parallax circle is hidden on smaller screens. */
@media (max-width: 1024px) { .e-con.mh-circle-rise > .extended-parallax { display: none !important; } }

/* Edge bar (mh-edge-bar): thin orange bar down a card's left edge, drawn by the scroll script. */
.e-con.mh-edge-bar { position: relative; }
.mh-edge-bar-line { position: absolute; left: -1px; top: -1px; bottom: -1px; width: var(--mh-edge-bar-width, 4px); background: var(--mh-edge-bar-color, #BB542F); transform: scaleY(0); transform-origin: top; pointer-events: none; z-index: 2; }
html.mh-reduced-motion .mh-edge-bar-line { transform: none; }

/* Portfolio details under accordion cards (mh-pf-meta): Concept two tags and descriptive title. */
.mh-pf-under { margin-top: 18px; }
.mh-pf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.mh-pf-tags span { font-family: 'Instrument Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; padding: 5px 7px; background: var(--mh-pf-tag-bg, rgba(244, 236, 217, 0.12)); color: var(--mh-pf-tag-color, #D9D4CA); }
.mh-pf-title { font-family: 'Instrument Sans', sans-serif; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; color: var(--mh-pf-title-color, #F7F2E7); }

/* mh-pf-meta: only the campaign link navigates, as on the homepage cards. */
.mh-pf-meta .portfolio__item a.single_link, .mh-pf-meta .portfolio__item a.portfolio_link { pointer-events: none; }
.mh-pf-explore { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-family: 'Instrument Sans', sans-serif; font-size: 16px; font-weight: 600; line-height: 1.2; color: #FFFFFF; text-decoration: none; border-bottom: 1px solid #FFFFFF; padding-bottom: 4px; position: relative; z-index: 4; pointer-events: auto; transition: color 0.3s ease; }
.mh-pf-explore:hover, .mh-pf-explore:focus-visible { color: #BB542F; }

/* Line draw (mh-line-draw): track and orange line across a row's top edge, drawn by the scroll script. */
.e-con.mh-line-draw { position: relative; }
.mh-line-draw-track, .mh-line-draw-line { position: absolute; left: 0; right: 0; top: 0; height: var(--mh-line-draw-weight, 2px); pointer-events: none; }
.mh-line-draw-track { background: var(--mh-line-draw-track, rgba(244,236,217,.18)); }
.mh-line-draw-line { background: var(--mh-line-draw-color, #E07A52); transform: scaleX(0); transform-origin: left; z-index: 1; }
html.mh-reduced-motion .mh-line-draw-line { transform: none; }

/* Showcase list (mh-showcase on the Wuko Showcase widget, copied from demo Homepage 2). The theme
   styles the hovered/active row; these only recolor it for our palette: the band is cream instead
   of the theme's primary orange, with ink type and an orange number. The scroll script keeps one
   row active (the first on load, then the last hovered). */
.mh-showcase .showcase__background::after { background-color: #F4ECD9 !important; }
.mh-showcase .showcase__item.active .title { color: #161412 !important; }
.mh-showcase .showcase__item.active .showcase__subtitle { color: #BB542F !important; }

/* mh-showcase motion: divider lines drawn by the scroll script (--mh-line 0 to 1). On hover it's
   two-staged: the cream band and text switch quickly (0.2s), then only the photo builds in slowly
   (1s fade and a slight settle, after 0.35s); the outgoing photo leaves quickly (0.3s).
   The active row sits above its neighbors so the next row's divider never crosses its photo. */
.mh-showcase .showcase__item::after { transform: scaleX(var(--mh-line, 1)); transform-origin: left center; }
.mh-showcase .showcase__item.active { z-index: 4; }
/* Only the active row changes color; a bare :hover on another row does nothing. */
/* 1.0.74: hover is near instant. Band, title and description switch together in .15s; the photo
   fades in .4s with no delay. The photo no longer floats: on desktop it fills the right end of the
   active row's cream band (flush top, bottom, right), cropped from the square with object-fit, and
   the description widens to 340px beside it. Tablet and phone show the list without photos. */
.mh-showcase .showcase__background::after { transition: opacity .15s ease !important; }
.mh-showcase .showcase__item .title, .mh-showcase .showcase__item .showcase__subtitle { transition: color .15s ease !important; }
.mh-showcase .showcase__content_wrapper { transition: opacity .15s ease !important; }
@media (min-width: 1025px) {
	.mh-showcase { --mh-photo-w: 260px; }
	.mh-showcase .showcase__item .image_on_default .showcase__image { position: absolute !important; top: 0 !important; bottom: 0 !important; right: 0 !important; left: auto !important; width: var(--mh-photo-w) !important; height: auto !important; transform: none !important; overflow: hidden; z-index: 1; opacity: 0 !important; transition: opacity .2s ease !important; }
	.mh-showcase .showcase__item.active .image_on_default .showcase__image { opacity: 1 !important; transition: opacity .4s ease !important; }
	.mh-showcase .showcase__item .image_on_default .showcase__image img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; transform: none !important; }
	.mh-showcase .showcase__item_inner { box-sizing: border-box; padding-right: calc(var(--mh-photo-w) + 4px); }
	.mh-showcase .showcase__item .showcase__title { flex: 0 0 auto !important; width: auto !important; }
	.mh-showcase .showcase__item .title { font-size: min(64px, 4.6vw) !important; }
	.mh-showcase .showcase__item .showcase__item_inner .showcase__content_wrapper { flex: 0 1 340px !important; width: auto !important; max-width: 340px !important; min-width: 220px; margin-left: auto !important; margin-right: 0 !important; }
	.mh-showcase .showcase__item .showcase__item_inner .showcase__content, .mh-showcase .showcase__item .showcase__item_inner .showcase__content p { width: auto !important; }
}
@media (max-width: 1024px) {
	.mh-showcase .image_on_default, .mh-showcase .image_on_responsive { display: none !important; }
}
/* 1.0.76: the band follows the active row only. The theme also shows it on plain :hover, which
   could show a band with no description or photo before the script made that row active. */
.mh-showcase .showcase__item:not(.active) .showcase__background::after { opacity: 0 !important; }
.mh-showcase .showcase__item:not(.active):hover .title { color: #F7F2E7 !important; }
.mh-showcase .showcase__item:not(.active):hover .showcase__subtitle { color: #E07A52 !important; }


/* ==========================================================================
   Project pages (portfolio singles), 1.0.80
   ========================================================================== */
/* Hero poster: wide image with a play button; opens the film in a lightbox. */
.mh-play .elementor-widget-container,
.mh-play a { position: relative; display: block; }
.mh-play img { width: 100%; aspect-ratio: 1400 / 680; object-fit: cover; display: block; }
.mh-play a::after {
	content: ""; position: absolute; left: 50%; top: 50%;
	width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
	background: rgba(247, 242, 231, 0.92)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l10.5-6.5z' fill='%23BB542F'/%3E%3C/svg%3E")
		center / 34px no-repeat;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	transition: transform .3s ease, background-color .3s ease;
}
.mh-play a:hover::after { transform: scale(1.08); background-color: #F7F2E7; }
@media (max-width: 767px) {
	.mh-play a::after { width: 68px; height: 68px; margin: -34px 0 0 -34px; background-size: 24px; }
}
/* Gallery images keep one shape. */
.mh-gallery img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; display: block; }

/* Project pages: soft shade behind the title band image so the white title always reads (1.0.81). */
.single-portfolio .page-header { position: relative; isolation: isolate; }
.single-portfolio .page-header::before {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: linear-gradient(90deg, rgba(24, 22, 20, 0.55) 0%, rgba(24, 22, 20, 0.28) 45%, rgba(24, 22, 20, 0) 75%);
}
.single-portfolio .page-header > * { position: relative; z-index: 1; }

/* Project title band: lighter orange accent so it reads on the photo (1.0.82). */
.single-portfolio .page-header .mh-accent { color: #E07A52; }
.single-portfolio .page-header .mh-project-title { display: inline-block; line-height: 1.05; }

/* Project title band: hide the plain title until the script splits it into two lines,
   so the one-line version doesn't flash first. The 3s load-pending fallback still applies. (1.0.83) */
html.mh-load-pending body.single-portfolio .page-header_title { visibility: hidden; }
html.mh-load-pending body.single-portfolio .page-header_title .mh-project-title { visibility: visible; }

/* Project title band on phones: the title is centered over the image, so the left-to-right
   shade above doesn't reach it. Use an even shade instead. Theme header, no Elementor control. (1.0.85) */
@media (max-width: 767px) {
	.single-portfolio .page-header::before { background: rgba(24, 22, 20, .45); }
}

/* Team cards (class mh-team-link on the Team widget): the whole card is the link to the
   bio, and an orange arrow square fades in at the top right on hover. On touch screens
   the arrow stays visible. The theme's Team widget has no control for this. (1.0.87) */
.mh-team-link .team__member { position: relative; }
.mh-team-link .member__thumbnail { position: static; }
.mh-team-link .member__thumbnail::before { content: ""; position: absolute; inset: 0; z-index: 2; }
.mh-team-link .member__info-wrapper { pointer-events: none; }
.mh-team-link .member__media::after {
	content: ""; position: absolute; top: 20px; right: 20px; z-index: 3; width: 38px; height: 38px;
	background: #BB542F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / 16px no-repeat;
	opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.mh-team-link .team__member:hover .member__media::after,
.mh-team-link .team__member:focus-within .member__media::after { opacity: 1; }
@media (hover: none) { .mh-team-link .member__media::after { opacity: 1; } }

/* Leadership bio pages are laid out in Elementor (photo, title, name, bio, Leadership team
   grid). Hide the theme's built-in team header so it isn't shown twice. (1.0.90) */
body.single-team .single_team_page .wgl_col-12 .team__member-wrap { display: none; }
.single-team .single_team_page > .wgl_col-12 { width: 100%; max-width: none; padding: 0; }

/* Leadership bio pages: let the Elementor sections run full width (the cream bio band),
   instead of sitting inside the theme's 1230px content box. (1.0.92) */
body.single-team #main > .wgl-container { max-width: none; padding-left: 0; padding-right: 0; }
body.single-team #main .row.sidebar_none,
body.single-team #main .row.single_team_page { margin-left: 0; margin-right: 0; }
body.single-team #main-content { padding-left: 0; padding-right: 0; }
/* The theme pulls single-page content out by 15px each side to undo its own column padding;
   with that padding removed above, cancel the pull so bio pages keep their side gutters on
   phones and tablets. (1.0.102) */
body.single-team #main .elementor { margin-left: 0; margin-right: 0; }

/* Team cards (mh-team-link): pull the title up under the name. The theme adds a 7px
   margin plus a tall 28px line box above the title, and the Team widget has no control
   for it. (1.0.93) */
.mh-team-link .team__member .member__info-footer { margin-top: 6px; line-height: 1.2; }

/* Team cards (mh-team-link): keep the title on one line. It stays 14px and only scales
   down when the card is too narrow to fit it (5% of card width). (1.0.94) */
.mh-team-link .team__member { container-type: inline-size; }
.mh-team-link .team__member .member__highlighted { white-space: nowrap; font-size: min(14px, 5cqw); }

/* ------------------------------------------------------------------
   Contact form (Gravity Forms, form CSS class mh-inquiry). Matches the
   earlier staging form: labels above, white square fields with the light
   border, 20px gutters; our outline button with the arrow. Gravity Forms'
   Orbital theme has no shortcode-level controls for these, so they live
   here. (1.0.96)
   ------------------------------------------------------------------ */
.gform_wrapper.mh-inquiry_wrapper { --mh-ink: #161412; --mh-line: #D9D4CA; --mh-muted: #5E5A54; --mh-orange: #BB542F; font-family: "Instrument Sans", sans-serif; }
.gform_wrapper.mh-inquiry_wrapper .gform_fields { row-gap: 26px; column-gap: 20px; }
.gform_wrapper.mh-inquiry_wrapper .gfield_label,
.gform_wrapper.mh-inquiry_wrapper legend.gfield_label { font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--mh-ink); margin-bottom: 5px; padding: 0; }
.gform_wrapper.mh-inquiry_wrapper .gfield_required { color: var(--mh-orange); }
.gform_wrapper.mh-inquiry_wrapper .gfield input[type="text"],
.gform_wrapper.mh-inquiry_wrapper .gfield input[type="email"],
.gform_wrapper.mh-inquiry_wrapper .gfield input[type="tel"],
.gform_wrapper.mh-inquiry_wrapper .gfield select,
.gform_wrapper.mh-inquiry_wrapper .gfield textarea { font-family: inherit; font-size: 16px; color: var(--mh-ink); background-color: #fff; border: 1px solid var(--mh-line); border-radius: 0; box-shadow: none; padding-left: 16px; padding-right: 16px; }
.gform_wrapper.mh-inquiry_wrapper .gfield input[type="text"],
.gform_wrapper.mh-inquiry_wrapper .gfield input[type="email"],
.gform_wrapper.mh-inquiry_wrapper .gfield input[type="tel"],
.gform_wrapper.mh-inquiry_wrapper .gfield select { height: 50px; min-block-size: 50px; }
.gform_wrapper.mh-inquiry_wrapper .gfield select { padding-right: 44px; }
.gform_wrapper.mh-inquiry_wrapper .gfield textarea { padding-top: 14px; padding-bottom: 14px; min-block-size: 140px; height: 140px; }
.gform_wrapper.mh-inquiry_wrapper .gfield input:focus,
.gform_wrapper.mh-inquiry_wrapper .gfield select:focus,
.gform_wrapper.mh-inquiry_wrapper .gfield textarea:focus { border-color: var(--mh-ink); outline: none; box-shadow: 0 0 0 1px var(--mh-ink); }

/* Program question: four cards, two across (one across on phones). */
.gform_wrapper.mh-inquiry_wrapper .mh-program-cards .gfield_radio { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gform_wrapper.mh-inquiry_wrapper .mh-program-cards .gchoice { position: relative; margin: 0; }
.gform_wrapper.mh-inquiry_wrapper .mh-program-cards .gchoice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.gform_wrapper.mh-inquiry_wrapper .mh-program-cards .gchoice label { display: block; height: 100%; margin: 0; padding: 16px 18px; background: #fff; border: 1px solid var(--mh-line); font-size: 15px; line-height: 1.4; color: var(--mh-muted); max-width: none; transition: border-color .2s, box-shadow .2s; }
.gform_wrapper.mh-inquiry_wrapper .mh-program-cards .gchoice label strong { display: block; margin-bottom: 2px; font-size: 17px; font-weight: 500; color: var(--mh-ink); }
.gform_wrapper.mh-inquiry_wrapper .mh-program-cards .gchoice:hover label { border-color: var(--mh-ink); }
.gform_wrapper.mh-inquiry_wrapper .mh-program-cards .gchoice:has(input:checked) label { border-color: var(--mh-orange); box-shadow: inset 0 0 0 1px var(--mh-orange); }
.gform_wrapper.mh-inquiry_wrapper .mh-program-cards .gchoice:has(input:focus-visible) label { outline: 2px solid var(--mh-ink); outline-offset: 2px; }
@media (max-width: 640px) { .gform_wrapper.mh-inquiry_wrapper .mh-program-cards .gfield_radio { grid-template-columns: 1fr; } }

/* Marketing opt-in and consent line. */
.gform_wrapper.mh-inquiry_wrapper .mh-optin .gchoice { display: flex; align-items: flex-start; gap: 12px; }
.gform_wrapper.mh-inquiry_wrapper .mh-optin input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; margin: 2px 0 0; border: 1px solid var(--mh-line); border-radius: 0; background: #fff; }
.gform_wrapper.mh-inquiry_wrapper .mh-optin label { font-size: 15px; line-height: 1.5; color: var(--mh-muted); max-width: none; }
.gform_wrapper.mh-inquiry_wrapper .mh-consent { font-size: 14px; line-height: 1.5; color: var(--mh-muted); margin-top: -10px; }
.gform_wrapper.mh-inquiry_wrapper .mh-consent a { color: var(--mh-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Send button: same as our outline buttons (ink outline, orange fill on hover). The long
   selector outranks Gravity Forms' Orbital button rule and the theme's button colors. (1.0.98) */
.gform_wrapper.mh-inquiry_wrapper .gform_footer { margin-top: 30px; padding: 0; }
.gform-theme.gform-theme--framework.gform_wrapper.mh-inquiry_wrapper .gform_footer button.mh-form-button.mh-form-button { height: auto; display: inline-flex; align-items: center; gap: 12px; font-family: "Instrument Sans", sans-serif; font-size: 16px; font-weight: 500; line-height: 1.2; color: var(--mh-ink); fill: var(--mh-ink); background: transparent; border: 1px solid var(--mh-ink); border-radius: 0; padding: 18px 26px; min-block-size: 0; box-shadow: none; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s, fill .3s; }
.gform-theme.gform-theme--framework.gform_wrapper.mh-inquiry_wrapper .gform_footer button.mh-form-button.mh-form-button:hover,
.gform-theme.gform-theme--framework.gform_wrapper.mh-inquiry_wrapper .gform_footer button.mh-form-button.mh-form-button:focus-visible { background: var(--mh-orange); border-color: var(--mh-orange); color: #fff; fill: #fff; }
.gform_wrapper.mh-inquiry_wrapper .mh-form-button__icon { width: 16px; height: 16px; }

/* Errors and the thank-you message. */
.gform_wrapper.mh-inquiry_wrapper .gfield_validation_message,
.gform_wrapper.mh-inquiry_wrapper .validation_message { font-size: 14px; color: var(--mh-orange); background: none; border: 0; padding: 6px 0 0; }
.gform_wrapper.mh-inquiry_wrapper .gfield_error input,
.gform_wrapper.mh-inquiry_wrapper .gfield_error select,
.gform_wrapper.mh-inquiry_wrapper .gfield_error textarea { border-color: var(--mh-orange); }
/* Thank-you message (1.0.115): the head uses the site's headline style with the orange
   italic accent; the follow-up line is body copy. Both selectors include .mh-thanks so the
   head rule outranks the paragraph rule (before, the paragraph rule overrode the head). */
.gform_confirmation_wrapper.mh-inquiry .mh-thanks p { margin: 0; font-family: "Instrument Sans", sans-serif; line-height: 1.5; font-size: 18px; color: #5E5A54; }
.gform_confirmation_wrapper.mh-inquiry .mh-thanks .mh-thanks-head { font-family: "Instrument Sans", sans-serif; font-size: 48px; font-weight: 400; line-height: 1.08; letter-spacing: -0.02em; color: var(--mh-ink, #161412); margin: 0 0 18px; }
@media (max-width: 1024px) { .gform_confirmation_wrapper.mh-inquiry .mh-thanks .mh-thanks-head { font-size: 40px; } }
@media (max-width: 767px) { .gform_confirmation_wrapper.mh-inquiry .mh-thanks .mh-thanks-head { font-size: 32px; } }

/* Contact form fixes (1.0.97): program cards fill their grid cells; the "* indicates
   required fields" line is kept for screen readers only. */
.gform_wrapper.mh-inquiry_wrapper .mh-program-cards .gchoice { display: block; width: 100%; }
.gform_wrapper.mh-inquiry_wrapper .mh-program-cards .gchoice label { width: 100%; box-sizing: border-box; }
.gform_wrapper.mh-inquiry_wrapper .gform_required_legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Consent line: narrow enough that "Privacy Policy" always starts the second line, and the
   link never splits across lines. (1.0.100) */
.gform_wrapper.mh-inquiry_wrapper .mh-consent { max-width: 43.5em; }
.gform_wrapper.mh-inquiry_wrapper .mh-consent a { white-space: nowrap; }

/* reCAPTCHA notice under the consent line. Google allows hiding its floating badge
   when this notice is shown (badge hidden in Forms > Settings > reCAPTCHA). (1.0.101) */
.gform_wrapper.mh-inquiry_wrapper .mh-consent .mh-recaptcha-note { display: block; margin-top: 8px; font-size: 12px; line-height: 1.5; }

/* Showcase list on phones: no cream highlight block (it ran to the screen edge with the text
   tight against its left side); items read as a plain list, like the other rows. (1.0.106) */
@media (max-width: 767px) {
	.mh-showcase .showcase__item .showcase__background::after { opacity: 0 !important; }
	.mh-showcase .showcase__item.active .title { color: #F7F2E7 !important; }
	.mh-showcase .showcase__item.active .showcase__subtitle { color: #E07A52 !important; }
	.mh-showcase .showcase__item.active .showcase__content, .mh-showcase .showcase__item.active .showcase__content p { color: inherit; }
}

/* Main menu spacing (1.0.108): Brand Experience Lab moved to the top level, so items sit 12px apart on each side instead of the theme's 15px (main.css hard-codes the margin; no theme control). Keeps the menu clear of the logo and button at 1280px. */
.wgl-theme-header .primary-nav > ul.menu > li.menu-item > a { margin: 0 12px; } /* extra specificity: the child stylesheet loads before main.css */

/* ---------- Case study card sub-heads (1.0.116) ---------- */
/* Portfolio categories whose slug starts with "sh-" are card sub-heads
   (e.g. "Customer Acquisition / Prospecting"). On a card that has one, the
   sub-head sits over the top-left of the image and the other category tags
   are hidden. Change a case study's sub-head by changing its sh- category. */
.portfolio__item .item__wrapper {
	position: relative;
}
.portfolio__item .post_cats a.portfolio-category[href*="/sh-"] {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 3;
	max-width: calc(100% - 32px);
	margin: 0;
	padding: 8px 12px;
	background: #282521;
	color: #F7F2E7;
	border: 0;
	border-radius: 0;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: .12em;
	text-transform: uppercase;
	pointer-events: none;
}
.portfolio__item:has(a.portfolio-category[href*="/sh-"]) .post_cats a.portfolio-category:not([href*="/sh-"]) {
	display: none;
}

/* ---------- Case study sub-heads on grids that hide extra tags (1.0.117) ---------- */
body .elementor .portfolio__item .post_cats a.portfolio-category[href*="/sh-"] { display: block !important; }
body .elementor .portfolio__item:has(a.portfolio-category[href*="/sh-"]) .post_cats a.portfolio-category:not([href*="/sh-"]) { display: none !important; }


/* Counter "+" suffix upright in Instrument Sans (Nov 30, per Bethany). Class added by mh-scroll-effects.js. */
.wgl-counter__suffix .mh-plus { font-family: "Instrument Sans", sans-serif !important; font-style: normal !important; font-weight: 400 !important; }

/* Letters before the "+" (e.g. the X in 12X+) match the number itself. */
.wgl-counter__suffix .mh-sfx-num { font-family: "Instrument Sans", sans-serif !important; font-style: normal !important; font-weight: 500 !important; color: #FFFFFF; }


/* Footer legal links (Nov 30): small fine print under the copyright. Desktop: two centered rows with thin dividers. Phones: stacked, centered, no dividers. */
.mh-legal .elementor-widget-text-editor { width: 100%; }
.mh-legal .mh-legal-row { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.mh-legal .mh-legal-row li { margin: 3px 0; padding: 0 10px; border-left: 1px solid #4A453F; font-size: 13.5px; line-height: 1.6; }
.mh-legal .mh-legal-row li:first-child { border-left: none; }
.mh-legal .mh-legal-row a { color: #BDB5A8; text-decoration: none; }
.mh-legal .mh-legal-row a:hover { color: #FFFFFF; }
@media (max-width: 767px) {
	.mh-legal .mh-legal-row { flex-direction: column; align-items: center; }
	.mh-legal .mh-legal-row li { border-left: none; padding: 4px 0; margin: 0; font-size: 14px; text-align: center; }
}

/* Footer copyright row on phones: centered under the stacked legal links; "Site design by" on its own line; back-to-top button last. */
@media (max-width: 767px) {
	.elementor-element-ba99b0c { flex-direction: column !important; align-items: center !important; gap: 14px; }
	.elementor-element-ba99b0c .elementor-element-eaeaaf1 { order: 1; position: static !important; margin: 0 auto !important; transform: none !important; }
	.elementor-element-ba99b0c .elementor-element-cb40033, .elementor-element-ba99b0c .elementor-element-cb40033 p { text-align: center !important; width: 100%; }
	.elementor-element-ba99b0c .elementor-element-cb40033 { padding-right: 0 !important; } /* desktop keeps 60px to clear the back-to-top button */
	.mh-copy-sep { display: none; }
	.mh-copy-credit { display: block; }
}


/* "Get in touch" in the mobile menu (Dec 4). Menu item with class mh-mobile-cta: hidden in the desktop header (which has its own button), shown as an orange button at the bottom of the mobile menu. */
.wgl-theme-header .mh-mobile-cta { display: none !important; }
.wgl-theme-header .wgl-mobile-header .mh-mobile-cta { display: block !important; }
.wgl-mobile-header .mh-mobile-cta { margin-top: 24px; }
.wgl-mobile-header .mh-mobile-cta > a { display: inline-flex !important; align-items: center; width: auto !important; padding: 14px 27px !important; background: #BB542F; color: #FFFFFF !important; border-radius: 30px; font-size: 16px !important; line-height: 1.2 !important; }
.wgl-mobile-header .mh-mobile-cta > a:hover { background: #9A4426; color: #FFFFFF !important; }
.wgl-mobile-header .mh-mobile-cta > a * { color: #FFFFFF !important; }

/* Stronger selectors: the theme's mobile menu link styles override the simpler ones above. */
.wgl-theme-header .mobile_nav_wrapper .primary-nav ul li.mh-mobile-cta { display: block !important; margin-top: 24px !important; }
.wgl-theme-header .mobile_nav_wrapper .primary-nav ul li.mh-mobile-cta > a { display: inline-flex !important; width: auto !important; padding: 14px 27px !important; background-color: #BB542F !important; border-radius: 30px !important; color: #FFFFFF !important; line-height: 1.2 !important; }
.wgl-theme-header .mobile_nav_wrapper .primary-nav ul li.mh-mobile-cta > a .item_text { color: #FFFFFF !important; font-size: 16px !important; text-transform: none !important; }
.wgl-theme-header .mobile_nav_wrapper .primary-nav ul li.mh-mobile-cta > a .menu-item_dots, .wgl-theme-header .mobile_nav_wrapper .primary-nav ul li.mh-mobile-cta > a .menu-item__plus { display: none !important; }


/* Blog post titles: balance the lines so a title never ends on a single word. */
.single-post .elementor-widget-theme-post-title .elementor-heading-title { text-wrap: balance; }
