/* FontPrism — site styles */

@font-face {
  font-family: "StickFigure";
  src: url("../fonts/e626d8e5-6972-4a6c-9e80-9e77c3db5e4f.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "FontPrismVariable";
  src: url("../../FontPrismVariable.ttf?v=bwst-1") format("truetype");
  font-weight: 10 120;
  font-display: block;
}

/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/6258c7b1-9564-499e-b5ac-840f5a07b3cd.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/d5ad255f-f7b0-424d-9144-131e0baad90f.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fb3b8ac7-a818-48fb-b558-8235ac561d2b.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/62a2fd44-e589-4f3a-9482-f612b5d80b8d.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/7c71d92b-5e8c-422f-af1f-f064130f9f40.woff2") 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;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/c85f9e58-2826-46c1-8b17-2a2df2ef7026.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/6258c7b1-9564-499e-b5ac-840f5a07b3cd.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/d5ad255f-f7b0-424d-9144-131e0baad90f.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/fb3b8ac7-a818-48fb-b558-8235ac561d2b.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/62a2fd44-e589-4f3a-9482-f612b5d80b8d.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/7c71d92b-5e8c-422f-af1f-f064130f9f40.woff2") 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;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/c85f9e58-2826-46c1-8b17-2a2df2ef7026.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/6258c7b1-9564-499e-b5ac-840f5a07b3cd.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/d5ad255f-f7b0-424d-9144-131e0baad90f.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fb3b8ac7-a818-48fb-b558-8235ac561d2b.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/62a2fd44-e589-4f3a-9482-f612b5d80b8d.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/7c71d92b-5e8c-422f-af1f-f064130f9f40.woff2") 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;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/c85f9e58-2826-46c1-8b17-2a2df2ef7026.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/4b927413-09a9-42c8-aa50-8bade19c00c2.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/8e56b316-0798-4357-bc9b-3953c25d3561.woff2") 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;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/d615db45-f808-4883-9df8-4d3f4fda1035.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/b0033341-c3b9-4043-9088-9a20ba21ca47.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/80c5cb59-7700-430d-a64c-7c39f0e3f91e.woff2") 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;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/0a1d8e11-a11f-46a3-9441-8c36e87cc5e6.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/b0033341-c3b9-4043-9088-9a20ba21ca47.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/80c5cb59-7700-430d-a64c-7c39f0e3f91e.woff2") 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;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/0a1d8e11-a11f-46a3-9441-8c36e87cc5e6.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/b0033341-c3b9-4043-9088-9a20ba21ca47.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/80c5cb59-7700-430d-a64c-7c39f0e3f91e.woff2") 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;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/0a1d8e11-a11f-46a3-9441-8c36e87cc5e6.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/b0033341-c3b9-4043-9088-9a20ba21ca47.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/80c5cb59-7700-430d-a64c-7c39f0e3f91e.woff2") 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;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/0a1d8e11-a11f-46a3-9441-8c36e87cc5e6.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/b0033341-c3b9-4043-9088-9a20ba21ca47.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/80c5cb59-7700-430d-a64c-7c39f0e3f91e.woff2") 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;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/0a1d8e11-a11f-46a3-9441-8c36e87cc5e6.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  /* Paper theme (default) */
  --bg: #f4efe4;
  --bg-2: #ece6d6;
  --ink: #1a1814;
  --ink-2: #3a352b;
  --ink-3: #6b6557;
  --rule: rgba(26, 24, 20, 0.18);
  --rule-2: rgba(26, 24, 20, 0.08);
  --paper-card: #faf6ec;

  /* Spectrum accents (oklch — same chroma & near-lightness, varied hue) */
  --c-red:    oklch(0.66 0.17 28);
  --c-orange: oklch(0.74 0.16 60);
  --c-yellow: oklch(0.84 0.16 95);
  --c-green:  oklch(0.72 0.15 150);
  --c-cyan:   oklch(0.74 0.12 210);
  --c-blue:   oklch(0.62 0.16 255);
  --c-violet: oklch(0.55 0.17 295);

  --accent: var(--c-blue);

  /* Type */
  --serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "FontPrismVariable", "StickFigure", "Newsreader", serif;

  /* Density */
  --pad-y: clamp(80px, 11vw, 160px);
  --gutter: clamp(24px, 5vw, 80px);
  --col: 1240px;
}

[data-theme="charcoal"] {
  --bg: #15140f;
  --bg-2: #1d1c16;
  --ink: #f1ece0;
  --ink-2: #cfc8b8;
  --ink-3: #8c8675;
  --rule: rgba(241, 236, 224, 0.18);
  --rule-2: rgba(241, 236, 224, 0.08);
  --paper-card: #1a1914;
}

[data-theme="clinical"] {
  --bg: #ffffff;
  --bg-2: #f5f6f8;
  --ink: #0d0f12;
  --ink-2: #2a2f37;
  --ink-3: #6a7280;
  --rule: rgba(13, 15, 18, 0.14);
  --rule-2: rgba(13, 15, 18, 0.06);
  --paper-card: #fbfcfd;
  --accent: oklch(0.55 0.15 255);
}

[data-density="airy"]  { --pad-y: clamp(110px, 14vw, 200px); }
[data-density="tight"] { --pad-y: clamp(56px, 7vw, 96px); }

[data-spectrum="off"] {
  --c-red: var(--ink); --c-orange: var(--ink); --c-yellow: var(--ink-3);
  --c-green: var(--ink); --c-cyan: var(--ink-2); --c-blue: var(--ink);
  --c-violet: var(--ink-2);
  --accent: var(--ink);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  background-image:
    radial-gradient(circle at 0.5px 0.5px, var(--rule-2) 0.5px, transparent 0);
  background-size: 4px 4px;
  background-position: 0 0;
}
[data-theme="clinical"] body { background-image: none; }

a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }

/* ───────── Layout ───────── */
.shell {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: var(--pad-y) 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; }

/* Section eyebrow */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink-3);
}
.eyebrow b { font-weight: 600; color: var(--ink-2); letter-spacing: 0.12em; }

/* Headings */
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.02em; }
h2.title {
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.02;
  font-weight: 300;
  text-wrap: balance;
  max-width: 18ch;
}
h2.title em { font-style: italic; color: var(--ink-2); }
h3.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 12px;
}
p { margin: 0 0 1em; max-width: 60ch; }
p.lede {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  color: var(--ink-2);
  font-weight: 300;
  max-width: 32ch;
}

/* ───────── Topbar ───────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.topbar .wordmark {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 600;
}
.topbar nav { display: flex; gap: 28px; color: var(--ink-3); }
.topbar nav a:hover { color: var(--ink); }
.topbar .meta { color: var(--ink-3); }

/* ───────── Hero ───────── */
.hero {
  padding: clamp(60px, 9vw, 120px) 0 clamp(80px, 10vw, 140px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr auto; }
}
.hero-mark {
  width: clamp(260px, 38vw, 460px);
  height: auto;
  display: block;
  object-fit: contain;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(110px, 22vw, 320px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
}
.hero-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 300;
  color: var(--ink-2);
  max-width: 22ch;
  text-wrap: balance;
  margin-top: 18px;
}
.hero-meta {
  margin-top: clamp(60px, 8vw, 100px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.hero-meta dt { text-transform: uppercase; letter-spacing: 0.14em; font-size: 10px; margin-bottom: 6px; color: var(--ink-3); }
.hero-meta dd { margin: 0; color: var(--ink-2); font-weight: 500; }
@media (max-width: 720px) { .hero-meta { grid-template-columns: repeat(2, 1fr); } }

/* ───────── Pitch ───────── */
.pitch {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 96px);
}
@media (min-width: 900px) {
  .pitch { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}
.pitch .body p {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 56ch;
}
.pitch .body p + p { margin-top: 1em; }
.pitch .body strong { color: var(--ink); font-weight: 500; }
.pull {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.35;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin-top: 2em;
  max-width: 30ch;
}

/* ───────── Anatomy diagram ───────── */
.anatomy {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (min-width: 1000px) {
  .anatomy { grid-template-columns: 1.05fr 0.95fr; }
}
.anatomy-stage {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  aspect-ratio: 5 / 4;
  position: relative;
  overflow: hidden;
}
.anatomy-stage svg { width: 100%; height: 100%; display: block; }
.param-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--rule);
}
.param-list li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  font-family: var(--mono);
  font-size: 13px;
  cursor: default;
  transition: background 160ms ease;
}
.param-list li:hover { background: var(--bg-2); }
.param-list li[aria-current="true"] { background: var(--bg-2); }
.param-list .swatch {
  width: 10px; height: 10px;
  background: currentColor;
  border-radius: 2px;
  margin-top: 4px;
}
.param-list .name { color: var(--ink); font-weight: 500; }
.param-list .desc {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-3);
  font-style: italic;
  text-align: right;
}

/* ───────── Specimen ───────── */
.specimen {
  font-family: var(--display);
  color: var(--ink);
}
.specimen-alphabet {
  font-size: clamp(60px, 8vw, 110px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  word-spacing: 0.1em;
  word-break: break-all;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(30px, 4vw, 60px) 0;
}
.specimen-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.specimen-row .label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  padding-top: 12px;
}
.specimen-row .sample { font-family: var(--display); line-height: 1; }
.s-144 { font-size: clamp(80px, 11vw, 168px); letter-spacing: -0.02em; }
.s-72  { font-size: clamp(48px, 6.5vw, 84px); }
.s-36  { font-size: clamp(28px, 3.4vw, 42px); }
.s-18  { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; }

/* ───────── Variations grid ───────── */
.variations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.variation {
  background: var(--paper-card);
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 220px;
}
.variation .v-glyph {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.variation .v-letter {
  font-family: var(--display);
  font-size: 150px;
  line-height: 0.9;
  color: var(--ink);
  letter-spacing: 0;
}
.variation .v-letter-i {
  font-size: 162px;
}
.variation svg { display: block; max-width: 100%; height: auto; }
.variation .v-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}
.variation .v-meta .v-name { color: var(--ink); font-weight: 500; }
.variation .v-meta code {
  font-family: var(--mono);
  background: transparent;
  color: var(--ink-2);
}

/* ───────── Lineage ───────── */
.lineage {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 64px);
}
@media (min-width: 900px) { .lineage { grid-template-columns: 0.9fr 1.1fr; } }
.timeline {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 0;
  font-family: var(--mono);
  font-size: 13px;
}
.timeline li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline .yr {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}
.timeline .who {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.timeline .what {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-3);
  font-style: italic;
  font-weight: 300;
}
.timeline li.now .yr,
.timeline li.now .who { color: var(--accent); }

/* ───────── CTA ───────── */
.cta {
  border: 1px solid var(--rule);
  background: var(--paper-card);
  padding: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px);
}
@media (min-width: 800px) { .cta { grid-template-columns: 1.2fr 0.8fr; align-items: center; } }
.cta h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
.cta .row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn .arrow { width: 14px; height: 14px; }

.cta-aside {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  border-left: 1px solid var(--rule);
  padding-left: 32px;
  line-height: 1.7;
}
.cta-aside dt { color: var(--ink-2); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 10px; margin-top: 14px; }
.cta-aside dt:first-child { margin-top: 0; }
.cta-aside dd { margin: 4px 0 0; color: var(--ink-3); }

/* ───────── Footer ───────── */
footer {
  border-top: 1px solid var(--rule);
  padding: 48px 0 64px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
footer .left { display: flex; align-items: center; gap: 14px; }
footer .right a { margin-left: 22px; }
footer .right a:hover { color: var(--ink); }

/* ───────── Logo svg ───────── */
.prism-stroke { stroke: var(--ink); fill: none; stroke-width: 1.4; }
.prism-ray-r { stroke: var(--c-red); }
.prism-ray-o { stroke: var(--c-orange); }
.prism-ray-y { stroke: var(--c-yellow); }
.prism-ray-g { stroke: var(--c-green); }
.prism-ray-c { stroke: var(--c-cyan); }
.prism-ray-b { stroke: var(--c-blue); }
.prism-ray-v { stroke: var(--c-violet); }
.prism-ray { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.prism-incoming { stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
[data-spectrum="off"] .prism-ray { stroke-width: 1.6; }

/* glyph anatomy svg lines */
.anat-rule { stroke: var(--ink-3); stroke-width: 0.8; stroke-dasharray: 3 3; }
.anat-rule.active { stroke: var(--accent); stroke-dasharray: none; stroke-width: 1.2; }
.anat-glyph { stroke: var(--ink); stroke-width: 16; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.anat-label {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.anat-label.active { fill: var(--accent); }

/* ───────── Playground ───────── */
.pg {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 1000px) { .pg { grid-template-columns: 1.55fr 1fr; } }
.pg-stage {
  background: var(--paper-card);
  padding: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 56px);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pg-text {
  font-family: var(--display);
  font-variation-settings: "wght" 70;
  font-weight: 70;
  color: var(--ink);
  outline: none;
  display: inline-block;
  text-wrap: balance;
  caret-color: var(--accent);
  cursor: text;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.pg-text:focus {
  outline: 1px solid var(--accent);
  outline-offset: 12px;
}
.pg-controls {
  background: var(--bg-2);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
}
.pg-row {
  display: grid;
  grid-template-columns: 80px 1fr 56px;
  align-items: center;
  gap: 14px;
}
.pg-label {
  color: var(--ink-3);
  letter-spacing: 0.05em;
}
.pg-val {
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pg-row input[type="range"] {
  appearance: none; -webkit-appearance: none;
  height: 18px;
  background: transparent;
  cursor: ew-resize;
  width: 100%;
}
.pg-row input[type="range"]::-webkit-slider-runnable-track {
  height: 1px;
  background: var(--ink-3);
}
.pg-row input[type="range"]::-moz-range-track {
  height: 1px;
  background: var(--ink-3);
}
.pg-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: -6px;
  border: 2px solid var(--bg-2);
  box-shadow: 0 0 0 1px var(--ink);
}
.pg-row input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-2);
  box-shadow: 0 0 0 1px var(--ink);
}
.pg-row-axis .pg-label { color: var(--accent); }
.pg-divider {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-top: 1px solid var(--rule);
  padding: 16px 0 4px;
  margin-top: 4px;
}
.pg-divider em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: var(--ink-3);
}
.pg-seg {
  display: flex;
  border: 1px solid var(--rule);
  background: var(--bg);
}
.pg-seg button {
  flex: 1;
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  padding: 7px 8px;
  color: var(--ink-3);
  cursor: pointer;
  border-right: 1px solid var(--rule);
  letter-spacing: 0.04em;
  transition: color 140ms;
}
.pg-seg button:last-child { border-right: 0; }
.pg-seg button.on {
  background: var(--ink);
  color: var(--bg);
}
.pg-seg button:hover:not(.on) { color: var(--ink); }

.pg-config {
  margin-top: 12px;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}
.pg-config-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.pg-copy {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.06em;
}
.pg-copy:hover { text-decoration: underline; }
.pg-config-body {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre;
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 12px 14px;
  overflow-x: auto;
}

/* tiny utility */
.spacer-lg { height: clamp(40px, 5vw, 80px); }

/* ───────── Disclaimer ───────── */
.disclaimer {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-top: 22px;
  padding: 8px 12px;
  border: 1px dashed var(--rule);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  display: inline-block;
  max-width: 56ch;
}
.disclaimer-inline { margin: -8px 0 28px; }
.divider {
  height: 1px;
  background: var(--rule);
  margin: 24px 0;
}
