/* The footer, one on every page (the home page wraps it with its journey and wordmark).
   Brand and social links, then three columns (Work, Research, About), then the date and the
   legal links. Tokens are set on .vf-foot so a page's own palette cannot change it, and it
   spans the same 992px column on every page, even inside a page's narrower content. */
.vf-foot {
    --ink: #1c1c1e; --rust: #e0301e; --rust-deep: #b4200f; --line: #e4e4e7; --sec: #555; --muted: #6e6e73;
    --font: "Vahid Sora", "Sora", ui-sans-serif, system-ui, sans-serif; --font-mono: "Geist Mono", ui-monospace, monospace;
    box-sizing: border-box; position: relative; left: 50%; transform: translateX(-50%);
    width: min(992px, calc(100vw - 3rem)); max-width: none; margin: 4rem 0 0; padding: 2.25rem 0 2.5rem;
    border-top: 1px solid var(--line); font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--ink); text-align: left;
}
.vf-foot *, .vf-foot *::before, .vf-foot *::after { box-sizing: border-box; }
.vf-foot a { color: inherit; text-decoration: none; }
.vf-in { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.vf-name { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 1rem; font-weight: 700; letter-spacing: -0.015em; }
.vf-mark { width: 22px; height: 22px; flex: none; }
.vf-bead { display: inline-block; width: 0.36em; height: 0.36em; margin-left: -0.35rem; border-radius: 50%; background: var(--rust); align-self: flex-end; margin-bottom: 0.38em; }
.vf-tag { margin: 0.6rem 0 0.9rem; max-width: 19rem; font-size: 0.85rem; color: var(--sec); }
.vf-social { display: flex; gap: 0.4rem; }
.vf-soc { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); transition: border-color 0.16s, color 0.16s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.vf-soc:hover { border-color: var(--rust); color: var(--rust-deep); transform: translateY(-1px); }
.vf-col { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.vf-h { margin: 0 0 0.25rem; font: 600 0.66rem/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust-deep); }
.vf-col a { font-size: 0.875rem; color: var(--sec); width: fit-content; background: linear-gradient(var(--rust), var(--rust)) 0 100% / 0 1px no-repeat; transition: color 0.16s, background-size 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.vf-col a:hover { color: var(--ink); background-size: 100% 1px; }
.vf-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); }
.vf-sep { color: #c7c7cc; }
.vf-legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-left: auto; }
.vf-legal a { color: var(--sec); }
.vf-legal a:hover { color: var(--rust-deep); }
.vf-foot a:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 4px; }
/* the home page: the footer sits inside the page's own footer, between the journey and the wordmark */
.vf-foot.vf-in-home { margin-top: 2.5rem; }
@media (max-width: 860px) { .vf-in { grid-template-columns: repeat(3, minmax(0, 1fr)); } .vf-brand { grid-column: 1 / -1; } }
@media (max-width: 540px) {
    .vf-foot { width: calc(100vw - 2.5rem); }
    .vf-in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
    .vf-legal { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .vf-soc, .vf-col a { transition: none; } }
/* the language bead lives in the footer now: its popover opens upwards */
.vf-lang { display: inline-flex; align-items: center; }
.vf-lang .lang-pick { position: relative; }
.vf-lang .lang-btn { width: 32px; height: 32px; }
.vf-lang .lang-pop { top: auto !important; bottom: calc(100% + 10px); right: auto; left: 0; }
@media (max-width: 540px) { .vf-lang .lang-pop { width: min(320px, calc(100vw - 2.5rem)); } }
