/*
	DeoGlo customizations: WebP background, logo image, three.js canvas layer.
	Loaded after main.css so these rules win without editing the compiled file.
*/

/* WebP background where supported; browsers without image-set() keep the jpg from main.css */
#bg:after {
	background-image: -webkit-image-set(url("../../images/bg.webp") type("image/webp") 1x, url("../../images/bg.jpg") type("image/jpeg") 1x);
	background-image: image-set(url("../../images/bg.webp") type("image/webp") 1x, url("../../images/bg.jpg") type("image/jpeg") 1x);
	/* keep the static image under the canvas (overlay stays at z-index 2 above both) */
	z-index: 0;
}

/* three.js canvas mirrors the template's #bg:after transform/blur behaviour */
#bg canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	opacity: 0;
	transform: scale(1.125);
	transition: opacity 1.2s ease-in-out, transform 0.325s ease-in-out, filter 0.325s ease-in-out;
}

body.has-webgl #bg canvas {
	opacity: 1;
}

body.is-article-visible #bg canvas {
	transform: scale(1.0825);
	filter: blur(0.2rem);
}

/* logo image centered inside the circle, ~65% of its diameter, proportions kept */
#header .logo {
	display: flex;
	align-items: center;
	justify-content: center;
}

#header .logo picture {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

#header .logo img {
	display: block;
	width: 65%;
	height: 65%;
	object-fit: contain;
}

/* honeypot: off-screen for people, still a normal filled-in field for bots.
   Not display:none - the simplest bots skip hidden inputs. */
#contact-form .hp-field {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* status line under the form; hidden while empty */
#contact-form .form-status {
	margin: 1rem 0 0 0;
	font-size: 0.9rem;
	color: #8fe0a5;
}

#contact-form .form-status.is-error {
	color: #ff9d8a;
}

#contact-form .form-status:empty {
	display: none;
}

/* X brand icon as inline SVG (FontAwesome 5 has no fa-x-twitter) */
.icon.icon-x-brand svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
	vertical-align: -0.125em;
}

/* brand logo inside articles: centered, transparent, not full-bleed */
.image.main.brand {
	text-align: center;
}

/* no dark overlay rectangle behind the transparent logo */
.image.main.brand:before {
	display: none;
}

.image.main.brand img {
	display: block;
	width: auto;
	max-width: 25%;
	max-height: 6.5rem;
	margin: 0 auto;
}
