/* ==========================================================================
   VADR landing · footer
   1. Shell + rows   2. Giant wordmark   3. Phones
   Reuses the tokens from css/how.css
   ========================================================================== */

/* 1. Shell + rows ----------------------------------------------------------- */
.foot { position: relative; padding: 0 var(--gutter) 40px; background: var(--ink); }
.foot-b { max-width: 1280px; margin: 0 auto; }

.foot__row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 32px;
  padding: 40px 0; border-top: 1px solid var(--line);
}
.foot-b__line { color: #fff; font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.foot__links { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.foot__links a, .foot__top { color: var(--muted); font-size: 15px; transition: color .2s; }
.foot__links a:hover, .foot__top:hover { color: #fff; }
.foot__links a:focus-visible, .foot__top:focus-visible { outline: 2px solid var(--amber-1); outline-offset: 4px; border-radius: 4px; }

.foot__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted);
}
.foot__bottom .foot__top { font-size: 12px; }

/* everything rises in once the footer scrolls into view */
.foot__row, .foot-b__mark {
  opacity: 0; transform: translateY(28px); transition: opacity .8s, transform .9s cubic-bezier(.2, .8, .2, 1);
}
.foot.is-in .foot__row, .foot.is-in .foot-b__mark { opacity: 1; transform: none; }
.foot.is-in .foot-b__mark { transition-delay: .15s; }

/* 2. Giant logo that draws itself, then fills with gold ------------------ */
.foot-b__mark { padding: 8px 0 32px; }
.foot-b__mark svg { display: block; width: 100%; height: auto; overflow: visible; }
.foot-b__stroke {
  fill: none; stroke: rgba(255, 198, 118, .55); stroke-width: .6;
  stroke-dasharray: 2600; stroke-dashoffset: 2600; transition: stroke-dashoffset 2.4s cubic-bezier(.6, 0, .3, 1);
}
.foot-b__fill { fill: url(#foot-grad); opacity: 0; transition: opacity 1.2s 1.9s; }
.foot.is-in .foot-b__stroke { stroke-dashoffset: 0; }
.foot.is-in .foot-b__fill { opacity: 1; }

/* 3. Phones ----------------------------------------------------------------- */
@media (max-width: 900px) {
  .foot__row { flex-direction: column; }
  .foot__links { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
}
