* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
*::-webkit-scrollbar {
    display: none;
}

:root {
	/* --- Colors (Global) --- */
	--bg-black: #000;
	--text-primary: rgba(255, 255, 255, 1);
	--text-secondary: rgba(255, 255, 255, 0.6);
	--modal-bg-overlay: rgba(0, 0, 0, 0.5);

	/* --- Category Themes --- */
	--color-urban: rgba(41, 234, 255, 0.5);
	--color-arch: rgba(255, 0, 0, 0.5);
	--color-granular: rgba(255, 255, 0, 0.5);
	--color-login: rgba(0, 255, 0, 0.5);

	/* --- LANDSCAPE SETTINGS --- */
	--modal-height-ls: 65vh;
	--header-y-ls: -40vh;
	--menu-y-ls: 85vh;
	--modal-y-ls: 0vh;
	--square-y-start-ls: -80vh;
	--square-y-exit-ls: 80vh;
	--col-width-ls: 25vw;
	--square-height-ls: 100vh;
	--btn-font-ls: 1vw;
	--image-speed-ls: 3s;
	--video-speed-ls: 6s;
	--transition-bg-ls: 1s;
	--transition-fast-ls: 0.3s;
	--transition-med-ls: 0.5s;
	--transition-slow-ls: 1s;

	/* --- PORTRAIT SETTINGS --- */
	--modal-height-pt: 55vh;
	--header-y-pt: -40vh;
	--header-y-hover-pt: -37vh;
	--menu-y-pt: 80vh;
	--modal-y-pt: -3vh;
	--square-y-start-pt: -80vh;
	--square-y-exit-pt: 80vh;
	--col-width-pt: 25vw;
	--square-height-pt: 100vh;
	--btn-font-pt: 3vw;
	--image-speed-pt: 3s;
	--video-speed-pt: 6s;
	--transition-bg-pt: 1s;
	--transition-fast-pt: 0.3s;
	--transition-med-pt: 0.5s;
	--transition-slow-pt: 1s;

	/* --- Global Variable DNA --- */
	--modal-height: var(--modal-height-ls);
	--header-y: var(--header-y-ls);
	--menu-y: var(--menu-y-ls);
	--modal-y: var(--modal-y-ls);
	--square-y-start: var(--square-y-start-ls);
	--square-y-exit: var(--square-y-exit-ls);
	--col-width: var(--col-width-ls);
	--square-height: var(--square-height-ls);
	--btn-font: var(--btn-font-ls);
	--image-speed: var(--image-speed-ls);
	--video-speed: var(--video-speed-ls);
	--transition-bg: var(--transition-bg-ls);
	--transition-fast: var(--transition-fast-ls);
	--transition-med: var(--transition-med-ls);
	--transition-slow: var(--transition-slow-ls);
}

* {
	-webkit-tap-highlight-color: transparent;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-user-drag: none;
}

html,
body {
	margin: 0;
	padding: 0;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
}

body {
	background-color: var(--bg-black);
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bg-carousel {
	position: absolute;
	top: -2vh;
	left: -2vw;
	width: 104vw;
	height: 104vh;
	z-index: -2;
	transition: filter var(--transition-med);
}

.bg-carousel.is-blurred {
	filter: blur(1vh);
}

.bg-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity var(--transition-bg);
	filter: brightness(0.5); /* BRIDGING: Restored for background branding */
}

.media-item {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity var(--transition-bg);
}

.bg-slide.active-bg {
	opacity: 1;
}

.media-item.active-media {
	opacity: 1;
}

/* Subtle Cinematic Motion (Zoom Out) */
.media-item.zoom-active {
	animation: zoom-ken-burns 3s ease-out forwards;
}

@keyframes zoom-ken-burns {
	0% { transform: scale(1.1); }
	100% { transform: scale(1); }
}

/* Global Cinematic Reveal for first entrance */
.reveal-active {
	animation: reveal-materialize 1.5s ease-out forwards !important;
}

@keyframes reveal-materialize {
	0% { opacity: 0; filter: blur(2vh) brightness(0.2); }
	100% { opacity: 1; filter: blur(0vh) brightness(1.0); }
}

.hitbox {
	position: absolute;
	bottom: 0;
	width: var(--col-width);
	height: 20vh;
	z-index: 500; /* Master Interactive Layer */
	cursor: pointer;
}

.hitbox.expanded {
	height: 100vh;
	cursor: default;
}

/* Individual Hitbox Positioning */
.hitbox[data-target=".square-001-anim"] { left: 0vw; }
.hitbox[data-target=".square-002"]      { left: 25vw; }
.hitbox[data-target=".square-003"]      { left: 50vw; }
.hitbox[data-target=".square-004"]      { left: 75vw; }

/* --- Square Base Configuration --- */
.square-001-anim,
.square-002,
.square-003,
.square-004 {
	position: absolute;
	top: 80vh;
	left: auto;
	opacity: 0;
	pointer-events: none;
}

/* --- Individual Square Colors/Positions --- */
.square-001-anim {
	--sq-left: 0vw;
	--sq-color: var(--color-urban);
}

.square-002 {
	--sq-left: 25vw;
	--sq-color: var(--color-arch);
}

.square-003 {
	--sq-left: 50vw;
	--sq-color: var(--color-granular);
}

.square-004 {
	--sq-left: 75vw;
	--sq-color: var(--color-login);
}

.square-001-anim.active,
.square-002.active,
.square-003.active,
.square-004.active {
	opacity: 1;
	animation: square-expand 0.5s forwards;
}

.square-001-anim.inverse,
.square-002.inverse,
.square-003.inverse,
.square-004.inverse {
	opacity: 1;
	animation: square-collapse 1s forwards;
}

@keyframes square-expand {
	0% {
		left: var(--sq-left);
		transform: translateY(var(--square-y-start));
		width: var(--col-width);
		height: 0.2vh;
		background-color: rgba(0, 0, 0, 0);
		filter: blur(0vh);
	}

	100% {
		left: var(--sq-left);
		transform: translateY(var(--square-y-start));
		width: var(--col-width);
		height: var(--square-height);
		background-color: var(--sq-color);
		filter: blur(var(--anim-blur, 0vh));
	}
}

/* ========================================= */
/* --- BOOTSTRAP OVERLAY & MINIMAL LOADER --- */
/* ========================================= */
#bootstrap-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: var(--bg-black);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	transition: opacity 1.5s ease-in-out;
}

#bootstrap-overlay.is-ready {
	opacity: 0;
	pointer-events: none;
}

.elegant-loader {
	width: 80px;
	height: 80px;
	border: 4px solid rgba(255, 255, 255, 0.05); /* Faint track */
	border-top: 4px solid var(--color-urban);    /* Glowing arc */
	border-right: 4px solid var(--color-urban);  /* Expanded arc for elegance */
	border-radius: 50%;
	position: relative;
	animation: spin-elegant 1.2s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
	box-shadow: 0 0 20px rgba(41, 234, 255, 0.2); /* Subtle glow */
}

@keyframes spin-elegant {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

@keyframes square-collapse {
	0% {
		left: var(--sq-left);
		transform: translateY(var(--square-y-start));
		width: var(--col-width);
		height: var(--square-height);
		background-color: var(--sq-color);
		filter: blur(var(--anim-blur, 0vh));
	}

	100% {
		left: var(--sq-left);
		transform: translateY(var(--square-y-exit));
		width: var(--col-width);
		height: 0.2vh;
		background-color: rgba(0, 0, 0, 0);
		filter: blur(0vh);
	}
}





.tuxter {
	user-select: none;
	filter: none;
	font-size: 8vw;
	font-family: 'Avenir', sans-serif;
	color: rgba(255, 255, 255, 1);
	letter-spacing: 4vw;
	text-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
	transition: all 0.5s ease-in-out;
	transform: translate(2vw, var(--header-y));
}

.tuxter:hover {
	filter: blur(0vw);
	font-size: 8vw;
	color: rgba(255, 255, 255, 1);
	letter-spacing: 6vw;
	transform: translate(3vw, var(--header-y));
}

.menuxter {
	position: fixed;
	top: var(--menu-y);
	left: 0;
	width: 100vw;
	display: flex;
	z-index: 100; /* Elevate above all modals */
	pointer-events: none; /* Let clicks pass through container */
}

.toxt {
	flex: 1 1 25%;
	display: flex;
	justify-content: center;
	align-items: center;
	user-select: none;
	filter: none;
	font-family: 'Travel', sans-serif;
	font-size: 6vw;
	color: rgba(255, 255, 255, 0.6);
	pointer-events: auto; /* ENABLE INDIVIDUAL BUTTONS */
	cursor: pointer;
	letter-spacing: 0.4vw;
	text-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease-in-out;
}

.toxt.active-text {
	font-size: 6vw;
	color: rgba(255, 255, 255, 1);
	letter-spacing: 1vw;
}


@font-face {
	font-family: 'Avenir';
	src: url('../fonts/avenir.woff') format('woff');
}

@font-face {
	font-family: 'Travel';
	src: url('../fonts/Travel.woff') format('woff');
}


/* --- Login Modal Styles --- */
.login-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: transparent; /* Removed dimmed background */
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 50; /* Below Menuxter Menu */
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
	pointer-events: none; /* Allow clicks to pass through to background menu */
}

.login-modal.active {
	display: flex;
	opacity: 1;
}

.square-content {
	box-sizing: border-box;
	border-radius: 30px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 40px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
	color: white;
	font-family: 'Avenir', sans-serif;
	overflow: hidden;
	position: relative;
	min-width: 320px;
	pointer-events: auto; /* Re-enable interaction for the box itself */
	
	/* --- IMMACULATE GLOBAL DNA --- */
	height: var(--modal-height);
	transform: translateY(var(--modal-y));
}

/* --- Category-Specific Modal Colors --- */
#urban-modal .square-content {
	background-color: var(--color-urban);
}

#arch-modal .square-content {
	background-color: var(--color-arch);
}

#granular-modal .square-content {
	background-color: var(--color-granular);
}

#login-modal .square-content {
	background-color: var(--color-login);
}


#login-modal .square-content {
	width: 45vh;
	/* Fixed rectangular shape for login, not full width */
}



.media-content {
	width: auto;
	height: var(--modal-height);
	aspect-ratio: 16 / 9;
	/* Cinematic for landscape */
}




/* Media Gallery Specifics */
.media-gallery {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.media-item {
	position: absolute;
	top: -1px; /* Bleed over the edge to fix sub-pixel lines */
	left: -1px;
	width: calc(100% + 2px);
	height: calc(100% + 2px);
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.5s ease-in-out;
	background-size: cover;
	background-position: center;
}

.media-item.active-media {
	opacity: 1;
}

.login-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 20px;
	width: 100%;
	height: 100%;
}


.login-content h1 {
	font-size: 7vw;
	margin: 0;
	letter-spacing: 0.5vw;
	font-weight: normal;
}


.login-content input {
	width: 100%;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	border-radius: 15px;
	padding: 15px 20px;
	color: white;
	font-family: 'Avenir', sans-serif;
	font-size: 4vw;
	outline: none;
	transition: background 0.3s;
}

.login-content input::placeholder {
	color: rgba(255, 255, 255, 0.6);
}

.login-content input:focus {
	background: rgba(255, 255, 255, 0.3);
}

button,
input,
.toxt-header,
.mixer-btn,
#exit-btn {
	border-radius: 8px !important;
	border: none !important;
	outline: none !important;
}

.login-content button {
	margin-top: 20px;
	background: white;
	color: black;
	padding: 15px 40px;
	font-family: 'Avenir', sans-serif;
	font-size: var(--btn-font);
	cursor: pointer;
	transition: all 0.3s;
	opacity: 0.8;
	/* Base state opacity */
}

.login-content button:hover {
	background: rgba(255, 255, 255, 0.9);
	transform: translateY(-2px);
	opacity: 1;
	/* Fully visible on hover */
}

#login-error {
	color: white;
	/* Changed from red to white */
	font-size: 3vw;
	height: 1em;
	margin: 10px 0 0;
}

@media (min-width: 768px) {
	.login-content h1 {
		font-size: 48px;
	}

	.login-content input {
		font-size: 18px;
	}

	.login-content button {
		font-size: var(--btn-font);
	}

	#login-error {
		font-size: 14px;
	}

	.square-content {
		height: var(--modal-height-ls);
	}
}


/* ========================================= */
/* --- PORTRAIT / MOBILE ADJUSTMENTS     --- */
/* ========================================= */
@media (orientation: portrait) {
	:root {
		--modal-height: var(--modal-height-pt);
		--header-y: var(--header-y-pt);
		--menu-y: var(--menu-y-pt);
		--modal-y: var(--modal-y-pt);
		--square-y-start: var(--square-y-start-pt);
		--square-y-exit: var(--square-y-exit-pt);
		--col-width: var(--col-width-pt);
		--square-height: var(--square-height-pt);
		--btn-font: var(--btn-font-pt);
		--image-speed: var(--image-speed-pt);
		--video-speed: var(--video-speed-pt);
		--transition-bg: var(--transition-bg-pt);
		--transition-fast: var(--transition-fast-pt);
		--transition-med: var(--transition-med-pt);
		--transition-slow: var(--transition-slow-pt);
	}
	.tuxter {
		font-size: 13vw;
		letter-spacing: 1.5vw;
	}

	.tuxter:hover {
		font-size: 13vw;
		letter-spacing: 2.5vw;
		transform: translate(3vw, var(--header-y-hover-pt));
	}


	.menuxter {
		top: var(--menu-y);
	}

	.hitbox {
		bottom: 12vh;
		/* Leaves the bottom 12% of the screen unclickable */
		height: 16vh;
		/* Hitbox now strictly wraps the text at 75vh */
	}

	.square-content,
	.media-content {
		width: auto;
		height: var(--modal-height);
		transform: translateY(var(--modal-y));
		/* Pinned height to avoid header overlap */
		max-width: 90vw;
		/* Safety limit for narrow screens */
		aspect-ratio: 1 / 1;
		/* Keep it square-focused on mobile */
		padding: 30px;
	}
}
/* --- INMACULATE ENGINE OVERRIDE --- */
:root {
    --conf-bg: rgba(0, 0, 0, 1);
    --conf-sidebar-bg: rgba(79, 79, 79, 0.5);
    --conf-grid-line-color: #636363;
    --conf-grid-line-opacity: 0.2;
    --conf-font-size: 0.55rem;
    --conf-letter-spacing: 0.15rem;
    --conf-grid-gap: 0px;
    --conf-grid-padding: 6px;
    --conf-video-min-width: 280px;
    --conf-grid-x-ls: 0vw;
    --conf-grid-y-ls: 10vh;
    --conf-grid-w-ls: 100vw;
    --conf-grid-h-ls: 70vh;
    --conf-left-col-w-ls: 0px;
    --conf-right-col-w-ls: 150px;
    --conf-sidebar-w-ls: 150px;
    --conf-sidebar-w-pt: 120px;
    --conf-video-w-ls: 130px;
    --conf-video-h-ls: 74px;
    --conf-header-y-ls: 1vh;
    --conf-menu-y-ls: 92vh;
    --conf-controls-y-ls: 82vh;
    --conf-sidebar-content-y-ls: 2vh;
    --conf-sidebar-content-y-pt: 10vh;
    --conf-sidebar-shift-y-ls: 0vh;
    --conf-sidebar-shift-y-pt: -8vh;
    --conf-grid-line-gap: 30px;
    --conf-grid-x-pt: 0vw;
    --conf-grid-y-pt: 15vh;
    --conf-grid-w-pt: 100vw;
    --conf-grid-h-pt: 55vh;
    --conf-left-col-w-pt: 0px;
    --conf-right-col-w-pt: 20px;
    --conf-video-w-pt: 105px;
    --conf-video-h-pt: 59.06px;
    --conf-header-y-pt: 2vh;
    --conf-menu-y-pt: 92vh;
    --conf-controls-y-pt: 75vh;
    --bg-black: rgba(0, 0, 0, 1);
    --text-primary: rgba(255, 255, 255, 1);
    --text-secondary: rgba(255, 255, 255, 0.6);
    --modal-bg-overlay: rgba(0, 0, 0, 0.5);
    --color-urban: rgba(41, 234, 255, 0.5);
    --color-arch: rgba(255, 0, 0, 0.5);
    --color-granular: rgba(255, 255, 0, 0.5);
    --color-login: rgba(0, 255, 0, 0.5);
    --modal-height-ls: 65vh;
    --header-y-ls: -40vh;
    --menu-y-ls: 85vh;
    --modal-y-ls: 0vh;
    --square-y-start-ls: -80vh;
    --square-y-exit-ls: 80vh;
    --col-width-ls: 25vw;
    --square-height-ls: 100vh;
    --btn-font-ls: 1vw;
    --image-speed-ls: 3s;
    --video-speed-ls: 6s;
    --transition-bg-ls: 1s;
    --transition-fast-ls: 0.3s;
    --transition-med-ls: 0.5s;
    --transition-slow-ls: 1s;
    --modal-height-pt: 55vh;
    --header-y-pt: -40vh;
    --header-y-hover-pt: -37vh;
    --menu-y-pt: 80vh;
    --modal-y-pt: -3vh;
    --square-y-start-pt: -80vh;
    --square-y-exit-pt: 80vh;
    --col-width-pt: 25vw;
    --square-height-pt: 100vh;
    --btn-font-pt: 3vw;
    --image-speed-pt: 3s;
    --video-speed-pt: 6s;
    --transition-bg-pt: 1s;
    --transition-fast-pt: 0.3s;
    --transition-med-pt: 0.5s;
    --transition-slow-pt: 1s;
    --conf-glass-blur: 0px;
}
