/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-13ff14c8cbbd.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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-fd8b74284fe6.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-560980fcddc4.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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-99228c3b93e7.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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-f582230492bf.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-6d5e7fb80500.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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-13ff14c8cbbd.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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-fd8b74284fe6.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-560980fcddc4.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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-99228c3b93e7.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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-f582230492bf.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-6d5e7fb80500.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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-13ff14c8cbbd.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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-fd8b74284fe6.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-560980fcddc4.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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-99228c3b93e7.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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-f582230492bf.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-6d5e7fb80500.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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-13ff14c8cbbd.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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-fd8b74284fe6.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-560980fcddc4.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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-99228c3b93e7.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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-f582230492bf.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/font-6d5e7fb80500.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: 400;
  font-display: swap;
  src: url(../fonts/font-6b5e37b52d26.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/font-eb83d8d40af4.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/font-99e400330f36.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/font-c4064400db37.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/font-b19c2080652a.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-20C4, 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/font-cc27b3047125.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/font-6b5e37b52d26.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/font-eb83d8d40af4.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/font-99e400330f36.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/font-c4064400db37.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/font-b19c2080652a.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-20C4, 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/font-cc27b3047125.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: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/font-a5df16d8135b.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: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/font-a19d936814f1.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/font-699bf2310701.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: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/font-37809322a538.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/font-9b3963915707.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: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/font-a5df16d8135b.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: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/font-a19d936814f1.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/font-699bf2310701.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: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/font-37809322a538.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/font-9b3963915707.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;
}

/* Metric-matched fallbacks for zero font-swap CLS */
@font-face {
  font-family: "Unbounded Fallback";
  src: local("DejaVu Sans"), local("Arial");
  size-adjust: 108%;
  ascent-override: 95%;
  descent-override: 24%;
}
@font-face {
  font-family: "IBM Plex Fallback";
  src: local("DejaVu Sans"), local("Arial");
  size-adjust: 100%;
  ascent-override: 96%;
  descent-override: 25%;
}

:root {
  --bg-canvas: #090b0e;
  --bg-surface: #11161d;
  --bg-elevated: #171e28;
  --bg-code: #090b0e;
  --bg-glass: rgba(17, 22, 29, 0.88);
  --border-hairline: #232d3b;
  --border-strong: #36455a;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-amber: #f59e0b;
  --accent-amber-ink: #090b0e;
  --accent-emerald: #10b981;
  --accent-emerald-ink: #052e16;
  --accent-cyan: #38bdf8;
  --accent-rose: #fb7185;
  --star-pill-bg: rgba(0, 0, 0, 0.24);
  --font-display: "Unbounded", "Unbounded Fallback", system-ui, -apple-system, sans-serif;
  --font-sans: "IBM Plex Sans", "IBM Plex Fallback", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 18px 40px -24px rgba(0, 0, 0, 0.75);
}

[data-theme="light"] {
  --bg-canvas: #faf9f6;
  --bg-surface: #ffffff;
  --bg-elevated: #f2f0ea;
  --bg-code: #f4f6f9;
  --bg-glass: rgba(250, 249, 246, 0.92);
  --border-hairline: #e2dfd7;
  --border-strong: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #526075;
  --accent-amber: #b45309;
  --accent-amber-ink: #ffffff;
  --accent-emerald: #047857;
  --accent-emerald-ink: #ffffff;
  --accent-cyan: #0369a1;
  --accent-rose: #be123c;
  --star-pill-bg: rgba(255, 255, 255, 0.22);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 32px -16px rgba(15, 23, 42, 0.09);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-amber);
  color: var(--accent-amber-ink);
  padding: 0.65rem 1rem;
  font-weight: 600;
  z-index: 200;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 2px;
}

/* Header & Floating Glass Nav */
.site-header {
  position: sticky;
  top: 0.85rem;
  z-index: 100;
  padding: 0 1.25rem;
}

.nav-pill {
  max-width: 78rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-hairline);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn,
.cta-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.icon-btn:hover,
.cta-nav:hover {
  border-color: var(--accent-amber);
}

.cta-nav {
  background: var(--accent-amber);
  color: var(--accent-amber-ink);
  border-color: var(--accent-amber);
}

.star-pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  background: var(--star-pill-bg);
}

.kbd-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 0.05rem 0.35rem;
}

/* Main Page Shell */
.page-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding: 0 1.25rem 5rem;
}

.hero-section,
.section-block {
  max-width: 78rem;
  margin: 0 auto;
}

.hero-section {
  position: relative;
  padding: 4.5rem 0 3.25rem;
}

.hero-backdrop {
  position: absolute;
  inset: -4rem -8rem 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.14), transparent 42%),
    radial-gradient(circle at 84% 25%, rgba(16, 185, 129, 0.12), transparent 45%);
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  max-width: 74rem;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-amber);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.15vw, 4.15rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.35rem;
  max-width: 74rem;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 54rem;
  margin: 0 0 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.75rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.45rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.btn-primary {
  background: var(--accent-amber);
  color: var(--accent-amber-ink);
  border: 1px solid var(--accent-amber);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.badge-mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-emerald);
}

/* Telemetry Strip */
.telemetry-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.metric-cell {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-goal {
  border-color: rgba(245, 158, 11, 0.45);
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.metric-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Audience Lenses */
.lens-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.lens-caption {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-right: 0.35rem;
}

.lens-btn,
.track-btn,
.preset-btn,
.scenario-btn,
.btn-mini {
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.16s ease;
}

.lens-btn:hover,
.track-btn:hover,
.preset-btn:hover,
.scenario-btn:hover,
.btn-mini:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.lens-btn.is-active,
.track-btn.is-active,
.preset-btn.is-active,
.scenario-btn.is-active {
  background: var(--accent-amber);
  color: var(--accent-amber-ink);
  border-color: var(--accent-amber);
}

.btn-accent-outline {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

/* Section Headers */
.section-block {
  padding-top: 4.5rem;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--text-secondary);
  max-width: 52rem;
  margin: 0;
}

/* Gapless 12-Col Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 1rem;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.bento-card.is-dimmed {
  opacity: 0.34;
}

.span-8-2 {
  grid-column: span 8;
  grid-row: span 2;
}

.span-4-2 {
  grid-column: span 4;
  grid-row: span 2;
}

.span-6-1 {
  grid-column: span 6;
}

.span-4-1 {
  grid-column: span 4;
}

.card-highlight {
  border-color: rgba(16, 185, 129, 0.45);
}

.card-security {
  border-color: rgba(245, 158, 11, 0.45);
}

.card-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
}

.pill-emerald {
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.45);
}

.pill-amber {
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.45);
}

.pill-cyan {
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.45);
}

.mono-stat {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
}

.bento-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.compact-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  display: grid;
  gap: 0.35rem;
}

.cadence-bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 0.4rem;
  height: 44px;
  padding: 0.4rem 0.6rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}

.bar-item {
  display: block;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-emerald), rgba(16, 185, 129, 0.25));
}

.bar-h1 { height: 42%; }
.bar-h2 { height: 86%; }
.bar-h3 { height: 55%; }
.bar-h4 { height: 100%; }
.bar-h5 { height: 34%; }
.bar-h6 { height: 78%; }
.bar-h7 { height: 64%; }
.bar-h8 { height: 92%; }

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

/* Interactive AI Lab */
.lab-shell {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.lab-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: 0.55rem;
  padding: 0.9rem 1.15rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-hairline);
}

.lab-tab {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.58rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
}

.lab-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.lab-input-row .search-input {
  flex: 1 1 200px;
}

.lab-select {
  width: auto;
  min-width: 135px;
}

.lab-tab.is-active {
  background: var(--accent-emerald);
  color: var(--accent-emerald-ink);
  border-color: var(--accent-emerald);
}

.lab-panel {
  padding: 1.35rem;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.lab-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.preset-row,
.lab-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.lab-textarea {
  width: 100%;
  min-height: 240px;
  resize: vertical;
  background: var(--bg-code);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.55;
}

.lab-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.mini-kpi {
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
}

.kpi-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.kpi-lbl {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.output-block {
  background: var(--bg-code);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 0.9rem;
}

.output-heading {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin: 0 0 0.6rem;
}

.concept-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.concept-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.28rem 0.58rem;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.code-out {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-primary);
  max-height: 220px;
  overflow-y: auto;
}

.status-banner {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
}

.status-banner.is-alert {
  border-color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.12);
  color: var(--accent-rose);
}

.weave-controls,
.scenario-stack,
.pipeline-steps {
  display: grid;
  gap: 0.6rem;
}

.weave-node-row {
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: grid;
  gap: 0.5rem;
}

.weave-node-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.stage-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.stage-item.is-blocked {
  border-color: var(--accent-rose);
  color: var(--accent-rose);
}

/* Directory Explorer */
.directory-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.search-wrap {
  flex: 1 1 260px;
}

.search-input,
.sort-select {
  width: 100%;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.58rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.track-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 1rem;
}

.repo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.repo-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.repo-card-prerelease {
  border-style: dashed;
  border-color: rgba(245, 158, 11, 0.55);
}

.repo-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.repo-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.repo-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.16rem 0.5rem;
  border-radius: 5px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

/* Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pillar-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-amber);
  font-weight: 600;
}

.pillar-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.pillar-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* Theses & 10k Goal */
.goal-banner {
  background: var(--bg-surface);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.goal-copy h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.goal-copy p {
  margin: 0 0 0.85rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.progress-native {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  background: var(--bg-elevated);
  accent-color: var(--accent-emerald);
}

.progress-native::-webkit-progress-bar {
  background: var(--bg-elevated);
  border-radius: 999px;
}

.progress-native::-webkit-progress-value {
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-emerald));
  border-radius: 999px;
}

.progress-native::-moz-progress-bar {
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-emerald));
  border-radius: 999px;
}

.metric-proof {
  border-color: rgba(16, 185, 129, 0.45);
}

.sub-section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
}

.clusters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 1rem;
}

.pillar-card h4 {
  margin: 0;
  font-size: 1.05rem;
}

.polymath-panel {
  margin-top: 2rem;
  background: var(--bg-surface);
  border: 1px solid rgba(4, 120, 87, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 1rem;
}

.polymath-head h3 {
  font-family: var(--font-display);
  margin: 0.35rem 0 0;
  font-size: 1.25rem;
}

.polymath-lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.bridge-grid {
  display: grid;
  gap: 0.6rem;
}

.bridge-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.35fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.bridge-src {
  color: var(--text-secondary);
}

.bridge-arrow {
  font-family: var(--font-mono);
  color: var(--accent-amber);
  font-weight: 700;
}

.bridge-dst {
  font-family: var(--font-mono);
  color: var(--accent-emerald);
  font-size: 0.83rem;
}

.security-posture-line {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-emerald);
  margin: 0.45rem 0 0;
}

.sr-metadata {
  display: none;
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  list-style: none;
  cursor: pointer;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 220px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  display: grid;
  gap: 0.25rem;
  box-shadow: var(--shadow-card);
  z-index: 150;
}

.mobile-nav-menu a {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.mobile-nav-menu a:hover {
  background: var(--bg-elevated);
}

.hire-panel {
  background: var(--bg-surface);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  display: grid;
  gap: 1.25rem;
  box-shadow: var(--shadow-card);
}

.hire-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.hire-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-hairline);
}

.hero-title,
.bento-card h3,
.repo-title {
  overflow-wrap: anywhere;
}

@media (max-width: 1079px) {
  .nav-links {
    display: none;
  }

  .mobile-nav {
    display: block;
  }
}

@media (max-width: 768px), (pointer: coarse) {
  .icon-btn,
  .cta-nav,
  .lens-btn,
  .track-btn,
  .preset-btn,
  .scenario-btn,
  .btn-mini,
  .lab-tab,
  .nav-links a {
    min-height: 44px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }
}

@media (max-width: 760px) {
  .bridge-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .bridge-arrow {
    display: none;
  }
}

.goal-quickstars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.theses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.thesis-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.thesis-quote {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.thesis-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.share-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-hairline);
  padding: 2.25rem 1.25rem;
}

.footer-inner {
  max-width: 78rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand p {
  margin: 0.25rem 0 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Command Palette */
.cmdk-dialog {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 0;
  width: min(640px, calc(100vw - 2rem));
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.75);
}

.cmdk-dialog::backdrop {
  background: rgba(9, 11, 14, 0.72);
  backdrop-filter: blur(4px);
}

.cmdk-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-hairline);
}

.cmdk-input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
}

.cmdk-results {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  max-height: 360px;
  overflow-y: auto;
  display: grid;
  gap: 0.3rem;
}

.cmdk-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.cmdk-item:hover {
  background: var(--bg-elevated);
}

/* Toast */
.toast-region {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 300;
  display: grid;
  gap: 0.5rem;
}

.toast-msg {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--accent-emerald);
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
}

/* Responsive Breakpoints (Zero Empty Bento Cells) */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .bento-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .span-8-2,
  .span-4-2,
  .span-6-1 {
    grid-column: span 6;
    grid-row: span 1;
  }

  .span-4-1 {
    grid-column: span 3;
  }

  .lab-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .span-8-2,
  .span-4-2,
  .span-6-1,
  .span-4-1 {
    grid-column: span 1;
  }

  .kbd-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
