/* Comp A8: the shared footer (Cindy's handoff, 2026-11-15: reference/handoffs/2026-11-15-footers-efg.md). One component
   on home, About and the case study, three options on the "ft" switch (a7-system.js): E (ink slab), F (local time),
   G (contact index, the default). Built and placed on the A8 grid by a8-footer.js; lines one screen pixel, black
   (Cindy: black on every page), each running only over the cells it separates. Small text follows the page's body font */
.a8ft { position: relative; z-index: 5; display: block; width: 100%; background: var(--paper, #F3F2EE); color: #111;
  --ftl: #000; --ftsmall: var(--gray, #706E6A); --fthover: var(--accent-text, #C53A1C); }
.a8ft[data-ft="e"] { background: #111; color: #F3F2EE; --ftl: #3A3936; --ftsmall: #A8A59E; --fthover: #F0705A; }   /* (paper on ink 17:1; #A8A59E 7.7:1; #F0705A 6.5:1) */
footer.a8ft[data-ft="e"] { margin-bottom: 0 !important; }   /* (Cindy 2026-11-17: the ink slab runs to the foot of the page, no paper band under it) */
.a8ft * { box-sizing: border-box; }
.a8ft:focus { outline: none; }   /* (the footer itself takes focus only as CONTACT's landing point; its links keep their ring) */
.a8ft .ft-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the fallback before the script runs (or without it): the four links in a row */
/* (B5, motion handoff 2026-11-19: with scripts on, the plain list waits for the styled footer, which replaces it, rather
   than flashing first; if the script never runs it shows after 3s) */
@keyframes ft-fb-show { to { visibility: visible; } }
html.js .a8ft .ft-fallback { visibility: hidden; animation: ft-fb-show 0s 3s forwards; }
.a8ft .ft-fallback { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 22px 16px; margin: 0; border-top: 1px solid #000; }
.a8ft .ft-fallback a { color: inherit; }

/* placed parts (a8-footer.js sets each one's left, top and size) */
.a8ft .ft-p { position: absolute; margin: 0; }
.a8ft .ft-ln { position: absolute; left: 0; top: 0; transform-origin: 0 0; background: var(--ftl); transform: translate(var(--x), var(--y)); pointer-events: none; }
.a8ft .ft-ln.h { width: var(--l); height: var(--lf, 1px); }
.a8ft .ft-ln.v { width: var(--lf, 1px); height: var(--l); }
.a8ft.drawing .ft-ln { background: transparent; }
.a8ft.drawing .ft-ln::before { content: ""; position: absolute; inset: 0; background: var(--ftl); transform-origin: 0 0; }

/* type: labels (Inconsolata 12, capitals, +0.08em), small text (13/19.5, the page's body font), large capitals and rows
   (Inter Tight 400) */
.a8ft .ft-lab { font: 500 12px/16.5px "Inconsolata", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--ftsmall); white-space: nowrap; }
.a8ft .ft-lab.ink { color: inherit; }
.a8ft .ft-small { font: 400 12px/1.45 var(--text-font, "Geist", sans-serif); color: var(--ftsmall); }   /* (style 07, Small: settled, Cindy 2026-11-16) */
.a8ft .ft-cap { font: 400 var(--cs, 61px)/1 "Inter Tight", sans-serif; text-transform: uppercase; letter-spacing: -0.01em; white-space: nowrap; text-box: trim-both cap alphabetic; }
.a8ft .ft-row { font: 400 22px/33px "Inter Tight", sans-serif; letter-spacing: -0.005em; white-space: nowrap; }
.a8ft .ft-arr { font-family: "Inter Tight", sans-serif; font-weight: 400; line-height: 1; text-box: trim-both cap alphabetic; }
/* (F's links: style 02, Display, or 04, Subtitle: Cindy 2026-11-16; 04 in Geist, since Heros has no Medium) */
/* (F's secondary cells: the detail and a text-sized arrow, in ink so the link reads; Cindy 2026-11-16) */
.a8ft[data-ft="f"] a.ft-sec .ft-small { color: inherit; }
.a8ft .ft-t03 { font: 500 26px/1.2 "Inter Tight", sans-serif; white-space: nowrap; text-box: trim-both cap alphabetic; }
.a8ft .ft-biglab > span { position: absolute; }
.a8ft .ft-caps { text-transform: uppercase; }   /* (all caps for F's large labels: the fc switch) */
.a8ft .ft-clock { font-variant-numeric: tabular-nums; }
.a8ft .ft-arr4 { position: absolute; line-height: 0; }
.a8ft .ft-arr4 svg { display: block; }
.a8ft .ft-d02 { font: 400 56px/1.02 "Inter Tight", sans-serif; letter-spacing: -0.02em; white-space: nowrap; text-box: trim-both cap alphabetic; }
/* (mobile audit P0-3, 2026-11-19: the grid is fluid from 1024 up, so the big labels scale with the module and keep their
   cells: 56px at 1440 (module 180), 40 at 1024. Never larger than 56) */
@media (min-width: 1024px) { .a8ft .ft-d02 { font-size: clamp(36px, calc(var(--mod, 180px) * 0.311), 56px); } }
.a8ft .ft-s04 { font: 500 16px/1.35 "Geist", "Inter", sans-serif; letter-spacing: -0.005em; white-space: nowrap; }
.a8ft .ft-time { font: 400 var(--ts, 212px)/1 "Inter Tight", sans-serif; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; text-box: trim-both cap alphabetic; display: block; }

/* links: each fills its whole cell or row; nothing inside is separately clickable. Hover turns the text red (a lighter
   red on the ink slab); no line changes, no movement. Focus: a 2px ring 4px inside the cell, in the text's color */
.a8ft a.ft-hit { position: absolute; display: block; color: inherit; text-decoration: none; }
.a8ft a.ft-hit > * { pointer-events: none; }
.a8ft a.ft-hit:hover, .a8ft a.ft-hit:hover .ft-small, .a8ft a.ft-hit:hover .ft-lab { color: var(--fthover); }
.a8ft a.ft-hit:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }

/* ---------- phones (760px and below): the cells stack; every target at least 44px tall ---------- */
@media (max-width: 1023px) {
  .a8ft { height: auto !important; padding: 0 16px 16px; border-top: 1px solid var(--ftl); }
  .a8ft .ft-ln { display: none; }
  .a8ft .ft-p, .a8ft a.ft-hit { position: relative; left: auto !important; top: auto !important; width: auto !important; height: auto !important; }
  .a8ft a.ft-hit { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 44px; padding: 12px 0; border-bottom: 1px solid var(--ftl); }
  .a8ft a.ft-hit > .ft-p { position: static; }
  .a8ft a.ft-hit :is(.ft-arr, .ft-arr2, .ft-arr3) { position: absolute !important; right: 0 !important; left: auto !important; top: 50% !important; transform: translateY(-50%); }
  .a8ft .ft-copy { padding-top: 16px; }
  /* E: the four cells stack, about 88px each; the detail under the label */
  .a8ft[data-ft="e"] { padding-top: 16px; }
  .a8ft[data-ft="e"] a.ft-hit { min-height: 88px; }
  .a8ft[data-ft="e"] .ft-cap { --cs: 40px !important; }
  /* F: the time smaller (capitals about 66px), the sentence under it, the links two by two */
  .a8ft[data-ft="f"] .ft-time { --ts: 91px !important; min-height: 66px !important; margin: 22px 0 16px; }
  .a8ft[data-ft="f"] .ft-biglab { --cs: 40px !important; margin-top: 16px; }
  .a8ft[data-ft="f"] a.ft-sec { min-height: 44px; }
  .a8ft[data-ft="f"] .ft-links { position: relative; display: block; margin-top: 8px; }
  .a8ft[data-ft="f"] .ft-links a.ft-hit { padding: 12px 0; }
  /* G: rows full width, the detail under the name */
}

/* (the footer's Inconsolata text as style 07, Small, or 06, Body gray: the fs switch, Cindy 2026-11-16) */
.a8ft .ft-lab { font: 400 12px/1.45 var(--text-font, "Geist", sans-serif); letter-spacing: normal; text-transform: none; }   /* (the footer's Inconsolata text as style 07, Small: settled, Cindy 2026-11-16) */
@media (max-width: 1023px) {
  .a8ft[data-ft="f"] a.ft-big { min-height: 88px; justify-content: flex-start; padding-top: 16px; border-bottom: 1px solid var(--ftl); }
  .a8ft[data-ft="f"] .ft-biglab > span { position: static; }
  .a8ft .ft-d02 { font-size: 40px; }
  .a8ft a.ft-hit .ft-arr4 { position: absolute !important; right: 0 !important; left: auto !important; top: 50% !important; transform: translateY(-50%); }
}
/* (the case study's compact footer, Cindy 2026-11-16: the secondary row only, the case study's gray lines; the cells'
   names in ink, the details in gray) */
.a8ft[data-compact] { --ftl: var(--case-line, #CDCBC5); }
.a8ft[data-compact][data-ft="e"] { --ftl: #3A3936; }
.a8ft[data-compact] a.ft-sec .ft-det { color: var(--ftsmall); }
.a8ft[data-compact] a.ft-sec .ft-nm { color: var(--ink, #111); margin-right: 6px; }
.a8ft[data-compact][data-ft="e"] a.ft-sec .ft-nm { color: #F3F2EE; }
.a8ft[data-compact] a.ft-sec:hover .ft-nm { color: var(--fthover); }
footer.a8ft[data-ft="f"] { margin-bottom: 0 !important; }   /* (Cindy 2026-11-18: no paper band under footer F either; the 99px added 2026-11-16 is gone) */
