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

:root {
	font-size: 14px;
	--color-text: #000;
	--color-bg: #f2f1eb;
	--color-link: #000;
	--color-link-hover: #000;
	--color-button: #f2f1eb;
	--color-button-hover: #00ffc8;
	--page-padding: 1rem;
	--columns: 15;
	--cursor-blend-mode: difference;
	--cursor-radius: 0;
	--heading: ""
}

.portfolio {
	--color-text: #fff;
	--color-bg: #000;
	--color-link: #00ffcc;
	--color-link-hover: rgb(255, 51, 51);
	--cursor-bg: #00ffcc;
	--cursor-blend-mode: exclusion;
	--gradient-text-1: #00ffcc;
	--gradient-text-2: rgb(111, 0, 255);

}

body {
	margin: 0;
	color: var(--color-text);
	background-color: var(--color-bg);
	font-family: "source-code-pro", monospace;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background-size: cover;
	background-position: 50% 50%;
	height: 100vh;
	scroll-behavior: smooth;;
}

p {
	text-align: center;
}

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

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

a:focus {
	outline: none;
	background: lightgrey;
}

a:focus:not(:focus-visible) {
	background: transparent;
}

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

body #cdawrap {
    justify-self: start;
}

.frame a {
	pointer-events: auto;
}

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

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

.frame__title-back {
	position: relative;
	display: flex;
	align-items: flex-end;
}

.frame__title-back span {
	display: none;
}

.frame__title-back svg {
	fill: currentColor;
}

.frame__prev {
	grid-area: prev;
}

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

.frame__demos-item:first-child {
	width: 100%;
}

a.frame__demos-item {
	font-weight: bold;
}

.footer-container {
	padding: 0 var(--page-padding);
	display: flex;
	flex-direction: column;
	min-height: 5vh;
	position: relative;
	justify-content: center;
	align-items: center;
	font-family: "greycliff-cf", sans-serif;
	font-weight: 300;
	z-index: 10;
}

.content {
	padding: 0 var(--page-padding);
	display: flex;
	flex-direction: column;
	min-height: 90vh;
	position: relative;
	justify-content: center;
	align-items: center;
	font-family: "greycliff-cf", sans-serif;
	font-weight: 300;
	z-index: 10;

}

canvas {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 0;
}

.content h2 {
    font-size: 16vw;
    line-height: 1;
    margin: 0;
    background-size: 100%;
    font-family: 'Mohai', sans-serif;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    background: linear-gradient(-45deg, #40ffa6, #2c00a5, #206cdd, #40ffa6);
    background-size: 400% 400%;
    animation: gradient 10s ease infinite;
    background-clip: text;
    position: relative; 
}

.content h2::before {
    content: var(--heading, '');
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 182px;
    opacity: .3;
    top: 0;
    left: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background-clip: text;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 100%;
	}
	100% {
		background-position: 0% 50%;
	}
}

.content h2 i {
	font-family: "lores-9-plus-wide", sans-serif;
	font-weight: 400;
	font-style: normal;
	letter-spacing: -1.75vw;
	font-size: 14.25vw;
}

.content p {
	margin: 3vh 0 0 0;
	max-width: 30ch;
	font-family: 'Romalika', sans-serif;
	font-weight: 400;
	font-size: clamp(1.5rem,2vw,2rem);
	font-variation-settings: "wght" 400, "opsz" 72, "ital" 0;
}

.cursor {
	height: 100%;
	position: fixed;
	width: 100%;
	left: 0;
	top: 0;
	pointer-events: none;
	z-index: 11;
	mix-blend-mode: var(--cursor-blend-mode);
	--size: calc(100vw / var(--columns));
}

.cursor__inner {
	display: grid;
	grid-template-columns: repeat(var(--columns), var(--size));
}

.cursor__inner-box {
	width: var(--size);
	height: var(--size);
	background: var(--cursor-bg);
	opacity: 0;
	border-radius: var(--cursor-radius);
}

@font-face {
    font-family: 'Romalika';
    src: url('/fonts/romalika.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Mohai';
    src: url('/fonts/mohai.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@media screen and (min-width: 95vw) {
	:root {
		--columns: 30;
		--page-padding: 2rem;
	}
	.frame {
		grid-template-columns: auto auto auto 1fr;
		grid-template-areas: 'title prev sponsor demos';
		justify-items: start;
		grid-gap: 2rem;
	}
	.frame__demos {
		justify-self: end;
	}
	.frame__demos-item:first-child {
		width: auto;
	}
	.content {
		align-items: center;
	}
}