/*
 * FUSS v2: light home page and new menu.
 * Measurements come from the Figma frames (home 1770x950, menu 1770x1587).
 * Faktum metrics: ascent .95em, descent .25em, cap height .70em, so a line box of
 * height L puts the cap top (L - 1.2em) / 2 + .25em below its top.
 */

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

html.is-v2,
html.is-v2 body.fuss-v2 {
	background-color: #fff;
}

body.fuss-v2 {
	color: #121117;
}

body.fuss-v2,
.fussMenu {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ---------- Left panel ---------- */

.fuss-v2 #header.v2Nav {
	position: fixed;
	top: 6px;
	bottom: 7px;
	left: 7px;
	width: 440px;
	max-width: none;
	height: auto;
	padding: 0;
	box-sizing: border-box;
	background: #fafbf7;
	border: 1px solid #e7e9e0;
	border-radius: 18px;
	overflow: hidden;
	z-index: 20;
}

.v2NavInner {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: none;
}

.v2NavInner::-webkit-scrollbar {
	display: none;
}

.v2NavTop {
	position: sticky;
	top: 0;
	height: 58px;
	background: #fafbf7;
	z-index: 2;
}

.v2Logo {
	position: absolute;
	top: 19px;
	left: 22px;
	display: block;
	line-height: 0;
}

.v2Logo img {
	display: block;
}

.v2MenuBtn {
	position: absolute;
	top: 19px;
	right: 17px;
	width: 19px;
	height: 12.25px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.v2MenuBtn::before {
	content: '';
	position: absolute;
	inset: -12px;
}

.v2MenuBtn span {
	position: absolute;
	left: 0;
	width: 19px;
	height: 2.625px;
	border-radius: 2px;
	background: #b49c3a;
	transition: background-color .3s;
}

.v2MenuBtn span:nth-child(1) { top: 0; }
.v2MenuBtn span:nth-child(2) { top: 4.62px; height: 3px; }
.v2MenuBtn span:nth-child(3) { top: 9.62px; }

.v2MenuBtn:hover span,
.v2MenuBtn:focus-visible span {
	background: #121117;
}

.v2Intro {
	width: 207px;
	margin: 53.3px auto 0;
	text-align: center;
	color: #121117;
}

.v2Intro p {
	margin: 0;
	padding: 0;
	font-family: "Faktum";
	font-size: 15px;
	font-weight: 400;
	line-height: 19.5px;
	letter-spacing: -0.15px;
	text-rendering: geometricPrecision;
}

.v2Intro a {
	display: inline-block;
	margin-top: 4.03px;
	color: #121117;
	font-size: 12.5px;
	line-height: 16.25px;
	letter-spacing: -0.125px;
	text-decoration: underline;
	text-decoration-thickness: from-font;
	text-underline-position: from-font;
}

.v2Intro a:hover {
	color: #b49c3a;
}

.v2Projects {
	margin: 67.42px 0 0 7px;
	padding-bottom: 7px;
}

.v2Item {
	display: block;
	padding: 5px 0 4px;
	border-top: 1px solid #e7e9e0;
	color: #121117;
	text-decoration: none;
}

.fuss-v2 .v2Row {
	display: flex;
	align-items: center;
	gap: 15px;
	width: 424px;
	height: 106px;
	margin: 0;
	border-radius: 5px;
	transition: background-color .3s, color .3s;
}

.v2Thumb {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 106px;
	height: 106px;
	border-radius: 5px;
	overflow: hidden;
}

.v2Thumb svg {
	display: block;
	flex: none;
	width: var(--logo-w, 68px);
	max-width: none;
	height: auto;
}

.v2Text {
	flex: none;
	width: 250px;
	position: relative;
	top: 0.335px;
}

.v2Title {
	margin: 0 0 3.73px;
	font-family: "Faktum";
	font-size: 18px;
	font-weight: 400;
	line-height: 20.7px;
	letter-spacing: -0.18px;
	text-transform: capitalize;
	color: #121117;
}

.v2Blurb {
	margin: 0;
	padding: 0;
	font-family: "Faktum";
	font-size: 13px;
	font-weight: 400;
	line-height: 16px;
	letter-spacing: -0.13px;
	color: #373542;
	text-rendering: geometricPrecision;
}

.v2Loc {
	position: relative;
	top: 0.5px;
	font-size: 10px;
	line-height: 12px;
	letter-spacing: -0.1px;
	white-space: nowrap;
	color: #b49c3a;
}

.fuss-v2 .v2Row:hover {
	background-color: var(--hover-bg);
}

.fuss-v2 .v2Row:hover .v2Title,
.fuss-v2 .v2Row:hover .v2Blurb,
.fuss-v2 .v2Row:hover .v2Loc {
	color: var(--hover-color);
}

.v2Item:focus-visible {
	outline: none;
}

.v2Item:focus-visible .v2Row {
	box-shadow: 0 0 0 2px #b49c3a;
}

/* ---------- Right panel ---------- */

.fuss-v2 #container {
	max-width: none;
	width: auto;
	min-height: calc(100vh - 13px);
	margin: 6px 8px 7px 454px;
	box-sizing: border-box;
	background: var(--cs-page, #fafbf7);
	border: 1px solid #e7e9e0;
	border-radius: 18px;
	overflow: clip;
}

/* Pages not redesigned yet (Info) keep their dark content inside the panel. */
body.fuss-v2-dark {
	--cs-page: #121117;
}

.fuss-v2-dark #container {
	border-color: #121117;
	color: #e7e9e0;
}

.fuss-v2.home #container {
	height: calc(100vh - 13px);
}

.fuss-v2.home #container::before {
	display: none;
}

.fuss-v2.home #content {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
}

.v2Tagline {
	margin: 0;
	font-family: "Faktum";
	font-size: 59.256px;
	font-weight: 400;
	line-height: 58.52px;
	letter-spacing: -1.1851px;
	text-align: center;
	color: #121117;
	transform: translate(-0.9px, 6.9px);
}

/* Hover preview fills the visible part of the right panel. */
.fuss-v2 #landingRoller {
	position: fixed;
	top: 6px;
	right: 8px;
	bottom: 7px;
	left: 454px;
	width: auto;
	height: auto;
	margin: 0;
	border-radius: 18px;
	z-index: 30;
}

/* ---------- Menu ---------- */

.fussMenu {
	position: fixed;
	inset: 0;
	z-index: 1000;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #121117;
	color: #fafbf7;
	opacity: 0;
	transition: opacity .25s ease;
}

.fussMenu[hidden] {
	display: none;
}

.fussMenu.is-open {
	opacity: 1;
}

html.fuss-menu-open,
html.fuss-menu-open body {
	overflow: hidden;
}

.fmTop {
	position: relative;
	height: 943px;
}

.fmLogo {
	position: absolute;
	top: 15px;
	left: 15px;
	display: block;
	line-height: 0;
	z-index: 2;
}

.fmLogo img {
	display: block;
}

.fmCol {
	position: absolute;
	top: 0;
	left: 25px;
	width: calc(50% - 46px);
	height: 100%;
}

.fmBack {
	position: absolute;
	top: 138px;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 155px;
	height: 23px;
	padding: 0 12px;
	box-sizing: border-box;
	border: 1px solid #fafbf7;
	border-radius: 186px;
	color: #fafbf7;
	font-size: 13px;
	line-height: 16.9px;
	letter-spacing: -0.13px;
	text-decoration: none;
	transform: translateX(-50%);
	transition: background-color .2s, color .2s;
}

.fmBack img {
	display: block;
	position: relative;
	top: -1.59px;
	margin-right: -0.5px;
	transition: filter .2s;
}

.fmBack:hover,
.fmBack:focus-visible {
	background: #fafbf7;
	color: #121117;
	outline: none;
}

.fmBack:hover img,
.fmBack:focus-visible img {
	filter: invert(1);
}

.fmNav {
	position: absolute;
	top: 198px;
	left: 0;
	right: 0;
}

.fmNav ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid #fafbf7;
}

.fmItem {
	position: relative;
	height: 139px;
	box-sizing: border-box;
	border-top: 1px solid #fafbf7;
}

.fmItem::before {
	content: '';
	position: absolute;
	top: 6px;
	right: 0;
	bottom: 5px;
	left: 0;
	box-sizing: border-box;
	background: #fafbf7;
	border: 1px solid #e7e9e0;
	border-radius: 18px;
	opacity: 0;
	transition: opacity .2s ease;
}

.fmItem a {
	position: relative;
	z-index: 1;
	display: block;
	height: 100%;
	padding-top: 11px;
	box-sizing: border-box;
	color: #fafbf7;
	font-family: "Faktum";
	font-size: 90px;
	font-weight: 500;
	line-height: 117px;
	letter-spacing: -0.9px;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: color .2s ease;
}

.fmItem.is-active::before {
	opacity: 1;
}

.fmItem.is-active a {
	color: #121117;
}

.fmItem a:focus-visible {
	outline: none;
}

.fmPhoto {
	position: absolute;
	top: 0;
	right: 0;
	left: calc(50% + 8px);
	height: 943px;
	margin: 0;
	overflow: hidden;
	background: #d9d9d9;
}

.fmPhoto img {
	position: absolute;
	top: 0;
	left: 50%;
	width: calc(100% + 14px);
	max-width: none;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) brightness(1.04);
	transform: translateX(-50%) scaleX(-1);
}

.fmFoot {
	padding: 13px 15px 13.9px 23px;
}

.fmCols {
	display: flex;
	gap: 30px;
}

.fmInfo,
.fmBiz {
	color: #e7e9e0;
	font-family: "Faktum";
	font-size: 12px;
	font-weight: 400;
	line-height: 16.8px;
	letter-spacing: 0.96px;
	text-transform: uppercase;
	text-rendering: geometricPrecision;
}

.fmInfo {
	width: 110px;
	white-space: nowrap;
}

.fmBiz {
	width: 168px;
}

.fmInfo strong,
.fmInfo span,
.fmBiz strong,
.fmBiz span,
.fmBiz a {
	display: block;
	color: #e7e9e0;
	text-decoration: none;
}

.fmBiz a:hover {
	color: #b49c3a;
}

.fmSocial {
	display: flex;
	gap: 15px;
	margin-top: 16.28px;
}

.fmSocial a {
	display: block;
	line-height: 0;
}

.fmSocial a:hover {
	opacity: .7;
}

.fmWordmark {
	margin-top: 60.31px;
	line-height: 0;
}

.fmWordmark img {
	display: block;
	width: 100%;
	height: auto;
}

@media (prefers-reduced-motion: reduce) {
	.fussMenu,
	.fmItem::before,
	.fmItem a,
	.fuss-v2 .v2Row {
		transition: none;
	}
}

/* ---------- Narrow desktop: keep the menu words inside their column ---------- */

@media only screen and (max-width: 1240px) {
	.fmItem a {
		font-size: calc((50vw - 46px) * .1875);
	}
}

/* ---------- Tablet and phone ---------- */

@media only screen and (max-width: 1023px) {
	.fuss-v2 #header.v2Nav {
		position: relative;
		top: auto;
		bottom: auto;
		left: auto;
		width: auto;
		margin: 7px;
	}

	.v2NavInner {
		position: static;
		overflow: visible;
	}

	.fuss-v2.home #container {
		display: none !important;
	}

	.fuss-v2 .v2Projects {
		margin-right: 7px;
	}

	.fuss-v2 .v2Row {
		width: 100%;
	}

	.fuss-v2 .v2Text {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
	}

	.fuss-v2 .v2Loc {
		padding-right: 12px;
	}

	/* Every page but home: compact top bar, the list lives in the menu. */
	.fuss-v2:not(.home) #header.v2Nav {
		position: sticky;
		top: 7px;
		z-index: 50;
	}

	.fuss-v2:not(.home) .v2Intro,
	.fuss-v2:not(.home) .v2Projects {
		display: none;
	}

	.fuss-v2 #container {
		margin: 0 7px 7px;
		min-height: 0;
	}

	.fuss-v2 #landingRoller {
		display: none !important;
	}

	.fmTop {
		height: auto;
		padding: 15px 15px 0;
	}

	.fmLogo {
		position: static;
		display: inline-block;
	}

	.fmCol {
		position: static;
		width: auto;
		height: auto;
		margin-top: 48px;
	}

	.fmBack {
		position: relative;
		top: auto;
		left: auto;
		margin: 0 auto 24px;
		transform: none;
	}

	.fmNav {
		position: static;
	}

	.fmItem {
		height: auto;
	}

	.fmItem a {
		height: auto;
		padding: 18px 0 14px;
		font-size: clamp(40px, 11vw, 90px);
		line-height: 1.15;
	}

	.fmItem::before {
		top: 5px;
		bottom: 5px;
	}

	.fmPhoto {
		position: relative;
		left: auto;
		height: auto;
		aspect-ratio: 877 / 943;
		margin: 24px 0 0;
		border-radius: 0;
	}

	.fmFoot {
		padding: 24px 15px 15px;
	}

	.fmCols {
		flex-wrap: wrap;
	}

	.fmWordmark {
		margin-top: 40px;
	}
}

/* ---------- Home: studio reel (inc/home-reel.php, js/home-reel.js) ---------- */
.v2Reel {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	border-radius: 18px;
	background: #fafbf7;
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s ease, visibility 0s linear .35s;
}

.v2Reel.is-on {
	opacity: 1;
	visibility: visible;
	transition: opacity .25s ease;
}

.v2ReelVideo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.v2ReelSound {
	position: absolute;
	right: 20px;
	bottom: 18px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px 8px;
	border: 0;
	border-radius: 999px;
	background: rgba(18, 17, 23, .72);
	color: #fafbf7;
	font: 500 11px/1 "Faktum";
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.v2ReelSoundIcon {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	opacity: .55;
}

.v2ReelSound[aria-pressed="true"] .v2ReelSoundIcon {
	background: #1ae32f;
	opacity: 1;
}

/* "Play reel", under the tagline. Placed absolutely so the tagline stays exactly where the reel's
   first and last frames expect it. */
.v2ReelPlay {
	position: absolute;
	left: 50%;
	top: calc(50% + 96px);
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 10px 16px 9px 14px;
	border: 1px solid rgba(18, 17, 23, .22);
	border-radius: 999px;
	background: transparent;
	color: #121117;
	font: 500 11px/1 "Faktum";
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.v2ReelPlay:hover,
.v2ReelPlay:focus-visible {
	background: #121117;
	border-color: #121117;
	color: #fafbf7;
}

.v2ReelPlayIcon {
	width: 7px;
	height: 8px;
	background: currentColor;
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.v2ReelPlay.is-loading .v2ReelPlayIcon {
	animation: v2ReelBlink .8s ease-in-out infinite alternate;
}

@keyframes v2ReelBlink {
	to { opacity: .2; }
}

@media only screen and (max-width: 1023px) {
	.v2Reel,
	.v2ReelPlay {
		display: none;
	}
}
