/* The site footer, shared by every page that has it (the homepage, company pages, the 404, signatures).
   On the homepage the glass card sits over the live district; elsewhere over the plain navy. */
.foot { --wm: min(220px, 15.28vw); position: relative; overflow: hidden; padding: 120px 0 calc(var(--wm) * 0.555); isolation: isolate; background: none; }
.foot::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: auto; background: linear-gradient(180deg, rgba(15,18,66,0.55), rgba(15,18,66,0.35) 60%, rgba(15,18,66,0.85));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.foot-mark { position: absolute; left: calc(50% - var(--wm) * 3.364); bottom: calc(var(--wm) * -0.118); margin: 0; z-index: 0; pointer-events: none !important;
  font: 500 var(--wm)/1 var(--sans); letter-spacing: -0.04em; white-space: nowrap;
  background: linear-gradient(180deg, var(--navy-100) 10.7%, #12154b 93.2%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-card { position: relative; z-index: 1; display: grid; gap: 40px; padding: 64px 64px 36px; border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(15,18,66,0.62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 30px 80px rgba(5,7,30,0.45); }
.foot-cols { display: grid; grid-template-columns: 360fr 250fr 210fr 332fr; }
.foot-brand { display: flex; flex-direction: column; gap: 28px; padding-right: 30px; }
.foot-brand .wordmark .logo { height: 40px; }
.foot-brand p { margin: 0; max-width: 300px; font-size: 15px; line-height: 1.55; color: var(--navy-200); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 0 30px; border-left: 1px solid var(--line); font-style: normal; }
.foot-col:last-child { padding-right: 0; }
.foot-col h2 { margin: 0; }
.foot-col p { margin: 0; }
.foot-links { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.foot-links li { display: flex; align-items: center; gap: 10px; }
.foot-links img { display: block; flex: none; }
.foot-links a, .foot-inv a, .social a, .foot-legal-links a { font-size: 15px; line-height: 1.55; color: var(--navy-100); }
.foot a.u { transition: color 200ms var(--ease), background-size 450ms var(--ease); }
.foot a.u:hover, .foot a.u:focus-visible { color: var(--mag-500); }
.foot-big { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.foot-big a { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; color: var(--navy-50); }
.foot-inv { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.foot-inv span { font-size: 13px; line-height: 1.5; color: var(--navy-300); }
.social { display: flex; gap: 16px; }
.foot-legal { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--navy-300); }
.foot-legal-links { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.foot-legal-links i { width: 1px; height: 16px; background: var(--line); }
/* larger screens: 20px after each column's links; the link columns never narrow past their longest line (the brand gives) */
@media (min-width: 1081px) {
  .foot-cols { grid-template-columns: minmax(0, 360fr) minmax(max-content, 250fr) minmax(max-content, 210fr) minmax(max-content, 332fr); }
  .foot-col { padding-right: 20px; }
  .foot-col:last-child { padding-right: 0; }
}
@media (max-width: 1080px) {
  .foot-card { padding: 48px 40px 32px; }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .foot-brand { grid-column: 1 / -1; padding-right: 0; }
  .foot-brand + .foot-col { border-left: 0; padding-left: 0; }
  .foot-legal { flex-wrap: wrap; }
}
/* tablets and small laptops (641–1080px): ventures, explore and get in touch in one row; get in touch holds the
   longest lines (the phone number, the email), so it takes the widest column */
@media (min-width: 641px) and (max-width: 1080px) {
  .foot-cols { grid-template-columns: minmax(max-content, 1fr) minmax(max-content, 1fr) minmax(max-content, 1.3fr); } /* no line wraps */
  .foot-col { padding: 0 28px; }
  .foot-col:last-child { padding-right: 0; }
}
/* tablets: a little tighter, so the three columns fit down to 641px */
@media (min-width: 641px) and (max-width: 820px) {
  .foot-col { gap: 16px; padding: 0 18px; }
  .foot-links a, .foot-inv a, .social a { font-size: 14px; }
  .foot-links li { gap: 8px; }
  .foot-big a { font-size: 17px; }
  /* get in touch can narrow to its longest line; the social links wrap before the number or an email would */
  .foot-cols { grid-template-columns: minmax(max-content, 1fr) minmax(max-content, 1fr) minmax(min-content, 1.3fr); }
  .foot-big a, .foot-inv a { white-space: nowrap; }
  .social { flex-wrap: wrap; gap: 4px 14px; }
}
@media (max-width: 640px) {
  .foot { padding-top: 72px; }
  .foot-card { padding: 32px 20px 24px; gap: 32px; }
  .foot-cols { grid-template-columns: 1fr; row-gap: 28px; }
  .foot-col, .foot-brand + .foot-col { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .foot-big a { font-size: 20px; }
  .foot-legal { flex-direction: column; align-items: flex-start; }
  /* the legal links wrap rather than widen the card; no dividers once they can break across lines */
  .foot-legal-links { flex-wrap: wrap; gap: 6px 20px; white-space: normal; }
  .foot-legal-links i { display: none; }
}

/* side padding follows the page's card scale where it's set (css/city.css), with the same steps elsewhere */
@media (max-width: 1180px) { .foot-card { padding-left: var(--card-pad, 28px); padding-right: var(--card-pad, 28px); } }
@media (max-width: 640px) { .foot-card { padding-left: var(--card-pad, 20px); padding-right: var(--card-pad, 20px); } }
/* readability: nothing people read below 14px */
.foot-inv span { font-size: 14px; }
/* phones: ventures and explore side by side, so the page ends sooner */
@media (max-width: 820px), (max-width: 1180px) and (max-aspect-ratio: 4/5) {
  .foot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; }
  .foot-brand, .foot-cols > address { grid-column: 1 / -1; }
}
