article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block;}audio,canvas,video{display:inline-block;}audio:not([controls]){display:none;height:0;}[hidden]{display:none;}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;}body{margin:0;}a:focus{outline:thin dotted;}a:active,a:hover{outline:0;}h1{font-size:2em;margin:0.67em 0;}abbr[title]{border-bottom:1px dotted;}b,strong{font-weight:bold;}dfn{font-style:italic;}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0;}mark{background:#ff0;color:#000;}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em;}pre{white-space:pre-wrap;}q{quotes:"\201C" "\201D" "\2018" "\2019";}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sup{top:-0.5em;}sub{bottom:-0.25em;}img{border:0;}svg:not(:root){overflow:hidden;}figure{margin:0;}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em;}legend{border:0;padding:0;}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0;}button,input{line-height:normal;}button,select{text-transform:none;}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;}button[disabled],html input[disabled]{cursor:default;}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}textarea{overflow:auto;vertical-align:top;}table{border-collapse:collapse;border-spacing:0;}
*,
*::after,
*::before {
	box-sizing: border-box;
}

/* Root-level variables for global styles */
:root {
	font-size: 15px;
}

html, body {
	height: 100%; /* Ensure full viewport coverage */
	margin: 0; /* Reset default margin */
	padding: 0; /* Reset default padding */
}

body {
	/* Define custom properties (variables) for styling */
	--color-text: #0E0E0E;
	--color-text-frame: #FFFFFF;
	--color-bg: #FFFFFF;
	--color-link: #FFFFFF;
	--color-link-hover: #FF0052;
	--color-intro-bg: #0E0E0E;
	--color-intro-title: #FFFFFF;
	--color-enter: #FF0052;
	--color-content-title: #0E0E0E;

	/* Use custom properties in styling rules */
	color: var(--color-text);
	background-color: var(--color-bg);
	font-family: 'Futura', 'futura-pt', sans-serif;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.demo-4 {
	/* Define specific properties for the .demo-4 class */
	--color-bg: #FF0052;
	--color-overlay-1: #0E0E0E;
	--color-overlay-2: #FF0052;
	--color-overlay-3: #FF0052;
	--color-menu-link: #0E0E0E;
	--color-menu-link-hover: #FFFFFF;

	/* Example rules to prevent parsing issues */
	background-color: var(--color-bg);
	color: var(--color-menu-link);
}

main {
	width: 100%;
	height: 100%;
	position: relative;
	display: grid;
	grid-template-columns: 100%;
	grid-template-rows: 100%;
	align-items: center;
}

/* Page Loader */
.js .loading::before {
	content: '';
	position: fixed;
	z-index: 100000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-intro-bg);
}

.js .loading::after {
	content: '';
	position: fixed;
	z-index: 100000;
	top: 50%;
	left: 50%;
	width: 30px;
	height: 30px;
	margin: -15px 0 0 -15px;
	pointer-events: none;
	opacity: 0.4;
	background: var(--color-intro-title);
	transform-origin: 50% 100%;
	transform: rotate3d(0,0,1,45deg);
	animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
	to {
		opacity: 1;
		transform: rotate3d(0,0,1,45deg) scale3d(1,0,1) rotate3d(0,0,1,-180deg);
	}
}

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

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

.frame {
	padding: 3rem 5vw;
	text-align: center;
	position: relative;
	color: var(--color-text-frame);
}

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

.frame__links {
	display: inline-block;
	margin: 0 0 1rem;
}

.frame__links a,
.frame__demos a {
	margin: 0 0 0 1rem;
}


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

.content,
.content__move {
	width: 100%;
	height: 100vh;
	display: grid;
	grid-template-columns: 100%;
	grid-template-rows: 100%;
	align-items: center;
	grid-area: 1 / 1 / 2 / 2;
	justify-self: center;
	position: relative;
}

.content--hidden {
	pointer-events: none;
}

.content__move {
	will-change: transform;
	overflow: hidden;
	background: var(--color-intro-bg);
}

.content--first {
	position: fixed;
}

.content--second {
	pointer-events: none;
}

.content--second a,
.content--second button {
	pointer-events: auto;
}

.content__reverse {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	will-change: transform;
}

.intro {
	position: relative;
	display: grid;
	grid-template-rows: auto 40vh 20vh auto;
	grid-template-columns: 100%;
	align-items: center;
	justify-items: center;
	width: 100vw;
	height: 100vh;
}



.intro__img {
    width: 230px;
    height: 100%;
    max-height: 700px;
    position: relative;
    grid-row: 2 / span 2;
    grid-column: 1;
}

.intro__img-element {
    width: 100%; /* Ensures the image fits the container width */
    height: 100%; /* Ensures the image fits the container height */
    object-fit: cover; /* Mimics 'background-size: cover' */
    object-position: center; /* Mimics 'background-position: 50% 50%' */
}

.intro__title {
	position: relative;
	grid-row: 2 / span 2;
	grid-column: 1;
	font-family: tenez, sans-serif;
	font-weight: 700;
	font-size: 8vw;
	line-height: 1;
	margin: 0;
	color: var(--color-intro-title);
	cursor: default;
}

.intro__title span {
	will-change: transform;
	display: inline-block;
	white-space: pre;
}

.intro__enter {
	position: relative;
	grid-row: 3;
	grid-column: 1;
	color: var(--color-enter);
	font-size: 1.9rem;
	will-change: transform;
}

.intro__enter::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scale3d(0,1,1);
	opacity: 0;
	top: calc(100% + 0.15rem);
	left: 0;
	transform-origin: 0% 50%;
	transition: opacity 0.3s, transform 0.3s;
}

.intro__enter:hover::after {
	opacity: 1;
	transform: scale3d(1,1,1);
}

.content--grid {
	padding: 2rem;
	grid-template-columns: 50% 50%;
	grid-template-rows: 40px auto auto auto auto;
	grid-template-areas: 	'back social'
							'title title'
							'text text'
							'select select'
							'reel reel';
}

.content__back {
	background: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='32px' height='22px' viewBox='0 0 32 22' %3E %3Cpath d='M1.301 10.658L11.615.344 14.39 3.12 8.616 8.893H30.73v3.923H8.617l5.773 5.774-2.775 2.774L1.301 11.05a.28.28 0 0 1 0-.392z' stroke='%23000000' stroke-width='1px' fill='none'/%3E %3C/svg%3E") no-repeat 50% 50%;
	margin: 0;
	border: 0;
	grid-area: back;
	width: 32px;
	height: 22px;
	align-self: start;
}

.content__back:focus,
.content__back:hover {
	outline: none;
	background: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='32px' height='22px' viewBox='0 0 32 22' %3E %3Cpath d='M1.301 10.658L11.615.344 14.39 3.12 8.616 8.893H30.73v3.923H8.617l5.773 5.774-2.775 2.774L1.301 11.05a.28.28 0 0 1 0-.392z' stroke='%23000000' stroke-width='1px' fill='%23000000'/%3E %3C/svg%3E") no-repeat 50% 50%;
}

.content__title {
	font-family: tenez, sans-serif;
	font-weight: 700;
	color: var(--color-content-title);
	font-size: 2.5rem;
	line-height: 1;
	position: relative;
	margin: 0 0 1rem 0;
	padding: 0 0 1rem 0;
	grid-area: title;
	cursor: default;
}

.content__title::after {
	content: '';
	position: absolute;
	width: 3rem;
	height: 1px;
	background: currentColor;
	top: 100%;
	left: 0;
}

.content__text {
	hyphens: auto;
	grid-area: text;
	color: var(--color-content-text);
}

.social {
	align-self: start;
	justify-self: end;
	grid-area: social;
}

.social__link {
	cursor: pointer;
	margin: 0 1rem 0 0;
	color: var(--color-social);
}

.social__link:hover {
	color: var(--color-social-hover);
}

.reel {
	grid-area: reel;
	align-self: start;
	max-width: 250px;
}

.reel__img {
	width: 200px;
	display: block;
	margin-bottom: 1.5rem;
	float: left;
}

.reel__number {
	width: 40px;
	height: 300px;
	display: block;
	margin: 0 0 1.5rem auto;
	font-size: 2.75rem;
	font-family: tenez, sans-serif;
	font-weight: 700;
	line-height: 1;
	transform-origin: 50% 1.357rem;
	color: var(--color-reel-number);
}

.reel__img + .reel__number {
	float: right;
}

.select {
	grid-area: select;
	color: var(--color-select);
}

.select__heading {
	display: inline-block;
	cursor: default;
}

.select__item {
	margin: 0 0 0 0.5rem;
	display: inline-block;
	cursor: pointer;
	color: var(--color-select-item);
}

.select__item:hover {
	color: var(--color-select-item-hover);
}

.select__item--current {
	color: var(--color-select-current);
}

.menu {
	grid-area: 1 / 1 / 5 / 4;
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	text-align: center;
}

.menu__link {
	font-family: tenez, sans-serif;
	font-weight: 700;
	font-size: 7vw;
	color: var(--color-menu-link);
	position: relative;
	line-height: 1;
	margin: 1.5rem 0;
	text-transform: lowercase;
}

.menu__link:focus,
.menu__link:hover {
	color: var(--color-menu-link-hover);
}

.menu__link span {
	display: inline-block;
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.overlay__inner {
	width: 200%;
	height: 200%;
	position: relative;
	flex: none;
	background: var(--color-overlay);
	will-change: transform;
}

.overlay__inner--color-1 {
	background: var(--color-overlay-1);
}

.overlay__inner--color-2 {
	background: var(--color-overlay-2);
}

.overlay__inner--color-3 {
	background: var(--color-overlay-3);
}

.demo-5 .intro__title,
.demo-5 .content__title,
.demo-5 .reel__number {
	font-family: petersburg-web, serif;
}

@media screen and (min-width: 53em) {
	main {
		overflow: hidden;
	}
	.frame {
		position: absolute;
		text-align: left;
		top: 0;
		left: 0;
		display: grid;
		align-content: space-between;
		width: 100%;
		max-width: none;
		height: 100vh;
		padding: 2rem 3rem;
		pointer-events: none;
		grid-template-columns: 50% 50%;
		grid-template-rows: auto auto auto;
		grid-template-areas: 'title demos'
							'... ...'
							'... ...';
	}
	.frame__title-wrap {
		grid-area: title;
		display: flex;
	}
	.frame__title {
		margin: 0;
	}
	.frame__tagline {
		position: relative;
		margin: 0 0 0 1rem;
		padding: 0 0 0 1rem;
		opacity: 0.5;
	}
	.frame__github {
		grid-area: github;
		justify-self: start;
		margin: 0;
	}
	.frame__demos {
		margin: 0;
		grid-area: demos;
		justify-self: end;
	}
	.frame__links {
		grid-area: links;
		padding: 0;
		justify-self: end;
		margin: 0 0 0 2rem;
	}
	.frame a {
		pointer-events: auto;
	}
	.content--first {
		position: relative;
	}
	.content--grid {
		padding: 3rem 3rem 2rem;
		grid-template-columns: 50% 250px auto;
		grid-column-gap: 1rem;
		grid-template-rows: repeat(4,25%);
		grid-template-areas: 	'back ... ...'
								'title reel ...'
								'text reel ...'
								'social reel select';
	}
	.content__title {
		font-size: 4.5rem;
		margin: 0 0 4rem 0;
		padding: 0 0 2rem 0;
	}
	.content__text {
		max-width: 250px;
	}
	.reel {
		margin: 0 0 -8rem 0;
	}
	.select {
		text-align: right;
		margin-top: auto;
		align-self: end;
	}
	.select__heading {
		display: block;
	}
	.select__item {
		display: block;
		margin: 0;
	}
	.social {
		margin-top: auto;
		align-self: end;
    	justify-self: start;
	}
}


@media screen and (min-width: 53em) {
	.pater {
		margin: 0;
		text-align: left;
		max-width: none;
		width: 250px;
		position: absolute;
		bottom: 0;
		left: 0;
	}
	.pater::before {
	content: 'DIY workshop';
		position: absolute;
		top: 1.5rem;
		left: 1.5rem;
		z-index: 10;
		color: #fff;
		transition: opacity 0.3s, transform 0.3s;
		will-change: transform, opacity;
	}
	.pater::after {
		content: '';
		position: absolute;
		width: 250px;
		height: 250px;
		background: #19191B;
		border-radius: 50%;
		z-index: -1;
		bottom: 0;
		left: 0;
		transform-origin: 0 0;
		transform: translate3d(-2.5rem,5.5rem,0);
		transition: transform 0.3s;
	}
	.pater__img {
		background: url(1.jpg) no-repeat 0 0;
		background-size: 137%;
		width: 225px;
		height: 225px;
		border-radius: 50%;
		position: absolute;
		bottom: -45px;
		left: -45px;
		transition: opacity 0.3s, transform 0.3s;
	}
	.pater__img::after {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		border-radius: 50%;
		background: rgba(57, 55, 69, 0.6);
	}
	.pater__title {
		color: #fff;
		position: absolute;
		width: 60%;
		display: block;
		font-weight: 500;
		margin: 3rem 0 0 1.5rem;
		font-size: 1rem;
		padding-right: 1rem;
		transition: opacity 0.3s, transform 0.3s;
		will-change: transform, opacity;
	}
	.pater__desc {
		display: block;
		color: #fff;
		font-size: 1rem;
		padding: 0 4rem 0 2rem;
		margin-bottom: 2rem;
		font-weight: 400;
		transform: translate3d(-10px, -10px, 0);
		opacity: 0;
		transition: opacity 0.3s, transform 0.3s;
		will-change: transform, opacity;
	}
	.pater__desc strong {
		font-weight: 600;
	}
	.pater:hover::before,
	.pater:hover .pater__img,
	.pater:hover .pater__title {
		opacity: 0;
		transform: translate3d(-10px, -10px, 0);
	}
	.pater:hover .pater__desc {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
	.pater:hover::after {
		transform: translate3d(-4.5rem,3.5rem,0) scale3d(1.25,1.25,1);
	}
}
