/* Webflowich footer: terminal-industries.com structure, our tokens. */
.wfh-footer {
  --wfh-f-bg: var(--clr-black-static, #12110b); /* stays dark in dark mode too */
  --wfh-f-fg: #fff;
  --wfh-f-muted: rgb(255 255 255 / 45%);
  --wfh-f-line: #a2a2a2;
  --wfh-f-glow: var(--wfh-main);
  position: relative;
  z-index: 2;
  margin-top: -1px;
  color: var(--wfh-f-fg);
  font-family: var(--ff-body);
}
.wfh-footer__clip { position: absolute; width: 0; height: 0; }
.wfh-footer__inner {
  position: relative;
  overflow: hidden;
  background: var(--wfh-f-bg);
  clip-path: url(#wfh-footer-clip);
  padding: clamp(8rem, 14vw, 14.4rem) var(--gutter, 4.375rem) 1.25rem;
}
/* background circuit lines (generated by footer.js) */
.wfh-footer__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.wfh-footer__content { position: relative; z-index: 2; }

/* header: big centred title + glass button */
.wfh-footer__header { display: flex; flex-direction: column; align-items: center; }
.wfh-footer__title {
  margin: 0 auto 2.25rem;
  max-width: 24ch;
  padding-inline: 1rem;
  font-family: var(--ff-title);
  font-size: calc(var(--fs-xxl) * .62);   /* same size as the homepage hero title */
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-align: center;
  text-wrap: balance;
  color: #fff;
}
.wfh-footer__inner .wfh-play { z-index: 6; }
.wfh-footer__cta-pill { position: relative; z-index: 1; }
.wfh-footer__cta.is-hover { background: rgb(255 255 255 / 22%); } .wfh-footer__cta.is-hover .--line::after { transform: scaleX(1); }
.wfh-footer__cta { transition: background-color .3s, transform .25s cubic-bezier(.2,.7,.2,1); }
.wfh-footer__word { display: inline-block; white-space: nowrap; }
.wfh-footer__title .--char { opacity: 0; display: inline-block; transition: opacity 0.1s; will-change: opacity; }
.wfh-footer__title.is-visible .--char { opacity: 1; }
.wfh-footer__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.5625rem 3.125rem;
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 15%);
  -webkit-backdrop-filter: blur(27px);
  backdrop-filter: blur(27px);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 0.81;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s;
}
.wfh-footer__cta:hover { background: rgb(255 255 255 / 22%); }
.wfh-footer__cta .--line { position: relative; display: inline-block; }
.wfh-footer__cta .--line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px;
  background: #fff; transform: scaleX(0); transform-origin: left center; transition: transform 0.6s;
}
.wfh-footer__cta:hover .--line::after { transform: scaleX(1); }

/* 12-col grid, 3 blocks of 4 */
.wfh-footer__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: min(1.042vw, 1.6667rem);
  padding-top: clamp(6rem, 15.6vw, 14rem);
}
.wfh-footer__brand, .wfh-footer__links, .wfh-footer__reach { grid-column: span 4; }
.wfh-footer__logo { display: inline-flex; align-items: baseline; gap: 0.4rem; color: #fff; text-decoration: none; margin-bottom: 2.625rem; }
.wfh-footer__logo-mark { display: block; width: auto; height: 1.02rem; color: #fff; }
.wfh-footer__logo-name { font-weight: 700; font-size: 1.45rem; letter-spacing: -0.04em; line-height: 1; }
.wfh-footer__cert-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem;
  padding: 0.5rem 0.8rem 0.5rem 0.65rem; border-radius: 0.75rem; background: rgb(255 255 255 / 8%);
  font-weight: 600; font-size: 0.9rem; line-height: 1;
}
.wfh-footer__cert-text { margin: 0; font-size: 0.6875rem; line-height: 1.5; color: #fff; }

.wfh-footer__links { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: min(1.042vw, 1.6667rem); }
.wfh-footer__list:first-child { grid-column: 1 / span 2; }
.wfh-footer__list:last-child { grid-column: 3 / span 2; }
.wfh-footer__list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wfh-footer__label {
  display: flex; margin: 0 0 2rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; line-height: 0.81;
  text-transform: uppercase; color: #fff;
}
.wfh-footer__link, .wfh-footer__contact {
  position: relative; display: inline-block; color: #fff; text-decoration: none;
  font-size: 1.25rem; font-weight: 400; letter-spacing: -0.0125rem; line-height: 1.46;
}
.wfh-footer__link::after, .wfh-footer__contact::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.15em; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right center; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.wfh-footer__link:hover::after, .wfh-footer__contact:hover::after { transform: scaleX(1); transform-origin: left center; }
.wfh-footer__reach .wfh-footer__contact { white-space: nowrap; }
.wfh-footer__muted { margin: 0 0 1.5625rem; color: var(--wfh-f-muted); font-size: 1.25rem; letter-spacing: -0.0125rem; line-height: 1.46; }
.wfh-footer__socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5.128vw; }
.wfh-footer__social { display: inline-flex; align-items: center; color: #fff; opacity: 0.9; transition: opacity 0.2s; }
.wfh-footer__social:hover { opacity: 1; color: var(--wfh-f-glow); }

/* bottom row */
.wfh-footer__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-top: 6rem; }
.wfh-footer__copy { color: rgb(255 255 255 / 40%); font-size: 0.75rem; letter-spacing: -0.0075rem; line-height: 1.24; }
.wfh-footer__copy p { margin: 0; max-width: 16rem; }
.wfh-footer__legal { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.5rem; }
.wfh-footer__legal a { color: inherit; text-decoration: none; }
.wfh-footer__legal a:hover { text-decoration: underline; }
.wfh-footer__credits { display: inline-flex; align-items: center; gap: 0.35rem; margin: 0; color: rgb(255 255 255 / 40%); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; }
.wfh-footer__credits svg { width: 1.1rem; height: auto; }
.wfh-footer__credits span { color: #fff; }

@media (max-width: 991px) {
  .wfh-footer__brand, .wfh-footer__links, .wfh-footer__reach { grid-column: span 12; }
  .wfh-footer__links { margin-top: 3.5rem; }
  .wfh-footer__reach { margin-top: 3.5rem; }
  .wfh-footer__grid { padding-top: clamp(5rem, 14vw, 8rem); }
  .wfh-footer__title { font-size: calc(var(--fs-xxl) * .5); max-width: 16ch; }
}
@media (max-width: 767px) {
  .wfh-footer__inner { padding-top: 6rem; }
  .wfh-footer__links { grid-template-columns: repeat(2, 1fr); }
  .wfh-footer__list:first-child, .wfh-footer__list:last-child { grid-column: auto; }
  .wfh-footer__bottom { flex-direction: column; align-items: flex-start; margin-top: 4rem; }
  .wfh-footer__socials { gap: 2rem; }
  .wfh-footer__cta { padding: 1.25rem 2.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wfh-footer__title .--char { opacity: 1; transition: none; }
}

/* ---- type cleanup: readable sizes, real gaps ---- */
.wfh-footer__label { font-size: .74rem; letter-spacing: .14em; line-height: 1; margin: 0 0 1.4rem; color: rgb(255 255 255 / 60%); }
.wfh-footer__list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.wfh-footer__link { font-size: 1.05rem; line-height: 1.4; letter-spacing: -.01em; }
.wfh-footer__contact, .wfh-footer__muted { font-size: 1.05rem; line-height: 1.6; letter-spacing: 0; }
.wfh-footer__contact { margin: 0 0 .35rem; }
.wfh-footer__muted { margin: 0 0 1.75rem; color: rgb(255 255 255 / 55%); }
.wfh-footer__cert { margin-top: .25rem; }
.wfh-footer__cert-badge { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem; padding: .55rem .95rem .55rem .8rem; border-radius: 999px; background: rgb(255 255 255 / 10%); color: #fff; font-size: .9rem; font-weight: 600; text-decoration: none; transition: background .25s, transform .25s cubic-bezier(.2,.7,.2,1); }
.wfh-footer__cert-badge:hover { background: rgb(255 255 255 / 18%); transform: translateY(-2px); }
.wfh-footer__cert-text { font-size: .9rem; line-height: 1.7; color: rgb(255 255 255 / 65%); }
.wfh-footer__socials { gap: .6rem; margin-top: .25rem; }
.wfh-footer__social { width: 2.6rem; height: 2.6rem; justify-content: center; border-radius: 50%; background: rgb(255 255 255 / 10%); opacity: 1; transition: background .25s, color .25s, transform .25s cubic-bezier(.2,.7,.2,1); }
.wfh-footer__social:hover { background: var(--wfh-main); color: var(--wfh-on-main); transform: translateY(-2px); }
.wfh-footer__social svg { width: 18px; height: 18px; }
.wfh-footer__bottom { align-items: center; margin-top: 5rem; padding-top: 1.75rem; }
.wfh-footer__copy, .wfh-footer__legal { font-size: .88rem; line-height: 1.4; letter-spacing: 0; color: rgb(255 255 255 / 50%); }
.wfh-footer__copy p { max-width: none; }
.wfh-footer__legal { margin: 0; gap: 1.75rem; justify-content: flex-end; }
.wfh-footer__legal a { color: rgb(255 255 255 / 60%); transition: color .2s; }
.wfh-footer__legal a:hover { color: #fff; text-decoration: none; }
@media (max-width: 640px) { .wfh-footer__bottom { flex-direction: column; align-items: flex-start; gap: 1rem; } .wfh-footer__legal { justify-content: flex-start; gap: 1.25rem; } }
