/**
 * Global spacing
 */

:root {
	--site-margin: 28px;
	--mobile-site-margin: 20px;

	/* Shared navigation row heights */
	--navigation-height: 28px;
	--mobile-navigation-height: 34px;
}

/**
 * Content
 */

body {
	background-color: #F7F7F7;
	color: #111;
}

a:active {
	opacity: 0.7;
}

.page a.active {
	opacity: 0.4;
}

i,
em {
	font-style: italic;
}

b,
strong {
	font-weight: bolder;
}

sub,
sup {
	position: relative;
	vertical-align: baseline;
}

sub {
	top: 0.3em;
}

sup {
	top: -0.4em;
}

s {
	text-decoration: line-through;
}

img {
	border: 0;
	padding: 0;
}

ul,
ol {
	margin: 0;
	padding: 0 0 0 1em;
}

blockquote {
	margin: 0;
	padding: 0 0 0 2em;
}

hr {
	background: rgba(127, 127, 127, 0.2);
	border: 0;
	height: 1px;
	display: block;
}

.content img {
	float: none;
	margin-bottom: 0.5em;
}

.gallery_image_caption {
	margin-top: 1.2rem;
	margin-bottom: 0.5rem;
	font-size: 1.3rem;
	line-height: 1.3;
	font-family: "Neue Haas Grotesk", Icons;
	font-style: normal;
	font-weight: 400;
	color: rgba(41, 41, 41, 0.3);
}

/**
 * Loading Animation
 */

.loading[data-loading] {
	position: fixed;
	bottom: 8px;
	left: 8px;
}

/**
 * Editor styles
 */

[data-predefined-style="true"] bodycopy {
	font-size: 2rem;
	font-weight: 400;
	color: rgba(0, 0, 0, 0.9);
	font-family: "Neue Haas Grotesk", Icons;
	font-style: normal;
	line-height: 1.3;
	letter-spacing: 0.01em;
}

[data-predefined-style="true"] bodycopy a {
	color: rgba(0, 0, 0, 0.9);
	padding-bottom: 0.1em;
	border-bottom: 1px solid rgba(0, 0, 0, 0.9);
	text-decoration: none;
}

[data-predefined-style="true"] bodycopy a:hover {
}

bodycopy a.image-link,
bodycopy a.icon-link,
bodycopy a.image-link:hover,
bodycopy a.icon-link:hover {
	border-bottom: 0;
	padding-bottom: 0;
}

[data-predefined-style="true"] h1 {
	font-family: "Neue Haas Grotesk", Icons;
	font-style: normal;
	font-weight: 400;
	padding: 0;
	margin: 0;
	font-size: 3.5rem;
	line-height: 1.2;
	color: rgba(0, 0, 0, 0.9);
	letter-spacing: 0.01em;
}

[data-predefined-style="true"] h1 a {
	color: rgba(0, 0, 0, 0.9);
	border-bottom: 1px solid rgb(41, 41, 41);
}

[data-predefined-style="true"] h2 {
	font-family: "Times New Roman", Times, serif, Icons;
	font-style: normal;
	font-weight: 400;
	padding: 0;
	margin: 0;
	color: rgba(0, 0, 0, 0.9);
	font-size: 2.2rem;
	line-height: 1.3;
}

[data-predefined-style="true"] h2 a {
	color: rgba(0, 0, 0, 0.9);
	border-bottom: 1px solid rgb(41, 41, 41);
}

[data-predefined-style="true"] small {
	display: inline-block;
	font-size: 1.4rem;
	line-height: 1.3;
	font-family: "Neue Haas Grotesk", Icons;
	font-style: normal;
	font-weight: 400;
	color: rgba(0, 0, 0, 0.9);
}

[data-predefined-style="true"] small a {
	color: rgba(0, 0, 0, 0.9);
	border-bottom-width: 0;
}

/**
 * Breakpoints
 */

[data-css-preset] .page {
	background-color: initial /*!page_bgcolor*/;
}

.mobile .page,
[data-css-preset].mobile .page {
	position: relative;
	min-height: 10px;
	max-width: 100%;
	width: 100%;
	background-color: transparent /*!page_bgcolor*/;
}

[data-css-preset] .container {
	margin-left: 0 /*!content_left*/;
	margin-right: auto /*!content_left*/;
	text-align: left /*!text_left*/;
}

[data-css-preset] body {
	background-color: #F7F7F7 !important;
}

[data-css-preset] .container_width {
	width: 100% /*!content_left*/;
}

/**
 * Unified desktop page margin
 */

[data-css-preset] .content_padding {
	padding-top: var(--site-margin) /*!main_margin*/;
	padding-bottom: var(--site-margin) /*!main_margin*/;
	padding-left: var(--site-margin) /*!main_margin*/;
	padding-right: var(--site-margin) /*!main_margin*/;
}

/**
 * Unified mobile page margin
 */

body.mobile [data-css-preset] .content_padding,
[data-css-preset].mobile .content_padding {
	padding-top: var(--mobile-site-margin) !important;
	padding-bottom: var(--mobile-site-margin) !important;
	padding-left: var(--mobile-site-margin) !important;
	padding-right: var(--mobile-site-margin) !important;
}

[data-css-preset] text-limit {
	display: inline-block /*!text_width*/;
	max-width: 66rem /*!text_width*/;
}

/**
 * Thumbnails
 */

div[thumbnails] {
	justify-content: flex-start;
}

[data-css-preset] .thumbnails {
	background-color: transparent /*!thumbnails_bgcolor*/;
}

[data-css-preset] .thumbnails_width {
	width: 100% /*!thumbnails_width*/;
}

[data-css-preset] [thumbnails-pad] {
	padding: 0.75rem /*!thumbnails_padding*/;
}

[data-css-preset] [thumbnails-gutter] {
	margin: -1.5rem /*!thumbnails_padding*/;
}

[data-css-preset] [responsive-layout] [thumbnails-pad] {
	padding: 0.6rem /*!responsive_thumbnails_padding*/;
}

[data-css-preset] [responsive-layout] [thumbnails-gutter] {
	margin: -1.2rem /*!responsive_thumbnails_padding*/;
}

.thumbnails .thumb_image {
	outline: 0 solid rgba(0, 0, 0, 0.12);
	outline-offset: -1px;
	position: relative;
}

.thumbnails .title {
	margin-top: 1.2rem;
	margin-bottom: 0.1rem;
	font-size: 2.2rem;
	font-weight: normal;
	color: rgba(0, 0, 0, 0.9);
	font-family: "Neue Haas Grotesk", Icons;
	font-style: normal;
	line-height: 1.3;
}

.thumbnails .tags {
	margin-top: 1.2rem;
	margin-bottom: 0.5rem;
	font-size: 1.3rem;
	line-height: 1.3;
	font-weight: 400;
	color: rgba(0, 0, 0, 0.35);
	font-family: "Neue Haas Grotesk", Icons;
	font-style: normal;
}

.thumbnails .tags a {
	border-bottom: 0;
	color: rgba(0, 0, 0, 0.35);
	text-decoration: none;
}

.thumbnails .has_title .tags {
	margin-top: 1.2rem;
}

/**
 * Thumbnail Hover
 */

.thumbnails .thumbnail > a {
	position: relative;
}

.thumbnails .thumbnail .title {
	background: rgba(0, 0, 0, 0.4);
	padding: 0.5rem 1.2rem 0.7rem;
	margin: 2.4rem;
	color: rgba(255, 255, 255, 1);
	align-content: center;
	display: flex;
	position: absolute;
	left: 0;
	top: 0;
	z-index: 9;
	opacity: 0;
}

.thumbnails .title span {
	margin: auto;
	display: inline-block;
}

.thumbnails .thumbnail:hover .title {
	opacity: 1;
}

body.mobile .thumbnails .thumbnail:hover .title {
	opacity: 0;
}

/**
 * Site Menu Button
 *
 * Uses the same fixed-height row as the navigation text so
 * Kyle B. Macy, Information, and the menu icon align vertically.
 */

[data-css-preset] #site_menu_button {
	position: fixed !important;
	top: var(--site-margin) !important;
	right: var(--site-margin) !important;

	display: flex !important;
	align-items: center !important;
	justify-content: center !important;

	height: var(--navigation-height) !important;
	margin: 0 !important;
	padding: 0 6px !important;
	box-sizing: content-box !important;

	background: transparent !important;
	color: rgba(0, 0, 0, 0.9);
	font-size: 28px /*!site_menu_button*/;
	line-height: 1 !important;
	z-index: 120 !important;
}

body.mobile #site_menu_button {
	top: var(--mobile-site-margin) !important;
	right: var(--mobile-site-margin) !important;
	height: var(--mobile-navigation-height) !important;
	font-size: 34px !important;
}

#site_menu_button.custom_icon {
	width: 40px;
	height: auto;
}

#site_menu_button.active {
	display: none;
}

/**
 * Site Menu
 */

#site_menu {
	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		Oxygen,
		Ubuntu,
		Cantarell,
		"Open Sans",
		"Helvetica Neue",
		sans-serif,
		"Sans Serif",
		Icons;
	background: rgba(20, 20, 20, 0.95);
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	padding: 20px 30px 90px;
	max-width: 400px;
	min-width: 300px;
	text-align: left;
	display: flex;
	justify-content: flex-start;
}

body.mobile #site_menu {
	width: 100%;
}

#site_menu .page-link a {
	color: rgba(255, 255, 255, 0.75);
}

#site_menu .set-link > a {
	color: rgba(255, 255, 255, 0.75);
	font-weight: bold;
}

#site_menu a:active {
	opacity: 0.7;
}

#site_menu a.active {
	opacity: 0.4;
}

#site_menu .close {
	display: none;
	color: rgba(255, 255, 255, 0.4);
	line-height: 0.85em;
	font-size: 45px;
}

body.mobile #site_menu .close {
	display: block;
	font-size: 50px;
	line-height: 1em;
}

#site_menu .break {
	height: 28px;
}

#site_menu .indent {
	margin-left: 28px;
}

/**
 * Homepage fixed labels
 *
 * Always fixed to the viewport. Browser resizing must never
 * determine whether these elements are visible.
 */

.homepage-fixed-label {
	position: fixed !important;
	display: block !important;
	z-index: 20 !important;

	margin: 0 !important;
	padding: 0 !important;

	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	text-transform: uppercase !important;
	white-space: nowrap !important;

	opacity: 1;
	visibility: visible;
	pointer-events: none !important;
}

.homepage-role {
	top: 50% !important;
	left: 50% !important;
	right: auto !important;
	bottom: auto !important;

	transform: translate(-50%, -50%) !important;
	text-align: center !important;
}

.homepage-work-label {
	top: auto !important;
	right: auto !important;
	bottom: var(--site-margin) !important;
	left: var(--site-margin) !important;

	transform: none !important;
	text-align: left !important;
}

/**
 * Optional navigation classes
 *
 * These can be applied to custom fixed navigation elements.
 */

.site-title,
.homepage-site-title {
	position: fixed;
	top: var(--site-margin);
	left: var(--site-margin);
	z-index: 20;
}

.site-center-nav,
.homepage-center-nav {
	position: fixed;
	top: var(--site-margin);
	left: 50%;
	transform: translateX(-50%);
	z-index: 20;
}

/**
 * Mobile fixed-label spacing
 */

@media (max-width: 767px) {
	.homepage-fixed-label {
		font-size: 12px !important;
	}

	.homepage-work-label {
		left: var(--mobile-site-margin) !important;
		bottom: var(--mobile-site-margin) !important;
	}

	.site-title,
	.homepage-site-title {
		top: var(--mobile-site-margin);
		left: var(--mobile-site-margin);
	}

	.site-center-nav,
	.homepage-center-nav {
		top: var(--mobile-site-margin);
	}
}

/**
 * Shop Button
 */

[data-css-preset] #shop_button {
	color: rgba(0, 0, 0, 0.85);
	background: transparent;
	font-size: 40px;
	font-style: normal;
	font-weight: 400;
	line-height: 1;
	position: fixed;
	padding: 6px;
	top: var(--site-margin) /*!shop_button*/;
	right: var(--site-margin) /*!shop_button*/;
}

#shop_button.text {
	font-family: "Neue Haas Grotesk", Icons;
	font-size: 2.2rem;
	padding: 0;
	line-height: 1.2;
	font-style: normal;
	font-weight: 400;
}

#shop_button.custom_icon {
	width: 40px;
	height: auto;
}

body.mobile #shop_button:not(.text) {
	margin: -6px;
	font-size: 46px;
	top: var(--mobile-site-margin) !important;
	right: var(--mobile-site-margin) !important;
}

/**
 * Shop Product Widget
 */

.shop_product {
	width: 100%;
	max-width: 22rem;
	position: relative;
	display: block;
}

.shop_product .price {
	font-family: "Neue Haas Grotesk", Icons;
	font-style: normal;
	font-weight: 400;
	font-size: 2.2rem;
	line-height: 1;
	color: rgba(0, 0, 0, 0.9);
	display: block;
	margin-bottom: 1rem;
}

.shop_product .dropdown {
	font-family: "Neue Haas Grotesk", Icons;
	color: rgba(0, 0, 0, 0.9);
	font-size: 1.4rem;
	display: inline-block;
	width: 100%;
	border: 1px solid rgba(0, 0, 0, 0.2);
	background:
		white
		url(https://static.cargo.site/assets/images/select-arrows.svg)
		no-repeat right;
	margin-bottom: 1rem;
	line-height: 1.2;
	padding: 0.7rem 1rem;
}

.shop_product .button {
	font-family: "Neue Haas Grotesk", Icons;
	font-size: 1.4rem;
	background: rgba(0, 0, 0, 0.8);
	color: rgba(255, 255, 255, 1);
	flex: 0 0 50%;
	text-align: left;
	display: inline-block;
	line-height: 1;
	padding: 0.8rem 1rem 0.9rem;
}

/**
 * Image Zoom
 */

.content img.image-zoom:active {
	opacity: 0.7;
}

/**
 * Quick View
 */

[data-css-preset] .quick-view {
	padding-top: 2.5rem /*!quick_view_padding*/;
	padding-bottom: 2.5rem /*!quick_view_padding*/;
	padding-left: 2.5rem /*!quick_view_padding*/;
	padding-right: 2.5rem /*!quick_view_padding*/;
	height: 100% /*!quick_view_height*/;
	width: 100% /*!quick_view_width*/;
}

body.mobile .quick-view {
	width: 100%;
	height: 100%;
	margin: 0;
}

[data-css-preset] .quick-view-background {
	background: rgba(0, 0, 0, 0.9) /*!quick_view_bgcolor*/;
}

.quick-view-caption {
	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		Oxygen,
		Ubuntu,
		Cantarell,
		"Open Sans",
		"Helvetica Neue",
		sans-serif;
	transition: 100ms opacity ease-in-out;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	margin: 2rem 0;
	text-align: center;
	font-size: 1.8rem;
}

.quick-view-caption span {
	padding: 0.5rem 1rem;
	display: inline-block;
	background: rgba(0, 0, 0, 0.4);
	color: white;
}

/**
 * Quick View Navigation
 */

.quick-view-navigation .left-arrow {
	left: 10px;
}

.quick-view-navigation .right-arrow {
	right: 10px;
}

.quick-view-navigation .left-arrow,
.quick-view-navigation .right-arrow {
	height: 36px;
	width: 36px;
}

.quick-view-navigation .left-arrow .inner-color,
.quick-view-navigation .right-arrow .inner-color {
	stroke: #fff;
	stroke-width: 1.5px;
}

.quick-view-navigation .left-arrow .outer-color,
.quick-view-navigation .right-arrow .outer-color {
	stroke: #000;
	stroke-width: 2.5px;
	opacity: 0.6;
}

.quick-view-navigation .close-button {
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
}

.quick-view-navigation .close-button .inner-color {
	stroke: #fff;
	stroke-width: 1.5px;
}

.quick-view-navigation .close-button .outer-color {
	stroke: #000;
	stroke-width: 2.5px;
	opacity: 0.6;
}

/**
 * Image Gallery Navigation Arrows
 */

.image-gallery-navigation .left-arrow,
.image-gallery-navigation .right-arrow {
	height: 36px;
	width: 36px;
}

.image-gallery-navigation .left-arrow .inner-color,
.image-gallery-navigation .right-arrow .inner-color {
	stroke: #fff;
	stroke-width: 1.5px;
}

.image-gallery-navigation .left-arrow .outer-color,
.image-gallery-navigation .right-arrow .outer-color {
	stroke: #000;
	stroke-width: 2.5px;
	opacity: 0.6;
}

/**
 * Wallpaper Backdrop Navigation Arrows
 */

.wallpaper-navigation .left-arrow,
.wallpaper-navigation .right-arrow {
	width: 36px;
	height: 36px;
}

.wallpaper-navigation .left-arrow .inner-color,
.wallpaper-navigation .right-arrow .inner-color {
	stroke: #fff;
	stroke-width: 1.5px;
}

.wallpaper-navigation .left-arrow .outer-color,
.wallpaper-navigation .right-arrow .outer-color {
	stroke: #000;
	stroke-width: 2.5px;
	opacity: 0.6;
}

/**
 * Feed
 */

.feed .content_container .page {
	border-top: 0 dashed rgba(0, 0, 0, 0.2);
}

.feed .content_container .page_container:first-child .page {
	border-top: 0;
}

/**
 * Audio Player
 */

.audio-player {
	max-width: 36rem;
	height: 3.3rem;
	outline: 1px solid rgba(0, 0, 0, 0.15);
	color: rgba(0, 0, 0, 0.6);
	background: #fff;
	font-size: 1.2rem;
	line-height: 1.3;
	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		Oxygen,
		Ubuntu,
		Cantarell,
		"Open Sans",
		"Helvetica Neue",
		sans-serif,
		"Sans Serif",
		Icons;
	font-style: normal;
	font-weight: 400;
	text-align: left;
	margin: 1px 1px 1em;
}

body.mobile .audio-player {
	max-width: 100%;
}

.audio-player .separator {
	width: 1px;
	background-color: rgba(0, 0, 0, 0.15);
}

.audio-player .button {
	background: transparent;
	cursor: pointer;
	fill: rgba(0, 0, 0, 0.85);
}

.audio-player .icon {
	fill: rgba(0, 0, 0, 0.85);
	padding: 30%;
	width: 100%;
	margin: auto;
}

.audio-player .buffer {
	background: rgba(0, 0, 0, 0.03);
}

.audio-player .progress {
	background: rgba(0, 0, 0, 0.1);
}

.audio-player .progress-indicator {
	border: 1px solid rgba(0, 0, 0, 0.7);
	width: 1px;
	height: 100%;
	right: 0;
	position: absolute;
	cursor: ew-resize;
}

.audio-player .note-icon {
	height: 100%;
	width: 3.8rem;
	padding: 1rem;
	fill: rgba(0, 0, 0, 0.5);
}

.audio-player .current-time {
	padding-left: 1rem;
}

.audio-player .total-time {
	padding-right: 1rem;
}

/**
 * Global Background
 */

html,
body,
.page,
.page_container,
.content,
.site,
.site-wrap {
	background: #F7F7F7 !important;
}

/**
 * ============================================================
 * HOMEPAGE NAVIGATION + RESPONSIVE BEHAVIOR
 * ============================================================
 *
 * Cargo places Kyle B. Macy + Information inside its pinned-top
 * container. At narrow widths Cargo can collapse/hide that parent,
 * which makes the links disappear even if the links themselves are
 * position: fixed.
 *
 * This section keeps the actual pinned container + its inner wrappers
 * alive at every viewport size.
 */


/* ------------------------------------------------------------
 * KEEP CARGO'S PINNED TOP CONTAINER RENDERED
 * ------------------------------------------------------------ */

[data-view="pinned_top"],
[data-position="top"].pinned,
.pinned.pinned_top {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;

	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: auto !important;

	width: 100% !important;
	height: calc(
		var(--site-margin) +
		var(--navigation-height) +
		var(--site-margin)
	) !important;
	min-height: calc(
		var(--site-margin) +
		var(--navigation-height) +
		var(--site-margin)
	) !important;

	margin: 0 !important;
	padding: 0 !important;

	overflow: visible !important;
	background: #F7F7F7 !important;

	z-index: 100 !important;
	pointer-events: none !important;
}


/*
 * Cargo can also hide/collapse wrappers INSIDE pinned_top.
 * Keep only those pinned-top wrappers alive.
 */

[data-view="pinned_top"] .content_container,
[data-view="pinned_top"] .page_container,
[data-view="pinned_top"] .page,
[data-view="pinned_top"] .page_content,
[data-view="pinned_top"] .content,
[data-view="pinned_top"] .content_padding,
.pinned.pinned_top .content_container,
.pinned.pinned_top .page_container,
.pinned.pinned_top .page,
.pinned.pinned_top .page_content,
.pinned.pinned_top .content,
.pinned.pinned_top .content_padding {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;

	width: 100% !important;
	max-width: none !important;

	height: auto !important;
	min-height: 0 !important;

	margin: 0 !important;
	overflow: visible !important;

	pointer-events: none !important;
}


/* ------------------------------------------------------------
 * KYLE B. MACY
 * ------------------------------------------------------------ */

a[href="Homepage"],
a[href="/Homepage"],
a[href$="/Homepage"] {
	position: fixed !important;

	top: var(--site-margin) !important;
	left: var(--site-margin) !important;
	right: auto !important;
	bottom: auto !important;

	display: flex !important;
	align-items: center !important;

	width: auto !important;
	height: var(--navigation-height) !important;
	min-height: var(--navigation-height) !important;

	margin: 0 !important;
	padding: 0 !important;

	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1 !important;

	text-transform: uppercase !important;
	text-decoration: none !important;
	white-space: nowrap !important;

	visibility: visible !important;
	opacity: 1 !important;

	transform: none !important;

	z-index: 110 !important;
	pointer-events: auto !important;
}


/* ------------------------------------------------------------
 * INFORMATION
 *
 * Left edge remains at 50% so it aligns with the Information-page
 * bio / Services / Clients column.
 * ------------------------------------------------------------ */

a[href="Information"],
a[href="/Information"],
a[href$="/Information"] {
	position: fixed !important;

	top: var(--site-margin) !important;
	left: 50% !important;
	right: auto !important;
	bottom: auto !important;

	display: flex !important;
	align-items: center !important;

	width: auto !important;
	height: var(--navigation-height) !important;
	min-height: var(--navigation-height) !important;

	margin: 0 !important;
	padding: 0 !important;

	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1 !important;

	text-align: left !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	white-space: nowrap !important;

	visibility: visible !important;
	opacity: 1 !important;

	transform: none !important;

	z-index: 110 !important;
	pointer-events: auto !important;
}


/* ------------------------------------------------------------
 * MENU ICON
 * ------------------------------------------------------------ */

[data-css-preset] #site_menu_button,
#site_menu_button {
	position: fixed !important;

	top: var(--site-margin) !important;
	right: var(--site-margin) !important;
	left: auto !important;

	display: flex !important;
	align-items: center !important;
	justify-content: center !important;

	height: var(--navigation-height) !important;

	visibility: visible !important;
	opacity: 1 !important;

	z-index: 120 !important;
	pointer-events: auto !important;
}


/* ------------------------------------------------------------
 * HERO LABEL VISIBILITY
 *
 * Keep resizing from changing visibility.
 * Scroll-driven animation below is the only fade mechanism.
 * ------------------------------------------------------------ */

.homepage-fixed-label.is-hidden,
.homepage-role.is-hidden,
.homepage-work-label.is-hidden,
.homepage-fixed-label.is-scrolled-away,
.homepage-role.is-scrolled-away,
.homepage-work-label.is-scrolled-away {
	display: block !important;
	visibility: visible !important;
}


/* ------------------------------------------------------------
 * SCROLL FADE
 *
 * Visible at page load/top.
 * Fades over the first 72px of real document scrolling.
 * Browser width has no effect.
 * ------------------------------------------------------------ */

@keyframes homepage-label-scroll-fade {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

.homepage-role,
.homepage-work-label {
	animation-name: homepage-label-scroll-fade;
	animation-duration: 1ms;
	animation-timing-function: linear;
	animation-fill-mode: both;
	animation-timeline: scroll(root block);
	animation-range: 0 72px;
}


/* ------------------------------------------------------------
 * MOBILE + NARROW RESPONSIVE LAYOUT
 * ------------------------------------------------------------ */

@media (max-width: 767px) {

	/*
	 * Make the pinned navigation panel tall enough for the mobile
	 * navigation row and extend its background ABOVE the viewport.
	 *
	 * The negative top + extra height prevents iOS Safari's moving
	 * viewport/safe-area behavior from revealing a project image
	 * above the navigation while scrolling.
	 */

	[data-view="pinned_top"],
	[data-position="top"].pinned,
	.pinned.pinned_top {
		top: -160px !important;

		height: calc(
			160px +
			var(--mobile-site-margin) +
			var(--mobile-navigation-height) +
			var(--mobile-site-margin)
		) !important;

		min-height: calc(
			160px +
			var(--mobile-site-margin) +
			var(--mobile-navigation-height) +
			var(--mobile-site-margin)
		) !important;

		background: #F7F7F7 !important;
		z-index: 100 !important;
	}


	/* Kyle B. Macy */

	a[href="Homepage"],
	a[href="/Homepage"],
	a[href$="/Homepage"] {
		top: var(--mobile-site-margin) !important;
		left: var(--mobile-site-margin) !important;

		height: var(--mobile-navigation-height) !important;
		min-height: var(--mobile-navigation-height) !important;

		font-size: 12px !important;

		visibility: visible !important;
		opacity: 1 !important;

		z-index: 110 !important;
	}


	/* Information */

	a[href="Information"],
	a[href="/Information"],
	a[href$="/Information"] {
		top: var(--mobile-site-margin) !important;
		left: 50% !important;

		height: var(--mobile-navigation-height) !important;
		min-height: var(--mobile-navigation-height) !important;

		font-size: 12px !important;

		visibility: visible !important;
		opacity: 1 !important;

		z-index: 110 !important;
	}


	/* Menu */

	[data-css-preset] #site_menu_button,
	#site_menu_button {
		top: var(--mobile-site-margin) !important;
		right: var(--mobile-site-margin) !important;

		height: var(--mobile-navigation-height) !important;

		visibility: visible !important;
		opacity: 1 !important;

		z-index: 120 !important;
	}


	/* Homepage hero labels */

	.homepage-fixed-label {
		font-size: 12px !important;
	}

	.homepage-work-label {
		left: var(--mobile-site-margin) !important;
		bottom: var(--mobile-site-margin) !important;
	}
}


/* ------------------------------------------------------------
 * CARGO MOBILE-CLASS BACKUP
 * ------------------------------------------------------------ */

body.mobile [data-view="pinned_top"],
body.mobile [data-position="top"].pinned,
body.mobile .pinned.pinned_top {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;

	position: fixed !important;

	top: -160px !important;
	left: 0 !important;
	right: 0 !important;

	width: 100% !important;

	height: calc(
		160px +
		var(--mobile-site-margin) +
		var(--mobile-navigation-height) +
		var(--mobile-site-margin)
	) !important;

	min-height: calc(
		160px +
		var(--mobile-site-margin) +
		var(--mobile-navigation-height) +
		var(--mobile-site-margin)
	) !important;

	background: #F7F7F7 !important;

	overflow: visible !important;

	z-index: 100 !important;
	pointer-events: none !important;
}


/* ------------------------------------------------------------
 * FALLBACK FOR OLDER BROWSERS
 * ------------------------------------------------------------ */

@supports not (animation-timeline: scroll()) {
	.homepage-role,
	.homepage-work-label {
		opacity: 1 !important;
	}
}

/**
 * ============================================================
 * OPEN SITE MENU — UPPER RIGHT
 * ============================================================
 *
 * Keep Cargo's opened menu above the fixed navigation panel
 * and anchor it to the upper-right corner.
 *
 * This does not change any homepage/navigation positioning.
 */

#site_menu {
	position: fixed !important;

	top: calc(
		var(--site-margin) +
		var(--navigation-height) +
		var(--site-margin)
	) !important;

	right: 0 !important;
	left: auto !important;
	bottom: auto !important;

	z-index: 1000 !important;

	max-height: calc(
		100vh -
		var(--site-margin) -
		var(--navigation-height) -
		var(--site-margin)
	) !important;

	overflow-y: auto !important;
}


/* Mobile: keep Cargo's existing full-width menu behavior,
   but place it below the fixed navigation panel and above content. */

@media (max-width: 767px) {
	#site_menu {
		top: calc(
			var(--mobile-site-margin) +
			var(--mobile-navigation-height) +
			var(--mobile-site-margin)
		) !important;

		right: 0 !important;
		left: auto !important;

		width: 100% !important;
		max-width: none !important;

		max-height: calc(
			100vh -
			var(--mobile-site-margin) -
			var(--mobile-navigation-height) -
			var(--mobile-site-margin)
		) !important;

		z-index: 1000 !important;
	}
}

body.mobile #site_menu {
	top: calc(
		var(--mobile-site-margin) +
		var(--mobile-navigation-height) +
		var(--mobile-site-margin)
	) !important;

	right: 0 !important;
	left: auto !important;

	width: 100% !important;
	max-width: none !important;

	z-index: 1000 !important;
}
/* ============================================================
   MENU PANEL — GLASS EFFECT
   ============================================================ */

#site_menu {
	/* translucent light panel */
	background: rgba(247, 247, 247, 0.82) !important;

	/* frosted glass */
	-webkit-backdrop-filter: blur(20px) saturate(140%);
	backdrop-filter: blur(20px) saturate(140%);

	/* optional subtle edge */
	border-left: 1px solid rgba(0, 0, 0, 0.08);

	color: #000 !important;
}


/* Menu links */

#site_menu a,
#site_menu a:visited,
#site_menu .page_link,
#site_menu .link {
	color: #000 !important;
	text-decoration: none !important;
}


/* Hover */

#site_menu a:hover {
	color: #000 !important;
	opacity: 0.5;
}


/* Mobile */

@media (max-width: 767px) {
	#site_menu {
		background: rgba(247, 247, 247, 0.88) !important;

		-webkit-backdrop-filter: blur(20px) saturate(140%);
		backdrop-filter: blur(20px) saturate(140%);

		border-left: 0;
		border-top: 1px solid rgba(0, 0, 0, 0.08);
	}
}

/* ============================================================
   REFINED GLASS MENU + CONSISTENT MENU TYPOGRAPHY
   ============================================================ */

/*
 * Slightly more translucent + more blur than the current panel.
 * Positioning and responsive behavior are unchanged.
 */

#site_menu {
	background: rgba(247, 247, 247, 0.72) !important;

	-webkit-backdrop-filter: blur(28px) saturate(150%) !important;
	backdrop-filter: blur(28px) saturate(150%) !important;

	border-left: 1px solid rgba(0, 0, 0, 0.07) !important;

	color: #000 !important;
}


/*
 * All menu links use the same visual treatment.
 */

#site_menu a,
#site_menu a:visited,
#site_menu .page-link a,
#site_menu .set-link > a {
	color: #000 !important;
	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		Oxygen,
		Ubuntu,
		Cantarell,
		"Open Sans",
		"Helvetica Neue",
		sans-serif,
		"Sans Serif",
		Icons !important;

	font-size: 20px !important;
	font-style: normal !important;
	font-weight: 400 !important;
	line-height: normal !important;

	text-align: left !important;
	text-transform: none !important;
	text-decoration: none !important;
	white-space: normal !important;
}


/*
 * IMPORTANT:
 * The global top-navigation selector also matches the Information
 * link inside the menu. Reset that menu-specific link so it behaves
 * exactly like every other project/menu item.
 */

#site_menu a[href="Information"],
#site_menu a[href="/Information"],
#site_menu a[href$="/Information"] {
	position: static !important;

	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;

	display: block !important;
	align-items: initial !important;

	width: auto !important;
	height: auto !important;
	min-height: 0 !important;

	margin: 0 !important;
	padding: 0 !important;

	font-size: 20px !important;
	font-weight: 400 !important;
	line-height: normal !important;

	text-align: left !important;
	text-transform: none !important;
	white-space: normal !important;

	transform: none !important;

	visibility: visible !important;
	opacity: 1 !important;

	z-index: auto !important;
	pointer-events: auto !important;
}


/* Keep active menu items visually consistent */

#site_menu a.active {
	opacity: 0.4 !important;
}


/* Hover */

#site_menu a:hover {
	color: #000 !important;
	opacity: 0.5;
}


/* Mobile glass treatment */

@media (max-width: 767px) {
	#site_menu {
		background: rgba(247, 247, 247, 0.76) !important;

		-webkit-backdrop-filter: blur(28px) saturate(150%) !important;
		backdrop-filter: blur(28px) saturate(150%) !important;

		border-left: 0 !important;
		border-top: 1px solid rgba(0, 0, 0, 0.07) !important;
	}
}

body.mobile #site_menu {
	background: rgba(247, 247, 247, 0.76) !important;

	-webkit-backdrop-filter: blur(28px) saturate(150%) !important;
	backdrop-filter: blur(28px) saturate(150%) !important;

	border-left: 0 !important;
	border-top: 1px solid rgba(0, 0, 0, 0.07) !important;
}

/* ============================================================
   OPEN MENU — RESTORE CLOSE "X"
   ============================================================
 *
 * Cargo already includes a .close control inside #site_menu.
 * Earlier CSS hides it on desktop. This restores that existing
 * close control and places it in the upper-right of the glass panel.
 * No homepage, navigation, menu-position, or responsive behavior
 * is changed.
 */

#site_menu .close {
	display: flex !important;
	position: absolute !important;

	top: 18px !important;
	right: 22px !important;
	left: auto !important;
	bottom: auto !important;

	align-items: center !important;
	justify-content: center !important;

	width: 32px !important;
	height: 32px !important;
	margin: 0 !important;
	padding: 0 !important;

	color: #000 !important;
	font-size: 38px !important;
	font-weight: 300 !important;
	line-height: 1 !important;

	opacity: 1 !important;
	visibility: visible !important;
	cursor: pointer !important;
	z-index: 1010 !important;
}


/* Mobile */

@media (max-width: 767px) {
	#site_menu .close {
		display: flex !important;

		top: 14px !important;
		right: 16px !important;

		width: 36px !important;
		height: 36px !important;

		font-size: 40px !important;
		line-height: 1 !important;
	}
}

body.mobile #site_menu .close {
	display: flex !important;

	top: 14px !important;
	right: 16px !important;

	width: 36px !important;
	height: 36px !important;

	color: #000 !important;
	font-size: 40px !important;
	line-height: 1 !important;

	opacity: 1 !important;
	visibility: visible !important;
	z-index: 1010 !important;
}

/* ============================================================
   MOBILE CASE-STUDY HERO OFFSET
   ============================================================
 *
 * The fixed mobile navigation sits above page content.
 * On non-homepage pages, offset the main page content by the
 * exact visible navigation-panel height so the first hero asset
 * never starts underneath the nav.
 *
 * Homepage is intentionally excluded.
 */

@media (max-width: 767px) {

	body:not(.homepage) .page_content,
	body:not(.homepage) .content_container > .page_container:first-child {
		padding-top: calc(
			var(--mobile-site-margin) +
			var(--mobile-navigation-height) +
			var(--mobile-site-margin)
		) !important;
		box-sizing: border-box !important;
	}
}


/* Cargo mobile-class fallback */

body.mobile:not(.homepage) .page_content,
body.mobile:not(.homepage) .content_container > .page_container:first-child {
	padding-top: calc(
		var(--mobile-site-margin) +
		var(--mobile-navigation-height) +
		var(--mobile-site-margin)
	) !important;
	box-sizing: border-box !important;
}
