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



:root {
	font-size: 18px;
	--color-text: #000;
	--color-bg: #161616;
	--color-link: #DCBE53;
	--color-link-hover:#F7F8F2; 
	--color-label:#F7F8F2;
	
	/* Glitch variables */
	--gap-horizontal: 20px;
    --gap-vertical: 5px;
	--time-anim: 1s;
	--blend-mode-1: none;
	--blend-mode-2: color-dodge;
	--blend-mode-3: luminosity;
	--blend-mode-4: none;
	--blend-mode-5: none;
	--blend-color-1: #f3727e;
	--blend-color-2: #f3727e;
	--blend-color-3: #3124c7;
	--blend-color-4: #3124c7;
	--blend-color-5: #f3727e;
	/* Rotation variables */
	--rotate-time: 0.5s;
	--rotate-easing: cubic-bezier(0.2,1,0.3,1);
	/* Cover variables */
	--fade-out-time: 0.25s;
	--fade-in-time: 0.25s;
	--fade-out-easing: ease-out;
	--fade-in-easing: ease-out;
}

.demo-2 {
	--color-bg: #161616;
	--content-hover:#F7F8F2;
}

body {
	margin: 0;
	color: var(--color-text);
	background-color: var(--color-bg);
	font-family: archivo, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	transition: color 0.5s linear;
	
}

.footer {
	padding:20px;
	font-size: 14px;
	color:#f7f8f273;
	text-align: center;
}
/* 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;
	transition: color 0.5s linear;
}

a:hover {
	color: var(--color-link-hover);
	outline: none;
	transition: color 0.5s linear;
}

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

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

a: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;
	cursor: pointer;
}

.unbutton:focus {
	outline: none;
}

.frame {
	padding: 1.5rem 1rem 1.5rem;
	text-transform: uppercase;
}

.frame__title-main {
	font-size: 1rem;
	margin: 0;
	font-weight: normal;
	
}

.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: var(--color-text);
}

.frame__title-prev {
	margin: 0 2rem 0 0;
	font-weight:700;
	text-align:left;
}



.frame__demo {
	margin: 0 1rem 0 0;
}

.frame__demo--current {
	color: var(--color-link-hover);
}

.intro { 
	padding: 10vh 2rem 10vh;
	margin-bottom: 2rem;
}

.intro__title {
	grid-area: title;
	font-family: widescreen-ex, sans-serif;
	font-weight: 800;
	font-size: clamp(2rem,12vw,10rem);
	line-height: 1;
	margin: 0;
}

.intro__title span {
	text-transform: uppercase;
	-webkit-text-stroke: 1px #000;
	text-stroke: 1px #000;
	-webkit-text-fill-color: transparent;
	text-fill-color: transparent;
	color: transparent;
	text-shadow: -10px 10px 0 #000;
}

.intro__title em {
	font-family: park-lane, serif;
	font-weight: 300;
	font-style: normal;
	display: block;
	margin: -2.5vw 0 0 0;
	text-transform: uppercase;
    font-size: clamp(2rem,10vw,10rem);
    -webkit-text-stroke: 1px #000;
	text-stroke: 1px #000;
	-webkit-text-fill-color: var(--color-bg);
	text-fill-color: var(--color-bg);
	color: var(--color-bg);
}

.intro__description {
	margin: 1.75vw 0 0 0;
	grid-area: desc;
	font-weight: 500;
	font-size: clamp(1rem, 2vw, 1.25rem);
	max-width: 350px;
}

.intro__button {
	grid-area: button;
	border: 1px solid var(--color-text);
	background: var(--color-bg);
	box-shadow: 1px 2px 0 #000;
	font-size: 1.25rem;
	padding: 1rem 2rem;
	border-radius: 1.25rem;
	justify-self: end;
	font-weight: bold;
	text-transform: uppercase;
	margin-top: 1rem;
}

.intro__button:hover,
.intro__button:focus {
	transform: translate3d(1px,2px,0);
	box-shadow: 0px 0px 0 #000;
}

.content {
	display: grid;
	grid-gap: 7rem 1.5rem;
	margin: 0 .5rem;
	padding-bottom: 15vh;
	grid-template-columns: repeat(auto-fill, minmax(350px,1fr));
}

.item {
	aspect-ratio: .8;
	display: grid;
	grid-template-columns: 100%;
	grid-template-rows: 100%;
	perspective: 1000px;
	overflow: visible;
	position: relative;
	margin: 0;
}


.demo-2 .item--oh {
	overflow: hidden;
}

.item__img {
	grid-area: 1 / 1 / -1 / -1;
	position: relative;
	opacity: 0;
	width: 100%;
	height: 100%;
}

.item:hover .item__img {
	opacity: 1;
	transition: transform var(--rotate-time) var(--rotate-easing);
	transform: translateZ(-200px) rotateX(60deg) rotateY(0) rotateZ(-35deg);
}

/* Horizontal Grid */

.content-horizontal {
	display: grid;
	grid-gap: 6rem 1.5rem;
	margin: 0 1rem;
	padding-bottom: 15vh;
	grid-template-columns: repeat(auto-fill, minmax(450px,1fr));
}

.item-hor {
	aspect-ratio: 1.6;
	display: grid;
	grid-template-columns: 100%;
	grid-template-rows: 100%;
	perspective: 1000px;
	/*overflow: hidden;*/
	position: relative;
	margin: 0;
}
/* End of Horizontal Grid */


.glitch {
	display: grid;
	place-items: center;
}

.glitch__img {
	grid-area: 1 / 1 / -1 / -1;
	background-image: var(--img);
	background-position: 50% 50%;
	background-size: cover;
	/*image-rendering: pixelated;*/
	width: 100%;
	height: 100%;
	/*background-color: var(--blend-color-1);*/
	transform: translate3d(0,0,0);
	/*background-blend-mode: var(--blend-mode-1);*/
}

.glitch__img:nth-child(2) {
	background-color: var(--blend-color-2);
	/*background-blend-mode: var(--blend-mode-2);*/
}

.glitch__img:nth-child(3) {
	background-color: var(--blend-color-3);
	background-blend-mode: var(--blend-mode-3);
}

.glitch__img:nth-child(4) {
	background-color: var(--blend-color-4);
	background-blend-mode: var(--blend-mode-4);
}

.glitch__img:nth-child(5) {
	background-color: var(--blend-color-5);
	background-blend-mode: var(--blend-mode-5);
}



.item__cover {
	grid-area: 1 / 1 / -1 / -1;
	background-size: cover;
	background-position: 50% 50%;
	position: relative;
	transition: opacity var(--fade-in-time) var(--fade-in-easing);
	pointer-events: none;
}

.item__cover::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	background: linear-gradient(0deg,rgb(54 58 199 / 38%), rgba(0,0,0,0.2));
}

.item:hover .item__cover {
	opacity: 0;
	transition: opacity var(--fade-out-time) var(--fade-out-easing);
}

.item__content {
	display: flex;
	flex-direction: column;
	pointer-events: none;
	padding: 1.5rem;
	position: relative;
	grid-area: 1 / 1 / -1 / -1;
	color: var(--color-label);
}

.item__content-title {
	font-family: IBM Plex Serif, serif;
	font-weight: 600;
	font-style: italic;
	font-size: clamp(3rem,4vw,5rem);
	line-height: 1;
	margin: 0;
	transition: color 0.5s linear;
}

.item:hover .item__content-title,
.item:hover .item__content-label {
	color: var(--content-hover);
	transition: color 0.5s linear;
}

.item__content-label {
	font-family: archivo, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	margin: auto 0 0;
}


/* Art Sizes Flexbox */
.item__content-link {
	color: var(--color-label);
	font-size: .6rem;
	margin: .6rem 0 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	
}

.item__content-link a {
	padding:.5rem .8rem;
	text-align: center;
	border: 1px solid #f7f8f258;
	border-radius: 100px;
	color: #f7f8f258;
}

.item__content-link a:hover {
	color: var(--color-link);
	border: 1px solid #DCBE53;
	transition: all 0.5s linear;
}

.art-title {
	display:block;
	padding: 12px 0 0 0;
	font-size: 1rem;
	color: var(--color-label);
	font-weight: 300;
	font-family: IBM Plex Serif;
	font-style: italic;
	font-variant-numeric: oldstyle-nums;
}


.one {
	flex: 1 1 auto;
	margin: 10px 0;
}

.two {
	flex: 1 1 auto;
	margin: 10px 0;
}

.three {
	flex: 1 1 auto;
	margin: 10px 0;
}

.four {
	flex: 1 1 auto;
	margin: 10px 0;
}

.five {
	flex: 1 1 auto;
	margin: 10px 0;
}
/* End Art Sizes Flexbox */



blockquote {
	font-weight: 500;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

@media screen and (min-width: 53em) {
	.frame {
		text-align: center;
		display: grid;
		grid-template-columns: auto auto;
		grid-template-rows: auto auto;
		grid-template-areas: 'title sponsor' 'demos demos';
		grid-row-gap: 1rem;
		align-content: space-between;
		padding:1.5rem 1rem .5rem;
	}
	.frame__title {
		grid-area: title;
		display: grid;
		grid-auto-flow: column;
		grid-template-columns: auto auto 1fr;
		align-items: start;
		justify-items: flex-start;
		
	}

	.frame__demos {
		grid-area: demos;
		justify-self: end;
	}
	.frame__demo {
		margin: 0 0 0 1rem;
	}
	.intro {
		display: grid;
		grid-column-gap: 1rem;
		grid-template-areas: 'title desc' 
							'title button';
		justify-content: space-between;
		align-items: start;
		text-align: right;
	}

	.content {
		margin: 0 1rem;
}
