/* For:Human site footer (built by scripts/build-footer.py).
   A light layer with rounded top corners that slides over the end of the page: statement, tagline,
   contact pill and e-mail on the left, labelled link columns on the right; the For:Human wordmark
   running as a marquee; a base row with social icons, credits, language and legal links. */
.fh-site-footer {
  --fhf-ink: #141414;
  --fhf-link: #1d1d1f;
  --fhf-subtle: #6b6b70;
  --fhf-line: rgba(20, 20, 20, 0.1);
  --fhf-lime: var(--fh-lime, #b9ff76);
  --fhf-gutter: clamp(16px, 2.8vw, 48px);
  /* a layer over the end of the page: it overlaps the last section by its rounded top
     (forhuman-footer.ts lifts it in by less than this overlap, so no gap opens behind the corners) */
  position: relative;
  z-index: 2;
  margin-top: -48px;
  padding: clamp(72px, 8vw, 120px) var(--fhf-gutter) 32px;
  overflow: hidden;
  background: #ffffff;
  border-radius: 48px 48px 0 0;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.08);
  will-change: transform;
  color: var(--fhf-ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
}
.fh-site-footer *,
.fh-site-footer *::before,
.fh-site-footer *::after { box-sizing: border-box; }
.fh-site-footer ul { margin: 0; padding: 0; list-style: none; }
.fh-site-footer p, .fh-site-footer h2 { margin: 0; }
.fh-site-footer a { color: inherit; text-decoration: none; }
.fh-site-footer a:focus-visible { outline: 1.5px solid var(--fhf-ink); outline-offset: 3px; border-radius: 4px; }
.fh-site-footer svg { flex: none; }

/* ---------------------------------------------------------------- statement + columns */
.fh-site-footer-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr); gap: 56px clamp(40px, 6vw, 120px); padding-bottom: clamp(56px, 6vw, 88px); }
.fh-site-footer-label { margin-bottom: 24px !important; color: var(--fhf-ink); font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.fh-site-footer-label.is-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--fhf-subtle); }
.fh-site-footer-label.is-kicker i { width: 8px; height: 8px; border-radius: 50%; background: #5fcf2a; box-shadow: 0 0 0 4px color-mix(in oklab, var(--fhf-lime) 45%, transparent); animation: fhf-pulse 2.4s ease-in-out infinite; }
@keyframes fhf-pulse { 50% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--fhf-lime) 0%, transparent); } }
.fh-site-footer-title { max-width: 640px; font-size: clamp(36px, 3.8vw, 58px); line-height: 1.04; font-weight: 400; letter-spacing: -0.035em; }
.fh-site-footer-tagline { max-width: 460px; margin-top: 20px !important; color: var(--fhf-subtle); font-size: 16px; line-height: 1.55; }
.fh-site-footer-reach { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 36px; }
.fh-site-footer-cta { display: inline-flex; align-items: center; height: 52px; background: var(--fhf-lime); color: #0a0a0a !important; font-size: 17px; line-height: 20px; transition: background-color 0.25s ease; }
.fh-site-footer-cta:hover { background: var(--fh-lime-hover, #a8f25c); }
.fh-site-footer-mail { display: inline-flex; align-items: center; gap: 8px; color: var(--fhf-link); font-size: 17px; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.fh-site-footer-mail svg { width: 15px; height: 15px; }
.fh-site-footer-mail:hover { background-size: 100% 1px; }

.fh-site-footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; align-content: start; padding-top: 6px; }
.fh-site-footer-col ul { display: grid; gap: 2px; }
.fh-site-footer-link { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 5px 0; color: var(--fhf-link); font-size: 18px; line-height: 1.35; transition: color 0.2s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.fh-site-footer-link::before { content: ""; position: absolute; left: -16px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--fhf-lime); box-shadow: 0 0 0 1px rgba(20, 20, 20, 0.08); opacity: 0; transform: translateY(-50%) scale(0.4); transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.fh-site-footer-link:hover { transform: translateX(14px); }
.fh-site-footer-link:hover::before { opacity: 1; transform: translateY(-50%) scale(1); }
.fh-site-footer-link > svg { width: 12px; height: 12px; opacity: 0.6; }

/* ---------------------------------------------------------------- wordmark marquee */
.fh-site-footer-marquee { display: block; margin: 0 calc(var(--fhf-gutter) * -1); padding: clamp(16px, 2vw, 32px) 0; overflow: hidden; border-top: 1px solid var(--fhf-line); color: var(--fhf-ink); }
.fh-site-footer-track { display: flex; width: max-content; animation: fhf-marquee 48s linear infinite; }
.fh-site-footer-marquee:hover .fh-site-footer-track { animation-play-state: paused; }
.fh-site-footer-mark { display: block; width: clamp(420px, 62vw, 1100px); padding-right: clamp(40px, 5vw, 96px); }
.fh-site-footer-mark .forhuman-logo { width: 100% !important; height: auto !important; transition: color 0.4s ease; }
@keyframes fhf-marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- base row */
.fh-site-footer-mid { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; padding-top: 24px; border-top: 1px solid var(--fhf-line); }
.fh-site-footer-credits,
.fh-site-footer-legal { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.fh-site-footer-social { display: flex; gap: 6px; margin-right: 10px !important; }
.fh-site-footer-social a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--fhf-line); border-radius: 50%; color: var(--fhf-ink); transition: background-color 0.25s ease, border-color 0.25s ease; }
.fh-site-footer-social a:hover { background: var(--fhf-lime); border-color: var(--fhf-lime); }
.fh-site-footer-social svg { width: 17px; height: 17px; }
.fh-site-footer .fh-site-footer-small { color: var(--fhf-subtle); font-size: 14px; line-height: 20px; transition: color 0.2s ease; }
.fh-site-footer a.fh-site-footer-small:hover { color: var(--fhf-ink); }
.fh-site-footer-dot { flex: none; width: 3px; height: 3px; border-radius: 50%; background: var(--fhf-subtle); }
.fh-site-footer-lang { display: inline-flex; align-items: center; gap: 6px; }
.fh-site-footer-lang svg { width: 14px; height: 14px; }
.fh-site-footer-lang-other { padding-left: 6px; border-left: 1px solid var(--fhf-line); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1199px) {
  .fh-site-footer-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .fh-site-footer { margin-top: -28px; border-radius: 28px 28px 0 0; }
  .fh-site-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
  .fh-site-footer-link { font-size: 16px; }
  .fh-site-footer-mid { flex-direction: column; align-items: flex-start; }
  .fh-site-footer-dot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fh-site-footer-label.is-kicker i { animation: none; }
  .fh-site-footer-track { animation: none; }
}

/* ---------------------------------------------------------------- refinement: brand + contact block (no repeated headline:
   every page already closes on its own call to action) */
.fh-site-footer-symbol { display: block; width: 168px; color: var(--fhf-ink); }
.fh-site-footer-symbol .forhuman-logo { width: 100% !important; height: auto !important; }
.fh-site-footer-intro .fh-site-footer-tagline { max-width: 420px; margin-top: 28px !important; color: var(--fhf-ink); font-size: clamp(20px, 1.6vw, 24px); line-height: 1.35; letter-spacing: -0.015em; }
.fh-site-footer-contact { display: grid; gap: 10px; max-width: 460px; margin-top: 36px !important; }
.fh-site-footer-contact a { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border: 1px solid var(--fhf-line); border-radius: 16px; background: #fafaf8; transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.fh-site-footer-contact a > span:nth-child(2) { display: grid; flex: 1; font-size: 17px; line-height: 1.3; }
.fh-site-footer-contact small { color: var(--fhf-subtle); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.fh-site-footer-ci { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #ffffff; border: 1px solid var(--fhf-line); transition: background-color 0.3s ease, border-color 0.3s ease; }
.fh-site-footer-ci svg { width: 20px; height: 20px; }
.fh-site-footer-contact a > svg { width: 16px; height: 16px; opacity: 0.5; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease; }
.fh-site-footer-contact a:hover { background: #ffffff; border-color: rgba(20, 20, 20, 0.18); transform: translateY(-2px); }
.fh-site-footer-contact a:hover .fh-site-footer-ci { background: var(--fhf-lime); border-color: var(--fhf-lime); }
.fh-site-footer-contact a:hover > svg { opacity: 1; transform: translate(2px, -2px); }
.fh-site-footer-cols { padding-top: 10px; }
