/* ==========================================================================
   Contact
   Sections: head · three inboxes · where / faster / hiring
   ========================================================================== */

.contacthead { padding-bottom: 56px; }
.contacthead .phead__lead { max-width: 42ch; }

/* Inboxes ------------------------------------------------------------------ */

.ctop3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0 var(--gutter) 72px;
}

.who {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease);
}

.who:hover {
  border-color: var(--line-3);
  box-shadow: 0 0 24px rgba(237, 29, 43, 0.14);
}

.who__title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.who__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

.who__mail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text);
}

.who__copy {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
}

/* Cards -------------------------------------------------------------------- */

.ccards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.ccard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--ink);
}

.ccard--links { gap: 14px; }

.ccard--dashed {
  border-style: dashed;
  border-color: var(--line-2);
  background: transparent;
}

.ccard__title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.ccard__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

.ccard__text--bottom { margin-top: auto; }

.btn--row { justify-content: space-between; }

.map {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  margin-top: auto;
  padding: 12px;
  border: 1px dashed var(--line-3);
  background: repeating-linear-gradient(-45deg, #1e1e1e 0 10px, #232225 10px 20px);
}

.map--live {
  padding: 0;
  border-style: solid;
  background: var(--ink-2);
}

/* Google's map as a quiet backdrop: dark, low-contrast, not interactive.
   The whole map opens Google Maps; our pulsing dot marks the spot. */
.map__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.75) brightness(0.85);
  pointer-events: none;
}

.map__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.map__link {
  position: absolute;
  inset: 0;
}

.map__link:focus-visible { outline-offset: -3px; }

.map__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 12px;
}

.map__addr {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.map__cap {
  font-size: 11px;
  letter-spacing: 0.12em;
}

.map__dir {
  align-self: flex-start;
  font-size: 13px;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.map__dir:hover,
.map__dir:focus-visible { color: var(--text); }

/* Breakpoints -------------------------------------------------------------- */

@media (max-width: 1200px) {
  .who__title { font-size: 24px; }
  .ccards .btn { height: auto; min-height: 48px; padding: 10px 14px; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; letter-spacing: 0.06em; line-height: 1.3; text-align: left; white-space: normal; }
  .ccards .btn .mono { font-size: 10px; white-space: nowrap; }
}

@media (max-width: 900px) {
  .ctop3 { grid-template-columns: 1fr; }
  .who { min-height: 0; }
  .ccards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ccards > .ccard:last-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .ccards { grid-template-columns: 1fr; }
  .who { padding: 22px 20px; }
  .who__title { font-size: 22px; }
  .who__mail { flex-wrap: wrap; gap: 4px 10px; font-size: 12px; }
  .ccard { padding: 22px 20px; }
  .ccards .btn { padding: 10px 12px; }
  .ccards .btn .mono { font-size: 9px; }
}
