/* Basic reset and selection */
@font-face {
	font-family: 'PPMori-Regular';
	src: url('/fonts/PPMori-Regular.otf') format('opentype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'PPMori-SemiBold';
	src: url('/fonts/PPMori-SemiBold.otf') format('opentype');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'PPMori-RegularItalic';
	src: url('/fonts/PPMori-RegularItalic.otf') format('opentype');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: 'PPMori-SemiBoldItalic';
	src: url('/fonts/PPMori-SemiBoldItalic.otf') format('opentype');
	font-weight: 600;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: 'PPMori-Extralight';
	src: url('/fonts/PPMori-Extralight.otf') format('opentype');
	font-weight: 200;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'PPMori-ExtralightItalic';
	src: url('/fonts/PPMori-ExtralightItalic.otf') format('opentype');
	font-weight: 200;
	font-style: italic;
	font-display: swap;
}
* {
	box-sizing: border-box;
}
html,
body {
	margin: 0;
	padding: 0;
}
::selection {
	background-color: #ff85a1;
}
:root {
	--space-1: 8px;
	--space-2: 16px;
	--space-3: 24px;
	--space-4: 32px;
	--space-6: 48px;
	--space-9: 72px;
}

/* Container fade-in */
@keyframes fadeInBlur {
	0% {
		opacity: 0;
		filter: blur(10px);
	}
	100% {
		opacity: 1;
		filter: blur(0);
	}
}
.portfolio-container {
	animation: fadeInBlur 3s ease-in-out forwards;
}

/* Noise overlay */
.noise {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 999999;
	opacity: 0.1;
}
@keyframes noise-animation {
	0% {
		background-position: 0 0;
	}
	100% {
		background-position: 500px 500px;
	}
}
.noise-animate {
	animation: noise-animation 5s ease-in-out infinite;
}

/* Global */
body {
	background-color: #0d0d0d;
	color: #fff;
	font-family: 'PPMori-Regular', system-ui, -apple-system, Segoe UI, Roboto,
		Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
	cursor: crosshair;
}
.p {
	margin: 0;
}
.digital {
	font-family: 'PPMori-RegularItalic', 'PPMori-Regular', system-ui,
		-apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial,
		sans-serif;
	font-style: italic;
}
h1 {
	font-size: 44px;
	font-family: 'PPMori-SemiBold', system-ui, -apple-system, Segoe UI, Roboto,
		Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
	font-weight: normal;
}

/* Background gradient glow behind content */
.gradient-blur {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background: radial-gradient(
			600px 600px at 30% 20%,
			rgba(255, 133, 161, 0.15),
			transparent 60%
		),
		radial-gradient(
			400px 400px at 70% 30%,
			rgba(255, 192, 203, 0.12),
			transparent 60%
		);
}

/* Layout */
.portfolio-container {
	max-width: 1200px;
	margin: 70px auto 0 auto;
}
.intro-section {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--space-9);
}
.intro-words {
	margin: 0;
}
.hasque-status {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-3);
	margin-top: var(--space-3);
	align-items: start;
}
.status-description {
	color: #7c7c83;
	margin-top: 4px;
}
.experiment-1 {
	width: 100%;
	height: auto;
	border-radius: 32px;
	box-shadow: 0 54px 60px rgba(0, 0, 0, 0.25);
}

/* Projects */
.projects {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
}
.small-box,
.big-box {
	width: 100%;
	aspect-ratio: 3 / 4;
	height: auto;
	border-radius: 32px;
	margin-top: var(--space-9);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.small-box-wrapper,
.big-box-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.title-description {
	width: 100%;
	max-width: 350px;
}
.job {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.job {
	margin-top: 24px;
	margin-bottom: 16px;
}
.work-description {
	color: #8a8a92;
	font-family: 'PPMori-Regular', system-ui, -apple-system, Segoe UI, Roboto,
		Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
}
.row2 {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	width: 100%;
	flex-basis: 100%;
}

/* Project colors */
.cofolios {
	background: #ff85a1;
}
.curve {
	background: #ffc0cb;
	display: flex;
	align-items: center;
	justify-content: center;
}
.instagram {
	background: linear-gradient(
		45deg,
		#ffc0cb 0%,
		#ff85a1 33%,
		#c2185b 66%,
		#9c27b0 100%
	);
	display: flex;
	align-items: center;
	justify-content: center;
}
.firstfloor {
	background: #c2185b;
}

/* Video & media styling */
.instagram-video,
.cofolios-resize,
.firstfloor-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 32px;
	box-shadow: 0 34px 40px rgba(0, 0, 0, 0.25);
}
.memory-media {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 32px;
	box-shadow: 0 34px 40px rgba(0, 0, 0, 0.25);
}
.slideshow {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 32px;
	overflow: hidden;
}
.slideshow .slide {
	position: absolute;
	inset: 0;
	opacity: 0;
}
@keyframes fadeCycle {
	0% {
		opacity: 0;
	}
	5% {
		opacity: 1;
	}
	25% {
		opacity: 1;
	}
	30% {
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}
.slideshow .slide {
	animation: fadeCycle 60s infinite;
}
.slideshow .slide:nth-child(1) {
	animation-delay: 0s;
}
.slideshow .slide:nth-child(2) {
	animation-delay: 6s;
}
.slideshow .slide:nth-child(3) {
	animation-delay: 12s;
}
.slideshow .slide:nth-child(4) {
	animation-delay: 18s;
}
.slideshow .slide:nth-child(5) {
	animation-delay: 24s;
}
.slideshow .slide:nth-child(6) {
	animation-delay: 30s;
}
.slideshow .slide:nth-child(7) {
	animation-delay: 36s;
}
.slideshow .slide:nth-child(8) {
	animation-delay: 42s;
}
.slideshow .slide:nth-child(9) {
	animation-delay: 48s;
}
.slideshow .slide:nth-child(10) {
	animation-delay: 54s;
}

/* Reveal on scroll */
.small-box-wrapper,
.big-box-wrapper {
	opacity: 0;
	transform: scale(0.9);
	filter: blur(5px);
	transition: opacity 1.5s cubic-bezier(0.87, 0.14, 0.22, 0.9),
		transform 1.5s cubic-bezier(0.87, 0.14, 0.22, 0.9),
		filter 1.5s cubic-bezier(0.87, 0.14, 0.22, 0.9);
}
.small-box-wrapper.animate-in,
.big-box-wrapper.animate-in {
	opacity: 1;
	transform: scale(1);
	filter: blur(0);
}

/* Experiments */
.experiments {
	margin-top: 120px;
	width: 100%;
}
.section-title {
	font-family: 'PPMori-SemiBold', system-ui, -apple-system, Segoe UI, Roboto,
		Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
	font-weight: 600;
}
.list {
	width: 100%;
	display: flex;
	flex-direction: column;
	margin: 0;
	font-size: 24px;
}
.list-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--space-4);
	font-family: 'PPMori-Regular', system-ui, -apple-system, Segoe UI, Roboto,
		Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
	font-style: normal;
	font-weight: 400;
	cursor: pointer;
	transition: opacity 0.2s ease, filter 0.2s ease;
	position: relative;
}
.list-item {
	white-space: nowrap;
}
.list-item .number {
	flex-shrink: 0;
	margin-left: var(--space-2);
}
.dividers {
	background: #202121;
	height: 1px;
	margin-bottom: var(--space-4);
}
.previous-experience {
	width: 300px;
}

/* Hover preview container */
@keyframes slideUpBounce {
	0% {
		transform: translateY(-16px);
		scale: 0.95;
		border-radius: 99px;
		filter: blur(8px);
	}
	100% {
		transform: translateY(-4px);
		scale: 1;
		border-radius: 32px;
		filter: blur(0);
	}
}
.video-container {
	position: fixed;
	z-index: 1000001;
	height: auto;
	width: auto;
	border-radius: 32px;
	display: none;
	justify-content: center;
	align-items: center;
	transition: opacity 0.3s ease, filter 0.3s ease;
	pointer-events: none;
}
.video-container.show {
	display: block;
	opacity: 1;
	animation: slideUpBounce 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* Align preview width with card widths */
.video-container video,
.video-container img {
	border-radius: 32px;
	width: 350px;
	height: auto;
	box-shadow: 0 34px 40px rgba(0, 0, 0, 0.25);
}
@media (max-width: 767px) {
	.video-container video,
	.video-container img {
		width: 100%;
		max-width: 491px;
	}
}
@media (min-width: 1200px) {
	.video-container video,
	.video-container img {
		width: 491px;
	}
}
.video-container video.small-screen {
	width: 100% !important;
}
.dim-all {
	opacity: 0.2;
	filter: blur(4px);
	transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Responsive */
@media (max-width: 767px) {
	.portfolio-container {
		margin: var(--space-4) auto;
		padding-inline: var(--space-3);
	}
	.intro-section {
		flex-direction: column;
		gap: var(--space-4);
	}
	.title-description {
		width: 100%;
	}
}
@media (min-width: 1200px) {
	.portfolio-container {
		width: 1200px;
	}
	.projects {
		margin: 0 auto;
	}
	h1 {
		font-size: 106px;
		line-height: 124px;
		margin: 0;
	}
	::-webkit-scrollbar {
		width: 1px;
	}
	::-webkit-scrollbar-thumb {
		background-color: #ff85a1;
		height: 12px;
		border-radius: 99px;
	}
	::-webkit-scrollbar-track {
		background: initial;
		border-radius: 0;
	}
}
@media (min-width: 1400px) {
	.portfolio-container {
		width: 1400px;
	}
	.projects {
		width: 1400px;
	}
	.list {
		width: 100%;
	}
}
h1 {
	font-size: clamp(44px, 7vw, 106px);
	line-height: clamp(52px, 9vw, 124px);
	font-family: 'PPMori-SemiBold', system-ui, -apple-system, Segoe UI, Roboto,
		Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
	font-weight: normal;
}
a,
a:visited {
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}
a:hover,
a:active {
	text-decoration: none;
	color: inherit;
}
a:focus-visible {
	outline: 2px solid rgba(255, 133, 161, 0.6);
	outline-offset: 3px;
	border-radius: 6px;
}
/* Neutralize double gaps when using Bootstrap rows */
.projects.row {
	gap: 0;
}
.row2.row {
	gap: 0;
}
