/* SETYAPI source edition — layout refinements */
.header-inner {
  grid-template-columns: 264px 1fr auto;
}

.brand img {
  width: 224px;
}

.hero-slide img,
.editorial-image img,
.mosaic-image img,
.project-image-open img,
.lightbox-image-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: transparent;
}

.hero-slide img,
.editorial-image img,
.mosaic-image img,
.project-image-open img {
  object-fit: cover;
}

.lightbox-image-stage img {
  object-fit: contain;
}

.hero-facts {
  grid-template-columns: repeat(5, 1fr);
}

.project-card {
  scroll-margin-top: 118px;
}

.mosaic-project-1 {
  grid-area: 1 / 1 / 3 / 7;
}

.mosaic-project-2 {
  grid-area: 1 / 7 / 2 / 10;
}

.mosaic-project-3 {
  grid-area: 1 / 10 / 2 / 13;
}

.mosaic-project-4 {
  grid-area: 2 / 7 / 3 / 10;
}

.mosaic-project-5 {
  grid-area: 2 / 10 / 3 / 13;
}

.mosaic-project:not(.mosaic-project-1) .mosaic-copy h3 {
  font-size: clamp(18px, 1.65vw, 25px);
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: 232px 1fr auto;
  }

  .brand img {
    width: 202px;
  }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .brand img {
    width: 194px;
  }

  .hero-facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-facts > div:nth-child(3) {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .hero-facts > div:nth-child(4),
  .hero-facts > div:nth-child(5) {
    border-top: 1px solid var(--line);
  }

  .hero-facts > div:nth-child(4) {
    border-left: 0;
  }

  .project-mosaic {
    grid-template-rows: 520px 330px 330px;
  }

  .mosaic-project-1 {
    grid-area: 1 / 1 / 2 / 3;
  }

  .mosaic-project-2,
  .mosaic-project-3,
  .mosaic-project-4,
  .mosaic-project-5 {
    grid-area: auto;
  }
}

@media (max-width: 720px) {
  .hero-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-facts > div:nth-child(3),
  .hero-facts > div:nth-child(4),
  .hero-facts > div:nth-child(5) {
    border-top: 1px solid var(--line);
  }

  .hero-facts > div:nth-child(3),
  .hero-facts > div:nth-child(5) {
    border-left: 0;
  }

  .hero-facts > div:nth-child(4) {
    border-left: 1px solid var(--line);
  }

  .hero-facts > div:nth-child(5) {
    grid-column: 1 / -1;
  }

  .mosaic-project-1,
  .mosaic-project-2,
  .mosaic-project-3,
  .mosaic-project-4,
  .mosaic-project-5 {
    grid-area: auto;
  }
}


/* Bilingual language switch */
.header-inner {
  grid-template-columns: 264px 1fr auto auto;
  gap: 18px;
}

.header-language {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  line-height: 1;
}

.header-language a {
  color: var(--soft);
  padding: 8px 1px;
  transition: color .18s;
}

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

.header-language a[aria-current="page"] {
  border-bottom: 1px solid var(--copper);
}

.mobile-language {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
}

.mobile-menu .mobile-language a {
  border-bottom: 0;
  padding: 3px 0;
  font-size: 10px;
  font-weight: 600;
}

.mobile-menu .mobile-language a[aria-current="page"] {
  color: var(--copper);
  padding-left: 0;
}

.mobile-menu .mobile-language a[aria-current="page"]:before {
  display: none;
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: 232px 1fr auto auto;
    gap: 12px;
  }

  .header-language {
    gap: 5px;
  }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .header-language {
    display: none;
  }
}

/* English header fit refinements */
html[lang="en"] .desktop-nav a {
  padding-inline: 12px;
}

html[lang="en"] .header-cta {
  gap: 14px;
  padding-inline: 17px;
  white-space: nowrap;
}

html[lang="en"] .home-hero-copy h1 {
  max-width: 14ch;
  font-size: clamp(42px, 4.25vw, 64px);
}

@media (max-width: 1180px) {
  html[lang="en"] .desktop-nav a {
    padding-inline: 9px;
    font-size: 11px;
  }

  html[lang="en"] .header-cta {
    padding-inline: 14px;
    font-size: 9px;
  }
}
