/* Homepage contact section. */
.home-contact-section {
  --contact-lime: #a6ff00;
  background: #070808;
  color: #fff;
  overflow: hidden;
  padding: clamp(44px, 4.5vw, 68px) 0;
}

.home-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .9fr);
  gap: clamp(34px, 4vw, 58px);
  align-items: start;
}

.home-contact-card-copy > span {
  display: inline-block;
  width: 50px;
  height: 2px;
  background: var(--contact-lime);
}

.home-contact-content h2 {
  color: #fff;
  font-family: var(--themeht-typography-secondary-font-family, "DM Sans", "Inter", sans-serif);
  font-size: clamp(2.6rem, 3.65vw, 4rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
  margin: 0 0 14px;
}

.home-contact-content > p {
  color: #d4d4d4;
  font-family: var(--themeht-typography-body-font-family, "Inter", sans-serif);
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: 400;
  line-height: 1.55;
  margin: 0;
  max-width: 560px;
}

.home-contact-form { margin-top: 24px; max-width: 590px; }
.home-contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 12px; }
.home-contact-field {
  align-items: center;
  background: #111416;
  border: 1px solid #34393d;
  border-radius: 14px;
  display: flex;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
  transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}

.home-contact-field:focus-within {
  background: #121719;
  border-color: rgba(166, 255, 0, .9);
  transform: translateY(-2px);
}

.home-contact-field svg { flex: 0 0 20px; height: 20px; stroke: #f0f0f0; stroke-width: 1.65; fill: none; }
.home-contact-field input,
.home-contact-field textarea {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #fff;
  font: inherit;
  font-family: var(--themeht-typography-body-font-family, "Inter", sans-serif);
  font-size: 15px;
  font-weight: 500;
  min-width: 0;
  outline: 0;
  padding: 0;
  resize: vertical;
  width: 100%;
}
.home-contact-field input::placeholder,
.home-contact-field textarea::placeholder { color: #d9d9d9; opacity: 1; }
.home-contact-message { align-items: flex-start; grid-column: 1 / -1; min-height: 112px; padding-top: 15px; }
.home-contact-message textarea { min-height: 78px; }
.home-contact-actions { margin-top: 18px; }
.home-contact-submit {
  background: var(--contact-lime);
  border: 0;
  border-radius: 999px;
  color: #080808;
  cursor: pointer;
  font-family: var(--themeht-typography-secondary-font-family, "DM Sans", "Inter", sans-serif);
  font-size: 13px;
  font-weight: 700;
  height: 48px;
  min-width: 0;
  padding: 0 23px;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  transition: background-color .2s ease, transform .2s ease;
}
.home-contact-submit:hover { background: #c2ff45; transform: translateY(-2px); }
.home-contact-submit:disabled { cursor: wait; opacity: .7; transform: none; }
.home-contact-status { color: #d2d2d2; display: block; font-size: 14px; margin-top: 12px; min-height: 21px; }
.home-contact-status.is-success { color: var(--contact-lime); }

.home-contact-card {
  border: 1px solid #35393c;
  border-radius: 24px;
  min-height: clamp(390px, 31vw, 500px);
  max-width: 560px;
  overflow: hidden;
  position: relative;
  justify-self: end;
  width: 100%;
}
.home-contact-card::after { background: linear-gradient(180deg, rgba(3, 4, 4, 0) 30%, rgba(3, 4, 4, .94) 75%); content: ''; inset: 0; position: absolute; }
.home-contact-card img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.home-contact-card-copy { bottom: 26px; left: 30px; position: absolute; right: 30px; z-index: 1; }
.home-contact-card-copy > span { background: #fff; margin-bottom: 16px; width: 38px; }
.home-contact-card h3 { color: #fff; font-family: var(--themeht-typography-secondary-font-family, "DM Sans", "Inter", sans-serif); font-size: clamp(31px, 2.45vw, 42px); font-weight: 700; letter-spacing: -.045em; line-height: 1; margin: 0 0 12px; }
.home-contact-card p { color: #e1e1e1; font-family: var(--themeht-typography-body-font-family, "Inter", sans-serif); font-size: 15px; font-weight: 400; line-height: 1.52; margin: 0; max-width: 310px; }

.home-contact-reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s cubic-bezier(.22, 1, .36, 1); }
.home-contact-card.home-contact-reveal { transition-delay: .12s; }
.home-contact-section.is-visible .home-contact-reveal { opacity: 1; transform: translateY(0); }
.home-contact-section.is-visible .home-contact-field { animation: home-contact-field-in .45s ease both; }
.home-contact-section.is-visible .home-contact-field:nth-child(2) { animation-delay: .06s; }
.home-contact-section.is-visible .home-contact-field:nth-child(3) { animation-delay: .12s; }
.home-contact-section.is-visible .home-contact-field:nth-child(4) { animation-delay: .18s; }
.home-contact-section.is-visible .home-contact-field:nth-child(5) { animation-delay: .24s; }
@keyframes home-contact-field-in { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 991px) {
  .home-contact-grid { gap: 34px; grid-template-columns: 1fr; }
  /* The supporting visual is desktop-only; the form becomes the single mobile/tablet column. */
  .homepage-experience .home-contact-card { display: none; }
}
@media (max-width: 575px) {
  .home-contact-section { padding: 42px 0 54px; }
  .home-contact-content h2 { font-size: clamp(2.45rem, 10.5vw, 3.1rem); }
  .home-contact-content > p { font-size: 15px; max-width: 100%; }
  .home-contact-form { margin-top: 22px; max-width: none; }
  .home-contact-fields { grid-template-columns: 1fr; gap: 11px; }
  .home-contact-field { border-radius: 13px; min-height: 56px; padding: 0 15px; }
  .home-contact-message { grid-column: auto; min-height: 106px; padding-top: 15px; }
  .home-contact-message textarea { min-height: 72px; }
  .home-contact-actions { margin-top: 17px; }
  .home-contact-card { border-radius: 20px; min-height: min(390px, 105vw); }
  .home-contact-card-copy { bottom: 24px; left: 24px; right: 24px; }
  .home-contact-card-copy > span { margin-bottom: 16px; }
  .home-contact-card h3 { font-size: 32px; margin-bottom: 13px; }
  .home-contact-card p { font-size: 15px; }
  .home-contact-submit { font-size: 13px; height: 46px; padding: 0 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-contact-reveal { opacity: 1; transform: none; transition: none; }
  .home-contact-section.is-visible .home-contact-field { animation: none; }
}
