/* Self-hosted fonts (SIL Open Font License 1.1, files from Fontsource): Onest and Geist Mono. */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/onest-latin-300-normal.woff2?v=ac15ec863f) 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: "Onest"; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/onest-latin-ext-300-normal.woff2?v=5120734a09) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/onest-latin-400-normal.woff2?v=93dfb945d2) 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: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/onest-latin-ext-400-normal.woff2?v=f16900be50) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/onest-latin-500-normal.woff2?v=83c1e16166) 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: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/onest-latin-ext-500-normal.woff2?v=243d6b5b30) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/onest-latin-600-normal.woff2?v=a56e6d2dcc) 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: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/onest-latin-ext-600-normal.woff2?v=6e99f31334) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/geist-mono-latin-400-normal.woff2?v=3f98383b12) 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: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/geist-mono-latin-ext-400-normal.woff2?v=8ede9cb664) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/geist-mono-latin-500-normal.woff2?v=72971bd490) 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: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/geist-mono-latin-ext-500-normal.woff2?v=84c2a01e0e) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* zacharybhenley.com v16: shared design tokens and primitives.
   Load order on every page: tokens.css, chrome.css, then the page's own CSS.
   Put this inline script in <head> before the CSS so the theme never flashes:
   <script>(function(){var q=new URLSearchParams(location.search),t=q.get('theme');if(!t){try{t=localStorage.getItem('zbh-theme')}catch(e){}}document.documentElement.dataset.theme=t||'dark';document.documentElement.dataset.ed=document.documentElement.dataset.ed||'all';document.documentElement.classList.add('js')})();</script>
   P13 phase 1 (Oct 12, 2026): D1 foundation. Nine-size type scale, solid border and card tokens in both themes, one easing and three
   durations, three radii. P16 phase 4 (Oct 12, 2026): the phase-1 aliases are gone (--bg-2, --bg-3, --glass, --card, --ease-out, --ease-io,
   --dur-*, --r-xs/sm/md/lg/xl, --t-display ... --t-chip); use --surface, --surface-2, --ease, --t-fast/med/slow, --r-card, --r-inner, --fs-*.
   Fonts (Google Fonts only):
   <link href="https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500&family=Onest:wght@300;400;500;600&display=swap" rel="stylesheet"> */

/* zt:palette:begin (R0, generated by tools/consolidate.py; every colour the site CSS uses, one token each) */
:root {
  --zc-000: #000;
  --zc-000000: #000000;
  --zc-0066cc: #0066cc;
  --zc-006edb: #006edb;
  --zc-0071e3: #0071e3;
  --zc-0077ed: #0077ed;
  --zc-020308: #020308;
  --zc-03050c: #03050c;
  --zc-04060c: #04060c;
  --zc-05070c: #05070c;
  --zc-05070d: #05070d;
  --zc-050813: #050813;
  --zc-050a1c: #050a1c;
  --zc-060914: #060914;
  --zc-07080f: #07080f;
  --zc-070a10: #070a10;
  --zc-070a14: #070a14;
  --zc-070b16: #070b16;
  --zc-0a0b0f: #0a0b0f;
  --zc-0a0d13: #0a0d13;
  --zc-0a0d14: #0a0d14;
  --zc-0a0e16: #0a0e16;
  --zc-0a0f1e: #0a0f1e;
  --zc-0a1024: #0a1024;
  --zc-0a6e5c: #0a6e5c;
  --zc-0b0d12: #0b0d12;
  --zc-0b1020: #0b1020;
  --zc-0b1228: #0b1228;
  --zc-0b1430: #0b1430;
  --zc-0c0e12: #0c0e12;
  --zc-0c1530: #0c1530;
  --zc-0d1018: #0d1018;
  --zc-0d7361: #0d7361;
  --zc-0e0f14: #0e0f14;
  --zc-0e121a: #0e121a;
  --zc-0f131c: #0f131c;
  --zc-101116: #101116;
  --zc-10131c: #10131c;
  --zc-10141f: #10141f;
  --zc-10151f: #10151f;
  --zc-111112: #111112;
  --zc-111217: #111217;
  --zc-121218: #121218;
  --zc-12151f: #12151f;
  --zc-121822: #121822;
  --zc-121a30: #121a30;
  --zc-121c38: #121c38;
  --zc-14161d: #14161d;
  --zc-15151b: #15151b;
  --zc-17181e: #17181e;
  --zc-171b26: #171b26;
  --zc-171d2a: #171d2a;
  --zc-172552: #172552;
  --zc-1a1420: #1a1420;
  --zc-1a2130: #1a2130;
  --zc-1a2a58: #1a2a58;
  --zc-1b1b22: #1b1b22;
  --zc-1b2030: #1b2030;
  --zc-1b2232: #1b2232;
  --zc-1c1c1c: #1c1c1c;
  --zc-1c2434: #1c2434;
  --zc-1c2850: #1c2850;
  --zc-1d1d1f: #1d1d1f;
  --zc-1d2f6b: #1d2f6b;
  --zc-1f9d63: #1f9d63;
  --zc-26314f: #26314f;
  --zc-2997ff: #2997ff;
  --zc-2a3142: #2a3142;
  --zc-2a3554: #2a3554;
  --zc-2a5db0: #2a5db0;
  --zc-2c2c2e: #2c2c2e;
  --zc-2e3849: #2e3849;
  --zc-2f4bd0: #2f4bd0;
  --zc-3553c2: #3553c2;
  --zc-3a3f46: #3a3f46;
  --zc-3a4666: #3a4666;
  --zc-3f5ee6: #3f5ee6;
  --zc-424245: #424245;
  --zc-444: #444;
  --zc-46526f: #46526f;
  --zc-4663b5: #4663b5;
  --zc-48484a: #48484a;
  --zc-4a566b: #4a566b;
  --zc-4a5674: #4a5674;
  --zc-4b5568: #4b5568;
  --zc-4b5670: #4b5670;
  --zc-4d6bd6: #4d6bd6;
  --zc-5ccf95: #5ccf95;
  --zc-6338c7: #6338c7;
  --zc-636366: #636366;
  --zc-6441bb: #6441bb;
  --zc-66666b: #66666b;
  --zc-6e6e73: #6e6e73;
  --zc-7a3f0c: #7a3f0c;
  --zc-7f95d6: #7f95d6;
  --zc-7fe0c8: #7fe0c8;
  --zc-82500a: #82500a;
  --zc-82d8c4: #82d8c4;
  --zc-86868b: #86868b;
  --zc-8a4f12: #8a4f12;
  --zc-8a93a6: #8a93a6;
  --zc-8b94a4: #8b94a4;
  --zc-8d5c14: #8d5c14;
  --zc-8d95a6: #8d95a6;
  --zc-8ea8ff: #8ea8ff;
  --zc-8f5418: #8f5418;
  --zc-8fa9d6: #8fa9d6;
  --zc-969fb0: #969fb0;
  --zc-9aa3b4: #9aa3b4;
  --zc-9db0ff: #9db0ff;
  --zc-9fb7ff: #9fb7ff;
  --zc-a1a1a6: #a1a1a6;
  --zc-a3acbc: #a3acbc;
  --zc-a7b0c2: #a7b0c2;
  --zc-a8bdff: #a8bdff;
  --zc-a9b1c0: #a9b1c0;
  --zc-a9beff: #a9beff;
  --zc-aab2c2: #aab2c2;
  --zc-aeaeb2: #aeaeb2;
  --zc-aeb6c6: #aeb6c6;
  --zc-b42318: #b42318;
  --zc-b4bfd3: #b4bfd3;
  --zc-b9c0cc: #b9c0cc;
  --zc-bfc6d2: #bfc6d2;
  --zc-c3cad6: #c3cad6;
  --zc-c4a8ff: #c4a8ff;
  --zc-c4cad6: #c4cad6;
  --zc-c4cad8: #c4cad8;
  --zc-c69c6d: #c69c6d;
  --zc-c7b3ff: #c7b3ff;
  --zc-c8cedb: #c8cedb;
  --zc-c8cfdb: #c8cfdb;
  --zc-c9cfdb: #c9cfdb;
  --zc-c9d0dc: #c9d0dc;
  --zc-c9d6ec: #c9d6ec;
  --zc-c9d6ff: #c9d6ff;
  --zc-cdbcff: #cdbcff;
  --zc-d2d2d7: #d2d2d7;
  --zc-d3d9e4: #d3d9e4;
  --zc-d5deea: #d5deea;
  --zc-d6e0ff: #d6e0ff;
  --zc-d9dee7: #d9dee7;
  --zc-dde1ea: #dde1ea;
  --zc-dde6f4: #dde6f4;
  --zc-dfe6f7: #dfe6f7;
  --zc-dfe6ff: #dfe6ff;
  --zc-e3e7ed: #e3e7ed;
  --zc-e4ecf8: #e4ecf8;
  --zc-e5484d: #e5484d;
  --zc-e6ebf1: #e6ebf1;
  --zc-e7c58f: #e7c58f;
  --zc-e8d3ad: #e8d3ad;
  --zc-e8e8ed: #e8e8ed;
  --zc-e9b98c: #e9b98c;
  --zc-e9c9a6: #e9c9a6;
  --zc-e9e6dc: #e9e6dc;
  --zc-eaedf3: #eaedf3;
  --zc-eceef3: #eceef3;
  --zc-edf1f5: #edf1f5;
  --zc-eef1f6: #eef1f6;
  --zc-f0b27a: #f0b27a;
  --zc-f0c48a: #f0c48a;
  --zc-f0d3a8: #f0d3a8;
  --zc-f2f4f8: #f2f4f8;
  --zc-f3f3f0: #f3f3f0;
  --zc-f3f4f7: #f3f4f7;
  --zc-f4b56a: #f4b56a;
  --zc-f5f5f7: #f5f5f7;
  --zc-f6f8fb: #f6f8fb;
  --zc-f7f9fb: #f7f9fb;
  --zc-f7f9fc: #f7f9fc;
  --zc-fbfcfd: #fbfcfd;
  --zc-fbfcfe: #fbfcfe;
  --zc-fdfcf7: #fdfcf7;
  --zc-ff4a3d: #ff4a3d;
  --zc-ff8a8a: #ff8a8a;
  --zc-ffd9a6: #ffd9a6;
  --zc-ffe3b8: #ffe3b8;
  --zc-ffe7c4: #ffe7c4;
  --zc-fff: #fff;
  --zc-fff3e2: #fff3e2;
  --zc-fff7e6: #fff7e6;
  --zc-ffffff: #ffffff;
  --zc-rgba-0-0-0-04: rgba(0, 0, 0, .04);
  --zc-rgba-0-0-0-05: rgba(0, 0, 0, .05);
  --zc-rgba-0-0-0-06: rgba(0, 0, 0, .06);
  --zc-rgba-0-0-0-08: rgba(0, 0, 0, .08);
  --zc-rgba-0-0-0-12: rgba(0, 0, 0, .12);
  --zc-rgba-0-0-0-14: rgba(0, 0, 0, .14);
  --zc-rgba-0-0-0-16: rgba(0, 0, 0, .16);
  --zc-rgba-0-0-0-18: rgba(0, 0, 0, .18);
  --zc-rgba-0-0-0-22: rgba(0, 0, 0, .22);
  --zc-rgba-0-0-0-25: rgba(0,0,0,.25);
  --zc-rgba-0-0-0-25x: rgba(0, 0, 0, .25);
  --zc-rgba-0-0-0-28: rgba(0, 0, 0, .28);
  --zc-rgba-0-0-0-3: rgba(0, 0, 0, .3);
  --zc-rgba-0-0-0-35: rgba(0, 0, 0, .35);
  --zc-rgba-0-0-0-4: rgba(0, 0, 0, .4);
  --zc-rgba-0-0-0-42: rgba(0, 0, 0, .42);
  --zc-rgba-0-0-0-45: rgba(0, 0, 0, .45);
  --zc-rgba-0-0-0-5: rgba(0, 0, 0, .5);
  --zc-rgba-0-0-0-55: rgba(0, 0, 0, .55);
  --zc-rgba-0-0-0-6: rgba(0, 0, 0, .6);
  --zc-rgba-0-0-0-7: rgba(0, 0, 0, .7);
  --zc-rgba-0-0-0-75: rgba(0, 0, 0, .75);
  --zc-rgba-0-0-0-8: rgba(0, 0, 0, .8);
  --zc-rgba-0-0-0-82: rgba(0, 0, 0, .82);
  --zc-rgba-0-0-0-85: rgba(0,0,0,.85);
  --zc-rgba-0-0-0-85x: rgba(0, 0, 0, .85);
  --zc-rgba-0-0-0-9: rgba(0, 0, 0, .9);
  --zc-rgba-0-102-204-08: rgba(0, 102, 204, .08);
  --zc-rgba-0-102-204-2: rgba(0, 102, 204, .2);
  --zc-rgba-0-102-204-35: rgba(0, 102, 204, .35);
  --zc-rgba-0-102-204-5: rgba(0, 102, 204, .5);
  --zc-rgba-10-13-20-9: rgba(10, 13, 20, .9);
  --zc-rgba-10-13-20-92: rgba(10, 13, 20, .92);
  --zc-rgba-10-14-24-34: rgba(10, 14, 24, .34);
  --zc-rgba-10-14-24-6: rgba(10, 14, 24, .6);
  --zc-rgba-11-20-48-04: rgba(11, 20, 48, .04);
  --zc-rgba-11-20-48-05: rgba(11, 20, 48, .05);
  --zc-rgba-11-20-48-12: rgba(11, 20, 48, .12);
  --zc-rgba-11-20-48-22: rgba(11, 20, 48, .22);
  --zc-rgba-11-20-48-35: rgba(11, 20, 48, .35);
  --zc-rgba-12-14-18-1: rgba(12, 14, 18, .1);
  --zc-rgba-12-14-18-2: rgba(12, 14, 18, .2);
  --zc-rgba-12-14-18-24: rgba(12, 14, 18, .24);
  --zc-rgba-12-14-18-66: rgba(12, 14, 18, .66);
  --zc-rgba-12-14-18-7: rgba(12, 14, 18, .7);
  --zc-rgba-12-14-18-74: rgba(12, 14, 18, .74);
  --zc-rgba-12-14-18-8: rgba(12, 14, 18, .8);
  --zc-rgba-12-14-18-82: rgba(12, 14, 18, .82);
  --zc-rgba-120-150-240-055: rgba(120, 150, 240, .055);
  --zc-rgba-122-63-12-4: rgba(122, 63, 12, .4);
  --zc-rgba-122-63-12-55: rgba(122, 63, 12, .55);
  --zc-rgba-13-17-26-5: rgba(13, 17, 26, .5);
  --zc-rgba-13-17-26-6: rgba(13, 17, 26, .6);
  --zc-rgba-13-17-26-62: rgba(13, 17, 26, .62);
  --zc-rgba-13-17-26-82: rgba(13, 17, 26, .82);
  --zc-rgba-13-17-26-85: rgba(13, 17, 26, .85);
  --zc-rgba-142-168-255-16: rgba(142, 168, 255, .16);
  --zc-rgba-15-20-30-08: rgba(15, 20, 30, .08);
  --zc-rgba-159-183-255-06: rgba(159, 183, 255, .06);
  --zc-rgba-159-183-255-22: rgba(159,183,255,.22);
  --zc-rgba-159-183-255-22x: rgba(159, 183, 255, .22);
  --zc-rgba-159-183-255-26: rgba(159, 183, 255, .26);
  --zc-rgba-159-183-255-35: rgba(159, 183, 255, .35);
  --zc-rgba-159-183-255-4: rgba(159, 183, 255, .4);
  --zc-rgba-159-183-255-42: rgba(159, 183, 255, .42);
  --zc-rgba-159-183-255-45: rgba(159, 183, 255, .45);
  --zc-rgba-159-183-255-55: rgba(159,183,255,.55);
  --zc-rgba-159-183-255-75: rgba(159, 183, 255, .75);
  --zc-rgba-16-28-56-35: rgba(16,28,56,.35);
  --zc-rgba-16-30-72-35: rgba(16, 30, 72, .35);
  --zc-rgba-16-30-72-45: rgba(16, 30, 72, .45);
  --zc-rgba-169-190-255-4: rgba(169, 190, 255, .4);
  --zc-rgba-169-190-255-45: rgba(169, 190, 255, .45);
  --zc-rgba-170-195-255-07: rgba(170, 195, 255, .07);
  --zc-rgba-180-150-255-05: rgba(180, 150, 255, .05);
  --zc-rgba-185-192-204-45: rgba(185, 192, 204, .45);
  --zc-rgba-207-224-255-28: rgba(207, 224, 255, .28);
  --zc-rgba-22-30-54-9: rgba(22, 30, 54, .9);
  --zc-rgba-22-30-54-92: rgba(22, 30, 54, .92);
  --zc-rgba-228-236-248-0: rgba(228, 236, 248, 0);
  --zc-rgba-232-232-237-55: rgba(232, 232, 237, .55);
  --zc-rgba-233-185-140-04: rgba(233, 185, 140, .04);
  --zc-rgba-233-185-140-3: rgba(233, 185, 140, .3);
  --zc-rgba-233-185-140-45: rgba(233, 185, 140, .45);
  --zc-rgba-233-185-140-8: rgba(233, 185, 140, .8);
  --zc-rgba-233-201-166-35: rgba(233, 201, 166, .35);
  --zc-rgba-233-236-241-3: rgba(233, 236, 241, .3);
  --zc-rgba-238-241-246-1: rgba(238, 241, 246, .1);
  --zc-rgba-238-241-246-22: rgba(238, 241, 246, .22);
  --zc-rgba-238-241-246-26: rgba(238, 241, 246, .26);
  --zc-rgba-238-241-246-5: rgba(238, 241, 246, .5);
  --zc-rgba-238-241-246-55: rgba(238, 241, 246, .55);
  --zc-rgba-238-241-246-6: rgba(238, 241, 246, .6);
  --zc-rgba-238-241-246-7: rgba(238, 241, 246, .7);
  --zc-rgba-238-241-246-74: rgba(238, 241, 246, .74);
  --zc-rgba-238-241-246-78: rgba(238, 241, 246, .78);
  --zc-rgba-238-241-246-82: rgba(238, 241, 246, .82);
  --zc-rgba-238-241-246-84: rgba(238, 241, 246, .84);
  --zc-rgba-238-241-246-85: rgba(238, 241, 246, .85);
  --zc-rgba-238-241-246-86: rgba(238, 241, 246, .86);
  --zc-rgba-238-241-246-92: rgba(238, 241, 246, .92);
  --zc-rgba-24-44-96-06: rgba(24, 44, 96, .06);
  --zc-rgba-24-44-96-06x: rgba(24,44,96,.06);
  --zc-rgba-24-44-96-12: rgba(24, 44, 96, .12);
  --zc-rgba-24-44-96-14: rgba(24, 44, 96, .14);
  --zc-rgba-24-44-96-16: rgba(24, 44, 96, .16);
  --zc-rgba-24-44-96-18: rgba(24, 44, 96, .18);
  --zc-rgba-24-44-96-22: rgba(24, 44, 96, .22);
  --zc-rgba-24-44-96-24: rgba(24, 44, 96, .24);
  --zc-rgba-24-44-96-3: rgba(24, 44, 96, .3);
  --zc-rgba-24-44-96-32: rgba(24, 44, 96, .32);
  --zc-rgba-24-44-96-35: rgba(24,44,96,.35);
  --zc-rgba-24-44-96-4: rgba(24, 44, 96, .4);
  --zc-rgba-240-178-122-22: rgba(240, 178, 122, .22);
  --zc-rgba-243-244-247-86: rgba(243, 244, 247, .86);
  --zc-rgba-246-247-249-94: rgba(246, 247, 249, .94);
  --zc-rgba-251-252-253-94: rgba(251, 252, 253, .94);
  --zc-rgba-255-213-158-45: rgba(255, 213, 158, .45);
  --zc-rgba-255-220-170-35: rgba(255, 220, 170, .35);
  --zc-rgba-255-247-230-18: rgba(255, 247, 230, .18);
  --zc-rgba-255-255-255-035: rgba(255, 255, 255, .035);
  --zc-rgba-255-255-255-04: rgba(255, 255, 255, .04);
  --zc-rgba-255-255-255-045: rgba(255, 255, 255, .045);
  --zc-rgba-255-255-255-05: rgba(255, 255, 255, .05);
  --zc-rgba-255-255-255-06: rgba(255, 255, 255, .06);
  --zc-rgba-255-255-255-07: rgba(255, 255, 255, .07);
  --zc-rgba-255-255-255-08: rgba(255, 255, 255, .08);
  --zc-rgba-255-255-255-085: rgba(255, 255, 255, .085);
  --zc-rgba-255-255-255-09: rgba(255, 255, 255, .09);
  --zc-rgba-255-255-255-1: rgba(255, 255, 255, .1);
  --zc-rgba-255-255-255-12: rgba(255, 255, 255, .12);
  --zc-rgba-255-255-255-14: rgba(255, 255, 255, .14);
  --zc-rgba-255-255-255-16: rgba(255, 255, 255, .16);
  --zc-rgba-255-255-255-18: rgba(255, 255, 255, .18);
  --zc-rgba-255-255-255-2: rgba(255, 255, 255, .2);
  --zc-rgba-255-255-255-22: rgba(255, 255, 255, .22);
  --zc-rgba-255-255-255-24: rgba(255, 255, 255, .24);
  --zc-rgba-255-255-255-25: rgba(255, 255, 255, .25);
  --zc-rgba-255-255-255-26: rgba(255, 255, 255, .26);
  --zc-rgba-255-255-255-28: rgba(255, 255, 255, .28);
  --zc-rgba-255-255-255-30: rgba(255, 255, 255, .30);
  --zc-rgba-255-255-255-34: rgba(255, 255, 255, .34);
  --zc-rgba-255-255-255-35: rgba(255, 255, 255, .35);
  --zc-rgba-255-255-255-4: rgba(255, 255, 255, .4);
  --zc-rgba-255-255-255-5: rgba(255, 255, 255, .5);
  --zc-rgba-255-255-255-55: rgba(255, 255, 255, .55);
  --zc-rgba-255-255-255-6: rgba(255, 255, 255, .6);
  --zc-rgba-255-255-255-78: rgba(255, 255, 255, .78);
  --zc-rgba-255-255-255-8: rgba(255, 255, 255, .8);
  --zc-rgba-255-255-255-86: rgba(255, 255, 255, .86);
  --zc-rgba-255-255-255-88: rgba(255, 255, 255, .88);
  --zc-rgba-255-255-255-9: rgba(255, 255, 255, .9);
  --zc-rgba-255-255-255-94: rgba(255, 255, 255, .94);
  --zc-rgba-255-255-255-95: rgba(255, 255, 255, .95);
  --zc-rgba-255-255-255-96: rgba(255, 255, 255, .96);
  --zc-rgba-255-255-255-97: rgba(255, 255, 255, .97);
  --zc-rgba-255-74-61-18: rgba(255, 74, 61, .18);
  --zc-rgba-28-28-30-74: rgba(28, 28, 30, .74);
  --zc-rgba-28-28-30-86: rgba(28, 28, 30, .86);
  --zc-rgba-3-5-12-35: rgba(3, 5, 12, .35);
  --zc-rgba-3-5-12-4: rgba(3, 5, 12, .4);
  --zc-rgba-3-5-12-5: rgba(3, 5, 12, .5);
  --zc-rgba-3-5-12-55: rgba(3, 5, 12, .55);
  --zc-rgba-3-5-12-62: rgba(3, 5, 12, .62);
  --zc-rgba-46-120-160-16: rgba(46, 120, 160, .16);
  --zc-rgba-47-75-208-1: rgba(47, 75, 208, .1);
  --zc-rgba-47-75-208-2: rgba(47,75,208,.2);
  --zc-rgba-47-75-208-28: rgba(47, 75, 208, .28);
  --zc-rgba-47-75-208-5: rgba(47,75,208,.5);
  --zc-rgba-5-7-12-72: rgba(5, 7, 12, .72);
  --zc-rgba-5-7-12-78: rgba(5, 7, 12, .78);
  --zc-rgba-5-7-13-0: rgba(5, 7, 13, 0);
  --zc-rgba-5-7-13-05: rgba(5, 7, 13, .05);
  --zc-rgba-5-7-13-2: rgba(5, 7, 13, .2);
  --zc-rgba-5-7-13-38: rgba(5, 7, 13, .38);
  --zc-rgba-5-7-13-42: rgba(5, 7, 13, .42);
  --zc-rgba-5-7-13-5: rgba(5, 7, 13, .5);
  --zc-rgba-5-7-13-62: rgba(5, 7, 13, .62);
  --zc-rgba-5-7-13-7: rgba(5, 7, 13, .7);
  --zc-rgba-5-7-13-75: rgba(5, 7, 13, .75);
  --zc-rgba-5-7-13-84: rgba(5, 7, 13, .84);
  --zc-rgba-5-7-13-85: rgba(5, 7, 13, .85);
  --zc-rgba-5-7-13-9: rgba(5, 7, 13, .9);
  --zc-rgba-5-7-13-96: rgba(5, 7, 13, .96);
  --zc-rgba-5-8-15-82: rgba(5, 8, 15, .82);
  --zc-rgba-60-60-64-85: rgba(60, 60, 64, .85);
  --zc-rgba-7-10-16-72: rgba(7, 10, 16, .72);
  --zc-rgba-7-10-16-82: rgba(7, 10, 16, .82);
  --zc-rgba-70-70-170-55: rgba(70, 70, 170, .55);
  --zc-rgba-77-96-196-30: rgba(77, 96, 196, .30);
  --zc-rgba-8-11-19-92: rgba(8, 11, 19, .92);
  --zc-rgba-8-11-20-32: rgba(8, 11, 20, .32);
  --zc-rgba-8-12-24-72: rgba(8, 12, 24, .72);
  --zc-rgba-8-12-24-78: rgba(8, 12, 24, .78);
  --zc-rgba-90-110-220-14: rgba(90, 110, 220, .14);
  --zc-rgba-92-207-149-0: rgba(92, 207, 149, 0);
  --zc-rgba-92-207-149-12: rgba(92, 207, 149, .12);
  --zc-rgba-92-207-149-2: rgba(92, 207, 149, .2);
  --zc-rgba-92-207-149-22: rgba(92, 207, 149, .22);
  --zc-rgba-92-207-149-5: rgba(92, 207, 149, .5);
  --zc-rgba-92-207-149-55: rgba(92, 207, 149, .55);
  --zc-rgba-92-207-149-6: rgba(92, 207, 149, .6);
}
/* zt:palette:end */

:root {
  --sans: "Onest", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;   /* code, SQL, source lines and chart axes only */

  /* motion (P13): one easing, three durations. The old names are aliases. */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 150ms;    /* colour and border changes */
  --t-med: 300ms;     /* things that move: menus, arrows */
  --t-slow: 600ms;    /* the one reveal per section head */

  /* spacing: the 8 pt steps stay; --space-* is the D1 4 px base */
  --sp-h: var(--space-1); --sp1: var(--space-2); --sp2: var(--space-4); --sp3: var(--space-5); --sp4: var(--space-6); --sp5: 40px; --sp6: var(--space-7);
  --sp8: var(--space-8); --sp10: 80px; --sp12: var(--space-9); --sp16: 128px;   /* v19.31: the --sp* names are aliases of --space-*; 40, 80 and 128 have no --space step yet */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --gut: clamp(16px, 3.4vw, 48px);
  --sec-y: clamp(72px, 8vw, 120px);              /* vertical padding of a section */
  --maxw: 1344px;

  /* radii (P13): three shapes, 20 (cards), 12 (inner), pill */
  --r-card: 20px; --r-inner: 12px; --r-pill: 999px;

  /* type scale (owner OK 20 Oct 2026, audit-2026-10-20/DESIGN_SYSTEM.md): twelve steps; every text size on the site uses one.
     A fluid size runs from one step on a 375 px phone to another at 1440 px and stops there. Display sizes above 80 px are named
     exceptions (Home name and analyses count, Now, Lab, 404, Stats, Journey and mission numerals, the Dashboard feature figure).
     The nine names below are what the editor's Design panel scales; each points at steps. */
  --fs-1: 12px;
  --fs-2: 13px;
  --fs-3: 14px;
  --fs-4: 15px;
  --fs-5: 17px;
  --fs-6: 21px;
  --fs-7: 24px;
  --fs-8: 28px;
  --fs-9: 34px;
  --fs-10: 44px;
  --fs-11: 60px;
  --fs-12: 80px;
  --fs-display: clamp(var(--fs-10), 3.3804vw + 31.3235px, var(--fs-12));   /* page headline: 44 phone, 80 at 1440 */
  --fs-h2: clamp(var(--fs-9), 2.4415vw + 24.8443px, var(--fs-11));   /* section headings: 34 phone, 60 at 1440 */
  --fs-h3: clamp(var(--fs-6), 0.6574vw + 18.5347px, var(--fs-8));
  --fs-lead: clamp(var(--fs-6), 0.2818vw + 19.9432px, var(--fs-7));
  --fs-body: clamp(var(--fs-5), 0.3757vw + 15.5911px, var(--fs-6));   /* 17 phone, 21 at 1440 */
  --fs-card: var(--fs-5);
  --fs-small: var(--fs-5);
  --fs-label: var(--fs-3);
  --fs-caption: var(--fs-2);
  --track: 0em;

  --ok: var(--zc-5ccf95);
  --tint: transparent;
  --glow: 0 0 0 0 transparent; --glow-s: 0 0 0 0 transparent; --rule-a: var(--line-2);   /* old light-theme glow and accent-rule tokens, neutralised (P13) */
}

/* dark is the default theme */
/* Colour (P13): solid borders, a card fill that differs from the page, every text pair 6.3:1 or better.
   Card border vs page 1.68:1 dark, 1.43:1 light; control borders (--line-2) 2.4:1 dark, 2.2:1 light. */
:root[data-theme="dark"] {
  --bg: var(--zc-070a10); --surface: var(--zc-121822); --surface-2: var(--zc-1a2130);   /* page, card, chips and table heads */
  --ink: var(--zc-f2f4f8); --ink-2: var(--zc-c8cfdb); --muted: var(--zc-a3acbc);
  --line: var(--zc-2e3849); --line-2: var(--zc-4a566b);
  --glass-hi: var(--zc-rgba-255-255-255-07);
  --shadow: none;
  --accent: var(--zc-a9beff); --on-accent: var(--zc-070a10); --s2: var(--zc-4b5568);
  --warm: var(--zc-e9b98c);
  --btn: var(--zc-f2f4f8); --btn-ink: var(--zc-070a10); --btn-hover: var(--zc-ffffff); --btn-press: var(--zc-d9dee7);
  --hi: var(--zc-rgba-255-255-255-06);
  --elev-1: none;
  --elev-2: 0 24px 48px -24px var(--zc-rgba-0-0-0-6);   /* floating panels only */
  --scrim: var(--zc-rgba-7-10-16-82);
  --band-sky: var(--zc-rgba-120-150-240-055); --band-sand: var(--zc-rgba-233-185-140-04); --band-lav: var(--zc-rgba-180-150-255-05);
  --ghost: var(--zc-rgba-255-255-255-045);
  color-scheme: dark;
}
:root[data-theme="dark"][data-ed="ecom"] { --accent: var(--zc-e7c58f); }
:root[data-theme="dark"][data-ed="data"] { --accent: var(--zc-82d8c4); }
:root[data-theme="dark"][data-ed="ops"] { --accent: var(--zc-c4a8ff); }

/* light: white cards with a soft shadow on a cool grey page */
:root[data-theme="light"] {
  --bg: var(--zc-f3f4f7); --surface: var(--zc-ffffff); --surface-2: var(--zc-eceef3);
  --ink: var(--zc-0b1430); --ink-2: var(--zc-26314f); --muted: var(--zc-4b5670);
  --line: var(--zc-c8cedb); --line-2: var(--zc-a7b0c2);
  --glass-hi: var(--zc-rgba-255-255-255-6);
  --shadow: 0 1px 2px var(--zc-rgba-11-20-48-05), 0 8px 24px -12px var(--zc-rgba-11-20-48-12);
  --accent: var(--zc-2f4bd0); --on-accent: var(--zc-ffffff); --s2: var(--zc-b4bfd3);
  --warm: var(--zc-8a4f12);
  --btn: var(--zc-0b1430); --btn-ink: var(--zc-ffffff); --btn-hover: var(--zc-1c2850); --btn-press: var(--zc-050a1c);
  --hi: var(--zc-rgba-255-255-255-95);
  --elev-1: var(--shadow);
  --elev-2: 0 24px 48px -24px var(--zc-rgba-11-20-48-35);
  --scrim: var(--zc-rgba-243-244-247-86);
  --band-sky: var(--zc-eceef3); --band-sand: var(--zc-eceef3); --band-lav: var(--zc-eceef3);   /* one neutral family */
  --ghost: var(--zc-rgba-47-75-208-1);
  color-scheme: light;
}
:root[data-theme="light"][data-ed="ecom"] { --accent: var(--zc-82500a); }
:root[data-theme="light"][data-ed="data"] { --accent: var(--zc-0a6e5c); }
:root[data-theme="light"][data-ed="ops"] { --accent: var(--zc-6338c7); }

/* zt:roles:begin (W1 stage 3, v19.31 'Tokens: freeze and alias'; nothing here changes a pixel).
   THE ROLE NAMES every new rule uses; raw colours and font sizes are frozen outside this file (tools16/style_audit.py, run by build16).
   page / card   --bg  --surface  --surface-2  --band-sky|sand|lav        text      --ink  --ink-2  --ink-3
   border        --line (hairline)  --line-2 (control)                      accent    --accent  --accent-ink  --focus  --btn  --btn-ink
   status        --good  --warn  --bad                                      dark      --night-bg  --night-ink  (the Lab and dark-hero stage, in either theme)
   space         --space-1..9 = 4 8 12 16 24 32 48 64 96 (--sp* are aliases)  radius  --r-card  --r-inner  --r-pill
   type          --fs-display  --fs-h2  --fs-h3  --fs-lead  --fs-body  --fs-card  --fs-small  --fs-label  --fs-caption (steps --fs-1..12)
   motion        --ease  --t-fast  --t-med  --t-slow                         shadow    --elev-1  --elev-2
   Each role is an alias of the token that already carried its effective value (the later layers u1/u3 still set those), so the Design panel and the
   scoped dark scenes keep working. The names below are the ones that had no name before. They sit on * and not on :root so every element resolves
   them against its OWN --muted, --on-accent, --accent and --warm (a :root alias would keep the page's value inside .night, .skb, .darkset, .m-scene).
   Breakpoints cannot be variables: use 600, 900 or 1200 px in new rules (the freeze lists today's 38 widths). */
* { --ink-3: var(--muted); --accent-ink: var(--on-accent); --focus: var(--accent); --good: var(--ok); --warn: var(--warm); }
:root { --bad: var(--zc-e5484d); --night-bg: var(--zc-070a10); --night-ink: var(--zc-f2f4f8); }
/* zt:roles:end */

/* base */
* { box-sizing: border-box; }
/* overflow-x: clip on html AND body: iOS Safari ignores body-only overflow-x: hidden, which let pages drift sideways; clip keeps position: sticky working (Opus, Oct 7) */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; transition: background-color var(--t-slow), color var(--t-slow); }
a { color: inherit; }
button { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
kbd { font: 500 var(--fs-caption)/1 var(--mono); padding: 3px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); }
.k { color: var(--accent); }   /* SQL keyword */
.s { color: var(--ink); }      /* SQL string */
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- the one card (P13). .glass is the shared name every page already uses: a solid fill that differs from the page, a solid
   border, the soft shadow in light. No blur, no pointer sheen (inside a dark .m-scene the scene's own translucent tokens still apply). ---------- */
.glass { position: relative; background: var(--surface-glass, var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-size: var(--fs-card); line-height: 1.55; text-decoration: none; }
a.card { transition: border-color var(--t-fast) var(--ease); }
a.card:hover { border-color: var(--line-2); }
@media (max-width: 720px) { .card { padding: var(--space-5); } }
[data-tilt] { will-change: auto; }   /* the pointer tilt was removed (P13); the attribute stays harmless in old markup */

/* ---------- section heads (P13): a plain 14 px label, the title, an optional line under it. No numbers, no uppercase mono. ---------- */
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--sp2); font: 500 var(--fs-label)/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--accent); }
.eyebrow .n { display: none; }   /* "01 ——" numbering dropped (Q8) */
.sec-head { max-width: 860px; margin-bottom: var(--sp6); }
.sec-head.split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--sp3) var(--sp8); align-items: end; }
.sec-head h2, .h2 { margin: 0; font: 500 var(--fs-h2)/1.1 var(--sans); letter-spacing: -.028em; text-wrap: balance; }
.sec-sub { margin: 0; max-width: 52ch; font-size: var(--fs-body); line-height: 1.6; color: var(--ink-2); font-weight: 400; }
@media (max-width: 860px) { .sec-head.split { grid-template-columns: 1fr; } }

/* ---------- buttons (P13): one set. primary, secondary (.ghost / .ghost-s) and the text link (.btn.link); rest, hover, focus (global ring),
   pressed, disabled. 48 px tall, 40 px for the small one. .primary.big is the same button (kept so old markup works). ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp1); min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); text-decoration: none; font: 500 var(--fs-5)/1 var(--sans); border: 1px solid transparent; background: none; color: var(--ink); cursor: pointer; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.btn.primary { background: var(--btn); color: var(--btn-ink); }
.btn.primary:hover { background: var(--btn-hover); }
.btn.primary:active { background: var(--btn-press); transform: scale(.98); }
.btn.ghost, .btn.ghost-s { background: var(--surface); border-color: var(--line-2); color: var(--ink); box-shadow: var(--shadow); }
.btn.ghost:hover, .btn.ghost-s:hover { border-color: var(--ink-2); background: var(--surface-2); }
.btn.ghost:active, .btn.ghost-s:active { background: var(--surface-2); transform: scale(.98); }
.btn.ghost-s { min-height: 40px; padding: 0 16px; font-size: var(--fs-small); }
.btn.big { min-height: 48px; padding: 0 26px; font-size: var(--fs-5); }
.btn.link { min-height: 44px; padding: 0 4px; color: var(--accent); background: none; border-color: transparent; box-shadow: none; }
.btn.link:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--surface-2); border-color: var(--line); color: var(--muted); box-shadow: none; cursor: not-allowed; transform: none; }
.btn .arr { display: inline-block; transition: transform var(--t-med) var(--ease); }
.btn:hover .arr, a:hover > .arr { transform: translateX(3px); }
.btn .arr.ne { transform: none; }
.btn:hover .arr.ne { transform: translate(2px, -2px); }

/* ---------- the one chip (P13): filters and markers. Every chip-like class in chrome.css and mission.css is mapped onto this look. ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); font: 500 var(--fs-label)/1 var(--sans); white-space: nowrap; }
button.chip { cursor: pointer; min-height: 40px; padding: 0 16px; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
button.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* scroll reveals (P13): one reveal per section head, once, opacity and 12 px over 600 ms. chrome.js adds .in. Cards, lists and figures are always visible (no stagger). */
.js [data-reveal] { opacity: 1; transform: none; }
.js :is(h2, .h2, .eyebrow, .m-eyebrow, .sec-head)[data-reveal]:not(.in) { opacity: 0; transform: translate3d(0, 12px, 0); }
.js :is(h2, .h2, .eyebrow, .m-eyebrow, .sec-head)[data-reveal] { transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }

/* section backdrops (P13): the star dust, grid, contour, dots and ring textures behind text are retired; the class names stay as no-ops so old markup works */
.bd-grid, .bd-dust, .bd-contour, .bd-dots, .bd-rings { position: relative; isolation: isolate; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01s !important; animation: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* zacharybhenley.com v16: shared chrome (nav, mobile menu, command palette, footer,
   copy email, back link, page transitions). Markup is rendered by chrome.js into
   <header class="nav" data-chrome="nav"></header> and <footer class="site-foot" data-chrome="footer"></footer>. */

/* cross-document view transitions: the nav stays put, the page cross-fades and lifts */
@view-transition { navigation: auto; }
.nav { view-transition-name: zbh-nav; }
.nav .brand svg { view-transition-name: zbh-mark; }   /* the nav mark only: a second one in the footer made the name duplicate */
::view-transition-old(root) { animation: zbh-out var(--t-med) var(--ease) both; }
::view-transition-new(root) { animation: zbh-in var(--t-med) var(--ease) both; }
@keyframes zbh-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes zbh-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; height: 66px; display: flex; align-items: center; justify-content: space-between; gap: var(--sp2); padding: 0 var(--gut); transition: background-color var(--t-med), border-color var(--t-med); border-bottom: 1px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: var(--fs-4); letter-spacing: -.01em; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.brand .dot { fill: var(--accent); stroke: none; transition: fill var(--t-slow); }
.nav-links { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: var(--r-pill); border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav-links a { position: relative; z-index: 1; text-decoration: none; font-size: var(--fs-small); color: var(--ink-2); padding: 7px 14px; border-radius: var(--r-pill); transition: color var(--t-fast); }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current] { color: var(--ink); }
.nav-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--r-pill); background: var(--line-2); opacity: 0; transition: transform var(--t-med) var(--ease), width var(--t-med) var(--ease), opacity var(--t-med); pointer-events: none; }
.nav-ind.on { opacity: 1; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.cmd-btn { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: transparent; cursor: pointer; color: var(--ink-2); font-size: var(--fs-2); transition: border-color var(--t-fast), color var(--t-fast); }
.cmd-btn:hover { color: var(--ink); border-color: var(--ink-2); }
.cmd-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: border-color var(--t-fast); }
.icon-btn:hover { border-color: var(--ink-2); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.theme-btn svg path { fill: currentColor; stroke: none; transition: transform var(--t-slow) var(--ease); transform-origin: 12px 12px; }
:root[data-theme="light"] .theme-btn svg path { transform: rotate(180deg); }
.pill { text-decoration: none; font-size: var(--fs-3); font-weight: 500; padding: 9px 18px; border-radius: var(--r-pill); background: var(--btn); color: var(--btn-ink); white-space: nowrap; transition: background-color var(--t-fast) var(--ease); }
.pill:hover { background: var(--btn-hover); }
.menu-btn { display: none; }
.menu-btn span { display: block; width: 16px; height: 1.4px; background: currentColor; transition: transform var(--t-med) var(--ease); }
.menu-btn span + span { margin-top: 5px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.2px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.2px) rotate(-45deg); }
.menu-btn { flex-direction: column; justify-content: center; }
.sheet { position: fixed; z-index: 39; inset: 58px 0 auto; padding: var(--sp1) 16px var(--sp3); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
@media (max-width: 1080px) { .cmd-btn .cmd-txt { display: none; } }
@media (max-width: 1180px) { .nav-links a { padding: 7px 12px; } }
@media (max-width: 960px) { .nav-links a { padding: 7px 9px; } }
@media (max-width: 860px) {
  .nav { height: 58px; }
  .nav-links, .nav .pill { display: none; }
  .cmd-btn .cmd-txt, .cmd-btn kbd { display: none; }
  .cmd-btn { width: 38px; padding: 0; justify-content: center; }
  .menu-btn { display: flex; }
}
@media (min-width: 861px) { .sheet { display: none !important; } }

/* command palette */
.pal { position: fixed; inset: 0; z-index: 90; display: grid; justify-items: center; align-items: start; padding: 14vh 16px 16px; }
.pal-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pal-box { position: relative; width: min(600px, 100%); border-radius: 18px; border-color: var(--line-2); overflow: hidden; box-shadow: 0 40px 80px -30px var(--zc-rgba-0-0-0-55); background: color-mix(in srgb, var(--surface) 90%, transparent); }
.pal-box::after { display: none; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pal-in svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.6; flex: none; }
.pal-in input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 400 var(--fs-4)/1.4 var(--sans); color: var(--ink); }
.pal-in input::placeholder { color: var(--muted); }
.pal-list { list-style: none; margin: 0; padding: 6px; max-height: min(440px, 58vh); overflow: auto; }
.pal-g { padding: 10px 10px 4px; font: 500 var(--fs-label)/1.3 var(--sans); color: var(--muted); }
.pal-i { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; cursor: pointer; font-size: var(--fs-3); }
.pal-i code { font: 400 var(--fs-2)/1 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50%; }
.pal-i[aria-selected="true"] { background: var(--surface-2); }
.pal-i[aria-selected="true"] code { color: var(--accent); }
.pal-foot { display: flex; gap: 14px; padding: 9px 16px; border-top: 1px solid var(--line); font: 400 var(--fs-label)/1.3 var(--sans); color: var(--muted); }

/* copy email */
.copy-btn { display: inline-flex; align-items: center; gap: 8px; }
.copy-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.copy-btn .ck { display: none; }
.copy-btn[data-done] { border-color: color-mix(in srgb, var(--ok) 60%, transparent); }
.copy-btn[data-done] .cp { display: none; }
.copy-btn[data-done] .ck { display: block; stroke: var(--ok); }

/* footer */
.site-foot { position: relative; padding: var(--sp8) var(--gut) var(--sp4); border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-2); }
.sf-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, .62fr)); gap: var(--sp5) var(--sp4); }
.sf-brand .brand { margin-bottom: var(--sp2); }
.sf-avail { margin: 0 0 var(--sp3); max-width: 44ch; line-height: 1.6; font-weight: 400; }
.sf-avail b { font-weight: 500; color: var(--ink); }
.sf-avail .live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); margin-right: 8px; vertical-align: 1px; }
.sf-cta { display: flex; flex-wrap: wrap; gap: var(--sp1); }
.sf-col h2 { margin: 0 0 var(--sp2); font: 500 var(--fs-label)/1.3 var(--sans); color: var(--muted); }
.sf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sf-col a { text-decoration: none; color: var(--ink-2); transition: color var(--t-fast); }
.sf-col a:hover, .sf-col a[aria-current] { color: var(--ink); }
.sf-col a[aria-current]::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 2px; }
.sf-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp1) var(--sp3); margin-top: var(--sp8); padding-top: var(--sp3); border-top: 1px solid var(--line); font: 400 var(--fs-label)/1.6 var(--sans); color: var(--muted); }
.sf-base p { margin: 0; }
.sf-base .pub { color: var(--ink-2); }
@media (max-width: 860px) {
  .sf-grid { grid-template-columns: 1fr 1fr; }
  .sf-brand { grid-column: 1 / -1; }
  .site-foot { padding-top: var(--sp6); }
}

/* back link for review builds, hidden inside iframes */
.zh-back { position: fixed; left: 14px; bottom: 14px; z-index: 50; font: 500 var(--fs-2)/1 var(--sans); padding: 8px 12px; border-radius: var(--r-pill); text-decoration: none; color: var(--ink-2); background: color-mix(in srgb, var(--bg) 80%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ---------- reading progress line (G3): 2px under the header, fills left to right ---------- */

/* =====================================================================
   Phase 3 systems (Oct 7, 2026): edition chip, shortcuts sheet, header data pulse, breadcrumb
   ===================================================================== */
:root[data-theme="dark"] { --e-all: var(--zc-9fb7ff); --e-ecom: var(--zc-e7c58f); --e-data: var(--zc-82d8c4); --e-ops: var(--zc-c4a8ff); }
:root[data-theme="light"] { --e-all: var(--zc-3553c2); --e-ecom: var(--zc-8d5c14); --e-data: var(--zc-0d7361); --e-ops: var(--zc-6441bb); }

/* edition chip: the current edition, one tap to change it; a for/* page shows it locked */
.ed { position: relative; }
.ed-btn, .ed-locked { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 11px 0 13px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: 500 var(--fs-label)/1.3 var(--sans); white-space: nowrap; transition: border-color var(--t-fast), color var(--t-fast); }
.ed-btn { cursor: pointer; }
.ed-btn:hover, .ed-btn[aria-expanded="true"] { color: var(--ink); border-color: var(--ink-2); }
.ed-locked { cursor: default; border-style: dashed; }
.ed-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); transition: background-color var(--t-slow), box-shadow var(--t-slow); }
.ed-dot[data-sw] { background: var(--sw); box-shadow: none; }
.ed-dot[data-sw="all"] { --sw: var(--e-all); } .ed-dot[data-sw="ecom"] { --sw: var(--e-ecom); } .ed-dot[data-sw="data"] { --sw: var(--e-data); } .ed-dot[data-sw="ops"] { --sw: var(--e-ops); }
.ed .chev, .ed .lk { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .75; transition: transform var(--t-med) var(--ease); }
.ed-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.ed-pop { position: absolute; z-index: 45; top: calc(100% + 10px); right: 0; width: 248px; padding: 10px; border-radius: 16px; border-color: var(--line-2); background: color-mix(in srgb, var(--surface) 97%, transparent); box-shadow: 0 30px 60px -28px var(--zc-rgba-0-0-0-6); }
.ed-pop::after { display: none; }
.ed-k { margin: 4px 8px 6px; font: 500 var(--fs-label)/1.3 var(--sans); color: var(--muted); }
.ed-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left; font-size: var(--fs-3); color: var(--ink-2); }
.ed-opt:hover { background: var(--surface-2); color: var(--ink); }
.ed-opt[aria-pressed="true"] { color: var(--ink); background: var(--surface-2); }
.ed-opt[aria-pressed="true"]::after { content: ""; margin-left: auto; width: 10px; height: 5px; border-left: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: translateY(-1px) rotate(-45deg); }
.ed-n { margin: 8px 8px 4px; font-size: var(--fs-2); line-height: 1.5; color: var(--muted); }
.sheet-ed { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 4px 4px; }
.sheet-ed button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: none; cursor: pointer; font-size: var(--fs-3); color: var(--ink-2); }
.sheet-ed button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink-2); background: var(--surface-2); }
.sheet-ed--note { font: 400 var(--fs-label)/1.5 var(--sans); color: var(--muted); }
@media (max-width: 1120px) { .nav .ed-btn .ed-l { display: none; } .nav .ed-btn { padding: 0 11px; gap: 6px; } }
@media (max-width: 860px) { .nav .ed { display: none; } }

/* keyboard shortcuts sheet */
.ks { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; }
.ks-back { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ks-box { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 20px 22px 14px; border-radius: 20px; border-color: var(--line-2); background: color-mix(in srgb, var(--surface) 96%, transparent); box-shadow: 0 40px 80px -30px var(--zc-rgba-0-0-0-55); }
.ks-box::after { display: none; }
.ks-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ks-head h2 { margin: 0; font: 500 var(--fs-6)/1.2 var(--sans); letter-spacing: -.02em; }
.ks-x { width: 34px; height: 34px; }
.ks-g { margin: 18px 0 4px; font: 500 var(--fs-label)/1.3 var(--sans); color: var(--muted); }
.ks-l { list-style: none; margin: 0; padding: 0; }
.ks-l li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-3); color: var(--ink-2); }
.ks-l li:last-child { border-bottom: 0; }
.ks-k { display: inline-flex; align-items: center; gap: 6px; }
.ks-k i { font: 400 var(--fs-label)/1.3 var(--sans); font-style: normal; color: var(--muted); }
.ks-k kbd { min-width: 22px; text-align: center; padding: 4px 6px; color: var(--ink); }
.ks-hint { position: fixed; left: 50%; bottom: 22px; z-index: 60; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font: 400 var(--fs-label)/1.3 var(--sans); color: var(--muted); }
.ks-hint kbd { color: var(--ink); }

/* breadcrumb: the same trail build16 writes as BreadcrumbList (chrome.js rewrites a page's own .crumbs in place) */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--sp3); font: 500 var(--fs-label)/1.3 var(--sans); color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }
.crumbs-l { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.crumbs-l li { display: flex; gap: 8px; }
.crumbs-l li + li::before { content: "/"; }
.crumbs--float { position: absolute; z-index: 6; top: 86px; left: var(--gut); margin: 0; }
@media (max-width: 860px) { .crumbs--float { top: 76px; } }

/* phones: the header Menu opens a full-height sheet (the bottom tab bar was removed, Opus Oct 7) */
@media (max-width: 767px) {
  .sheet { max-height: calc(100dvh - 58px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(var(--sp3) + env(safe-area-inset-bottom)); animation: zbh-down var(--t-med) var(--ease) both; }
}
@keyframes zbh-down { from { opacity: 0; transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
@media (min-width: 768px) and (max-width: 860px) { .sheet { animation: none; } }

/* =====================================================================
   K1 (Oct 7): Daylight chrome. Header, palette, sheet, footer and contact get layered glass and blue-tinted depth
   ===================================================================== */
::view-transition-group(zbh-nav) { animation: none; }            /* the header holds still between pages */
:where(:root[data-theme="light"]) .nav.scrolled { box-shadow: 0 10px 30px -22px var(--zc-rgba-24-44-96-4); }
:where(:root[data-theme="light"]) .nav-links { box-shadow: 0 1px 0 color-mix(in srgb, var(--hi) 50%, transparent) inset, 0 4px 14px -8px var(--zc-rgba-24-44-96-22); }
:where(:root[data-theme="light"]) .nav-ind { box-shadow: 0 1px 2px var(--zc-rgba-24-44-96-12); }
:where(:root[data-theme="light"]) :is(.cmd-btn, .icon-btn, .ed-btn) { background: color-mix(in srgb, var(--bg) 55%, transparent); }
:root[data-theme="light"] .pal-box, :root[data-theme="light"] .ks-box, :root[data-theme="light"] .ed-pop { background: color-mix(in srgb, var(--zc-fbfcfe) 94%, transparent); box-shadow: 0 1px 0 var(--hi) inset, 0 0 0 1px var(--zc-rgba-24-44-96-06), 0 40px 80px -30px var(--zc-rgba-16-30-72-45); }
:root[data-theme="light"] .pal-backdrop, :root[data-theme="light"] .ks-back { background: color-mix(in srgb, var(--zc-c9d6ec) 45%, transparent); }
:root[data-theme="light"] .pal-i[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 9%, var(--zc-fff)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent); }
.pal-i { font-size: var(--fs-4); }
.pal-i code, .pal-foot, .pal-g { letter-spacing: .04em; }
:root[data-theme="light"] .sheet { background: color-mix(in srgb, var(--zc-f7f9fc) 95%, transparent); box-shadow: 0 30px 60px -30px var(--zc-rgba-16-30-72-35); }
.site-foot { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--band-sky) 100%, transparent) 120px); }
:root[data-theme="light"] .site-foot { background: linear-gradient(180deg, var(--zc-rgba-228-236-248-0), var(--zc-e4ecf8) 140px, var(--zc-dde6f4)); border-top-color: var(--line); }
.sf-avail { font-weight: 400; }
.sf-col a { font-size: var(--fs-3); }

/* K3b (Oct 7): Daylight second pass. The current page in the nav and the header Contact pill carry the accent glow (tokens.css --glow) */
:where(:root[data-theme="light"]) .nav-ind { background: color-mix(in srgb, var(--accent) 9%, var(--zc-fff)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent), 0 4px 12px -5px color-mix(in srgb, var(--accent) 50%, transparent); }

/* =====================================================================
   v17.1 navigation (owner-approved Oct 8): H2 header, M2 phone menu, F1 footer, and the space kit (zs-*)
   The space kit is shared: any page can use .zs-space (star field), .zs-rail, .zs-hud, .zs-orbit, .zs-tele, .zs-limb.
   ===================================================================== */
:root { --zs-star: 255,255,255; --zs-star-a: .9; --zs-rim: var(--zc-rgba-159-183-255-55); --zs-orbit: var(--zc-rgba-159-183-255-22); --zs-panel: color-mix(in srgb, var(--surface) 97.5%, transparent);   /* near-solid: the header's view-transition name makes it a backdrop root, so blur inside it cannot see the page */ --zs-spring: var(--ease); }
:root[data-theme="light"] { --zs-star: 24,44,96; --zs-star-a: .5; --zs-rim: var(--zc-rgba-47-75-208-5); --zs-orbit: var(--zc-rgba-47-75-208-2); --zs-panel: color-mix(in srgb, var(--zc-fbfcfd) 98%, transparent); }
.zs-space { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; overflow: hidden; }
.zs-space::before, .zs-space::after { content: ""; position: absolute; inset: 0; background-size: 320px 320px; }
.zs-space::before { background-image: var(--zs-stars-a, none); opacity: var(--zs-star-a); }
.zs-space::after { background-image: var(--zs-stars-b, none); opacity: 0; animation: zs-twinkle var(--t-slow) ease-in-out infinite alternate; }
@keyframes zs-twinkle { to { opacity: var(--zs-star-a); } }
.zs-rail { position: absolute; left: 18%; right: 18%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--zs-rim), transparent); pointer-events: none; }
.zs-hud { position: absolute; inset: 8px; pointer-events: none; --c: color-mix(in srgb, var(--accent) 55%, transparent);
  background: linear-gradient(var(--c), var(--c)) top left / 12px 1px, linear-gradient(var(--c), var(--c)) top left / 1px 12px, linear-gradient(var(--c), var(--c)) top right / 12px 1px, linear-gradient(var(--c), var(--c)) top right / 1px 12px,
    linear-gradient(var(--c), var(--c)) bottom left / 12px 1px, linear-gradient(var(--c), var(--c)) bottom left / 1px 12px, linear-gradient(var(--c), var(--c)) bottom right / 12px 1px, linear-gradient(var(--c), var(--c)) bottom right / 1px 12px; background-repeat: no-repeat; }
.zs-orbit { position: absolute; pointer-events: none; overflow: visible; }
.zs-orbit ellipse { fill: none; stroke: var(--zs-orbit); stroke-width: 1; }
.zs-orbit circle { fill: var(--accent); }
.zs-tele { font: 500 var(--fs-label)/1.3 var(--sans); color: var(--muted); }
.zs-limb .b { fill: var(--surface); } .zs-limb .a { fill: none; stroke: var(--zs-rim); stroke-width: 1.2; } .zs-limb .a2 { fill: none; stroke: var(--zs-orbit); stroke-width: 1; } .zs-limb .c { fill: var(--accent); opacity: .5; }
.zs-spark { display: block; width: 100%; height: 44px; margin-top: 12px; color: var(--zc-9fb7ff); }
@media (prefers-reduced-motion: reduce) { .zs-space::after { animation: none; opacity: calc(var(--zs-star-a) * .6); } }

/* header */
.nav { height: 68px; }
.nav .brand { gap: 11px; }
.nav .brand svg { width: 28px; height: 28px; }
.brand .who { display: flex; flex-direction: column; line-height: 1.15; }
.brand .who b { font-weight: 500; font-size: var(--fs-4); letter-spacing: -.01em; }
.brand .who small { margin-top: 2px; font: 400 var(--fs-label)/1.3 var(--sans); color: var(--muted); }
.nav-links, :where(:root[data-theme="light"]) .nav-links { position: relative; gap: 2px; margin-left: auto; padding: 0; border: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav-links > a, .nav-links > button { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: none; font: 500 var(--fs-small)/1 var(--sans); color: var(--ink-2); text-decoration: none; cursor: pointer; transition: color var(--t-fast); }
.nav-links > a:hover, .nav-links > button:hover, .nav-links > [aria-current], .nav-links > button[aria-expanded="true"] { color: var(--ink); }
.nav-links .chev { width: 10px; height: 10px; transition: transform var(--t-med) var(--ease); }
.nav-links button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-ind, :where(:root[data-theme="light"]) .nav-ind { top: auto; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: none; transition: transform var(--t-med) var(--ease), width var(--t-med) var(--ease), opacity var(--t-fast); }   /* no spring: the marker should glide, not wobble */
.nav-actions { gap: 8px; margin-left: 10px; }
.nav-actions .icon-btn { width: 44px; height: 44px; }
.cc-btn { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px 0 14px; border: 0; cursor: pointer; font: 500 var(--fs-small)/1 var(--sans); }
.cc-btn:hover { background: var(--btn-hover); }
:is(.cc-btn, .cc-st, .sf-avail) > .live { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }   /* scoped: pages use .live for their own elements */

/* the More panel (P14): one panel under the More button, two columns of title + one line, For your team as three links, Search last */
.nav-fly { position: absolute; top: 62px; left: 0; z-index: 41; width: var(--fw, 0); height: var(--fh, 0); pointer-events: none; opacity: 0; transform: translateY(-6px); transform-origin: top center; transition: opacity var(--t-fast) var(--ease), transform var(--t-med) var(--ease), left var(--t-med) var(--ease); }
.nav-fly.open { opacity: 1; transform: none; pointer-events: auto; }
.fly-bg { position: absolute; inset: 0; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--elev-2); overflow: hidden; }
.fly-stage { position: relative; z-index: 1; width: 100%; height: 100%; overflow: hidden; border-radius: var(--r-card); }
.fly-pane { position: absolute; top: 0; left: 0; padding: var(--space-3); opacity: 0; transition: opacity var(--t-fast) var(--ease); pointer-events: none; }
.fly-pane.on { opacity: 1; pointer-events: auto; }
.fly-pane.measure { transition: none; visibility: hidden; }
.fp-more { width: 540px; }
.fp-ex { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.fp-x { display: grid; align-content: start; gap: 2px; min-height: 64px; padding: var(--space-3) var(--space-4); border: 0; border-radius: var(--r-inner); background: none; text-align: left; color: var(--ink); text-decoration: none; cursor: pointer; font: inherit; transition: background-color var(--t-fast) var(--ease); }
a.fp-x:hover, button.fp-x:hover, .fp-x[aria-current] { background: var(--surface-2); }
.fp-x b { font: 500 var(--fs-5)/1.3 var(--sans); }
.fp-x span { font-size: var(--fs-label); line-height: 1.4; color: var(--muted); }
.fp-x kbd { font-size: var(--fs-caption); }
.fp-search { grid-column: 1 / -1; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-inner) var(--r-inner); margin-top: var(--space-1); min-height: 64px; }
.fp-sub, .sh-team .sh-sub { display: flex; flex-wrap: wrap; align-items: center; }
.fp-sub > span, .sh-sub > span { margin-right: 6px; color: var(--muted); }
.fp-tl, .sh-tl { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; color: var(--accent); text-decoration: none; }
.fp-tl:hover, .sh-tl:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.fp-team { padding-bottom: 0; }
.fp-team:hover { background: none; }

/* Explore dropdown (Business and tools, Lab) */
.nav-ex { position: absolute; top: 62px; left: 0; z-index: 42; width: 320px; padding: var(--space-2); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--elev-2); opacity: 0; transform: translateY(-6px); transform-origin: top center; transition: opacity var(--t-fast) var(--ease), transform var(--t-med) var(--ease); }
.nav-ex.open { opacity: 1; transform: none; }
.nav-ex a { display: block; padding: 12px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.nav-ex a:hover, .nav-ex a:focus-visible { background: var(--line); }
.nav-ex b { display: block; font: 500 var(--fs-small)/1.3 var(--sans); }
.nav-ex small { display: block; margin-top: 3px; font: 400 var(--fs-2)/1.4 var(--sans); color: var(--ink-2); }
.nav-ex::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }   /* bridges the gap to the button so the pointer can cross */
.nav-ex-btn { gap: 0; }
.nav-ex-btn .chev { position: absolute; right: -3px; top: 50%; width: 12px; height: 12px; margin-top: -6px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }   /* outside the padding, so the marker underlines only the word */
.nav-ex-btn[aria-expanded="true"] .chev { transform: rotate(180deg); opacity: 1; }
.nav-ex a { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav-ex a > span { min-width: 0; }
.nav-ex a::after { content: "\2192"; color: var(--ink-2); opacity: 0; transform: translateX(-4px); transition: opacity var(--t-fast), transform var(--t-med) var(--ease); }
.nav-ex a:hover::after, .nav-ex a:focus-visible::after { opacity: 1; transform: none; }
.nav-ex a[aria-current] b { color: var(--accent); }
/* Contact card */
.cc { position: absolute; top: 62px; right: var(--gut); z-index: 42; width: 344px; padding: 18px; border-radius: 20px; background: var(--zs-panel); border: 1px solid var(--line-2); box-shadow: 0 30px 70px -30px var(--zc-rgba-0-0-0-85), 0 1px 0 var(--hi) inset; backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity var(--t-fast) var(--ease), transform var(--t-med) var(--ease); }
:root[data-theme="light"] .cc { box-shadow: 0 1px 2px var(--zc-rgba-24-44-96-06x), 0 30px 60px -30px var(--zc-rgba-16-28-56-35), 0 1px 0 var(--hi) inset; }
.cc.open { opacity: 1; transform: none; }
.cc > :not(.zs-space):not(.zs-rail):not(.zs-hud) { position: relative; }
.cc .zs-tele { margin: 0 0 12px; }
.cc-st { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-3); line-height: 1.45; color: var(--ink-2); }
.cc-st .live { margin-top: 6px; width: 8px; height: 8px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }
.cc-st b { color: var(--ink); font-weight: 500; }
.cc-time { margin: 10px 0 14px; font: 400 var(--fs-label)/1.3 var(--sans); color: var(--muted); }
.cc-acts { display: grid; gap: 8px; }
.act { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink); text-decoration: none; font: 400 var(--fs-4)/1.2 var(--sans); cursor: pointer; text-align: left; transition: border-color var(--t-fast), transform var(--t-med) var(--ease); }
.act:hover { border-color: var(--line-2); }
.act.pri { background: var(--ink); color: var(--bg); border-color: transparent; }
.act svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.act .ck { display: none; } .act[data-done] .cp { display: none; } .act[data-done] .ck { display: block; }
.act small { margin-left: auto; font: 400 var(--fs-label)/1.3 var(--sans); opacity: .7; }
.cc-mail { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font: 400 var(--fs-label)/1.4 var(--sans); color: var(--muted); user-select: all; }

/* phone menu */
.sheet { position: fixed; z-index: 39; inset: 58px 0 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px calc(26px + env(safe-area-inset-bottom)); background: var(--bg); border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; clip-path: inset(0 0 100% 0); transition: clip-path var(--t-med) var(--ease); animation: none; }
:root[data-theme="light"] .sheet { background: var(--bg); box-shadow: none; }
.sheet.open { clip-path: inset(0 0 0 0); }
.sheet .zs-space { position: fixed; inset: 58px 0 0; }
.sheet > :not(.zs-space) { position: relative; }
.sh-pc { padding: 14px; border-radius: 20px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 85%, transparent); }
.sh-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.sh-acts a, .sh-acts button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; font: 500 var(--fs-small)/1 var(--sans); cursor: pointer; }
.sh-acts .pri { grid-column: 1 / -1; background: var(--ink); color: var(--bg); border-color: transparent; font-weight: 500; }
.sh-acts svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.sh-acts .ck { display: none; } .sh-acts [data-done] .cp { display: none; } .sh-acts [data-done] .ck { display: block; }
.sh-l { margin: 22px 2px 8px; font: 500 var(--fs-label)/1.3 var(--sans); color: var(--muted); }
.sh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sh-pg { position: relative; display: block; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--ink); text-decoration: none; }
.sh-pg .ico { width: 30px; height: 30px; margin-bottom: 12px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-2); color: var(--accent); }
.sh-pg .ico svg { width: 16px; height: 16px; }
.sh-team .sh-sub { margin-top: 3px; }
.sh-list { grid-template-columns: 1fr; }
.sh-list .sh-pg { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 12px 14px; }
.sh-list .sh-pg .ico { grid-row: 1 / span 2; margin: 0; }
.sh-list .sh-pg small { margin-top: 0; }
.sh-list .sh-pg[aria-current]::after { top: 12px; }
.sh-pg b { display: block; font-weight: 500; font-size: var(--fs-5); letter-spacing: -.01em; }
.sh-pg small { display: block; margin-top: 3px; font-size: var(--fs-label); line-height: 1.35; color: var(--muted); }
.sh-pg[aria-current] { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.sh-pg[aria-current]::after { content: "You are here"; position: absolute; top: 14px; right: 12px; font: 500 var(--fs-label)/1.3 var(--sans); color: var(--accent); }
.sh-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 18px; padding: 4px; border-radius: var(--r-pill); border: 1px solid var(--line-2); }
.sh-seg button { height: 44px; border: 0; border-radius: var(--r-pill); background: none; color: var(--ink-2); font: 500 var(--fs-small)/1 var(--sans); cursor: pointer; }
.sh-seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.sh-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; font: 400 var(--fs-label)/1.3 var(--sans); }
.sh-row a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.sheet-open body { overflow: hidden; }

/* footer (P14): flat, no star field or orbit arc; brand block + four link columns (the mockup's Pages, Case studies, Explore and For your team) */
.site-foot, :root[data-theme="light"] .site-foot { position: relative; padding: var(--space-8) var(--gut) var(--space-6); background: var(--bg); border-top: 1px solid var(--line); font-size: var(--fs-small); }
.site-foot .sf-grid { position: relative; max-width: var(--maxw); margin: 0 auto; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.sf-brand .brand { margin-bottom: var(--space-3); }
.sf-avail { margin: 0; max-width: 36ch; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.sf-pills { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: var(--space-4); }
.sf-pills .btn { min-height: 44px; }
.sf-pills .btn.ghost-s { min-height: 44px; }
.sf-pills .btn.link { padding: 0 var(--space-1); }
.sf-col h2 { margin: 0 0 var(--space-3); }
.sf-col ul { gap: 2px; }
.sf-col a { display: inline-flex; align-items: center; min-height: 44px; }
.site-foot .sf-base { position: relative; max-width: var(--maxw); margin: var(--space-7) auto 0; align-items: center; padding-top: var(--space-4); font: 400 var(--fs-label)/1.5 var(--sans); }
.totop { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink-2); font: 500 var(--fs-label)/1.3 var(--sans); cursor: pointer; }
.totop:hover { color: var(--ink); }
.totop .ring { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); }
.totop .ring svg { width: 15px; height: 15px; }
.totop .ring svg.prog { position: absolute; inset: -1px; width: 40px; height: 40px; transform: rotate(-90deg); }
.totop .ring svg.prog circle { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 119.4; stroke-dashoffset: calc(119.4 * (1 - var(--p, 0))); }

@media (max-width: 1180px) { .nav-links > a, .nav-links > button { padding: 0 11px; } .brand .who small { display: none; } }
@media (max-width: 860px) {
  .nav { height: 58px; }
  .nav .theme-btn, .nav .cc-btn, .nav-fly, .cc, .nav-ex { display: none; }
  .brand .who small { display: block; font-size: var(--fs-2); }
    .site-foot .sf-grid { grid-template-columns: 1fr 1fr; }
  .sf-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .brand .who small { display: none; } }   /* phones: the subline pushed the Menu button off screen (Oct 8, 440 px iPhone) */
.nav > .brand { min-width: 0; } .nav > .brand .who { min-width: 0; overflow: hidden; }   /* the brand shrinks before the buttons do */
@media (prefers-reduced-motion: reduce) { .nav-fly, .cc, .sheet, .fly-pane, .nav-ind { transition: none; } .sheet .rv, .nav-fly .fly-pane.on * { animation: none !important; opacity: 1 !important; transform: none !important; } }


/* HUD brackets and the top light rail on the dark scene frames (the site-wide star sky and section orbits were retired in P13) */
.m-window > .zs-hud, .m-lead > .zs-hud, .cs-stage > .zs-hud { z-index: 3; inset: 10px; }
.m-window > .zs-rail, .m-lead > .zs-rail, .cs-stage > .zs-rail { z-index: 3; }
@media print { .zs-hud, .zs-rail { display: none; } }

/* v17.5 (P3) header scrim: a soft fade from the page ground behind the header on the pages with a full-bleed 3D scene
   (Home, Skills, Atlas, /system/), so the nav text stays readable over bright aerial imagery at port zoom.
   It is the page's own --bg, so at rest over the dark space or the Daylight ground it is invisible; it goes away once the
   header has its own frosted bar (.scrolled). Other pages are untouched. About 96 px tall. */
:is(body[data-page="atlas"], body[data-page="home"], body[data-page="skills"], body[data-page="system"]) .nav::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 96px; z-index: -1; pointer-events: none; transition: opacity var(--t-med);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 92%, transparent) 0, color-mix(in srgb, var(--bg) 86%, transparent) 38%, color-mix(in srgb, var(--bg) 52%, transparent) 66%, color-mix(in srgb, var(--bg) 18%, transparent) 86%, transparent 100%);
}
:is(body[data-page="atlas"], body[data-page="home"], body[data-page="skills"], body[data-page="system"]) .nav.scrolled::before { opacity: 0; }

/* ---------- R11 Simple view (Oct 12, 2026): the header control, the phone menu row and the automatic notice ----------
   Same pill language as the theme and menu controls: a 40 px hairline pill with two 32 px segments, the current one solid ink.
   Shown on the pages that have a 3D scene. Phones (860 px and below) get the row in the Menu sheet, under Dark / Light. */
.v3d { display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: transparent; }
.v3d button { height: 32px; min-width: 38px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: none; color: var(--ink-2); font: 500 var(--fs-2)/1 var(--sans); letter-spacing: -.005em; cursor: pointer; white-space: nowrap; transition: background-color var(--t-fast) var(--ease), color var(--t-fast); }
.v3d button:hover { color: var(--ink); }
.v3d button[aria-pressed="true"] { background: var(--ink); color: var(--bg); cursor: default; }
.v3d button:focus-visible, .v3d-note-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:where(:root[data-theme="light"]) .v3d { background: color-mix(in srgb, var(--bg) 55%, transparent); }
@media (max-width: 1180px) { .v3d .v3d-x { display: none; } }
/* P14: the switch sits in the page. Home hosts it in the hero scene (a dark window in both themes); the other 3D pages float one at the top centre, under the header. Phones use the Menu row. */
.v3d { height: 48px; }
.v3d button { height: 40px; min-width: 44px; font-size: var(--fs-label); }
.v3d-float { position: absolute; z-index: 38; top: 78px; left: 50%; transform: translateX(-50%); padding: 3px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--elev-2); }
.v3d-float .v3d, [data-v3d-slot] .v3d { height: 48px; }
.v3d-float .v3d-x, [data-v3d-slot] .v3d-x { display: inline; }
[data-v3d-slot] .v3d { background: var(--zc-rgba-7-10-16-72); border-color: var(--zc-rgba-255-255-255-28); }
[data-v3d-slot] .v3d button { color: var(--zc-d3d9e4); }
[data-v3d-slot] .v3d button:hover { color: var(--zc-fff); }
[data-v3d-slot] .v3d button[aria-pressed="true"] { background: var(--zc-f2f4f8); color: var(--zc-070a10); }
@media (max-width: 860px) { .v3d-float { display: none; } }
.sh-v3d { margin-top: 8px; }

/* the notice: a glass card under the header control (top right), under the header on phones; never modal */
.v3d-note { position: fixed; z-index: 45; top: 78px; right: var(--gut); width: min(340px, calc(100vw - 24px)); padding: 16px 18px 14px; border-radius: var(--r-inner); border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 1px 0 var(--zc-rgba-255-255-255-06) inset, 0 24px 48px -24px var(--zc-rgba-0-0-0-7); opacity: 0; transform: translateY(-6px); transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
.v3d-note.on { opacity: 1; transform: none; }
:where(:root[data-theme="light"]) .v3d-note { box-shadow: 0 24px 48px -24px var(--zc-rgba-16-30-72-35); }
.v3d-note-k { margin: 0; font: 500 var(--fs-label)/1.3 var(--sans); color: var(--accent); }
.v3d-note-t { margin: 6px 0 0; font: 500 var(--fs-5)/1.25 var(--sans); letter-spacing: -.015em; color: var(--ink); }
.v3d-note-d { margin: 6px 0 0; font-size: var(--fs-3); line-height: 1.5; color: var(--ink-2); }
.v3d-note-a { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.v3d-note-b { min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: none; color: var(--ink); font: 500 var(--fs-3)/1 var(--sans); cursor: pointer; }
.v3d-note-b:hover { border-color: var(--ink-2); }
.v3d-note-b.pri { background: var(--ink); color: var(--bg); border-color: transparent; }
@media (max-width: 860px) { .v3d-note { top: 74px; left: 12px; right: 12px; width: auto; } .v3d-note-b { min-height: 44px; padding: 0 18px; } }
@media (prefers-reduced-motion: reduce) { .v3d-note { transition: none; transform: none; } .v3d button, .v3d-k, .v3d-k i { transition: none; } }

/* Simple view: the text that describes motion swaps for a short version (spans in the page: .m-3d is the 3D wording, .m-sv the Simple view one) */
.m-sv { display: none; }
.simple .m-3d { display: none; }
.simple .m-sv { display: inline; }

/* =====================================================================
   P13 phase 1 (Oct 12, 2026): D1 foundation on the shared chrome.
   - Star twinkle off everywhere (scene stars stay, still); no stars, orbit lines or telemetry labels behind the header panels, the phone menu or the footer.
   - Status pills (.badge: "Live", "New") and the telemetry text ("04 · mission logs", "07 · systems", "Comms · 34.05° N ...") are gone.
   - Panels and rows sit on --surface / --surface-2 so a card is visibly different from what it sits on, in both themes.
   - Shared components for the later phases: .chart-frame (head, plot, foot) next to .card, .btn, .chip in tokens.css.
   ===================================================================== */
.zs-space::after { animation: none; opacity: 0; }
.zs-tele { display: none; }
.badge, .badge.on { display: none !important; }
.act, .sh-pg, .sh-pc { background: var(--surface-2); }
.act { border-color: var(--line-2); }
.act.pri { background: var(--btn); color: var(--btn-ink); }

/* chart frame: one way to show every chart (finding on top, plot, source line underneath) */
.chart-frame { position: relative; overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); }
.chart-frame-head { display: grid; gap: var(--space-2); padding: var(--space-6) var(--space-6) var(--space-4); }
.chart-frame-head .finding { margin: 0; font: 500 var(--fs-h3)/1.3 var(--sans); letter-spacing: -.012em; max-width: 40ch; }
.chart-frame-head .q { margin: 0; color: var(--ink-2); font-size: var(--fs-card); max-width: 60ch; }
.chart-frame-plot { padding: var(--space-2) var(--space-6) var(--space-5); }
.chart-frame-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-6); border-top: 1px solid var(--line); background: var(--surface-2); font: 400 var(--fs-caption)/1.45 var(--mono); color: var(--muted); }
@media (max-width: 720px) { .chart-frame-head { padding: var(--space-5) var(--space-5) var(--space-3); } .chart-frame-plot { padding: var(--space-2) var(--space-5) var(--space-4); } .chart-frame-foot { padding: var(--space-3) var(--space-5); } }

/* ---------- W1 (Oct 29, 2026, owner-approved option A): header Resume + Contact, phone menu, footer contact strip ---------- */
.nav .cc-btn { height: 44px; padding: 0 18px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); }
.nav .cc-btn:hover { background: var(--surface-2); }
.brand .who { gap: 0; }   /* proof.css has a page-level .who grid with a 12px gap; it opened a gap in the header name on the For pages */
.nav .nav-cv { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; font-size: var(--fs-small); }
@media (max-width: 860px) {
  .nav .nav-cv { display: inline-flex; height: 38px; padding: 0 16px; font-size: var(--fs-3); }
  .nav .nav-search { display: none; }
}
@media (max-width: 600px) { .brand .who small { display: block; font-size: var(--fs-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
.brand .who .sub-s { display: none; }
@media (max-width: 600px) { .brand .who .sub-l { display: none; } .brand .who .sub-s { display: inline; } }   /* v19.29: the long tagline is cut off below 600 px */
.sh-big { list-style: none; margin: 0; padding: 0; }
.sh-big a { display: flex; justify-content: space-between; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); font: 500 var(--fs-7)/1.2 var(--sans); letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.sh-big a[aria-current] { color: var(--accent); }
.sh-big svg, .sh-row2 svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink); text-decoration: none; font: 500 var(--fs-3)/1 var(--sans); }
.sh-chips a[aria-current] { box-shadow: inset 0 0 0 1px var(--accent); }
.sh-row2 { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: var(--fs-4); }
.sh-row2 small { display: block; margin-top: 2px; font-size: var(--fs-2); color: var(--muted); }
.sh-th .sh-seg { margin: 0; grid-template-columns: auto auto; }
.sh-th .sh-seg button { height: 36px; padding: 0 14px; font-size: var(--fs-3); }
.sheet .sh-chips a, .sheet .w1-cgrid a:not(.pri) { background: var(--surface); }
.w1-cgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.w1-cgrid a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 14px; background: var(--surface-2); color: var(--ink); text-decoration: none; font: 500 var(--fs-3)/1.2 var(--sans); }
.w1-cgrid a.pri { background: var(--btn); color: var(--btn-ink); }
.w1-cgrid a.pri:hover { background: var(--btn-hover); }
.w1-cgrid svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sheet .w1-cgrid { margin-bottom: var(--space-4); }
.site-foot .sf-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); align-items: start; }
.w1-cstrip { padding: var(--space-5); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.w1-cstrip h2 { margin: 0; font: 500 var(--fs-6)/1.25 var(--sans); letter-spacing: -.015em; color: var(--ink); }
.w1-cstrip > p { margin: 6px 0 var(--space-4); font-size: var(--fs-3); line-height: 1.45; color: var(--ink-2); }
.w1-cstrip .sf-mail { margin: var(--space-3) 0 0; }
.w1-cstrip .sf-mail a { color: var(--accent); text-decoration: none; }
.sf-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); }
@media (max-width: 860px) {
  .site-foot .sf-grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .sf-cols { grid-template-columns: 1fr 1fr; }
}

/* zacharybhenley.com v16: shared mission kit (HUD vocabulary from skills/ and home/).
   Load after tokens.css and chrome.css. Every class starts with m-. Docs and examples: DESIGN_LANGUAGE.md, "Shared kit".
   Demo of every piece in both themes: shared/kit.html. */

/* the page accent captured at the root, so highlights keep the edition colour inside a .m-scene */
:root { --m-hl: var(--accent); }

/* .m-scene: a dark viewport (space, a canvas) that stays dark in both themes. Mirrors the dark values in tokens.css */
.m-scene {
  --bg: var(--zc-05070c);
  --ink: var(--zc-eef1f6); --ink-2: var(--zc-bfc6d2); --muted: var(--zc-969fb0);
  --line: var(--zc-rgba-255-255-255-085); --line-2: var(--zc-rgba-255-255-255-16);
  --surface-glass: var(--zc-rgba-13-17-26-62); --glass-hi: var(--zc-rgba-255-255-255-07); --accent: var(--zc-9fb7ff); --on-accent: var(--zc-05070c); --warm: var(--zc-e9b98c);
  color-scheme: dark; color: var(--ink); --m-hl: var(--zc-9fb7ff);
}
/* K1: the dark elevation, band and card tokens travel with the scene too */
.m-scene { --hi: var(--zc-rgba-255-255-255-06); --elev-1: 0 1px 0 var(--zc-rgba-255-255-255-06) inset, 0 18px 40px -26px var(--zc-rgba-0-0-0-7); --elev-2: 0 1px 0 var(--zc-rgba-255-255-255-08) inset, 0 2px 8px var(--zc-rgba-0-0-0-3), 0 30px 60px -30px var(--zc-rgba-0-0-0-8); --band-sky: var(--zc-rgba-120-150-240-055); --band-sand: var(--zc-rgba-233-185-140-04); --band-lav: var(--zc-rgba-180-150-255-05); --s2: var(--zc-4b5568);
  /* P13: the foundation tokens travel with the scene too, so the shared buttons, chips and cards read correctly on it in both themes */
  --surface: var(--zc-121822); --surface-2: var(--zc-1a2130); --shadow: none; --btn: var(--zc-f2f4f8); --btn-ink: var(--zc-070a10); --btn-hover: var(--zc-ffffff); --btn-press: var(--zc-d9dee7); }
/* highlights inside a scene use the dark edition accents (tokens.css) in both themes, so they stay legible on the dark viewport */
:root[data-ed="ecom"] .m-scene { --m-hl: var(--zc-e7c58f); } :root[data-ed="data"] .m-scene { --m-hl: var(--zc-82d8c4); } :root[data-ed="ops"] .m-scene { --m-hl: var(--zc-c4a8ff); }

/* ---------- eyebrow chip: STAGE 1 · FOUNDATION ---------- */
.m-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; font: 500 var(--fs-label)/1.3 var(--sans); color: var(--accent); }
.m-eyebrow > span { color: var(--ink); }   /* P13: plain label, no pill (the status pills went) */
.m-eyebrow > span:empty { display: none; }

/* ---------- stage chips: number, label, check + COMPLETE ---------- */
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.m-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 5px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 86%, transparent); box-shadow: 0 1px 0 var(--hi, transparent) inset; font-weight: 500; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--ink-2); cursor: pointer; font-size: var(--fs-2); transition: border-color var(--t-med), color var(--t-med), background-color var(--t-med); }
.m-chip:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.m-chip-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); font: 500 var(--fs-label)/1.3 var(--sans); transition: all var(--t-med); }
.m-chip-c { display: none; font: 500 var(--fs-label)/1.3 var(--sans); color: var(--accent); }
.m-chip[data-state="on"] { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.m-chip[data-state="on"] .m-chip-n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.m-chip[data-state="done"] { color: var(--ink); }
.m-chip[data-state="done"] .m-chip-n { border-color: var(--accent); color: var(--accent); font-size: 0; }
.m-chip[data-state="done"] .m-chip-n::before { content: ""; width: 8px; height: 4px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-1px) rotate(-45deg); }
.m-chip[data-state="done"] .m-chip-c { display: inline; }
.m-chip:focus-visible { outline-color: var(--accent); }

/* ---------- mission-event rail: dots that light in turn (horizontal; .m-rail--v for vertical) ---------- */
.m-rail { position: relative; display: flex; justify-content: space-between; margin: 0; padding: 14px 0 0; list-style: none; }
.m-rail::before { content: ""; position: absolute; left: 4px; right: 4px; top: 3px; height: 1px; background: var(--line-2); }
.m-rail > li { position: relative; flex: 1 1 0; min-width: 0; padding-right: 6px; font: 500 var(--fs-label)/1.3 var(--sans); color: var(--muted); transition: color var(--t-med); }
.m-rail > li::before { content: ""; position: absolute; left: 0; top: -15px; width: 7px; height: 7px; border-radius: 50%; background: var(--surface); border: 1px solid color-mix(in srgb, var(--muted) 85%, transparent); transition: all var(--t-med); }
.m-rail > li.done { color: var(--ink-2); }
.m-rail > li.done::before { background: var(--ink-2); border-color: var(--ink-2); }
.m-rail > li.on { color: var(--accent); }
.m-rail > li.on::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.m-rail button { all: unset; cursor: pointer; display: block; border-radius: 4px; }
.m-rail button:hover { color: var(--ink); }
.m-rail button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.m-rail--v { flex-direction: column; justify-content: flex-start; gap: 18px; padding: 2px 0 2px 20px; }
.m-rail--v::before { left: 3px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
.m-rail--v > li { flex: none; padding: 0; font-size: var(--fs-2); }
.m-rail--v > li::before { left: -20px; top: 2px; }

/* ---------- real-unit ruler: data-dir="v" (needs a height) or "h" (needs a width); built by ruler() ---------- */
.m-ruler { position: relative; --m: 0; pointer-events: none; }
.m-ruler-cap { position: absolute; left: 0; top: -22px; margin: 0; font: 500 var(--fs-label)/1.3 var(--sans); color: var(--muted); white-space: nowrap; }
.m-ruler-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 14%, transparent); overflow: hidden; }
.m-ruler-fill { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--m) * 100%); background: linear-gradient(0deg, color-mix(in srgb, var(--warm) 90%, transparent), var(--accent)); }
.m-ruler-t, .m-ruler-l, .m-ruler-m { position: absolute; left: 0; top: calc((1 - var(--k, var(--m))) * 100%); transform: translateY(-50%); white-space: nowrap; }
.m-ruler-t { display: flex; align-items: baseline; gap: 6px; padding-left: 13px; font: 400 var(--fs-2)/1 var(--mono); color: var(--muted); }
.m-ruler-t::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 1px; background: var(--muted); }
.m-ruler-t b { font-weight: 500; color: var(--ink-2); }
.m-ruler-t span { font: 500 var(--fs-label)/1 var(--sans); }
.m-ruler-t.strong b, .m-ruler-t.strong span { color: var(--accent); }
.m-ruler-t.strong::before { width: 12px; background: var(--accent); }
.m-ruler-l { padding-left: 14px; font: 500 var(--fs-label)/1.3 var(--sans); color: color-mix(in srgb, var(--ink-2) 80%, transparent); }
.m-ruler-m { top: calc((1 - var(--m)) * 100%); left: -5px; display: flex; align-items: center; }
.m-ruler-m i { width: 10px; height: 10px; margin-left: 1px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 14px color-mix(in srgb, var(--accent) 70%, transparent); }
.m-ruler[data-dir="h"] { height: 46px; }
.m-ruler[data-dir="h"] .m-ruler-cap { top: -30px; }
.m-ruler[data-dir="h"] .m-ruler-bar { top: 10px; bottom: auto; left: 0; right: 0; width: auto; height: 2px; }
.m-ruler[data-dir="h"] .m-ruler-fill { top: 0; bottom: 0; right: auto; height: auto; width: calc(var(--m) * 100%); background: linear-gradient(90deg, color-mix(in srgb, var(--warm) 90%, transparent), var(--accent)); }
.m-ruler[data-dir="h"] .m-ruler-t, .m-ruler[data-dir="h"] .m-ruler-l, .m-ruler[data-dir="h"] .m-ruler-m { top: 10px; left: calc(var(--k, var(--m)) * 100%); transform: translateX(-50%); }
.m-ruler[data-dir="h"] .m-ruler-t { flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 0; }
.m-ruler[data-dir="h"] .m-ruler-t::before { left: 50%; top: 0; width: 1px; height: 6px; }
.m-ruler[data-dir="h"] .m-ruler-t.strong::before { height: 10px; width: 1px; }
.m-ruler[data-dir="h"] .m-ruler-l { top: -16px; padding: 0; }
.m-ruler[data-dir="h"] .m-ruler-m { left: calc(var(--m) * 100%); top: 11px; transform: translate(-50%, -50%); }
.m-ruler[data-dir="h"] .m-ruler-m i { margin: 0; }

/* ---------- corner readout ---------- */
.m-readout { margin: 0; display: grid; justify-items: end; gap: 6px; text-align: right; }
.m-readout-v { font: 500 var(--fs-6)/1 var(--mono); letter-spacing: .02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.m-readout-s { font: 500 var(--fs-2)/1 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.m-readout-k { font: 500 var(--fs-label)/1.3 var(--sans); color: var(--accent); }
.m-corner { position: absolute; right: 26px; bottom: 20px; pointer-events: none; }

/* ---------- glass callout + SVG leader that draws in ---------- */
/* Legibility (G2): a mostly solid glass backing, so text passes AA over the brightest scene parts (exhaust, lit Earth, dawn sky).
   Hover or keyboard focus enlarges a card (mission.js lift(): scale 1.07, expo-out 250 ms) and lifts it above its neighbours;
   with callouts() or a page that calls highlight(), the leader line and anchor dot brighten too. */
.m-callout { position: relative; padding: 13px 16px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--ink) 24%, transparent); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px) saturate(1.25); -webkit-backdrop-filter: blur(14px) saturate(1.25); box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 8%, transparent) inset, 0 2px 8px var(--zc-rgba-0-0-0-3), 0 22px 44px -22px var(--zc-rgba-0-0-0-75); color: var(--ink); z-index: 1; }
:root[data-theme="light"] .m-callout { background: color-mix(in srgb, var(--surface) 95%, transparent); box-shadow: 0 1px 0 var(--zc-rgba-255-255-255-9) inset, 0 2px 8px var(--zc-rgba-15-20-30-08), var(--shadow); }
:root[data-theme="light"] .m-scene .m-callout { background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 8%, transparent) inset, 0 2px 8px var(--zc-rgba-0-0-0-3), 0 22px 44px -22px var(--zc-rgba-0-0-0-75); }
.m-callout, .m-lift { transition: box-shadow var(--t-fast) var(--ease), border-color var(--t-med); }
.m-lifted { z-index: 20; }
@media (hover: hover) and (pointer: fine) {
  .m-callout:not(.m-still):not(.part > .m-callout):hover, .m-lift:hover { border-color: color-mix(in srgb, var(--m-hl) 70%, transparent); box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 10%, transparent) inset, 0 4px 14px var(--zc-rgba-0-0-0-4), 0 30px 54px -22px var(--zc-rgba-0-0-0-85x); }
}
.m-callout .m-callout-k { margin: 0; font: 500 var(--fs-label)/1.3 var(--sans); color: var(--muted); }
.m-callout .m-callout-t { margin: 5px 0 0; font-size: var(--fs-5); font-weight: 500; line-height: 1.28; letter-spacing: -.018em; }
.m-callout .m-callout-tl { margin: 5px 0 0; font: 400 var(--fs-2)/1.45 var(--mono); color: var(--ink-2); }
.m-callout .m-callout-pf { margin: 7px 0 0; font-size: var(--fs-3); line-height: 1.5; color: var(--ink-2); font-weight: 400; }
.m-callout .m-callout-pf b { font-weight: 600; color: var(--ink); }
.m-callout:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* compact: stage cards that sit at fixed offsets from their neighbours (the case-page stages, narrow columns) keep tighter type so a taller card never reaches the next one */
.m-callout--compact, .cs-cards .m-callout { padding: 11px 14px 12px; }
:is(.m-callout--compact, .cs-cards .m-callout) .m-callout-k { font-size: var(--fs-2); }
:is(.m-callout--compact, .cs-cards .m-callout) .m-callout-t { font-size: var(--fs-5); margin-top: 4px; }
:is(.m-callout--compact, .cs-cards .m-callout) .m-callout-tl { font-size: var(--fs-2); margin-top: 4px; }
:is(.m-callout--compact, .cs-cards .m-callout) .m-callout-pf { font-size: var(--fs-3); margin-top: 5px; line-height: 1.45; }
.m-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.m-leaders path { fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 1; opacity: .7; transition: stroke-dashoffset var(--t-slow) var(--ease); }
.m-leaders circle { fill: var(--ink); }
.m-leaders circle.rg { fill: none; stroke: var(--ink-2); stroke-width: .8; opacity: .5; }
.m-leaders g.hl path { stroke: var(--m-hl); opacity: 1; stroke-width: 1.8; }
.m-leaders g.hl circle { fill: var(--m-hl); r: 3.4px; }
.m-leaders g.hl circle.rg { fill: none; stroke: var(--m-hl); stroke-width: 1.2; opacity: 1; r: 8px; }
.m-leaders circle { transition: r var(--t-fast) var(--ease); }
.m-leaders.live path { transition: none; }      /* leaders driven every frame (scroll or 3D) */

/* ---------- section backdrops: star dust and fine grid (CSS only) ---------- */
.m-dust, .m-grid { position: relative; isolation: isolate; }
.m-dust::before, .m-dust::after, .m-grid::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- pinned scroll: pin() adds .m-pinned on wide screens with motion allowed ---------- */
.m-pinned { position: relative; }
.m-pinned > .m-pin-stage { position: sticky; top: var(--m-pin-top, 74px); height: calc(100vh - var(--m-pin-top, 74px) - 14px); }

/* ---------- closing contact block ---------- */
.m-contact { position: relative; isolation: isolate; padding: var(--sec-y) var(--gut); border-top: 1px solid var(--line); overflow: hidden; }
/* K1: the closing room. A soft accent dawn low on the right and the star-chart linework, so the page ends on a lit horizon */
:root[data-theme="light"] .m-contact { background: linear-gradient(180deg, transparent, var(--band-sky) 90px); }
.m-contact h2:has(+ .m-contact-avail) { margin-bottom: var(--sp2); }
.m-contact h2 { margin: 0 0 var(--sp4); max-width: 20ch; font: 400 var(--fs-h2)/1.06 var(--sans); letter-spacing: -.04em; text-wrap: balance; }
.m-contact-avail { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--sp4); max-width: 56ch; font-size: var(--fs-4); line-height: 1.55; color: var(--ink-2); font-weight: 400; }
.m-live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); flex: none; }
.m-contact-ctas { display: flex; flex-wrap: wrap; gap: var(--sp1); }

@media (prefers-reduced-motion: reduce) {
  .m-leaders path { transition: none; }
}

/* ---------- scroll cue (G3): a quiet invitation to scroll, bottom centre of the first screen ----------
   Built by chrome.js on every page (label: <body data-cue="Scroll to explore">, target: data-cue-to="#id", opt out: data-no-cue).
   A link to the first section below the fold; fades after the first scroll and returns at the top.
   chrome.js hides it whenever text, a control or a graphic sits under it at the top of the page, so it never covers content
   (art inside a .m-scene or [data-cue-art] does not count; over a scene the cue takes the scene colours). */
.m-scrollcue { position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 4px 14px 0; border-radius: 10px; text-decoration: none; font: 500 var(--fs-label)/1.3 var(--sans); white-space: nowrap; color: var(--ink-2); opacity: 1; transition: opacity var(--t-slow) var(--ease), color var(--t-med); }
.m-scrollcue[data-hide] { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--t-med) var(--ease), visibility 0s var(--t-med); }
.m-scrollcue:hover { color: var(--ink); }
.m-scrollcue:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.m-scrollcue-l { position: relative; display: block; width: 1px; height: 40px; overflow: hidden; background: color-mix(in srgb, var(--ink) 24%, transparent); }
.m-cue-target:focus { outline: none; }

/* =====================================================================
   K1 rooms (Oct 7): tools that give each section its own treatment. All tokens, both themes, reduced motion honoured.
   Docs: DESIGN_LANGUAGE.md "Rooms (K1)". Never the same treatment twice in a row on a page.
   ===================================================================== */

/* ---------- dark window: a scene that stays deep navy in both themes, framed in light glass in Daylight ---------- */
.m-window { border-radius: var(--r-card); overflow: hidden; isolation: isolate; background: radial-gradient(120% 90% at 60% 0%, var(--zc-121c38) 0%, var(--zc-070b16) 60%, var(--zc-05070c) 100%); }
:root[data-theme="light"] .m-window { box-shadow: var(--shadow); }
:root[data-theme="dark"] .m-window { box-shadow: 0 0 0 1px var(--line), inset 0 1px 0 var(--zc-rgba-255-255-255-06), 0 40px 80px -40px var(--zc-rgba-0-0-0-9); }

/* ---------- full-bleed tinted band: alternate per section (sky, sand, lavender) ---------- */
.m-band { position: relative; isolation: isolate; }
.m-band > .m-band-bg, .m-band::after { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(180deg, transparent, var(--band, var(--band-sky)) 72px, var(--band, var(--band-sky)) calc(100% - 72px), transparent); }
.m-band--sky { --band: var(--band-sky); } .m-band--sand { --band: var(--band-sand); } .m-band--lav { --band: var(--band-lav); }
.m-band--edge::after { background: var(--band, var(--band-sky)); border-block: 1px solid var(--line); }

/* schematic backdrops beyond m-dust and m-grid (use the ::before layer, so pair with a band, not with bd-* or m-grid) */
.m-survey, .m-contour, .m-chart, .m-rings { position: relative; isolation: isolate; }
.m-survey::before, .m-contour::before, .m-chart::before, .m-rings::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* survey ticks: a ruler edge along the top and fine verticals every 24 px, majors every 120 px */
/* star chart: a constellation of dots joined by hairlines */

/* ---------- oversized ghost index number or coordinate as a background mark: <section class="m-ghost" data-ghost="02"> ---------- */
.m-ghost { position: relative; isolation: isolate; }

/* ---------- ruler divider between sections (replaces an empty void): <div class="m-divider" aria-hidden="true" data-l="02 · Work"></div> ---------- */

/* ---------- pull figure: a real number already on the page, set large as the section's anchor ---------- */
.m-pull { margin: 0; display: grid; gap: 8px; }
.m-pull-v { font: 400 clamp(56px, 7.4vw, 116px)/.9 var(--sans); letter-spacing: -.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.m-pull-v small { font-size: clamp(var(--fs-7), 1.8781vw + 16.9571px, var(--fs-10)); letter-spacing: -.02em; color: var(--muted); margin-left: .08em; }
.m-pull-k { font: 500 var(--fs-label)/1.4 var(--sans); color: var(--muted); }
.m-pull-k b { font-weight: 500; color: var(--accent); }

/* ---------- lead card: one card per group breaks the grid ---------- */
.m-lead { position: relative; }
.m-lead.m-scene { background: radial-gradient(120% 120% at 100% 0%, var(--zc-172552) 0%, var(--zc-0a1024) 55%, var(--zc-070a14) 100%) !important; border-color: var(--zc-rgba-159-183-255-22x) !important; }
:root[data-theme="light"] .m-lead.m-scene { box-shadow: var(--shadow) !important; }

/* ---------- instrument panel for tables: sticky header, zebra tint, inline mini bars, hover highlight ---------- */
.m-panel { border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--elev-1); overflow: clip; }
.m-panel table { width: 100%; border-collapse: separate; border-spacing: 0; }
.m-panel thead th { position: sticky; top: 66px; z-index: 2; background: color-mix(in srgb, var(--surface-2) 88%, var(--surface)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
:root[data-theme="dark"] .m-panel thead th { background: color-mix(in srgb, var(--surface-2) 94%, transparent); }
.m-panel tbody tr:nth-child(even) > * { background: color-mix(in srgb, var(--accent) 3.5%, transparent); }
.m-panel tbody tr { transition: background-color var(--t-fast); }
.m-panel tbody tr:hover > * { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.m-bar { display: block; height: 4px; margin-top: 5px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 9%, transparent); overflow: hidden; }
.m-bar > i { display: block; height: 100%; width: calc(var(--v, 0) * 100%); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, transparent), var(--accent)); transform-origin: 0 50%; transition: transform var(--t-slow) var(--ease); }
.m-bar.neg > i { background: linear-gradient(90deg, color-mix(in srgb, var(--warm) 55%, transparent), var(--warm)); }
@media (max-width: 860px) { .m-panel thead th { top: 58px; } }

/* ---------- chips and tags over scenes or images: near-opaque glass, 1 px highlight ---------- */
.m-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-pill); font: 500 var(--fs-label)/1.1 var(--mono); letter-spacing: .04em; color: var(--ink); background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--line-2); box-shadow: 0 1px 0 var(--hi) inset; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* .m-sheen: kept as a hook (position only). The hover glow that followed the cursor was removed (owner, Oct 8). */
.m-sheen { position: relative; }

/* ---------- staggered reveals per section type: chrome.js sets data-reveal + --rd on the children of [data-stagger] ---------- */
@media (max-width: 600px) { .m-ruler-cap { letter-spacing: 0; max-width: calc(100vw - 2 * var(--gut)); overflow: hidden; text-overflow: ellipsis; } }   /* K1: the 12 px caption must not push a phone page wider */

/* =====================================================================
   K3b (Oct 7): Daylight, second pass. Light theme only (dark unchanged), tokens from tokens.css (--glow, --glow-s, --rule-a).
   ===================================================================== */
/* bands (owner, Oct 8): one flat neutral fill per band, soft top and bottom edges, no hue drift */
:root[data-theme="light"] :is(.m-band--sky, .m-band--sand, .m-band--lav):not(.m-band--edge)::after, :root[data-theme="light"] :is(.m-band--sky, .m-band--sand, .m-band--lav):not(.m-band--edge) > .m-band-bg {
  background: var(--band, var(--band-sky));
  -webkit-mask: linear-gradient(180deg, transparent, var(--zc-000) 72px, var(--zc-000) calc(100% - 72px), transparent); mask: linear-gradient(180deg, transparent, var(--zc-000) 72px, var(--zc-000) calc(100% - 72px), transparent); }
/* lead cards and dark windows: deeper, layered daylight shadows (contact, key light, long soft fall-off, a cool blue bloom) */
:root[data-theme="light"] .m-lead.m-scene { box-shadow: var(--shadow) !important; }
:root[data-theme="light"] .m-window { box-shadow: var(--shadow); }
/* active chips: a crisp accent ring and glow */
/* rulers, dividers, survey ticks, rails and ghost numbers in the accent at low opacity */
:root[data-theme="light"] .m-rail:not(.m-scene *)::before { background: var(--rule-a); }
:root[data-theme="light"] .m-ruler:not(.m-scene *) .m-ruler-bar { background: color-mix(in srgb, var(--accent) 20%, transparent); }
:root[data-theme="light"] .m-ruler:not(.m-scene *) .m-ruler-t::before { background: color-mix(in srgb, var(--accent) 55%, var(--muted)); }
/* the closing room picks up the stronger lavender too */
:root[data-theme="light"] .m-contact { background: linear-gradient(180deg, transparent, var(--band-sky) 110px); }
/* a labelled divider over the aurora or a band: the label sits on a small glass pill instead of a flat page-colour box */

/* =====================================================================
   P13 phase 1 (Oct 12, 2026): decoration retired, labels plain, one chip.
   Retired as decoration behind text: star dust and its twinkle, grid, survey ticks, contour, star chart and rings backdrops, ghost numerals,
   ruler dividers, the closing room's glow and constellation, the cue's travelling line, bar draw-ins and the staggered reveal variants.
   The class names stay (no-ops) so no page markup has to change; the real-unit ruler (.m-ruler) is data and stays.
   ===================================================================== */
.m-dust, .m-grid, .m-survey, .m-contour, .m-chart, .m-rings, .m-ghost, .m-contact { position: relative; isolation: isolate; }
.m-ghost > .m-ghost-n, .m-divider { display: none; }
.m-scrollcue-l::after { display: none; }       /* a still line, no travelling light */
.m-ruler-t span { letter-spacing: 0; text-transform: none; }
.m-bar > i { transform: none; transition: none; }
@media (max-width: 760px) { .m-scrollcue { bottom: max(10px, env(safe-area-inset-bottom)); gap: 6px; } .m-scrollcue-l { height: 32px; } }

/* one chip: the stage chip and the tag take the shared chip look (14 px sans, surface-2 fill, solid border) */
.m-chip { min-height: 32px; height: auto; background: var(--surface-2); border-color: var(--line); font-size: var(--fs-label); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.m-chip:hover { border-color: var(--line-2); }
.m-chip[data-state="on"] { border-color: var(--accent); }
.m-tag { font: 500 var(--fs-label)/1.2 var(--sans); letter-spacing: 0; padding: 6px 12px; background: var(--surface-2); border-color: var(--line); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.m-panel { border-radius: var(--r-card); }
.bk-p3d { position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bk-p3d[hidden] { display: none; }
.bk-p3d .p3d-b { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: none; color: var(--ink-2); font: 500 var(--fs-3)/1 var(--sans); cursor: pointer; }
.bk-p3d .p3d-b[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.bk-p3d .p3d-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bk-p3d .p3d-play { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.bk-p3d .p3d-still { width: 14px; height: 11px; border: 1.6px solid currentColor; border-radius: 3px; }
#atlas .bk-p3d { top: 160px; }
.sx-stage .bk-p3d { top: 140px; }

/* page primitives shared by designer B pages (candidates for shared/chrome.css) */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; }
.sec { position: relative; padding: var(--sec-y) var(--gut); border-top: 0; }   /* K1: bands separate the rooms */
.ctas { display: flex; flex-wrap: wrap; gap: var(--sp1); }
.mono { font-family: var(--mono); }
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); margin-right: 2px; }
.badge { padding: 5px 9px; border-radius: var(--r-pill); border: 1px solid var(--line-2); letter-spacing: 0; font: 500 var(--fs-label)/1.3 var(--sans); }
.badge.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

/* Now page: the Horizon sky as the hero, in the Global-flows language */
.hero { position: relative; min-height: max(640px, calc(100svh - 120px)); overflow: hidden; color: var(--h-ink, var(--zc-eef1f6)); --h-ink: var(--zc-eef1f6); --h-ink2: var(--zc-rgba-238-241-246-78); --h-line: var(--zc-rgba-255-255-255-2); --h-glass: var(--zc-rgba-10-14-24-34); view-transition-name: now-sky; background: var(--zc-070b16); }
.hero[data-ink="dark"] { --h-ink: var(--zc-0c0e12); --h-ink2: var(--zc-rgba-12-14-18-74); --h-line: var(--zc-rgba-12-14-18-2); --h-glass: var(--zc-rgba-255-255-255-34); }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero.no-gl .sky { display: none; }
.path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; -webkit-mask: radial-gradient(var(--mw, 30%) var(--mh, 30%) at var(--mcx, 25%) var(--mcy, 45%), transparent 62%, var(--zc-000) 100%); mask: radial-gradient(var(--mw, 30%) var(--mh, 30%) at var(--mcx, 25%) var(--mcy, 45%), transparent 62%, var(--zc-000) 100%); }
.path .arc { fill: none; stroke: var(--h-ink); stroke-width: 1; stroke-dasharray: 1.5 5; stroke-linecap: round; opacity: .42; }
.path .arc-lit { fill: none; stroke: var(--h-ink); stroke-width: 1.2; opacity: .7; stroke-linecap: round; }
.path .tk { stroke: var(--h-ink); opacity: .45; }
.path text { font: 500 var(--fs-label)/1.3 var(--sans); fill: var(--h-ink2); letter-spacing: 0; }
.path .sunring { fill: none; stroke: var(--h-ink); stroke-width: 1; opacity: .75; }
.path .sunlab { font: 500 var(--fs-label) var(--sans); fill: var(--h-ink); }
.hero-scrim { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(52% 60% at 18% 46%, var(--h-glass), transparent 70%); transition: background var(--t-slow); }
:root[data-theme="dark"] .hero::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; pointer-events: none; background: linear-gradient(transparent, var(--bg)); }

.hero-in { position: relative; z-index: 2; min-height: inherit; max-width: var(--maxw); margin: 0 auto; padding: 120px var(--gut) 28px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: 1fr auto; gap: 24px 48px; }
.h-copy { align-self: start; padding-top: 4vh; max-width: 660px; }
.h-k { display: flex; gap: 10px; align-items: center; margin: 0 0 22px; font: 500 var(--fs-label)/1.3 var(--sans); letter-spacing: 0; color: var(--h-ink2); }
.h-k span:first-child { color: var(--h-ink); padding: 5px 9px; border-radius: 999px; border: 1px solid var(--h-line); }
.h-k i { font-style: normal; }
.h-k .mono { font-family: var(--sans); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.h-title { margin: 0; font: 400 clamp(52px, 7.4vw, 112px)/.98 var(--sans); letter-spacing: -.05em; text-wrap: balance; color: var(--h-ink); transition: color var(--t-slow); }
.h-title .w { display: inline-block; }
.h-live { margin: 22px 0 0; max-width: 46ch; font-size: var(--fs-body); line-height: 1.55; color: var(--h-ink2); font-weight: 400; transition: color var(--t-slow); min-height: 3.1em; }
.h-live b { font-weight: 500; color: var(--h-ink); }
.h-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 18px 0 0; font-size: var(--fs-caption); color: var(--h-ink2); }
.h-status i { font-style: normal; opacity: .7; }
.hero .ctas { margin-top: 26px; }
.hero .btn.primary { background: var(--h-ink); color: var(--h-bg, var(--zc-05070c)); }
.hero[data-ink="dark"] .btn.primary { --h-bg: var(--zc-f3f3f0); }
.hero .btn.ghost { border-color: var(--h-line); color: var(--h-ink); background: var(--h-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* light card */
.card { align-self: start; margin-top: 0; padding: 16px 18px 10px; border-radius: 22px; color: var(--ink); }
.c-top { display: flex; justify-content: space-between; align-items: flex-start; }
.c-k { margin: 0; font: 500 var(--fs-label)/1.3 var(--sans); letter-spacing: 0; color: var(--muted); }
.c-city { margin: 6px 0 0; font-size: var(--fs-small); font-weight: 500; letter-spacing: -.01em; }
.c-ph { padding: 4px 9px; border-radius: 999px; font: 500 var(--fs-label)/1.2 var(--sans); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); white-space: nowrap; transition: color var(--t-slow), border-color var(--t-slow); }
.c-now { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 0; }
.c-now b { font: 300 var(--fs-10)/1 var(--sans); letter-spacing: -.06em; }
.c-now small { font: 400 var(--fs-label)/1 var(--sans); color: var(--muted); }
.c-elev { margin: 8px 0 0; font: 400 var(--fs-label)/1.3 var(--sans); color: var(--muted); }
.c-elev b { font-weight: 500; color: var(--ink); }
.c-list { margin: 10px 0 0; padding: 0; display: grid; }
.c-list div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.c-list dt { font-size: var(--fs-caption); color: var(--ink-2); }
.c-list dd { margin: 0; font: 400 var(--fs-2)/1.3 var(--sans); font-variant-numeric: tabular-nums; text-align: right; }
.c-list div.on dt { color: var(--accent); }
.c-list div.on dd { color: var(--ink); }

/* dock: jumps + scrubber, on the near ridge */
.dock { grid-column: 1 / -1; align-self: end; display: grid; gap: 12px; color: var(--zc-eef1f6); }
.jumps { display: flex; flex-wrap: wrap; gap: 4px; }
.jumps button { border: 1px solid var(--zc-rgba-255-255-255-16); background: var(--zc-rgba-8-11-20-32); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 7px 12px; border-radius: 999px; font: 500 var(--fs-label)/1.3 var(--sans); letter-spacing: 0; color: var(--zc-rgba-238-241-246-84); cursor: pointer; transition: border-color var(--t-med), color var(--t-med), background-color var(--t-med); }
.jumps button:hover { border-color: var(--zc-rgba-255-255-255-4); color: var(--zc-fff); }
.jumps button[aria-pressed="true"] { background: var(--zc-rgba-238-241-246-92); color: var(--zc-05070c); border-color: transparent; }
.scrub { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; }
.track { position: relative; height: 84px; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.strip { position: absolute; left: 0; right: 0; bottom: 18px; height: 8px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--zc-rgba-255-255-255-14), 0 0 24px -6px var(--zc-rgba-159-183-255-35); }
.curve { position: absolute; left: 0; right: 0; top: 0; bottom: 30px; width: 100%; height: calc(100% - 30px); overflow: visible; }
.curve .hz { stroke: var(--zc-rgba-255-255-255-18); stroke-dasharray: 2 4; }
.curve .el { fill: none; stroke: var(--zc-rgba-238-241-246-85); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.curve .elf { fill: var(--zc-rgba-238-241-246-1); }
.ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; font: 400 var(--fs-2)/1 var(--sans); letter-spacing: 0; color: var(--zc-rgba-238-241-246-6); }
.ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.ticks span:first-child { transform: none; }
.ticks span:last-child { transform: translateX(-100%); }
.ticks span.ev { color: var(--zc-rgba-238-241-246-92); }
.knob { position: absolute; top: 0; bottom: 14px; width: 0; transform: translateX(var(--x, 0)); outline: none; }
.knob::before { content: ""; position: absolute; left: -.5px; top: 4px; bottom: 0; width: 1px; background: var(--zc-rgba-255-255-255-55); }
.knob i { position: absolute; left: -8px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; background: var(--zc-fff7e6); box-shadow: 0 0 0 4px var(--zc-rgba-255-247-230-18), 0 0 18px 4px var(--zc-rgba-255-220-170-35); }
.knob:focus-visible i { outline: 2px solid var(--zc-9fb7ff); outline-offset: 4px; }
.live-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--zc-rgba-255-255-255-2); background: var(--zc-rgba-8-11-20-32); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 500 var(--fs-label)/1 var(--sans); color: var(--zc-rgba-238-241-246-84); cursor: pointer; }
.live-btn span { width: 6px; height: 6px; border-radius: 50%; background: var(--zc-rgba-238-241-246-5); }
.live-btn[aria-pressed="true"] { color: var(--zc-fff); border-color: var(--zc-rgba-92-207-149-55); }
.live-btn[aria-pressed="true"] span { background: var(--zc-5ccf95); box-shadow: 0 0 0 3px var(--zc-rgba-92-207-149-2); }

/* sections */
.doing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.d-card { display: flex; flex-direction: column; padding: 24px; border-radius: 22px; transition: border-color var(--t-med), transform var(--t-slow) var(--ease); }
.d-card:hover { border-color: var(--line-2); }
.d-meta { display: flex; justify-content: space-between; margin: 0 0 40px; font: 500 var(--fs-label)/1 var(--sans); color: var(--muted); }
.d-card h3 { margin: 0; font-size: var(--fs-7); font-weight: 500; letter-spacing: -.03em; }
.d-card p { margin: 12px 0 24px; font-size: var(--fs-small); line-height: 1.62; color: var(--ink-2); font-weight: 400; }
.d-link { margin-top: auto; display: inline-flex; gap: 8px; font-size: var(--fs-label); font-weight: 500; text-decoration: none; }
.d-link .arr { transition: transform var(--t-med) var(--ease); }
.d-link:hover .arr { transform: translateX(3px); }
.learn-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.learn-list li { padding: 22px 24px 8px 0; margin-right: 24px; border-right: 1px solid var(--line); }
.learn-list li:last-child { border-right: 0; margin-right: 0; }
.ll-k { display: block; font: 500 var(--fs-label)/1.3 var(--sans); letter-spacing: 0; color: var(--accent); }
.learn-list p { margin: 14px 0 0; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); font-weight: 400; }
.look { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 22px; }
.look div { padding: 22px 24px; border-left: 1px solid var(--line); }
.look div:first-child { border-left: 0; }
.look dt { font: 500 var(--fs-label)/1.3 var(--sans); letter-spacing: 0; color: var(--muted); }
.look dd { margin: 12px 0 0; font-size: var(--fs-card); line-height: 1.45; letter-spacing: -.01em; }
.sec-head .m-eyebrow { margin-bottom: var(--sp2); }
.status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp2) var(--sp4); margin: 0 0 var(--sp8); padding: 20px 26px; border-radius: var(--r-card); }
.st-t { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: var(--fs-card); line-height: 1.5; color: var(--ink); }

/* G3 peek: the hero stops 120px short of the screen so the scroll cue and the top of the next section show */
@media (min-width: 761px) { #doing { padding-top: 12px; } }
@media (min-width: 761px) and (max-height: 860px) { .hero-in { padding-top: 100px; } .h-copy { padding-top: 0; } #doing { padding-top: 56px; } }
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) 290px; }
  .doing { grid-template-columns: 1fr; }
  .learn-list { grid-template-columns: 1fr 1fr; }
  .learn-list li:nth-child(2) { border-right: 0; margin-right: 0; }
  .look { grid-template-columns: 1fr 1fr; }
  .look div:nth-child(3) { border-left: 0; }
  .look div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero-in { display: flex; flex-direction: column; padding: 92px 16px 20px; gap: 18px; }
  .h-copy { padding-top: 0; }
  .h-title { font-size: var(--fs-10); }
  .h-live { font-size: var(--fs-card); min-height: 0; }
  .h-copy { order: 1; }
  .dock { order: 2; margin-top: 270px; }
  .card { order: 3; margin-top: 8px; padding: 16px; }
  .c-now b { font-size: var(--fs-9); }
  .jumps { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .jumps button { flex: none; padding: 7px 10px; font-size: var(--fs-caption); }
  .learn-list, .look { grid-template-columns: 1fr; }
  .learn-list li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .look div { border-left: 0 !important; border-top: 1px solid var(--line); }
  .look div:first-child { border-top: 0; }
  .ticks span.hr { display: none; }
}

/* nav reads the sky while it sits over the hero */
body[data-hero-ink="light"] .nav:not(.scrolled) { --ink: var(--zc-eef1f6); --ink-2: var(--zc-rgba-238-241-246-82); --line: var(--zc-rgba-255-255-255-12); --line-2: var(--zc-rgba-255-255-255-26); --bg: var(--zc-0a0f1e); --muted: var(--zc-rgba-238-241-246-7); color: var(--ink); }
body[data-hero-ink="dark"] .nav:not(.scrolled) { --ink: var(--zc-0c0e12); --ink-2: var(--zc-rgba-12-14-18-8); --line: var(--zc-rgba-12-14-18-1); --line-2: var(--zc-rgba-12-14-18-24); --bg: var(--zc-f3f3f0); --muted: var(--zc-rgba-12-14-18-66); color: var(--ink); }

/* ================= K1 rooms (Oct 7) ================= */
.d-card.m-lead h3 { font-size: var(--fs-8); }
.d-card.m-lead .badge.on { color: var(--zc-9fb7ff); border-color: var(--zc-rgba-159-183-255-45); }
:root[data-theme="light"] .d-card:not(.m-scene), :root[data-theme="light"] .look, :root[data-theme="light"] .status { box-shadow: var(--elev-2); }
#learning .learn-list { border-top: 0; gap: var(--sp2); }
#learning .learn-list li { margin: 0; padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: color-mix(in srgb, var(--surface) 80%, transparent); }
:root[data-theme="light"] #learning .learn-list li { box-shadow: var(--elev-1); background: var(--surface); }
.ll-k { color: var(--accent); }
.look dd { font-size: var(--fs-body); font-weight: 500; }
.status .m-readout-v { font-size: var(--fs-h3); }
@media (max-width: 1000px) { #learning .learn-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { #learning .learn-list { grid-template-columns: 1fr; } }

/* K3b (Oct 7): the floating breadcrumb sits on the live sky, so it takes the hero's ink (it was dark on the night sky in Daylight),
   and the local-light card is nearly solid in Daylight so its accent chip and muted rows stay AA over a night sky */
body[data-hero-ink="light"] .crumbs--float { --ink: var(--zc-eef1f6); --ink-2: var(--zc-rgba-238-241-246-86); --muted: var(--zc-rgba-238-241-246-74); }
body[data-hero-ink="dark"] .crumbs--float { --ink: var(--zc-0c0e12); --ink-2: var(--zc-rgba-12-14-18-82); --muted: var(--zc-rgba-12-14-18-7); }
:root[data-theme="light"] .hero .card.glass { background: color-mix(in srgb, var(--surface) 95%, transparent); }

/* U9 (Round 3): Pause motion. The look is .pq2-pz from dashboard/_analysis/port.css at 40 px: ink icon on white glass in light, #f5f5f7 on dark glass in
   dark (.u9-pz-dk = always dark). Paused = nothing moves by itself; the page script sets .u9-paused on the stage. */
.u9-pz { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--zc-rgba-255-255-255-78); color: var(--zc-1d1d1f); box-shadow: 0 0 0 1px var(--zc-rgba-0-0-0-06); cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color .24s cubic-bezier(.4, 0, .6, 1); }
:root[data-theme="dark"] .u9-pz, .u9-pz.u9-pz-dk { background: var(--zc-rgba-28-28-30-74); color: var(--zc-f5f5f7); box-shadow: 0 0 0 1px var(--zc-rgba-255-255-255-08); }
.u9-pz:hover { background: var(--zc-rgba-255-255-255-95); }
:root[data-theme="dark"] .u9-pz:hover, .u9-pz.u9-pz-dk:hover { background: var(--zc-rgba-60-60-64-85); }
.u9-pz:focus-visible { outline: 2px solid var(--zc-0066cc); outline-offset: 3px; }
:root[data-theme="dark"] .u9-pz:focus-visible, .u9-pz.u9-pz-dk:focus-visible { outline-color: var(--zc-a9beff); }
.u9-pz-i { position: relative; width: 11px; height: 12px; }
.u9-pz-i::before, .u9-pz-i::after { content: ""; position: absolute; top: 0; width: 3.5px; height: 12px; border-radius: 1px; background: currentColor; }
.u9-pz-i::before { left: 0; } .u9-pz-i::after { right: 0; }
.u9-pz[aria-pressed="true"] .u9-pz-i::before { left: 1px; width: 10px; clip-path: polygon(0 0, 100% 50%, 0 100%); border-radius: 0; }
.u9-pz[aria-pressed="true"] .u9-pz-i::after { display: none; }
.u9-paused, .u9-paused *, .u9-paused *::before, .u9-paused *::after { animation-play-state: paused !important; }
.simple .u9-pz { display: none !important; }
@media (prefers-reduced-motion: reduce) { .u9-pz { display: none; } }
