*,
*::after,
*::before {
	box-sizing: border-box;
}

:root {
	font-size: 16px;
	--color-text: rgb(255, 255, 255, 0.9);
	--color-bg: #000000;
	--color-link: rgb(82, 82, 82);
	--color-link-hover: #a58037;
	--color-title: #907030;
	--perspective: 1500px;
	--grid-item-ratio: 1;
	--grid-width: 100%;
	--grid-height: auto;
	--grid-gap: 2vw;
	--grid-columns: 4;
	--grid-inner-scale: 1;
}

/*06150c*/

@font-face {
    font-family: 'TildaSans-VF';
    src: local('TildaSans-VF'), local('fonts/TildaSans-VF'),
    url('../fonts/TildaSans-VF.woff2') format('woff2'),
    url('../fonts/TildaSans-VF.woff') format('woff'),
    url('../fonts/TildaSans-VF.font/ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'PP Editorial New';
    src: local('PP Editorial New'), local('fonts/PP Editorial New'),
    url('../fonts/PPEditorialNew-Regular.woff2') format('woff2'),
    url('../fonts/PPEditorialNew-Regular.woff') format('woff'),
    url('../fonts/PPEditorialNew-Regular.font/ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

body {
	margin: 0;
	color: var(--color-text);
	background-color: var(--color-bg);
	font-family: "PP Editorial New", serif;
	font-variation-settings: "ital" 0, "wght" 300;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 500%;
    height: 500%;
    pointer-events: none;
    opacity: 0.07;
    background-image: url('../img/grain.png');
    animation: grain 6s steps(10) infinite;
    z-index: -1;
}

@keyframes grain {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-5%, -5%);
    }
    50% {
        transform: translate(5%, 5%);
    }
    75% {
        transform: translate(-5%, 5%);
    }
}



/* Page Loader */
.js .loading::before,
.js .loading::after {
	content: '';
	position: fixed;
	z-index: 1000;
}

.js .loading::before {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
}

.js .loading::after {
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	border-radius: 50%;
	opacity: 0.4;
	background: var(--color-link);
	animation: loaderAnim 0.7s linear infinite alternate forwards;

}

@keyframes loaderAnim {
	to {
		opacity: 1;
		transform: scale3d(0.5,0.5,1);
	}
}

a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
	cursor: pointer;
	font-family: Arial, Helvetica, sans-serif;
}

a:hover {
	color: var(--color-link-hover);
	outline: none;
}

/* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
a:not(.card__image):focus {
	/* Provide a fallback style for browsers
	 that don't support :focus-visible */
	outline: none;
	background: lightgrey;
}

a:not(.card__image):focus:not(:focus-visible) {
	/* Remove the focus indicator on mouse-focus for browsers
	 that do support :focus-visible */
	background: transparent;
}

a:not(.card__image):focus-visible {
	/* Draw a very noticeable focus style for
	 keyboard-focus on browsers that do support
	 :focus-visible */
	outline: 2px solid red;
	background: transparent;
}

.unbutton {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
}

.unbutton:focus {
	outline: none;
}

main {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.frame {
	position: relative;
	width: 100%;
	padding: 1rem;
	display: grid;
	grid-template-columns: 100%;
	grid-template-areas: 'back' 'prev' 'sponsor';
	grid-gap: 0.5rem;
	justify-items: start;
	align-self: start;
	justify-self: start;
	pointer-events: none;
	align-items: center;
	text-transform: uppercase;
	font-size: 0.85rem;
	background: var(--color-bg-alt);
}

body #cdawrap {
    justify-self: start;
}

.frame a {
	pointer-events: auto;
}

.frame a:not(.frame__title-back) {
	white-space: nowrap;
	overflow: hidden;
	position: relative;
}

.frame a:not(.frame__title-back)::before {
	content: '';
	height: 1px;
	width: 100%;
	background: currentColor;
	position: absolute;
	top: 90%;
	transition: transform 0.3s;
	transform-origin: 0% 50%;
}

.frame a:not(.frame__title-back):hover::before {
	transform: scaleX(0);
	transform-origin: 100% 50%;
}

.frame__title {
	grid-area: title;
	display: flex;
}

.frame__title-main {
	font-size: inherit;
	margin: 0;
	font-weight: inherit;
}

.frame__title-back {
	position: relative;
	display: flex;
	align-items: flex-end;
	margin-bottom: 0.15rem;
}

.frame__title-back span {
	display: none;
}

.frame__title-back svg {
	fill: currentColor;
}

.frame__prev {
	grid-area: prev;
	right: 10px;
}

.intro {
	height: calc(100vh - 3rem);
    text-align: center;
    place-items: center;
    display: grid;
    margin-bottom: 30vh;
    background: linear-gradient(0deg, transparent, var(--color-bg-alt));
}

.intro__title {
    place-items: center;
    margin: 0;
    line-height: .9;
    display: grid;
    margin-top: 15vh;
    font-weight: 400;
}

.intro__title-pre {
	font-weight: 300;
    font-size: clamp(1.9rem,10.0vw,2.0rem);
    color: var(--color-text);
	opacity: .4;
	padding-bottom: 120px;
	line-height: 130%;
}

.intro__title-sub {
    font-size: clamp(0.8rem,18vw,5.4rem);
    max-width: 15ch;
    margin: 0 auto;
	letter-spacing: 0.05rem;
	padding-bottom: 15px;
	line-height: 90%;
	color: var(--color-title);
	mix-blend-mode:difference;
}

.intro__info {
	max-width: 18ch;
    margin-bottom: 6rem;
    padding-bottom: 1rem;
    line-height: 1.2;
    position: relative;
    align-self: end;
	font-family: "PP Editorial New", serif;
	transition: color 0.3s, opacity 1.0s;
	color: var(--color-link);
}
/*
.intro__info::after {
	content: "";
	width: 1px;
	height: 2rem;
	background: #fff;
	position: absolute;
	top: 100%;
	left: 50%;
}
*/
.card-wrap {
	margin-top: 5vh;
	display: grid;
	grid-gap: 2rem;
	grid-auto-flow: row;
	grid-template-columns: 250px;
}

.card__image {
	display: block;
	border-radius: 18px;
	background-size: cover;
	background-position: 50% 50%;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	filter: contrast(0.8);
}

.credits {
	font-size: 1.5rem;
	text-align: center;
	margin: 50vh auto 0;
	padding-bottom: 50vh;
}

.content {
	position: relative;
	margin-bottom: 20vh;
}

.content--spacing {
	margin-bottom: 100vh;
}

.getintouch {
	font-size: 96px;
	color: var(--color-text);
	line-height: 100%;
}
.content__title {
	position: absolute;
	width: 100vw;
	top: 50%;
	left: 50%;
	margin: -50vh 0 0 -50vw;
	padding: 0 10vw;
	display: grid;
	place-items: center;
	text-align: center;
	font-weight: 300;
	line-height: 100%;
	font-size: clamp(1.5rem, 15vw, 6.5rem);
}

.content__title--top {
	align-items: start;
}

.content__title--bottom {
	align-items: end;
}

.content__title--left {
	justify-items: start;
	text-align: left;
}

.content__title--right {
	justify-items: end;
	text-align: right;
}

.outro {
	display: grid;
	place-items: center;
	margin: 30vh 0;
}

.grid {
	display: grid;
	place-items: center;
	padding: 2rem;
	width: 100%;
	perspective: var(--perspective);
}

.grid-wrap {
	height: var(--grid-height);
	width: var(--grid-width);
	display: grid;
	grid-template-columns: repeat(var(--grid-columns),1fr);
	gap: var(--grid-gap);
	transform-style: preserve-3d;
}

.grid__item {
	aspect-ratio: var(--grid-item-ratio);
	width: 100%;
	height: auto;
	overflow: hidden;
	position: relative;
	border-radius: 0px;
	display: grid;
	place-items: center;
}

.grid__item-inner {
	position: relative;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: 50% 50%;
	transform: none !important;
}

.logo {
	position: absolute;
    top: 10px;
    left: 14px;
    z-index: 1000;
    font-size: 16px;
    transition: color 0.3s, opacity 1.0s;
	color: var(--color-link);
	font-family: "PP Editorial New", serif;

}

.cv {
	font-family: "PP Editorial New", serif;
    position: absolute;
    top: 10px;
    right: 16px;
    z-index: 1000;
    font-size: 16px;
    transition: color 0.3s, opacity 1.0s;
	color: var(--color-link);
}

.email {
	font-family: "PP Editorial New", serif;
    z-index: 1000;
    font-size: 42px;
    transition: color 0.3s, opacity 1.0s;
	color: var(--color-title);
}

@media screen and (min-width: 53em) {
	.frame {
		grid-template-columns: auto auto auto 1fr;
		align-content: space-between;
		justify-items: start;
		grid-gap: 2rem;
	}
	.frame__demos {
		justify-self: end;
	}

	.content--outro {
		height: 100vh;
		justify-content: center;
	}

	.card-wrap {
		grid-template-columns: repeat(3,250px);
	}

	body #cdawrap {
	    justify-self: end;
	}
}

@media screen and (max-width: 768px) {
	.intro__title-sub {
		font-size: clamp(0.8rem,18vw,3.9rem);
		max-width: 15ch;
		margin: 0 auto;
		letter-spacing: 0.05rem;
		padding-bottom: 15px;
		line-height: 100%;
		color: var(--color-title);
		mix-blend-mode:difference;
	}

	.intro__title-pre {
		font-weight: 300;
		font-size: clamp(0.6rem,6.5vw,1.3rem);
		color: var(--color-text);
		opacity: .4;
		padding-bottom: 120px;
		line-height: 130%;
	}

	.getintouch {
		font-size: 64px;
		color: var(--color-text);
		line-height: 100%;
	}
}