/* Contact (trace pass 2): the reference contact hub at 1440. Header 80; h1 54/500 at x115 y139;
   cards 377x280 at y278, x115 and x531, 1px #e5e5e5, label 16/500 at +214, icon at +187; footer at y638. */
.pg-contact { background: #fff; color: #000; font-family: var(--font); }
.pg-contact section { max-width: 1440px; margin: 0 auto; padding: 0 115px; }
.pg-contact h1 { font-size: 54px; font-weight: 500; line-height: 59.4px; letter-spacing: normal; }
.pg-contact .hub { padding-top: 59px; padding-bottom: 80px; }
.pg-contact .cards { display: flex; gap: 39px; margin-top: 80px; }
.pg-contact .card { display: flex; flex-direction: column; justify-content: flex-end; width: 377px; height: 280px; padding: 0 41px 40px;
  border: 1px solid #e5e5e5; border-radius: 0; box-shadow: none; background: transparent; color: inherit; text-decoration: none; overflow: hidden; transition: border-color .2s; }
.pg-contact .card:hover, .pg-contact .card:focus-visible { border-color: #000; }
.pg-contact .card .ic { display: block; width: 20px; height: 20px; margin-bottom: 7px; }
.pg-contact .card .ic svg { width: 20px; height: 20px; }
.pg-contact .card h2 { font-size: 16px; font-weight: 500; line-height: 25.6px; }
.pg-contact .card p { max-height: 0; opacity: 0; overflow: hidden; font-size: 15px; line-height: 25.5px; letter-spacing: .23px; transition: max-height .3s, opacity .3s, margin .3s; }
.pg-contact .card:hover p, .pg-contact .card:focus-visible p { max-height: 52px; margin-top: 8px; opacity: 1; }

/* /contact/project: the same heading, then the enquiry form in the two-card width (795) with 4px fields */
.pg-contact .proj { padding-top: 40px; padding-bottom: 120px; }
.pg-contact .back { display: inline-block; margin-bottom: 0; height: 19px; font-size: 13px; line-height: 19px; color: #575757; text-decoration: none; }
.pg-contact .back:hover { color: #000; }
.pg-contact .proj .lead { max-width: 560px; margin-top: 24px; font-size: 15px; line-height: 25.5px; letter-spacing: .23px; }
.pg-contact form.contact { display: grid; gap: 24px; max-width: 795px; margin-top: 56px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.pg-contact .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 39px; }
.pg-contact .field { display: grid; gap: 8px; }
.pg-contact .field label { font-size: 15px; font-weight: 500; line-height: 21px; }
.pg-contact input:not([type="hidden"]), .pg-contact select, .pg-contact textarea { width: 100%; height: 56px; padding: 0 16px; border: 1px solid #cfcfcf; border-radius: 4px;
  background: #fff; color: #000; font: 400 15px/21px var(--font); }
.pg-contact textarea { height: 160px; padding: 16px; resize: vertical; }
.pg-contact input:focus, .pg-contact select:focus, .pg-contact textarea:focus { outline: 2px solid #000; outline-offset: 0; border-color: #000; }
.pg-contact form .btn { min-height: 60px; padding: 0 28px; border-radius: 4px; background: #000; color: #fff; border-color: #000; }
.pg-contact .about-line { padding: 12px 16px; border-radius: 4px; background: #f4f4f4; font-size: 15px; line-height: 21px; }
.pg-contact .fine, .pg-contact .status { font-size: 12px; line-height: 16.8px; color: #575757; }
.pg-contact .status:empty { display: none; }

@media (max-width: 767px) {
  .pg-contact section { padding: 0 30px; }
  .pg-contact h1 { font-size: 40px; line-height: 44px; }
  .pg-contact .hub { padding-top: 76px; padding-bottom: 80px; }
  .pg-contact .cards { flex-direction: column; gap: 20px; margin-top: 76px; }
  .pg-contact .card { width: 100%; height: 180px; padding: 0 24px 24px; }
  .pg-contact .proj { padding-top: 24px; padding-bottom: 80px; }
  .pg-contact .row2 { grid-template-columns: 1fr; }
  .pg-contact form.contact { margin-top: 40px; }
}

/* Dark theme: the white band turns black */
:root[data-theme="dark"] .pg-contact { background: #000; color: #fff; }
:root[data-theme="dark"] .pg-contact .card { border-color: #333; }
:root[data-theme="dark"] .pg-contact .card:hover { border-color: #fff; }
:root[data-theme="dark"] .pg-contact .back, :root[data-theme="dark"] .pg-contact .fine, :root[data-theme="dark"] .pg-contact .status { color: #a4a4a4; }
:root[data-theme="dark"] .pg-contact input:not([type="hidden"]), :root[data-theme="dark"] .pg-contact select, :root[data-theme="dark"] .pg-contact textarea { background: #111; color: #fff; border-color: #444; }
:root[data-theme="dark"] .pg-contact input:focus, :root[data-theme="dark"] .pg-contact select:focus, :root[data-theme="dark"] .pg-contact textarea:focus { outline-color: #fff; border-color: #fff; }
:root[data-theme="dark"] .pg-contact form .btn { background: #fff; color: #000; border-color: #fff; }
:root[data-theme="dark"] .pg-contact .about-line { background: #1c1c1c; }
