@font-face {
    font-family: 'Ortica';
    src: url('fonts/ClashGrotesk-Regular.woff2') format('woff2');
    font-style: normal;
}
@font-face {
    font-family: 'OrticaAngular';
    src: url('fonts/OrticaAngular-Bold.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    min-height: 100vh; 
    position: relative; 
    overflow: hidden; 
}

/* --- TITLES & UI --- */

#main-title {
    position: fixed; 
    top: 20px;
    left: 20px;
    margin: 0;
    padding: 10px 15px;
    font-family: 'Ortica', sans-serif;
    font-size: 1em;
	letter-spacing: 2px;
    color: #333; 
    z-index: -100; 
    font-weight: normal; 
}

#main-contact {
    position: fixed; 
    top: 20px;
    left: 200px;
    margin: 0;
    padding: 10px 15px;
    font-family: 'Ortica', sans-serif;
    font-size: 1em;
	letter-spacing: 2px;
    color: #333; 
    z-index: -100; 
	font-weight: normal; 
}

#main-text {
    position: fixed; 
    top: 100px;
    left: 20px;
    margin: 0;
    padding: 10px 15px;
	max-width: 1100px;
    font-family: 'OrticaAngular', sans-serif;
    font-size: 4em;
    color: #333; 
    z-index: -100; 
}

/* --- CAPTIONS --- */

#bg-title-caption {
    position: fixed;
    top: 80%;        
    left: 20px;      
    text-align: left;
    font-family: 'OrticaAngular', sans-serif; 
    font-size: 1em;
    color: #333;
    pointer-events: none; 
    z-index: 999; 
	transition: 0.5s;    
}

#bg-detail-caption {
    position: fixed;
    top: 80%; 
    left: 200px;
    text-align: left;
    font-family: 'Ortica', sans-serif; 
    font-size: 1em;
    color: #333;
    pointer-events: none; 
    z-index: 999;
	transition: 0.5s; 
}

#bg-caption {
    position: fixed;
    top: 80%; 
    left: 60%;    
    text-align: left;
    font-family: 'Ortica', sans-serif; 
    font-size: 1em;
    color: #333;       
    pointer-events: none; 
    z-index: 999;   
	transition: 0.5s;       

}

/* --- IMAGES --- */

#centered-image {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    z-index: -50; 
    display: none; 
    pointer-events: none;
}

.float-item {
    display: block;
	max-width: 20vw;
    position: absolute; 
    will-change: transform; 
    cursor: grab;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.1s ease; 
    
    /* CRITICAL FOR TOUCH: Prevents browser scrolling/zooming */
    touch-action: none; 
}

.float-item.hidden {
    opacity: 0;
    pointer-events: none; 
    transition: opacity 2s ease 2s; 
}

.float-item:active {
    cursor: grabbing;
}

.float-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
}

/* --- MOBILE & TABLET (Max-Width 768px) --- */
@media (max-width: 768px) {
    #main-text {
        font-size: 2em; 
        top: 80px;      
        width: 90%;     
    }

    #main-contact {
		top: auto;
        bottom: 20px;  
		left: 20px;     
		text-align: left;  
		right: auto;  
    }

    #bg-title-caption {
        top: auto;
        bottom: 90px;
        left: 20px;
        text-align: left;
        right: auto;
    }

    #bg-detail-caption {
        top: auto;
        bottom: 60px;
        left: 20px;
        text-align: left;
        right: auto;
    }

    #bg-caption {
        bottom: 20px;
        left: 20px;
        width: 90%;
    }
    
    #centered-image {
        max-width: 90vw;
    }
	
	.float-item {
		max-width: 35vw;
		}
}