.site-footer {
	background: var(--color-bg-elevated);
	border-top: 1px solid var(--color-line);
	padding-block: var(--space-xl) var(--space-md);
	/* Editorial frame — see .work-intro in home.css. The background and border
	   above stay full-bleed; only the content is framed, which is what stops the
	   auto-fit tracks stranding Navigation and Contact in near-empty columns. */
	padding-inline: max(
		var(--gutter),
		(100% - (var(--content-max) - 2 * var(--gutter))) / 2
	);
}

.site-footer__intro {
	padding-bottom: var(--space-xl);
}

/* Type styling is retained for the no-logo fallback: with no Custom Logo set
   this still renders the site title exactly as before. The min-height holds the
   line box the text occupied (font-size x the inherited 1.5 line-height) so the
   tagline, grid and everything below keep their exact position whichever
   version renders. */
.site-footer__wordmark {
	display: flex;
	align-items: center;
	min-height: calc(var(--size-h2) * 1.5);
	font-family: var(--font-display);
	font-weight: 800;
	font-size: var(--size-h2);
	letter-spacing: -0.015em;
	text-transform: lowercase;
}

/* Width is derived from --size-h2 rather than hard-coded: the old text
   wordmark rendered at a constant 4.81x its font-size at every breakpoint, so
   this reproduces its exact horizontal footprint and stays responsive off the
   existing token. height:auto keeps the artwork's aspect ratio. */
.site-footer__wordmark img {
	display: block;
	width: calc(var(--size-h2) * 4.8);
	height: auto;
	max-width: 100%;
}

.site-footer__tagline {
	margin-top: var(--space-2xs);
	color: var(--color-fg-dim);
	font-size: var(--size-body);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--space-lg) var(--space-md);
	padding-bottom: var(--space-xl);
	border-bottom: 1px solid var(--color-line);
}

.site-footer__col-heading {
	font-size: var(--size-label);
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
	color: var(--color-fg-dim);
	margin-bottom: var(--space-sm);
}

.site-footer__office {
	font-size: var(--size-body);
}

.site-footer__office + .site-footer__office {
	margin-top: var(--space-lg);
}

.site-footer__email {
	display: inline-block;
	margin-top: var(--space-2xs);
	color: var(--color-fg-dim);
	border-bottom: 1px solid transparent;
	transition: border-color var(--duration-fast) var(--ease-out),
		color var(--duration-fast) var(--ease-out);
}

.site-footer__email:hover {
	color: var(--color-fg);
	border-color: currentColor;
}

.site-footer__nav {
	display: flex;
	flex-direction: column;
	gap: var(--space-2xs);
}

.site-footer__nav a {
	font-size: var(--size-h2);
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: 1.15;
	transition: color var(--duration-fast) var(--ease-out);
}

.site-footer__nav a:hover {
	color: var(--color-fg-dim);
}

.site-footer__bottom {
	padding-top: var(--space-md);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	flex-wrap: wrap;
	font-size: var(--size-small);
	color: var(--color-fg-dim);
}

.site-footer__parent a {
	color: var(--color-fg);
	border-bottom: 1px solid var(--color-fg-faint);
}

.site-footer__parent a:hover {
	border-color: var(--color-fg);
}

.site-footer__legal {
	display: flex;
	gap: var(--space-sm);
}

.site-footer__legal a:hover {
	color: var(--color-fg);
}

@media (max-width: 980px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.site-footer__grid {
		grid-template-columns: 1fr;
	}

	.site-footer__nav a {
		font-size: clamp(1.5rem, 1.2rem + 3vw, 2rem);
	}

	.site-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}
