/* ============================================================
   CONTACT · the dark 3-column section that closes every page
   Lifted out of index.html so the case studies close the same way: headline
   and CTA, the sitemap, contact details, and the bottom bar. Linked after each
   page's own <style>, so it wins ties. The tokens below are the homepage's;
   stated here because styles.css (the case studies) names its palette
   differently and this section must look identical everywhere.
   ============================================================ */
:root {
  --cream: #f2ecdf;
  --cream-muted: rgba(242, 236, 223, 0.6);
  --ink-deep: #0f0c08;
  --butter: #f3e7c1;
  --serif: 'Playfair Display', 'Georgia', serif;
  --sans: 'Satoshi', -apple-system, system-ui, sans-serif;
}

/* ============================
   CONTACT · 3-column dark layout
   ============================ */
.contact {
  /* Stated, so no page's own rules can box it in or recolour it. */
  max-width: none;
  margin: 0;
  width: auto;
  text-align: left;
  padding: 100px 60px 140px !important;
  background: var(--ink-deep);
  color: var(--cream);
  min-height: 100vh;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  gap: 80px;
  align-items: stretch !important;
}

.contact-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding-top: 40px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* — Column 1 — */
.contact-hero-headline,
.contact .contact-hero-headline {
  font-family: var(--serif);
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 500;
  line-height: 1;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0;
}

.contact-hero-headline em {
  display: block;
  font-style: italic;
  font-weight: 500;
  margin-top: 6px;
}

.contact-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  background: var(--butter);
  color: var(--ink-deep);
  padding: 12px 12px 12px 24px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 40px;
  transition: transform 0.3s, background 0.3s, opacity 0.3s;
}

.contact-cta-btn:hover { opacity: 0.9; transform: translateY(-2px); }

.contact-cta-btn-arrow {
  background: var(--ink-deep);
  color: var(--butter);
  padding: 8px 10px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.contact-cta-btn-arrow svg {
  display: block;
  width: 13px;
  height: auto;
  transform: scaleX(-1);
}

.contact-hero-signature {
  margin-top: 100px;
  height: 54px;
  width: auto;
  display: block;
}

.contact-hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--cream);
  max-width: 30ch;
  line-height: 1.4;
  margin: 20px 0 0;
  opacity: 0.85;
}

.contact-hero-footnote {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(242, 236, 223, 0.4);
  margin: 60px 0 0;
  letter-spacing: 0.06em;
  max-width: 42ch;
  line-height: 1.5;
}

/* — Column 2 — */
.contact-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 6px;
}

.contact-nav a {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--cream);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: opacity 0.3s;
}

.contact-nav a:hover { opacity: 0.65; }

.contact-nav a::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}

.contact-nav a.active::before {
  background: var(--butter);
  box-shadow: 0 0 14px rgba(243, 231, 193, 0.5);
}

/* — Column 3 — */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-info-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 6px;
  opacity: 0.9;
}

.contact-info-value {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--cream);
  line-height: 1.5;
  margin: 0;
}

.contact-info-value a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.3s;
}
.contact-info-value a:hover { border-bottom-color: rgba(242, 236, 223, 0.55); }

.contact-social-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.contact-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  border: 1px solid rgba(242, 236, 223, 0.28);
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s;
}

.contact-social-btn:hover {
  background: rgba(242, 236, 223, 0.08);
  border-color: rgba(242, 236, 223, 0.55);
}

/* Bottom bar */
.contact-bottom {
  padding-top: 32px;
  padding-bottom: 4px;
  border-top: 1px solid rgba(242, 236, 223, 0.12);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(242, 236, 223, 0.5);
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.contact-bottom-right {
  display: flex;
  gap: 32px;
}

/* Mobile */
@media (max-width: 900px) {
  /* The nav floats over the last 82px of the screen (14px inset + 68px pill)
     and this is the one block that cannot scroll out from under it, so the
     bottom bar reserves that plus air. It sat behind the pill at 20px. */
  .contact { padding: 80px 24px 124px !important; gap: 60px; }
  .contact-main {
    grid-template-columns: 1fr;
    gap: 60px;
    padding-top: 20px;
  }
  .contact-hero-headline { font-size: clamp(36px, 10vw, 52px); }
  .contact-nav a { font-size: 24px; }
  .contact-hero-signature { margin-top: 60px; height: 44px; }
  .contact-hero-footnote { margin-top: 40px; }
  .contact-bottom {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .contact-bottom-right { flex-wrap: wrap; gap: 12px 20px; }
}

/* Hide legacy invitation card so nothing leaks through */
.contact-thirds,
.contact-marker,
.contact-intro,
.contact-headline,
.contact-sub,
.contact-card { display: none !important; }
