/*!
Theme Name: MSLGroup
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: mslgroup
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

MSLGroup is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Fonts
--------------------------------------------------------------*/
@font-face {
	font-family: "Crimson Pro";
	src: url("assets/CrimsonPro-Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: "Crimson Pro";
	src: url("assets/CrimsonPro-Italic.ttf") format("truetype");
	font-weight: 400;
	font-style: italic;
}

@font-face {
	font-family: "Crimson Pro";
	src: url("assets/CrimsonPro-Light.ttf") format("truetype");
	font-weight: 300;
	font-style: normal;
}

@font-face {
	font-family: "Crimson Pro";
	src: url("assets/CrimsonPro-LightItalic.ttf") format("truetype");
	font-weight: 300;
	font-style: italic;
}

@font-face {
	font-family: "Poppins";
	src: url("assets/Poppins-Light.ttf") format("truetype");
	font-weight: 300;
	font-style: normal;
}

@font-face {
	font-family: "Poppins";
	src: url("assets/Poppins-LightItalic.ttf") format("truetype");
	font-weight: 300;
	font-style: italic;
}

@font-face {
	font-family: "Poppins";
	src: url("assets/Poppins-Bold.ttf") format("truetype");
	font-weight: 700;
	font-style: normal;
}

@font-face {
	font-family: "Poppins";
	src: url("assets/Poppins-BoldItalic.ttf") format("truetype");
	font-weight: 700;
	font-style: italic;
}

:root {
	--color-primary: #191919;
	--color-secondary: #A2A2A2;
	--color-white: #fff;
	--color-ui: #707070;
	--color-accent: #B49346;
	--font-headline: "Poppins", sans-serif;
	--font-headline-weight: 700;
	--font-body: "Crimson Pro", serif;
	--font-body-weight: 300;
	--max-content-width: 1720px;
	--w: clamp(2.5rem, 0.1136rem + 9.0909vw, 6.25rem);
}

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

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

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

#page {
	position: relative;
	z-index: 0;
}

#banner-video {
	position: sticky;
	top: 0;
	z-index: 0;
}

#banner-video video {
	position: absolute;
	z-index: -1;
}

.banner-video {
	min-height: 100vh;
	overflow: hidden;
	position: relative;
}

.banner-video__media {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	transform: translate(-50%, -50%);
	object-fit: cover;
	object-position: center;
	z-index: -1;
}

.banner-video--mobile {
	display: none;
}

@media (max-width: 600px) {
	.banner-video--desktop {
		display: none;
	}
	.banner-video--mobile {
		display: block;
	}
}

.banner-video__cta {
	position: absolute;
	left: 50%;
	bottom: 48px;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	color: #fff;
	text-decoration: none;
	text-transform: uppercase;
	font-family: var(--font-headline);
	font-weight: var(--font-headline-weight);
	font-size: 20px;
	letter-spacing: 0;
	line-height: 1;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.75s ease;
}

.banner-video__cta:visited {
	color: #fff;
}

.banner-video__cta svg {
	width: 24px;
	height: auto;
	display: block;
}

.banner-video__cta:hover,
.banner-video__cta:focus {
	opacity: 0.6 !important;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: var(--color-primary);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 0;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: var(--color-primary);
}

a:visited {
	color: var(--color-primary);
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid var(--color-ui);
	border-radius: 0;
	background: #e6e6e6;
	color: var(--color-primary);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: var(--color-primary);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
	color: var(--color-primary);
	border: 1px solid var(--color-ui);
	border-radius: 0;
	padding: 3px;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/
.container {
	max-width: var(--max-content-width);
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-left: auto;
	margin-right: auto;
	padding-left: 2rem;
	padding-right: 2rem;
	position: relative;
}
@media ( width < 767px) {
	.container {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}

}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

#evolving {
	position: relative;
	z-index: 1;
	background-color: #fff;
	/* margin: 60px 0; */
	min-height: 100vh;


	.container {

		.content-wrap {
			
			.leadfit {
				padding: 10vh 5%;
				text-align: center;

				@media (max-width: 900px) {
					padding: 25vh 5% 15vh;
				}
			}
		}
	}

	h2 {
		font-family: var(--font-headline);
		font-weight: var(--font-headline-weight);
		font-size: clamp(3rem, 6vw, 6.875rem);
		line-height: 1.05;
		text-transform: uppercase;

		.scroll-reveal {
			/* Mask gradient: left half = full opacity, right half = 10% opacity */
			-webkit-mask-image: linear-gradient(90deg, 
				rgba(0,0,0,1) 0% 50%, 
				rgba(0,0,0,0.1) 50% 100%
			);
			-webkit-mask-size: 200% 100%;
			-webkit-mask-position: 100% 0;
			mask-image: linear-gradient(90deg, 
				rgba(0,0,0,1) 0% 50%, 
				rgba(0,0,0,0.1) 50% 100%
			);
			mask-size: 200% 100%;
			mask-position: 100% 0;
			animation: scroll-text-reveal linear forwards;
			animation-timeline: view();
			animation-range: cover 20% cover 55%;
		}

		.scroll-reveal .color-light {
			color: var(--color-secondary) !important;
		}

		.scroll-reveal .underline {
			color: var(--color-primary);
		}

		/* Typing reveal (GSAP scroll-driven typewriter) */
		&.typing-reveal .color-light span.char {
			color: var(--color-secondary) !important;
		}

		&.typing-reveal .underline {
			color: var(--color-primary);
		}

		&.typing-reveal .char {
			display: inline;
		}

		.underline {
			display: inline-block;
			position: relative;
			line-height: 0.9;
			--underline-opacity: 0;
		}

		.underline::before {
			content: '';
			position: absolute;
			width: 98%;
			height: 0.4em;
			bottom: 0;
			z-index: -1;
			background-color: rgba(216, 216, 216, var(--underline-opacity));
			left: 1%;
		}
	}

	h3 {
		font-family: var(--font-body);
		font-weight: var(--font-body-weight);
		font-size: clamp(1.4rem, 2vw, 2.25rem);
		color: var(--color-primary);
		text-wrap: balance;
		line-height: 1.4;

		&.word-reveal .word {
			display: inline-block;
			will-change: transform, opacity;
		}
	}
}

@keyframes scroll-text-reveal {
	from {
		-webkit-mask-position: 100% 0;
		mask-position: 100% 0;
	}
	to {
		-webkit-mask-position: 0% 0;
		mask-position: 0% 0;
	}
}

@keyframes scroll-underline-reveal {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

/* Offices Section
--------------------------------------------- */
#offices {
	position: relative;
	z-index: 1;
	background-color: #fff;
	height: 100vh;
	min-height: 100svh;
	overflow: hidden;
}

#offices #map {
	height: 100%;
	width: 100%;
}

.offices-panel {
	position: absolute;
	top: clamp(120px, 14vh, 148px);
	left: 50px;
	width: 320px;
	max-height: calc(100% - clamp(168px, 20vh, 220px));
	background: #fff;
	padding: 30px;
	z-index: 1000;
	overflow-y: auto;
	border: 1px solid var(--color-ui);
	will-change: transform, opacity;
}

.offices-panel h2 {
	font-family: var(--font-headline);
	font-size: 2.3rem;
	line-height: 0.95;
	margin: 0 0 0.5rem 0;
	text-transform: uppercase;
}

.offices-panel h2 span {
	color: var(--color-secondary);
}

.offices-panel h2 em {
	font-style: italic;
	font-weight: 300;
	color: var(--color-secondary);
}

.offices-panel h2 strong {
	font-weight: var(--font-headline-weight);
	color: var(--color-primary);
}

.offices-panel > p {
	font-family: var(--font-body);
	font-weight: var(--font-body-weight);
	color: var(--color-primary);
	margin-bottom: 1.5rem;
}

.offices-search {
	margin-bottom: 0;
}

.offices-search input {
	width: 100%;
	padding: 10px 10px 10px 35px;
	border: 1px solid var(--color-ui);
	font-family: var(--font-headline);
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23191919' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 10px center;
}

.offices-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 280px;
	overflow-y: scroll;
}

.offices-list li {
	padding: 12px 15px;
	font-family: var(--font-body);
	font-weight: var(--font-body-weight);
	font-size: 1rem;
	color: var(--color-primary);
	cursor: pointer;
	border-bottom: 1px solid #eee;
	transition: background-color 0.2s ease;
}

.offices-list li:hover {
	background-color: #f5f5f5;
}

.offices-list li.active {
	background-color: var(--color-primary);
	color: #fff;
}

/* Office Popup */
.leaflet-popup,
.leaflet-popup-content-wrapper {
	max-width: 300px;
}

.leaflet-popup-content {
	max-width: 300px;
	margin: 14px 16px;
	font-size:15px !important;
}

.leaflet-popup-content p {
	margin: 0;
}

.leaflet-container a {
	color: var(--color-primary);
}
.leaflet-popup-content {
    margin: 14px 24px 16px 20px !important;
}

.office-popup {
	font-family: var(--font-body);
	font-weight: var(--font-body-weight);
	min-width: 200px;
	max-width: 300px;
	display: flex;
    flex-direction: column;
	gap: 0.6rem;
}

.office-popup strong {
	display: block;
	font-family: var(--font-headline);
	font-weight: var(--font-headline-weight);
	font-size: 1rem;
	color: var(--color-primary);
	padding-top: 4px;
}

.office-popup p {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	line-height: 1.3;
	color: var(--color-primary);
}

.office-popup .office-detail__address {
	margin: 0 !important;
}

.office-popup .office-detail__contact {
	margin: 0 !important;
}

.office-popup .office-detail__name {
	display: block;
	font-weight: 600;
}

.office-popup .office-detail__title {
	display: block;
	color: var(--color-secondary);
	font-size: 0.9rem;
}

.office-popup a {
	color: var(--color-primary) !important;
	text-decoration: none;
}

.office-popup a:hover {
	text-decoration: underline;
}

/* Office detail (mobile expand) */
.office-detail {
	display: none;
}

.offices-browse-all {
	display: none;
}

@media (max-width: 900px) {
	#offices {
		height: auto;
		min-height: 0;
		overflow: visible;
		padding: 2rem 1.5rem 20vh;
	}

	#offices #map,
	#offices .leaflet-container,
	#offices script[type="importmap"] {
		display: none !important;
	}

	.offices-panel {
		position: static;
		width: 100%;
		max-height: none;
		padding: 0;
		border: none;
		background: transparent;
		opacity: 1 !important;
		transform: none !important;
	}

	.offices-panel h2 {
		font-size: 2rem;
	}

	.offices-list {
		max-height: none;
		overflow: visible;
		display: none;
	}

	.offices-list.is-filtered,
	.offices-list.show-all {
		display: block;
	}

	.offices-list.show-all {
		max-height: 50vh;
		overflow-y: auto;
	}

	.offices-browse-all {
		display: block;
		width: 100%;
		padding: 12px 15px;
		background: none;
		border: none;
		border-bottom: 1px solid #eee;
		font-family: var(--font-headline);
		font-size: 0.85rem;
		text-transform: uppercase;
		letter-spacing: 0.05em;
		color: var(--color-secondary);
		cursor: pointer;
		text-align: left;
		transition: color 0.2s ease;
	}

	.offices-browse-all:hover {
		color: var(--color-primary);
	}

	.offices-list li {
		position: relative;
		cursor: pointer;
	}

	.offices-list li .office-name {
		display: block;
	}

	.offices-list li.is-expanded {
		background-color: #f2f2f2;
	}

	.offices-list li.is-expanded .office-detail {
		display: block;
		padding: 0.75rem 0 0.5rem;
	}

	.office-detail strong {
		display: block;
		font-family: var(--font-headline);
		font-weight: var(--font-headline-weight);
		font-size: 1rem;
		margin-bottom: 0.25rem;
	}

	.office-detail p {
		margin: 0 0 0.5rem;
		font-size: 0.95rem;
		line-height: 1.4;
		color: var(--color-primary);
	}

	.office-detail a {
		color: var(--color-primary);
		text-decoration: none;
		font-size: 0.95rem;
	}

	.office-detail a:hover {
		text-decoration: underline;
	}

	.office-detail__contact {
		margin-top: 0.5rem;
	}

	.office-detail__name {
		display: block;
		font-weight: 600;
	}

	.office-detail__title {
		display: block;
		color: var(--color-secondary);
		font-size: 0.9rem;
	}
}


#contact {
	position: relative;
	z-index: 4;
	background-color: #fff;
	padding-top: 2rem;
	padding-bottom: 0;
	height: auto !important;
	max-height: none !important;

	.container {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;

		.content-wrap {
			margin:auto;
		}
		h2 {
			font-family: var(--font-headline);
			font-weight: var(--font-headline-weight);
			margin-bottom: 1rem;
			text-transform:uppercase;
			font-size: clamp(2.25rem, 1.2rem + 2.5vw, 3.25rem);
			line-height: 1.05;
			padding-top: 5vh;

			span.color-light {
				color:var(--color-secondary);
				
			}
		}

		h2.gform_submission_error {
			font-size: 1rem;
			text-transform: none;
			font-weight: 600;
			font-family: var(--font-headline);
			margin-bottom: 0;
			line-height: 1.25;
		}

		.gform-theme--framework .gform_validation_errors .gform_submission_error {
			flex-direction: row !important;
		}
		.leadfit h3 {
			margin-bottom: 0;
			text-transform: uppercase;
			font-size: clamp(2.25rem, 1.9318rem + 1.2121vw, 2.75rem);
			font-family: var(--font-headline);
			font-weight: var(--font-headline-weight);
			line-height: 1;
			max-width: 350px;
			margin-top:20px;

			span.color-light {
				color:var(--color-secondary);
			}

			.underline {
				display: inline-block;
				position: relative;
				line-height: 0.9;
				--underline-opacity: 0;
				z-index: 2;
			}

			.underline::before {
				content: '';
				position: absolute;
				width: 98%;
				height: 0.4em;
				bottom: 0;
				z-index: -1;
				background-color: rgba(216, 216, 216, var(--underline-opacity));
				left: 1%;
			}
		}

		.gform_heading {
			display:none;
		}

		.gform-theme--foundation .gform_fields {
			row-gap: 24px;
		}

		.gfield {

			.gform-field-label {
				font-family: var(--font-body);
				gap:2px;
				margin-bottom: 4px;

				.gfield_required_asterisk {
					color: var(--color-primary);
				}
			}

			input, textarea, select {
				border-radius: 0;

				&:focus {
					border-color: var(--color-primary) !important;
					box-shadow: none !important;
					outline: none !important;
				}
			}

		}

		.gform_button {
			display: block;
			margin-left: auto;
			background-color: var(--color-primary);
			font-family: var(--font-headline);
			font-weight: 700;
			text-transform: uppercase;
			font-size: 1.15rem;
			color: #fff;
			padding: .75rem 3.5rem;
			border: none;
			border-radius: 0;
			cursor: pointer;
			transition: all 0.3s ease;

			&:hover {
				opacity: 0.9;
			}
		}

		.gform_confirmation_wrapper {
			background-color: #A9EBA9;
			color: #358B2A;
			font-family: var(--font-headline);
			font-weight: 700;
			font-size: 1.25rem;
			padding: 1.5rem 2rem;
		}
	}
}

@media (width < 600px) {
	#contact {
		.container .gfield .gform-field-label {
			margin-bottom: 4px;
		}
	}

	#contact .gform_wrapper,
	#contact .gform-theme--framework {
		--gf-form-gap-y: 24px !important;
	}
}

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	padding: 0.5rem;
	cursor: pointer;
	color: var(--header-fg, currentColor);
	transition: color 150ms ease;
	line-height: 0;
}

.menu-toggle svg {
	width: 24px;
	height: 24px;
	display: block;
	stroke: currentColor;
}

.menu-toggle:hover,
.menu-toggle:focus {
	outline: none;
	color: var(--header-bg, currentColor);
	background-color: var(--header-fg, rgba(0, 0, 0, 0.1));
}

.main-navigation {
	position: static;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation.toggled ul {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background-color: var(--header-bg);
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	padding: 1rem 0;
	gap: 0;
	z-index: 999;
}

.main-navigation.toggled .site-header-links li {
	display: block;
}

.main-navigation.toggled .site-header-links a {
	padding: 0.75rem 1.5rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	transition: background-color 150ms ease, color 150ms ease;
	display: block;
}

.main-navigation.toggled .site-header-links a:hover,
.main-navigation.toggled .site-header-links a:focus {
	background-color: rgba(0, 0, 0, 0.05);
}

/* Mobile menu - show toggle at 600px and below */
@media screen and (max-width: 600px) {
	.menu-toggle {
		display: block;
	}

	.main-navigation {
		position: absolute;
		bottom: -20px;
		left: 0;
		right: 0;
		width: 100%;
		flex-grow: 0;
	}

	.main-navigation ul {
		display: none;
		width: 100%;
	}

	.main-navigation.toggled ul {
		display: flex;
		padding: 0;
	}

	.site-header .container {
		flex-wrap: wrap;
	}
}

/* Desktop menu - show inline at 600px+ */
@media screen and (min-width: 600.01px) {

	.menu-toggle {
		display: none !important;
	}

	.main-navigation {
		position: static;
		width: auto;
	}

	.main-navigation ul {
		display: flex;
		justify-content: flex-end;
		position: static;
		background-color: transparent;
		border: none;
		padding: 0;
		gap: 1.5rem;
	}

	.main-navigation ul li {
		display: block;
	}

	.main-navigation a {
		display: block;
		padding: 0.35em 0.25em;
		border-bottom: none;
	}

	.main-navigation a:hover,
	.main-navigation a:focus {
		background-color: var(--header-fg);
		color: var(--header-bg);
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
	border-top: 1px solid var(--color-ui);
	margin-top: 2rem;
	padding-top: 2rem;

	.container {
		gap: 0.5rem;
	}
}

.header-logo-svg {
	width: 100%;
	max-width: 100px;
	display: block;
	fill: currentColor;
}

.footer-logo-svg {
	width: 100%;
	max-width: 74px;
	display: block;
	fill: currentColor;
}

.footer-menu ul li {
	text-transform: uppercase;
	line-height: 1.2;
    text-align: center;

	a,
	span.cookie_pref {
		text-decoration: none;
		color: var(--color-primary);
		font-family: var(--font-headline);
		font-weight: 300;
		transition: color 0.2s ease;
		cursor: pointer;
	}
	a:hover,
	a:focus,
	span.cookie_pref:hover,
	span.cookie_pref:focus {
		color: var(--color-secondary);
	}
	&.pb_link {
		a {
			color: var(--color-accent);
		}
	}
	&.work-with-us-wrap {
		button {
			line-height: 1.2;;
		}
	}
}

.footer-menu ul,
.footer-social ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: nowrap;
	gap: 1.25rem;
}

.footer-social a {
	color: var(--color-primary);
	transition: color 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus {
	color: var(--color-secondary);
}

.footer-social-icon {
	width: 20px;
	height: 20px;
	fill: currentColor;
	display: block;
}
.copyright {
	text-align: center;
	font-family: var(--font-headline);
}

.work-with-us-wrap {
	position: relative;
}

.work-with-us-toggle {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	text-decoration: none;
	color: var(--color-primary);
	font-family: var(--font-headline);
	font-weight: 300;
	text-transform: uppercase;
	font-size: inherit;
	transition: color 0.2s ease;
}

.work-with-us-toggle:hover,
.work-with-us-toggle:focus {
	color: var(--color-secondary);
}

.work-with-us-tooltip {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 0;
	background-color: var(--color-primary);
	border-radius: 0;
	padding: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 200ms ease, visibility 200ms ease;
	z-index: 100;
	white-space: nowrap;
	display: flex;
}

.work-with-us-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: var(--color-primary);
}

.work-with-us-wrap.is-open .work-with-us-tooltip {
	opacity: 1;
	visibility: visible;
}

.work-with-us-tooltip a {
	color: #fff !important;
	text-decoration: none;
	font-family: var(--font-headline);
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.85rem;
	padding: 0.6rem 1.25rem;
	transition: background-color 150ms ease;
}

.work-with-us-tooltip a:hover,
.work-with-us-tooltip a:focus {
	background-color: rgba(255, 255, 255, 0.15);
	color: #fff;
}

@media (max-width: 900px) {
	#footer .container {
		flex-direction: column;
		align-items: center;
		gap: 1.5rem;
		text-align: center;
	}

	.footer-menu ul {
		flex-direction: column;
		align-items: center;
		gap: 0.75rem;
	}

	.footer-social ul {
		justify-content: center;
	}
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
	padding: 1.5rem 0;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 9999;
	background: transparent;
	opacity: 0;
	transition: opacity 200ms ease, background-color 200ms ease;
}

body.legal-notice-page .site-header {
	opacity: 1;
	background-color: var(--color-white);
	color: var(--color-primary);
	--header-fg: var(--color-primary);
	--header-bg: var(--color-white);
	font-family: var(--font-body);
}

body.error-404-page .site-header {
	opacity: 1;
	background-color: var(--color-white);
	color: var(--color-primary);
	--header-fg: var(--color-primary);
	--header-bg: var(--color-white);
}

body.error-404-page .site-main {
	padding-top: 7rem;
}

body.legal-notice-page .site-main {
	padding-top: 7rem;
}


body.is-scrolled .site-header {
	opacity: 1;
}

.site-header[data-theme="light"] {
	background-color: var(--color-white);
	color: var(--color-primary);
	--header-fg: var(--color-primary);
	--header-bg: var(--color-white);
}

.site-header[data-theme="dark"] {
	background-color: var(--color-primary);
	color: var(--color-white);
	--header-fg: var(--color-white);
	--header-bg: var(--color-primary);
}

.site-header .site-branding a {
	color: var(--header-fg, currentColor);
}

.site-header-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1.5rem;
}

.site-header-links a {
	color: var(--header-fg, currentColor);
	text-decoration: none;
	font-family: var(--font-headline);
	font-weight: var(--font-headline-weight);
	font-size: 1rem;
	text-transform: uppercase;
	padding: 0.35em 0.25em;
	transition: background-color 150ms ease, color 150ms ease;
}

.site-header-links a:hover,
.site-header-links a:focus {
	background-color: var(--header-fg);
	color: var(--header-bg);
	outline: none;
}

.social {
	background-color: var(--color-primary);
	position: relative;
	z-index: 1;
	height: 100vh;
	padding-bottom: 0;
	padding-top:100px;
	overflow: hidden;

	.checkmark_social {
		display: inline-block;
		width: var(--w);
		height: calc(var(--w) * 1.45);
		position: absolute;
	}

	.checkmark_bl {		
		border-bottom: calc(var(--w) * 0.38) solid #fff;
		border-left: calc(var(--w) * 0.38) solid #fff;
		bottom: 10vh;
		left: 5vw;
	}

	.checkmark_tr {
		border-top: calc(var(--w) * 0.38) solid #fff;
		border-right: calc(var(--w) * 0.38) solid #fff;
		/* top: 20vh;
		right: 5vw; */
	}

	h2 {
		position: relative;
		z-index: 2;
		font-family: var(--font-headline);
		font-weight: 700;
		font-size: clamp(2.25rem, 1.2rem + 2.5vw, 3.25rem);
		line-height: 1.1;
		text-align: center;
		text-transform: uppercase;
		text-wrap: balance;
		color: var(--color-secondary);
		margin: 0 auto;
		max-width: 1030px;
        width: 94%;
	}

	h2 .color-light {
		color: #fff;
	}

	h2 .underline {
		display: inline-block;
		position: relative;
		line-height: 0.9;
		--underline-opacity: 0;
	}

	h2 .underline::before {
		content: '';
		position: absolute;
		width: 98%;
		height: 0.4em;
		bottom: 0;
		z-index: -1;
		background-color: rgba(255, 255, 255, var(--underline-opacity));
		left: 1%;
	}

}

@media (max-width: 650px) {
	.social .checkmark_social {
		display: none;
	}
}


.error-404 {
	.page-content {
		padding: 15vh 5%;
		text-align: center;
		display: flex;
		flex-direction: column;
		align-items: center;

		.title_wrap {
			display:flex;
			align-items: center;
			gap: 1rem;
			h1 {
				font-size: clamp(5rem, 0.3333rem + 14.2222vw, 11rem);
				line-height: 0.9;
				font-family: var(--font-headline);
				font-weight: var(--font-headline-weight);
				text-transform: uppercase;
				color: var(--color-primary);
				letter-spacing: -2px;
				margin: 0;
				text-wrap: balance;
			}
			h2 {
				color: var(--color-secondary);
				font-family: var(--font-headline);
				font-weight: var(--font-headline-weight);
				text-wrap: balance;
				font-size: clamp(2rem, -0.2778rem + 7.037vw, 5.5rem);
				line-height: 0.9;
				text-align: left;
				text-transform: uppercase;
				margin: 0;
			}

			@media (max-width: 900px) {
				flex-direction: column;
				gap: 0.5rem;

				h1 {
					font-size: 4rem;
				}
				h2 {
					font-size: 1.75rem;
					text-align: center;
				}
			}
		}

		p {
			font-family: var(--font-body);
			font-weight: var(--font-body-weight);
			font-size: clamp(1rem, 0.5rem + 1.5vw, 1.5rem);
			text-align: center;
		}

		.button {
			display: inline-block;
			background-color: var(--color-primary);
			color: #fff;
			font-family: var(--font-headline);
			font-weight: var(--font-headline-weight);
			text-transform: uppercase;
			text-decoration: none;
			text-align: center;
			border-radius: 0;
			padding: 0.75em 2em;
		}
	}
}

/* Social Embed Styles (LinkedIn & Instagram) */

/* Shared embed container styles */
.social-embeds {
	display: flex;
	gap: 32px;
	justify-content: center;
	align-items: flex-start;
	flex-wrap: wrap;
	margin: 2rem auto;
	position: relative;
	z-index: 2;
}

.social-embed {
	display: block;
	position: relative;
	/* width: min(100%, 400px); */
	aspect-ratio: 454 / 560;
	overflow: hidden;
	text-decoration: none;
	height: 40vh;
}

.social-embed__content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/* Shared overlay styles */
.embed-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(25, 25, 25, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 300ms ease;
	z-index: 10;
	cursor: pointer;
}

.social-embed:hover .embed-overlay,
.social-embed:focus .embed-overlay,
.social-embed:focus-visible .embed-overlay {
	opacity: 1;
}

.social-embed:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 4px;
}

.embed-overlay__text {
	font-family: var(--font-headline);
	color: #fff;
	font-size: 24px;
	font-weight: 600;
	text-transform: uppercase;
	text-align: center;
	line-height: 1;
}

/* LinkedIn Embed */
.linkedin-embed {
}

/* Instagram Feed Embed */
.instagram-feed {
}

.social-embed__icon {
	position: absolute;
	bottom: 20px;
	right: 20px;
	width: 45px;
	height: auto;
	z-index: 5;
	pointer-events: none;
}

.social-embed iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.instagram-feed__link,
.social-embed__image {
	display: block;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #f0f0f0;
	position: relative;
	overflow: hidden;
}

.social-embed__media {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	background-color: #f0f0f0;
}

.instagram-feed__link video,
.social-embed__image video {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	object-fit: cover;
}

@media (max-width: 900px) {
	.social-embeds {
		flex-direction: column;
		align-items: center;
	}
}

/*--------------------------------------------------------------
# Custom Cursor
--------------------------------------------------------------*/
@media (hover: hover) and (pointer: fine) {
	html.custom-cursor-active,
	html.custom-cursor-active * {
		cursor: none !important;
	}
}

#custom-cursor {
	position: fixed;
	top: 0;
	left: 0;
	width: 16px;
	height: 16px;
	pointer-events: none;
	z-index: 999999;
	mix-blend-mode: difference;
	opacity: 0;
	transition: opacity 0.15s ease, width 0.15s ease, height 0.15s ease;
}

#custom-cursor.is-visible {
	opacity: 1;
}

#custom-cursor.is-hovering {
	width: 12px;
	height: 12px;
}

#custom-cursor svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

#custom-cursor svg polyline {
	transition: stroke-width 0.15s ease;
}

#custom-cursor.is-hovering svg polyline {
	stroke-width: 6;
}