/* The site footer, shared by the homepage template and the React pages.
   Markup: src/lib/siteFooter.ts (static) and src/components/Footer/Footer.tsx.
   Values are literal so the footer looks the same whatever the host page
   defines; they mirror the homepage tokens. */

.site-footer {
  --sf-black: #050505;
  --sf-blue: #245bff;
  --sf-muted: rgba(5, 5, 5, 0.64);
  --sf-muted-2: rgba(5, 5, 5, 0.45);
  --sf-hairline: rgba(5, 5, 5, 0.14);
  --sf-soft-line: rgba(5, 5, 5, 0.07);
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: clamp(104px, 13vh, 150px) 0 0;
  background: #ffffff;
  color: var(--sf-black);
  font-family: var(--font-manrope, "Manrope"), "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer__sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(38px, 6vh, 76px);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: clamp(28px, 3vw, 56px);
}

.site-footer__home {
  display: inline-flex;
  align-items: center;
}

.site-footer__lockup {
  display: block;
  width: auto;
  height: 32px;
  color: var(--sf-black);
}

.site-footer__socials {
  /* Host pages style bare <nav> as their sticky header; this one is not. */
  position: static;
  z-index: auto;
  padding: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.site-footer__socials a {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--sf-hairline);
  border-radius: 6px;
  color: var(--sf-muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer__socials a:hover,
.site-footer__socials a:focus-visible {
  color: var(--sf-blue);
  border-color: var(--sf-blue);
}

.site-footer__socials svg {
  width: 18px;
  height: 18px;
}

.site-footer__tagline {
  max-width: 32ch;
  margin: 16px 0 0;
  color: var(--sf-muted);
  font-size: 15px;
  line-height: 1.6;
}

.site-footer__heading {
  margin: 0 0 20px;
  color: var(--sf-black);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.6;
}

.site-footer__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--sf-muted);
  font-size: 15px;
}

.site-footer__list button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.site-footer__list a:hover,
.site-footer__list button:hover,
.site-footer__legal a:hover {
  color: var(--sf-blue);
}

.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline: 2px solid var(--sf-blue);
  outline-offset: 3px;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--sf-soft-line);
  color: var(--sf-muted-2);
  font-size: 13.5px;
}

.site-footer__spacer {
  flex: 1;
}

/* The wordmark, drawn as particles by public/scripts/particle-text.js. */
.site-footer .particle-text {
  position: relative;
  display: block;
  overflow: hidden;
  touch-action: none;
  isolation: isolate;
}

.site-footer .particle-text__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.site-footer__mark {
  flex: 1;
  width: auto;
  min-height: clamp(170px, 18vw, 260px);
  margin: clamp(28px, 5vh, 64px) clamp(16px, 2vw, 26px) clamp(104px, 13vh, 150px);
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Anything a finger might reach gets a real target. A link is only as wide
   as its word, so the row is the target. */
@media (hover: none), (pointer: coarse), (max-width: 1024px) {
  .site-footer__list {
    gap: 4px;
  }

  .site-footer__list a,
  .site-footer__list button {
    display: block;
    padding: 11px 0;
  }

  .site-footer__legal a {
    display: inline-block;
    padding: 11px 0;
  }

  .site-footer__legal {
    gap: 10px 24px;
  }

  .site-footer__home {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__socials a {
    transition: none;
  }
}
