@font-face {
  font-family: 'Funnel Sans';
  font-style: normal;
  font-display: optional;
  font-weight: 400;
  src: url(/assets/fonts/funnel-sans-latin-ext-400-normal.woff2?v=803d2cbc6c) 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: 'Funnel Sans';
  font-style: normal;
  font-display: optional;
  font-weight: 400;
  src: url(/assets/fonts/funnel-sans-latin-400-normal.woff2?v=eed1093105) 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: 'Funnel Sans';
  font-style: normal;
  font-display: optional;
  font-weight: 500;
  src: url(/assets/fonts/funnel-sans-latin-ext-500-normal.woff2?v=7dbd1d012b) 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: 'Funnel Sans';
  font-style: normal;
  font-display: optional;
  font-weight: 500;
  src: url(/assets/fonts/funnel-sans-latin-500-normal.woff2?v=9346c01625) 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: 'Funnel Sans';
  font-style: normal;
  font-display: optional;
  font-weight: 600;
  src: url(/assets/fonts/funnel-sans-latin-ext-600-normal.woff2?v=70c55fec9d) 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: 'Funnel Sans';
  font-style: normal;
  font-display: optional;
  font-weight: 600;
  src: url(/assets/fonts/funnel-sans-latin-600-normal.woff2?v=eef8f3bf8a) 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: 'Funnel Sans';
  font-style: normal;
  font-display: optional;
  font-weight: 700;
  src: url(/assets/fonts/funnel-sans-latin-ext-700-normal.woff2?v=d5f95b1170) 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: 'Funnel Sans';
  font-style: normal;
  font-display: optional;
  font-weight: 700;
  src: url(/assets/fonts/funnel-sans-latin-700-normal.woff2?v=e825260250) 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: 'Funnel Sans';
  font-style: italic;
  font-display: optional;
  font-weight: 400;
  src: url(/assets/fonts/funnel-sans-latin-ext-400-italic.woff2?v=e7591e860f) 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: 'Funnel Sans';
  font-style: italic;
  font-display: optional;
  font-weight: 400;
  src: url(/assets/fonts/funnel-sans-latin-400-italic.woff2?v=52a71aa4d2) 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: 'Lexend';
  font-style: normal;
  font-display: optional;
  font-weight: 400;
  src: url(/assets/fonts/lexend-latin-ext-400-normal.woff2?v=b7289189cf) 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: 'Lexend';
  font-style: normal;
  font-display: optional;
  font-weight: 400;
  src: url(/assets/fonts/lexend-latin-400-normal.woff2?v=0601e0a909) 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: 'Lexend';
  font-style: normal;
  font-display: optional;
  font-weight: 500;
  src: url(/assets/fonts/lexend-latin-ext-500-normal.woff2?v=cc2b3fef0e) 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: 'Lexend';
  font-style: normal;
  font-display: optional;
  font-weight: 500;
  src: url(/assets/fonts/lexend-latin-500-normal.woff2?v=27cf5288dd) 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: 'Lexend';
  font-style: normal;
  font-display: optional;
  font-weight: 600;
  src: url(/assets/fonts/lexend-latin-ext-600-normal.woff2?v=eb0ab817ca) 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: 'Lexend';
  font-style: normal;
  font-display: optional;
  font-weight: 600;
  src: url(/assets/fonts/lexend-latin-600-normal.woff2?v=c3c291158a) 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: 'Lexend';
  font-style: normal;
  font-display: optional;
  font-weight: 700;
  src: url(/assets/fonts/lexend-latin-ext-700-normal.woff2?v=5ae459b6dc) 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: 'Lexend';
  font-style: normal;
  font-display: optional;
  font-weight: 700;
  src: url(/assets/fonts/lexend-latin-700-normal.woff2?v=52dcdaa127) 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: 'JetBrains Mono';
  font-style: normal;
  font-display: optional;
  font-weight: 400;
  src: url(/assets/fonts/jetbrains-mono-latin-ext-400-normal.woff2?v=505dfba8ec) 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: 'JetBrains Mono';
  font-style: normal;
  font-display: optional;
  font-weight: 400;
  src: url(/assets/fonts/jetbrains-mono-latin-400-normal.woff2?v=14425ba9c6) 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: 'JetBrains Mono';
  font-style: normal;
  font-display: optional;
  font-weight: 500;
  src: url(/assets/fonts/jetbrains-mono-latin-ext-500-normal.woff2?v=879df9319f) 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: 'JetBrains Mono';
  font-style: normal;
  font-display: optional;
  font-weight: 500;
  src: url(/assets/fonts/jetbrains-mono-latin-500-normal.woff2?v=cb182feeed) 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: 'JetBrains Mono';
  font-style: normal;
  font-display: optional;
  font-weight: 600;
  src: url(/assets/fonts/jetbrains-mono-latin-ext-600-normal.woff2?v=90899aac1c) 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: 'JetBrains Mono';
  font-style: normal;
  font-display: optional;
  font-weight: 600;
  src: url(/assets/fonts/jetbrains-mono-latin-600-normal.woff2?v=400c6bfda1) 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;
}

/* Written by fallbacks.py: stand-ins sized like the web fonts, so the swap does not move anything */
@font-face {
  font-family: 'Lexend fallback';
  font-style: normal;
  font-weight: 400;
  src: local('Arial'), local('ArialMT');
  size-adjust: 111.68%;
  ascent-override: 89.54%;
  descent-override: 22.38%;
  line-gap-override: 0.00%;
}
@font-face {
  font-family: 'Lexend fallback';
  font-style: normal;
  font-weight: 500;
  src: local('Arial'), local('ArialMT');
  size-adjust: 114.02%;
  ascent-override: 87.71%;
  descent-override: 21.93%;
  line-gap-override: 0.00%;
}
@font-face {
  font-family: 'Lexend fallback';
  font-style: normal;
  font-weight: 600;
  src: local('Arial Bold'), local('Arial-BoldMT');
  size-adjust: 107.24%;
  ascent-override: 93.25%;
  descent-override: 23.31%;
  line-gap-override: 0.00%;
}
@font-face {
  font-family: 'Lexend fallback';
  font-style: normal;
  font-weight: 700;
  src: local('Arial Bold'), local('Arial-BoldMT');
  size-adjust: 109.19%;
  ascent-override: 91.58%;
  descent-override: 22.90%;
  line-gap-override: 0.00%;
}
@font-face {
  font-family: 'Funnel Sans fallback';
  font-style: normal;
  font-weight: 400;
  src: local('Arial'), local('ArialMT');
  size-adjust: 102.17%;
  ascent-override: 97.87%;
  descent-override: 24.47%;
  line-gap-override: 0.00%;
}
@font-face {
  font-family: 'Funnel Sans fallback';
  font-style: normal;
  font-weight: 500;
  src: local('Arial'), local('ArialMT');
  size-adjust: 103.35%;
  ascent-override: 96.75%;
  descent-override: 24.19%;
  line-gap-override: 0.00%;
}
@font-face {
  font-family: 'Funnel Sans fallback';
  font-style: normal;
  font-weight: 600;
  src: local('Arial Bold'), local('Arial-BoldMT');
  size-adjust: 95.96%;
  ascent-override: 104.21%;
  descent-override: 26.05%;
  line-gap-override: 0.00%;
}
@font-face {
  font-family: 'Funnel Sans fallback';
  font-style: normal;
  font-weight: 700;
  src: local('Arial Bold'), local('Arial-BoldMT');
  size-adjust: 96.75%;
  ascent-override: 103.35%;
  descent-override: 25.84%;
  line-gap-override: 0.00%;
}
@font-face {
  font-family: 'Funnel Sans fallback';
  font-style: italic;
  font-weight: 400;
  src: local('Arial Italic'), local('Arial-ItalicMT');
  size-adjust: 102.17%;
  ascent-override: 97.87%;
  descent-override: 24.47%;
  line-gap-override: 0.00%;
}
@font-face {
  font-family: 'JetBrains Mono fallback';
  font-style: normal;
  font-weight: 400;
  src: local('Courier New'), local('CourierNewPSMT');
  size-adjust: 99.98%;
  ascent-override: 102.02%;
  descent-override: 30.00%;
  line-gap-override: 0.00%;
}
@font-face {
  font-family: 'JetBrains Mono fallback';
  font-style: normal;
  font-weight: 500;
  src: local('Courier New'), local('CourierNewPSMT');
  size-adjust: 99.98%;
  ascent-override: 102.02%;
  descent-override: 30.00%;
  line-gap-override: 0.00%;
}
@font-face {
  font-family: 'JetBrains Mono fallback';
  font-style: normal;
  font-weight: 600;
  src: local('Courier New Bold'), local('CourierNewPS-BoldMT');
  size-adjust: 99.98%;
  ascent-override: 102.02%;
  descent-override: 30.00%;
  line-gap-override: 0.00%;
}

/* Bonk Machines: generated from tokens.json */
:root, [data-theme="light"] {
  --paper: #f6f3ee;
  --paper-raised: #ffffff;
  --paper-sunk: #eeeae3;
  --slab: #292929;
  --slab-raised: #373535;
  --line: #e3ddd3;
  --line-strong: #8f8a84;
  --ink: #292929;
  --ink-muted: #6b6661;
  --on-slab: #ffffff;
  --on-slab-muted: #b9b9b9;
  --bonk-red: #e35a41;
  --bonk-amber: #f0ab3f;
  --bonk-white: #ffffff;
  --bonk-mint: #7dc2aa;
  --on-bonk: #292929;
  --red-text: #b23f2a;
  --amber-text: #8a5a0e;
  --mint-text: #2b7059;
  --link: var(--red-text);
  --focus: #292929;
  --code-ink: #f6f3ee;
  --code-muted: #a9a39c;
  --code-keyword: #ef7a63;
  --code-type: #f0ab3f;
  --code-string: #7dc2aa;
  --stage-glow: #ffffff;
  --stage-rim: rgba(255,255,255,0);
  --shadow-lift: 0 1px 2px rgba(41,41,41,0.06), 0 16px 40px -20px rgba(41,41,41,0.28);
}
[data-theme="dark"] {
  --paper: #1c1c1c;
  --paper-raised: #242424;
  --paper-sunk: #161616;
  --slab: #292929;
  --slab-raised: #373535;
  --line: #353333;
  --line-strong: #77716b;
  --ink: #f6f3ee;
  --ink-muted: #a9a39c;
  --on-slab: #ffffff;
  --on-slab-muted: #b9b9b9;
  --bonk-red: #e35a41;
  --bonk-amber: #f0ab3f;
  --bonk-white: #ffffff;
  --bonk-mint: #7dc2aa;
  --on-bonk: #292929;
  --red-text: #ef7a63;
  --amber-text: #f0ab3f;
  --mint-text: #7dc2aa;
  --link: var(--red-text);
  --focus: #f0ab3f;
  --code-ink: #f6f3ee;
  --code-muted: #a9a39c;
  --code-keyword: #ef7a63;
  --code-type: #f0ab3f;
  --code-string: #7dc2aa;
  --stage-glow: #57524d;
  --stage-rim: rgba(255,255,255,0.22);
  --shadow-lift: 0 1px 2px rgba(0,0,0,0.5), 0 20px 48px -20px rgba(0,0,0,0.8);
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;
  --radius-0: 0;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-round: 999px;
  --container: 1200px;
  --prose: 680px;
  --header-height: 72px;
  --docs-sidebar: 264px;
  --font-display: "Lexend", "Lexend fallback", system-ui, sans-serif;
  --font-sans: "Funnel Sans", "Funnel Sans fallback", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "JetBrains Mono fallback", ui-monospace, SFMono-Regular, Menlo, monospace;
}
.display-xl { font-family: var(--font-display); font-size: 112px; line-height: 0.92; font-weight: 700; letter-spacing: -0.045em; }
.display-lg { font-family: var(--font-display); font-size: 72px; line-height: 0.96; font-weight: 700; letter-spacing: -0.035em; }
.h1 { font-family: var(--font-display); font-size: 52px; line-height: 1.04; font-weight: 600; letter-spacing: -0.03em; }
.h2 { font-family: var(--font-display); font-size: 36px; line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; }
.h3 { font-family: var(--font-display); font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-family: var(--font-sans); font-size: 21px; line-height: 1.5; font-weight: 400; }
.body { font-family: var(--font-sans); font-size: 17px; line-height: 1.65; font-weight: 400; }
.body-sm { font-family: var(--font-sans); font-size: 15px; line-height: 1.55; font-weight: 400; }
.ui { font-family: var(--font-sans); font-size: 15px; line-height: 1.2; font-weight: 600; }
.caption { font-family: var(--font-sans); font-size: 13px; line-height: 1.45; font-weight: 500; }
.code { font-family: var(--font-mono); font-size: 14px; line-height: 1.7; font-weight: 400; }
.spec { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; font-weight: 500; letter-spacing: 0.02em; }

@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #1c1c1c;
  --paper-raised: #242424;
  --paper-sunk: #161616;
  --slab: #292929;
  --slab-raised: #373535;
  --line: #353333;
  --line-strong: #77716b;
  --ink: #f6f3ee;
  --ink-muted: #a9a39c;
  --on-slab: #ffffff;
  --on-slab-muted: #b9b9b9;
  --bonk-red: #e35a41;
  --bonk-amber: #f0ab3f;
  --bonk-white: #ffffff;
  --bonk-mint: #7dc2aa;
  --on-bonk: #292929;
  --red-text: #ef7a63;
  --amber-text: #f0ab3f;
  --mint-text: #7dc2aa;
  --link: var(--red-text);
  --focus: #f0ab3f;
  --code-ink: #f6f3ee;
  --code-muted: #a9a39c;
  --code-keyword: #ef7a63;
  --code-type: #f0ab3f;
  --code-string: #7dc2aa;
  --stage-glow: #57524d;
  --stage-rim: rgba(255,255,255,0.22);
  --shadow-lift: 0 1px 2px rgba(0,0,0,0.5), 0 20px 48px -20px rgba(0,0,0,0.8);
 color-scheme: dark; } }
:root[data-theme="dark"] { color-scheme: dark; }
body { background: var(--paper); }

/* Bonk Machines components. Every value comes from tokens.css; nothing here re-declares a token. */

.bk, .bk * { box-sizing: border-box; }
.bk { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.bk img { display: block; max-width: 100%; }
.bk a { color: inherit; }
.bk :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bk-wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-8); }
.bk-prose { max-width: var(--prose); }
.bk-muted { color: var(--ink-muted); }
.bk-link { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.bk-link:hover { text-decoration-thickness: 2px; }

/* Type helpers that add page context to the token classes */
.bk h1, .bk h2, .bk h3, .bk p { margin: 0; }
.bk-display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; }
.bk-spec { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-muted); }
.bk-slab .bk-spec, .bk-spec--slab { color: var(--on-slab-muted); }

/* Button */
.bk-btn { display: inline-flex; align-items: center; gap: var(--space-2); height: 48px; padding: 0 var(--space-6); border-radius: var(--radius-md); border: 1px solid transparent; font-family: var(--font-sans); font-size: 15px; line-height: 1; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; white-space: nowrap; }
.bk-btn:active { transform: translateY(1px); }
.bk-btn svg { width: 16px; height: 16px; flex: none; }
.bk-btn--primary { background: var(--bonk-amber); color: var(--on-bonk); }
.bk-btn--primary:hover { background: var(--bonk-white); border-color: var(--bonk-amber); }
.bk-btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.bk-btn--secondary:hover { border-color: var(--ink); }
.bk-btn--on-slab { background: transparent; color: var(--on-slab); border-color: var(--on-slab-muted); }
.bk-btn--on-slab:hover { border-color: var(--on-slab); }
.bk-btn--sm { height: 40px; padding: 0 var(--space-4); }
.bk-textlink { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--bonk-amber); padding-bottom: 2px; }
.bk-textlink:hover { border-color: var(--ink); }
.bk-textlink { white-space: nowrap; }
.bk-textlink svg { width: 16px; height: 16px; flex: none; }
.bk-slab .bk-textlink { color: var(--on-slab); }

/* Slab: the logo block as a page surface */
.bk-slab { background: var(--slab); color: var(--on-slab); }
[data-theme="dark"] .bk-slab { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bk-sunk { background: var(--paper-sunk); }

/* Site header */
.bk-header { position: sticky; top: 0; z-index: 10; height: var(--header-height); background: var(--slab); color: var(--on-slab); }
.bk-header .bk-wrap { height: 100%; display: flex; align-items: center; gap: var(--space-8); }
.bk-header__logo { display: block; height: 28px; flex: none; }
.bk-header__logo img { height: 28px; width: auto; }
.bk-nav { display: flex; gap: var(--space-6); margin-left: auto; align-items: center; }
.bk-nav a { color: var(--on-slab-muted); text-decoration: none; font-size: 15px; font-weight: 600; padding: var(--space-2) 0; border-bottom: 2px solid transparent; }
.bk-nav a:hover { color: var(--on-slab); }
.bk-nav a[aria-current="page"] { color: var(--on-slab); border-bottom-color: var(--bonk-amber); }
.bk-header--paper { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.bk-header--paper .bk-nav a { color: var(--ink-muted); }
.bk-header--paper .bk-nav a:hover, .bk-header--paper .bk-nav a[aria-current="page"] { color: var(--ink); }

/* The four-letter strip: B O N K as colour bars */
.bk-strip { display: grid; grid-template-columns: repeat(4, 1fr); height: 8px; }
.bk-strip > i:nth-child(1) { background: var(--bonk-red); }
.bk-strip > i:nth-child(2) { background: var(--bonk-amber); }
.bk-strip > i:nth-child(3) { background: var(--bonk-white); }
.bk-strip > i:nth-child(4) { background: var(--bonk-mint); }

/* Product card */
.bk-product { display: flex; flex-direction: column; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s ease, transform .2s ease; }
.bk-product:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.bk-product__panel { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.bk-product__panel svg { width: 46%; height: auto; }
.bk-product__panel--red { background: var(--bonk-red); }
.bk-product__panel--amber { background: var(--bonk-amber); }
.bk-product__panel--white { background: var(--bonk-white); border-bottom: 1px solid var(--line); }
.bk-product__panel--mint { background: var(--bonk-mint); }
.bk-product__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.bk-product__name { font-family: var(--font-display); font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.bk-product__text { font-size: 15px; line-height: 1.55; color: var(--ink-muted); }
.bk-product__foot { margin-top: auto; padding-top: var(--space-4); display: flex; justify-content: space-between; align-items: center; }

/* Product row: the large showcase layout */
.bk-row { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--space-12); align-items: start; padding: var(--space-12) 0; border-top: 1px solid var(--line); }
.bk-row--flip .bk-row__panel { order: 2; }
.bk-row__panel { aspect-ratio: 1 / 1; border-radius: var(--radius-0); display: grid; place-items: center; }
.bk-row__panel svg { width: 46%; height: auto; }
.bk .bk-row__name { font-family: var(--font-display); font-size: 52px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; margin: var(--space-2) 0 var(--space-4); }
.bk-facts { list-style: none; padding: 0; margin: var(--space-6) 0 0; border-top: 1px solid var(--line); max-width: var(--prose); }
.bk-facts li { display: grid; grid-template-columns: 140px 1fr; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.bk-facts li span:first-child { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--ink-muted); letter-spacing: 0.02em; padding-top: 3px; }

/* Code block */
.bk-code { background: var(--slab); color: var(--code-ink); border-radius: var(--radius-md); overflow: hidden; font-family: var(--font-mono); font-size: 14px; line-height: 1.7; }
[data-theme="dark"] .bk-code { border: 1px solid var(--line); }
.bk-code__bar { display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-4); height: 44px; background: var(--slab-raised); }
.bk-code__bar i { width: 10px; height: 10px; border-radius: var(--radius-round); }
.bk-code__bar i:nth-child(1) { background: var(--bonk-red); }
.bk-code__bar i:nth-child(2) { background: var(--bonk-amber); }
.bk-code__bar i:nth-child(3) { background: var(--bonk-mint); }
.bk-code__file { margin-left: var(--space-3); font-size: 12px; font-weight: 500; color: var(--on-slab-muted); }
.bk-code__copy { margin-left: auto; font: inherit; font-size: 12px; color: var(--on-slab-muted); background: none; border: 1px solid var(--slab); border-radius: var(--radius-sm); padding: 2px var(--space-2); cursor: pointer; }
.bk-code__copy:hover { color: var(--on-slab); border-color: var(--on-slab-muted); }
.bk-code pre { margin: 0; padding: var(--space-6) var(--space-6) var(--space-6) 0; overflow-x: auto; counter-reset: ln; }
.bk-code pre:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.bk-code pre span.l { display: block; padding-left: 56px; position: relative; white-space: pre; }
.bk-code pre span.l::before { counter-increment: ln; content: counter(ln, decimal-leading-zero); position: absolute; left: 0; width: 40px; text-align: right; color: var(--code-muted); opacity: .7; }
.bk-code .k { color: var(--code-keyword); }
.bk-code .t { color: var(--code-type); }
.bk-code .s { color: var(--code-string); }
.bk-code .c { color: var(--code-muted); }
.bk code:not(pre code) { font-family: var(--font-mono); font-size: .88em; background: var(--paper-sunk); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1px 6px; }

/* Docs shell */
.bk-docs { display: grid; grid-template-columns: var(--docs-sidebar) minmax(0, 1fr) 220px; min-height: 100%; }
.bk-docs__nav { background: var(--paper-sunk); border-right: 1px solid var(--line); padding: var(--space-8) var(--space-6); font-size: 15px; line-height: 1.4; }
.bk-docs__search { display: flex; align-items: center; gap: var(--space-2); height: 40px; padding: 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper-raised); color: var(--ink-muted); font-size: 14px; margin-bottom: var(--space-8); }
.bk-docs__search kbd { margin-left: auto; font-family: var(--font-mono); font-size: 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1px 5px; }
.bk-docs__group { margin-bottom: var(--space-6); }
.bk-docs__group h2 { margin: 0 0 var(--space-2); font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink); }
.bk-docs__group ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.bk-docs__group a { display: block; padding: 5px 0 5px var(--space-4); margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-muted); text-decoration: none; }
.bk-docs__group a:hover { color: var(--ink); }
.bk-docs__group a[aria-current="page"] { color: var(--ink); font-weight: 600; border-left-color: var(--bonk-red); }
.bk-docs__main { padding: var(--space-12) var(--space-16) var(--space-24); background: var(--paper-raised); min-width: 0; }
.bk-docs__toc { padding: var(--space-12) var(--space-6); font-size: 14px; }
.bk-docs__toc h2 { margin: 0 0 var(--space-3); font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.bk-docs__toc a { display: block; color: var(--ink-muted); text-decoration: none; padding: 4px 0; }
.bk-docs__toc a.on { color: var(--red-text); font-weight: 600; }
.bk-crumb { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); margin-bottom: var(--space-4); }
.bk-docs__main h2 { font-family: var(--font-display); font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; margin: var(--space-16) 0 var(--space-4); }
.bk-docs__main p + p { margin-top: var(--space-4); }

/* Next-step card (docs) */
.bk-step { display: block; padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-raised); text-decoration: none; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.bk-step:hover { border-color: var(--ink); box-shadow: var(--shadow-lift); }
.bk-step__num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-round); font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--on-bonk); margin-bottom: var(--space-4); }
.bk-step h3, .bk-404links .bk-step h2 { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: var(--space-2); }
.bk-step p { font-size: 15px; line-height: 1.55; color: var(--ink-muted); }

/* Pager */
.bk-pager { display: flex; justify-content: flex-end; margin-top: var(--space-16); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.bk-pager a { text-align: right; text-decoration: none; color: var(--ink); }
.bk-pager small { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.bk-pager strong { font-family: var(--font-display); font-size: 20px; font-weight: 600; }

/* Footer */
.bk-footer { background: var(--slab); color: var(--on-slab-muted); font-size: 15px; }
.bk-footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-8); padding: var(--space-16) 0 var(--space-12); }
.bk-footer h2 { margin: 0 0 var(--space-3); line-height: 1.3; letter-spacing: normal; color: var(--on-slab); font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.bk-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.bk-footer a { color: var(--on-slab-muted); text-decoration: none; }
.bk-footer a:hover { color: var(--on-slab); }
.bk-footer__base { display: flex; justify-content: space-between; padding: var(--space-6) 0; border-top: 1px solid var(--slab-raised); font-family: var(--font-mono); font-size: 12px; }

/* Value card (about) */
.bk-value { padding: var(--space-8); border-top: 4px solid var(--ink); background: var(--paper-raised); }
.bk-value h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: var(--space-3); }
.bk-value p { font-size: 16px; line-height: 1.6; color: var(--ink-muted); }
.bk-value--red { border-top-color: var(--bonk-red); }
.bk-value--amber { border-top-color: var(--bonk-amber); }
.bk-value--mint { border-top-color: var(--bonk-mint); }

/* Quote */
.bk-quote { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1.15; letter-spacing: -0.025em; margin: 0; }
.bk-quote cite { display: block; margin-top: var(--space-6); font-family: var(--font-mono); font-style: normal; font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--on-slab-muted); }

/* Photo with caption */
.bk-photo { margin: 0; }
.bk-photo img { width: 100%; height: 100%; object-fit: cover; }
.bk-photo figcaption { margin-top: var(--space-2); font-size: 13px; line-height: 1.45; font-weight: 500; color: var(--ink-muted); }

/* Narrow screens */
@media (max-width: 900px) {
  .bk-wrap { padding: 0 var(--space-8); }
  .bk-nav { gap: var(--space-4); }
  .bk-row, .bk-row--flip { grid-template-columns: 1fr; gap: var(--space-8); }
  .bk-row--flip .bk-row__panel { order: 0; }
  .bk-row__name { font-size: 40px; }
  .bk-footer__top { grid-template-columns: 1fr 1fr; }
  .bk-quote { font-size: 30px; }
}

/* Hero tiles: the four projects as a flush 2 by 2 block, like the letters of the logo */
.bk-tiles { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 1 / 1; }
.bk-tiles__t { display: grid; place-items: center; }
.bk-tiles__t svg { width: 44%; height: auto; }
.bk-tiles__t.bk-product__panel--white { border-bottom: 0; }

/* Fact list on slab */
.bk-facts--slab { border-top-color: var(--slab-raised); }
.bk-facts--slab li { border-bottom-color: var(--slab-raised); color: var(--on-slab); }
.bk-facts--slab li span:first-child { color: var(--on-slab-muted); }

/* The knob: the O of the logo, set large in the home hero with a scale of dots around it */
.bk-knob { aspect-ratio: 1 / 1; display: grid; place-items: center end; }
.bk-knob svg { width: 100%; height: auto; display: block; }

/* Project tile: the projects index */
.bk-ptiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16) var(--space-8); }
.bk-ptile { display: block; text-decoration: none; color: var(--ink); }
.bk-ptile__panel { position: relative; aspect-ratio: 3 / 2; display: grid; place-items: center; overflow: hidden; }
.bk-ptile__panel svg { width: 28%; height: auto; transition: transform .3s ease; }
.bk-ptile:hover .bk-ptile__panel svg { transform: scale(1.08); }
.bk-ptile__num { position: absolute; left: var(--space-6); top: var(--space-6); font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--on-bonk); }
.bk-ptile__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); margin-top: var(--space-6); padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.bk-ptile__name { font-family: var(--font-display); font-size: 36px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.bk-ptile__text { margin-top: var(--space-4); color: var(--ink-muted); max-width: 520px; }
.bk-ptile__more { margin-top: var(--space-4); }
.bk-panel--red { background: var(--bonk-red); }
.bk-panel--amber { background: var(--bonk-amber); }
.bk-panel--mint { background: var(--bonk-mint); }
.bk-panel--white { background: var(--bonk-white); box-shadow: inset 0 0 0 1px var(--line); }

/* Project detail */
.bk-hero-panel { height: 440px; display: grid; place-items: center; }
.bk-hero-panel svg { width: 160px; height: auto; }
.bk-detail { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-16); padding: var(--space-12) 0 var(--space-24); }
.bk-detail .bk-facts { margin-top: 0; }
.bk-nextprev { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.bk-nextprev a { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-8) 0; text-decoration: none; color: var(--ink); }
.bk-nextprev a:last-child { justify-content: flex-end; text-align: right; }
.bk-nextprev small { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.bk-nextprev strong { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.bk-nextprev i { width: 48px; height: 48px; flex: none; }
@media (max-width: 900px) {
  .bk-ptiles { grid-template-columns: 1fr; gap: var(--space-12); }
  .bk-detail { grid-template-columns: 1fr; gap: var(--space-8); }
  .bk-hero-panel { height: 280px; }
}

/* TONE:96 page parts */
.bk-t96hero { height: 640px; display: grid; place-items: center; overflow: hidden; }
.bk-t96hero img { height: 560px; width: auto; max-width: 90%; object-fit: contain; }
.bk-stats { display: grid; grid-template-columns: 1fr 1fr; align-content: start; border-top: 1px solid var(--line); }
.bk-stat { padding: var(--space-6) 0; border-bottom: 1px solid var(--line); display: grid; gap: var(--space-1); }
.bk-stat:nth-child(odd) { padding-right: var(--space-6); border-right: 1px solid var(--line); }
.bk-stat:nth-child(even) { padding-left: var(--space-6); }
.bk-stat b { font-family: var(--font-display); font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.bk-stat span { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--ink-muted); }
.bk-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12) var(--space-16); }
.bk-feature h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 var(--space-2); }
.bk-feature p { color: var(--ink-muted); }
.bk-feature .bk-panel--white { box-shadow: inset 0 0 0 1px var(--line-strong); }
.bk-bench { margin-top: var(--space-12); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12) var(--space-8); }
.bk-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12) var(--space-16); }
.bk .bk-spec-h { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0 0 var(--space-3); }
.bk-specs .bk-facts { margin-top: 0; }
@media (max-width: 900px) {
  .bk-t96hero { height: 360px; }
  .bk-t96hero img { height: 320px; }
  .bk-features, .bk-specs, .bk-stats { grid-template-columns: 1fr; }
  .bk-bench { grid-template-columns: 1fr; }
}

/* v3: project bands (index) */
.bk-index-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-16); align-items: end; }
.bk-bands { display: grid; }
.bk-band { display: block; background: var(--band); color: var(--on-bonk); text-decoration: none; overflow: hidden; }
.bk-band--white { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bk-band__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; min-height: 480px; }
.bk-band__text { padding: var(--space-16) 0; }
.bk-band__meta { display: flex; gap: var(--space-3); margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 1.2; font-weight: 600; color: var(--on-bonk); }
.bk-band__meta a { color: inherit; text-decoration: none; }
.bk .bk-band__name { font-family: var(--font-display); font-size: 88px; line-height: .95; font-weight: 700; letter-spacing: -0.04em; margin: var(--space-4) 0 var(--space-6); }
.bk-band__text-p { font-size: 24px; line-height: 1.4; max-width: 540px; }
.bk-band__more { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-8); font-family: var(--font-display); font-size: 20px; font-weight: 600; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.bk-band__more svg { width: 18px; height: 18px; }
.bk-band__visual { align-self: stretch; display: grid; place-items: center; }
.bk-band__glyph { width: 300px; transition: transform .3s ease; }
.bk-band__glyph svg { width: 100%; height: auto; display: block; }
.bk-band__render { width: 100%; max-width: 520px; height: 440px; object-fit: contain; transition: transform .3s ease; }
.bk-band:hover .bk-band__glyph, .bk-band:hover .bk-band__render { transform: translateX(8px); }

/* v3: project page */
.bk-phero { background: var(--band); color: var(--on-bonk); overflow: hidden; }
.bk-phero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; min-height: 760px; }
.bk-phero__text { position: relative; z-index: 1; padding: var(--space-24) 0 var(--space-16); }
.bk .bk-phero__name { font-family: var(--font-display); font-size: 168px; line-height: .88; font-weight: 700; letter-spacing: -0.05em; margin: var(--space-8) 0 var(--space-6); }
.bk-phero__lead { font-family: var(--font-display); font-size: 30px; line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; max-width: 560px; }
.bk-phero__line { margin-top: var(--space-8); padding-top: var(--space-4); border-top: 2px solid var(--on-bonk); font-family: var(--font-display); font-size: 20px; font-weight: 600; max-width: 560px; }
.bk-phero__render { align-self: end; justify-self: end; width: 118%; max-width: none; margin-right: -9%; margin-bottom: -96px; }
.bk-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-16); align-items: start; }
.bk-intro__big { font-family: var(--font-display); font-size: 32px; line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; }
.bk-intro__body { display: grid; gap: var(--space-4); color: var(--ink-muted); padding-top: 6px; }
.bk-fxhead { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: var(--space-12); align-items: end; }
.bk-fxhead__play { display: grid; gap: var(--space-3); justify-items: start; }
.bk-feats2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8); margin-top: var(--space-12); }
.bk-feat2 { border-top: 4px solid var(--rule); padding-top: var(--space-6); }
.bk-feat2[style*="bonk-white"] { border-top-color: var(--ink); }
.bk .bk-feat2 h3 { font-family: var(--font-display); font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; margin-bottom: var(--space-3); }
.bk-feat2 p { font-size: 15px; line-height: 1.6; color: var(--ink-muted); }
.bk-panel { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--space-12); align-items: center; }
.bk-panel__img { position: relative; }
.bk-panel__img img { width: 100%; display: block; }
.bk-mark { position: absolute; transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: var(--radius-round); background: var(--bonk-red); color: var(--on-bonk); font-family: var(--font-display); font-size: 14px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--paper-sunk); }
.bk-mark--static { position: static; transform: none; flex: none; box-shadow: none; }
.bk-legend { list-style: none; margin: var(--space-6) 0 0; padding: 0; border-top: 1px solid var(--line); }
.bk-legend li { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 18px; font-weight: 500; }
.bk-specwrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-16); align-items: start; }
.bk-spectable { width: 100%; border-collapse: collapse; font-size: 15px; }
.bk-spectable th { text-align: left; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--ink-muted); padding: var(--space-8) 0 var(--space-3); border-bottom: 2px solid var(--ink); }
.bk-spectable tr:first-child th { padding-top: 0; }
.bk-spectable td { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.bk-spectable td:first-child { width: 34%; padding-right: var(--space-6); font-weight: 600; }
.bk-next { display: block; background: var(--band); color: var(--on-bonk); text-decoration: none; }
.bk-next__in { display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-16); padding-bottom: var(--space-16); }
.bk-next__name { display: inline-flex; align-items: center; gap: var(--space-4); font-family: var(--font-display); font-size: 72px; line-height: 1; font-weight: 700; letter-spacing: -0.035em; }
.bk-next__name svg { width: 48px; height: 48px; transition: transform .2s ease; }
.bk-next:hover .bk-next__name svg { transform: translateX(8px); }
@media (max-width: 900px) {
  .bk-index-head, .bk-band__in, .bk-phero__in, .bk-intro, .bk-fxhead, .bk-panel, .bk-specwrap { grid-template-columns: 1fr; }
  .bk .bk-band__name { font-size: 56px; }
  .bk .bk-phero__name { font-size: 88px; }
  .bk-phero__render { width: 100%; margin: 0 0 -48px; }
  .bk-feats2 { grid-template-columns: 1fr 1fr; }
  .bk-next__name { font-size: 44px; }
}

/* v4: product hero, figures, callout panel */
.bk-p2hero { padding: var(--space-12) 0 var(--space-16); background: var(--paper); }
.bk-p2hero__head { display: grid; grid-template-columns: auto minmax(0, 420px); justify-content: space-between; align-items: end; gap: var(--space-12); margin-top: var(--space-8); }
.bk .bk-p2hero__name { font-family: var(--font-display); font-size: 144px; line-height: .86; font-weight: 700; letter-spacing: -0.05em; margin: 0; }
.bk-p2hero__lead { font-family: var(--font-display); font-size: 26px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; padding-bottom: 10px; }
.bk-p2hero__unit { margin: var(--space-16) calc(-1 * var(--space-4)) 0; }
.bk-p2hero__unit img { width: 100%; height: auto; filter: drop-shadow(0 28px 32px rgba(41, 41, 41, .22)) drop-shadow(0 4px 6px rgba(41, 41, 41, .18)); }
.bk-p2hero__figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--space-16); border-top: 2px solid var(--ink); }
.bk-p2hero__figs > div { padding: var(--space-4) var(--space-6) 0 0; display: grid; gap: var(--space-1); }
.bk-p2hero__figs > div + div { padding-left: var(--space-6); border-left: 1px solid var(--line); }
.bk-p2hero__figs b { font-family: var(--font-display); font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.bk-p2hero__figs span { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--ink-muted); }
.bk-callouts { padding: 132px 0; margin-top: var(--space-8); }
.bk-callouts__unit { position: relative; }
.bk-callouts__unit img { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 24px rgba(41, 41, 41, .18)); }
.bk-call { position: absolute; width: 0; }
.bk-call i { position: absolute; left: 0; width: 1px; background: var(--ink); }
.bk-call i::after { content: ""; position: absolute; left: -3px; width: 7px; height: 7px; border-radius: var(--radius-round); background: var(--ink); }
.bk-call b, .bk-call span { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap; text-align: center; }
.bk-call b { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.bk-call span { font-size: 13px; color: var(--ink-muted); }
.bk-call--up { top: 0; }
.bk-call--up i { bottom: -24px; height: 88px; }
.bk-call--up i::after { bottom: -3px; }
.bk-call--up b { bottom: 104px; }
.bk-call--up span { bottom: 84px; }
.bk-call--down { bottom: 0; }
.bk-call--down i { top: -24px; height: 88px; }
.bk-call--down i::after { top: -3px; }
.bk-call--down b { top: 84px; }
.bk-call--down span { top: 104px; }
@media (max-width: 900px) {
  .bk-p2hero__head { grid-template-columns: 1fr; }
  .bk .bk-p2hero__name { font-size: 80px; }
  .bk-p2hero__figs { grid-template-columns: 1fr 1fr; }
  .bk-callouts { overflow-x: auto; padding: 132px var(--space-4); }
  .bk-callouts__unit { min-width: 900px; }
}

/* v4: index contents row, callout reach */
.bk-toc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--space-16); border-top: 2px solid var(--ink); }
.bk-toc a { display: grid; gap: var(--space-1); padding: var(--space-4) var(--space-6) 0 0; text-decoration: none; color: var(--ink); }
.bk-toc a + a { padding-left: var(--space-6); border-left: 1px solid var(--line); }
.bk-toc b { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.bk-toc b i { width: 14px; height: 14px; flex: none; }
.bk-toc span { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--ink-muted); }
.bk-toc a:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.bk-call--up i { bottom: -52px; height: 116px; }
.bk-call--down i { top: -52px; height: 116px; }
@media (max-width: 900px) { .bk-toc { grid-template-columns: 1fr 1fr; } }
.bk-call i::after { background: var(--paper); box-shadow: 0 0 0 2px var(--ink); width: 8px; height: 8px; left: -3.5px; }
.bk-callouts + p { margin-top: var(--space-6); }
.bk-toc b i.bk-panel--white { box-shadow: inset 0 0 0 1px var(--ink); }
.bk-header { top: env(safe-area-inset-top, 0px); }

/* Phone and small tablet: inline page grids stack, big type scales with the screen */
@media (max-width: 900px) {
  .bk [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; gap: var(--space-8) !important; }
  .bk [style*="display:flex"] { flex-wrap: wrap; }
  .bk .display-xl { font-size: clamp(44px, 12.5vw, 92px) !important; }
  .bk .display-lg { font-size: clamp(40px, 11vw, 72px) !important; }
  .bk .h1 { font-size: clamp(32px, 8.5vw, 52px); }
  .bk .bk-p2hero__name { font-size: clamp(44px, 13vw, 144px); }
  .bk .bk-band__name { font-size: clamp(40px, 12vw, 88px); }
  .bk-band__in { min-height: 0; gap: 0; }
  .bk-band__text { padding: var(--space-12) 0 var(--space-6); }
  .bk-band__text-p { font-size: 20px; }
  .bk-band__visual { padding-bottom: var(--space-12); justify-items: start; }
  .bk-band__glyph { width: 180px; }
  .bk-p2hero__lead { font-size: 21px; }
  .bk-p2hero__figs > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .bk-toc a:nth-child(3) { padding-left: 0; border-left: 0; }
  .bk-header .bk-wrap { gap: var(--space-4); }
  .bk-header__logo, .bk-header__logo img { height: 22px; }
  .bk-nav { gap: var(--space-3); overflow-x: auto; }
  .bk-nav a { font-size: 14px; white-space: nowrap; }
  .bk-intro__big { font-size: 24px; }
  .bk-next__name { font-size: clamp(36px, 10vw, 72px); }
  .bk-next__name svg { width: 32px; height: 32px; }
  .bk-footer__top { grid-template-columns: 1fr 1fr; }
  .bk-footer__top > div:first-child { grid-column: 1 / -1; }
  .bk-footer__base { flex-wrap: wrap; gap: var(--space-2); }
  .bk-fxhead { gap: var(--space-6); }
  .bk-feats2 { grid-template-columns: 1fr; }
  .bk-spectable td:first-child { width: 40%; }
  .bk-code pre { font-size: 12.5px; }
}

/* A stage for black product renders: a soft glow behind, a hairline rim in dark */
.bk-p2hero__unit, .bk-callouts__unit { position: relative; isolation: isolate; }
.bk-p2hero__unit::before, .bk-callouts__unit::before { content: ""; position: absolute; z-index: -1; inset: -40% -6%; background: radial-gradient(closest-side, var(--stage-glow), transparent); opacity: .9; pointer-events: none; }
.bk-p2hero__unit img, .bk-callouts__unit img { filter: drop-shadow(0 0 0.6px var(--stage-rim)) drop-shadow(0 0 0.6px var(--stage-rim)) drop-shadow(0 28px 32px rgba(0, 0, 0, .25)); }

/* TONE:96 3D viewer (the bonkmachines.nl viewer, mounted by unit3d.js) */
.bk-stage3d { position: relative; isolation: isolate; margin-top: var(--space-12); }
.bk-stage3d::before { content: ""; position: absolute; z-index: -1; inset: 0 5%; background: radial-gradient(closest-side, var(--stage-glow), transparent); pointer-events: none; }
.t96-unit3d { position: relative; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; cursor: grab; touch-action: none; }
.t96-unit3d:active { cursor: grabbing; }
.t96-unit3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.t96-unit3d .zoom { position: absolute; right: 12px; top: 12px; display: grid; gap: 6px; }
.t96-unit3d .zoom button { width: 36px; height: 36px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--paper-raised); color: var(--ink); font: 600 18px/1 var(--font-sans); cursor: pointer; display: grid; place-items: center; }
.t96-unit3d .zoom button:hover { border-color: var(--ink); }
.t96-unit3d .hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); text-align: center; padding: 6px 12px; border-radius: var(--radius-sm); background: var(--paper-raised); color: var(--ink-muted); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .02em; pointer-events: none; }
@media (max-width: 900px) { .t96-unit3d { aspect-ratio: 4 / 5; } }
/* 3D stage: full width, no box, so the model never meets a hard edge inside the page */
.bk-stage3d { margin-top: var(--space-8); }
.bk-stage3d::before { inset: 0; }
.t96-unit3d { aspect-ratio: auto; height: clamp(420px, 52vw, 680px); width: 100%; }
@media (max-width: 900px) { .t96-unit3d { aspect-ratio: auto; height: 460px; } }
/* 3D section: the viewer is the whole section, edge to edge */
.bk-stage3d { margin: 0; background: var(--paper-sunk); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.t96-unit3d { display: block; width: 100%; height: clamp(460px, 56vw, 760px); }
/* Phones: the viewer takes the 4:5 shape the bonkmachines.nl viewer uses there, so the first view matches */
@media (max-width: 640px) { .t96-unit3d { height: auto; aspect-ratio: 4 / 5; } }

/* Project colour on a project page: every page carries its instrument's colour (TONE:96 red) */
.bk-proj .bk-crumb { color: var(--project-text); }
.bk-proj .bk-p2hero__figs { border-top-color: var(--project); border-top-width: 4px; }
.bk-proj .bk-stage3d { background: var(--project); border: 0; }
.bk-proj .bk-stage3d::before { display: none; }
.bk-proj .bk-spectable th { border-bottom-color: var(--project); }
.bk-proj .bk-call i::after { box-shadow: 0 0 0 2px var(--project); }
.bk-proj .bk-call i { background: var(--ink); }
.bk-proj .bk-fxhead .h1, .bk-proj .bk-feats2 + * { }
.bk-proj .bk-btn--primary { background: var(--project); color: var(--on-bonk); }
.bk-proj .bk-btn--primary:hover { background: var(--bonk-white); border-color: var(--project); }
.bk-proj, .bk-p2hero { overflow-x: clip; }

/* The panel map: render, leader lines, dots and labels in one SVG */
.bk-panelwrap { margin-top: var(--space-12); position: relative; isolation: isolate; }
.bk-panelwrap::before { content: ""; position: absolute; z-index: -1; inset: 11.7% -6%; background: radial-gradient(closest-side, var(--stage-glow), transparent); opacity: .9; pointer-events: none; }
.bk-panelmap { display: block; width: 100%; height: auto; overflow: visible; }
.bk-panelmap__img { filter: drop-shadow(0 0 0.6px var(--stage-rim)) drop-shadow(0 0 0.6px var(--stage-rim)) drop-shadow(0 28px 32px rgba(0, 0, 0, .25)); }
.bk-panelmap__line { fill: none; stroke: var(--project, var(--ink)); stroke-width: 2.2; stroke-linejoin: round; }
.bk-panelmap__dot { fill: var(--paper); stroke: var(--project, var(--ink)); stroke-width: 3.5; }
.bk-panelmap__name { font-family: var(--font-display); font-size: 23px; font-weight: 600; fill: var(--ink); }
.bk-panelmap__note { font-family: var(--font-sans); font-size: 19px; fill: var(--ink-muted); }
@media (max-width: 900px) { .bk-panelwrap { overflow-x: auto; } .bk-panelmap { min-width: 960px; } }

/* Phones: the panel stands upright */
.bk-p2hero__stage-m, .bk-panelm { display: none; }
@media (max-width: 640px) {
  .bk-p2hero__unit { display: none; }
  .bk-p2hero__stage-m { display: block; position: relative; isolation: isolate; margin-top: var(--space-12); }
  .bk-p2hero__stage-m::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -6%; width: 140%; height: 100%; transform: translateX(-50%); background: radial-gradient(closest-side, var(--stage-glow), transparent); opacity: .9; pointer-events: none; }
  .bk-p2hero__unit-m { display: block; position: relative; width: 100%; margin: 0; aspect-ratio: 1 / 2.68; height: auto; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
  .bk-p2hero__unit-m img { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 0.6px var(--stage-rim)) drop-shadow(0 0 0.6px var(--stage-rim)); }
  .bk-panelwrap { display: none; }
  .bk-panelm { display: block; margin: var(--space-12) auto 0; max-width: 440px; }
  .bk-panelmap-m { width: 100%; height: auto; display: block; overflow: visible; }
  .bk-panelmap-m .bk-panelmap__img { filter: drop-shadow(0 0 0.6px var(--stage-rim)) drop-shadow(0 0 0.6px var(--stage-rim)) drop-shadow(0 28px 32px rgba(0, 0, 0, .25)); }
  .bk-panelmap-m .bk-panelmap__line { stroke-width: 3; }
  .bk-panelmap-m .bk-panelmap__dot { stroke-width: 4.5; }
  .bk-panelmap-m__name { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.01em; fill: var(--ink); }
  .bk-panelmap-m__note { font-family: var(--font-sans); font-size: 23px; fill: var(--ink-muted); }
}

/* Phones: the menu folds into a button and slides down from under the header bar */
.bk-burger { display: none; }
.bk-scrim { display: none; }
.bk-navclip { display: contents; }
@media (max-width: 720px) {
  .bk-header .bk-wrap { justify-content: space-between; }
  .bk-burger { display: grid; align-content: center; justify-items: center; gap: 5px; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; border-radius: var(--radius-sm); }
  .bk-burger i { display: block; width: 22px; height: 2px; background: currentColor; transition: transform 280ms cubic-bezier(.2, .8, .2, 1), opacity 180ms ease; }
  .bk-header.is-open .bk-burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .bk-header.is-open .bk-burger i:nth-child(2) { opacity: 0; }
  .bk-header.is-open .bk-burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .bk-burger:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .bk-navclip { display: block; position: absolute; top: 100%; left: 0; right: 0; z-index: 1; overflow: hidden; pointer-events: none; }
  .bk-header .bk-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; overflow: visible;
    padding: var(--space-2) var(--space-8) var(--space-8); background: var(--slab); border-bottom: 1px solid rgba(255, 255, 255, .1);
    transform: translate3d(0, calc(-100% - 2px), 0); visibility: hidden; will-change: transform; backface-visibility: hidden;
    transition: transform 260ms cubic-bezier(.5, 0, .75, 0), visibility 0s linear 260ms; }
  .bk-header.is-open .bk-nav { transform: translate3d(0, 0, 0); visibility: visible; pointer-events: auto;
    transition: transform 380ms cubic-bezier(.16, 1, .3, 1), visibility 0s; }
  .bk-header .bk-nav a { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; white-space: normal;
    padding: var(--space-4) 0 var(--space-4) var(--space-4); border-bottom: 1px solid rgba(255, 255, 255, .1); border-left: 3px solid transparent; color: var(--on-slab-muted); }
  .bk-header .bk-nav a:last-child { border-bottom: 0; }
  .bk-header .bk-nav a[aria-current="page"] { color: var(--on-slab); border-left-color: var(--bonk-amber); }
  .bk-header--paper .bk-nav { background: var(--paper); }
  .bk-header--paper .bk-nav, .bk-header--paper .bk-nav a { border-bottom-color: var(--line); }
  .bk-header--paper .bk-nav a { color: var(--ink-muted); }
  .bk-header--paper .bk-nav a[aria-current="page"] { color: var(--ink); }
  /* The links are part of the panel and show with it: no fade of their own, which on a phone's first open
     (panel not drawn yet) left them blank for a moment */
  .bk-scrim { display: block; position: fixed; inset: var(--header-height) 0 0 0; z-index: -1; background: rgba(20, 20, 20, .45); opacity: 0; pointer-events: none; transition: opacity 260ms ease; }
  .bk-header.is-open .bk-scrim { opacity: 1; pointer-events: auto; }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .bk-header .bk-nav, .bk-header.is-open .bk-nav, .bk-header .bk-nav a, .bk-burger i { transition-duration: 0s !important; transition-delay: 0s !important; }
}
/* Crossing the phone breakpoint (a resize, a rotation) moves the menu without its animation, so it never flashes */
.bk-header.is-still .bk-nav, .bk-header.is-still .bk-nav a, .bk-header.is-still .bk-scrim, .bk-header.is-still .bk-burger i { transition: none !important; }

/* Phones: more room at the edges */
@media (max-width: 640px) {
  .bk-wrap { padding: 0 var(--space-8); }
}
@media (max-width: 640px) {
  .bk-toc { grid-template-columns: 1fr; margin-top: var(--space-12); }
  .bk-toc a, .bk-toc a + a, .bk-toc a:nth-child(3) { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: var(--space-4) 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .bk-toc b { font-size: 21px; white-space: nowrap; }
  .bk-toc span { text-align: right; }
}
@media (max-width: 640px) { .bk-knob { display: none; } }

/* Projects index: a catalogue */
body { margin: 0; }
.bk-cathero { padding: var(--space-24) 0 var(--space-16); }
.bk-cathead { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
.bk .bk-cathead__title { font-family: var(--font-display); font-size: 144px; line-height: .86; font-weight: 700; letter-spacing: -0.05em; margin: 0; }
.bk-cathead__sub { margin: 0; max-width: 620px; font-family: var(--font-display); font-size: 26px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.bk-catindex { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.bk-catindex a { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.bk-catindex b { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.bk-catindex span { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.bk-catindex a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.bk-catindex__sq { width: 14px; height: 14px; background: var(--tile); }
.bk-catindex__sq--white { box-shadow: inset 0 0 0 1px var(--ink); }

.bk-cat { padding-bottom: var(--space-24); }
.bk-catrow { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-16); padding: var(--space-16) 0; border-top: 1px solid var(--line); scroll-margin-top: var(--header-height); }
.bk-catrow:last-child { padding-bottom: 0; }
.bk-cattile { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--tile); color: var(--on-bonk); text-decoration: none; overflow: hidden; }
.bk-cattile--white { box-shadow: inset 0 0 0 1px var(--line); }
.bk-cattile svg { width: 30%; height: auto; display: block; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
a.bk-cattile:hover svg { transform: scale(1.06); }
.bk-cattile__num { position: absolute; top: var(--space-6); left: var(--space-6); font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1; }
.bk-catinfo { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.bk-catinfo__meta { margin: 0; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--ink-muted); }
.bk .bk-catinfo__name { font-family: var(--font-display); font-size: 64px; line-height: .95; font-weight: 700; letter-spacing: -0.04em; margin: var(--space-4) 0 var(--space-6); }
.bk-catinfo__text { font-size: 19px; line-height: 1.5; color: var(--ink-muted); max-width: 460px; margin: 0; }
.bk-catinfo__more { margin-top: var(--space-6); }
.bk-catinfo__facts { margin: auto 0 0; padding-top: var(--space-8); width: 100%; }
.bk-catinfo__facts li { grid-template-columns: 110px 1fr; }
@media (max-width: 1100px) { .bk .bk-cathead__title { font-size: 112px; } }
@media (max-width: 900px) {
  .bk-cathead { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }
  .bk-catrow { grid-template-columns: 1fr; gap: var(--space-8); padding: var(--space-12) 0; }
  .bk-catinfo__facts { margin-top: var(--space-8); padding-top: 0; }
}
@media (max-width: 640px) {
  .bk-cathero { padding: var(--space-12) 0 var(--space-12); }
  .bk-cathead { gap: var(--space-6); }
  .bk-cathead__sub { font-size: 21px; padding-bottom: 0; }
  .bk .bk-cathead__title { font-size: clamp(48px, 15vw, 112px); }
  .bk-catrow { gap: var(--space-6); padding: var(--space-12) 0 var(--space-12); }
  .bk .bk-catinfo__name { font-size: 44px; margin: var(--space-3) 0 var(--space-4); }
  .bk-catinfo__text { font-size: 17px; }
  .bk-cattile__num { top: var(--space-4); left: var(--space-4); font-size: 17px; }
  .bk-catinfo__facts li { grid-template-columns: 96px 1fr; }
}
.bk-facts li > span { min-width: 0; overflow-wrap: anywhere; }

/* Contact */
.bk-contact__email a { color: inherit; text-decoration: none; background-image: linear-gradient(var(--bonk-amber), var(--bonk-amber)); background-size: 100% 3px; background-position: 0 100%; background-repeat: no-repeat; }
.bk-contact__email a:hover { background-size: 100% 100%; }
.bk-contactsec { padding-bottom: var(--space-24); }
.bk-contact { border-top: 2px solid var(--ink); }
.bk-contact__row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-12); padding: var(--space-12) 0; border-bottom: 1px solid var(--line); }
.bk-contact__label { margin: 0; padding-top: 12px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--ink-muted); }
.bk-contact__email { margin: 0; font-family: var(--font-display); font-size: 56px; line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); overflow-wrap: anywhere; }
.bk-contact__text { margin: 0; padding-top: 4px; font-family: var(--font-display); font-size: 24px; line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; max-width: 620px; }
.bk-contact__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }
.bk-contact__actions svg { width: 16px; height: 16px; }
.bk .bk-contact__note { margin: var(--space-6) 0 0; color: var(--ink-muted); max-width: 520px; }
@media (max-width: 900px) {
  .bk-contact__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); padding: var(--space-8) 0; }
  .bk-contact__label { padding-top: 0; }
}
@media (max-width: 640px) {
  .bk-contact__email { font-size: clamp(24px, 7.4vw, 56px); }
  .bk-contact__text { font-size: 20px; }
}

/* Project page, upright instruments: text and figures left, the unit right */
.bk-uphero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); grid-template-areas: "text unit" "figs unit"; column-gap: var(--space-16); align-items: end; margin-top: var(--space-8); }
.bk-uphero__text { grid-area: text; align-self: center; }
.bk-uphero .bk-p2hero__name { font-size: 112px; line-height: .9; }
.bk-uphero .bk-p2hero__lead { margin-top: var(--space-8); max-width: 480px; padding-bottom: 0; }
.bk-uphero__unit { grid-area: unit; position: relative; isolation: isolate; display: grid; place-items: center; padding: var(--space-8) 0; }
.bk-uphero__unit::before { content: ""; position: absolute; z-index: -1; inset: -6% -30%; background: radial-gradient(closest-side, var(--stage-glow), transparent); opacity: .9; pointer-events: none; }
.bk-uphero__unit img { display: block; width: 100%; max-width: 100%; max-height: 600px; height: auto; object-fit: contain; filter: drop-shadow(0 0 0.6px var(--stage-rim)) drop-shadow(0 0 0.6px var(--stage-rim)) drop-shadow(0 28px 32px rgba(0, 0, 0, .25)); }
.bk-uphero__figs { grid-area: figs; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-6); margin-top: var(--space-12); }
.bk-uphero__figs > div:nth-child(3) { padding-left: 0; border-left: 0; }

/* Photo strip: one large, two stacked */
.bk-photos { padding-bottom: var(--space-24); }
.bk-photos__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: 1fr 1fr; gap: var(--space-4); height: clamp(420px, 50vw, 660px); }
.bk-photos__grid figure { margin: 0; overflow: hidden; background: var(--paper-sunk); }
.bk-photos__grid figure:first-child { grid-row: 1 / span 2; }
.bk-photos__grid img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .bk-uphero { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); column-gap: var(--space-8); }
  .bk-uphero .bk-p2hero__name { font-size: 72px; }
  .bk-uphero__unit img { max-height: 460px; }
}
@media (max-width: 640px) {
  .bk-uphero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "unit" "figs"; }
  .bk-uphero .bk-p2hero__name { font-size: clamp(44px, 13vw, 72px); }
  .bk-uphero .bk-p2hero__lead { margin-top: var(--space-6); }
  .bk-uphero__unit { padding: var(--space-12) 0 var(--space-4); }
  .bk-uphero__unit img { max-height: 440px; max-width: 78%; }
  .bk-photos { padding-bottom: var(--space-16); }
  .bk-photos__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; gap: var(--space-3); }
  .bk-photos__grid figure:first-child { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .bk-photos__grid figure { aspect-ratio: 1 / 1; }
}
@media (max-width: 640px) { .bk-intro { gap: var(--space-8); } }

/* Docs shell, contained: three columns inside the site container, on paper */
:root { --docsbar-height: 76px; }  /* the docs bar on stacked layouts: 8px more above and below its two lines */
.bk-docsbar { display: none; }
.bk-docsclip { display: contents; }
.bk-docs { grid-template-columns: 220px minmax(0, 1fr) 180px; column-gap: var(--space-12); align-items: start; }
.bk-docs__nav { position: sticky; top: calc(var(--header-height) + var(--space-6)); max-height: calc(100vh - var(--header-height) - var(--space-12)); overflow-y: auto; background: none; border-right: 1px solid var(--line); padding: var(--space-12) var(--space-6) var(--space-8) 0; margin-top: 0; }
.bk-docs__main { background: none; padding: var(--space-12) 0 var(--space-24); }
.bk-docs__toc { position: sticky; top: calc(var(--header-height) + var(--space-6)); padding: var(--space-12) 0 var(--space-8); }
.bk-docs__search { background: var(--paper-raised); }
@media (max-width: 1100px) {
  .bk-docs { grid-template-columns: 200px minmax(0, 1fr); column-gap: var(--space-8); }
  .bk-docs__toc { display: none; }
}
/* Tablets and phones: the docs menu folds into a bar under the header and slides down as a sheet */
@media (max-width: 900px) {
  .bk-docs { grid-template-columns: minmax(0, 1fr); }
  .bk-docs__main { padding: var(--space-8) 0 var(--space-16); }
  .bk-docsbar { display: block; position: sticky; top: var(--header-height); z-index: 9; background: var(--paper); border-bottom: 1px solid var(--line); }
  .bk-docsbar__btn { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); width: 100%; height: var(--docsbar-height); padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; text-align: left; font: inherit; }
  .bk-docsbar__btn span { display: grid; gap: 2px; min-width: 0; }
  .bk-docsbar__btn small { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }
  .bk-docsbar__btn b { font-family: var(--font-display); font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bk-docsbar__btn svg { width: 20px; height: 20px; flex: none; transition: transform 280ms cubic-bezier(.2, .8, .2, 1); }
  .bk-docs-open .bk-docsbar__btn svg { transform: rotate(180deg); }
  .bk-docsbar__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .bk-docsclip { display: block; position: fixed; z-index: 8; left: 0; right: 0; top: calc(var(--header-height) + var(--docsbar-height) + 1px); bottom: 0; overflow: hidden; pointer-events: none; }
  .bk-docsclip::before { content: ""; position: absolute; inset: 0; background: rgba(20, 20, 20, .45); opacity: 0; transition: opacity 260ms ease; }
  .bk-docs-open .bk-docsclip { pointer-events: auto; }
  .bk-docs-open .bk-docsclip::before { opacity: 1; }
  .bk-docs__nav { position: relative; top: 0; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; border-right: 0; border-bottom: 1px solid var(--line); background: var(--paper); padding: var(--space-6) var(--space-8) var(--space-12);
    transform: translate3d(0, calc(-100% - 2px), 0); visibility: hidden; will-change: transform;
    transition: transform 260ms cubic-bezier(.5, 0, .75, 0), visibility 0s linear 260ms; }
  .bk-docs-open .bk-docs__nav { transform: translate3d(0, 0, 0); visibility: visible; transition: transform 380ms cubic-bezier(.16, 1, .3, 1), visibility 0s; }
  .bk-docs__group a { padding: 9px 0 9px var(--space-4); font-size: 16px; }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .bk-docs__nav, .bk-docs-open .bk-docs__nav, .bk-docsbar__btn svg { transition-duration: 0s !important; }
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + var(--space-6)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 900px) { html { scroll-padding-top: calc(var(--header-height) + var(--docsbar-height) + 1px + var(--space-4)); } }
.bk-docs__toc a { transition: color .15s ease; }

/* The project's colour field: one full-width section per project page */
.bk-projfield { padding: var(--space-24) 0; background: var(--project-field, var(--project)); color: var(--on-bonk); }
.bk-projfield .h1 { color: var(--on-bonk); }
.bk-projfield .bk-feat2 { border-top-color: var(--on-bonk); }
.bk .bk-projfield .bk-feat2 h3 { color: var(--on-bonk); }
.bk-projfield .bk-feat2 p { color: var(--on-bonk); opacity: .82; }
.bk-projfield[style*="bonk-white"], .bk-proj[style*="--project-field:var(--bonk-white)"] .bk-projfield { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
@media (max-width: 640px) { .bk-projfield { padding: var(--space-16) 0; } }

/* Contact: the message form beside the other ways to reach Johannes */
.bk-contactgrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-24); border-top: 2px solid var(--ink); padding-top: var(--space-12); align-items: start; }
.bk-form { display: grid; gap: var(--space-6); }
.bk-form[hidden], .bk-form__done[hidden] { display: none; }
.bk-form .h2 { margin: 0 0 var(--space-2); }
.bk-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.bk-field { display: grid; gap: var(--space-2); }
.bk-field label { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink); }
.bk-field label span { font-family: var(--font-sans); font-weight: 400; color: var(--ink-muted); margin-left: var(--space-2); font-size: 14px; }
.bk-field input, .bk-field textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease; }
.bk-field input { height: 48px; }
.bk-field textarea { min-height: 200px; resize: vertical; line-height: 1.55; }
.bk-field input:hover, .bk-field textarea:hover { border-color: var(--ink-muted); }
.bk-field input:focus, .bk-field textarea:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.bk-field.is-bad input, .bk-field.is-bad textarea { border-color: var(--red-text); box-shadow: 0 0 0 1px var(--red-text); }
.bk-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bk .bk-form__error { margin: 0; color: var(--red-text); font-weight: 600; }
.bk-form__foot { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.bk .bk-form__note { margin: 0; color: var(--ink-muted); font-size: 14px; max-width: 360px; }
.bk-form .bk-btn[disabled] { opacity: .6; cursor: progress; }
.bk-form__done { padding: var(--space-8) 0; display: grid; gap: var(--space-4); justify-items: start; outline: none; }
.bk .bk-form__done p { margin: 0; color: var(--ink-muted); }
.bk-form__done button { background: none; border: 0; border-bottom: 2px solid var(--bonk-amber); padding: 0 0 2px; cursor: pointer; font: inherit; font-weight: 600; color: var(--ink); }
.bk-contactaside { display: grid; gap: var(--space-8); }
.bk-contactaside__item { display: grid; gap: var(--space-2); justify-items: start; padding-bottom: var(--space-8); border-bottom: 1px solid var(--line); }
.bk-contactaside__item:last-child { border-bottom: 0; padding-bottom: 0; }
.bk .bk-contactaside__item p { margin: 0; }
.bk-contactaside .bk-contact__label { padding-top: 0; }
.bk .bk-contactaside__big { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.bk-contactaside__big a { color: inherit; text-decoration: none; background-image: linear-gradient(var(--bonk-amber), var(--bonk-amber)); background-size: 100% 3px; background-position: 0 100%; background-repeat: no-repeat; }
.bk-contactaside .bk-textlink { margin-top: var(--space-2); }
@media (max-width: 900px) {
  .bk-contactgrid { grid-template-columns: minmax(0, 1fr); gap: var(--space-16); }
}
@media (max-width: 640px) {
  .bk-form__row { grid-template-columns: minmax(0, 1fr); }
  .bk-form__foot .bk-btn { width: 100%; justify-content: center; }
}

/* Buttons: one calm hover for all of them */
.bk-btn { --ease: cubic-bezier(.2, .8, .2, 1); transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.bk-btn:hover { transform: translateY(-1px); }
.bk-btn:active { transform: translateY(1px); box-shadow: none; transition-duration: .08s; }
.bk-btn--primary:hover, .bk-proj .bk-btn--primary:hover { background: color-mix(in srgb, var(--bonk-amber) 84%, #fff); border-color: transparent; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .55); }
.bk-proj .bk-btn--primary:hover { background: color-mix(in srgb, var(--project) 84%, #fff); }
.bk-btn--secondary:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.bk-btn--on-slab:hover { border-color: var(--on-slab); background: rgba(255, 255, 255, .08); }
.bk-textlink, .bk-link, .bk-catindex a, .bk-docs__group a, .bk-footer a, .bk-step, .bk-product { transition: color .2s cubic-bezier(.2, .8, .2, 1), border-color .2s cubic-bezier(.2, .8, .2, 1), background-color .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s cubic-bezier(.2, .8, .2, 1), transform .2s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { .bk-btn, .bk-btn:hover { transition: none; transform: none; } }

/* Documentation articles */
.bk .bk-docs__title { font-size: 48px; line-height: 1.05; letter-spacing: -0.03em; margin: 0; }
.bk-docs__article { max-width: 760px; }
.bk-docs__article > p, .bk-docs__article > ul, .bk-docs__article > ol { max-width: var(--prose); }
.bk .bk-docs__lead { margin-top: var(--space-6); color: var(--ink-muted); }
.bk-docs__article > p { margin: var(--space-4) 0 0; line-height: 1.65; }
.bk-docs__article h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin: var(--space-12) 0 var(--space-3); }
.bk-docs__article ul, .bk-docs__article ol { margin: var(--space-4) 0 0; padding-left: 0; list-style: none; display: grid; gap: var(--space-3); }
.bk-docs__article ul > li { position: relative; padding-left: var(--space-6); line-height: 1.6; }
.bk-docs__article ul > li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; background: var(--bonk-red); }
.bk-docs__article ol { counter-reset: li; }
.bk-docs__article ol > li { position: relative; padding-left: var(--space-8); counter-increment: li; }
.bk-docs__article ol > li::before { content: counter(li); position: absolute; left: 0; font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); top: .15em; }
.bk-docs__article .bk-code { margin-top: var(--space-6); }
.bk-docs__article :is(p, li, td):not(.bk-crumb) > a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--bonk-amber), var(--bonk-amber)); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .2s cubic-bezier(.2, .8, .2, 1); }

.bk-docs__article .bk-pager a { background: none; }
.bk .bk-note { margin-top: var(--space-6); padding: var(--space-4) var(--space-6); border-left: 4px solid var(--bonk-amber); background: var(--paper-raised); }
.bk-note b { display: block; font-family: var(--font-display); font-size: 14px; margin-bottom: var(--space-1); }
.bk-docs__fig { margin: var(--space-6) 0 0; background: var(--paper-raised); border: 1px solid var(--line); }
.bk-docs__fig img { display: block; width: 100%; height: auto; }
.bk-docs__table { margin-top: var(--space-6); overflow-x: auto; }
.bk-docs__table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bk-docs__table th { text-align: left; font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--ink-muted); padding: 0 var(--space-4) var(--space-3) 0; border-bottom: 2px solid var(--ink); }
.bk-docs__table td { padding: var(--space-3) var(--space-4) var(--space-3) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.bk-pager--two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-16); padding-top: var(--space-8); border-top: 1px solid var(--line); }
.bk-pager--two a { display: grid; gap: var(--space-1); padding: var(--space-4) var(--space-6); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s cubic-bezier(.2, .8, .2, 1), transform .2s cubic-bezier(.2, .8, .2, 1); }
.bk-pager--two a:hover { border-color: var(--ink); transform: translateY(-1px); }
.bk-pager--two a.next { text-align: right; }
.bk-pager--two small { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.bk-pager--two strong { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.bk-docs__search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); outline: none; padding: 0; }
.bk-docs__search input::placeholder { color: var(--ink-muted); }
.bk-docs__search input::-webkit-search-cancel-button { display: none; }
.bk-docs__search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.bk .bk-docs__none { font-size: 14px; color: var(--ink-muted); margin: 0 0 var(--space-6); }
.bk-docs__group[hidden], .bk-docs__group li[hidden] { display: none; }
@media (max-width: 640px) {
  .bk .bk-docs__title { font-size: 36px; }
  .bk-pager--two { grid-template-columns: 1fr; }
  .bk-pager--two a.next { text-align: left; }
}
.bk-nav a { transition: color .2s cubic-bezier(.2, .8, .2, 1); }
.bk-pager--two a { text-align: left; }
.bk-pager--two a.next { text-align: right; }
@media (max-width: 640px) { .bk-pager--two a.next { text-align: left; } }
.bk-docs__article :not(pre) > code { overflow-wrap: anywhere; word-break: break-word; }

/* =====================================================================
   Interaction: one system for everything you can click
   - State changes (hover, current, focus): 300ms, one ease-out curve.
   - Surfaces (buttons and cards): the background takes 8% of its own
     foreground colour; a bordered surface's border turns to that colour.
     Nothing lifts, scales or casts a shadow: the system is flat.
   - Press: every surface moves down 1px, in 100ms.
   - Links: a 2px bonk-amber underline that turns to the text colour.
     Menu links go from muted to full colour.
   - Movement (menus, sheets) keeps its own timing: 380ms in, 260ms out.
   ===================================================================== */
:root { --motion-state: 300ms; --motion-press: 100ms; --motion-ease: cubic-bezier(.2, .8, .2, 1); --hover-mix: 8%; --hover-mix-btn: 18%; }  /* buttons answer a hover more clearly than cards */

/* Surfaces */
.bk-btn, .bk-step, .bk-pager--two a, .bk-product, .bk-product__panel, .bk-product__body, .bk-cattile, .bk-code__copy, .t96-unit3d .zoom button {
  transition: background-color var(--motion-state) var(--motion-ease), border-color var(--motion-state) var(--motion-ease), color var(--motion-state) var(--motion-ease), transform var(--motion-press) var(--motion-ease);
}
.bk-btn:hover, .bk-step:hover, .bk-pager--two a:hover, .bk-product:hover, a.bk-cattile:hover { transform: none; box-shadow: none; }
.bk-btn:active, .bk-step:active, .bk-pager--two a:active, .bk-product:active, a.bk-cattile:active, .bk-code__copy:active, .t96-unit3d .zoom button:active { transform: translateY(1px); }

.bk-btn--primary:hover { background: color-mix(in srgb, var(--bonk-amber), var(--on-bonk) var(--hover-mix-btn)); border-color: transparent; }
.bk-proj .bk-btn--primary:hover { background: color-mix(in srgb, var(--project), var(--on-bonk) var(--hover-mix-btn)); border-color: transparent; }
.bk-btn--secondary:hover { background: color-mix(in srgb, transparent, var(--ink) var(--hover-mix-btn)); border-color: var(--ink); }
.bk-btn--on-slab:hover { background: color-mix(in srgb, transparent, var(--on-slab) var(--hover-mix-btn)); border-color: var(--on-slab); }

.bk-step:hover, .bk-pager--two a:hover { background: color-mix(in srgb, var(--paper-raised), var(--ink) var(--hover-mix)); border-color: var(--ink); }
.bk-pager--two a { background: var(--paper-raised); }
.bk-product:hover { border-color: var(--ink); }
.bk-product:hover .bk-product__body { background: color-mix(in srgb, var(--paper-raised), var(--ink) var(--hover-mix)); }
.bk-product:hover .bk-product__panel { filter: none; background-color: color-mix(in srgb, var(--panel-bg, currentColor), var(--on-bonk) var(--hover-mix)); }
.bk-product__panel--red { --panel-bg: var(--bonk-red); } .bk-product__panel--amber { --panel-bg: var(--bonk-amber); }
.bk-product__panel--white { --panel-bg: var(--bonk-white); } .bk-product__panel--mint { --panel-bg: var(--bonk-mint); }
a.bk-cattile:hover { background: color-mix(in srgb, var(--tile), var(--on-bonk) var(--hover-mix)); }
a.bk-cattile:hover svg { transform: none; }
.bk-code__copy:hover { color: var(--on-slab); background: color-mix(in srgb, transparent, var(--on-slab) var(--hover-mix)); border-color: var(--on-slab); }
.t96-unit3d .zoom button:hover { background: color-mix(in srgb, var(--paper-raised), var(--ink) var(--hover-mix)); border-color: var(--ink); }

/* Links in running text and on their own */
.bk-link, .bk-docs__article :is(p, li, td):not(.bk-crumb) > a, .bk-contact__email a, .bk-contactaside__big a {
  color: var(--ink); background: none; text-decoration: underline; text-decoration-color: var(--bonk-amber); text-decoration-thickness: 2px; text-underline-offset: 4px;
  transition: text-decoration-color var(--motion-state) var(--motion-ease), color var(--motion-state) var(--motion-ease);
}
.bk-link:hover, .bk-docs__article :is(p, li, td):not(.bk-crumb) > a:hover, .bk-contact__email a:hover, .bk-contactaside__big a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; background: none; }
.bk-docs__article .bk-pager--two a { text-decoration: none; }
.bk-textlink, .bk-form__done button { transition: border-color var(--motion-state) var(--motion-ease), color var(--motion-state) var(--motion-ease); }
.bk-textlink:hover, .bk-form__done button:hover { border-color: currentColor; }

/* Menu links: muted to full */
.bk-nav a, .bk-docs__group a, .bk-docs__toc a, .bk-footer a, .bk-crumb a { transition: color var(--motion-state) var(--motion-ease), border-color var(--motion-state) var(--motion-ease); }
.bk-header .bk-nav a { transition: color var(--motion-state) var(--motion-ease), border-color var(--motion-state) var(--motion-ease); }
@media (max-width: 720px) {
  .bk-header .bk-nav a { transition: color var(--motion-state) var(--motion-ease), border-color var(--motion-state) var(--motion-ease); }
}

/* Inputs share the same timing */
.bk-field input, .bk-field textarea, .bk-docs__search { transition: border-color var(--motion-state) var(--motion-ease), box-shadow var(--motion-state) var(--motion-ease), background-color var(--motion-state) var(--motion-ease); }

/* One focus ring for everything */
.bk a:focus-visible, .bk button:focus-visible, .bk input:focus-visible, .bk textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .bk *, .bk *::before, .bk *::after { transition-duration: 0s !important; }
  .bk-btn:active, .bk-step:active, .bk-pager--two a:active, .bk-product:active, a.bk-cattile:active { transform: none; }
}
/* Button text colours win over the inherited link colour (.bk a) */
.bk a.bk-btn--primary, .bk .bk-btn--primary { color: var(--on-bonk); }
.bk a.bk-btn--secondary, .bk .bk-btn--secondary { color: var(--ink); }
.bk a.bk-btn--on-slab, .bk .bk-btn--on-slab { color: var(--on-slab); }

/* Docs menu: fixed row heights, so the menu keeps its shape while the web fonts arrive */
.bk-docs { grid-template-columns: 248px minmax(0, 1fr) 180px; }
.bk-docs__group h2 { height: 20px; line-height: 20px; margin: 0 0 var(--space-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-docs__group a { height: 30px; line-height: 20px; padding: 5px 0 5px var(--space-4); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; }
@media (max-width: 1100px) { .bk-docs { grid-template-columns: 232px minmax(0, 1fr); } }
@media (max-width: 900px) {
  .bk-docs { grid-template-columns: minmax(0, 1fr); }
  .bk-docs__group a { height: 40px; line-height: 22px; padding: 9px 0 9px var(--space-4); font-size: 16px; }
}
/* The docs menu and On this page sit exactly under the header, so sticky never has to nudge them */
.bk-docs__nav, .bk-docs__toc { top: var(--header-height); }
.bk-docs__nav { max-height: calc(100vh - var(--header-height)); }
@media (max-width: 900px) { .bk-docs__nav { top: 0; max-height: 100%; } }

/* The one exception to square corners: code blocks and colour panels get a slight rounding */
:root { --radius-panel: 6px; }
.bk-code, .bk-cattile { border-radius: var(--radius-panel); }
.bk-cattile--white { box-shadow: inset 0 0 0 1px var(--line); }

/* Docs: the same breathing room under the header as the other pages (96px, 48px on phones), all three columns on one line */
.bk-docs__main { padding-top: var(--space-24); }
.bk-docs__nav { padding-top: var(--space-24); }
.bk-docs__toc { padding-top: var(--space-24); }
.bk .bk-docs__main > .bk-crumb { margin-top: 0; margin-bottom: var(--space-4); }
@media (max-width: 900px) { .bk-docs__main { padding-top: var(--space-12); } .bk-docs__nav { padding-top: var(--space-6); } }

/* Controls in the docs (pager cards, step cards, crumbs) carry no underline: links in running text do */
.bk .bk-pager--two a, .bk .bk-step, .bk .bk-crumb a { text-decoration: none; background: none; }
.bk .bk-pager--two a { background: var(--paper-raised); }
.bk .bk-pager--two a:hover { background: color-mix(in srgb, var(--paper-raised), var(--ink) var(--hover-mix)); }
.bk .bk-crumb a { color: var(--ink); }
.bk .bk-crumb a:hover { color: var(--ink-muted); }

/* Form privacy line */
.bk .bk-form__privacy { margin: 0; padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--ink-muted); max-width: 560px; }

/* Feedback: instrument picker and the what-is-it-about switch */
.bk-fbwrap { max-width: 760px; border-top: 2px solid var(--ink); padding-top: var(--space-12); }
.bk-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.bk-fieldset legend { padding: 0; margin-bottom: var(--space-3); font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink); }
.bk-devpicks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.bk-devpick { position: relative; display: grid; gap: var(--space-2); cursor: pointer; }
.bk-devpick input, .bk-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-devpick__tile { display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--tile); border-radius: var(--radius-panel); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--motion-state) var(--motion-ease), background-color var(--motion-state) var(--motion-ease), transform var(--motion-press) var(--motion-ease); }
.bk-devpick__tile svg { width: 46%; height: auto; display: block; }
.bk-devpick__name { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink-muted); transition: color var(--motion-state) var(--motion-ease); }
.bk-devpick:hover .bk-devpick__tile { background: color-mix(in srgb, var(--tile), var(--on-bonk) var(--hover-mix)); }
.bk-devpick:active .bk-devpick__tile { transform: translateY(1px); }
.bk-devpick input:checked + .bk-devpick__tile { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.bk-devpick input:checked ~ .bk-devpick__name { color: var(--ink); }
.bk-devpick input:focus-visible + .bk-devpick__tile { outline: 2px solid var(--focus); outline-offset: 6px; }
.bk-devpicks.is-bad .bk-devpick__tile { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 2px var(--red-text); }
.bk-segs { display: inline-flex; border: 1px solid var(--line-strong); }
.bk-seg { position: relative; cursor: pointer; }
.bk-seg + .bk-seg { border-left: 1px solid var(--line-strong); }
.bk-seg span { display: inline-flex; align-items: center; height: 46px; padding: 0 var(--space-6); font-size: 15px; font-weight: 600; color: var(--ink-muted); transition: background-color var(--motion-state) var(--motion-ease), color var(--motion-state) var(--motion-ease); }
.bk-seg:hover span { background: color-mix(in srgb, transparent, var(--ink) var(--hover-mix)); color: var(--ink); }
.bk-seg input:checked + span { background: var(--ink); color: var(--paper); }
.bk-seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.bk-field__hint { font-size: 13px; color: var(--ink-muted); }
.bk-ref { font-family: var(--font-mono); font-weight: 500; letter-spacing: .04em; color: var(--ink); }
.bk-404links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); border-top: 2px solid var(--ink); padding-top: var(--space-12); }
.bk-404links .bk-step h2 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin: 0 0 var(--space-2); }
.bk-404links .bk-step p { margin: 0; color: var(--ink-muted); }
@media (max-width: 640px) {
  .bk-devpicks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-segs { display: flex; }
  .bk-seg { flex: 1; }
  .bk-seg span { justify-content: center; width: 100%; padding: 0 var(--space-3); }
  .bk-404links { grid-template-columns: minmax(0, 1fr); }
}

/* Page tops: on phones 48px above and below the first block, as on the machines and contact pages.
   On wider screens the home heading's letters start as far under the header as the Machines heading's (88px). */
.bk-pagetop { padding: var(--space-24) 0; }
.bk-wrap.bk-homehero { padding-top: 88px; padding-bottom: 112px; }
/* About, stacked: the heading 48px under the photo */
@media (max-width: 900px) { .bk .bk-aboutgrid { row-gap: var(--space-12) !important; } }
@media (max-width: 640px) {
  .bk-pagetop { padding-top: var(--space-12); padding-bottom: var(--space-12); }
  .bk-wrap.bk-homehero { padding-top: var(--space-12); padding-bottom: var(--space-12); }
}
/* Page ends: once the layout stacks, the last block on paper sits 64px above the footer, as on the machine and docs pages */
@media (max-width: 900px) { .bk-cat, .bk-contactsec { padding-bottom: var(--space-16); } }
/* Small text on bonk-red needs a darker ink than on-bonk for 4.5:1 */
.bk-cattile--red .bk-cattile__num, .bk-proj[style*="--project:var(--bonk-red)"] .bk-btn--primary { color: #141414; }
/* The tiles are links: keep their ink on the bright tile colour in both themes */
.bk a.bk-cattile { color: var(--on-bonk); }

body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:20;background:var(--slab)}
