/* ==========================================================================
   Clamore · main stylesheet
   1. Tokens   2. Base   3. Layout   4. Type   5. Components
   6. Header and menu   7. Footer   8. Heroes   9. Sections   10. Pages
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */

@font-face {
	font-family: "Mozilla Text";
	src: url("../fonts/mozilla-text.woff2") format("woff2");
	font-weight: 200 700;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Brand red and blue, a touch deeper so text on them meets WCAG AA (red 4.6:1, blue 3.4:1 for large text). */
	--red: #dd3230;
	--red-dark: #c42c2a;
	--red-deep: #b32726;
	--ink: #131313;
	--blue: #0095d4;
	--purple: #393184;
	--grey: #616161;
	--slate: #54595f;
	--mist: #f4f4f4;
	--white: #fff;
	--accent: var(--red);
	--accent-dark: var(--red-dark);

	--font: "Mozilla Text", system-ui, -apple-system, "Segoe UI", sans-serif;
	--fs-body: clamp(1rem, 0.875rem + 0.25vw, 1.125rem);
	--fs-lead: clamp(1rem, 1.3vw, 1.25rem);
	--fs-h4: clamp(1.125rem, 1.6vw, 1.5rem);
	--fs-h3: clamp(1.375rem, 2vw, 2rem);
	--fs-h2: clamp(1.75rem, 2.8vw, 3rem);
	--fs-h2xl: clamp(2rem, 3.7vw, 4rem);
	--fs-h1: clamp(2.5rem, 6vw, 6rem);

	--pad-x: clamp(1rem, -2.419rem + 7.1322vw, 4rem);
	--pad-a: clamp(3rem, -7.2815rem + 21.4477vw, 8rem);
	--pad-b: clamp(4rem, -2.838rem + 14.2645vw, 10rem);
	--container: 1140px;
	--header-h: 110px;
	/* Space between the wide frame (pad-x) and the 1140 container. */
	--inset: max(0px, (100cqi - var(--container)) / 2 - var(--pad-x));

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-blue {
	--accent: var(--blue);
	--accent-dark: #0089c4;
}

/* 2. Base ------------------------------------------------------------------ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

html.is-locked {
	overflow: hidden;
}

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font);
	font-size: var(--fs-body);
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

.site-main,
.site-footer {
	container-type: inline-size;
}

.site-main:focus {
	outline: none;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
	margin: 0;
}

h1,
h2,
h3,
h4 {
	font-weight: 700;
}

p {
	text-wrap: pretty;
}

ul[class],
ol[class] {
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

::selection {
	background: var(--red);
	color: var(--white);
}

.icon {
	width: 1em;
	height: 1em;
	flex: none;
	fill: currentColor;
}

.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--white);
	color: var(--ink);
	font-weight: 500;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

/* 3. Layout ---------------------------------------------------------------- */

.container {
	width: min(100% - 2 * var(--pad-x), var(--container));
	margin-inline: auto;
}

.wide {
	padding-inline: var(--pad-x);
}

.section {
	padding-block: var(--pad-a);
}

/* 4. Type ------------------------------------------------------------------ */

.t-h1 {
	font-size: var(--fs-h1);
	line-height: 1.2;
	font-weight: 700;
}

.t-h2xl {
	font-size: var(--fs-h2xl);
	line-height: 1.3;
	font-weight: 700;
}

.t-h2 {
	font-size: var(--fs-h2);
	line-height: 1.35;
	font-weight: 700;
}

.t-h3 {
	font-size: var(--fs-h3);
	line-height: 1.35;
	font-weight: 700;
}

.t-h4 {
	font-size: var(--fs-h4);
	line-height: 1.4;
}

.t-lead {
	font-size: var(--fs-lead);
	line-height: 1.5;
}

.accent {
	color: var(--accent);
}

.prose > * + * {
	margin-top: 1em;
}

/* 5. Components ------------------------------------------------------------ */

/* Eyebrow: small label with an icon. */
.eyebrow {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--fs-lead);
	font-weight: 500;
	line-height: 1.5;
}

.eyebrow .icon {
	width: 2rem;
	height: 2rem;
	color: var(--accent);
}

.head {
	display: flex;
	flex-direction: column;
	gap: clamp(1.375rem, 1.1rem + 0.6vw, 1.75rem);
}

/* Buttons. */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 2rem 1rem 1rem;
	border: 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn .icon {
	transition: transform 0.35s var(--ease);
}

.btn:hover .icon {
	transform: translateX(3px);
}

.btn--primary {
	background: var(--accent);
	color: var(--white);
}

.btn--primary:hover {
	background: var(--red-deep);
}

.is-blue .btn--primary:hover {
	background: var(--accent-dark);
}

.btn--light {
	background: rgb(255 255 255 / 0.88);
	color: var(--ink);
}

.btn--light:hover {
	background: var(--white);
}

.btn--outline {
	border: 1px solid rgb(255 255 255 / 0.76);
	color: var(--white);
}

.btn--outline:hover {
	border-color: var(--white);
}

.btn-group {
	display: flex;
	flex-wrap: wrap;
	gap: 1px;
}

/* Round arrow buttons (carousels). */
.arrow {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(0 0 0 / 0.12);
	color: var(--ink);
	font-size: 18px;
	transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.arrow:hover {
	background: var(--accent);
	color: var(--white);
}

.arrow:disabled {
	opacity: 0.5;
	cursor: default;
	background: rgb(0 0 0 / 0.12);
	color: var(--ink);
}

.arrow--next .icon {
	transform: scaleX(-1);
}

/* Project card. */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
}

.card__media {
	height: 40vh;
	min-height: 260px;
	max-height: 480px;
	margin-bottom: 1.5rem;
	overflow: hidden;
	background: var(--mist);
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--ease);
}

.card:hover .card__media img,
.card:has(a:focus-visible) .card__media img {
	transform: scale(1.05);
}

.card__title {
	margin-bottom: 0.5rem;
	font-size: var(--fs-h4);
	line-height: 1.4;
}

.card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.card__title a:focus-visible {
	outline: none;
}

.card:has(a:focus-visible) {
	outline: 2px solid var(--accent);
	outline-offset: 4px;
}

.card__meta div {
	display: flex;
	flex-wrap: wrap;
	column-gap: 0.25em;
}

/* Carousel (scroll snap, enhanced by main.js). */
.carousel {
	position: relative;
}

.carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: var(--slide, 606px);
	gap: 1rem;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--snap-pad, 0px);
	scrollbar-width: none;
	list-style: none;
}

.carousel__track::-webkit-scrollbar {
	display: none;
}

.carousel__track > * {
	scroll-snap-align: start;
}

.carousel__nav {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	margin-top: 3rem;
}

.carousel__arrows {
	display: flex;
	gap: 2px;
}

/* Each dot is a 24px target (WCAG 2.2) with the small dot drawn inside. */
.carousel__dots {
	--dot: 10px;
	display: flex;
	flex-wrap: wrap;
	margin-inline: calc((var(--dot) - 24px) / 2);
}

.carousel__dot {
	position: relative;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
}

.carousel__dot::before {
	content: "";
	position: absolute;
	inset: calc((24px - var(--dot)) / 2);
	border-radius: 50%;
	background: rgb(19 19 19 / 0.14);
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.carousel__dot:hover::before,
.carousel__dot[aria-current="true"]::before {
	background: var(--accent);
}

.carousel__track:focus-visible {
	outline-offset: 6px;
}

.carousel:not(.is-ready) .carousel__nav {
	visibility: hidden;
}

/* 6. Header and menu ------------------------------------------------------- */

.site-header {
	position: absolute;
	inset: 0 0 auto;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	height: var(--header-h);
	padding-inline: 2rem;
}

.site-header__logo {
	display: block;
	width: 277px;
	max-width: 64%;
}

.site-header__logo img {
	width: 100%;
}

/* Menu and search share one height so the two boxes line up exactly. */
.site-header__actions {
	--action-h: 46px;
	display: flex;
	align-items: stretch;
	gap: 1px;
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: var(--action-h);
	padding: 0 16px;
	border: 0;
	background: rgb(255 255 255 / 0.82);
	color: var(--ink);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	transition: background-color 0.25s ease;
}

.menu-toggle:hover {
	background: var(--white);
}

/* Not ".search": WordPress puts that class on <body> in search results. */
.header-search {
	position: relative;
	display: flex;
}

.search__toggle {
	display: grid;
	place-items: center;
	width: var(--action-h);
	height: var(--action-h);
	padding: 0;
	border: 0;
	background: var(--red);
	color: var(--white);
	font-size: 20px;
	transition: background-color 0.25s ease;
}

.search__toggle:hover,
.search__toggle[aria-expanded="true"] {
	background: var(--red-dark);
}

.search__form {
	position: absolute;
	top: calc(100% + 22px);
	right: 0;
	display: flex;
	width: min(290px, calc(100vw - 2rem));
	padding: 1rem;
	background: var(--white);
	box-shadow: 0 18px 40px rgb(0 0 0 / 0.18);
}

.search__form[hidden] {
	display: none;
}

.search__form input {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 0.75rem;
	border: 1px solid rgb(19 19 19 / 0.16);
	border-right: 0;
	border-radius: 0;
	background: var(--white);
	font-size: 16px;
	appearance: none;
}

.search__form input:focus {
	outline: none;
	border-color: var(--ink);
}

.search__form button {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	background: var(--red);
	color: var(--white);
	font-size: 18px;
}

/* Off-canvas menu (native <dialog>). */
.menu {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--white);
	/* clip, not hidden: a scroll container here stops Chrome from moving the panel on open. */
	overflow: hidden;
	overflow: clip;
}

/*
 * Keyframes rather than transitions: they start on the first frame the dialog
 * is shown, so the panel always slides in instead of appearing in place.
 */
.menu::backdrop {
	background: rgb(0 0 0 / 0.84);
}

.menu[open]::backdrop {
	animation: menu-fade-in 0.5s ease both;
}

.menu.is-closing::backdrop {
	animation: menu-fade-out 0.4s ease both;
}

.menu__panel {
	position: absolute;
	inset: 0 0 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 50vw;
	min-height: 100%;
	padding: 4rem;
	overflow-y: auto;
	background: var(--red);
}

.menu[open] .menu__panel {
	animation: menu-in 0.6s var(--ease) both;
}

.menu.is-closing .menu__panel {
	animation: menu-out 0.4s cubic-bezier(0.55, 0, 0.75, 0.2) both;
}

@keyframes menu-in {
	from {
		transform: translateX(100%);
	}
}

@keyframes menu-out {
	to {
		transform: translateX(100%);
	}
}

@keyframes menu-fade-in {
	from {
		opacity: 0;
	}
}

@keyframes menu-fade-out {
	to {
		opacity: 0;
	}
}

.menu__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	display: grid;
	place-items: center;
	width: 40px;
	height: 47px;
	padding: 0;
	border: 0;
	background: none;
	color: rgb(255 255 255 / 0.66);
	font-size: 2.5rem;
	transition: color 0.25s ease;
}

.menu__close:hover {
	color: var(--white);
}

.menu__logo {
	display: block;
	width: 200px;
	align-self: flex-start;
}

.menu__nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu__nav a {
	display: block;
	padding: 20px 0;
	border-top: 1px solid rgb(255 255 255 / 0.09);
	color: rgb(255 255 255 / 0.81);
	font-size: var(--fs-h3);
	font-weight: 700;
	line-height: 1.35;
	transition: color 0.25s ease, padding 0.35s var(--ease);
}

.menu__nav a:hover,
.menu__nav a[aria-current="page"] {
	color: var(--white);
}

.menu__nav a:hover {
	padding-left: 0.5rem;
}

.menu__search {
	display: none;
}

.menu__lang .bl-switcher__list {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu__lang .bl-switcher__link {
	color: rgb(255 255 255 / 0.63);
	transition: color 0.2s ease;
}

.menu__lang .bl-switcher__link:hover,
.menu__lang .is-current .bl-switcher__link {
	color: var(--white);
}

.menu__lang .bl-switcher__link:focus-visible,
.menu :focus-visible {
	outline-color: var(--white);
}

/* 7. Footer ---------------------------------------------------------------- */

.site-footer {
	padding: var(--pad-a) 0 3.5rem;
	background: var(--ink);
	color: var(--white);
}

.site-footer__top {
	padding-bottom: 2rem;
	border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.site-footer__top .eyebrow .icon {
	color: var(--red);
}

.site-footer__email {
	font-size: var(--fs-h2);
	font-weight: 700;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.site-footer__email a:hover {
	color: var(--red);
}

.site-footer__cols {
	display: flex;
	justify-content: space-between;
	gap: 1.75rem;
	margin-top: 5rem;
}

.site-footer__col {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	flex: 0 1 35%;
	min-width: 0;
}

.site-footer__col:nth-child(2) {
	flex-basis: 45%;
}

.site-footer__col--social {
	flex: 0 1 auto;
	min-width: 15%;
}

.site-footer__title {
	color: var(--red);
	font-size: 28px;
	font-weight: 500;
	line-height: 1;
}

.site-footer__text {
	color: rgb(255 255 255 / 0.74);
}

.site-footer__text a {
	transition: color 0.2s ease;
}

.site-footer__text a[href^="mailto"] {
	color: rgb(255 255 255 / 0.6);
}

.site-footer__text a:hover {
	color: var(--white);
}

.site-footer__list li + li {
	margin-top: 0;
}

.site-footer__list a {
	display: flex;
	width: fit-content;
	align-items: center;
	gap: 0.6rem;
	color: rgb(255 255 255 / 0.74);
	transition: color 0.2s ease;
}

.site-footer__list .icon {
	color: var(--red);
	font-size: 1.15em;
	transition: transform 0.3s var(--ease);
}

.site-footer__list a:hover {
	color: var(--white);
}

.site-footer__list a:hover .icon {
	transform: translateX(3px);
}

.site-footer__col--social .site-footer__list a {
	gap: 0.75rem;
}

.site-footer__col--social .site-footer__list .icon {
	font-size: 1.25em;
}

.site-footer__col--social .site-footer__list a:hover .icon {
	transform: none;
}

.site-footer__col--social .site-footer__list li + li {
	margin-top: 0.15rem;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 2rem;
	margin-top: 6rem;
	padding-top: 2rem;
	border-top: 1px solid rgb(255 255 255 / 0.12);
	color: rgb(255 255 255 / 0.68);
	font-size: 14px;
	line-height: 1.5;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2rem;
}

.site-footer__credit {
	margin-left: auto;
}

.site-footer__legal a,
.site-footer__credit a {
	transition: color 0.2s ease;
}

.site-footer__legal a:hover,
.site-footer__credit a:hover {
	color: var(--white);
}

/* 8. Heroes ---------------------------------------------------------------- */

.hero {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: calc(var(--pad-b) + var(--header-h)) 0 var(--pad-b);
	overflow: hidden;
	background: var(--ink);
	color: var(--white);
}

.hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--bg-pos, center);
	animation: hero-settle 1.8s var(--ease) both;
}

/* The photo at the top settles slowly into place when the page opens. */
@keyframes hero-settle {
	from {
		transform: scale(1.06);
	}
}

/* Images further down fade up as they reach the screen (added by main.js). */
.reveal {
	opacity: 0;
	transform: translateY(2rem);
	transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.is-revealed {
	opacity: 1;
	transform: none;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--overlay, linear-gradient(90deg, #000 0%, rgb(19 19 19 / 0.67) 100%));
	opacity: var(--overlay-opacity, 0.9);
	mix-blend-mode: var(--overlay-blend, normal);
}

.hero__inner {
	display: flex;
	flex-direction: column;
}

.hero .eyebrow {
	margin-bottom: 1rem;
	line-height: 36px;
}

.hero__title {
	max-width: 85%;
}

.hero__text {
	max-width: var(--measure, 54%);
	margin-top: 1rem;
	margin-bottom: 2rem;
	font-size: var(--fs-lead);
}

/* Tall heroes: home and company pages. */
.hero--tall {
	min-height: var(--hero-min, 100vh);
	padding: calc(var(--pad-a) + 94px) 0 var(--pad-a);
}

.hero--tall .hero__title {
	max-width: none;
}

.hero--tall .hero__text {
	margin-top: 28px;
	margin-bottom: 2rem;
}

.hero--home {
	--overlay: linear-gradient(90deg, #000 0%, #fff 100%);
	--overlay-opacity: 0.7;
	--overlay-blend: multiply;
	--bg-pos: center;
	--measure: 775px;
}

.hero--home .btn-group {
	margin-top: 1rem;
}

.hero--company {
	--hero-min: 60vh;
	--overlay: linear-gradient(90deg, #000 0%, #fff 100%);
	--overlay-opacity: 0.7;
	--overlay-blend: multiply;
	--bg-pos: center right;
	--measure: 775px;
}

.hero--company .hero__title {
	color: var(--accent);
}

.hero--ideias {
	--overlay: linear-gradient(90deg, #000 0%, rgb(0 0 0 / 0.37) 100%);
	--overlay-opacity: 0.95;
	--measure: 581px;
}

/* Scroll hint, vertical text on the right edge. */
.scroll-hint {
	position: absolute;
	right: calc(var(--pad-x) / 3 + 1.6rem);
	bottom: clamp(1rem, 6.1vw - 0.36rem, 5.125rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	color: inherit;
	font-size: 1rem;
	line-height: 1;
}

.scroll-hint span {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

.scroll-hint .icon {
	width: 2rem;
	height: 2rem;
	color: var(--red);
	transform: rotate(90deg);
	transition: transform 0.35s var(--ease);
}

.scroll-hint:hover .icon {
	transform: rotate(90deg) translateX(4px);
}

.hero--home .scroll-hint {
	color: var(--ink);
}

/* 9. Sections -------------------------------------------------------------- */

/* Split: image on the left (from the wide frame), text aligned to the container. */
.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.split__media {
	position: relative;
	min-height: 480px;
	overflow: hidden;
}

.split__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.split__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	padding: 0 var(--inset) var(--pad-x) var(--pad-x);
}

.split__body .btn {
	margin-top: clamp(0.375rem, -1.2rem + 3.7vw, 2.0625rem);
}

/* Home: about. */
.about .head {
	margin-bottom: 3.5rem;
}

.about--gap-l .head {
	margin-bottom: 4rem;
}

.about--gap-s .head {
	margin-bottom: 3rem;
}

.split__body.prose {
	gap: 0;
}

.split__body.prose > * + * {
	margin-top: 0.75em;
}

.about .split__body .t-lead + .t-lead {
	margin-top: 0;
}

/* Home and Empresas: company cards. */
.areas {
	padding: var(--pad-x) var(--pad-x) 0;
}

.areas__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.areas__col {
	display: flex;
	flex-direction: column;
}

.areas__head {
	margin-bottom: 3rem;
	gap: 1.375rem;
}

.areas__head .t-h2 {
	max-width: 90%;
	margin-top: 0.5rem;
}

/* Grows to the bottom of the row, so it never ends above the blue card next to it. */
.areas__note {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: calc(100% - var(--inset));
	min-height: 239px;
	padding: var(--pad-x);
	background: var(--ink);
	color: var(--white);
}

.company {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1rem;
	min-height: 520px;
	padding: var(--pad-x);
	overflow: hidden;
	color: var(--white);
	transition: background-color 0.5s ease;
}

.company::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--shape) no-repeat var(--shape-pos, right bottom) / cover;
	opacity: 0.06;
	pointer-events: none;
}

.company--ideias {
	--shape: url("../img/forma-azul.svg");
	background: var(--blue);
}

.company--ideias:hover {
	background: var(--purple);
}

.company--clamore {
	--shape: url("../img/forma-vermelho.svg");
	--shape-pos: left bottom;
	background: var(--red);
}

.company--clamore:hover {
	background: var(--red-dark);
}

.company__logo {
	align-self: flex-start;
	height: 50px;
	width: auto;
}

.company__title {
	max-width: 64%;
	font-size: var(--fs-h3);
	line-height: 1.35;
}

.company__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
}

.company__stat {
	display: flex;
	flex-direction: column;
}

.company__num {
	font-size: 69px;
	font-weight: 700;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.company__label {
	font-size: var(--fs-body);
	line-height: 1;
}

.company .btn--outline {
	margin-bottom: 6px;
}

.company__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Featured projects. */
.featured {
	padding: var(--pad-a) 0 calc(10rem - 22px);
}

.featured--mist {
	background: var(--mist);
}

.featured__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 3rem;
}

.featured__head .head {
	flex: 0 1 78%;
}

.featured__head > .btn {
	margin-bottom: 14px;
}

.featured .carousel {
	padding-left: max(var(--pad-x), (100cqi - var(--container)) / 2);
	padding-right: var(--pad-x);
}

.featured .carousel__track {
	--slide: calc((100% - 1rem) / 2);
}

/* Grupo: vision, mission and values (stacked sticky cards). */
.hero--top {
	--bg-pos: top center;
}

.split__media--tall {
	min-height: 490px;
}

.vmv {
	padding: var(--pad-x) 0 var(--pad-a);
}

.vmv__head {
	gap: 6px;
	margin-bottom: 4rem;
}

.vmv__card {
	position: sticky;
	top: 0;
	isolation: isolate;
	display: flex;
	align-items: center;
	gap: 4rem;
	padding: 5rem 2rem;
	overflow: hidden;
	background: var(--grey);
	color: var(--white);
}

.vmv__card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--shape) no-repeat 800px var(--shape-y, 48px) / 400px auto;
	opacity: 0.06;
	pointer-events: none;
}

.vmv__card--visao {
	--shape: url("../img/vmv-visao.svg");
}

.vmv__card--missao {
	--shape: url("../img/vmv-missao.svg");
	background: var(--red);
}

.vmv__card--valores {
	--shape: url("../img/vmv-valores.svg");
	--shape-y: 90px;
}

.vmv__icon {
	width: 7.9rem;
	height: 7.9rem;
}

.vmv__body h3 {
	margin-bottom: 0.1rem;
}

/* Grupo: history timeline. */
.history {
	--cw: min(100cqi - 2 * var(--pad-x), var(--container));
	padding-block: var(--pad-a);
	overflow: hidden;
}

.history__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: calc(2.5rem + 16px);
}

.history__head .head {
	max-width: 80%;
}

.history__arrows {
	gap: 8px;
	margin-bottom: 12px;
}

.arrow--line {
	width: 48px;
	height: 48px;
	border: 1px solid var(--ink);
	background: var(--white);
	font-size: 20px;
}

.arrow--line:hover {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--white);
}

.arrow--line:disabled,
.arrow--line:disabled:hover {
	border-color: rgb(19 19 19 / 0.25);
	background: var(--white);
	color: var(--ink);
}

.history__rail {
	position: relative;
	margin-right: calc((100% - 100cqi) / 2);
}

.history__progress {
	position: absolute;
	top: 0;
	left: 0;
	width: var(--cw);
	z-index: 1;
	height: 3px;
	background: rgb(19 19 19 / 0.1);
	pointer-events: none;
}

.history__progress span {
	display: block;
	height: 100%;
	background: var(--red);
	transform-origin: left;
	transform: scaleX(0.14);
	transition: transform 0.3s ease;
}

.history__track {
	--slide: calc(var(--cw) / 2);
	gap: 0;
}

.history__item {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 4rem 2rem 2rem;
	border-left: 1px solid #dadada;
	background: rgb(19 19 19 / 0.04);
	transition: background-color 0.5s ease;
}

.history__item:hover {
	background: rgb(19 19 19 / 0.08);
}

.history__year {
	margin-bottom: 1rem;
	color: var(--accent-dark);
}

.history__title {
	margin-bottom: 1.5rem;
	color: #101828;
}

.history__text {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 24px;
}

/* Empresas: the two companies side by side. */
.companies {
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding-block: var(--pad-x);
}

/* Company pages. */
.about--company {
	padding-bottom: 0;
}

.about--company .split__body {
	gap: 0;
}

.split__logo {
	width: 360px;
	max-width: 100%;
	height: auto;
	margin-bottom: 3rem;
}

.about--company .split__body .prose > * + * {
	margin-top: 0.75em;
}

/* Ideias: services carousel. */
.services {
	--cw: min(100cqi - 2 * var(--pad-x), var(--container));
	padding-block: var(--pad-a);
	overflow: hidden;
}

.services__track {
	--slide: calc((var(--cw) - 1rem) / 2);
}

.service {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 2rem;
	background: rgb(19 19 19 / 0.04);
	transition: background-color 0.5s ease;
}

.service:hover {
	background: rgb(19 19 19 / 0.08);
}

.service__media {
	height: 400px;
	overflow: hidden;
}

.service__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--ease);
}

.service:hover .service__media img {
	transform: scale(1.05);
}

.service__title {
	margin-top: 12px;
	color: var(--accent);
}

.service p {
	margin-bottom: 24px;
}

.services {
	padding-bottom: calc(var(--pad-a) - 2.75rem);
}

.services__dots {
	--dot: 8px;
	margin-top: 2.25rem;
}

.services__dots .carousel__dot::before {
	background: rgb(19 19 19 / 0.2);
}

.services__dots .carousel__dot[aria-current="true"]::before,
.services__dots .carousel__dot:hover::before {
	background: var(--ink);
}

/* Ideias: why choose us. */
.reasons {
	position: relative;
	isolation: isolate;
	padding-block: var(--pad-a);
	overflow: hidden;
}

.reasons::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url("../img/forma-ideias.svg") no-repeat right bottom / contain;
	opacity: 0.05;
	pointer-events: none;
}

.reasons .container {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.reasons__title {
	max-width: 67%;
	margin-bottom: 2.5rem;
}

.reasons__row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 2rem;
	border-top: 1px solid var(--purple);
}

.reasons__row h3 {
	flex: 0 0 33%;
}

.reasons__row p {
	flex: 0 0 55%;
}

/* Interior heroes. */
.hero--projects {
	--overlay-opacity: 0.9;
}

.hero--contact {
	--overlay-opacity: 0.79;
}

.hero--short {
	min-height: 70vh;
}

.hero--short .btn-group {
	margin-top: 0.5rem;
}

.hero--single {
	--overlay: linear-gradient(118deg, var(--ink) 0%, rgb(19 19 19 / 0.74) 100%);
	--overlay-opacity: 0.98;
	padding: calc(var(--pad-a) + var(--header-h)) 0 var(--pad-a);
}

.hero--single .hero__title {
	margin-top: 20px;
}

.hero--single .scroll-hint {
	color: rgb(255 255 255 / 0.7);
}

.hero--single .scroll-hint:hover {
	color: var(--white);
}

/* Breadcrumbs. */
.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 16px;
	line-height: 1.5;
}

.crumbs li {
	padding: 1px 8px;
	background: var(--white);
	color: var(--ink);
}

.crumbs li:has(a) {
	padding: 0;
	background: none;
}

.crumbs a {
	display: block;
	padding: 1px 8px;
	background: var(--red);
	color: var(--white);
	transition: background-color 0.2s ease;
}

.crumbs a:hover {
	background: var(--red-dark);
}

/* Buttons on light backgrounds. */
.btn--dark {
	background: var(--ink);
	color: var(--white);
}

.btn--dark:hover {
	background: var(--red);
}

.btn.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

/* Projects archive. */
.projects {
	padding-block: var(--pad-x);
}

.filters {
	position: relative;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

.filters.is-enhanced .filters__apply {
	display: none;
}

.filter {
	position: relative;
	width: 260px;
}

.filter--estado {
	width: 160px;
}

.filter summary {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 6px 30px 6px 16px;
	border-bottom: 1px solid rgb(19 19 19 / 0.2);
	font-size: var(--fs-body);
	line-height: 26px;
	list-style: none;
	cursor: pointer;
	user-select: none;
	transition: border-color 0.2s ease;
}

.filter summary::-webkit-details-marker {
	display: none;
}

.filter summary:hover,
.filter[open] summary {
	border-bottom-color: var(--ink);
}

.filter__count {
	color: var(--red);
}

.filter__caret {
	position: absolute;
	right: 10px;
	top: 50%;
	width: 10px;
	height: 6px;
	margin-top: -3px;
	fill: currentColor;
	transition: transform 0.25s ease;
}

.filter[open] .filter__caret {
	transform: rotate(180deg);
}

.filter__body {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 16px;
	border: 1px solid rgb(19 19 19 / 0.14);
	background: var(--white);
	box-shadow: 0 12px 30px rgb(0 0 0 / 0.08);
}

.check {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	line-height: 1.4;
}

.check input {
	position: absolute;
	opacity: 0;
	width: 16px;
	height: 16px;
	margin: 0;
}

.check__box {
	display: grid;
	place-items: center;
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	border: 1px solid rgb(19 19 19 / 0.4);
	background: var(--white);
	color: var(--white);
	font-size: 12px;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.check__box .icon {
	opacity: 0;
}

.check input:checked + .check__box {
	border-color: var(--red);
	background: var(--red);
}

.check input:checked + .check__box .icon {
	opacity: 1;
}

.check input:focus-visible + .check__box {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.projects__results {
	margin-top: 4rem;
}

.projects__results[aria-busy="true"],
.projects__grid[aria-busy="true"] {
	opacity: 0.5;
	transition: opacity 0.2s ease;
}

.projects__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.8rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.projects__more {
	display: flex;
	justify-content: center;
	margin-top: 4rem;
}

.projects__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	padding: 4rem 0;
	text-align: center;
}

/* Single project. */
.project {
	padding-top: var(--pad-a);
}

.project__cover {
	margin-bottom: 3.5rem;
}

.project__cover a {
	display: block;
	cursor: zoom-in;
}

.project__cover img {
	width: 100%;
}

.project__body {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
}

.project__facts {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 0 0 30%;
}

.project__facts div {
	padding-bottom: 12px;
	border-bottom: 1px solid rgb(19 19 19 / 0.12);
}

.project__facts dt {
	margin-bottom: 6px;
	font-size: 0.75rem;
	line-height: 1.5;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.terms {
	display: inline;
	margin: 0;
	padding: 0;
	list-style: none;
}

.terms li {
	display: inline;
}

.terms li:not(:last-child)::after {
	content: ", ";
}

.project__facts dd a {
	white-space: nowrap;
	color: var(--red);
	transition: color 0.2s ease;
}

.project__facts dd a:hover {
	color: var(--red-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.project__content {
	flex: 0 0 60%;
}

.project__text {
	font-size: var(--fs-h3);
	line-height: 1.35;
}

.project__text > * + * {
	margin-top: 0.5em;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.gallery a {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	cursor: zoom-in;
}

.gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--ease);
}

.gallery a:hover img,
.gallery a:focus-visible img {
	transform: scale(1.05);
}

.project + .lightbox + .featured,
.project + .featured {
	margin-top: var(--pad-a);
}

/* Lightbox. */
.lightbox {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 3.5rem 4.5rem;
	border: 0;
	background: rgb(10 10 10 / 0.94);
	color: var(--white);
}

.lightbox[open] {
	display: grid;
	place-items: center;
}

.lightbox::backdrop {
	background: transparent;
}

.lightbox img {
	max-width: 100%;
	max-height: calc(100vh - 7rem);
	width: auto;
	height: auto;
	object-fit: contain;
}

.lightbox__close,
.lightbox__nav {
	position: absolute;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: none;
	color: rgb(255 255 255 / 0.7);
	transition: color 0.2s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
	color: var(--white);
}

.lightbox__close {
	top: 1rem;
	right: 1rem;
	width: 44px;
	height: 44px;
	font-size: 2.25rem;
}

.lightbox__nav {
	top: 50%;
	width: 56px;
	height: 56px;
	margin-top: -28px;
	font-size: 2.5rem;
}

.lightbox__nav--prev {
	left: 0.5rem;
}

.lightbox__nav--next {
	right: 0.5rem;
}

.lightbox__nav--next .icon {
	transform: scaleX(-1);
}

.lightbox__count {
	position: absolute;
	bottom: 1rem;
	left: 0;
	right: 0;
	color: rgb(255 255 255 / 0.6);
	font-size: 14px;
	text-align: center;
}

/* Contactos: offices. */
.offices {
	padding-top: var(--pad-x);
}

.offices__top {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.offices__intro {
	display: flex;
	flex-direction: column;
}

.offices__intro .head {
	margin-bottom: 4rem;
}

.offices__intro .t-h2 {
	max-width: 90%;
	margin-top: 0.5rem;
}

.office {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: var(--pad-x);
	overflow: hidden;
	color: var(--white);
}

.office a {
	transition: color 0.2s ease, opacity 0.2s ease;
}

.office p a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.office--general {
	justify-content: center;
	min-height: 239px;
	margin-left: var(--inset);
	background: var(--slate);
}

.office--hq {
	justify-content: space-between;
	align-self: end;
	min-height: 437px;
	background: var(--red);
}

.office--hq::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url("../img/forma-vermelho.svg") no-repeat left bottom / cover;
	opacity: 0.06;
	pointer-events: none;
}

.office--hq p {
	margin-top: auto;
}

.office--hq .office__map {
	margin-top: 1.5rem;
}

.office__map {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	align-self: flex-start;
}

.office__map .icon {
	font-size: 1.15em;
}

.office__map:hover span {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.offices__bottom {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	padding-bottom: var(--pad-x);
}

.office--others {
	gap: 2rem;
	background: var(--ink);
}

.office--others > div {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.office--others .office__map .icon {
	color: inherit;
}

/* Contact form. */
.contact {
	padding: var(--pad-x);
	background: #717171;
	color: var(--white);
}

.contact__form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 20px;
}

.contact__alert {
	grid-column: 1 / -1;
	padding: 0.75rem 1rem;
	background: var(--white);
	color: var(--red-dark);
	font-size: 15px;
	font-weight: 500;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	grid-column: 1 / -1;
}

.field--email,
.field--telefone {
	grid-column: auto;
}

.field label {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

.field__req {
	color: rgb(255 255 255 / 0.7);
}

.field input,
.field textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 16px;
	border: 1px solid rgb(255 255 255 / 0.85);
	border-radius: 0;
	background: transparent;
	color: var(--white);
	font-size: 16px;
	line-height: 1.5;
	appearance: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field textarea {
	resize: vertical;
	min-height: 103px;
}

.field input::placeholder,
.field textarea::placeholder {
	color: rgb(255 255 255 / 0.62);
	opacity: 1;
}

.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--white);
	background: rgb(255 255 255 / 0.08);
}

.field.has-error input,
.field.has-error textarea {
	border-color: #ffd5d4;
	box-shadow: inset 0 0 0 1px #ffd5d4;
}

.field__error {
	color: var(--white);
	font-size: 13px;
	font-weight: 600;
}

.field--hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.field--consent {
	margin-top: 6px;
}

.check--light {
	font-size: 15px;
	align-items: center;
}

.check--light .check__box {
	width: 20px;
	height: 20px;
	margin-top: 0;
	border: 0;
	background: var(--white);
	color: var(--ink);
}

.check--light input {
	width: 20px;
	height: 20px;
}

.check--light input:checked + .check__box {
	background: var(--white);
}

.check--light a {
	color: var(--white);
	text-decoration: underline;
	text-decoration-color: rgb(255 255 255 / 0.3);
	text-underline-offset: 3px;
}

.check--light a:hover {
	color: var(--white);
}

.contact__submit {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	height: 47px;
	margin-top: 8px;
	border: 0;
	background: var(--white);
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.contact__submit:hover {
	background: var(--ink);
	color: var(--white);
}

.contact__submit[aria-busy="true"] {
	opacity: 0.7;
}

.contact__done {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
}

.contact__done:focus {
	outline: none;
}

.contact__done-icon {
	width: 3rem;
	height: 3rem;
}

.contact__done .btn {
	margin-top: 1rem;
}

/* Legal pages. */
.page-content {
	padding: 80px 0 var(--pad-a);
}

.prose--page {
	max-width: 1124px;
}

.prose--page > * + * {
	margin-top: 0.8em;
}

.prose--page h2 {
	margin-top: 2.5rem;
	font-size: var(--fs-h4);
	font-weight: 500;
	line-height: 1.35;
}

.prose--page h3 {
	margin-top: 2rem;
	font-size: var(--fs-lead);
	font-weight: 600;
}

.prose--page h2 + *,
.prose--page h3 + * {
	margin-top: 0.5em;
}

.prose--page ul,
.prose--page ol {
	padding-left: 1.25rem;
}

.prose--page li + li {
	margin-top: 0.5em;
}

.prose--page a {
	color: var(--red);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.prose--page a:hover {
	color: var(--red-dark);
}

.prose--page table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9em;
}

.prose--page th,
.prose--page td {
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid rgb(19 19 19 / 0.12);
	text-align: left;
	vertical-align: top;
}

/* Search results. */
.results {
	padding-block: var(--pad-x) var(--pad-a);
}

.card--page {
	padding: 2rem;
	background: var(--mist);
	height: 100%;
}

.results__pages .nav-links {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 3rem;
}

.results__pages .page-numbers {
	padding: 0.5rem 0.9rem;
	border: 1px solid rgb(19 19 19 / 0.15);
}

.results__pages .current {
	background: var(--ink);
	color: var(--white);
}

/* 10. Responsive ----------------------------------------------------------- */

@media (max-width: 1024px) {
	/* Tablet: two footer columns, the social links go under. */
	.site-footer__cols {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2.5rem 1.75rem;
	}

	.projects__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.project__body {
		flex-direction: column;
	}

	.project__facts,
	.project__content {
		flex-basis: auto;
	}

	.offices__bottom {
		width: auto;
		padding-inline: var(--pad-x);
	}

	.history__head .head,
	.reasons__title {
		max-width: 70%;
	}

	.areas__note {
		padding: 2rem;
	}

	.company {
		min-height: 0;
		padding: 4rem 2rem;
	}

	.menu__panel {
		width: 85vw;
	}
}

@media (max-width: 767px) {
	.site-header {
		padding-inline: 1rem;
	}

	.site-header__logo {
		width: 229px;
	}

	.header-search {
		display: none;
	}

	.menu__search {
		display: flex;
		margin: 2rem 0;
		border-bottom: 1px solid rgb(255 255 255 / 0.45);
		transition: border-color 0.2s ease;
	}

	.menu__search:focus-within {
		border-color: var(--white);
	}

	.menu__search input {
		flex: 1;
		min-width: 0;
		height: 48px;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		color: var(--white);
		font-size: 18px;
		appearance: none;
	}

	.menu__search input::placeholder {
		color: rgb(255 255 255 / 0.8);
		opacity: 1;
	}

	.menu__search input:focus {
		outline: none;
	}

	.menu__search button {
		display: grid;
		place-items: center;
		width: 48px;
		height: 48px;
		padding: 0;
		border: 0;
		background: none;
		color: var(--white);
		font-size: 20px;
	}

	.menu__panel {
		width: 100vw;
		padding: 3rem 1rem;
	}

	.hero__title {
		max-width: none;
	}

	.hero__text {
		max-width: none;
	}

	.split,
	.areas__grid {
		grid-template-columns: 1fr;
	}

	.split__media,
	.split__media--tall {
		min-height: 280px;
	}

	.hero--top {
		--bg-pos: center;
	}

	.vmv__head {
		margin-bottom: 2rem;
	}

	.vmv__card {
		flex-direction: column;
		align-items: flex-start;
		gap: 3.5rem;
		padding: 3rem 1rem;
	}

	.vmv__card::before {
		background-position: 0 0;
	}

	.vmv__icon {
		width: 6.25rem;
		height: 6.25rem;
	}

	.history .carousel {
		display: flex;
		flex-direction: column;
	}

	.history__head {
		display: contents;
	}

	.history__head .head {
		margin-bottom: 2rem;
	}

	.history__arrows {
		order: 3;
		margin: 1.5rem 0 0;
	}

	.history__head .head {
		max-width: none;
	}

	.history__track,
	.services__track {
		--slide: var(--cw);
	}

	.service {
		padding: 1rem 1rem 2rem;
	}

	.service__media {
		height: 286px;
	}

	.companies {
		grid-template-columns: 1fr;
		padding: 0;
	}

	.split__logo {
		margin-bottom: 2rem;
	}

	.reasons__title {
		max-width: none;
		margin-bottom: 1rem;
	}

	.reasons__row {
		flex-direction: column;
	}

	.projects {
		padding: 2.5rem 1rem 4rem;
	}

	.filters {
		flex-direction: column;
		gap: 8px;
	}

	.filter,
	.filter--estado {
		width: 100%;
	}

	.gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.projects__results {
		margin-top: 2rem;
	}

	.projects__grid {
		grid-template-columns: 1fr;
	}

	.card__media {
		height: 360px;
	}

	.project__cover {
		margin-bottom: 0;
	}

	.project__body {
		gap: 0;
	}

	.project__facts,
	.project__content {
		padding-top: 2rem;
	}

	.hero--single .scroll-hint {
		display: none;
	}

	.lightbox {
		padding: 3.5rem 0.5rem;
	}

	.lightbox__nav {
		top: auto;
		bottom: 0.25rem;
		margin: 0;
	}

	.offices__top,
	.offices__bottom {
		grid-template-columns: 1fr;
	}

	.offices__intro .head {
		margin-bottom: 2rem;
	}

	.offices__intro .t-h2 {
		max-width: none;
	}

	.office--general {
		margin-left: 0;
	}

	.office {
		padding: 3rem 1rem;
	}

	.office--hq {
		min-height: 0;
	}

	.office--hq .office__map {
		margin-top: 0.5rem;
	}

	.offices__bottom {
		padding-inline: var(--pad-x);
	}

	.contact {
		padding: 3rem 1rem;
	}

	.contact__form {
		grid-template-columns: 1fr;
	}

	.page-content {
		padding-top: 3rem;
	}

	.history__item {
		padding: 3rem 1rem;
	}

	.split__body {
		padding: 3rem 0 2rem;
	}

	.about .head {
		margin-bottom: 2rem;
	}

	.areas {
		padding: 1rem var(--pad-x) 0;
	}

	.areas__head {
		margin-bottom: 1.5rem;
	}

	.areas__head .t-h2 {
		max-width: none;
	}

	.areas__note {
		width: 100%;
		padding: 2rem 1rem;
	}

	.company {
		padding: 3rem 1rem;
	}

	.company__title {
		margin: 2rem 0 1rem;
	}

	.featured {
		padding: 3rem 0 4rem;
	}

	.featured__head .head {
		flex-basis: 100%;
	}

	.featured .carousel__track {
		--slide: 100%;
	}

	.carousel__nav {
		margin-top: 2rem;
	}

	.site-footer {
		padding-top: 3rem;
	}

	.site-footer__email {
		font-size: 1.3rem;
	}

	.site-footer__cols {
		flex-direction: column;
		grid-template-columns: minmax(0, 1fr);
		gap: 2.5rem;
		margin-top: 3rem;
	}

	.site-footer__col,
	.site-footer__col:nth-child(2) {
		flex-basis: auto;
	}

	.site-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
		margin-top: 3.5rem;
	}

	.site-footer__legal {
		flex-direction: column;
		gap: 0.25rem;
	}

	.site-footer__credit {
		margin: 0.75rem 0 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}

	.card:hover .card__media img,
	.card:has(a:focus-visible) .card__media img,
	.gallery a:hover img,
	.gallery a:focus-visible img,
	.service:hover .service__media img {
		transform: none;
	}
}
