/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
footer{ border-top:1px solid var(--line); padding-top:clamp(56px,8vh,88px); overflow:hidden; background: var(--ink-2); }
.f-top{ display:flex; justify-content:space-between; gap:56px; flex-wrap:wrap; padding-bottom:clamp(56px,8vh,88px); }
.f-brand .a-logo{ margin-bottom:16px; }
.f-brand p{ font-size:13px; line-height:1.6; color:var(--fog-dim); max-width:38ch; }
/* 190px max track: the longest labels ("BackOffice Experience",
   "Product Configuration") need ~150px at 13.5px and must not wrap. */
.f-cols{ display:grid; grid-template-columns:repeat(3,minmax(140px,190px)); gap:clamp(24px,4vw,56px); }
.f-cols > div{ min-width:0 }
.f-cols h2{ font-family:'JetBrains Mono',monospace; font-size:10px; letter-spacing:.16em; text-transform:uppercase; color:var(--fog-dim); margin-bottom:18px; }
.f-cols ul{ list-style:none; display:flex; flex-direction:column; gap:11px; }
/* inline-block + padding takes the hit area to 24px, so these clear WCAG
   2.5.8 outright rather than leaning on the spacing exception */
.f-cols a{ display:flex; align-items:center; min-height:44px; padding-block:4px; font-size:13.5px; color:var(--fog); transition:color .3s var(--ease); }
.f-cols a:hover{ color:var(--accent-text) }

.wordmark{
  font-family:var(--font-display); font-weight:700;
  letter-spacing:-.06em; line-height:.8;
  color:transparent;
  -webkit-text-stroke:1px var(--stroke);
  text-align:center; user-select:none;
  padding-bottom:8px;
  /* the per-character masks are inline-blocks, so without this the word can
     break mid-way once it runs out of room */
  white-space:nowrap;
  /* Fallback sizing. "ALLOCORE" measures 4.72x its font-size in Manrope 700
     at -.06em tracking, so the 1312px content box tops out at 278px. */
  font-size:clamp(40px,18.5vw,272px);
}
/* Preferred: size off the container instead of the viewport, so it keeps
   fitting on one line if --pad or --maxw ever change. 100cqw is the content
   box, and 100/4.72 = 21.2cqw is the exact fit — 20.5 leaves a margin. */
@supports (container-type:inline-size){
  footer .shell{ container-type:inline-size; }
  .wordmark{ font-size:20.5cqw; }
}
.f-bottom{
  display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap;
  border-top:1px solid var(--line); padding-block:26px;
  font-size:12px; color:var(--fog-dim);
}
.f-bottom nav{ position:static; height:auto; padding:0; background:none; border:none; display:flex; gap:24px; backdrop-filter:none; }
.f-bottom a{ transition:color .3s var(--ease) } .f-bottom a:hover{ color:var(--paper) }

#totop{
  position:fixed; right:clamp(16px,3vw,34px); bottom:clamp(16px,3vw,34px); z-index:400;
  width:46px; height:46px; border-radius:50%;
  background:var(--action); color:#fff;
  display:grid; place-items:center;
  opacity:0; transform:translateY(14px) scale(.85); pointer-events:none;
  transition:opacity .4s var(--ease), transform .4s var(--ease);
}
#totop.show{ opacity:1; transform:none; pointer-events:auto }
