/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/f32ec7f1-fb41-4621-b096-61f4866fe564.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: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/a67d7220-0330-472a-93c6-3b7fc0909ac9.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/2f301890-6de6-44b1-ac75-352c778d15c1.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/c11ab8ae-549e-443d-bd61-b4951e8121ea.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: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cda53e93-5743-438c-8583-2c53ffc29980.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: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/0ae69c11-23c9-49ca-82f4-1c3ccabdb632.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: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/3bfd04f7-0161-4056-8f7e-055ded7c11ed.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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/f32ec7f1-fb41-4621-b096-61f4866fe564.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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/a67d7220-0330-472a-93c6-3b7fc0909ac9.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/2f301890-6de6-44b1-ac75-352c778d15c1.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/c11ab8ae-549e-443d-bd61-b4951e8121ea.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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cda53e93-5743-438c-8583-2c53ffc29980.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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/0ae69c11-23c9-49ca-82f4-1c3ccabdb632.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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/3bfd04f7-0161-4056-8f7e-055ded7c11ed.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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/f32ec7f1-fb41-4621-b096-61f4866fe564.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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/a67d7220-0330-472a-93c6-3b7fc0909ac9.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/2f301890-6de6-44b1-ac75-352c778d15c1.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/c11ab8ae-549e-443d-bd61-b4951e8121ea.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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/cda53e93-5743-438c-8583-2c53ffc29980.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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/0ae69c11-23c9-49ca-82f4-1c3ccabdb632.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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/3bfd04f7-0161-4056-8f7e-055ded7c11ed.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: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/f32ec7f1-fb41-4621-b096-61f4866fe564.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: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/a67d7220-0330-472a-93c6-3b7fc0909ac9.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/2f301890-6de6-44b1-ac75-352c778d15c1.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/c11ab8ae-549e-443d-bd61-b4951e8121ea.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: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/cda53e93-5743-438c-8583-2c53ffc29980.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: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/0ae69c11-23c9-49ca-82f4-1c3ccabdb632.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: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/3bfd04f7-0161-4056-8f7e-055ded7c11ed.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/e672b7e7-9a9a-4e40-81c1-aa5b7830a657.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/fe846fd8-439b-4ffd-a9c7-1b04cfc08703.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/bcc1b481-47b9-4b43-889c-773103bd5549.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/98827cc3-d1b1-472a-a694-fbdf338e5889.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/a657d3a4-a917-4f8e-a7df-4ae40e1c7a29.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/c15bbc42-73dc-481d-b515-4e9fd3b4e765.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/e672b7e7-9a9a-4e40-81c1-aa5b7830a657.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/fe846fd8-439b-4ffd-a9c7-1b04cfc08703.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/bcc1b481-47b9-4b43-889c-773103bd5549.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/98827cc3-d1b1-472a-a694-fbdf338e5889.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/a657d3a4-a917-4f8e-a7df-4ae40e1c7a29.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/c15bbc42-73dc-481d-b515-4e9fd3b4e765.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/e672b7e7-9a9a-4e40-81c1-aa5b7830a657.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/fe846fd8-439b-4ffd-a9c7-1b04cfc08703.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/bcc1b481-47b9-4b43-889c-773103bd5549.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/98827cc3-d1b1-472a-a694-fbdf338e5889.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/a657d3a4-a917-4f8e-a7df-4ae40e1c7a29.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/c15bbc42-73dc-481d-b515-4e9fd3b4e765.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/b2e64037-2fcb-4416-98bd-422f081843bb.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/c8630755-af55-4ac5-a349-c5ea10e672b9.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/2afa6311-f351-4cbe-b64f-83a50e887788.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/b2e64037-2fcb-4416-98bd-422f081843bb.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/c8630755-af55-4ac5-a349-c5ea10e672b9.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/2afa6311-f351-4cbe-b64f-83a50e887788.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/b2e64037-2fcb-4416-98bd-422f081843bb.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/c8630755-af55-4ac5-a349-c5ea10e672b9.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/2afa6311-f351-4cbe-b64f-83a50e887788.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/b2e64037-2fcb-4416-98bd-422f081843bb.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/c8630755-af55-4ac5-a349-c5ea10e672b9.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/2afa6311-f351-4cbe-b64f-83a50e887788.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 {
  --bg: #05070A;
  --bg-2: #0a0d13;
  --panel: #0e1219;
  --hair: rgba(255,255,255,0.08);
  --hair-2: rgba(255,255,255,0.14);
  --fg: #f2f5fa;
  --fg-dim: #a9b2c1;
  --fg-faint: #5a6373;
  --accent-h: 220;
  --accent: oklch(0.78 0.12 var(--accent-h));
  --accent-soft: oklch(0.78 0.12 var(--accent-h) / 0.15);
  --warn: oklch(0.78 0.12 60);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  /* motion tokens: the only timing language used by axis.css / axis.js / axis-motion.js */
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --dur-fast: .2s;      /* chrome: colours, nav/rail state, hover, page-out */
  --dur-base: .35s;     /* small surfaces: spotlight, bubbles, page-in */
  --dur-slow: .6s;      /* reveals, entrance, count-up, in-page scroll cap */
  --dur-loop: 2.4s;     /* the one ambient loop (nav status dot, two beats then still) */
  --stagger: 60ms;      /* reveal step, capped at 4 steps */
  /* engineered motion: decisive mechanical moves, drawn lines, instrument counts (docs/themes.md) */
  --ease-mech: cubic-bezier(.3,0,.1,1);
  --ease-draw: cubic-bezier(.45,0,.25,1);
  --ease-count: cubic-bezier(.16,1,.3,1);
  --dur-edge: calc(var(--stagger) * 2);    /* one edge of a scribed frame */
  --dur-frame: calc(var(--stagger) * 8);   /* a whole scribed frame (four edges) */
  --carriage-x: 24px;   /* P1 carriage shift (12px <=900px) */
  --scribe-x: 8px;      /* small P1 shift for labels inside cards and the rail */
  --reveal-y: 16px;
  --reveal-blur: 3px;   /* desktop accent only; 0 on <=900px and reduced data */
  --exit-y: 16px;
  /* shape tokens: one soft radius scale for every surface (reference: 22px glass cards) */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;
  --r-btn: 10px;
  --glass: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  --glass-hair: oklch(0.78 0.12 var(--accent-h) / 0.22);
  /* flat surfaces: one fill, one hairline, a brighter text step for hovered values */
  --card: var(--panel);
  --card-rack: rgba(12,16,23,.88);
  --hair-3: rgba(255,255,255,0.24);
  --fg-hi: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); font-family: var(--body); -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h, 72px); }
html.calm { scroll-behavior: auto; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

/* ---------- Fixed canvas: the system visualization ---------- */
#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}
#scene canvas { width: 100%; height: 100%; display: block; }

/* Radial vignette over canvas */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, transparent 0%, rgba(5,7,10,0.55) 75%, rgba(5,7,10,0.9) 100%);
}

/* Film grain */
.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ---------- Top chrome ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px 40px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-dim);
  mix-blend-mode: normal;
}
.nav .brand { display: flex; align-items: center; gap: 10px; color: var(--fg); letter-spacing: 0.28em; font-weight: 600; font-size: 14px; }
.nav .brand img { display: block; height: 42px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 32px; justify-content: center; }
.nav ul a { font-weight: 500; color: var(--fg-dim); }
.nav ul a:hover { color: var(--fg); }
.nav .meta { justify-self: end; display: flex; gap: 18px; align-items: center; }
/* the page's one ambient loop: two slow beats (<5s), then a still, solid dot */
.nav .meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse var(--dur-loop) ease-in-out 2; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.4 } }

/* ---------- Side rails: depth indicator ---------- */
.rail-left, .rail-right {
  position: fixed; z-index: 40;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--fg-faint);
  display: flex; flex-direction: column; gap: 14px;
}
.rail-left { left: 24px; bottom: 80px; }
.rail-right { right: 24px; top: 50%; transform: translateY(-50%); align-items: flex-end; text-align: right; }
.rail-left .seg, .rail-right .seg { display: flex; align-items: center; gap: 10px; transition: color var(--dur-fast) ease; }
.rail-left .seg.active, .rail-right .seg.active { color: var(--fg); }
.rail-left .seg .bar { width: 28px; height: 1px; background: currentColor; opacity: 0.5; }
.rail-left .seg.active .bar { background: var(--accent); opacity: 1; }

/* Depth readout (bottom) */
.readout {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 40px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--fg-faint);
  border-top: 1px solid var(--hair);
  background: linear-gradient(to top, rgba(5,7,10,0.8), transparent);
  text-transform: uppercase; font-variant-numeric: tabular-nums;
}
.readout .depth { color: var(--fg-dim); display: flex; gap: 14px; align-items: center; }
.readout .depth b { color: var(--fg); font-weight: 500; padding: 3px 10px; border: 1px solid var(--hair-2); border-radius: var(--r-xs); }
.readout .sep { color: var(--fg-faint); }
.readout .bar-wrap { flex: 1; max-width: 260px; margin: 0 0 0 40px; height: 1px; background: var(--hair); position: relative; }
.readout .bar-wrap::before { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: var(--progress, 0%); background: var(--accent); }

/* ---------- Section scaffold ---------- */
main { position: relative; z-index: 10; }
section.stage {
  position: relative;
  min-height: 100vh;
  padding: 0 60px;
  display: grid;
  align-items: center;
  scroll-snap-align: start;
}
section.stage .stage-inner {
  max-width: 1240px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
section.stage[data-layout="center"] .stage-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
section.stage[data-layout="right"] .stage-inner { grid-template-columns: 1fr 1.1fr; }

/* section labels: sentence case in the display family, no leaders, no mono tracking */
.eyebrow {
  font-family: var(--display); font-size: 13px; letter-spacing: 0.01em;
  color: var(--fg-dim); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px; font-weight: 500;
}

h1.display {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(48px, 6.2vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--fg);
}
h1.display em { font-style: normal; color: var(--fg-dim); font-weight: 500; }
h1.display .accent { color: var(--accent); font-weight: 700; }

h2.display {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 4.8vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
h2.display .line2 { display: block; color: var(--fg-dim); font-weight: 500; }

p.lede {
  font-size: 18px; line-height: 1.6; color: var(--fg-dim); max-width: 46ch;
  margin-top: 28px; font-weight: 400;
}
section.stage[data-layout="center"] p.lede { margin-inline: auto; }

.cta-row { margin-top: 44px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
/* buttons: sentence case in the display family, a 10px corner, no glow; the arrow extends 6px on
   hover, a 1px lift on fine pointers, a 1px press. The ghost is plain text, underlined on hover. */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  font-family: var(--display); font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1.2;
  border: 1px solid var(--hair-2); border-radius: var(--r-btn); color: var(--fg); background: transparent;
  cursor: pointer; transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-mech); position: relative;
}
.btn .arrow { width: 18px; height: 1px; background: currentColor; position: relative; transition: width var(--dur-fast) var(--ease-mech); }
.btn .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-right: 1px solid currentColor; border-top: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover { border-color: var(--hair-3); color: var(--fg); }
.btn:hover .arrow { width: 24px; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: #05070A; border-color: var(--accent); }
.btn.primary:hover { background: oklch(0.85 0.12 var(--accent-h)); border-color: oklch(0.85 0.12 var(--accent-h)); color: #05070A; }
.btn.ghost {
  padding-left: 0; padding-right: 0; border: none; color: var(--fg-dim); background: transparent;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: transparent;
  transition: color var(--dur-fast) ease, text-decoration-color var(--dur-fast) ease;
}
.btn.ghost:hover { color: var(--fg); text-decoration-color: currentColor; }
.btn.ghost:active { transform: none; }

/* Readable text over moving canvas — add scrim behind text columns */
section.stage .stage-inner > div:first-child {
  position: relative;
}
/* every stage gets it (s3/s4/s6 have no data-layout and used to render text straight over bright lines) */
section.stage .stage-inner > div:first-child::before {
  content: "";
  position: absolute;
  inset: -40px -60px;
  background: radial-gradient(ellipse at 40% 50%, rgba(5,7,10,0.88), rgba(5,7,10,0.6) 50%, transparent 80%);
  z-index: -1;
  pointer-events: none;
}
section.stage[data-layout="center"] .stage-inner > div:first-child::before {
  inset: -60px -120px;
  background: radial-gradient(ellipse at 50% 50%, rgba(5,7,10,0.85), rgba(5,7,10,0.4) 55%, transparent 80%);
}

/* Hero text modifier */
.hero .eyebrow { color: var(--fg-dim); }
.hero .status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 13px; letter-spacing: 0.01em; color: var(--fg-dim);
  margin-bottom: 24px; font-weight: 500;
}
.hero .status-pill .d { width: 6px; height: 6px; background: var(--warn); border-radius: 50%; }

/* Technical side panel (right column): a flat card, one fill, one hairline, the head separated by
   a 1px rule. Labels in the body face, values (data) in mono. */
.specpanel {
  border: 1px solid var(--hair-2);
  padding: 24px 28px;
  background: var(--card);
  font-family: var(--body); font-size: 14px; color: var(--fg-dim);
  position: relative; border-radius: var(--r-md);
}
.specpanel .row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--hair); font-size: 14px; line-height: 1.3; }
.specpanel .row:last-child { border-bottom: 0; }
.specpanel .row .k { color: var(--fg-faint); transition: color var(--dur-fast) var(--ease-mech); }
.specpanel .row .v { color: var(--fg); font-weight: 500; text-align: right; transition: color var(--dur-fast) var(--ease-mech); }
/* data values (numbers, status codes) are mono; textual values stay in the body face */
.specpanel .row .v.num, .specpanel .row .v.code { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.specpanel .row .v.ok { color: var(--fg); }
.specpanel .row .v.warn { color: var(--warn); }
.specpanel .head { color: var(--fg-dim); font-family: var(--display); font-size: 13px; letter-spacing: 0.01em; margin-bottom: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--hair-2); display: flex; justify-content: space-between; gap: 16px; font-weight: 500; }

/* Quote stage (last section) */
section.finale h1.display { font-size: clamp(60px, 8.4vw, 148px); line-height: 0.94; font-weight: 700; }
section.finale h1.display em { color: var(--fg); font-weight: inherit; }
:root:not([data-theme="classic"]) section.finale h1.display em { color: var(--accent); }   /* the variants keep their accent line */
section.finale h1.display .crossed { color: var(--fg-dim); text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: rgba(255,255,255,0.25); }

/* Chapter hero (full-screen lead) */
.hero-heading { font-family: var(--display); font-weight: 600; font-size: clamp(56px, 8vw, 128px); line-height: 0.95; letter-spacing: -0.025em; max-width: 14ch; }
.hero-heading .frag { color: var(--fg-dim); }
.hero-heading .kw { color: var(--accent); font-weight: 400; }

/* Metric strip */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--hair); border: 1px solid var(--hair); margin-top: 48px;
  border-radius: var(--r-md); overflow: hidden;
}
.metrics .m { position: relative; padding: 24px; background: var(--card); }
.metrics .m .k { font-family: var(--body); font-size: 13px; line-height: 1.35; color: var(--fg-faint); font-weight: 500; }
.metrics .m .v { font-family: var(--mono); font-size: 30px; font-weight: 500; color: var(--fg); margin-top: 10px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.metrics .m .v .suf { color: var(--fg-dim); font-size: 20px; margin-left: 2px; }

/* Dashboard panels (section 6): every card takes its height from its content (never fixed), so no
   row spills out and no card covers another card's text. Base = a clean stack; classic lays the
   cards out as a flat instrument rack on wide screens (themes restyle .dash/.panel from this base). */
.dash { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
:root[data-theme="classic"] .dash { gap: 16px; }
.dash .panel {
  position: relative; min-width: 0; border: 1px solid var(--hair-2); background: var(--card-rack);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: 16px 20px 20px; border-radius: var(--r-md);
  font-family: var(--body); font-size: 13px; color: var(--fg-dim);
}
@media (max-width: 900px) { .dash .panel { -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* >=1280px: the instrument rack. p1 and p3 side by side on top, the six-row integrity table (p2)
   full width below; flat, no tilt, no overlap, every gap on the 8px grid */
@media (min-width: 1280px) {
  :root[data-theme="classic"] .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
  :root[data-theme="classic"] .dash .panel.p1 { grid-column: 1; grid-row: 1; }
  :root[data-theme="classic"] .dash .panel.p3 { grid-column: 2; grid-row: 1; }
  :root[data-theme="classic"] .dash .panel.p2 { grid-column: 1 / -1; grid-row: 2; }
}
.dash .panel .head { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--hair-2); padding-bottom: 12px; margin-bottom: 16px; font-family: var(--display); font-size: 13px; letter-spacing: 0.01em; font-weight: 500; color: var(--fg); }
.dash .panel .head .led { flex: none; width: 6px; height: 6px; background: var(--accent); }
/* honest label: the dashboard is an illustrative sample, not a client measurement */
.dash-head { position: relative; font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: 0.01em; color: var(--fg-dim); margin-bottom: 16px; padding-bottom: 12px; }
:root[data-theme="classic"] .dash-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hair-2); transform-origin: 0 50%; }

/* Sparkline rows */
.sparkrow { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hair); align-items: center; font-size: 13px; line-height: 1.5; }
.sparkrow:last-child { border-bottom: 0; }
.sparkrow > span:first-child { color: var(--fg-dim); transition: color var(--dur-fast) var(--ease-mech); }
.sparkrow svg { stroke: var(--accent); fill: none; stroke-width: 1.2; }
.sparkrow .val { font-family: var(--mono); color: var(--fg); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; transition: color var(--dur-fast) var(--ease-mech); }

/* Big numeric KPI (instrument numbers: mono, tabular) */
.kpi { font-family: var(--mono); font-size: 44px; font-weight: 500; color: var(--fg); letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .pct { font-family: var(--body); color: var(--fg-dim); font-size: 16px; letter-spacing: 0; font-weight: 400; }
.kpi.kpi-sm { font-size: 32px; }
.dash .spark { position: relative; height: 56px; margin-top: 12px; }
.dash .spark svg { display: block; overflow: visible; }
.spark-line { fill: none; stroke: var(--accent); stroke-width: 1.2; }
.spark-area { fill: oklch(0.78 0.12 var(--accent-h) / 0.08); stroke: none; }
/* the last point of the sparkline (300,4 in the 300x60 box) */
.spark-mark { position: absolute; right: -3px; top: calc(4 / 60 * 100% - 3px); width: 6px; height: 6px; background: var(--accent); }
.p3-note { margin-top: 8px; color: var(--fg-faint); font-size: 13px; }
.p3-rows { margin-top: 16px; font-size: 13px; }
.p3-row { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.p3-row > span:first-child { transition: color var(--dur-fast) var(--ease-mech); }
.p3-row > span:last-child { color: var(--fg); transition: color var(--dur-fast) var(--ease-mech); }

/* Hairline grid background (subtle) */
.hair-grid {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.3;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 10%, transparent 80%);
}

/* Corner brackets util (the corner ornaments are gone; the class stays as a theme hook) */
.bracketed { position: relative; }

/* Architecture diagram (section 4) */
.arch {
  width: 100%; aspect-ratio: 1/1; max-width: 520px; position: relative;
  font-family: var(--display); font-size: 13px;
}
.arch .node {
  position: absolute; display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px 9px 12px; border: 1px solid var(--hair-2); border-radius: var(--r-md);
  background: var(--card);
  letter-spacing: 0.01em; color: var(--fg-dim);
  white-space: nowrap; font-weight: 500;
}
/* status dot: dim until the root reaches the chip, then accent (a detent: at once, 200ms settle) */
.arch .node::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--fg-faint); transition: background-color var(--dur-fast) var(--ease-mech);
}
.arch .node.core { border-color: var(--hair-3); color: var(--fg); background: var(--card); }
.arch .node.core { padding: 14px 22px 14px 18px; font-size: 14px; border-radius: var(--r-lg); gap: 11px; }
.arch .node.core::before { display: none; }   /* the core label carries its own glyph */
.arch svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* Integration flow (section 5) */
/* Integration flow (section 5): a ruled table, A-G. Each row is closed by a 1px divider (drawn by
   the scribe when the section arrives); a quiet dashed connector between label and layer. */
.flow { display: grid; font-family: var(--display); font-size: 14px; border-top: 1px solid var(--hair-2); }
.flow .row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 190px) minmax(24px, 1fr) minmax(0, 150px); gap: 16px; align-items: center;
  padding: 15px 4px;
}
:root[data-theme="classic"] .flow .row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hair-2); transform-origin: 0 50%; }
.flow .row .src { color: var(--fg); letter-spacing: 0.01em; font-weight: 500; transition: color var(--dur-fast) var(--ease-mech); }
.flow .row .line { height: 0; border-top: 1px dashed var(--hair-2); }
.flow .row .st { font-family: var(--body); font-size: 13px; color: var(--fg-dim); text-align: right; transition: color var(--dur-fast) var(--ease-mech); }

/* Section divider label (floating between sections) */
.divider {
  position: sticky; top: 0; z-index: 5; pointer-events: none;
  height: 0;
}

/* P1 carriage: the one-shot block reveal (axis.js only ever adds .in, once the content top crosses
   80% of the viewport). A 24px move from the column's side (data-side; 12px <=900px) on the
   decisive --ease-mech curve over --dur-base, opacity only over the first --dur-fast; stagger one
   token per step, capped at 4. No rise, no scale, no blur. Only with motion on (html.mo: JS, no
   reduced motion, no .calm), so no-js / reduced / calm render everything at rest. */
.mo section.stage .fade-in {
  opacity: 0; transform: translate3d(calc(var(--col, -1) * var(--carriage-x)), 0, 0);
  transition: transform var(--dur-base) var(--ease-mech), opacity var(--dur-fast) var(--ease-out);
  transition-delay: calc(var(--step, 0) * var(--stagger));
}
.mo section.stage.in .fade-in { opacity: 1; transform: none; }
@media (max-width: 900px) { :root { --carriage-x: 12px; } }
section.stage .fade-in.d1 { --step: 1; }
section.stage .fade-in.d2 { --step: 2; }
section.stage .fade-in.d3 { --step: 3; }
section.stage .fade-in.d4 { --step: 4; }

/* footer */
/* One shared markup for classic and every theme (docs/themes.md "Footer markup"): themes restyle
   these classes only. Opaque, so the canvas never shows through text; mobile-first. */
footer {
  position: relative; z-index: 10; overflow: hidden;
  padding: 72px 24px 0; border-top: 1px solid var(--hair);
  font-family: var(--mono); font-size: 13px; color: var(--fg-dim); letter-spacing: 0.06em;
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 60% at 0% 0%, var(--accent-soft), transparent 60%),
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  background-position: 0 0, -1px -1px, -1px -1px;
}
footer > * { position: relative; }
footer a { color: inherit; }
.ft-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* root motif: a short spine drops from the top edge and ends in a still node */
.ft-root { position: absolute; top: 0; left: 24px; width: 9px; height: 52px; pointer-events: none; }
.ft-root-line { position: absolute; left: 4px; top: 0; width: 1px; height: 44px; background: linear-gradient(to bottom, transparent, var(--accent)); }
.ft-root-node { position: absolute; left: 0; bottom: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

/* CTA band */
.ft-cta { padding: 8px 0 48px; border-bottom: 1px solid var(--hair); }
.ft-cta-title {
  font-family: var(--display); font-weight: 600; color: var(--fg); letter-spacing: -0.02em;
  font-size: clamp(30px, 5vw, 60px); line-height: 1.05; max-width: 18ch;
}
.ft-cta-text { margin-top: 18px; max-width: 52ch; font-family: var(--body); font-size: 16px; line-height: 1.6; letter-spacing: 0; color: var(--fg-dim); }
.ft-cta-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

/* grid: brand + three columns */
.ft-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 48px 0; }
.footer-logo { display: inline-block; }
.footer-logo img { display: block; height: 34px; width: auto; }
.ft-tagline { max-width: 44ch; margin-top: 18px; font-family: var(--body); font-size: 15px; line-height: 1.7; letter-spacing: 0; }
.ft-social { list-style: none; display: flex; gap: 10px; margin-top: 22px; }
.ft-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 1px solid var(--hair-2); border-radius: var(--r-pill); color: var(--fg-dim);
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.ft-social a:hover { color: var(--fg); border-color: var(--accent); background-color: var(--accent-soft); }
.ft-col-title { color: var(--fg); font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0; margin-bottom: 18px; }
.ft-links { list-style: none; display: grid; gap: 12px; }
.ft-links a { color: var(--fg-dim); transition: color var(--dur-fast) ease; }
.ft-links a:hover { color: var(--fg); }
.ft-services .ft-links a { font-family: var(--body); font-size: 15px; letter-spacing: 0; }
.ft-chips { list-style: none; display: grid; gap: 10px; justify-items: start; }
.ft-chip {
  display: inline-flex; align-items: flex-start; gap: 10px; max-width: 100%;
  padding: 10px 14px; border: 1px solid var(--hair); border-radius: var(--r-sm);
  background: rgba(255,255,255,0.02); color: var(--fg-dim); letter-spacing: 0.02em; line-height: 1.45;
  overflow-wrap: anywhere;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
a.ft-chip:hover { color: var(--fg); border-color: var(--hair-3); }
.ft-chip-icon { flex: none; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* status (live TST clock) + back to top */
.ft-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid var(--hair); }
.ft-status { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; font-size: 12px; letter-spacing: 0.06em; color: var(--fg-dim); }
.ft-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ft-status-clock { color: var(--fg); font-variant-numeric: tabular-nums; }
.ft-top {
  position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--r-pill); color: var(--fg);
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.ft-top:hover { color: var(--accent); background-color: var(--accent-soft); }
.ft-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 1.5; }
.ft-top-track { stroke: var(--hair-2); }
.ft-top-bar { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 1px 1px; stroke-dashoffset: calc((1 - var(--pg, 0)) * 1px); }
.ft-top-arrow { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-fast) var(--ease-out); }
.ft-top:hover .ft-top-arrow { transform: translateY(-2px); }

/* bottom bar */
.ft-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 20px 0; border-top: 1px solid var(--hair);
  color: var(--fg-faint); text-transform: uppercase; font-size: 12px; letter-spacing: 0.06em;
}
.ft-copy { flex: 1 1 100%; }
.ft-lang a { color: var(--fg-dim); }
.ft-lang a[aria-current] { color: var(--fg); }
.ft-lang a:hover, .ft-bar-top:hover { color: var(--fg); }
.ft-bar-top { color: var(--fg-dim); }

/* giant outlined wordmark, clipped by the bottom edge; one slow reveal (.in from axis.js) */
.ft-wordmark {
  margin: 8px -0.04em -0.2em; text-align: center; white-space: nowrap; pointer-events: none; user-select: none;
  font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 0.9;
  font-size: 21vw; color: rgba(255,255,255,0.05);
}
/* <=900px the WhatsApp button and the theme switch float at the bottom: they sit over the
   decorative wordmark, never over the bar's links */
@media (max-width: 900px) { .ft-wordmark { margin-top: 84px; } }
@supports (-webkit-text-stroke: 1px currentColor) {
  .ft-wordmark { color: transparent; -webkit-text-stroke: 1px var(--hair-2); }
}
html:not(.no-js) footer:not(.in) .ft-wordmark { opacity: 0; transform: translateY(var(--reveal-y)); }
footer.in .ft-wordmark {
  transition: opacity calc(var(--dur-slow) * 2) var(--ease-out), transform calc(var(--dur-slow) * 2) var(--ease-out);
}

@media (min-width: 640px) {
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .ft-copy { flex: 0 1 auto; margin-right: auto; }
}
@media (min-width: 901px) {
  footer { padding: 96px 60px 0; }
  .ft-root { left: 60px; height: 72px; }
  .ft-root-line { height: 64px; }
  .ft-cta { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; padding-bottom: 64px; }
  .ft-cta-title { grid-row: span 2; }
  .ft-cta-text { margin-top: 0; }
  .ft-cta-actions { margin-top: 0; }
  .ft-grid { grid-template-columns: 1.6fr 1fr 1.2fr 1.3fr; gap: 48px; padding: 64px 0 56px; }
  .footer-logo img { height: 30px; }
  .ft-wordmark { font-size: min(17vw, 300px); }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.no-js) footer:not(.in) .ft-wordmark { opacity: 1; transform: none; }
}

/* footer: classic calm */
/* Classic only (themes restyle the base above): quiet and refined. Soft hairlines (--ft-hair),
   one type scale (small-caps labels at 0.14em, body 14-15px), generous spacing, the accent only on
   the primary button and the status dot, links underline on hover, a subtler wordmark. */
:root[data-theme="classic"] footer {
  --ft-hair: rgba(255,255,255,0.05);
  --ft-line: rgba(255,255,255,0.1);
  padding-top: 80px; border-top-color: var(--ft-hair);
  font-family: var(--body); font-size: 14px; letter-spacing: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  background-position: -1px -1px, -1px -1px;
}
:root[data-theme="classic"] .ft-col-title, :root[data-theme="classic"] .ft-status, :root[data-theme="classic"] .ft-bar {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
}
:root[data-theme="classic"] .ft-root { width: 7px; height: 44px; }
:root[data-theme="classic"] .ft-root-line { left: 3px; height: 37px; background: linear-gradient(to bottom, transparent, var(--ft-line)); }
:root[data-theme="classic"] .ft-root-node { width: 7px; height: 7px; border: 1px solid var(--hair-2); background: var(--bg); box-shadow: none; }
:root[data-theme="classic"] .ft-cta { padding-bottom: 56px; border-bottom-color: var(--ft-hair); }
:root[data-theme="classic"] .ft-cta-title { font-weight: 400; letter-spacing: normal; font-size: clamp(24px, 3vw, 40px); line-height: 1.2; max-width: 22ch; }
:root[data-theme="classic"] .ft-cta-text { margin-top: 16px; font-size: 15px; line-height: 1.65; }
:root[data-theme="classic"] .ft-grid { gap: 48px; padding: 56px 0; }
:root[data-theme="classic"] .footer-logo { opacity: 0.9; }
:root[data-theme="classic"] .footer-logo img { height: 34px; }
:root[data-theme="classic"] .ft-tagline { max-width: 42ch; margin-top: 20px; font-size: 14px; }
:root[data-theme="classic"] .ft-social { gap: 8px; margin-top: 24px; }
:root[data-theme="classic"] .ft-social a { width: 36px; height: 36px; border-color: var(--ft-line); }
:root[data-theme="classic"] .ft-social a svg { width: 16px; height: 16px; }
:root[data-theme="classic"] .ft-social a:hover { border-color: var(--hair-2); background-color: rgba(255,255,255,0.03); }
:root[data-theme="classic"] .ft-col-title { color: var(--fg-faint); margin-bottom: 20px; }
:root[data-theme="classic"] .ft-links a, :root[data-theme="classic"] .ft-services .ft-links a { font-family: var(--body); font-size: 14px; letter-spacing: 0; }
:root[data-theme="classic"] .ft-chips { gap: 8px; }
:root[data-theme="classic"] .ft-chip { padding: 9px 14px; border-color: var(--ft-hair); background: rgba(255,255,255,0.012); font-size: 14px; letter-spacing: 0; line-height: 1.5; }
:root[data-theme="classic"] a.ft-chip:hover { border-color: var(--ft-line); }
:root[data-theme="classic"] .ft-chip-icon { margin-top: 3px; stroke: var(--fg-faint); stroke-width: 1.5; transition: stroke var(--dur-fast) ease; }
:root[data-theme="classic"] a.ft-chip:hover .ft-chip-icon { stroke: var(--fg-dim); }
:root[data-theme="classic"] .ft-meta { border-top-color: var(--ft-hair); }
:root[data-theme="classic"] .ft-status { color: var(--fg-faint); }
:root[data-theme="classic"] .ft-status-dot { width: 5px; height: 5px; }
:root[data-theme="classic"] .ft-status-clock { color: var(--fg-dim); }
:root[data-theme="classic"] .ft-top { width: 44px; height: 44px; color: var(--fg-dim); }
:root[data-theme="classic"] .ft-top:hover { color: var(--fg); background-color: rgba(255,255,255,0.03); }
:root[data-theme="classic"] .ft-top-ring { stroke-width: 1; }
:root[data-theme="classic"] .ft-top-track { stroke: var(--ft-hair); }
:root[data-theme="classic"] .ft-top-bar { stroke: var(--fg-faint); }
:root[data-theme="classic"] .ft-top-arrow { stroke-width: 1.4; }
:root[data-theme="classic"] .ft-bar { padding-bottom: 24px; border-top-color: var(--ft-hair); }
:root[data-theme="classic"] .ft-lang a, :root[data-theme="classic"] .ft-bar-top { color: var(--fg-faint); }
:root[data-theme="classic"] .ft-lang a[aria-current] { color: var(--fg-dim); }
:root[data-theme="classic"] .ft-lang a:hover, :root[data-theme="classic"] .ft-bar-top:hover { color: var(--fg); }
/* links: a fine underline on hover instead of a weight/colour jump */
:root[data-theme="classic"] .ft-links a, :root[data-theme="classic"] .ft-lang a, :root[data-theme="classic"] .ft-bar-top {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: transparent;
  transition: color var(--dur-fast) ease, text-decoration-color var(--dur-fast) ease;
}
:root[data-theme="classic"] .ft-links a:hover, :root[data-theme="classic"] .ft-lang a:hover, :root[data-theme="classic"] .ft-bar-top:hover { text-decoration-color: var(--hair-2); }
:root[data-theme="classic"] .ft-wordmark { margin-top: 16px; font-weight: 600; letter-spacing: -0.02em; font-size: 19vw; color: rgba(255,255,255,0.03); }
@supports (-webkit-text-stroke: 1px currentColor) {
  :root[data-theme="classic"] .ft-wordmark { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.07); }
}
html:not(.no-js)[data-theme="classic"] footer:not(.in) .ft-wordmark { transform: translateY(calc(var(--reveal-y) * 2)); }
:root[data-theme="classic"] footer.in .ft-wordmark { transition-duration: calc(var(--dur-slow) * 3); }
@media (min-width: 640px) {
  :root[data-theme="classic"] .ft-grid { column-gap: 48px; }
}
@media (max-width: 900px) { :root[data-theme="classic"] .ft-wordmark { margin-top: 84px; } }
@media (min-width: 901px) {
  :root[data-theme="classic"] footer { padding-top: 104px; }
  :root[data-theme="classic"] .ft-root { height: 64px; }
  :root[data-theme="classic"] .ft-root-line { height: 57px; }
  :root[data-theme="classic"] .ft-cta { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 80px; padding-bottom: 72px; }
  :root[data-theme="classic"] .ft-grid { grid-template-columns: 1.4fr .8fr 1.2fr 1.4fr; gap: 40px; padding: 72px 0 64px; }
  :root[data-theme="classic"] .footer-logo img { height: 30px; }
  :root[data-theme="classic"] .ft-wordmark { font-size: min(14vw, 240px); }
}
@media (min-width: 1200px) {
  :root[data-theme="classic"] .ft-grid { grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.no-js)[data-theme="classic"] footer:not(.in) .ft-wordmark { transform: none; }
}

/* Fixed side UI steps aside when the footer is in view */

.rail-left, .rail-right, .readout { transition: opacity var(--dur-fast) ease, visibility var(--dur-fast) ease; }
body.at-footer .rail-left, body.at-footer .rail-right, body.at-footer .readout { opacity: 0; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .rail-left, .rail-right, .readout { transition: none; }
}

/* Keep nav items on one line */
.nav ul a, .nav .meta > * { white-space: nowrap; }
.nav ul, .nav .meta { min-width: 0; }
section.finale { padding-bottom: 140px; }

/* Responsive */
@media (max-width: 1600px) {
  .rail-right { display: none; }
  .nav ul { gap: 22px; }
  .nav .meta { gap: 14px; }
}
@media (max-width: 1100px) {
  .rail-left { display: none; }
}
@media (max-width: 1280px) {
  .nav .meta > span:first-child { display: none; }
  .nav ul { gap: 16px; }
  .nav { padding-left: 28px; padding-right: 28px; grid-template-columns: auto 1fr auto; column-gap: 24px; }
}
@media (max-width: 900px) {
  section.stage, section.stage[data-layout="right"] { padding: 120px 24px; }
  section.stage .stage-inner { grid-template-columns: 1fr; gap: 48px; }
  .rail-left, .rail-right { display: none; }
  .nav ul { display: none; }
  .nav { padding: 12px 20px; grid-template-columns: 1fr auto; background: rgba(5, 7, 10, 0.92); border-bottom: 1px solid var(--hair); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
  .nav .brand img { height: 32px; }
  .nav .meta { display: none; }
  .readout { padding: 14px 20px; font-size: 11px; }
  .readout .bar-wrap { margin: 0 0 0 16px; }
}

/* mobile nav */
.nav .nav-m { display: none; }
@media (max-width: 900px) {
  .nav .nav-m { display: flex; align-items: center; gap: 18px; justify-self: end; }
  .nav .lang-m a { color: var(--fg-dim); }
  .nav .lang-m a[aria-current] { color: var(--fg); }
  .nav .menu-m summary { list-style: none; cursor: pointer; width: 28px; height: 20px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
  .nav .menu-m summary::-webkit-details-marker { display: none; }
  .nav .menu-m summary::before, .nav .menu-m summary::after, .nav .menu-m summary span { content: ""; display: block; height: 1px; background: var(--fg); }
  .nav .menu-m summary span { background: var(--accent); }
  .nav .menu-m .menu-m-panel {
    position: absolute; top: 100%; left: 20px; right: 20px;
    display: grid; gap: 0; padding: 12px 24px;
    border: 1px solid var(--hair-2); border-radius: var(--r-md); background: var(--bg-2);
    font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  }
  .nav .menu-m .menu-m-panel li { border-bottom: 1px solid var(--hair); }
  .nav .menu-m .menu-m-panel li:last-child { border-bottom: none; }
  .nav .menu-m .menu-m-panel a { display: block; padding: 14px 0; color: var(--fg-dim); }
  .nav .menu-m .menu-m-panel a:hover { color: var(--fg); }
}

/* inner pages */
/* Services, FAQ, contact, corporate/DDX, blog and 404 speak the classic home's language
   (docs/themes.md "Inner pages"): a sentence-case eyebrow, the home's section display scale, one
   sheet rule with a title-block cell, flat rack cards (one fill, one hairline, rows closed by a 1px
   divider, mono readout numerals) and the same motion primitives, gated by html.mo. No canvas: a
   quiet static drafting grid instead (see "inner pages: drafting grid"). */
main:has(> .page-hero) { min-height: 100vh; display: flex; flex-direction: column; }
.page-hero, .page-body { width: 100%; max-width: 1100px; margin: 0 auto; padding-left: 60px; padding-right: 60px; }
.page-hero { padding-top: 168px; padding-bottom: 56px; }
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero .eyebrow a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: transparent; transition: color var(--dur-fast) ease, text-decoration-color var(--dur-fast) ease; }
.page-hero .eyebrow a:hover { color: var(--fg); text-decoration-color: currentColor; }
.page-hero .eyebrow .crumb-sep { color: var(--fg-faint); }
.page-hero h1.display { font-size: clamp(38px, 4.8vw, 76px); line-height: 1.02; letter-spacing: -0.02em; max-width: 18ch; overflow-wrap: break-word; }
.page-hero .lede { margin-top: 24px; max-width: 60ch; font-size: 18px; line-height: 1.6; color: var(--fg-dim); }
.page-body { padding-top: 0; padding-bottom: 96px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-content: start; }

/* sheet rule: one hairline (scribed), a short ruler at its start, a title-block cell at its end
   (the home's s8 title block in miniature). Decorative, aria-hidden. */
.page-rule { display: flex; align-items: flex-end; gap: 16px; margin-top: 48px; max-width: 100%; }
.page-rule-line { position: relative; flex: 1 1 auto; min-width: 72px; height: 9px; }
.page-rule-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hair-2); transform-origin: 0 50%; }
.page-rule-line::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 65px; height: 9px;
  border-left: 1px solid var(--fg-faint);
  background: repeating-linear-gradient(to right, transparent 0 7px, var(--hair-3) 7px 8px) 0 100% / 64px 4px no-repeat;
}
.page-rule-ref {
  flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-faint);
  padding: 6px 10px; border: 1px solid var(--hair-2); border-radius: var(--r-xs); line-height: 1.2;
}

.prose { font-family: var(--body); font-size: 17px; line-height: 1.75; color: var(--fg-dim); max-width: 72ch; overflow-wrap: anywhere; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1em; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3 { font-family: var(--display); color: var(--fg); margin: 1.6em 0 0.6em; font-weight: 600; letter-spacing: -0.01em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }
.prose a:hover { border-bottom-color: var(--accent); }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.prose strong { color: var(--fg); }

/* a block opened by a scribed hairline (service note, the DDX section) */
.page-section { position: relative; padding-top: 40px; }
.page-section::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--hair-2); transform-origin: 0 50%; }
.page-section .cta-row { margin-top: 32px; }

.card-axis {
  border: 1px solid var(--hair-2); padding: 32px; position: relative; border-radius: var(--r-lg);
  background: var(--card);
}
.card-axis .card-title { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; color: var(--fg); margin-bottom: 24px; }
/* rack cards: the s6 result rack's flat panel (16px corner, head rule, LED, rows closed by 1px) */
.page-body .card-axis, .page-body .specpanel { border-radius: var(--r-md); padding: 20px 24px 24px; }
.rack-head, .contact-info .head {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-bottom: 12px; margin-bottom: 20px; border-bottom: 0;
}
.rack-head::after, .contact-info .head::after, .faq-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hair-2); transform-origin: 0 50%; }
.rack-idx { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.rack-of { color: var(--fg-faint); }
.page-body .led { flex: none; width: 6px; height: 6px; background: var(--accent); }
.rack-card .card-title { margin-bottom: 12px; }
.rack-rows { list-style: none; font-family: var(--body); font-size: 15px; line-height: 1.45; color: var(--fg-dim); }
.rack-rows li { position: relative; padding: 11px 0; border-bottom: 1px solid var(--hair); transition: color var(--dur-fast) var(--ease-mech); }
.rack-rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.rack-card .prose { font-size: 15px; line-height: 1.7; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.service-card { display: flex; flex-direction: column; }
.service-note { max-width: 72ch; }
.service-note .card-title { margin-bottom: 12px; }

.map-figure img { width: 100%; height: auto; display: block; }
.map-embed iframe { width: 100%; max-width: 100%; border: 1px solid var(--hair); border-radius: var(--r-md); }

/* FAQ: each group is one rack panel; the questions are its rows (index readout, question, a +/-
   mark that switches by a detent), the answer arrives by a short carriage */
.faq-group { border: 1px solid var(--hair-2); border-radius: var(--r-md); background: var(--card); padding: 4px 24px 8px; }
.faq-head {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0 12px; font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: 0.01em; color: var(--fg-dim);
}
.faq-count { font-family: var(--mono); color: var(--fg-faint); font-variant-numeric: tabular-nums; }
.faq-item {
  position: relative; border-radius: var(--r-md);
  transition: background-color var(--dur-fast) ease;
}
.faq-item:not(:last-child)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hair); pointer-events: none; }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  display: grid; grid-template-columns: 32px minmax(0, 1fr) 12px; gap: 16px; align-items: baseline;
  padding: 20px 0; font-family: var(--display); font-size: 18px; font-weight: 500; line-height: 1.35; color: var(--fg);
  transition: color var(--dur-fast) var(--ease-mech);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-idx { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--fg-faint); font-variant-numeric: tabular-nums; transition: color var(--dur-fast) var(--ease-mech); }
.faq-item[open] .faq-idx { color: var(--accent); }
.faq-mark { position: relative; align-self: center; width: 12px; height: 12px; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; background: var(--accent); }
.faq-mark::before { left: 0; right: 0; top: 50%; height: 1px; margin-top: -0.5px; }
.faq-mark::after { top: 0; bottom: 0; left: 50%; width: 1px; margin-left: -0.5px; transition: transform var(--dur-fast) var(--ease-mech); }
.faq-item[open] .faq-mark::after { transform: scaleY(0); }
.faq-item summary:hover { color: var(--fg-hi); }
.faq-item .faq-answer { padding: 0 28px 24px 48px; font-size: 16px; }
/* row cursor, as on the home's spec rows: a 1px accent line on the left of the hovered question */
.faq-item summary::before {
  content: ""; position: absolute; left: -12px; top: 30%; bottom: 30%; width: 1px; background: var(--accent);
  opacity: 0; transition: opacity var(--dur-fast) var(--ease-mech); pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .faq-item summary:hover::before { opacity: 1; }
  .faq-item summary:hover .faq-idx { color: var(--fg-dim); }
  .rack-rows li:hover { color: var(--fg-hi); }
}

.contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; gap: 16px; }
.contact-grid:not(:has(.contact-info)) { grid-template-columns: minmax(0, 720px); }
@media (min-width: 901px) { .contact-info { position: sticky; top: 112px; align-self: start; } }
.contact-info .head { font-size: 13px; color: var(--fg-dim); }
.contact-info .row .v { text-transform: none; letter-spacing: 0.02em; }
.contact-info .row .v a { transition: color var(--dur-fast) var(--ease-mech); }
.contact-info .row .v a:hover { color: var(--accent); }
.contact-form-card .card-title { font-size: 13px; font-weight: 500; letter-spacing: 0.01em; color: var(--fg-dim); padding-bottom: 12px; margin-bottom: 24px; border-bottom: 1px solid var(--hair-2); }

.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-family: var(--display); font-size: 14px; font-weight: 500; letter-spacing: 0.01em; color: var(--fg-dim); }
.field label span { color: var(--accent); }
.field input, .field textarea {
  width: 100%; font: inherit; font-family: var(--body); font-size: 16px; color: var(--fg);
  background: var(--bg); border: 1px solid var(--hair-2); padding: 14px 16px; border-radius: var(--r-sm); outline: none;
  transition: border-color var(--dur-fast) var(--ease-mech), outline-color var(--dur-fast) var(--ease-mech);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover { border-color: var(--hair-3); }
.field input:focus, .field textarea:focus { border-color: var(--hair-3); }
.field-error { color: var(--warn); font-family: var(--body); font-size: 13px; min-height: 0; }
.field-error:empty { display: none; }
.contact-form-card .btn { cursor: pointer; }
.contact-form-card .btn:disabled { opacity: 0.5; cursor: progress; }
.form-status { margin-top: 18px; font-family: var(--body); font-size: 14px; color: var(--fg-dim); min-height: 1.4em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: var(--warn); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; gap: 16px; }
.post-card .card-title { margin-bottom: 0; }
.post-card .card-title a { transition: color var(--dur-fast) var(--ease-mech); }
.post-card .card-title a:hover { color: var(--accent); }
.post-card .eyebrow { margin-bottom: 0; }
.post-thumb { display: block; overflow: hidden; border: 1px solid var(--hair); border-radius: var(--r-sm); }
.post-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.post-excerpt { color: var(--fg-dim); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.post-meta { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; color: var(--fg-faint); font-variant-numeric: tabular-nums; }
.post-card .post-meta { padding-top: 12px; border-top: 1px solid var(--hair); }
.post-card .btn { align-self: flex-start; margin-top: auto; }
.post-cover img { width: 100%; max-width: 100%; height: auto; display: block; border: 1px solid var(--hair); border-radius: var(--r-md); }
.empty-state { max-width: 720px; }
.error-panel { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.error-panel .page-rule { align-self: stretch; }
.error-panel .status-pill { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: 0.01em; color: var(--fg-dim); margin-bottom: 24px; }
.error-panel .status-pill .d { width: 6px; height: 6px; background: var(--warn); border-radius: 50%; }
.error-actions { margin-top: 32px; }

@media (max-width: 900px) {
  .page-hero, .page-body { padding-left: 24px; padding-right: 24px; }
  .page-hero { padding-top: 120px; padding-bottom: 40px; }
  .page-rule { margin-top: 32px; }
  .page-body { padding-bottom: 64px; gap: 32px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .card-axis { padding: 22px; }
  .page-body .card-axis, .page-body .specpanel { padding: 18px 20px 20px; }
  .faq-group { padding: 4px 20px 8px; }
  .faq-item summary { font-size: 17px; grid-template-columns: 24px minmax(0, 1fr) 12px; gap: 12px; padding: 18px 0; }
  .faq-item .faq-answer { padding: 0 0 20px 36px; font-size: 15px; }
}

/* inner pages: motion (the home's primitives, all pre-states on html.mo) */
/* P1 carriage: eyebrow, headline, lede and actions arrive by keyframes on first paint, one --stagger apart;
   P2 scribe: the sheet rule draws from its ruler end, then the title-block cell lights. Below the
   hero, every [data-rv] block arrives by the carriage once its top crosses 80% of the viewport
   (.in, one-shot, added by axis-motion.js; --step staggers blocks that arrive together, <= 4);
   rack/FAQ/contact head rules and section rules are scribed after their card. */
@keyframes axis-scribe { from { transform: scaleX(0); } }
@keyframes axis-lit { from { opacity: 0; } }
.mo .page-hero > :is(.eyebrow, .status-pill, h1, .lede, .error-actions) { animation: axis-carriage var(--dur-base) var(--ease-mech) backwards; }
.mo .page-hero > h1 { animation-delay: var(--stagger); }
.mo .page-hero > .lede { animation-delay: calc(var(--stagger) * 2); }
.mo .page-hero > .error-actions { animation-delay: calc(var(--stagger) * 4); }
.mo .page-rule-line::after { animation: axis-scribe var(--dur-slow) var(--ease-draw) backwards; animation-delay: calc(var(--stagger) * 3); }
.mo .page-rule-line::before, .mo .page-rule-ref { animation: axis-lit var(--dur-fast) var(--ease-out) backwards; animation-delay: calc(var(--stagger) * 3 + var(--dur-base)); }
.mo .page-body [data-rv] {
  transition: transform var(--dur-base) var(--ease-mech), opacity var(--dur-fast) var(--ease-out);
  transition-delay: calc(var(--step, 0) * var(--stagger));
}
.mo .page-body [data-rv]:not(.in) { opacity: 0; transform: translate3d(calc(var(--carriage-x) * -1), 0, 0); }
.mo .page-body [data-rv] :is(.rack-head, .faq-head, .head)::after,
.mo .page-body .page-section[data-rv]::before {
  transition: transform var(--dur-base) var(--ease-draw);
  transition-delay: calc(var(--step, 0) * var(--stagger) + var(--dur-fast));
}
.mo .page-body [data-rv]:not(.in) :is(.rack-head, .faq-head, .head)::after,
.mo .page-body .page-section[data-rv]:not(.in)::before { transform: scaleX(0); }
.mo .faq-item[open] .faq-answer { animation: axis-cut-in var(--dur-base) var(--ease-mech) backwards; }

/* inner pages: drafting grid */
/* No canvas on inner pages (data-scene="none"): the home sheet's grid, static and in CSS. Pitch
   48px with a major line every 4 (32px / 128px <=900px), the sheet's own alphas; under main
   (z-index 2), so it never sits on the copy. No vignette. */
:root[data-theme="classic"][data-scene="none"] .vignette { display: none; }
:root[data-theme="classic"][data-scene="none"] .hair-grid {
  opacity: 1; -webkit-mask-image: none; mask-image: none;
  background-image:
    linear-gradient(to right, rgba(242,245,250,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242,245,250,.045) 1px, transparent 1px),
    linear-gradient(to right, rgba(242,245,250,.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242,245,250,.022) 1px, transparent 1px);
  background-size: 192px 192px, 192px 192px, 48px 48px, 48px 48px;
  background-position: center top;
}
@media (max-width: 900px) {
  :root[data-theme="classic"][data-scene="none"] .hair-grid { background-size: 128px 128px, 128px 128px, 32px 32px, 32px 32px; }
}

/* mobile pass */
.stat-row { margin-top: 80px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 48px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--fg-faint); text-transform: uppercase; }
.contact-info .v { overflow-wrap: anywhere; }
.prose table, .prose pre { display: block; max-width: 100%; overflow-x: auto; }
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--bg); background: var(--accent); border: 1px solid var(--hair-2);
  transition: transform var(--dur-fast) var(--ease-out);
}
.wa-fab:hover { transform: translateY(-1px); }
@media (max-width: 900px) {
  main { max-width: 100%; }
  section.stage { padding-left: 24px; padding-right: 24px; }
  section.stage .stage-inner,
  section.stage[data-layout="right"] .stage-inner,
  section.stage[data-layout="left"] .stage-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  section.stage .stage-inner > * { min-width: 0; max-width: 100%; }
  .specpanel { max-width: 100%; width: 100%; }
  .specpanel .row { flex-wrap: wrap; }
  h1.display, .stage h2, .stage p { overflow-wrap: anywhere; }
  .stat-row { margin-top: 48px; gap: 8px 20px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics .m { padding: 16px; }
  .metrics .m .v { font-size: 28px; }
  .wa-fab { right: 16px; bottom: 72px; }
  /* scrim must not extend past the column (caused 471px scrollWidth) */
  section.stage .stage-inner > div:first-child::before,
  section.stage[data-layout="center"] .stage-inner > div:first-child::before { inset: -40px -24px; }
  /* programmatic scrolling must not shift the page sideways */
  html, body { overflow-x: hidden; overflow-x: clip; }
}

/* no-js / reduced motion */
.no-js section.stage .fade-in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  section.stage .fade-in { opacity: 1; transform: none; filter: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* motion */
/* Scroll-linked exit. Entry is the one-shot reveal above; JS adds .fx only while a stage's
   content is leaving through the top band (content centre between 25% and -10% of the
   viewport) and writes --ex 0..1 (monotonic in scroll position, so no pumping when the
   direction changes). Opacity + a small lift only, never blur; in the reading zone nothing
   is applied, so backdrop-filter panels render normally. Disabled <=900px / reduced data
   and for stages taller than the viewport. */
section.stage.fx .stage-inner {
  transform: translate3d(0, calc(var(--ex, 0) * var(--exit-y) * -1), 0);
  opacity: calc(1 - var(--ex, 0) * .55);
  will-change: transform, opacity;
}
/* hero: one effect per element — text and panel leave at two depths (the old --hp parallax),
   the inner wrapper itself stays still */
section.hero.fx .stage-inner { transform: none; opacity: 1; will-change: auto; }
section.hero.fx .hero-text, section.hero.fx .hero-side {
  transform: translate3d(0, calc(var(--ex, 0) * var(--exit-y) * -1.25), 0);
  opacity: calc(1 - var(--ex, 0) * .55);
  will-change: transform, opacity;
}
section.hero.fx .hero-side { transform: translate3d(0, calc(var(--ex, 0) * var(--exit-y) * -.6), 0); }
/* Sticky-scene edges: the canvas dissolves into the page background at the seams */
#scene::before, #scene::after {
  content: ""; position: absolute; left: 0; right: 0; height: 18vh; z-index: 1; pointer-events: none;
}
#scene::before { top: 0; background: linear-gradient(to bottom, var(--bg), transparent); }
#scene::after { bottom: 0; background: linear-gradient(to top, var(--bg), transparent); }
@media (prefers-reduced-motion: reduce) {
  section.stage.fx .stage-inner { transform: none; filter: none; opacity: 1; will-change: auto; }
  section.hero.fx .hero-text, section.hero.fx .hero-side { transform: none; opacity: 1; will-change: auto; }
}

/* ux */
/* one focus language: a 1px accent outline at 3px, plus two small registration brackets (top-left,
   bottom-right) on the interactive chrome; applied at once, never animated */
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
:where(.btn, .rail-left a.seg, .nav ul a, .nav .lang a, .ft-links a, .ft-lang a, .ft-bar-top, .ft-chip, .ft-top, .ft-social a, .theme-switch a, .menu-m-panel a, .post-card .card-title a):focus-visible { position: relative; }
:where(.btn, .rail-left a.seg, .nav ul a, .nav .lang a, .ft-links a, .ft-lang a, .ft-bar-top, .ft-chip, .ft-top, .ft-social a, .theme-switch a, .menu-m-panel a, .post-card .card-title a):focus-visible::before,
:where(.btn, .rail-left a.seg, .nav ul a, .nav .lang a, .ft-links a, .ft-lang a, .ft-bar-top, .ft-chip, .ft-top, .ft-social a, .theme-switch a, .menu-m-panel a, .post-card .card-title a):focus-visible::after {
  content: ""; position: absolute; width: 6px; height: 6px; pointer-events: none; transition: none;
  border: 0 solid var(--accent);
}
:where(.btn, .rail-left a.seg, .nav ul a, .nav .lang a, .ft-links a, .ft-lang a, .ft-bar-top, .ft-chip, .ft-top, .ft-social a, .theme-switch a, .menu-m-panel a, .post-card .card-title a):focus-visible::before { top: -7px; left: -7px; border-top-width: 1px; border-left-width: 1px; }
:where(.btn, .rail-left a.seg, .nav ul a, .nav .lang a, .ft-links a, .ft-lang a, .ft-bar-top, .ft-chip, .ft-top, .ft-social a, .theme-switch a, .menu-m-panel a, .post-card .card-title a):focus-visible::after { bottom: -7px; right: -7px; border-bottom-width: 1px; border-right-width: 1px; }
/* form fields: a clear ring (the field border and a 1px accent outline at 2px), applied at once */
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--accent); outline: 1px solid var(--accent); outline-offset: 2px; }
.skip-link {
  position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 18px;
  background: var(--accent); color: #05070A; font-family: var(--display); font-size: 14px; font-weight: 500;
  border-radius: var(--r-btn);
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus, .skip-link:focus-visible { top: 16px; outline-color: var(--fg); }
main:focus { outline: none; }

/* top scroll progress */
.topbar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 49; pointer-events: none; }
.topbar i {
  display: block; height: 100%; background: var(--accent);
  transform: scaleX(var(--pg, 0)); transform-origin: 0 50%;
}

/* nav active section */
.nav ul a { padding-bottom: 4px; box-shadow: 0 1px 0 transparent; transition: color var(--dur-fast) var(--ease-mech), box-shadow var(--dur-fast) var(--ease-mech); }
.nav ul a[aria-current="true"] { color: var(--fg); box-shadow: 0 1px 0 var(--accent); }
.menu-m-panel a[aria-current="true"] { color: var(--fg); }

/* rail as controls: dot + line; the active vertebra is a square marker (see "rail dial") */
.rail-left a.seg { cursor: pointer; }
.rail-left a.seg:hover { color: var(--fg); }
.rail-left .seg .bar { position: relative; transition: width var(--dur-fast) var(--ease-out), background var(--dur-fast) ease, opacity var(--dur-fast) ease; }
.rail-left .seg .bar::before {
  content: ""; position: absolute; left: -2px; top: -2.5px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--fg-faint); transition: background-color var(--dur-fast) var(--ease-mech);
}
.rail-left .seg.active .bar { width: 40px; }
.rail-left .seg.active .bar::before { background: var(--accent); }

/* tabular digits while counting so the row does not jitter */
.cu { font-variant-numeric: tabular-nums; }

/* row cursor (classic, fine pointers): the hovered row gets a 1px accent line on its left and its
   value brightens; a detent (at once, 200ms settle), no spotlight, no lift. Themes keep their own
   row pseudo-elements (counters, stars). */
:root[data-theme="classic"] :is(.specpanel .row, .sparkrow, .flow .row, .dash .p3-row)::before {
  content: ""; position: absolute; left: -10px; top: 22%; bottom: 22%; width: 1px; background: var(--accent);
  opacity: 0; transition: opacity var(--dur-fast) var(--ease-mech); pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  :root[data-theme="classic"] :is(.specpanel .row, .sparkrow, .flow .row, .dash .p3-row):hover::before { opacity: 1; }
  :root[data-theme="classic"] :is(.specpanel .row:hover .k, .sparkrow:hover > span:first-child, .flow .row:hover .st, .dash .p3-row:hover > span:first-child) { color: var(--fg-dim); }
  :root[data-theme="classic"] :is(.specpanel .row:hover .v:not(.warn), .sparkrow:hover .val, .flow .row:hover .src, .dash .p3-row:hover > span:last-child) { color: var(--fg-hi); }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(1px); }
  .btn.ghost:hover, .btn.ghost:active { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active { transform: none; }
  .skip-link { transition: none; }
  .topbar i { transition: none; }
}

main:focus, section.stage:focus { outline: none; }

/* Compact rail (dots only) between 1101px and 1699px; labels stay available to assistive tech */
@media (min-width: 1101px) and (max-width: 1699px) {
  .rail-left { left: 18px; gap: 16px; }
  .rail-left .seg .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rail-left .seg .bar { width: 10px; background: transparent; opacity: 1; }
  .rail-left .seg.active .bar { width: 10px; }
  .rail-left .seg .bar::before { left: 0; top: -3px; width: 7px; height: 7px; }
}

/* Light-weight reveal on small / low-data cases: keep opacity + translate, no blur anywhere */
@media (max-width: 900px), (prefers-reduced-data: reduce) {
  :root { --reveal-blur: 0px; }
  section.stage .fade-in { filter: none; transition-property: opacity, transform; }
  section.stage.fx .stage-inner { filter: none; }
}


/* nav pill */
.nav ul {
  padding: 10px 28px; border: 1px solid var(--hair-2); border-radius: 999px;
  background: rgba(14,18,25,0.5);
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
@media (max-width: 900px) { .nav ul { -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (min-width: 901px) {
  /* quick and short: brand / clock step out in one fast beat and are visibility:hidden right
     after it, so no half-faded clock lingers over the content scrolling underneath */
  .nav .brand, .nav .meta > :not(.lang) {
    transition: opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out), visibility 0s linear 0s;
  }
  .nav.is-scrolled .brand, .nav.is-scrolled .meta > :not(.lang) {
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out), visibility 0s linear var(--dur-fast);
  }
  /* keyboard users tabbing into the pill get the brand back (it would otherwise be unreachable) */
  .nav.is-scrolled .meta .dot { animation: none; }   /* the pulse would hold its opacity up mid-fade */
  .nav.is-scrolled:focus-within .brand { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
}
@media (max-width: 1560px) { .nav .meta > span:first-child { display: none; } }  /* the pill needs the room */
/* the comfort toggle takes the clock's place in the nav where room is short (the footer keeps the clock) */
@media (max-width: 1680px) { .nav .meta #clock { display: none; } }
@media (max-width: 1280px) { .nav ul { padding: 9px 22px; } }

/* hero choreography */
/* Entrance is a keyframe animation (not a transition) so it plays on first paint even though
   axis.js marks the hero as revealed before that paint. Backwards fill: the resting state is
   the element's natural style, so nothing depends on JS and nothing lingers. */
/* Beat 01: the headline lines arrive by the P1 carriage (60ms apart), then pill, lede and CTA; the
   panel follows --dur-base after the text has settled (its values count up, axis-motion.js). The
   carriage keyframes: the move runs the whole --dur-base on --ease-mech, opacity is done at 57%
   (= --dur-fast). */
@keyframes axis-carriage {
  from { opacity: 0; transform: translate3d(calc(var(--col, -1) * var(--carriage-x)), 0, 0); }
  57% { opacity: 1; }
  to { transform: none; }
}
.hero .ln { display: inline-block; }
.mo .hero .ln { animation: axis-carriage var(--dur-base) var(--ease-mech) backwards; animation-delay: calc(var(--i, 0) * var(--stagger)); }
.mo .hero .fade-in { animation: axis-carriage var(--dur-base) var(--ease-mech) backwards; animation-delay: calc(var(--step, 0) * var(--stagger)); }
.mo .hero .hero-side.fade-in { animation-delay: calc(var(--stagger) * 4 + var(--dur-base) * 2); }
section.hero .fade-in { transition: none; }   /* keyframes own the entrance; the exit must not lag */
.no-js .hero .ln, .no-js .hero .fade-in { animation: none; }
/* --hp (hero scroll progress, set by axis.js) stays a theme hook; the hero's exit itself is the
   shared --ex stage exit (see "motion"), so nothing is stacked */
@media (prefers-reduced-motion: reduce) {
  .hero .ln, .hero .fade-in { animation: none; }
}

/* view transitions */
@keyframes axis-vt-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes axis-vt-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes axis-page-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  #scene { view-transition-name: scene; }
  .nav { view-transition-name: nav; }
  ::view-transition-old(root) { animation: var(--dur-fast) ease both axis-vt-out; }
  ::view-transition-new(root) { animation: var(--dur-base) var(--ease-out) both axis-vt-in; }
  /* browsers without cross-document view transitions: short rise of the page content */
  .vt-fallback:not(.no-js) main { animation: axis-page-in var(--dur-base) var(--ease-out) backwards; }
}

/* pointer scene */
@media (hover: hover) and (pointer: fine) { #scene canvas { cursor: default; } }

/* whatsapp greeting */
.wa-bubble {
  position: fixed; right: 20px; bottom: 84px; z-index: 60; max-width: 260px;
  padding: 14px 40px 14px 16px; border: 1px solid var(--hair-2); border-radius: var(--r-md) var(--r-md) var(--r-xs) var(--r-md);
  background: var(--panel); color: var(--fg);
  font-size: 14px; line-height: 1.5;
  opacity: 0; transform: translateY(8px) scale(.96); visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-base) ease, transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.wa-bubble.show { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.wa-bubble-x { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; background: none; border: 0; border-radius: var(--r-pill); color: var(--fg-dim); font-size: 20px; line-height: 1; cursor: pointer; }
.wa-bubble-x:hover { color: var(--fg); }
html:not(.no-js) .wa-fab:not(.on) { opacity: 0; transform: scale(.5); visibility: hidden; pointer-events: none; }
.wa-fab.on { animation: axis-pop var(--dur-base) var(--ease-out) backwards; }   /* no overshoot */
@keyframes axis-pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
body.at-footer .wa-bubble { opacity: 0; visibility: hidden; }
@media (max-width: 900px) { .wa-bubble { right: 16px; bottom: 136px; max-width: min(260px, calc(100vw - 32px)); } }
@media (prefers-reduced-motion: reduce) {
  .wa-bubble { transition: none; transform: none; }
  .wa-fab.on { animation: none; }
}

/* backbone roots */
/* s4 "omurga": the diagram is a root system generated in axis.js (seeded, identical on every load)
   and pre-rendered in the markup as the static fallback. Labels sit on the root tips (--x/--y in
   the 0..100 svg space). With .grow (JS, motion allowed) one var --g (0..1, scroll-linked) drives
   every path: each has its own window (--s start, --l length), trunk and main roots first. */
.arch .node { left: calc(var(--x, 50) * 1%); top: calc(var(--y, 50) * 1%); transform: translate(-50%, -50%); transition: border-color var(--dur-fast) var(--ease-mech), color var(--dur-fast) var(--ease-mech); }
.arch svg path { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; }
.arch svg .r[data-d="1"] { opacity: .9; }
.arch svg .r[data-d="2"] { opacity: .78; }
.arch svg .r[data-d="3"] { opacity: .6; }
.arch svg .r[data-d="4"] { opacity: .45; }
.arch.grow svg .r {
  stroke-dasharray: 1px 2px;
  stroke-dashoffset: calc((1 - clamp(0, (var(--g, 0) - var(--s, 0)) / var(--l, 1), 1)) * 1.02px);
}
/* labels: dim until their root arrives, then lit (no-js / reduced motion: all lit). Flat: the
   border steps up one hairline and the dot turns solid accent, no glow */
.arch .node.on:not(.core), .arch:not(.grow) .node:not(.core) { border-color: var(--hair-3); color: var(--fg); }
.arch .node.on::before, .arch:not(.grow) .node::before { background: var(--accent); }
.arch.grow .node.core:not(.on) { border-color: var(--hair-2); color: var(--fg-dim); }
/* the six core -> tip chains (.flow) are hidden paths: a single trace runs along one when its root
   arrives (see "engine: trace"); nothing loops */
.arch svg .flow { stroke: var(--fg); stroke-width: .5; opacity: 0; }
/* the chips stay clear of each other where the diagram gets narrow (min gap >= 12px) */
@media (max-width: 1100px) {
  .arch .node { padding: 8px 12px 8px 11px; gap: 7px; }
}
@media (max-width: 600px) {
  .arch .node { padding: 7px 10px 7px 9px; font-size: 12px; gap: 6px; }
  .arch .node::before { width: 5px; height: 5px; }
  .arch .node.core { padding: 12px 16px 12px 14px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .arch svg .r { stroke-dasharray: none; stroke-dashoffset: 0; }
  .arch svg .flow { display: none; }
  .arch .node, .arch .node::before { transition: none; }
}

/* spine */
/* One thin line through the page: on desktop it joins the rail dots (the vertebrae) and fills
   in section units (--spine, written by axis.js); passed vertebrae are lit (.on), the current one
   is the larger .active dot. <=1100px (no rail): a 2px line on the left viewport edge fills with
   the overall scroll progress (--pg). Both step aside with the rail at the footer. */
.rail-left .spine {
  position: absolute; left: calc(var(--dot-cx, 1px) - .5px); top: var(--spine-top, 8px); height: var(--spine-h, 0px); width: 1px;
  background: var(--hair-2); pointer-events: none;
}
.rail-left .spine i { display: block; height: 100%; background: var(--accent); transform: scaleY(var(--spine, 0)); transform-origin: 50% 0; }
.rail-left .seg.on .bar::before { background: var(--accent); }
.rail-left .seg .bar::before { z-index: 1; }
@media (min-width: 1101px) and (max-width: 1699px) { .rail-left { --dot-cx: 3.5px; } }
.spine-edge { position: fixed; left: 0; top: 0; bottom: 0; width: 2px; z-index: 40; pointer-events: none; display: none; background: var(--hair); transition: opacity var(--dur-fast) ease, visibility var(--dur-fast) ease; }
.spine-edge i { display: block; height: 100%; background: var(--accent); transform: scaleY(var(--pg, 0)); transform-origin: 50% 0; }
@media (max-width: 1100px) { .spine-edge { display: block; } }
body.at-footer .spine-edge { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .spine-edge { transition: none; }
}

/* nav responsive: 901-1180px fits all 8 links in the pill without touching the brand or TR/EN.
   The clock, its dot and the location text step out (TR/EN stays); links get tighter tracking. */
@media (min-width: 901px) and (max-width: 1180px) {
  .nav { padding-left: 24px; padding-right: 24px; column-gap: 20px; }
  .nav .meta > :not(.lang) { display: none; }
  .nav ul { gap: 12px; padding: 9px 16px; font-size: 12px; letter-spacing: 0.06em; }
}

/* readout responsive: one clean line at 320-560px (layer + name); the progress bar steps out and
   the bar clears the iOS home indicator */
@media (max-width: 560px) {
  .readout { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); font-size: 10px; letter-spacing: 0.06em; white-space: nowrap; }
  .readout .depth { gap: 10px; }
  .readout .bar-wrap { display: none; }
  .wa-fab { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
/* desktop: the WhatsApp button sits in the readout's corner; keep the progress bar clear of it */
@media (min-width: 901px) {
  body:has(.wa-fab) .readout { padding-right: 96px; }
}

/* theme switcher */
/* Small pill bottom-left (home pages, every theme) to compare classic / v1 / v2 / v3. It sits just
   above the readout; the desktop rail moves up to make room. */
.theme-switch {
  --readout-h: 54px;
  position: fixed; left: 16px; bottom: calc(var(--readout-h) + 10px); z-index: 45;
  display: flex; gap: 2px; padding: 3px; max-width: calc(100vw - 32px);
  border: 1px solid var(--hair-2); border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
}
.theme-switch a {
  padding: 6px 9px; border-radius: var(--r-pill); color: var(--fg-dim); white-space: nowrap;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.theme-switch a:hover { color: var(--fg); background: var(--accent-soft); }
.theme-switch a[aria-current="page"] { color: var(--bg); background: var(--accent); }
body:has(.theme-switch) .rail-left { bottom: 116px; }
@media (max-width: 900px) { .theme-switch { --readout-h: 44px; left: 12px; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (max-width: 560px) {
  .theme-switch { --readout-h: calc(38px + env(safe-area-inset-bottom, 0px)); left: 8px; max-width: calc(100vw - 16px); letter-spacing: .02em; }
  .theme-switch a { padding: 6px 7px; }
}

/* engine: scene */
/* <html data-scene="canvas|none">: the fixed canvas is a theme decision (server default: classic =
   canvas, v1-v3 = none; a theme.css can set --axis-scene: canvas|none on :root). Off = hidden and
   axis.js skips every per-frame draw. */
html[data-scene="none"] #scene { display: none; }
/* classic draws its own drafting grid and sheet edges on the canvas: the CSS hair grid and the
   edge vignette would double the grid and swallow the sheet border, rulers and registration marks */
:root[data-theme="classic"][data-scene="canvas"]:not(.no-js) :is(.hair-grid, .vignette) { display: none; }

/* engine: sides */
/* Variant themes render data-side="l|r" on the sections (the side of the text column; the visual
   takes the other). --side / --col (-1 left, 1 right) drive the pin and arrival shifts; "r" also
   mirrors the two columns on desktop. Classic renders no data-side. */
section.stage[data-side] { --side: -1; }
section.stage[data-side="r"] { --side: 1; }
section.stage[data-side] .stage-inner > * { --col: var(--side); }
section.stage[data-side] .stage-inner > :nth-child(2) { --col: calc(var(--side) * -1); }
@media (min-width: 901px) {
  section.stage[data-side="r"] .stage-inner > :first-child { grid-column: 2; grid-row: 1; }
  section.stage[data-side="r"] .stage-inner > :nth-child(2) { grid-column: 1; grid-row: 1; }
  section.stage[data-side="r"][data-layout="right"] .stage-inner { grid-template-columns: 1.1fr 1fr; }
}

/* engine: pin */
/* Steps 1-3 (data-step 0..2) stacked in one sticky, viewport-high scene. axis.js adds .is-pinned
   (JS on, motion allowed, viewport >= 560px tall, every step fits) and writes, from the scroll
   position only: --pin-p (0..1 through the pin), --step-p (0..1 inside the current step), --tf
   (0..1 transformation into the omurga, also on the next section), data-step on .pin and per step
   --step-v (visibility 0..1), --step-x (displacement 0..1) and .is-before/.is-active/.is-after.
   Scroll length: 3 steps x --pin-step-h, then 100vh of transformation while the next section
   rises over the pinned scene (it overlaps the pin by 100vh). */
.pin { position: relative; }
.pin__ticks, .pin__core, .pin__count { display: none; }
/* steps are ~90vh apart: step k rests k steps into the scene (the first at its top), each holds
   still on a 70% plateau around that point and hands over by a short register cut (30%) half-way
   to the next, so PageDown/Space (~87.5% of the viewport) from any rest point lands inside the
   next plateau. Scene length: (steps - .5) x --pin-step-h, then 100vh of transformation. */
.pin.is-pinned {
  --pin-step-h: 90vh; --pin-shift: min(8vw, 96px); --pin-collapse: 14vw; --pin-pad-b: 104px; --reg-shift: 32px;
  height: calc(100vh * 2 + (var(--pin-steps, 3) - .5) * var(--pin-step-h));
}
.pin.is-pinned > .pin__stick { position: sticky; top: 0; height: 100vh; overflow: hidden; z-index: 0; }
.pin.is-pinned + section.stage { margin-top: -100vh; z-index: 1; }
.pin.is-pinned .pin__stick > section.stage {
  position: absolute; inset: 0; min-height: 0; pointer-events: none;
  padding-top: var(--nav-h, 72px); padding-bottom: var(--pin-pad-b);
  --side: -1;
}
.pin.is-pinned .pin__stick > section.stage[data-side="r"] { --side: 1; }
.pin.is-pinned .pin__stick > section.stage.is-active { pointer-events: auto; }
/* P5 register: a step change is a cut, not a crossfade. axis.js writes per step the hidden fraction
   of each column (--reg-t text, --reg-v visual, 0 = at rest .. 1 = gone; the visual lags the text)
   and --reg-s (-1: the step leaves toward the other side and the next one arrives on the same
   sweep; 1: the last step leaves toward its own side into the transformation). The column moves
   --reg-shift along the sweep while a clip closes from the trailing side; the outgoing step is gone
   before the incoming one opens, so two steps are never on screen together. Scroll position is the
   only clock: no transitions, no opacity, no blur, identity at rest. */
.pin.is-pinned .pin__stick > section.stage .stage-inner > * {
  --col: var(--side);
  --h: var(--reg-t, 1);
  --hs: calc(var(--reg-s, -1) * var(--side) * -1);
  transform: translate3d(calc(var(--reg-s, -1) * var(--side) * var(--reg-shift) * var(--h)), 0, 0);
  clip-path: inset(-80px calc(max(0, var(--hs)) * var(--h) * (100% + 160px) - 80px) -80px calc(max(0, var(--hs) * -1) * var(--h) * (100% + 160px) - 80px));
  filter: none; transition: none;
}
.pin.is-pinned .pin__stick > section.stage .stage-inner > :nth-child(2) { --col: calc(var(--side) * -1); --h: var(--reg-v, 1); }
/* progress ticks (themeable hook): one per step, the active one fills with --step-p */
.pin.is-pinned .pin__ticks {
  display: flex; gap: 12px; list-style: none; position: absolute; z-index: 2; left: 50%; bottom: 72px;
  transform: translateX(-50%); pointer-events: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--fg-faint);
  opacity: calc(1 - var(--tf, 0) * 4);
}
.pin__tick { display: flex; align-items: center; gap: 8px; transition: color var(--dur-fast) var(--ease-mech); }
.pin__tick i { position: relative; display: block; width: 28px; height: 2px; border-radius: var(--r-pill); background: var(--hair-2); overflow: hidden; }
.pin__tick i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.pin__tick.is-before i::after { transform: scaleX(1); }
.pin__tick.is-active { color: var(--fg); }
.pin__tick.is-active i::after { transform: scaleX(var(--step-p, 0)); }
/* classic: the ticks are the scroll cue; their numbers give way to one "01 / 03" counter whose
   digits change by a detent (axis.js) */
:root[data-theme="classic"] .pin.is-pinned .pin__tick span { display: none; }
:root[data-theme="classic"] .pin.is-pinned .pin__count {
  display: block; position: absolute; z-index: 2; left: 50%; bottom: 92px; transform: translateX(-50%); pointer-events: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--fg-faint); font-variant-numeric: tabular-nums;
  opacity: calc(1 - var(--tf, 0) * 4);
}
.pin__count b { display: inline-block; font-weight: 500; color: var(--fg); }
/* transformation seed (themeable hook): the core appears at --tf .1 by a detent (.core-on, at once,
   200ms settle), then the spine is scribed downward with --tf .1 -> .5; it gives way by --tf .7,
   while the omurga section rises (its headline reaches the centre only at --tf >= .8) */
.pin.is-pinned .pin__core {
  display: block; position: absolute; z-index: 1; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none;
  opacity: min(1, calc((.7 - var(--tf, 0)) * 10));
}
.pin__core::before {
  content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); opacity: 0; transform: translateY(-2px);
  transition: opacity 0s linear, transform var(--dur-fast) var(--ease-mech), background-color var(--dur-fast) var(--ease-mech);
}
.pin.core-on .pin__core::before { opacity: 1; transform: none; }
.pin__core i { position: absolute; left: -.5px; top: 6px; width: 1px; height: 50vh; background: linear-gradient(var(--accent), transparent); transform: scaleY(clamp(0, calc((var(--tf, 0) - .1) / .4), 1)); transform-origin: 50% 0; }
@media (min-width: 901px) and (max-height: 1000px) {
  /* short desktop viewports (laptops): type follows the viewport height so every step fits */
  .pin.is-pinned { --pin-pad-b: 88px; }
  .pin.is-pinned .pin__ticks { bottom: 64px; }
  .pin.is-pinned .pin__stick .section-num { margin-bottom: 12px; }
  .pin.is-pinned .pin__stick .eyebrow, .pin.is-pinned .pin__stick .status-pill { margin-bottom: 16px; }
  .pin.is-pinned .pin__stick h1.display { font-size: clamp(40px, min(6.2vw, 8.8vh), 104px); }
  .pin.is-pinned .pin__stick h2.display { font-size: clamp(32px, min(4.8vw, 7vh), 76px); }
  .pin.is-pinned .pin__stick p.lede { font-size: 16px; margin-top: 18px; }
  .pin.is-pinned .pin__stick .cta-row { margin-top: 26px; }
  .pin.is-pinned .pin__stick .metrics { margin-top: 24px; }
  .pin.is-pinned .pin__stick .metrics .m { padding: 14px 16px; }
  .pin.is-pinned .pin__stick .metrics .m .v { font-size: 26px; margin-top: 6px; }
  .pin.is-pinned .pin__stick .specpanel { padding: 20px 24px; }
  .pin.is-pinned .pin__stick .specpanel .row { padding: 10px 0; }
}
@media (max-width: 900px) {
  /* simplified: one column, text first, a compact panel below, no slide beyond 24px; the ticks
     become three dots on the right edge. Steps that still do not fit switch the pin off (JS). */
  .pin.is-pinned { --pin-shift: 24px; --pin-collapse: 0px; --pin-pad-b: 52px; --reg-shift: 16px; }
  .pin.is-pinned .pin__stick > section.stage { padding-left: 20px; padding-right: 20px; padding-top: calc(var(--nav-h, 58px) + 6px); }
  .pin.is-pinned .pin__stick > section.stage .stage-inner { gap: 14px; }
  .pin.is-pinned .pin__stick .section-num { margin-bottom: 8px; font-size: 11px; }
  .pin.is-pinned .pin__stick .eyebrow, .pin.is-pinned .pin__stick .status-pill { margin-bottom: 12px; font-size: 11px; }
  .pin.is-pinned .pin__stick h1.display { font-size: clamp(32px, 10vw, 44px); line-height: 1.02; }
  .pin.is-pinned .pin__stick h2.display { font-size: clamp(27px, 8vw, 36px); line-height: 1.04; }
  .pin.is-pinned .pin__stick p.lede { font-size: 15px; line-height: 1.5; margin-top: 12px; }
  .pin.is-pinned .pin__stick .cta-row { margin-top: 16px; gap: 10px 18px; }
  .pin.is-pinned .pin__stick .btn { padding: 12px 18px; }
  .pin.is-pinned .pin__stick .metrics { margin-top: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pin.is-pinned .pin__stick .metrics .m { padding: 8px; }
  .pin.is-pinned .pin__stick .metrics .m .k { font-size: 8px; letter-spacing: .08em; overflow-wrap: anywhere; }
  .pin.is-pinned .pin__stick .metrics .m .v { font-size: 18px; margin-top: 4px; }
  .pin.is-pinned .pin__stick .specpanel { padding: 12px 16px; font-size: 11.5px; }
  .pin.is-pinned .pin__stick .specpanel .head { margin-bottom: 4px; padding-bottom: 8px; font-size: 10px; }
  .pin.is-pinned .pin__stick .specpanel .row { padding: 6px 0; font-size: 11.5px; flex-wrap: nowrap; }
  .pin.is-pinned .pin__ticks { left: auto; right: 5px; top: 50%; bottom: auto; transform: translateY(-50%); flex-direction: column; gap: 8px; }
  .pin.is-pinned .pin__tick span { display: none; }
  :root[data-theme="classic"] .pin.is-pinned .pin__count { display: none; }
  .pin.is-pinned .pin__tick i { width: 2px; height: 22px; }
  .pin.is-pinned .pin__tick i::after { transform: scaleY(0); transform-origin: 50% 0; }
  .pin.is-pinned .pin__tick.is-before i::after { transform: scaleY(1); }
  .pin.is-pinned .pin__tick.is-active i::after { transform: scaleY(var(--step-p, 0)); }
}

/* engine: arrivals */
/* Every home theme, sections after the pin: the text column and the visual arrive from opposite
   sides, alternating per section (data-side l|r; r also mirrors the columns on desktop). It is the
   one-shot P1 carriage above (.in, never removed): --col (from "engine: sides") picks the side,
   --carriage-x the distance, the --step stagger (<= 4 steps), no blur. No-js / reduced motion /
   .calm: visible at once. */

/* engine: motion language */
/* "Engineered, tactile" (docs/themes.md "Motion language"). Seven primitives, one clock per element
   (scroll position OR a one-shot timer), durations --dur-fast/base/slow only, curves --ease-mech
   (moves), --ease-draw (lines), --ease-out (opacity only). No overshoot, no scale-up entrances, no
   glow, nothing loops. Pre-states live under html.mo (JS on, motion allowed, not .calm), so no-js,
   reduced motion and the "reduce motion" toggle render the final state.
   P1 carriage  = the .fade-in reveal above (24px from the side, 350ms)
   P2 scribe    = a 1px hairline scaleX 0 -> 1 from its anchor side over --dur-base on --ease-draw
   P3 detent    = a state applied at once, then a --dur-fast settle on --ease-mech (colour / 2px)
   P4 readout   = instrument count (axis-motion.js)
   P5 register  = the pinned step cut ("engine: pin")
   P6 trace     = one 24px bright segment travelling a path once, --dur-slow, linear
   P7 lock      = the canvas holds still while a section is in its reading band (axis.js) */
@keyframes axis-trace { from { stroke-dashoffset: var(--seg, .06px); } to { stroke-dashoffset: -1px; } }
@keyframes axis-trace-x { from { background-position: -24px 0; } to { background-position: calc(100% + 24px) 0; } }
@keyframes axis-cut-in {
  from { opacity: 0; transform: translate3d(calc(var(--scribe-x) * -1), 0, 0); }
  57% { opacity: 1; }
  to { transform: none; }
}
/* row index for row-by-row beats (the panel head is the first child) */
.specpanel .row:nth-child(2), .dash .sparkrow:nth-child(2) { --r: 0; }
.specpanel .row:nth-child(3), .dash .sparkrow:nth-child(3) { --r: 1; }
.specpanel .row:nth-child(4), .dash .sparkrow:nth-child(4) { --r: 2; }
.specpanel .row:nth-child(5), .dash .sparkrow:nth-child(5) { --r: 3; }
.specpanel .row:nth-child(6), .dash .sparkrow:nth-child(6) { --r: 4; }
.specpanel .row:nth-child(7), .dash .sparkrow:nth-child(7) { --r: 5; }
.flow .row:nth-child(1) { --r: 0; } .flow .row:nth-child(2) { --r: 1; } .flow .row:nth-child(3) { --r: 2; } .flow .row:nth-child(4) { --r: 3; }
.flow .row:nth-child(5) { --r: 4; } .flow .row:nth-child(6) { --r: 5; } .flow .row:nth-child(7) { --r: 6; }

/* rail dial: the active vertebra is one 6px square marker that slides slot to slot (a detent,
   --rail-y from axis.js); hovering / focusing a vertebra brings its name in by an 8px carriage */
.rail-left a.seg { position: relative; }
.rail-left .marker {
  position: absolute; z-index: 2; left: calc(var(--dot-cx, 1px) - 3px); top: 0; width: 6px; height: 6px;
  background: var(--accent); pointer-events: none; opacity: 0;
  transform: translate3d(0, calc(var(--rail-y, 0px) - 3px), 0);
  transition: transform var(--dur-fast) var(--ease-mech);
}
.rail-left.has-marker .marker { opacity: 1; }
.rail-left.has-marker .seg.active .bar::before { background: transparent; }
@media (min-width: 1101px) and (max-width: 1699px) {
  .rail-left .seg .label {
    left: 22px; top: 50%; width: auto; height: auto; overflow: visible; clip: auto; padding: 3px 8px;
    border: 1px solid var(--hair-2); border-radius: var(--r-xs); background: var(--bg-2); color: var(--fg);
    opacity: 0; transform: translate3d(calc(var(--scribe-x) * -1), -50%, 0); pointer-events: none;
    transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-mech);
  }
  .rail-left a.seg:hover .label, .rail-left a.seg:focus-visible .label { opacity: 1; transform: translate3d(0, -50%, 0); }
}

/* pinned beats: step 2's panel values switch row by row (a detent per row, 60ms apart) once the
   step has registered (.lit, one-shot); step 3's phase chips 01-04 light at --step-p .1/.3/.5/.7 */
:root[data-theme="classic"].mo .pin.is-pinned section.stage[data-step="1"]:not(.lit) .specpanel .row .v { color: var(--fg-faint); transform: translate3d(0, 2px, 0); }
:root[data-theme="classic"].mo .pin.is-pinned section.stage[data-step="1"] .specpanel .row .v {
  display: inline-block;
  transition: color var(--dur-fast) var(--ease-mech), transform var(--dur-fast) var(--ease-mech);
  transition-delay: calc(var(--r, 0) * var(--stagger));
}
:root[data-theme="classic"] .metrics .m::after { content: ""; position: absolute; top: 12px; right: 12px; width: 6px; height: 6px; background: var(--accent); }
:root[data-theme="classic"].mo .pin.is-pinned .metrics .m::after { background: var(--hair-2); transition: background-color var(--dur-fast) var(--ease-mech); }
:root[data-theme="classic"].mo .pin.is-pinned .metrics .m .v { color: var(--fg-faint); transition: color var(--dur-fast) var(--ease-mech); }
:root[data-theme="classic"].mo .pin.is-pinned .metrics .m.on::after { background: var(--accent); }
:root[data-theme="classic"].mo .pin.is-pinned .metrics .m.on .v { color: var(--fg); }

/* traces (P6): the s4 roots (one per label as its root arrives), the core (once fully grown) and
   the KURULDU rows of s7; --seg is the 24px segment as a fraction of the path (axis-motion.js) */
.arch svg .flow.trace { opacity: 1; stroke: oklch(0.9 0.1 var(--accent-h)); stroke-width: .6; stroke-dasharray: var(--seg, .06px) 2px; animation: axis-trace var(--dur-slow) linear 1 both; }
.frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: none; }
.arch .node.core > .frame { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }
.frame rect { x: .5px; y: .5px; width: calc(100% - 1px); height: calc(100% - 1px); rx: calc(var(--r-md) - .5px); stroke-width: 1px; }
.arch .node.core .frame rect { rx: calc(var(--r-lg) - .5px); }
.frame .fr { stroke: transparent; }
:root[data-theme="classic"].mo .rack .panel > .frame .fr { stroke: var(--hair-2); }
.frame .tr { stroke: oklch(0.9 0.1 var(--accent-h)); stroke-dasharray: var(--seg, .06px) 2px; opacity: 0; }
.trace > .frame .tr { opacity: 1; animation: axis-trace var(--dur-slow) linear 1 both; }
:root[data-theme="classic"] .specpanel .row::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none; opacity: 0;
  background: linear-gradient(oklch(0.9 0.1 var(--accent-h)), oklch(0.9 0.1 var(--accent-h))) no-repeat; background-size: 24px 1px;
}
:root[data-theme="classic"] .specpanel .row.trace::after { opacity: 1; animation: axis-trace-x var(--dur-slow) linear 1 both; }

/* s5 (classic): the table draws itself. The column does not slide; each row divider is scribed in
   two bursts (A-D, then E-G 240ms later) and its labels follow by an 8px carriage */
:root[data-theme="classic"].mo #s5 .stage-inner > :nth-child(2).fade-in { opacity: 1; transform: none; transition: none; }
:root[data-theme="classic"].mo #s5 .flow .row { --burst: 0s; }
:root[data-theme="classic"].mo #s5 .flow .row:nth-child(n+5) { --burst: calc(var(--stagger) * 4); }
:root[data-theme="classic"].mo #s5 .flow .row::after { transform: scaleX(0); transition: transform var(--dur-base) var(--ease-draw) var(--burst); }
:root[data-theme="classic"].mo #s5 .flow .row > * {
  opacity: 0; transform: translate3d(calc(var(--side, -1) * var(--scribe-x) * -1), 0, 0);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-mech);
  transition-delay: calc(var(--burst) + var(--dur-base));
}
:root[data-theme="classic"].mo #s5.in .flow .row::after { transform: none; }
:root[data-theme="classic"].mo #s5.in .flow .row > * { opacity: 1; transform: none; }

/* s6 (classic): the result rack. A one-shot timeline from axis-motion.js once the dash top reaches
   80% of the viewport: 0 the head rule is scribed; 120/240/360 the p1/p3/p2 frames are scribed
   edge by edge (top, right, bottom, left; --dur-frame) and their fill follows; 600 head labels and
   LEDs; 700 the KPIs count and the sparkline draws, ending on its marker; 800 the six rows count
   top to bottom; ~1500 done, nothing loops */
:root[data-theme="classic"].mo #s6 .stage-inner > :nth-child(2).fade-in { opacity: 1; transform: none; transition: none; }
:root[data-theme="classic"].mo .rack .dash-head { opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); }
:root[data-theme="classic"].mo .rack .dash-head::after { transform: scaleX(0); transition: transform var(--dur-base) var(--ease-draw); }
:root[data-theme="classic"].mo .rack.run .dash-head { opacity: 1; }
:root[data-theme="classic"].mo .rack.run .dash-head::after { transform: none; }
:root[data-theme="classic"].mo .rack .panel {
  border: 0; padding: 17px 21px 21px; background-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}
:root[data-theme="classic"].mo .rack .panel.fill-on { background-color: var(--card-rack); }
@media (min-width: 901px) { :root[data-theme="classic"].mo .rack .panel.fill-on { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); } }
:root[data-theme="classic"].mo .rack .panel > .frame .fr { stroke-dasharray: 1px 1px; stroke-dashoffset: 1px; }
:root[data-theme="classic"].mo .rack .panel.f-on > .frame .fr { stroke-dashoffset: 0; transition: stroke-dashoffset var(--dur-frame) linear; }
:root[data-theme="classic"].mo .rack .panel .head { border-bottom-color: transparent; transition: border-bottom-color var(--dur-fast) var(--ease-out); }
:root[data-theme="classic"].mo .rack .panel .head > span:first-child,
:root[data-theme="classic"].mo .rack .p3-note, :root[data-theme="classic"].mo .rack .p3-row, :root[data-theme="classic"].mo .rack .sparkrow {
  opacity: 0; transform: translate3d(calc(var(--scribe-x) * -1), 0, 0);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-mech);
}
:root[data-theme="classic"].mo .rack .sparkrow { transition-delay: calc(var(--r, 0) * var(--stagger)); }
:root[data-theme="classic"].mo .rack .panel .led { background: var(--hair-2); transition: background-color var(--dur-fast) var(--ease-mech); }
:root[data-theme="classic"].mo .rack .panel.lab-on .head { border-bottom-color: var(--hair-2); }
:root[data-theme="classic"].mo .rack .panel.lab-on .head > span:first-child { opacity: 1; transform: none; }
:root[data-theme="classic"].mo .rack .panel.lab-on .led { background: var(--accent); }
:root[data-theme="classic"].mo .rack .kpi { opacity: 0; }
:root[data-theme="classic"].mo .rack .kpi-on .kpi { opacity: 1; transition: opacity var(--dur-fast) var(--ease-out); }
:root[data-theme="classic"].mo .rack .spark-line { stroke-dasharray: 1px 1px; stroke-dashoffset: 1px; }
:root[data-theme="classic"].mo .rack .spark-area, :root[data-theme="classic"].mo .rack .spark-mark { opacity: 0; }
:root[data-theme="classic"].mo .rack .spark-mark { transform: translate3d(0, -2px, 0); }
:root[data-theme="classic"].mo .rack .spark-on .spark-line { stroke-dashoffset: 0; transition: stroke-dashoffset var(--dur-slow) var(--ease-draw); }
:root[data-theme="classic"].mo .rack .spark-on .spark-area { opacity: 1; transition: opacity var(--dur-slow) var(--ease-out); }
:root[data-theme="classic"].mo .rack .mark-on .spark-mark { opacity: 1; transform: none; transition: transform var(--dur-fast) var(--ease-mech); }
:root[data-theme="classic"].mo .rack .note-on .p3-note, :root[data-theme="classic"].mo .rack .note-on .p3-row,
:root[data-theme="classic"].mo .rack .rows-on .sparkrow { opacity: 1; transform: none; }

/* s7: the rows arrive by P1 after the card; the status cells switch PLANLAMA -> DEVAM -> KURULDU by
   detents (axis-motion.js), each KURULDU row then gets one trace along its divider */
:root[data-theme="classic"].mo #s7 .specpanel .row {
  opacity: 0; transform: translate3d(calc(var(--side, 1) * var(--scribe-x) * -1), 0, 0);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-mech);
  transition-delay: calc(var(--dur-base) + var(--r, 0) * var(--stagger));
}
:root[data-theme="classic"].mo #s7.in .specpanel .row { opacity: 1; transform: none; }
:root[data-theme="classic"].mo #s7 .specpanel .v.code { display: inline-block; transition: color var(--dur-fast) var(--ease-mech), transform var(--dur-fast) var(--ease-mech); }
.specpanel .v.code[data-stage="0"] { color: var(--fg-faint); }
.specpanel .v.code[data-stage="1"] { color: var(--fg-dim); }
.specpanel .v.code.tick { transform: translate3d(0, 2px, 0); transition: none; }

/* s8: the headline only by lines (P1, 60ms apart); the CTA gets one scribed underline */
.finale h1.display .ln { display: inline-block; }
.mo section.finale h1.display .ln {
  opacity: 0; transform: translate3d(calc(var(--col, -1) * var(--carriage-x)), 0, 0);
  transition: transform var(--dur-base) var(--ease-mech), opacity var(--dur-fast) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.mo section.finale.in h1.display .ln { opacity: 1; transform: none; }
:root[data-theme="classic"] section.finale .cta-row { position: relative; }
:root[data-theme="classic"] section.finale .cta-row::after {
  content: ""; position: absolute; left: 50%; bottom: -16px; width: min(320px, 100%); height: 1px; background: var(--hair-2);
  transform: translateX(-50%); transform-origin: 0 50%;
}
:root[data-theme="classic"].mo section.finale .cta-row::after { transform: translateX(-50%) scaleX(0); transition: transform var(--dur-base) var(--ease-draw) calc(var(--stagger) * 6 + var(--dur-base)); }
:root[data-theme="classic"].mo section.finale.in .cta-row::after { transform: translateX(-50%); }

/* readout and pin counter digits change by a detent (axis-motion.js / axis.js animate them) */
#rt-layer, #rt-name, .pin__count b { display: inline-block; }

/* long in-page jumps (> 1.5 viewports) are a cut: the content dips out over --dur-fast, the page
   jumps, then it comes back by an 8px carriage */
html.cut main, html.cut footer, html.cut #scene { opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); }
html.cut-in main, html.cut-in footer { animation: axis-cut-in var(--dur-base) var(--ease-mech) backwards; }

/* comfort control: "reduce motion" (aria-pressed), in the nav meta and the footer bar. .calm on
   <html> has the effect of prefers-reduced-motion (no pin, static canvas per section, reveals
   visible, loops off); stored per browser */
.calm .nav .meta .dot { animation: none; }
