/* Home — Contact band under Services.
   Same 12-column grid as the footer: columns 1 and 12 are the side margins.
   Type sizes stay fixed. Frame matches the 1550×1331 Figma artboard. */

.home-contact {
  --contact-ink: rgba(0, 0, 0, 0.7);
  --contact-field: rgba(74, 74, 74, 0.7);
  --contact-stat: #173b30;
  --contact-frame: 1331px;

  background: var(--color-oat);
  color: #000;
  overflow: hidden;
}

.home-contact__frame {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
  min-height: var(--contact-frame);
}

.home-contact__hello {
  position: absolute;
  z-index: 0;
  top: -103px;
  left: 90.83px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 659.47px;
  font-weight: var(--font-weight-semibold);
  line-height: 571.541px;
  letter-spacing: -46.1629px;
  color: var(--color-orange);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* Sits on the frame's bottom edge, same inset as the Figma vector. */
.home-contact__mark {
  position: absolute;
  z-index: 2;
  left: 9.47%;
  top: 104.06%;
  right: 86.65%;
  bottom: -10.12%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.home-contact__mark img {
  width: 80.6848px;
  height: 60.1292px;
  max-width: none;
  transform: rotate(-90deg) scaleX(-1);
}

.home-contact__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: var(--contact-frame);
}

.home-contact__lead,
.home-contact__form {
  grid-column: 2 / 7;
  grid-row: 1;
  margin-left: 4px;
}

.home-contact__lead {
  align-self: start;
  margin-top: 501px;
  margin-bottom: 0;
  margin-right: 0;
  font-family: var(--font-sans);
  font-size: 37.005px;
  font-weight: var(--font-weight-semibold);
  line-height: 36.1px;
  letter-spacing: -1.1102px;
  color: var(--contact-ink);
}

.home-contact__form {
  position: relative;
  margin-top: 0;
  margin-bottom: 0;
  margin-right: 0;
}

.home-contact__field {
  position: absolute;
  left: 0;
  width: 519.551px;
  max-width: 100%;
  margin: 0;
}

.home-contact__field--firstName {
  top: 574px;
}

.home-contact__field--lastName {
  top: 674px;
}

.home-contact__field--email {
  top: 773px;
}

.home-contact__field--company {
  top: 873px;
}

.home-contact__field--message {
  top: 964px;
}

.home-contact__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-contact__control {
  display: block;
  width: 100%;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--contact-field);
  font-family: var(--font-sans);
  font-weight: var(--font-weight-regular);
  font-size: 20px;
  line-height: 20px;
  letter-spacing: 0;
  resize: none;
}

.home-contact__field--small .home-contact__control {
  font-size: 18px;
}

.home-contact__control::placeholder {
  color: var(--contact-field);
  opacity: 1;
}

.home-contact__field--message .home-contact__control {
  height: 100px;
}

.home-contact__line {
  position: absolute;
  top: 34px;
  left: 0;
  display: block;
  width: 519.551px;
  height: 2px;
  max-width: none;
}

.home-contact__field--message .home-contact__line {
  top: 120px;
}

.home-contact__control:focus {
  outline: none;
}

.home-contact__control:focus-visible {
  outline: 2px solid var(--contact-stat);
  outline-offset: 2px;
}

.home-contact__submit {
  position: absolute;
  top: 1118px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 44px;
  margin: 0;
  padding: 10px 40px;
  border: 0;
  border-radius: 80px;
  background: var(--color-orange);
  color: var(--contact-stat);
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: var(--font-weight-medium);
  line-height: 1.45;
  letter-spacing: -0.48px;
  cursor: pointer;
}

.home-contact__submit:hover {
  background: var(--color-teal);
  color: var(--contact-stat);
}

.home-contact__submit:focus-visible {
  outline: 2px solid var(--contact-stat);
  outline-offset: 3px;
}

/* Columns 7–11. Column 12 stays the right margin. */
.home-contact__card {
  grid-column: 7 / 12;
  grid-row: 1;
  position: relative;
  height: 450px;
  margin-top: 500px;
  margin-left: 9px;
  border-radius: 10px;
  background: var(--color-teal);
  overflow: hidden;
}

.home-contact__card-title {
  margin: 21.49px 0 0 31.31px;
  max-width: 317px;
  font-family: var(--font-sans);
  font-size: 60px;
  font-weight: 700;
  line-height: 60px;
  letter-spacing: -3.6px;
  color: var(--contact-ink);
}

.home-contact__card-title span {
  display: block;
}

.home-contact__card-title br {
  display: none;
}

.home-contact__card-copy {
  position: absolute;
  left: 31.31px;
  bottom: 23.91px;
  width: 270px;
  max-width: 270px;
  margin: 0;
  color: var(--contact-ink);
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: var(--font-weight-medium);
  line-height: normal;
  letter-spacing: -0.6px;
}

.home-contact__card-copy p {
  margin: 0;
}

.home-contact__card-copy p + p {
  margin-top: 0.85rem;
}

.home-contact__card-email {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.home-contact__card-email:hover,
.home-contact__card-email:focus-visible {
  text-decoration: underline;
}

.home-contact__asterisk {
  position: absolute;
  right: 40.5px;
  bottom: 22.7px;
  width: 84px;
  height: 95px;
  max-width: none;
}

@media (max-width: 960px) {
  .home-contact__frame,
  .home-contact__grid {
    min-height: 0;
  }

  .home-contact__hello {
    position: relative;
    top: 0;
    left: 50%;
    width: max-content;
    margin: -0.18em 0 0.35rem;
    padding: 0;
    transform: translateX(-50%);
    /* ~1.99em wide at -7% tracking; ~8% past the viewport, tops tucked under. */
    font-size: calc(100vw * 0.544);
    line-height: 0.86;
    letter-spacing: -0.07em;
  }

  .home-contact__mark {
    display: none;
  }

  .home-contact__grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2.75rem;
    padding: 0 var(--pad-x) 3.5rem;
  }

  .home-contact__lead,
  .home-contact__form,
  .home-contact__card {
    grid-column: auto;
    grid-row: auto;
    width: auto;
    max-width: 36rem;
    margin: 0;
  }

  .home-contact__lead {
    margin-top: 0;
  }

  .home-contact__form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.75rem;
  }

  .home-contact__field,
  .home-contact__field--firstName,
  .home-contact__field--lastName,
  .home-contact__field--email,
  .home-contact__field--company,
  .home-contact__field--message {
    position: relative;
    top: auto;
    width: 100%;
    max-width: 519.551px;
  }

  .home-contact__line,
  .home-contact__field--message .home-contact__line {
    position: relative;
    top: auto;
    width: 100%;
    max-width: 519.551px;
    margin-top: 14px;
  }

  .home-contact__field--message .home-contact__control {
    height: 100px;
  }

  .home-contact__submit {
    position: relative;
    top: auto;
    margin-top: 0.5rem;
  }

  .home-contact__card {
    height: 450px;
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .home-contact__hello {
    font-size: calc(100vw * 0.6528 * 0.8);
  }

  .home-contact__asterisk {
    z-index: 0;
    right: -18%;
    bottom: -22%;
    width: 68%;
    height: auto;
    opacity: 0.05;
  }

  .home-contact__card-title {
    position: relative;
    z-index: 1;
  }

  .home-contact__card-copy {
    z-index: 1;
  }
}
