
/* Variables */

:root {

	/* Sizes */

	--size-0: 8px;
	--size-1: 16px;
	--size-2: 24px;
	--size-3: 32px;
	--size-4: 48px;
	--size-5: 64px;
	--size-6: 80px;
	--size-7: 96px;
	--size-8: 112px;
	--size-9: 144px;
	--size-10: 160px;

	/* Colors */

	--color-dark: #0c2538;
	--color-dark-grey: #92a4b3;
	--color-light: #ffff;
	--color-light-grey: #dee7ee;

	--color-light-blue: rgb(12, 117, 202);
	--color-dark-blue: #00579D;
	--color-x-dark-blue: rgb(10, 50, 82);

	--color-light-pink: #EAC2D6;
	--color-dark-pink: rgb(222, 158, 190);
	--color-x-dark-pink: rgb(148, 58, 103);

	--color-light-green: #C0C89D;
	--color-dark-green: #9EAA69;
	--color-x-dark-green: #606D29;

	--color-light-orange: rgb(224, 96, 86);
	--color-dark-orange: #BB463D;
	--color-x-dark-orange: #852119;

	/* Fonts */
	--font-1: "forma-djr-display", sans-serif;
	--font-2: "forma-djr-mono", sans-serif;
	--font-3: "forma-djr-text", sans-serif;
	--font-4: "sutro", serif;
}

html {
	scroll-behavior: smooth;
}

html, body {
	cursor: url("/assets/Cursor.svg") 4 2, pointer;
}

a, button {
	cursor: url("/assets/Cursor-Clicked.svg") 6 2, pointer;
}

::selection {
	background-color: var(--color-x-dark-blue); 
	color: var(--color-light-blue); 
}

body{
	background-color: var(--color-light-grey);
	font-family: var(--font-1);
	overscroll-behavior: none;
}

	/* Fonts */

h1{
	font-family: var(--font-1);
	font-size: var(--size-5);
	line-height: 100%;
	font-weight: 900;
	margin-bottom: 0;
	color: var(--color-dark);
}

h2{
	font-size: var(--size-2);
	font-weight: 900;
}

h3{
	font-size: var(--size-1);
	font-weight: 600;
	color: var(--color-dark);
}

h4{
	font-size: 14px;
	font-family: var(--font-2);
	color: var(--color-dark-grey);
}

p{
	color: var(--color-dark);
	font-size: 16px;
	font-family: var(--font-3);
}

em{
	font-style: italic;
}

.body-content{
	padding: 8px;
}

	/* Nav */

nav{
	background-color: var(--color-light-grey);
	overflow: hidden;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center; 
	gap: 2px;
	overflow-x: auto;
	scrollbar-width: none; 
	padding: 8px;
	padding-bottom: 0px;
}

.nav-item{
	background-color: var(--color-light-grey);
	flex-grow: 1;
	text-align: center;
	transition: 0.4s ease-in-out;
	padding: 12px;
	a{
		text-align: center;
		font-family: var(--font-2);
		font-size: 12px;
	}
}

.nav-logo {
	display: none;
}

.nav-item:hover{
	background-color: #ffffff85;
	border-radius:12px;
}

#page-highlight{
	background-color: var(--color-light);
	border-radius: 12px;
	a{
		color: var(--color-dark);
	}
}

	/* Header */

header{
	padding: var(--size-1);
	overflow: hidden;
	background-color: var(--color-light);
	border-radius: var(--size-1);
	display: flex;
	flex-direction: column;
	height: 500px;
}

.header-text{
	display: flex;
	flex-direction: column;
	gap: var(--size-0);
}

#logo-animation{
	flex: 1;
	position: relative;
	--gap: clamp(8px, 2vw, 20px);
	--gif-size: clamp(96px, 10vw, 240px);
	padding-bottom: calc(var(--gif-size) + var(--gap));
	img{
		position: absolute;
		right: var(--gap);
		bottom: var(--gap);
		width: var(--gif-size);
		height: auto;
		z-index: 2;
	}
}

	/* Loading */
#loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--color-light, #fff);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	transition: opacity 0.5s ease;
}

/* Simple spinner animation */
.spinner {
	width: 50px;
	height: 50px;
	border: 4px solid #ccc;
	border-top-color: var(--color-dark, #000);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

/* Spin animation */
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

	/* Portfolio Blocks */

.portfolio-content{
	padding-top: 8px;
	padding-bottom: 8px;
}

.inline-links{
	background-color: var(--color-light);
	padding: var(--size-1);
	display: grid;
	grid-template-columns: repeat(1, auto);
	justify-content: center;	
	gap: var(--size-1);
	align-items: start;
	border-radius: var(--size-1);
}

.portfolio-blocks{
	text-align: center;
	height: 500px;
	background-color: var(--color-light);
	border-radius: 12px;
	position: relative;
	overflow: hidden;
}

.portfolio-cover-image{
	margin-bottom: var(--size-1);
	overflow: hidden;
	background-color: white;
}

.portfolio-cover-image img{
	width: 100%;  
	height: 100%;
	object-fit: cover; 
	object-position: center;
	display: block;
	transition: transform 0.5s ease;
}

.overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgb(222, 231, 238, 0.4);
	background: linear-gradient(
		135deg,
		rgb(148, 58, 103, 0.6),
		rgb(12, 117, 202, 0.5),
		rgb(224, 96, 86, 0.4)
	);
	z-index: 1;
	transition: opacity 0.5s ease-out;
}

.portfolio-blocks:hover .portfolio-cover-image img {
	transform: scale(1.02);
}

.portfolio-blocks:hover .overlay{
	opacity: 0;
}

.portfolio-label{
	z-index: 2;
	padding: 6px;
	padding-top: 8px;
	background-color: var(--color-light);
	position: absolute;
	bottom: var(--size-0);
	right: var(--size-0);
	display: flex;
	flex-direction: row;
	border-radius: 8px;
	box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1);
	transition: 0.4s ease-in-out;
	justify-content: center;
	align-items: center;
	p{
		font-family: var(--font-2);
		font-size: 12px;
		flex-grow: 1;
		padding-inline: 8px;
		transition: 0.4s ease-in-out;
		padding-bottom: 4px;
	}
}

.portfolio-blocks:hover{
	.portfolio-label{
		p{
			padding-inline: 10px;
		}
}
}

.portfolio-divider{
	border: 0;
	width: 2px;
	height: var(--size-1);
	background-color: var(--color-light-grey); 
	transition: 0.4s ease-in-out;
}

	/* Scroll Animation */

.scroll-scene {
	position: relative;
	height: 200vh; /* or 220vh; anything > 100vh works */
}

.sticky {
	position: sticky;
	top: 0;
	overflow: hidden;
	z-index: 0; 
}

.panel--back {
	z-index: 1;
}

.panel--front {
	z-index: 2;
	transform: translateY(calc((1 - var(--progress)) * 100%));
	will-change: transform;
	display: block; 
}

footer { position: relative; z-index: 0; }

.portfolio-blocks {
	transform: translateY(40px);
	opacity: 0;
	transition: transform 0.8s ease, opacity 0.8s ease;
}

.portfolio-blocks.visible {
	transform: translateY(0);
	opacity: 1;
}

header.gone {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

header.is-fading {
	transition: opacity 300ms ease, transform 300ms ease, filter 300ms ease;
}

@media (prefers-reduced-motion: reduce) {
	.panel--front { transform: none !important; }
	.scroll-scene { height: auto; }
}

	/* Footer */

footer{
	padding: var(--size-1);
	margin-top: 2px;
	display: flex;
	background-color: var(--color-light);
	border-radius: var(--size-1);
	flex-direction: column;
	justify-content: space-between;
	height: 80vh;
	transition: 1s ease-in-out;
	z-index: 4;
	padding-bottom: var(--size-3);
	h1{
		font-size: 60px;
	}
		.footer-row{
			display: flex;
			gap: var(--size-2);
			a{
				font-family: var(--font-2);
				text-decoration: underline;
				line-height: 2.2ch;
				font-size: calc(var(--size-1) * .8);
			}
			a:hover{
				color: var(--color-dark-pink);
			}
			p{
				font-family: var(--font-2);
				font-size: calc(var(--size-1) * .8);
			}
		}
	}

footer:hover{
	background-color: var(--color-dark);
	a, h1, p{
		color: white;
	}
}

.footer-top{
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: var(--size-2);
}

.footer-bottom{
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: var(--size-3)
}

@media (min-width: 768px) {

	:root{

	/* Sizes */

	--size-0: 16px;
	--size-1: 20px;
	--size-2: 32px;
	--size-3: 48px;
	--size-4: 64px;
	--size-5: 80px;
	--size-6: 96px;
	--size-7: 112px;
	--size-8: 144px;
	--size-9: 160px;
	--size-10: 176px;

	}
	
	p{
		font-size: 20px;
		line-height: 1.35;
	}


	header{
		padding: var(--size-1);
		padding-left: var(--size-3);
		padding-right: var(--size-3);
		padding-bottom: var(--size-3);
		height: 700px;
	}

	.header-text{
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items:end;
	}

	body{
		display: grid;
		grid-template-columns: 80px 1fr;
	}

	.body-content{
		padding: 8px;
		padding-left: 0px;
	}

	nav{
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		align-items: center; 
		gap: 8px;
		height: 100%;
	}
	
	.nav-item{
		width: 100%;
		padding: var(--size-2);
		display: block;
		-webkit-writing-mode: vertical-rl;
		-ms-writing-mode: tb-rl;
		writing-mode: vertical-rl;
		transform: rotate(180deg);
		text-align: center;
		display: flex;
		justify-content: center; 
		align-items: center;
		flex-grow: 0;
		border-radius: 0px;
		a{
			font-family: var(--font-2);
			font-size: 14px;
			line-height: 1ch;
		}
	}

	.nav-item:hover{
		border-radius: 21px;
	}

	#page-highlight{
		border-radius: 21px;
	}

	.nav-logo{
		display: block;
		margin-top: var(--size-1);
		width: 48px;
		top: 720px;
		position: fixed;
		z-index: 1800;
	}
	
	.inline-links{
		grid-template-columns: repeat(2, 1fr);
	}

	footer{
		gap: var(--size-2);
		padding: var(--size-3);
		align-items: center;
		z-index: 4;
		h1{
			font-size: 7vw;
		}
	}

	.footer-text{
		max-width: 380px;
	}

	.footer-top{
		width: 100%;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
}

	.footer-row{
		display: flex;
		flex-direction: row;
		gap: var(--size-4);
	}
}

@media (min-width: 1100px) {

	h1{
		font-size: 8vw;
	}

	.portfolio-label{
		p{
			font-size: 14px;
		}
	}

	.inline-links{
		grid-template-columns: repeat(3, 1fr);
		padding-top: var(--size-1);
		padding-bottom: var(--size-1);
		gap: var(--size-1);
		grid-auto-flow: dense;
	}

	#wide-block-1{
		grid-column: span 2;
		max-width: none;
		min-width: 0;
		width: 100%;
		.portfolio-cover-image{
			width: 100%;
			grid-column: span 2;
		}
		.portfolio-blocks{
			max-width: none;
			min-width: none;
		}
	}

	#wide-block-2{
		grid-column: span 2;
		max-width: none;
		min-width: 0;
		width: 100%;
		.portfolio-cover-image{
			width: 100%;
			grid-column: span 2;
		}
		.portfolio-blocks{
			max-width: none;
			min-width: none;
		}
	}

	footer{
		h1{
			font-size: 8vw;
		}
	}
}

@media (min-width: 1440px) {
	.inline-links{
		grid-template-columns: repeat(4, 1fr);
		padding: var(--size-1);
	}

}



