:root {
  --page-pad: clamp(20px, 3vw, 58px);
  --container-max: 1610px;
  --site-shell-width: min(84vw, 1610px);
  --header-height: 50px;
  --header-height-scrolled: 44px;
  --content-footer-gap: 28px;
  --brand-orange: #b34b00;
  --brand-brown: #9b7723;
  --brand-green: #324230;
  --brand-grey: #ebf0ef;
  --brand-text: #324230;
  --shadow: rgba(50, 66, 48, 0.12);
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--brand-grey);
  color: var(--brand-text);
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 300;
}

body.intro-active {
  overflow: hidden;
}

main {
  flex: 0 0 auto;
  display: block;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

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

.page-wrap {
  padding-inline: 0;
}

.container {
  width: var(--site-shell-width);
  max-width: none;
  margin-inline: auto;
}

#site-header,
#site-footer {
  display: contents;
}

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

/* Shared header: generated centrally and identical on every page. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(235, 240, 239, 0.96);
  border-bottom: 1px solid rgba(50, 66, 48, 0.08);
  box-shadow: 0 5px 18px rgba(50, 66, 48, 0.05);
  backdrop-filter: blur(6px) saturate(130%);
  transition: height 220ms ease, box-shadow 220ms ease;
}

body.has-scrolled .site-header {
  height: var(--header-height-scrolled);
  box-shadow: 0 6px 20px rgba(50, 66, 48, 0.09);
}

.site-header-spacer {
  flex: 0 0 var(--header-height);
  height: var(--header-height);
  transition: height 220ms ease, flex-basis 220ms ease;
}

body.has-scrolled .site-header-spacer {
  flex-basis: var(--header-height-scrolled);
  height: var(--header-height-scrolled);
}

.site-header .page-wrap,
.site-header-inner {
  height: 100%;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header-left,
.site-header-actions {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-header-logo {
  display: inline-flex;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: default;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: width 220ms ease, height 220ms ease, flex-basis 220ms ease;
}

.site-header-logo img {
  display: block;
  width: auto;
  height: 34px;
  object-fit: contain;
  transition: height 220ms ease, transform 160ms ease, opacity 160ms ease;
}

body.has-scrolled .site-header-logo {
  flex-basis: 30px;
  width: 30px;
  height: 30px;
}

body.has-scrolled .site-header-logo img {
  height: 27px;
}

.site-header-logo:hover img,
.site-header-logo:focus-visible img {
  transform: scale(1.06);
}

.site-header-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.7vw, 40px);
  margin-left: clamp(28px, 3vw, 44px);
}

.site-header-nav a,
.site-language-selector a {
  position: relative;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  color: var(--brand-green);
  font-size: 14px;
  line-height: 1;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

.site-header-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.65);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-header-nav a:hover,
.site-header-nav a:focus-visible,
.site-language-selector a:hover,
.site-language-selector a:focus-visible {
  font-weight: 600;
}

.site-header-nav a:hover::after,
.site-header-nav a:focus-visible::after,
.site-header-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header-nav a[aria-current="page"],
.site-language-selector a[aria-current="page"] {
  color: var(--brand-orange);
  font-weight: 600;
}

.site-language-selector {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: var(--brand-green);
  font-size: 14px;
}

.site-language-selector a {
  min-height: 32px;
  font-size: inherit;
}

.site-menu-toggle {
  position: relative;
  display: none;
  flex: 0 0 32px;
  width: 32px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-green);
  cursor: pointer;
  z-index: 1003;
}

.site-menu-toggle span {
  position: absolute;
  right: 1px;
  left: 1px;
  height: 2px;
  background: currentColor;
  transition: top 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.site-menu-toggle span:nth-child(1) { top: 5px; }
.site-menu-toggle span:nth-child(2) { top: 12px; }
.site-menu-toggle span:nth-child(3) { top: 19px; }

.site-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 12px;
  transform: rotate(45deg);
}
.site-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 12px;
  transform: rotate(-45deg);
}

.site-mobile-menu {
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  z-index: 999;
  width: min(82vw, 300px);
  padding: 30px 22px;
  overflow-y: auto;
  background: var(--brand-green);
  box-shadow: -12px 18px 30px rgba(50, 66, 48, 0.18);
  transform: translateX(104%);
  visibility: hidden;
  transition: top 220ms ease, transform 220ms ease, visibility 220ms ease;
}

body.has-scrolled .site-mobile-menu {
  top: var(--header-height-scrolled);
}

.site-mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

.site-mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.site-mobile-nav a {
  display: block;
  padding: 13px 10px;
  color: var(--brand-grey);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
}

.site-mobile-nav a + a {
  border-top: 1px solid rgba(235, 240, 239, 0.16);
}

.site-mobile-nav a:hover,
.site-mobile-nav a:focus-visible,
.site-mobile-nav a[aria-current="page"] {
  background: rgba(235, 240, 239, 0.12);
  font-weight: 600;
}


body.mobile-menu-open {
  overflow: hidden;
}

/* Intro video. */
.start-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  padding: clamp(24px, 6vw, 72px);
  overflow: hidden;
  background: var(--brand-grey);
  opacity: 1;
  transition: opacity 600ms ease, visibility 600ms ease;
}

.start-intro.is-hiding {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.start-intro-video {
  display: block;
  width: min(74vw, 920px);
  max-height: 72vh;
  max-height: 72svh;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: var(--brand-grey);
}

/* About-me page. The desktop shell follows the proportions of the approved
   reference: 84% viewport width, 1.827:1 column ratio and a narrow bottom
   reveal so the lower panel edge remains visible in the first viewport. */
.about-main {
  width: 100%;
  padding: 0 0 var(--content-footer-gap);
}

.about-layout {
  width: var(--site-shell-width);
  height: calc(100svh - var(--header-height) - 10px);
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.827fr) minmax(340px, 1fr);
  gap: clamp(24px, 3vw, 58px);
  align-items: stretch;
}

.about-info,
.home-showcase {
  min-width: 0;
  background: rgba(235, 240, 239, 0.94);
  border: 1px solid rgba(50, 66, 48, 0.1);
  box-shadow: 0 12px 30px var(--shadow);
}

.about-info {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(20px, 1.85vw, 28px);
}

.about-title {
  max-width: calc(100% - 210px);
  margin: 0 0 3px;
  color: var(--brand-orange);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.1;
  font-weight: 700;
}

.about-subtitle {
  max-width: calc(100% - 210px);
  margin: 0 0 6px;
  color: var(--brand-text);
  font-size: clamp(10px, 0.78vw, 12px);
  line-height: 1.25;
  font-weight: 700;
}

.about-status {
  position: absolute;
  top: clamp(20px, 1.85vw, 28px);
  right: clamp(20px, 1.85vw, 28px);
  display: inline-flex;
  width: auto;
  max-width: min(46%, 310px);
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--brand-orange);
  color: var(--brand-grey);
  font-size: clamp(11.5px, 0.86vw, 13.5px);
  line-height: 1.25;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 9px 22px rgba(50, 66, 48, 0.14);
}

@keyframes about-status-fly-in {
  0% { opacity: 0; transform: translateX(140%); }
  72% { opacity: 1; transform: translateX(-4px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes about-status-pulse {
  0%, 100% { box-shadow: 0 9px 22px rgba(50, 66, 48, 0.14); }
  50% { box-shadow: 0 12px 28px rgba(50, 66, 48, 0.22); }
}

body.intro-active .about-status {
  opacity: 0;
  transform: translateX(140%);
  animation: none;
}

body:not(.intro-active) .about-status {
  animation: about-status-fly-in 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both,
    about-status-pulse 2.8s ease-in-out 1.2s infinite;
}

.about-copy {
  margin: 14px 0 4px;
}

.about-copy p {
  margin: 0;
  color: var(--brand-text);
  font-size: clamp(14px, 0.95vw, 15.5px);
  line-height: 1.34;
}

.about-copy strong {
  font-weight: 700;
}

.services-heading {
  margin: 0 0 6px;
  color: var(--brand-orange);
  font-size: clamp(12px, 0.9vw, 14px);
  line-height: 1.2;
  font-weight: 700;
}

.services-grid {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.service-card {
  min-height: 0;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(50, 66, 48, 0.09);
  box-shadow: 0 7px 18px rgba(50, 66, 48, 0.05);
}

.service-card h3 {
  margin: 0 0 4px;
  color: var(--brand-text);
  font-size: clamp(11.5px, 0.84vw, 13px);
  line-height: 1.2;
  font-weight: 700;
}

.service-card p {
  margin: 0;
  color: var(--brand-text);
  font-size: clamp(12.5px, 0.86vw, 14px);
  line-height: 1.3;
}

.about-area-note {
  margin: 0;
  padding-top: 9px;
  color: var(--brand-text);
  font-size: clamp(10px, 0.74vw, 12px);
  line-height: 1.35;
}

/* Two seamless, opposite-running reference rows. */
.home-showcase {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(24px, 3.2vw, 42px) clamp(18px, 2.5vw, 30px);
}

.home-showcase-brand {
  margin: 0 0 clamp(22px, 3vw, 34px);
  text-align: center;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.home-showcase-brand img {
  display: inline-block;
  width: min(100%, 210px);
  height: auto;
  cursor: default;
  transition: transform 160ms ease;
}

.home-showcase-brand:hover img {
  transform: scale(1.02);
}

.home-reference-marquees {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.home-reference-row {
  width: 100%;
  overflow: hidden;
}

.home-reference-track {
  --reference-gap: 10px;
  --reference-duration: 36s;
  display: flex;
  width: max-content;
  gap: var(--reference-gap);
  will-change: transform;
}

.home-reference-sequence {
  display: flex;
  flex: 0 0 auto;
  gap: var(--reference-gap);
}

.home-reference-slide {
  flex: 0 0 clamp(140px, 12.8vw, 184px);
  width: clamp(140px, 12.8vw, 184px);
  height: clamp(84px, 7.9vw, 108px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
}

.home-reference-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(0.96) brightness(0.98) sepia(0.04);
  transition: filter 220ms ease;
}

.home-reference-slide:hover img {
  filter: saturate(0.92) contrast(0.98) brightness(1) sepia(0.02);
}

.home-reference-row-forward .home-reference-track {
  animation: reference-right var(--reference-duration) linear infinite;
}

.home-reference-row-reverse .home-reference-track {
  animation: reference-left var(--reference-duration) linear infinite;
}

@keyframes reference-right {
  from { transform: translateX(calc(-50% - (var(--reference-gap) / 2))); }
  to { transform: translateX(0); }
}

@keyframes reference-left {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - (var(--reference-gap) / 2))); }
}

.home-references-link {
  align-self: center;
  margin-top: clamp(18px, 2.4vw, 28px);
  color: var(--brand-orange);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  text-decoration: none;
}

.home-references-link:hover,
.home-references-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Reference overview. */
.references-page main {
  width: 100%;
}

.references-page .content {
  padding-top: clamp(9px, 1.2vw, 15px);
  padding-bottom: var(--content-footer-gap);
}

.filters {
  width: 100%;
  margin: 0 0 clamp(18px, 2.2vw, 25px);
}

.filter-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(3px, 0.45vw, 5px);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 0.75vw, 9px);
}

.filter-chip {
  position: relative;
  display: inline-flex;
  width: 100%;
  min-width: 0;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  padding: 5px 7px 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-text);
  font-size: 11.5px;
  line-height: 1.15;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: color 150ms ease;
}

.filter-chip::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(50, 66, 48, 0.24);
  transition: height 150ms ease, background-color 150ms ease;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  color: var(--brand-orange);
}

.filter-chip:hover::after,
.filter-chip:focus-visible::after {
  background: rgba(179, 75, 0, 0.58);
}

.filter-chip:focus-visible {
  outline: 1px solid rgba(179, 75, 0, 0.35);
  outline-offset: 2px;
}

.filter-chip[aria-pressed="true"] {
  color: var(--brand-orange);
  font-weight: 600;
}

.filter-chip[aria-pressed="true"]::after {
  height: 2px;
  background: var(--brand-orange);
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}

.reference-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(235, 240, 239, 0.94);
  border: 1px solid rgba(50, 66, 48, 0.1);
  box-shadow: 0 10px 28px rgba(50, 66, 48, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.reference-card[hidden] {
  display: none !important;
}

.reference-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(50, 66, 48, 0.13);
}

.reference-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(0.96) brightness(0.98) sepia(0.04);
  transition: transform 180ms ease, filter 220ms ease;
}

.reference-card:hover img {
  transform: scale(1.025);
  filter: saturate(0.92) contrast(0.98) brightness(1) sepia(0.02);
}

.reference-card h3 {
  margin: 0;
  padding: 15px 16px 5px;
  color: var(--brand-text);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

.reference-card p {
  margin: 0;
  padding: 0 16px 17px;
  color: var(--brand-text);
  font-size: 14px;
  line-height: 1.45;
}

.reference-card .reference-subtitle {
  padding: 0 16px 2px;
  font-weight: 600;
  line-height: 1.4;
}

.reference-card .reference-subtitle--standalone {
  padding-bottom: 10px;
}

.reference-card .reference-location {
  padding: 0 16px 10px;
  font-size: 13px;
  line-height: 1.4;
}

.reference-card .reference-services {
  padding: 0 16px 10px;
}

.reference-card .reference-credit {
  margin-top: auto;
  padding: 0 16px 17px;
}

.references-empty {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

/* Legal pages. */
.legal-main {
  width: 100%;
  padding: clamp(28px, 4vw, 54px) 0 clamp(52px, 7vw, 90px);
}

.legal-content {
  max-width: 880px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.legal-content h1 {
  margin: 0 0 24px;
  color: var(--brand-orange);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 700;
}

.legal-content h2 {
  margin: 28px 0 8px;
  color: var(--brand-text);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
}

.legal-content p,
.legal-content li {
  color: var(--brand-text);
  font-size: 15px;
  line-height: 1.58;
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-address {
  line-height: 1.48 !important;
}

.legal-meta {
  margin-top: -14px !important;
  font-size: 13px !important;
}

/* Shared footer. */
.site-footer {
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
}

.footer-main {
  padding: 30px 0 28px;
  background: var(--brand-grey);
  border-top: 1px solid rgba(0, 0, 0, 0.09);
}

.footer-main-inner {
  display: grid;
  grid-template-columns: minmax(145px, 0.55fr) minmax(260px, 0.95fr) minmax(0, 1.5fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
}

.footer-heading {
  margin: 0 0 13px;
  color: #000;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.footer-useful-links ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-useful-links a,
.footer-contact a {
  color: #000;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 300;
  text-decoration: none;
}

.footer-useful-links a:hover,
.footer-useful-links a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible {
  font-weight: 700;
}

.footer-linkedin-link {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  line-height: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.footer-linkedin-link:hover,
.footer-linkedin-link:focus-visible {
  opacity: 0.76;
  transform: translateY(-1px);
}

.footer-linkedin-icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-contact-details {
  margin: 0;
  color: #000;
  font-size: 14px;
  line-height: 1.48;
  font-style: normal;
  font-weight: 300;
}

.footer-contact-details p {
  margin: 0;
}

.footer-contact-details p + p {
  margin-top: 4px;
}

.footer-address {
  display: flex;
  flex-direction: column;
  margin-top: 10px !important;
}

.footer-logo-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  align-self: center;
  gap: 24px 30px;
  min-width: 0;
}

.footer-logo-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.footer-logo-link:hover,
.footer-logo-link:focus-visible {
  opacity: 0.82;
  transform: translateY(-1px);
}

.footer-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer-logo--engineering {
  width: 145px;
  max-height: 82px;
}

.footer-logo--state {
  width: 92px;
  max-height: 94px;
}

.footer-logo--ogni {
  width: 82px;
  max-height: 88px;
}

.legal-bar {
  padding: 12px 0;
  background: var(--brand-grey);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.legal-bar-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-bar-copy,
.legal-bar-links {
  margin: 0;
  color: #000;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 300;
}

.legal-bar-copy {
  flex: 1 1 auto;
  white-space: nowrap;
}

.legal-bar-links {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  white-space: nowrap;
}

.legal-bar a {
  color: #000;
  text-decoration: none;
}

.legal-bar a:hover,
.legal-bar a:focus-visible {
  font-weight: 700;
}

.cookie-settings-slot {
  display: inline-flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
}

/* Cookie consent. */
.cookie-consent {
  position: fixed;
  right: 16px;
  bottom: 18px;
  left: 16px;
  z-index: 9998;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid rgba(50, 66, 48, 0.1);
  border-radius: 18px;
  background: rgba(235, 240, 239, 0.98);
  box-shadow: 0 16px 45px rgba(50, 66, 48, 0.16);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cookie-consent.open {
  opacity: 1;
  transform: translateY(0);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__title {
  display: block;
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.cookie-consent__text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.cookie-consent__link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.cookie-consent__button {
  min-width: 132px;
  padding: 11px 16px;
  border: 1px solid rgba(50, 66, 48, 0.18);
  border-radius: 999px;
  background: var(--brand-grey);
  color: var(--brand-text);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
  transform: translateY(-1px);
}

.cookie-consent__button.is-active,
.cookie-consent__button[aria-pressed="true"] {
  border-color: var(--brand-orange);
  background: var(--brand-orange);
  color: var(--brand-grey);
}

.cookie-settings-button {
  display: inline-flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
  opacity: 0.78;
}

.cookie-settings-button:hover,
.cookie-settings-button:focus-visible {
  opacity: 1;
}

.cookie-settings-svg {
  display: block;
  width: 19px;
  height: 19px;
}

.cookie-settings-svg circle {
  fill: var(--brand-grey);
}

@media (max-width: 1100px) {
  .about-layout {
    grid-template-columns: minmax(0, 1.827fr) minmax(300px, 1fr);
    gap: clamp(20px, 3vw, 33px);
  }

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

  .footer-main-inner {
    grid-template-columns: minmax(145px, 0.7fr) minmax(240px, 1.3fr);
    gap: 30px 44px;
  }

  .footer-logo-list {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

@media (max-width: 820px) {
  :root {
    --page-pad: 20px;
    --header-height: 64px;
    --header-height-scrolled: 50px;
  }

  .page-wrap {
    padding-inline: var(--page-pad);
  }

  .container {
    width: 100%;
    max-width: var(--container-max);
  }

  .site-header-inner { gap: 12px; }
  .site-header-logo {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }
  .site-header-logo img { height: 30px; }

  .site-header-nav {
    display: none;
  }

  .site-header-actions {
    gap: 13px;
  }

  .site-header-actions > .site-language-selector {
    display: inline-flex;
    gap: 5px;
    font-size: 12.5px;
  }

  .site-header-actions > .site-language-selector a {
    min-height: 30px;
  }

  .site-menu-toggle { display: block; }

  .start-intro { padding: 28px; }
  .start-intro-video {
    width: min(88vw, 520px);
    max-height: 64vh;
    max-height: 64svh;
  }

  .about-main {
    padding: 12px var(--page-pad) 22px;
  }

  .about-layout {
    width: 100%;
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-showcase {
    min-height: 0;
  }

  .home-showcase-brand img {
    width: min(100%, 180px);
  }

  .filter-chip {
    padding-inline: 5px;
    font-size: 10.5px;
  }

  .footer-main-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-useful-links,
  .footer-contact,
  .footer-contact-details {
    width: 100%;
    text-align: center;
  }

  .footer-useful-links ul {
    align-items: center;
  }

  .footer-linkedin-link {
    margin-inline: auto;
  }

  .footer-logo-list {
    grid-column: auto;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  :root {
    --page-pad: 16px;
    --header-height: 60px;
    --header-height-scrolled: 48px;
  }

  .site-header-inner { gap: 8px; }
  .site-header-actions { gap: 9px; }
  .site-header-actions > .site-language-selector {
    gap: 4px;
    font-size: 11.5px;
  }
  .site-header-actions > .site-language-selector a {
    min-height: 28px;
  }
  .site-header-logo {
    flex-basis: 31px;
    width: 31px;
    height: 31px;
  }
  .site-header-logo img { height: 27px; }
  body.has-scrolled .site-header-logo {
    flex-basis: 27px;
    width: 27px;
    height: 27px;
  }
  body.has-scrolled .site-header-logo img { height: 24px; }
  .site-mobile-menu { width: min(86vw, 290px); padding: 24px 18px; }

  .about-title,
  .about-subtitle {
    max-width: 58%;
  }

  .about-status {
    max-width: 40%;
  }

  .services-grid {
    flex: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .service-card { min-height: 0; }

  .home-showcase {
    min-height: 0;
    padding: 18px 14px;
  }

  .home-reference-slide {
    flex-basis: 132px;
    width: 132px;
    height: 82px;
  }

  .filter-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
  }

  .filter-chip {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    min-height: 29px;
    padding: 5px 9px 6px;
    font-size: 11px;
    white-space: nowrap;
  }

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

  .reference-card img {
    height: auto;
  }

  .legal-content {
    padding: 0;
  }

  .legal-content p,
  .legal-content li {
    font-size: 14px;
  }

  .footer-logo-list {
    gap: 20px 24px;
  }

  .footer-logo--engineering { width: 126px; }
  .footer-logo--state { width: 80px; }
  .footer-logo--ogni { width: 72px; }

  .legal-bar .page-wrap {
    padding-inline: 8px;
  }

  .legal-bar-inner {
    gap: 8px;
  }

  .legal-bar-copy,
  .legal-bar-links {
    font-size: clamp(8.5px, 2.45vw, 11px);
  }

  .legal-bar-links {
    gap: 5px;
  }

  .cookie-settings-slot,
  .cookie-settings-button {
    width: 21px;
    height: 21px;
  }

  .cookie-settings-svg {
    width: 17px;
    height: 17px;
  }

  .cookie-consent {
    right: 12px;
    bottom: 14px;
    left: 12px;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 13px;
    border-radius: 16px;
  }

  .cookie-consent__actions {
    width: 100%;
  }

  .cookie-consent__button {
    flex: 1;
    min-width: 0;
    padding-inline: 10px;
  }
}

@media (max-width: 420px) {
  .about-title,
  .about-subtitle { max-width: 100%; }

  .about-status {
    position: relative;
    top: auto;
    right: auto;
    align-self: flex-start;
    max-width: 100%;
    margin: 7px 0 2px;
    padding: 6px 10px;
    text-align: left;
  }

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

  .legal-bar-copy,
  .legal-bar-links { font-size: 8.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .home-reference-row { overflow-x: auto; }

  body:not(.intro-active) .about-status {
    animation: none !important;
  }
}

/* =========================================================
   2026-07-14 — Dimensions restored from the approved carousel version
   ========================================================= */
@media (min-width: 981px) {
  /* Shared 1,200 px content line and the original 140 px desktop clearance. */
  .container {
    width: min(calc(100% - 280px), 1200px);
    max-width: 1200px;
  }

  /* Start page: original 1,220 px two-column layout. */
  .about-main {
    min-height: 0;
    padding: 5px 0 var(--content-footer-gap);
    box-sizing: border-box;
    display: block;
  }

  .about-layout {
    width: min(calc(100% - 280px), 1220px);
    height: auto;
    min-height: 0;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 405px);
    gap: clamp(22px, 3vw, 48px);
    align-items: stretch;
  }

  .about-info {
    width: 100%;
    max-width: 760px;
    min-height: 100%;
    padding: 24px;
    overflow: visible;
  }

  .about-copy {
    margin: 12px 0 4px;
  }

  .about-copy p {
    font-size: clamp(14px, 0.95vw, 15.5px);
    line-height: 1.28;
  }

  .services-heading {
    margin: 0 0 7px;
  }

  .services-grid {
    flex: 1 1 auto;
    min-height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .service-card {
    min-height: 70px;
    padding: 8px 10px 7px;
  }

  .service-card h3 {
    margin-bottom: 4px;
  }

  .service-card p {
    font-size: clamp(14px, 0.95vw, 15.5px);
    line-height: 1.28;
  }

  .about-area-note {
    padding-top: 8px;
  }

  .home-showcase {
    width: 100%;
    min-width: 0;
    padding: 42px 30px;
    justify-content: center;
  }

  .home-showcase-brand img {
    width: min(100%, 210px);
  }

  .home-reference-marquees {
    gap: 10px;
  }

  .home-reference-track,
  .home-reference-sequence {
    gap: 8px;
  }

  .home-reference-slide {
    flex: 0 0 148px;
    width: 148px;
    height: 92px;
  }

  .home-references-link {
    margin-top: 28px;
  }

  /* Reference overview: original width and spacing with three cards per row. */
  .references-page .content {
    padding-top: 16px;
    padding-bottom: var(--content-footer-gap);
  }

  .references-page .filters {
    margin-bottom: 34px;
  }

  .references-page .filter-rows {
    gap: 8px;
  }

  .references-page .reference-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .references-page .reference-card img {
    height: auto;
  }
}

@media (min-width: 1301px) {
  .about-main {
    padding-top: 8px;
    padding-bottom: var(--content-footer-gap);
  }

  .about-layout {
    height: 669px;
  }

  .about-title {
    margin-bottom: 4px;
    font-size: clamp(17px, 1.55vw, 22px);
  }

  .about-copy p {
    line-height: 1.44;
  }

  .services-heading {
    line-height: 1.28;
  }

  .service-card p {
    line-height: 1.38;
  }

  .home-showcase-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
  }

  .home-showcase-brand img {
    display: block;
  }

  .home-references-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: clamp(11px, 0.78vw, 13px);
    line-height: 1.25;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .references-page .reference-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* 2026-07-14 — Unified distance from the final page content to the footer. */
.about-main,
.references-page .content {
  padding-bottom: var(--content-footer-gap);
}

@media (min-width: 981px) {
  .about-main {
    min-height: 0;
    display: block;
  }

  .about-layout {
    margin-bottom: 0;
  }
}

@media (max-width: 820px) {
  :root {
    --content-footer-gap: 22px;
  }
}

/* 2026-07-14 — Detailed reference information. */
.reference-card .reference-location,
.reference-card .reference-services,
.reference-card .reference-credit {
  margin: 0;
  color: var(--brand-text);
}
.reference-card .reference-location {
  padding: 0 16px 6px;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 500;
}
.reference-card .reference-services {
  padding: 0 16px 10px;
  font-size: 13px;
  line-height: 1.42;
}
.reference-card .reference-credit {
  margin-top: auto;
  padding: 0 16px 17px;
  font-size: 12.5px;
  line-height: 1.35;
  color: rgba(36, 66, 48, 0.78);
}
.reference-card .reference-credit a {
  color: var(--brand-orange);
  font-weight: 600;
  text-decoration: none;
}
.reference-card .reference-credit a:hover,
.reference-card .reference-credit a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
