.messages {
  position: relative;
  z-index: 4;
  padding-top: 16px;
}

.message {
  margin: 0;
  padding: 14px 18px;
  border-left: 4px solid #e33b27;
  background: #f3efe9;
  color: #1e1e1e;
}

.story-grid-cms:has(.story-card:only-child) {
  grid-template-columns: minmax(0, 1fr);
}

.story-grid-cms .story-card:only-child {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) minmax(280px, .75fr);
  column-gap: clamp(24px, 4vw, 68px);
  align-items: start;
}

.story-grid-cms .story-card:only-child img {
  grid-row: 1 / span 5;
  height: 100%;
  min-height: 360px;
}

.featured-project + .featured-project {
  margin-top: 42px;
}

.richtext-project h2,
.cms-richtext h2 {
  margin: 0 0 24px;
}

.richtext-project p,
.cms-richtext p,
.cms-richtext li {
  line-height: 1.75;
}

.cms-richtext h2:not(:first-child),
.cms-richtext h3 {
  margin-top: 48px;
}

.cms-richtext ul,
.cms-richtext ol {
  display: grid;
  gap: 12px;
  margin: 24px 0 32px;
  padding-left: 24px;
}

.empty-state {
  min-height: 240px;
  display: grid;
  place-items: center;
  border: 1px solid #c9c1b6;
  margin-top: 48px;
  margin-bottom: 80px;
}

.project-ledger .featured-project:first-child {
  margin-top: 0;
}

.lead-request-section {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(440px, 1.3fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
  margin-block: clamp(72px, 10vw, 140px);
  padding-block: clamp(46px, 6vw, 82px);
  border-top: 1px solid #bdb5aa;
  border-bottom: 1px solid #bdb5aa;
}

.lead-request-copy {
  position: sticky;
  top: 110px;
}

.lead-request-copy h2 {
  max-width: 620px;
  margin: 16px 0 22px;
  font-size: clamp(34px, 4.5vw, 68px);
  line-height: .94;
  letter-spacing: -.045em;
}

.lead-request-copy > p:last-child {
  max-width: 520px;
  color: #5b554d;
  line-height: 1.7;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 18px;
}

.lead-form > div:first-of-type,
.lead-form > div:nth-of-type(6),
.lead-form > div:nth-of-type(7),
.lead-form > .form-consent,
.lead-form > .form-error,
.lead-form > button,
.lead-form > .form-note {
  grid-column: 1 / -1;
}

.lead-form label:not(.form-consent) {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.required-mark {
  color: #8a8176;
  font-size: 9px;
  font-weight: 600;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid #aaa197;
  border-radius: 0;
  background: rgba(255, 255, 255, .46);
  color: #191919;
  font: inherit;
  padding: 14px 15px;
}

.lead-form textarea {
  min-height: 128px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: #e33b27;
  outline: 2px solid rgba(227, 59, 39, .16);
  outline-offset: 1px;
}

.lead-form input[type="file"] {
  padding: 10px;
}

.lead-form input[type="file"]::file-selector-button {
  margin-right: 14px;
  border: 0;
  background: #20201f;
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
}

.lead-form .form-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.55;
}

.lead-form .form-consent input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.form-note,
.form-error {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.form-note {
  color: #746c62;
}

.form-error {
  color: #ba2819;
  font-weight: 700;
}

.lead-form [aria-invalid="true"] {
  border-color: #ba2819;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.lead-form > button {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

@media (max-width: 760px) {
  .story-grid-cms .story-card:only-child {
    display: block;
  }

  .story-grid-cms .story-card:only-child img {
    min-height: 0;
    height: auto;
  }

  .lead-request-section,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .lead-request-copy {
    position: static;
  }

  .lead-form > * {
    grid-column: 1 !important;
  }
}
