/* A centered introduction, a working form, and the team's physical address. */
#cloud.contact-section {
  position: relative;
  isolation: isolate;
  display: block;
  padding-block: clamp(36px, 4vw, 56px) clamp(64px, 7vw, 96px);
  font-family: Inter, Geist, "Helvetica Neue", Arial, sans-serif;
}

#cloud.contact-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 calc(50% - 50vw);
  background: linear-gradient(180deg, #F7F6F3, #ECEBE7);
  clip-path: polygon(0 55%, 100% 27%, 100% 100%, 0 100%);
  pointer-events: none;
}

.contact-heading {
  max-width: 720px;
  margin: 0 auto clamp(36px, 4vw, 56px);
  text-align: center;
}
.contact-heading h2 {
  font-size: clamp(32px, 3.8vw, 56px);
  font-weight: 450;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.contact-heading .subhead {
  max-width: none;
  margin: 18px 0 0;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--dim);
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  max-width: 1040px;
  margin: 0 auto;
}
#cloud .contact-card {
  width: 100%;
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid #E9E6E1;
  border-radius: 14px;
  background: #FFFFFF;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 4px 12px -6px rgba(64, 40, 28, 0.12), 0 24px 64px -32px rgba(64, 40, 28, 0.3);
}
#cloud .contact-form {
  --label-width: 132px;
  --field-gap: 20px;
  gap: 16px;
  margin: 0;
}
#cloud .contact-form .contact-field {
  display: grid;
  grid-template-columns: var(--label-width) minmax(0, 1fr);
  align-items: center;
  gap: var(--field-gap);
  min-width: 0;
  color: #514E48;
  font-size: 14px;
  line-height: 1.5;
}
#cloud .contact-form input,
#cloud .contact-form textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #F6F5F3;
  color: #25231F;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
#cloud .contact-form input::placeholder,
#cloud .contact-form textarea::placeholder { color: #756F66; opacity: 1; }
#cloud .contact-form input:focus,
#cloud .contact-form textarea:focus {
  border-color: #C96C4A;
  box-shadow: 0 0 0 3px rgba(201, 108, 74, 0.12);
  outline: none;
}
#cloud .contact-form input:user-invalid { border-color: #B4532E; }
#cloud .contact-form .contact-message { align-items: start; }
.contact-message > span { padding-top: 12px; }
#cloud .contact-form .opt { display: block; margin-top: 4px; color: #756F66; font-size: 12px; }
#cloud .contact-form textarea { min-height: 168px; resize: vertical; }
#cloud .contact-form .btn {
  align-self: stretch;
  min-height: 46px;
  margin: 4px 0 0 calc(var(--label-width) + var(--field-gap));
  padding: 12px 20px;
  border-radius: 6px;
  background: rgba(201, 108, 74, 0.12);
  color: #D97757;
  font-size: 15px;
  font-weight: 500;
  box-shadow: none;
}
#cloud .contact-form .btn:hover { background: rgba(201, 108, 74, 0.2); color: #D97757; }
#cloud .contact-form .wl-fine { margin-top: 8px; font-size: 11px; line-height: 1.6; color: var(--dim); }
.contact-office { min-width: 0; color: #4A3024; padding-block: 20px; position: relative; top: -46px; } /* centered on the card, then 46px up as an offset (Nick 2026-10-31: "move the darkmatter HQ content on the right side of the screen up slightly higher", then "shift all content on the right down a nudge so the logo and San Francisco straddle the line a little more cleanly"; 60px up before that); a 120px bottom margin did the same at desktop widths but made the row taller than the card between 1000px and 760px, pushing the card down 4 to 27px */
.contact-office .brand-mark { display: block; width: 42px; height: 42px; margin-bottom: 30px; }
.contact-eyebrow { margin: 0 0 10px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-office h3 { margin: 0 0 20px; font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }
/* Under the heading, a short notice on the site's content (Nick 2026-10-31: "put something else under the darkmatter HQ like a short legal notice"); the street address and its directions link stood here before. */
.contact-notice { margin: 0; max-width: 24em; font-size: 13px; line-height: 1.65; color: #6F5A4E; text-wrap: pretty; } /* 30em until Nick asked for a slightly narrower column (2026-10-31) */
.contact-notice + .contact-notice { margin-top: 14px; } /* the no-automated-list statement under the content notice (Nick 2026-10-31) */

@media (max-width: 1000px) {
  .contact-layout { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 36px; }
  #cloud .contact-form { --label-width: 104px; --field-gap: 14px; }
}
@media (max-width: 760px) {
  #cloud.contact-section { padding-block: 24px 40px; }
  #cloud.contact-section::before { clip-path: polygon(0 32%, 100% 22%, 100% 100%, 0 100%); }
  .contact-heading { margin-bottom: 24px; }
  .contact-heading h2 { font-size: clamp(26px, 7.2vw, 32px); } /* scales with the screen (Nick 2026-10-31: "scale better proportionally") */
  .contact-heading .subhead { max-width: 320px; margin-inline: auto; margin-top: 12px; font-size: 15px; }
  .contact-layout { max-width: 560px; grid-template-columns: minmax(0, 1fr); gap: 28px; }
  #cloud .contact-card { padding: 24px; }
  #cloud .contact-form { gap: 18px; }
  #cloud .contact-form .contact-field { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .contact-message > span { padding-top: 0; }
  #cloud .contact-form .opt { display: inline; margin-left: 6px; }
  #cloud .contact-form .btn { margin-left: 0; }
  #cloud .contact-form .wl-fine { font-size: 12px; }
  .contact-office { padding: 0 24px; top: 0; }
  .contact-office .brand-mark { margin-bottom: 20px; }
  .contact-office h3 { margin-bottom: 12px; }
}
@media (max-width: 540px) {
  #cloud .contact-card { padding: 20px 18px; }
  #cloud .contact-form textarea { min-height: 140px; height: auto; }
  .contact-office { padding-inline: 18px; }
}
