/* BRAND-ART (2026-11-30): the ASCII compass in the home hero and the terrain behind the site footer.
   Designer kit: research_raw/compass-footer-2026-11-30. The artwork is dark navy in both themes, so the footer sets the
   site's own colour tokens for its subtree and the existing footer rules follow. Loaded after style.css. */

/* -- footer: full-width terrain under the links ------------------------------------------------------------------ */
.site-footer {
  --ink: #d7e3f1; --ink-2: #b9c8d9; --meta: #8aa0b8; --link: #b8dcff; --accent: #7fb2e5;
  --surface: #070d15; --surface-2: #0d1621; --plane: #070d15; --border: #1b2a3c; --border-strong: #2a3f57; --accent-wash: #112236;
  position: relative; isolation: isolate; overflow: hidden; background: #070d15; border-top: 0;
  color: var(--ink-2);
}
.site-footer > .wrap { position: relative; z-index: 2; padding-bottom: clamp(170px, 22vw, 340px); }
#gid-terrain { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
#gid-terrain img, #gid-terrain canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#gid-terrain img { object-fit: cover; object-position: center bottom; }
#gid-terrain img.is-drawn { visibility: hidden; }  /* the canvas draws the picture once it has loaded */
#gid-terrain::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(7,13,21,.92) 0%, rgba(7,13,21,.55) 34%, rgba(7,13,21,0) 62%); }  /* keeps the links readable where the dunes rise on wide screens */
.site-footer .brand-mark rect { fill: var(--ink); }
.site-footer .brand-mark circle { fill: var(--ink); }
.site-footer a:hover { color: var(--ink); }
.site-footer .footer-more summary:hover { color: var(--ink-2); }
.site-footer .fine { color: var(--meta); }
.site-footer .fine a { color: var(--ink-2); }
@media (max-width: 720px) { #gid-terrain { top: auto; height: clamp(300px, 80vw, 520px); } }  /* phones: the terrain is a band at the bottom, the links stay on plain navy */
@media (prefers-reduced-motion: reduce) { #gid-terrain canvas { display: none; } #gid-terrain img.is-drawn { visibility: visible; } }

/* -- home: one backdrop for the top of the page (no panel: only squares in the link colour) ------------------------
   A wide canvas band behind the hero, the shelf of section cards and the jump links: contour lines drift across it
   like a map and the ASCII compass lies on top, towards the right. It dissolves towards the trends below. */
.gh-compass-wrap { display: none; }
.gh-compass { width: 100%; height: 100%; color: var(--link); }
.gh-compass canvas { display: block; width: 100%; height: 100%; }
@media (min-width: 1100px) {
  .gh-hero-slim.has-compass { position: relative; }
  .gh-hero-slim.has-compass > div:first-child { position: relative; z-index: 1; }
  .gh-hero-slim.has-compass h1 { max-width: 15em; }
  .gh-compass-wrap { display: block; position: absolute; z-index: 0; pointer-events: none; left: 0; right: 0; top: -34px; height: 520px;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 97%); mask-image: linear-gradient(to bottom, #000 70%, transparent 97%); }
  .gh-shelf, .gh-jumps { position: relative; z-index: 1; }
}
