.hero {
  grid-template-columns: minmax(0, 1.42fr) minmax(240px, 0.58fr);
  gap: 48px;
  min-height: 0;
  padding: 54px 0 42px;
}
.hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(46px, 5.7vw, 76px);
}
.lead {
  font-size: 16px;
  line-height: 1.75;
}
.hero-visual {
  justify-self: end;
  width: min(100%, 310px);
  padding: 14px 14px 38px;
  border-radius: 52px 8px 52px 8px;
}
.hero-visual > img {
  aspect-ratio: 4/4.6;
  border-radius: 40px 4px 40px 4px;
}
.hero-visual figcaption {
  left: 24px;
  right: 24px;
  bottom: 13px;
  font-size: 9px;
}
.seal {
  right: -16px;
  top: 34px;
  width: 72px;
  height: 72px;
  font-size: 11px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.hero-points span {
  padding: 8px 12px;
  border: 1px solid #dbcbd3;
  border-radius: 999px;
  background: #fff9fc;
  color: #765468;
  font-size: 12px;
}
.hero .actions {
  display: flex;
  max-width: none;
  margin-top: 22px;
}
.hero .actions .button {
  width: auto;
  min-height: 44px;
  padding: 10px 18px;
  box-shadow: 5px 5px 0 #dec7d0;
}
.proof div {
  padding: 18px 22px;
}
.proof strong {
  font-size: 28px;
}
.evidence-strip {
  margin-top: 18px;
}

/* Keep project screenshots at their native 16:9 proportion so the media area
   is fully occupied without the pale gutters introduced by a fixed height. */
.project-card > img {
  width: calc(100% + 24px);
  max-width: none;
  height: auto;
  aspect-ratio: auto;
  margin: -12px -12px 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
@media (max-width: 850px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
    padding: 38px 0 30px;
  }
  .hero h1 {
    font-size: clamp(40px, 7vw, 58px);
  }
  .hero-visual {
    width: 220px;
  }
  .seal {
    display: none;
  }
  .project-card > img {
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
  }
}
@media (max-width: 650px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 30px 0 24px;
  }
  .hero-visual {
    order: 2;
    justify-self: stretch;
    width: 100%;
    padding: 8px 8px 27px;
    border-radius: 24px 6px 24px 6px;
  }
  .hero-visual > img {
    height: 132px;
    aspect-ratio: auto;
    object-fit: contain;
    background: #f1e8ee;
    object-position: center 30%;
    border-radius: 17px 3px 17px 3px;
  }
  .hero-visual figcaption {
    bottom: 8px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .lead {
    font-size: 15px;
  }
  .hero-points {
    margin-top: 16px;
  }
  .hero .actions {
    margin-top: 18px;
  }
  .proof {
    grid-template-columns: repeat(3, 1fr);
  }
  .proof div {
    padding: 14px 8px;
  }
  .proof div + div {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .proof strong {
    font-size: 21px;
  }
  .proof span {
    font-size: 10px;
    line-height: 1.45;
  }
}

/* Keep text and media within their grid columns at intermediate widths. */
.hero > div { min-width: 0; }
.hero-visual { margin: 0; }
.hero h1 { text-wrap: balance; }
.project-card { min-height: 0; cursor: pointer; }
@media (max-width: 850px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { justify-self: center; width: min(100%, 310px); }
}
@media (max-width: 560px) {
  .brand { gap: 8px; }
  .brand small { font-size: 7px; letter-spacing: .08em; }
  .hero h1 { font-size: clamp(32px, 9vw, 42px); }
  .hero .actions { flex-direction: column; }
}
