.reveal-up {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left {
	opacity: 0;
	transform: translateX(-24px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-scale {
	opacity: 0;
	transform: scale(0.96);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.is-visible {
	opacity: 1;
	transform: translate(0, 0) scale(1);
}
.reveal-group > * {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.6s ease,
		transform 0.6s ease;
	transition-delay: var(--reveal-delay, 0s);
}

.reveal-group.is-visible > * {
	opacity: 1;
	transform: translateY(0);
}

.reveal-group.is-visible .reveal-child {
	opacity: 1;
	transform: translateY(0);
}

@font-face {
	font-family: "Headings";
	src: url("fonts/ZeroCool.otf") format("opentype");
}

@font-face {
	font-family: "Text-thicker";
	src: url("fonts/Urbanist-ExtraBold.ttf") format("opentype");
}
@font-face {
	font-family: "Text-thick";
	src: url("fonts/Urbanist-Regular.ttf") format("opentype");
}
@font-face {
	font-family: "Text-normal";
	src: url("fonts/Urbanist-Medium.ttf") format("opentype");
}

@font-face {
	font-family: "Sub-headings";
	src: url("fonts/ClimateCrisis-Regular.ttf") format("opentype");
    ;
}   

    
:root {

	--primary-color: #8E977D; 
	--contrast-color: #DBCEA5;
	--accent-color: #F67D31;
	--accent-color-2: #262626;
	--cta-color: #FF9644;

	--text-dark: #111;
	--text-bright: #ECE7D1;

    --primary-color-shadow: #1a1a1a4c;

    --gap-default: 16px;
	--gap-medium: 32px;
	--header-height: 80px;
	--frame-size: 2px;
	--shadow-size: 16px;
    --text-dark-shadow-size: 5px;

	--customer-quote-bevel-size: 8rem;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
    background-color: var(--text-dark);
}
main{
    display: flex;
    flex-direction: column;
    gap: 64px
}
section{
	margin-bottom: 200px;
}
.content-width {
	margin: 3rem;
	width: calc(100%-3rem);
	/* padding: 3rem, 3rem; */
}



@media (prefers-reduced-motion: reduce) {
	.reveal-child {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

h1, h2, h3, h4{
    font-family: Headings;
    color: var(--text-bright);
    line-height: 90%;
}
h1 span, p span{
    color: var(--cta-color);
}
p span{
    font-family: Text-thicker;
}
h1 {
    font-size: 6.5rem;
	margin-bottom: 1rem;
    letter-spacing: 3px;
    /* -webkit-text-stroke: 0.1px var(--text-dark); */
    paint-order: stroke fill;
    -webkit-text-stroke: 4px var(--text-dark);
    text-shadow: var(--text-dark) 10px 2px 0;
}
h2{
	padding: 3rem 0;
	text-align: center;
    font-size: 4rem;
    margin-bottom: 0.6rem;
    paint-order: stroke fill;
    -webkit-text-stroke: 4px var(--text-dark);
    text-shadow: var(--text-dark) 0.3rem 0;
    
}
h3{
	color: var(--cta-color);
    font-size: 1.5rem;
    font-family: Headings;
	/* text-shadow: var(--text-dark) 0 0 0.1rem; */
}

p, a, button {
    font-family: Text-normal;
    color: var(--text-bright);
    font-size: 1.4rem;
    text-decoration: none;
}
button{
    border: var(--text-dark) 2px solid;
}

body {
	font-family: Arial, sans-serif;
    background-color: var(--primary-color);
    min-height: 100svh;
}

@media (min-width: 1440px) {
	body {
		width: 1440px;
		/* padding: 0 3rem; */
		margin: 0 auto;
	}
}
@media (max-width: 768px) {
	h1{
		font-size: 4rem;
	}
    h2{
		font-size: 3rem;
        text-align: center;
    }
	.content-width {
		margin: 1rem;

	}
}

/* HERO --------------------------- */
.hero-section{
    position: relative;
    display: flex;
	align-items: center;
    flex-direction: column;
    min-height: 600px;
    width: 1300px;
    /* background-color: red; */
    margin: auto;
}
.hero {

    padding: 2rem;
	display: flex;

	gap: 2rem;
    
    margin: auto;
    justify-content: center;
    align-items: stretch;
    /* background-color: blue; */
    width: 100%;
    /* pointer-events: none; */
}



.hero-title{
    display: flex;
    flex-direction: column;
    gap: 0;
    width: fit-content;

}

.hero-mats-logo{
    display: flex;
    align-items: start;
    gap: 16px;
    width: fit-content;
}
.hero-mats-logo img{
    height: 75px;
    /* margin-bottom: 15px; */

}
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 8px;

    width: fit-content;
    align-content: stretch;
    /* background-color: purple; */

}

.hero-content h1{
    width: fit-content;
    display: inline-block;
    line-height: 70%;
    
}

.hero-sub-and-buttons{
    display: flex;
    flex-direction: column;
    /* flex-grow: 1; */
    gap: 16px;
    width: fit-content;
    
    
}

.hero-sub-and-buttons > p{
    max-width: 32ch;
    font-size: 1.4rem;
    line-height: 120%;
    
    font-family: Text-thick;
    padding: 1rem 1.5rem;
    background-color: var(--text-dark);
    flex-grow: 1;
}

.hero-image {

	display: flex;
    position: relative;
    border: var(--text-dark) 2px solid;
    max-width: 550px;
    min-width: 400px;
    width: 100%;
    /* align-content: center; */
    /* align-items: stretch; */
    /* flex-shrink: 1; */
    /* display: block; */
    /* flex-grow: 1; */
}

.hero-image p{
    font-size: 0.8rem;
    padding: .3rem;
    position: absolute;
    color: rgb(119, 119, 255);
    bottom: 0;
    right: 0;
}
.page-button {
	display: flex;
    flex-grow: 1;
    height: fit-content;
    

	padding: 0.75rem 1.25rem;
    background-color: var(--contrast-color);

	transition: all 0.3s ease;
	box-shadow: 0px 0px 20px -10 var(--primary-color-shadow);
    border: var(--text-dark) 2px solid;
}
.page-button p{
	width: 100%;
	font-size: 1.2rem;
	color: var(--text-dark);
	font-family: Text-normal;
	text-decoration: none;
	text-align: center;
	align-content: center;

}
.page-button img{
	height: 30px;
}
.page-button:hover{
	box-shadow: 5px 5px 0px #000;
	cursor: pointer;
	transform: translateY(-3px) translateX(-3px);
	transition: all 0.2s ease-out;
}
.cta, .page-button:hover{
    background: var(--cta-color);
    color: var(--text-dark);
}
.cta{
	width: fit-content;
}

.hero-buttons{
    display: flex;
    gap: 16px;
    flex-grow: 1;
    align-content: flex-end;

    /* align-self: flex-end; */
}



/* MODAL */

.contact-modal {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(6px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	z-index: 1000;
}

.contact-modal.active {
	opacity: 1;
	pointer-events: auto;
}

.modal-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
}

/* CARD */

.card-wrapper {
	width: min(420px, calc(100vw - 2rem));
	aspect-ratio: 11 / 17;
	perspective: 1200px;
	cursor: grab;
	user-select: none;
	transform-origin: center center;
}

.card-wrapper.dragging {
	cursor: grabbing;
}

.card-wrapper.opening {
	animation: cardPopIn 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cardPopIn {
	0% {
		opacity: 0;
		transform: scale(0.05);
	}
	60% {
		opacity: 1;
		transform: scale(1.04);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

.card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	will-change: transform;
}

/* optional: a little extra life while idle */
.card-wrapper.idle .card-inner {
	filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.35));
}

.card-face {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	border-radius: 0;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	background: #000;
}

.front {
	transform: rotateY(0deg) translateZ(1px);
}

.back {
	transform: rotateY(180deg) translateZ(1px);
}

.card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.close-btn {
	position: absolute;
	top: 0.8rem;
	right: 0.8rem;
	width: 2.2rem;
	height: 2.2rem;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
	z-index: 5;
}

.close-btn:hover {
	background: rgba(255, 255, 255, 0.16);
	transform: scale(1.06);
}

/* PDF BUTTON */

.download-button{
	display: flex;
	align-items: stretch;
	background-color: var(--cta-color);
}
.button-icon{
	display: flex;
	align-items: stretch; /* this is actually default */
}

.button-icon img{
	display: block;
	height: 40px;
	object-fit: contain; /* keeps SVG proportions */
}

/* FLOATING BUTTON */

.contact-fab {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	width: 72px;
	height: 72px;
	border: none;
	border-radius: 18px;
	padding: 0.75rem;
	background: #111;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	transform: translateY(16px) scale(0.9);
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 1001;
}

.contact-fab.visible {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.contact-fab img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@media (max-width: 700px) {
	.contact-modal {
		backdrop-filter: none;
	}

	.card-wrapper {
		width: min(380px, calc(100vw - 1.25rem));
	}

	.card-wrapper.minimizing {
		transform: translate(34vw, 55vh) scale(0.2);
	}
}

@media (prefers-reduced-motion: reduce) {
	.contact-modal,
	.contact-fab,
	.page-button,
	.save-pdf-btn,
	.close-btn {
		transition: none;
	}

	.card-wrapper.minimizing,
	.card-inner {
		transition: none !important;
	}
}

/* Mobile */
@media (max-width: 1279px) {
    .hero-section{
        width: 100%;
        justify-content: center;
    }
    .hero-image {
        max-width: 400px;
    }
}
@media (max-width: 1023px) {
	.hero {
        margin-top: 100px;
		flex-direction: column;
        width: fit-content;
        /* background-color: red; */
	}
	.hero-image {
		max-width: 100%;
        min-height: 400px;
	}
}
@media (max-width: 768px) {


	.hero-mats-logo img{
		height: 55px;
		/* margin-bottom: 15px; */

	}
	.hero-sub-and-buttons > p {
		font-size: 1.4rem;
		max-width: 100%;
	}
    .hero-section{
        /* width: 100%; */
        /* background-color: red; */
        margin: auto;
		margin-bottom: 100px;
    }


	.hero-image {
		/* max-width: 100%; */
        /* min-height: 400px; */
	}
	.hero{
		width: 100%;
	}
	.hero-image{
		/* width: 100px; */
		min-width: 100%;
	}
		
	
	.page-button{
		padding: 0.5rem 0.25rem;
		font-size: 1rem;
	}
}

/* GALLERY */


.gallery-section h2{
	padding: 1rem 2rem;
    border-top: solid #ddb075;
	border-right: solid #c69356;
	border-bottom: solid #635a30;
	border-left:  solid #9c844a;
    border-width: 10px;
    box-shadow: inset 0 0 0 2px black, 0 6px 12px rgba(0,0,0,0.4);; /* inner stroke */
    outline: 2px solid black; /* outer stroke */
	background-color: var(--text-dark);
    width: fit-content;
    transform-origin: top center;
	transform: rotate(2deg);
    transition: transform 0.3s ease-out;
	cursor: pointer;
    margin: 30px auto;
}
.gallery-section h2.straight{
    transform: rotate(0deg);
}


.gallery-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.gallery-toolbar button{
    background-color: var(--contrast-color);
    color: var(--text-dark);
    font-family: Headings;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease-out;
    flex-grow: 1;
}
.gallery-toolbar button:hover{
	box-shadow: 5px 5px 0px #000;
	background-color: var(--cta-color);
	transform: translateY(-3px) translateX(-3px);
}

.gallery-toolbar .active{
    background-color: var(--cta-color) ;
}

.masonry-gallery {
    
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 220px;
	gap: 0.5rem;
	grid-auto-flow: dense;
}

.gallery-item {
	position: relative;
	overflow: hidden;
	/* border-radius: 0.4rem;
    corner-shape: bevel; */
    border: var(--text-dark) 2px solid;
	cursor: pointer;
	background: #1c1c1c;
    /* box-shadow: var(--text-dark) 0 0 3px 0px; */
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 1;
	transform: translateY(0) scale(1);
	transition:
		opacity 0.35s ease-out,
		transform 0.45s ease-out;
}

.gallery-item img.is-switching-out {
	opacity: 0;
	transform:  scale(1.115);
}

.gallery-item img.is-switching-in {
	opacity: 0;
	transform:  scale(1.115);
}

.gallery-item:hover img {
	transform: scale(1.03);
}

.gallery-item .is-fading {
	opacity: 0!important; 
}

.gallery-item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0);
	transition: background 0.3s ease-out;
	pointer-events: none;
}

.gallery-item:hover::after {
	background: rgba(0, 0, 0, 0.15);
}

.item-wide {
	grid-column: span 2;
}

.item-tall {
	grid-row: span 2;
}

.item-large {
	grid-column: span 2;
	grid-row: span 2;
}

.lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	z-index: 999;
}

.lightbox.active {
	opacity: 1;
	pointer-events: auto;
}

.lightbox-image {
	max-width: 95vw;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 0.5rem;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	background: none;
	border: none;
	color: white;
	font-size: 3rem;
	line-height: 1;
	cursor: pointer;
}



@media (max-width: 1000px) {
	.masonry-gallery {
		grid-template-columns: repeat(3, 1fr);
		grid-auto-rows: 200px;
	}
}

@media (max-width: 700px) {
	.masonry-gallery {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 180px;
	}

	.item-wide,
	.item-large {
		grid-column: span 2;
	}
}

@media (max-width: 480px) {
	.masonry-gallery {
		grid-template-columns: 1fr;
		grid-auto-rows: 220px;
	}

	.item-wide,
	.item-tall,
	.item-large {
		grid-column: span 1;
		grid-row: span 1;
	}
}


/* TESTIMONIALS */
 .testimonials {
	padding: 2rem 0;
	width: 100%;
	margin: 0 auto;
	background-color: var(--text-dark);
	border-top: 2px solid var(--text-dark);
	border-bottom: 2px solid var(--text-dark);

}

.testimonials h2{
    text-align: center;
}
.testimonial-container {
	display: grid;
	grid-template-columns: repeat(3, auto);
	gap: 1rem;
	justify-content: center;
	/* margin: auto; */
}

.testimonial-card {
	/* width: min(400px, calc(100% - 3rem)); */
	background: var(--text-bright);

    border: var(--text-dark) 2px solid;
	border-radius: 1rem;
	border-bottom-right-radius: var(--customer-quote-bevel-size);
    corner-shape: bevel; 
	/* overflow: hidden; */
	display: flex;
	flex-direction: column;

    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial-card:hover {
	transform: translateY(-8px);
}
.testimonial-card:hover .product-image img, .product-image video{
	transform: scale(1.05);
}
/* Product image */
.product-image {
	width: 100%;
	height: 220px;
	overflow: hidden;
	border-top-right-radius: 0.9rem;	
	border-top-left-radius: 0.9rem;
	corner-shape: bevel;
	margin-top: -1px;
}

.product-image img, .product-image video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	

}

/* Content */

.testimonial-content {
	
	display: flex;
	flex-direction: column;
	/* gap: 1rem; */
    flex-grow: 1;
}

.testimonial-content h3 {
	margin: 0;
    color: var(--cta-color);
}

.quote {
	padding: 1.5rem;
	font-style: italic;
    font-family: Text-thick;
    font-size: 1.2rem;
    flex-grow: 1;
    color: var(--text-dark);
	/* background: var(--text-bright); */
    
}
.quote span{
    font-family: Text-thicker;
    color: var(--text-dark);
}

/* Customer */



.customer {
	padding: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: auto;
	margin-bottom: -1px;
	background-color: var(--text-dark);
	flex: 1;
	margin-right: calc(var(--customer-quote-bevel-size)*0.8) ;

	border-top-right-radius: 0.5rem;
	corner-shape: bevel;
}

.customer img {
	background-color: var(--cta-color);

	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid var(--cta-color);
	object-fit: cover;
}

.name {
    
	font-weight: bold;
	margin: 0;
    color: var(--accent-color);

}

.title {
	font-size: 0.85rem;
	color: #777;
	margin: 0;

}

@media (max-width: 768px) {
	.testimonial-container {
		grid-template-columns: 1fr;

    
	}
    .testimonials h2{

        font-size: 3rem;

    }
}
/* PROJECTS */

.projects {

	padding: 6rem 8%;
    background-color: var(--accent-color-2);
    /* background-image: linear-gradient(45deg, var(--accent-color) 30%, var(--accent-color-gradient)) ; */
}

.projects-header {
	margin-bottom: 2.5rem;
    text-align: center;
}

.projects-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

.project-card {
	background: var(--text-bright);
	/* border-radius: 16px; */
	overflow: hidden;
	display: flex;
	flex-direction: column;
	/* min-height: 420px; */
	box-shadow: 0px 0px 10px -2px var(--primary-color-shadow);
}

.project-image-wrapper {
	position: relative;
	height: 210px;
	overflow: hidden;
}

.project-image-wrapper img {
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.project-info {
	flex: 1;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.project-info h3 {
	margin-bottom: 1rem;
	color: black;
    text-align: center;
}

.project-info p {
    font-size: 1rem;
	background-color: var(--accent-color);
    padding: 0.4rem 0.6rem 0.4rem 0.6rem;
    flex-grow: 1;
    text-align: center;
}



.projects-by-genre{
    background-color: var(--contrast-color);
}





/* EXPERIENCE --- --- --- --- --- --- --- */

.experience-content-wrapper{
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 20px;	
}

.experience-about{
	/* background-color: var(--text-dark) */
}
.profile-image {
	display: flex;
	align-items: flex-end; /* pushes content to bottom */
	background-color: var(--contrast-color);
	border: var(--text-dark) 2px solid;
}
.profile-image img{
	width: 100%;
	margin-top: -100px;
}

.profile-text{
	background-color: var(--text-dark);

	padding: 2rem;
}
.profile-text h2{
	color: var(--accent-color);
	font-size: 2rem;
	padding:0;
	margin-bottom: 0.1rem;
	text-align: start;
}
.profile-role{
	margin-bottom: 10px;
	opacity: 0.5;
}
.profile-text p{
	font-size: 1rem;
}





.section-header {
	margin-bottom: 32px;
}

.mats-and-experience{
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 20px;
}

.section-label {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.section-title {
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.1;
	margin-bottom: 12px;
}

.section-text {
	max-width: 680px;
	color: var(--text-dark);
	font-size: 1rem;
	line-height: 1.7;
}

.experience-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.experience-card {
	/* background: var(--text-bright); */
	display: flex;
	flex-direction: column;
	height: 100%;
	backdrop-filter: blur(14px);
	transition: transform 0.15s ease-out;
}

.experience-card:hover {
	transform: translateY(-6px);
}

.card-top {
	display: flex;
	justify-content: space-between;
	/* gap: 16px; */
	padding: 0 1rem;
	background-color: var(--text-dark);
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
	
	corner-shape: bevel;
	align-items: center;
	margin-bottom: -1px;

}
.card-bottom{
	display: flex;
	flex-direction: column;
	flex: 1;
	background-color: #222;
	padding: 1rem;
	padding-top: 1.5rem;
	border: 2px solid var(--text-dark);
	border-bottom-right-radius: 10px;
	border-bottom-left-radius: 10px;
	corner-shape: bevel;
}
.logo-wrap {
	height: 70px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.logo-wrap img {
	/* width: 100%; */
	/* height: 100%; */
	margin: auto;
	max-width: 100px;

	/* object-fit: cover; */
}

.timeline {
	font-size: 0.85rem;
	opacity: .3;
	color: var(--text-bright);
	text-align: right;
	padding: 1rem 0;
	justify-content: center;
}

.role {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 2px;
	
}

.company {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--contrast-color);
	margin-bottom: 14px;
	opacity: 0.7;
}

.description {
	color: var(--text-bright);
	line-height: 1.2;
	font-size: 0.96rem;
}

.metadata{
	display: flex;
	flex-wrap: wrap;
	flex: 1;
	/* background-color: red; */
	align-content: end;
	gap: 5px;
	margin-top: 30px;
}
.metadata p{
	font-size: .9rem;
	padding: 5px 10px;
	background-color: var(--text-dark);

}


@media (max-width: 860px) {
	.mats-and-experience {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {


	.card-top {
		align-items: flex-start;
	}

	.timeline {
		font-size: 0.8rem;
	}
}





/*  FOOTER */
.footer {
	/* background: var(--text-dark); */
	color: #f5f5f5;
    padding: 1rem 3rem;
    flex-grow: 1;
}

.footer-container {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2rem;

    flex-grow: 1;
}

.footer-left {
	flex: 1;
}

.footer-logo {
	max-width: 100px;
}

.some-icons{
	display: flex;
	gap: 5px
}
.some-icons a{

	background-color: var(--text-dark);
	padding: .75rem;   
	display: flex;
	justify-content: center;
	align-items: center; 
}

.some-icons img{
    height: 30px;
	max-width: 30px;
}


.footer-socials {
	margin-top: 1rem;
	display: flex;
	gap: 1rem;
}

.footer-socials a {
	color: #f5f5f5;
	text-decoration: none;
	font-size: 0.9rem;
	transition: opacity 0.2s ease;
}

.footer-socials a:hover {
	opacity: 0.6;
}

.footer-bottom p{
	padding-top: 1rem;
	text-align: center;
	font-size: 0.8rem;
	color: #888;
}


/* Animations */
.project-card {
	transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.project-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 0px 20px -3px var(--primary-color-shadow);
    cursor: pointer;
}

.project-image-wrapper img {
	transition: transform 0.15s ease-out;
}

.project-card:hover .project-image-wrapper img {
	transform: scale(1.05);
}

/* RIVE ------------------------------------------------ */

/* *:has(.rive-animation){
    position: relative;
} */
.relative{position: relative;}
.absolute{position: absolute;}
.front{z-index: 1;}
.back{z-index: -1;}
.rive canvas{
    position: absolute;
    /* pointer-events: none; */
    transform: translate(-50%, -50%);
}
#crab-animation{
    transform: translate(0, -50%);
	/* background-color: red; */
	margin-top: 50px;
}

.crab{

	position: relative;
}
.cover {
	position: relative;
	width: 100%;
	aspect-ratio: 640 / 400;
	min-height: 200px;
	overflow: hidden;
    pointer-events: none;
}
.cover canvas{
    
	position: absolute;
	top: 50%;
	left: 50%;
	display: block;

	/* keep aspect ratio */
	height: 100%;
	width: auto;

	/* center it */
	transform: translate(-50%, -50%);
}


.top{top:0;}
.right{right: 0;}
.bottom{bottom:0}
.left{left: 0;}
.h-middle{left: 30%;}

/* Mobile */
@media (max-width: 768px) {
    .rotate canvas{
        transform: translate(-50%, -50%) rotate(135deg);
    }

	#crab-animation{
		margin-top: -30px;
	}
	
}

@media (max-width: 1279px) {

    .projects-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
        
    }
    .projects-grid > :first-child {
        grid-column: span 2;
    }
}


/* Mobile */
@media (max-width: 768px) {
    /* PROJECTS */
    .projects {
		padding: 4rem 6%;
	}

	.projects-header h2 {
		font-size: 2rem;
	}


	.project-image-wrapper {
		height: 190px;
	}
    

    .projects-grid {
        display: grid;
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 2rem;
    }
}