.contact-float {
  position: fixed;
  left: max(24px, env(safe-area-inset-left));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 22px 10px 10px;
  background: var(--soft-black);
  color: var(--ivory);
  border: 1px solid #f8f0de65;
  border-radius: 40px;
  box-shadow: 0 5px 22px #25232130;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.contact-float:hover { background: var(--burnt); }
.contact-float-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--burnt);
  color: var(--ivory);
}
.contact-float svg, .contact-close svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html.contact-dialog-open { overflow: hidden; scrollbar-gutter: stable; }
#contact-dialog {
  position: fixed;
  inset: 0;
  width: min(920px, calc(100% - 48px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  margin: auto;
  overflow: auto;
  border: 0;
  border-radius: 12px;
  background: var(--ivory);
  color: var(--soft-black);
  box-shadow: 0 18px 80px #0004;
  overscroll-behavior: contain;
}
#contact-dialog::backdrop { background: #252321b8; }
.contact-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #25232135;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--soft-black);
}
.contact-close:hover { background: var(--soft-black); color: var(--ivory); }
.contact-dialog-layout { display: grid; grid-template-columns: .9fr 1.1fr; }
.contact-dialog-intro { display: flex; flex-direction: column; align-items: flex-start; padding: 44px 34px; background: var(--burnt); color: var(--ivory); }
.contact-brand { font: 700 24px/1 var(--display); letter-spacing: -1px; }
.contact-brand span { font-weight: 400; }
#contact-dialog-title { margin-top: 65px; font: 500 53px/1.06 var(--display); letter-spacing: -2px; }
#contact-dialog-title > span { color: var(--soft-black); }
#contact-dialog-description { margin-top: 23px; font-size: 17px; line-height: 1.65; max-width: 310px; }
.contact-intro-arrow { display: block; margin-top: auto; padding-top: 42px; font: 400 74px/1 var(--display); }
.contact-dialog-form { padding: 64px 40px 36px; }
#contact-form { display: flex; flex-direction: column; align-items: stretch; }
#contact-form label { margin: 16px 0 7px; font-size: 14px; line-height: 1.4; font-weight: 600; }
#contact-form label:first-child { margin-top: 0; }
#contact-form input, #contact-form textarea {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #25232140;
  border-radius: 5px;
  background: #fffaf0;
  color: var(--soft-black);
  font: 400 16px/1.4 var(--body);
}
#contact-form textarea { min-height: 132px; resize: vertical; }
#contact-form input::placeholder, #contact-form textarea::placeholder { color: #70645c; opacity: 1; }
#contact-form input:focus, #contact-form textarea:focus { outline: 2px solid var(--burnt); outline-offset: 1px; border-color: var(--burnt); }
.contact-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  margin-top: 25px;
  padding: 15px 18px;
  border: 0;
  border-radius: 5px;
  background: var(--soft-black);
  color: var(--ivory);
  font: 600 15px/1.5 var(--body);
}
.contact-submit:hover { background: var(--burnt); }
.contact-submit > span { font-size: 24px; }
.contact-form-hint { margin-top: 13px; color: #675b53; font-size: 12px; line-height: 1.6; }
.contact-status { margin-top: 12px; color: var(--burnt); font-size: 13px; line-height: 1.5; }
.contact-status:empty { display: none; }
.contact-retry { margin-top: 7px; font-size: 13px; }
@media (max-width: 650px) {
  .contact-float { left: 16px; bottom: max(16px, env(safe-area-inset-bottom)); padding: 7px 16px 7px 7px; min-height: 54px; gap: 9px; font-size: 13px; }
  .contact-float-icon { width: 38px; height: 38px; }
  #contact-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 9px; }
  .contact-dialog-layout { grid-template-columns: 1fr; }
  .contact-dialog-intro { padding: 27px 25px 28px; }
  .contact-brand { font-size: 21px; }
  #contact-dialog-title { margin-top: 28px; font-size: 38px; letter-spacing: -1.4px; }
  #contact-dialog-title br { display: none; }
  #contact-dialog-description { margin-top: 14px; max-width: 100%; font-size: 15px; line-height: 1.5; }
  .contact-intro-arrow { display: none; }
  .contact-dialog-form { padding: 24px 25px 28px; }
  .contact-close { top: 15px; right: 15px; width: 36px; height: 36px; }
  #contact-form textarea { min-height: 100px; }
}
