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

:root {
	font-size: 12px;
	--color-text: #2935ba;
	--color-bg: #1a0b37;
	--color-title: #9577cc;
	--color-link: #2935ba;
	--color-link-hover: #9577cc;
	--page-padding: 1rem;
	--rheight: 15vh;
}

body {
	margin: 0;
	color: var(--color-text);
	font-family: "ouma-latin-variable", -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
	font-variation-settings: "wght" 400;
	text-transform: uppercase;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background: var(--color-bg);
	overflow-x: hidden;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: calc(var(--rheight) + 1px);
	pointer-events: none;
	z-index: 2000;
	background-image: linear-gradient(0deg, rgb(0 0 0 / 10%), rgba(23, 16, 10, 0.10));
	box-shadow: 0px 0px 10vh rgba(0,0,0,0.4);
}

/* 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: black;
}

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

}

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

a {
	text-decoration: underline;
	color: orangered;
	outline: none;
	cursor: pointer;
}

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

/* 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 2rem;
	display: grid;
	z-index: 1000;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	grid-row-gap: 1rem;
	grid-column-gap: 2rem;
	pointer-events: none;
	justify-items: start;
	grid-template-areas: 'title' 'prev' 'back' 'sub' 'sponsor' 'demos';
}

.frame #cdawrap {
  justify-self: start;
}

.frame a {
  pointer-events: auto;
}

.frame__title {
  grid-area: title;
  font-size: inherit;
  margin: 0;
  color:orangered;
  display: flex;
  align-items: flex-end;
}

.frame__back {
  grid-area: back;
  justify-self: start;
  display: flex;
  align-items: flex-end;
}

.frame__prev {
  grid-area: prev;
  justify-self: start;
  display: flex;
  align-items: flex-end;
}

.frame__sub {
  grid-area: sub;
}

.frame__demos {
	grid-area: demos;
	display: flex;
	gap: 1rem;
}

.wrap {
	position: fixed;
	overflow: hidden;
	background: var(--color-bg);
	width: 100%;
	top: 0;
	box-shadow: 0 -25px 45px rgba(0,0,0,0.3);
	height: var(--rheight);
	transform: scaleY(-1);
}	

.demo-2 .wrap {
	box-shadow: 0 -25px 45px rgba(0,0,0,0.15);
}

.content {
	position: relative;
	display: grid;
	grid-template-columns: repeat(auto-fit,minmax(300px,400px));
	grid-column-gap: 10vw;
	grid-row-gap: 10vh;
	/*padding: 0 var(--page-padding) 60vh;*/
	padding-bottom:300px;
	width: 100%;
	margin: var(--rheight) auto 0;
	justify-content: center;
	align-items: start;
	background-image: url(../img/noise.png), radial-gradient(circle, rgb(184, 40, 40) 0%, rgb(14 3 33) 100%);
	background-size: 400px, 100% 100vh;
	background-attachment: fixed;
	overflow-x: hidden;
}

.demo-2 .content {
	justify-content: center;
	grid-template-columns: repeat(2,auto);
	grid-column-gap: 5vw;
	align-items: center;
}

.content--reflection {
	position: absolute;
	top: 0;
	left:0;
	margin: 0 auto;
	overflow-x: hidden;
}

.item {
	position: relative;
	margin: 0;
	aspect-ratio: 2/3;
	width: 100%;
}

.demo-2 .item {
		max-width: 300px;
    justify-self: center;
    align-self: center;
    aspect-ratio: 0.75;
    width: 100%;
}

.demo-1 .item {
	perspective: 1000px;
	transform-style: preserve-3d;
}

.item__inner {
	width: 100%;
	height: 100%;
}

.item__img {
	position: relative;
	overflow: hidden;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
}

.item__img-inner {
	position: relative;
	width: 100%;
	height: 100%;
	background-position: 50% 0%;
	background-size: cover;
}

.item__caption {
	display: grid;
	place-items: center;
	position: absolute;
	bottom: -25px;
	left: 0;
	width: 100%;
	/*mix-blend-mode: plus-lighter;*/
}

.item__caption.sub {
	bottom: -50px;
	text-align: center;
}

.item__caption.sub .item__caption-title {
	color:red;
	font-size: 12px;
	color:white;
	margin: -3rem 0;
	opacity: 1;
}

.item__caption-title,
.content__title {
	white-space: nowrap;
	font-size: inherit;
	margin: 0;
	font-size: clamp(1.5rem,8vw,1.7rem);
	text-transform: uppercase;
}

.content__title.end {
	font-size: 10vw;
	margin-bottom:0!important;
}

.item__caption-title {
	color:orange;
	margin: -3rem 0;
	opacity: 1;
}

.item__caption-subtitle {
	color:white;
	margin: -3rem 0;
	opacity: 1;
}

.logo {
	max-width: 60px;
}
.btn {
	background-color: red;
	color:#000;
	padding:23px 30px 20px 30px;
	text-decoration: none;
	border-radius: 30px;
	line-height: 1em;
	font-weight: 400;
	font-size: 0.9em;
	display: inline-block;
	margin-top:40px;
	transition:0.3s;
}
.btn:hover {
	background-color: black;
	color:red!important;
	transition:0.3s;
}

.content__title {
	text-align: center;
	font-size: clamp(2rem,17vw,17rem);
	line-height: 0.5;
	text-transform: uppercase;
	grid-column: 1 / -1;
	width: 100%;
	/*color: var(--color-title);*/
	color:red;
	font-weight: 600;
	font-family: "ivymode", sans-serif;
	mix-blend-mode: normal;
	/*text-shadow: 0 0 30px orange;*/
	text-shadow: 0 0 30px red;
	display: flex;
	justify-content: center;
	padding-top: 30px;
}

.content__title:not(:first-child) {
	margin: 10vh auto;
}

.item__caption-meta {
	margin: 0;
}

.credits {
	grid-column: 1 / -1;
	text-align: center;
	font-size: 1.25rem;
}
.credits .services span {
	padding:12px 15px 10px 15px;
	border:solid 1px #fff;
	border-radius:30px;
	font-size: 0.9em;
	color:#fff;
	margin: 5px;
	display:inline-block;
}

.liens-halloween {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}
.liens-halloween a {
	text-decoration: none;
	width: 100px;
	height: 100px;
	border-radius: 50%;
}

@media screen and (min-width: 53em) {
	body {
		--page-padding: 2rem;
	}
	.frame {
		grid-template-columns: auto auto 1fr 1fr;
		align-content: space-between;
		grid-template-areas: 'title back prev sponsor demos';
	}
	.frame #cdawrap, .frame__sub {
		justify-self: end;
	}
}


@media screen and (max-width: 848px) {
	.frame__title {
		display:none;
	}
}

@media screen and (max-width: 600px) {
	.item__caption.sub .item__caption-title {
		font-size: 10px;
	}
}