.home-project-hero, .erp-project-hero {
  padding-top: clamp(108px, 10vw, 154px);
  padding-bottom: clamp(48px, 6vw, 90px);
}
.home-project-hero .hero-grid, .erp-project-hero .hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(27px, 4.2vw, 60px);
}
.home-project-hero h1 {
  font-size: clamp(40px, 5.28vw, 75px);
  text-wrap: balance;
}
.home-project-hero .hero-actions .btn, .erp-project-hero .hero-actions .btn {
  min-height: 49px;
  padding: 13px 21px;
}
.home-projects {
  padding: clamp(17px, 2.1vw, 27px);
  border: 1px solid rgba(181, 163, 255, .23);
  border-radius: 26px;
  background: radial-gradient(ellipse at 88% 0, #2b2143, transparent 62%), #14141e;
  box-shadow: 0 24px 72px #0005;
  scroll-margin-top: 95px;
}
.home-projects h2 {
  margin: 0 0 15px;
  font-size: 22px;
  letter-spacing: -.025em;
}
.home-project-star, .home-project-tiles a, .erp-project-screen {
  overflow: hidden;
  border: 1px solid rgba(235, 230, 255, .15);
  border-radius: 16px;
  background: rgba(238, 228, 255, .055);
}
.home-project-star {
  display: block;
}
.home-project-star img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 5;
  object-fit: cover;
  object-position: center 47%;
}
.home-project-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}
.home-project-caption > span:last-child {
  color: #d8c9ff;
  font-size: 17px;
}
.home-projects strong, .home-projects small {
  display: block;
  line-height: 1.35;
}
.home-projects strong {
  font-size: 14px;
  color: var(--text);
}
.home-projects small {
  margin-top: 3px;
  color: #c4bed5;
  font-size: 12px;
}
.home-project-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 9px;
}
.home-project-tiles a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px;
}
.home-project-tiles img {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
}
.home-project-star:hover, .home-project-tiles a:hover {
  border-color: #aa92ef;
}
.home-project-links, .erp-account-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.home-project-links {
  margin-top: 15px;
}
.home-project-links a, .erp-account-links a, .erp-project-screen figcaption a {
  color: #d8c9ff;
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 3px;
}
.home-project-links a:hover, .erp-account-links a:hover, .erp-project-screen figcaption a:hover {
  text-decoration: underline;
}
.home-projects a:focus-visible, .erp-project-hero a:focus-visible {
  outline: 2px solid #d8c9ff;
  outline-offset: 3px;
}
.erp-project-hero p.lead {
  margin-bottom: 21px;
}
.erp-project-hero .hero-tags {
  margin-bottom: 24px;
}
.erp-account-links {
  margin-top: 14px;
}
.erp-project-screen {
  width: min(100%, 470px);
  margin: 0;
  justify-self: center;
  border-radius: 23px;
  background: #171723;
  box-shadow: 0 22px 62px #0006;
}
.erp-project-screen img {
  display: block;
  width: 100%;
  height: auto;
}
.erp-project-screen figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 13px 17px;
  color: #cbc3dc;
  font-size: 13px;
}
.erp-workflow {
  scroll-margin-top: 76px;
}
.erp-workflow .sec-head {
  margin-bottom: 25px;
}
.erp-workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}
.erp-workflow-steps li {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}
.erp-workflow-steps h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.erp-workflow-steps p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

#screens {
  scroll-margin-top: 80px;
}

#screens .gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

#screens .gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (max-width: 960px) {
  .home-project-hero .hero-grid, .erp-project-hero .hero-grid {
    grid-template-columns: 1fr;
  }
  .home-projects {
    max-width: 680px;
  }
  .erp-workflow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #screens .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  #screens .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .home-project-hero, .erp-project-hero { padding-top: 99px; }
  .home-project-hero .hero-actions, .erp-project-hero .hero-actions { gap: 8px; }
  .home-project-hero .hero-actions .btn, .erp-project-hero .hero-actions .btn {
    min-height: 45px;
    padding: 10px 13px;
    font-size: 13px;
  }
  .home-project-tiles a { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 390px) {
  .erp-workflow-steps { grid-template-columns: 1fr; }
}
