/* Current Figma desktop source of truth — shared chrome. */
:root {
	--sb-shell: min(89.6vw, 1146.88px);
	--sb-header: 64px;
}

.site-header__inner {
	grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
	padding-right: 51.2px;
	padding-left: 51.2px;
}

.site-logo {
	font-size: 25px;
	font-weight: 760;
	letter-spacing: -1.75px;
}

.primary-nav .menu-item a {
	font-weight: 560;
}

@media (min-width: 1024px) {
	.primary-nav .menu-item a { height: var(--sb-header); }
	.primary-nav .menu-item a::after { bottom: 16px; }
}

.header-contact { height: 40px; }

.header-contact,
.primary-nav__mobile-contact {
	font-weight: 650;
}

.site-footer__logo {
	font-weight: 760;
}

@media (max-width: 1279px) {
	.site-header__inner {
		grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
	}
}

@media (max-width: 1023px) {
	.site-header__inner {
		grid-template-columns: 1fr auto;
		padding-right: 32px;
		padding-left: 32px;
	}
}

@media (max-width: 767px) {
	.site-header__inner {
		padding-right: 20px;
		padding-left: 20px;
	}
}

/* Final Figma integration: official marks and the dedicated Contact chrome. */
.site-logo {
	align-items: center;
	width: 158px;
	height: 32px;
	line-height: 0;
}

.site-logo img {
	display: block;
	width: 158px;
	height: 32px;
	object-fit: contain;
}

.site-logo:focus-visible,
.site-footer__logo:focus-visible {
	outline: 2px solid var(--sb-teal);
	outline-offset: 4px;
}

.site-header--contact {
	background: rgba(255, 255, 255, 0.94);
	border-bottom-color: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.site-header--contact .site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.header-home {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 148px;
	height: 40px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--sb-teal);
	color: #fff;
	font-size: 12px;
	font-weight: 650;
	letter-spacing: 1.44px;
	transition: background-color 0.25s ease, transform 0.25s var(--sb-ease);
}

.header-home:hover,
.header-home:focus-visible {
	background: #459f9a;
	transform: translateY(-1px);
}

.header-home:focus-visible {
	outline: 2px solid #0e6964;
	outline-offset: 3px;
}

.site-footer__logo {
	display: block;
	width: 154px;
	height: 135px;
	line-height: 0;
}

.site-footer__logo img {
	display: block;
	width: 154px;
	max-width: none;
	height: 135px;
	object-fit: contain;
}

[hidden] {
	display: none !important;
}

/* Footer navigation: keep CONTACT in the same six-cell rhythm on small screens. */
@media (max-width: 767px) {
	.footer-nav {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px 12px;
		align-items: start;
		min-height: 0;
		padding: 34px 0;
	}

	.footer-nav .menu {
		display: contents;
	}

	.footer-nav .menu li,
	.footer-nav > a {
		min-width: 0;
		margin: 0;
	}

	.footer-nav .menu a {
		display: block;
	}
}

/* A small amount of feedback in the shared chrome. */
.footer-nav a {
	position: relative;
	transition: color 0.28s ease;
}

.footer-nav a::after {
	position: absolute;
	right: 0;
	bottom: -7px;
	left: 0;
	height: 1px;
	background: currentColor;
	content: "";
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.32s var(--sb-ease);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.footer-nav a:hover,
	.footer-nav a:focus-visible { color: rgba(255, 255, 255, 0.94); }
	.footer-nav a:hover::after,
	.footer-nav a:focus-visible::after { transform: scaleX(1); }
	.site-footer__logo:hover img,
	.site-footer__logo:focus-visible img { transform: translateY(-2px) scale(1.012); }
}

.site-footer__logo img {
	transition: transform 0.34s var(--sb-ease);
}

@media (max-width: 767px) {
	:root { --sb-header: 58px; }

	.site-logo,
	.site-logo img {
		width: 134px;
		height: 27px;
	}

	.header-home {
		width: 112px;
		height: 42px;
		padding: 0 15px;
		font-size: 10px;
	}

	.site-footer__logo,
	.site-footer__logo img {
		width: 118px;
		height: 104px;
	}
}

/* Restrained page-entry motion: one pass, shallow depth, and no looping. */
@media (prefers-reduced-motion: no-preference) {
	.motion-enter .hero__visual > img,
	.motion-enter .service-detail__hero-image img,
	.motion-enter .sbp-about-hero__image,
	.motion-enter .sbp-recruit-hero > img,
	.motion-enter .sbp-media-hero > img,
	.motion-enter .sbp-news-hero > img {
		opacity: 0.9;
		transform: scale(1.012);
		transition: opacity 0.9s ease, transform 1.05s var(--sb-ease);
	}

	.motion-enter.motion-ready .hero__visual > img,
	.motion-enter.motion-ready .service-detail__hero-image img,
	.motion-enter.motion-ready .sbp-about-hero__image,
	.motion-enter.motion-ready .sbp-recruit-hero > img,
	.motion-enter.motion-ready .sbp-media-hero > img,
	.motion-enter.motion-ready .sbp-news-hero > img {
		opacity: 1;
		transform: scale(1);
	}

	.motion-enter .hero__copy,
	.motion-enter .hero__footer-copy,
	.motion-enter .hero__scroll,
	.motion-enter .service-detail__hero-panel,
	.motion-enter .sbp-about-hero__eyebrow,
	.motion-enter .sbp-about-hero__title,
	.motion-enter .sbp-about-hero__lead,
	.motion-enter .sbp-recruit-hero__back,
	.motion-enter .sbp-recruit-hero__eyebrow,
	.motion-enter .sbp-recruit-hero h1,
	.motion-enter .sbp-recruit-hero__lead,
	.motion-enter .sbp-news-hero__eyebrow,
	.motion-enter .sbp-news-hero h1,
	.motion-enter .sbp-news-hero h2 {
		opacity: 0;
		transform: translateY(8px);
		transition: opacity 0.58s ease, transform 0.68s var(--sb-ease);
	}

	.motion-enter.motion-ready .hero__copy,
	.motion-enter.motion-ready .hero__footer-copy,
	.motion-enter.motion-ready .hero__scroll,
	.motion-enter.motion-ready .service-detail__hero-panel,
	.motion-enter.motion-ready .sbp-about-hero__eyebrow,
	.motion-enter.motion-ready .sbp-about-hero__title,
	.motion-enter.motion-ready .sbp-about-hero__lead,
	.motion-enter.motion-ready .sbp-recruit-hero__back,
	.motion-enter.motion-ready .sbp-recruit-hero__eyebrow,
	.motion-enter.motion-ready .sbp-recruit-hero h1,
	.motion-enter.motion-ready .sbp-recruit-hero__lead,
	.motion-enter.motion-ready .sbp-news-hero__eyebrow,
	.motion-enter.motion-ready .sbp-news-hero h1,
	.motion-enter.motion-ready .sbp-news-hero h2 {
		opacity: 1;
		transform: translateY(0);
	}

	.motion-enter .hero__copy,
	.motion-enter .service-detail__hero-panel,
	.motion-enter .sbp-about-hero__eyebrow,
	.motion-enter .sbp-recruit-hero__back,
	.motion-enter .sbp-news-hero__eyebrow { transition-delay: 0.08s; }

	.motion-enter .hero__footer-copy,
	.motion-enter .sbp-about-hero__title,
	.motion-enter .sbp-recruit-hero__eyebrow,
	.motion-enter .sbp-news-hero h1 { transition-delay: 0.15s; }

	.motion-enter .hero__scroll,
	.motion-enter .sbp-about-hero__lead,
	.motion-enter .sbp-recruit-hero h1,
	.motion-enter .sbp-news-hero h2 { transition-delay: 0.22s; }

	.motion-enter .sbp-recruit-hero__lead { transition-delay: 0.29s; }

	.motion-enter .service-detail__hero-line,
	.motion-enter .sbp-recruit-hero__rule,
	.motion-enter .sbp-news-hero__rule {
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 0.72s var(--sb-ease) 0.28s;
	}

	.motion-enter.motion-ready .service-detail__hero-line,
	.motion-enter.motion-ready .sbp-recruit-hero__rule,
	.motion-enter.motion-ready .sbp-news-hero__rule { transform: scaleX(1); }
}

/* Complete link feedback without adding another reveal or a continuous animation. */
.sbp .sbp-news-row {
	transition: background-color .3s ease, box-shadow .3s ease,
		opacity .28s ease-out, transform .28s ease-out;
}
/* Reserve space for the active edge without moving text on hover or focus. */
@media (min-width: 768px) {
	.sbp .sbp-news-row time,
	.sbp .sbp-news-columns > span:first-child { padding-left: 20px; }
}
@media (max-width: 767px) {
	.sbp .sbp-news-row { padding-inline: 18px; }
}
.sbp .sbp-news-row > b { transition: translate .3s var(--sb-ease); }
.sbp .sbp-news-row:focus-visible,
.sbp .sbp-news-row.is-card-pressed {
	background: #edf7f4;
	box-shadow: inset 3px 0 0 #39a99b;
}
.sb-article-page .sb-article-consultation > a {
	transition: transform .3s var(--sb-ease), background-color .3s ease, box-shadow .3s ease;
}
.sb-article-page .sb-article-consultation > a:focus-visible,
.contact-form .contact-form__submit:focus-visible {
	outline: 2px solid #288a79;
	outline-offset: 4px;
}
.footer-nav a:focus-visible::after { transform: scaleX(1); }

@media (hover: hover) and (pointer: fine) {
	.sbp .sbp-news-row:hover { background: #edf7f4; box-shadow: inset 3px 0 0 #39a99b; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.sbp .sbp-news-row:hover > b { translate: 3px -2px; }
	.sb-article-page .sb-article-consultation > a:hover {
		transform: translateY(-2px);
		box-shadow: 0 10px 22px rgba(19, 67, 49, .13);
	}
}
@media (prefers-reduced-motion: no-preference) {
	.sbp .sbp-news-row:focus-visible > b { translate: 3px -2px; }
	.sbp .sbp-news-row.is-card-pressed > b { translate: 2px 0; }
	.service-detail .service-cta .shell > a:focus-visible,
	.sbp .sbp-about-cta > a:focus-visible,
		.sb-job .sb-job__apply:focus-visible,
	.sb-article-page .sb-article-consultation > a:focus-visible,
	.contact-form .contact-form__submit:focus-visible { transform: translateY(-2px); }
	.sbp .sbp-role-card.is-card-pressed,
	.service-detail .service-cta .shell > a.is-card-pressed,
	.sbp .sbp-about-cta > a.is-card-pressed,
		.sb-job .sb-job__apply.is-card-pressed,
	.sb-article-page .sb-article-consultation > a.is-card-pressed,
	.contact-form .contact-form__submit.is-card-pressed { transform: translateY(1px); }
}
@media (prefers-reduced-motion: reduce) {
	.sbp .sbp-news-row > b { transition: none; translate: none; }
	.sb-article-page .sb-article-consultation > a,
	.contact-form .contact-form__submit,
	.footer-nav a::after { transition: none; }
	.contact-form .contact-form__submit,
	.header-home:hover,
	.header-home:focus-visible { transform: none; }
}
