/* Final layout guardrails — loaded last so desktop and mobile stay aligned. */
:root {
  --site-gutter: clamp(22px, 5vw, 96px);
  --site-width: 1720px;
}

.loader {
  overflow: hidden;
}

.loader img {
  display: block;
  width: min(220px, 52vw) !important;
  height: auto !important;
  max-width: 220px !important;
  max-height: 120px;
  object-fit: contain;
}

.loader.hide {
  pointer-events: none;
}

/* The opening shutter must never leave its logo over the page. */
.project-page-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.project-transition-logo img {
  display: block;
  width: min(230px, 45vw) !important;
  height: auto !important;
  max-width: 230px !important;
  object-fit: contain;
}

.project-page-transition.finished {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.project-page-transition.finished .project-transition-logo {
  display: none !important;
}

.navbar {
  width: min(calc(100% - (var(--site-gutter) * 1.2)), var(--site-width));
  max-width: var(--site-width);
  padding-inline: clamp(22px, 2.2vw, 38px);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
}

.brand img {
  display: block;
  width: min(158px, 100%);
  height: auto !important;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
}

.hero {
  display: flex;
  min-height: clamp(680px, 100vh, 980px);
  align-items: center;
}

.hero-content {
  width: min(760px, calc(100% - (var(--site-gutter) * 2)));
  max-width: 760px;
  margin-left: max(var(--site-gutter), calc((100vw - var(--site-width)) / 2 + var(--site-gutter)));
  padding: 150px 0 90px;
}

/* Selected mandates: keep each new visual framed for its subject. */
.projects-grid .project-card:nth-child(1) img {
  object-position: center 42%;
}

.projects-grid .project-card:nth-child(2) img {
  object-position: center 46%;
}

.projects-grid .project-card:nth-child(3) img {
  object-position: center 38%;
}

.our-projects-section {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: clamp(88px, 8vw, 132px) var(--site-gutter) !important;
}

.our-projects-head,
.project-choice-grid,
.project-explorer {
  width: min(100%, var(--site-width));
  margin-inline: auto;
}

.our-projects-head {
  margin-bottom: clamp(34px, 4vw, 56px);
}

.our-projects-head h2 {
  margin-top: 18px;
  font-size: clamp(42px, 4vw, 62px);
}

.project-choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.5vw, 26px);
  align-items: stretch;
}

.project-choice-card {
  grid-template-rows: clamp(280px, 25vw, 410px) auto;
  min-width: 0;
}

.project-choice-image img {
  object-position: center center;
}

.project-choice-content {
  grid-template-columns: minmax(0, 1fr) 52px;
}

.project-choice-content em {
  display: none;
}

@media (max-width: 1180px) {
  .navbar {
    grid-template-columns: 155px 1fr 175px;
  }

  .nav-links {
    gap: 14px;
  }

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

@media (max-width: 992px) {
  .navbar {
    width: calc(100% - 32px);
  }

  .hero-content {
    margin-left: var(--site-gutter);
  }

  .our-projects-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .our-projects-head p {
    grid-column: 1;
    grid-row: auto;
    margin-top: 18px;
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 680px) {
  :root {
    --site-gutter: 20px;
  }

  .navbar {
    top: 14px;
    width: calc(100% - 24px);
    height: 70px;
    padding-inline: 16px;
    border-radius: 22px;
  }

  .brand img {
    width: 118px;
    max-height: 48px;
  }

  .nav-btn {
    padding: 12px 15px;
    font-size: 9px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    width: calc(100% - 40px);
    margin-inline: 20px;
    padding: 140px 0 72px;
  }

  .our-projects-section {
    padding: 78px 20px !important;
  }

  .our-projects-head h2 {
    font-size: 38px;
  }

  .project-choice-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-choice-card {
    grid-template-rows: min(92vw, 390px) auto;
    border-radius: 22px;
  }

  .project-choice-content strong {
    font-size: 28px;
  }
}
