html, body {
	margin: 0;
	padding: 0;
}

.gallery-swipe-viewport {
	-webkit-user-select: none;
	user-select: none;
	cursor: grab;
}

.gallery-swipe-viewport img {
	-webkit-user-drag: none;
	-webkit-user-select: none;
	user-select: none;
}

.gallery-swipe-viewport.is-gallery-dragging {
	cursor: grabbing;
}

.gallery-swipe-viewport #studioTrack.is-live-dragging {
	transition: none;
}

:is(.related-services__card, [class*="related-card"], .home-collaboration-card, .home-services-card) > img {
	box-sizing: border-box;
	border-bottom: 4px solid #e6007e;
}

:is(.related-services__card, [class*="related-card"]):focus-visible {
	background-color: #bb2170;
}

:is(.related-services__card, [class*="related-card"]):focus-visible > :last-child {
	border-color: rgba(255, 255, 255, 0.2);
	background: #bb2170;
	color: #fff;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

:is(.related-services__card, [class*="related-card"]):focus-visible > :last-child :is(h3, p, span) {
	color: #fff;
}

main a:focus-visible > :is(.home-collaboration-card, .home-services-card) {
	background-color: #bb2170;
	color: #fff;
}

main a:focus-visible > :is(.home-collaboration-card, .home-services-card) > :last-child {
	background-color: #bb2170;
	color: #fff;
}

main a:focus-visible > :is(.home-collaboration-card, .home-services-card) > :last-child :is(h3, p) {
	color: #fff;
}

:is(.related-services__card, [class*="related-card"]):focus-visible,
a:focus-visible > :is(.home-collaboration-card, .home-services-card) {
	animation: none !important;
	transform: none !important;
	transition: none !important;
}

:is(.related-services__card, [class*="related-card"]):focus-visible > img,
a:focus-visible > :is(.home-collaboration-card, .home-services-card) > img {
	animation: none !important;
	transform: none !important;
	transition: none !important;
}

main :is(section, div)[class*="-band"]:not([class*="scriptwriting-band"]):not([class*="subtitles-band"]) {
	box-sizing: border-box;
	border-top: 2px solid #e6007e;
}

main.project-management-page > section {
	box-sizing: border-box;
	border-top: 2px solid #e6007e;
}

main.project-management-page > #project-film {
	border-top: 0;
}

.team-profile-page {
	--team-accent: #2aa3a7;
	--team-field: 42, 163, 167;
	--team-base: var(--site-teal-base);
	--team-glow: var(--site-glow-teal);
	--team-panel: var(--site-panel-teal);
	--team-profile-height: min(720px, max(200px, calc(100vh - 13rem)), calc((100vw - 3rem) * 1.25));
	--team-profile-height: min(720px, max(200px, calc(100svh - 13rem)), calc((100vw - 3rem) * 1.25));
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--team-base);
}

.team-profile-page--pink {
	--team-accent: #e6007e;
	--team-field: 230, 0, 126;
	--team-base: var(--site-pink-base);
	--team-glow: var(--site-glow-pink);
	--team-panel: var(--site-panel-pink);
}

.team-page #header {
	background: rgba(0, 0, 0, 0.75);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.team-profile-page::before {
	position: absolute;
	z-index: -1;
	inset: -20px;
	background: var(--team-glow);
	filter: blur(28px);
	opacity: 0.72;
	content: '';
	pointer-events: none;
}

.team-profile-page::after {
	position: absolute;
	z-index: -1;
	inset-block: 0;
	right: clamp(0.5rem, 1vw, 1rem);
	width: clamp(6px, 1vw, 14px);
	background: var(--team-accent);
	opacity: 0.22;
	content: '';
	pointer-events: none;
}

.team-profile-page > div {
	min-height: 100vh;
	min-height: 100svh;
	background-color: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.team-profile-section {
	padding-top: 8.25rem;
	padding-bottom: 3rem;
}

.team-profile-back {
	padding: 0;
}

.team-profile-back a {
	display: inline-flex;
	width: 2.75rem;
	height: 3rem;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 0.5rem;
	background: rgba(20, 20, 24, 0.75);
	transition: background-color 160ms ease, border-color 160ms ease;
}

.team-profile-back a:hover,
.team-profile-back a:focus-visible {
	border-color: rgba(255, 255, 255, 0.65);
	background: rgba(20, 20, 24, 1);
}

.team-profile-back a:focus-visible,
.team-profile-back a.keyboard-focused:focus {
	background: #e6007e;
}

.team-profile-back img {
	display: block;
	margin: 0;
	opacity: 1;
}

.team-profile-layout > .team-card {
	height: var(--team-profile-height);
	max-width: 100%;
	aspect-ratio: 4 / 5;
}

.team-profile-nameplate {
	top: auto;
	height: 90px;
	box-sizing: border-box;
}

.team-bio-copy {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	box-sizing: border-box;
	padding: clamp(1.5rem, 3vw, 2rem);
	border: 1px solid var(--site-border);
	border-top: 4px solid var(--team-accent);
	border-radius: 1.25rem;
	background: var(--team-panel);
	color: var(--site-text);
}

.team-bio-copy p {
	margin: 0;
	flex-shrink: 0;
}

@media (min-width: 1024px) {
	.team-profile-page {
		--team-profile-height: min(720px, max(240px, calc(100vh - 16rem)));
		--team-profile-height: min(720px, max(240px, calc(100svh - 16rem)));
	}

	.team-profile-section {
		display: flex;
		min-height: 100vh;
		min-height: 100svh;
		flex-direction: column;
		justify-content: center;
		padding: 9rem 1.5rem 2rem;
	}

	.team-profile-layout {
		display: grid;
		grid-template-columns: 2.75rem 1.5rem repeat(2, minmax(0, 1fr));
		column-gap: 0;
		row-gap: 0;
	}

	.team-profile-layout > .team-profile-back {
		grid-column: 1;
		grid-row: 1;
	}

	.team-profile-layout > .team-card {
		grid-column: 3;
		grid-row: 1;
	}

	.team-profile-layout > .team-bio-copy {
		grid-column: 4;
		grid-row: 1;
	}

	.team-profile-layout > .team-card,
	.team-profile-layout > .team-bio-copy {
		box-sizing: border-box;
		min-width: 0;
		width: 100%;
	}

	.team-profile-layout > .team-card > img {
		width: 100%;
		border-radius: 1.5rem 0 0 1.5rem;
	}

	.team-profile-layout > .team-card {
		border-radius: 1.5rem 0 0 1.5rem;
	}

	.team-bio-copy {
		height: var(--team-profile-height);
		overflow-y: auto;
		line-height: 1.6;
		border-left: 0;
		border-right: 1px solid var(--team-accent);
		border-bottom: 1px solid var(--team-accent);
		border-radius: 0 1.5rem 1.5rem 0;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.team-profile-page {
		--team-profile-height: min(720px, max(200px, calc(100vh - 18.75rem)), calc((100vw - 3rem) * 1.25));
		--team-profile-height: min(720px, max(200px, calc(100svh - 18.75rem)), calc((100vw - 3rem) * 1.25));
	}

	.team-profile-section {
		padding-top: 14rem;
	}
}

@media (min-width: 768px) {
	[class~="md:w-[75%]"] {
		width: 75%;
	}
}

@media (max-width: 767px) {
	body.team-page {
		background-color: var(--site-bg) !important;
	}

	.team-profile-page {
		overflow: visible;
	}

	.team-profile-page::after {
		position: fixed;
	}

	.team-profile-page::before {
		position: fixed;
		top: -20px;
		right: -20px;
		bottom: auto;
		left: -20px;
		height: calc(100vh + 40px);
		height: calc(100svh + 40px);
		background-color: var(--team-base);
	}

	.team-page #header {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.team-profile-nameplate {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.team-profile-section {
		padding-top: 10rem;
	}

	.team-profile-layout {
		gap: 2rem;
	}

	.team-profile-layout > .team-profile-back {
		display: flex;
		justify-content: center;
	}

	.team-profile-back a {
		width: 2.75rem;
		height: 3rem;
	}
}
