.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;
}

.info-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(44px, 6vw, 96px);
  align-items: stretch;
  padding-top: clamp(58px, 7vw, 96px);
  padding-bottom: clamp(58px, 7vw, 96px);
  border-bottom: 1px solid #bdb5aa;
}

.info-hero--with-image {
  grid-template-columns: minmax(0, .8fr) minmax(280px, .7fr) minmax(360px, 1fr);
}

.info-hero .copy-panel {
  position: static;
  align-self: center;
}

.info-hero .copy-panel h1 {
  max-width: 10ch;
  margin: 16px 0 24px;
  font-size: clamp(48px, 5vw, 76px);
  line-height: .94;
  letter-spacing: -.055em;
}

.info-hero .lead {
  max-width: 680px;
}

.info-hero .image-card {
  min-height: 460px;
  margin: 0;
  overflow: hidden;
}

.info-hero .image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-summary {
  align-self: stretch;
  padding: clamp(26px, 3vw, 44px);
  border-top: 5px solid #e33b27;
  background: #20201f;
  color: #fff;
}

.info-summary h2 {
  margin: 0 0 24px;
  font-size: clamp(24px, 2vw, 34px);
}

.info-summary .step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 5px 14px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .24);
}

.info-summary .step b {
  grid-row: 1 / span 2;
  color: #ff5a43;
  font-size: 13px;
  letter-spacing: .08em;
}

.info-summary .step span,
.info-summary .step h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.info-summary .step p {
  grid-column: 2;
  margin: 0;
  color: #c7c7c4;
  line-height: 1.55;
}

.contact-band-copy {
  position: sticky;
  top: 110px;
  align-self: start;
}

.contact-band-copy h2 {
  max-width: 560px;
  margin: 16px 0 22px;
  font-size: clamp(42px, 4.5vw, 70px);
  line-height: .94;
  letter-spacing: -.05em;
}

.contact-band-copy > p:last-child {
  max-width: 520px;
  color: #5b554d;
  font-size: 17px;
  line-height: 1.65;
}

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

.lead-form > .lead-field--wide,
.lead-form > .voice-fill,
.lead-form > .form-consent,
.lead-form > .form-error,
.lead-form > button,
.lead-form > .form-note {
  grid-column: 1 / -1;
}

.voice-fill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 24px;
  align-items: center;
  padding: 20px;
  border-bottom: 4px solid #e33b27;
  background: #20201f;
  color: #fff;
}

.voice-fill-copy {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.voice-fill-icon {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .4);
  color: #ff5a43;
}

.voice-fill-icon svg,
.voice-action svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.voice-fill strong {
  display: block;
  margin-bottom: 5px;
  font-size: 20px;
  line-height: 1.15;
}

.voice-fill p {
  margin: 0;
  line-height: 1.45;
}

.voice-fill-privacy {
  margin-top: 6px !important;
  color: #bdbdbb;
  font-size: 12px;
}

.voice-fill-status {
  grid-column: 1 / -1;
  min-height: 18px;
  color: #d8d8d5;
  font-size: 12px;
}

.voice-recording-indicator {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 122, 103, .8);
  background: rgba(227, 59, 39, .2);
  color: #fff;
  font-size: 13px;
}

.voice-recording-indicator[hidden] {
  display: none !important;
}

.voice-recording-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5a43;
  box-shadow: 0 0 0 0 rgba(255, 90, 67, .7);
  animation: voice-recording-pulse 1.25s ease-out infinite;
}

.voice-recording-label {
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.voice-recording-note {
  color: #d8d8d5;
}

.voice-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid currentColor;
  border-radius: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.voice-action[hidden] {
  display: none !important;
}

.voice-action--primary {
  min-height: 48px;
  padding: 11px 16px;
  background: #e33b27;
  color: #fff;
}

.voice-action--primary:hover,
.voice-action--primary:focus-visible {
  background: #ff533e;
}

.lead-field-heading {
  display: flex;
  min-height: 32px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.lead-form .lead-field-heading > label:not(.form-consent) {
  flex: 1 1 auto;
  margin-bottom: 0;
}

.voice-action--field {
  flex: 0 0 auto;
  min-width: 88px;
  min-height: 36px;
  padding: 6px 10px;
  background: transparent;
  color: #3f3b36;
  font-size: 12px;
}

.voice-action--field svg {
  width: 16px;
  height: 16px;
  color: #e33b27;
}

.voice-action--field:hover,
.voice-action--field:focus-visible {
  background: rgba(227, 59, 39, .1);
  color: #ba2819;
}

.voice-action.is-listening {
  border-color: #ba2819;
  background: #e33b27;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(227, 59, 39, .2);
}

.voice-action.is-listening svg {
  color: inherit;
  animation: voice-pulse 1s ease-in-out infinite;
}

.voice-fill.is-listening {
  border-bottom-color: #ff6b56;
  box-shadow: inset 4px 0 0 #e33b27;
}

.voice-fill.is-listening .voice-fill-icon {
  border-color: #ff7a67;
  background: #e33b27;
  color: #fff;
}

.lead-field.is-voice-listening input,
.lead-field.is-voice-listening textarea {
  border-color: #e33b27;
  box-shadow: inset 4px 0 0 rgba(227, 59, 39, .8);
}

@keyframes voice-pulse {
  50% {
    opacity: .35;
    transform: scale(.82);
  }
}

@keyframes voice-recording-pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(255, 90, 67, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 90, 67, 0);
  }
}

.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;
  }

  .voice-fill {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .voice-action--primary {
    width: 100%;
    min-height: 52px;
  }

  .voice-action--field {
    min-width: 44px;
    min-height: 36px;
  }
}

@media (max-width: 1180px) {
  .info-hero,
  .info-hero--with-image {
    grid-template-columns: 1fr 1fr;
  }

  .info-hero--with-image .info-summary {
    grid-column: 1 / -1;
  }

  .voice-fill {
    grid-template-columns: 1fr;
  }

  .voice-action--primary {
    justify-self: start;
  }
}

@media (max-width: 980px) {
  .info-hero,
  .info-hero--with-image {
    grid-template-columns: 1fr;
  }

  .info-hero--with-image .info-summary {
    grid-column: auto;
  }

  .contact-band-copy {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voice-action.is-listening svg,
  .voice-recording-dot {
    animation: none;
  }
}
