/* Critical layout guards kept separate so cached legacy CSS cannot expand portfolio images. */
.hero-inner,
.hero-copy,
.hero-showcase,
.browser-frame,
.phone-frame,
.project,
.project-image,
.mobile-project-image,
.inventory-project-images {
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 150px;
  height: auto;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

footer .brand-logo {
  width: 178px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-showcase {
  width: 100%;
  max-width: 720px;
  justify-self: end;
}

.browser-frame {
  max-width: min(790px, calc(100vw - 40px));
}

.browser-frame img,
.project-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.phone-frame img,
.mobile-project-image img,
.inventory-project-images img {
  display: block;
  max-width: 100%;
}

.project-hris .project-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
}

.project-inventory {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  background: #08152f;
  color: #fff;
}

.inventory-project-images {
  min-height: 510px;
  padding: 34px 30px 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, #e8e7ff, #c8d6ff);
}

.inventory-project-images img {
  width: min(42%, 245px);
  height: auto;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 20px 50px rgba(20, 43, 79, .25);
}

.inventory-project-images img:last-child {
  transform: translateY(45px);
}

.project-inventory .project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-inventory .project-copy p,
.project-inventory .project-copy li {
  color: #aab7cc;
}

@media (max-width: 1100px) {
  .hero-showcase {
    justify-self: start;
    max-width: 100%;
  }

  .project-inventory {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .hero-showcase {
    width: calc(100vw - 36px);
  }

  .browser-frame {
    max-width: none;
  }

  .project-inventory {
    grid-template-columns: 1fr;
  }

  .inventory-project-images {
    min-height: 360px;
    padding: 24px 12px 0;
    gap: 12px;
  }

  .inventory-project-images img {
    width: min(46%, 185px);
    border-radius: 18px 18px 0 0;
  }
}
