/* Self-hosted fonts (SIL OFL 1.1): Archivo, Golos Text, JetBrains Mono. Variable woff2 from Google Fonts. */
/* Archivo, latin */
@font-face{font-family:'Archivo';font-style:normal;font-weight:500 800;font-display:swap;src:url(../assets/fonts/archivo-latin.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;}
/* Golos Text, cyrillic-ext */
@font-face{font-family:'Golos Text';font-style:normal;font-weight:400 600;font-display:swap;src:url(../assets/fonts/golos-text-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
/* Golos Text, cyrillic */
@font-face{font-family:'Golos Text';font-style:normal;font-weight:400 600;font-display:swap;src:url(../assets/fonts/golos-text-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
/* Golos Text, latin-ext */
@font-face{font-family:'Golos Text';font-style:normal;font-weight:400 600;font-display:swap;src:url(../assets/fonts/golos-text-latin-ext.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;}
/* Golos Text, latin */
@font-face{font-family:'Golos Text';font-style:normal;font-weight:400 600;font-display:swap;src:url(../assets/fonts/golos-text-latin.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;}
/* JetBrains Mono, cyrillic */
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url(../assets/fonts/jetbrains-mono-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
/* JetBrains Mono, latin */
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url(../assets/fonts/jetbrains-mono-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* Metric-adjusted fallbacks (size-adjust and overrides computed from hmtx/hhea vs Arial/Courier New) so the swap does not shift layout. */
@font-face{font-family:'Archivo Fallback';font-style:normal;font-weight:500;src:local('Arial'),local('ArialMT'),local('Liberation Sans');size-adjust:103.32%;ascent-override:84.98%;descent-override:20.33%;line-gap-override:0.0%;unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Archivo Fallback';font-style:normal;font-weight:600 800;src:local('Arial Bold'),local('Arial-BoldMT'),local('Liberation Sans Bold');size-adjust:102.56%;ascent-override:85.61%;descent-override:20.48%;line-gap-override:0.0%;unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Golos Text Fallback';font-style:normal;font-weight:400 500;src:local('Arial'),local('ArialMT'),local('Liberation Sans');size-adjust:107.68%;ascent-override:91.01%;descent-override:20.43%;line-gap-override:0.0%;}
@font-face{font-family:'Golos Text Fallback';font-style:normal;font-weight:600;src:local('Arial Bold'),local('Arial-BoldMT'),local('Liberation Sans Bold');size-adjust:100.94%;ascent-override:97.09%;descent-override:21.8%;line-gap-override:0.0%;}
@font-face{font-family:'JetBrains Mono Fallback';font-style:normal;font-weight:500;src:local('Courier New'),local('CourierNewPSMT'),local('Liberation Mono');size-adjust:99.98%;ascent-override:102.02%;descent-override:30.0%;line-gap-override:0.0%;}

/* base.css: tokens, reset, shared utilities and JS-generated UI (all pages) */
:root{--r:56px;--grotesk:'Archivo','Archivo Fallback','Golos Text','Golos Text Fallback',system-ui,sans-serif;--sans:'Golos Text','Golos Text Fallback',system-ui,sans-serif;--mono:'JetBrains Mono','JetBrains Mono Fallback',ui-monospace,monospace}
@media (max-width:900px){:root{--r:36px}}
@media (max-width:560px){:root{--r:24px}}

/* reset */
*{box-sizing:border-box}
html,body{overflow-x:clip}
html{scroll-behavior:smooth}
body{margin:0;background:#F4F2EC;color:#111;font-family:var(--sans);-webkit-font-smoothing:antialiased}
img,video,svg{max-width:100%}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}
ul,ol{margin:0;padding:0;list-style:none}
li{display:block}
figure,dl,dd{margin:0}
address{font-style:normal}
button{font-family:inherit}
input::placeholder,textarea::placeholder{color:currentColor;opacity:.45}
::selection{background:var(--accent,#D97706);color:#0D0D0D}
[hidden]{display:none!important}
@media (max-width:560px){h2{overflow-wrap:break-word;hyphens:auto}}

/* utilities */
.link{transition:color .2s ease}
.link:hover{color:var(--accent,#D97706)}
.u-accent{color:var(--accent)}
.u-block{display:block}
.u-contents{display:contents}
.u-scrollbar-none{scrollbar-width:none}
.u-scrollbar-none::-webkit-scrollbar{display:none}

/* to-top button (markup in every page, driven by js) */
.to-top{position:fixed;right:clamp(14px,2vw,28px);bottom:clamp(14px,3vh,28px);z-index:90;width:56px;height:56px;border-radius:50%;background:#0D0D0D;color:#F4F2EC;display:flex;align-items:center;justify-content:center;border:1px solid rgba(244,242,236,0.22);opacity:0;visibility:hidden;transform:translateY(18px) scale(.9);transition:opacity .3s ease,transform .5s cubic-bezier(.19,1,.22,1),visibility 0s linear .3s,background-color .2s ease,translate .7s cubic-bezier(.19,1,.22,1)}
.to-top.is-visible{opacity:1;visibility:visible;transform:none;transition:opacity .3s ease,transform .5s cubic-bezier(.19,1,.22,1),visibility 0s,background-color .2s ease,translate .7s cubic-bezier(.19,1,.22,1)}
.to-top:hover{background-color:#1f1f1f}
.to-top__ring{position:absolute;inset:-1px;transform:rotate(-90deg);overflow:visible}
.to-top__arrow{position:relative;font-family:var(--grotesk,'Archivo',sans-serif);font-weight:700;font-size:20px;line-height:1}

/* js-generated decorative UI */
.progress{position:fixed;top:0;left:0;right:0;height:3px;background:var(--accent,#D97706);transform-origin:0 50%;transform:scaleX(0);z-index:100;pointer-events:none}
.cursor{position:fixed;left:0;top:0;width:40px;height:40px;margin:-20px 0 0 -20px;border:1.5px solid #fff;border-radius:50%;mix-blend-mode:difference;pointer-events:none;z-index:9999;transition:background-color .3s ease,border-color .3s ease}
.cursor__dot{position:fixed;left:0;top:0;width:6px;height:6px;margin:-3px 0 0 -3px;background:#fff;border-radius:50%;mix-blend-mode:difference;pointer-events:none;z-index:9999}
.cursor__hud{position:absolute;left:28px;top:16px;font-family:var(--mono);font-size:10px;letter-spacing:.08em;color:#fff;white-space:nowrap}
.split-word{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.1em;margin-bottom:-.1em}
.split-word__inner{display:inline-block;transform:translateY(110%) rotate(6deg);transform-origin:0 100%}
.split-char{display:inline-block;transform:translateY(115%) rotate(14deg);transform-origin:0 100%;will-change:transform}
.is-splitting{overflow:hidden;padding-bottom:.05em;margin-bottom:-.05em}

/* page states */
body.is-locked{overflow:hidden}

/* section label rows: blinking cursor block (replaces the old js-inserted element) */
.section__head::after{content:"";display:inline-block;width:.6em;height:1.1em;align-self:center;background:var(--accent);animation:blink 1s linear infinite}
@keyframes blink{0%,50%{opacity:1}50.01%,100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.section__head::after{animation:none}}
