/* Fonts, served from this site (Latin subset of Bricolage Grotesque, IBM Plex Sans, IBM Plex Mono; SIL OFL). */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/bricolage-grotesque-1.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/bricolage-grotesque-1.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(fonts/bricolage-grotesque-1.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-mono-1.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/ibm-plex-mono-2.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-sans-1.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/ibm-plex-sans-1.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/ibm-plex-sans-1.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Shared by index.html and digital-twin.html: the living logo and the site footer.
   Page tokens (--paper, --ink, --mark, fonts) come from each page's :root. */

/* ---------- Logo: a small wave runs through the three blocks every few seconds ---------- */
.kx-mark { flex: none; overflow: visible; }
.kx-mark rect { transform-box: fill-box; }
.kx-mark .b1 { transform-origin: 50% 100%; animation: kxB1 5.5s cubic-bezier(.3,1.4,.5,1) infinite; }
.kx-mark .b2 { transform-origin: 50% 50%; animation: kxB2 5.5s cubic-bezier(.3,1.5,.5,1) infinite; }
.kx-mark .b3 { transform-origin: 50% 50%; animation: kxB3 5.5s cubic-bezier(.3,1.4,.5,1) infinite; }
@keyframes kxB1 { 0%, 6%, 22%, 100% { transform: none; } 12% { transform: scaleY(.74); } }
@keyframes kxB2 { 0%, 12%, 28%, 100% { transform: none; } 19% { transform: translateY(-38%); } }
/* a square turned half a turn looks the same, so the loop can restart from 0 without a visible jump */
@keyframes kxB3 { 0%, 18% { transform: none; } 34% { transform: rotate(180deg) scale(.82); } 40%, 100% { transform: rotate(180deg); } }
/* hover: play the wave right away and faster */
.brand:hover .kx-mark rect { animation-duration: 1.4s; }

@media (prefers-reduced-motion: reduce) { .kx-mark rect { animation: none !important; } }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: var(--on-ink); padding: 64px 0 28px; border-top: 0; font-size: .95rem; }
.site-foot .wrap { display: block; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.foot-brand { display: grid; gap: 16px; align-content: start; justify-items: start; }
.site-foot .brand { color: var(--on-ink); }
.site-foot .brand .b1 { fill: var(--on-ink); }
.foot-brand p { color: var(--on-ink-muted); max-width: 36ch; margin: 0; }
.foot-brand .foot-motto { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; color: var(--on-ink); }
.foot-motto span { color: var(--mark); }
.site-foot .foot-h { margin: 0 0 14px; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--mark); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-foot ul a { color: var(--on-ink); text-decoration: none; }
.site-foot ul a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--mark); }
.site-foot .ext::after { content: " \2197"; color: var(--on-ink-muted); font-size: .85em; }
.foot-wa { display: grid; gap: 10px; justify-items: start; }
.foot-wa .num { font-family: var(--mono); font-size: 1rem; color: var(--on-ink); }
.foot-wa p { color: var(--on-ink-muted); margin: 0; font-size: .9rem; max-width: 30ch; }
.foot-wa .btn { background: var(--mark); color: var(--ink); border-color: var(--mark); }
.foot-wa .btn:hover { background: var(--on-ink); border-color: var(--on-ink); box-shadow: none; }
.foot-bot { margin-top: 48px; padding-top: 20px; border-top: 1px solid #2A3349; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  color: var(--on-ink-muted); font-size: .85rem; }
.foot-bot a { color: var(--on-ink-muted); }
@media (max-width: 940px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
