/* Footer and back-to-top. */
.site-footer {
	position: relative;
	padding: var(--space-8) 0 var(--space-5);
	background: var(--bg-1);
	border-top: 1px solid var(--border);
}

.site-footer::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--gradient-brand);
}

.footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: var(--space-7);
}

.footer__brand img {
	width: auto;
	height: 96px;
	margin-bottom: var(--space-4);
}

.footer__brand p {
	max-width: 42ch;
	color: var(--text-muted);
	font-size: var(--fs-sm);
}

.footer__socials {
	display: flex;
	gap: var(--space-3);
	margin-top: var(--space-5);
}

.footer__title {
	margin-bottom: var(--space-4);
	font: 500 var(--fs-xs) var(--font-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-faint);
}

.footer__list {
	display: grid;
	gap: var(--space-3);
	font-size: var(--fs-sm);
}

.footer__list a {
	color: var(--text-muted);
}

.footer__list a:hover {
	color: #fff;
}

.footer__list i {
	width: 1.2em;
	margin-right: 0.4rem;
	color: var(--accent-cyan);
}

.footer__bottom {
	margin-top: var(--space-7);
	padding-top: var(--space-5);
	border-top: 1px solid var(--border);
	text-align: center;
	color: var(--text-faint);
	font-size: var(--fs-xs);
}

.to-top {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid var(--border-strong);
	border-radius: 50%;
	background: rgba(4, 6, 13, 0.85);
	backdrop-filter: blur(8px);
	color: #fff;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s var(--ease);
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.to-top:hover {
	border-color: var(--accent-cyan);
	box-shadow: var(--glow-cyan);
}

@media (max-width: 767px) {
	.footer__grid {
		grid-template-columns: 1fr;
		gap: var(--space-6);
	}
}


/* Skyline rising out of the footer */
.footer__skyline {
position: absolute;
left: 0;
bottom: 100%;
z-index: 0;
width: 100%;
height: clamp(80px, 11vw, 150px);
object-fit: cover;
object-position: center bottom;
opacity: 0.5;
pointer-events: none;
mask-image: linear-gradient(to top, #000 50%, transparent);
}

/* Leave room for the skyline that rises out of the footer */
main > .section:last-of-type {
padding-bottom: calc(var(--section-pad) + 4rem);
}
