:root{--site-gutter:104px;--site-max:1280px;--theme-bg:#fff;--theme-surface:#f2f0ed;--theme-text:#0d0d0d;--theme-muted:#66615e;--theme-line:#d9d7d5;--theme-elevated:#fff;color-scheme:light}
.wrap{width:min(calc(100% - var(--site-gutter) - var(--site-gutter)),var(--site-max))!important}
.cover{width:min(calc(100% - var(--site-gutter) - var(--site-gutter)),var(--site-max));margin-inline:auto;min-height:clamp(360px,42vw,580px)!important}
.unpolished .story{padding-left:var(--site-gutter);padding-right:var(--site-gutter)}
.site-controls{display:flex;align-items:center;gap:8px;flex:none}.lang-toggle,.theme-toggle{flex:none;min-width:42px;min-height:42px;border:1px solid currentColor;background:transparent;color:inherit;font:700 .72rem/1 "Prompt",Arial,sans-serif;letter-spacing:.04em;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.lang-toggle:hover,.theme-toggle:hover{background:var(--ink);color:var(--white)}
.theme-toggle{display:grid;place-items:center;padding:0}.theme-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.theme-toggle .icon-sun{display:none}html[data-theme="dark"] .theme-toggle .icon-moon{display:none}html[data-theme="dark"] .theme-toggle .icon-sun{display:block}
.header .wrap{gap:16px}.header .back{margin-left:auto}.head-in .header-nav{margin-left:auto}
.unpolished .lang-toggle:hover{background:#f2f0eb;color:#141414}
.gallery .image>span,
.application-grid>figure>figcaption,
.concept-gallery>figure>figcaption,
.application-grid>div::after{display:none!important}
html[data-theme="dark"]{--ink:#f4f2ed;--paper:#111210;--white:#111210;--line:#353632;--quiet:#b8b4ac;--soft:#1a1b18;--theme-bg:#111210;--theme-surface:#1a1b18;--theme-text:#f4f2ed;--theme-muted:#b8b4ac;--theme-line:#353632;--theme-elevated:#181916;color-scheme:dark}
html[data-theme="dark"] body{background:var(--theme-bg);color:var(--theme-text)}
html[data-theme="dark"] .header{background:rgba(17,18,16,.94)!important;border-color:var(--theme-line)}
html[data-theme="dark"] .header-nav,html[data-theme="dark"] .lang-toggle,html[data-theme="dark"] .theme-toggle{border-color:#454741}
html[data-theme="dark"] .mark{background:#fff}
html[data-theme="dark"] .insights,html[data-theme="dark"] .system{background:var(--theme-surface)}
html[data-theme="dark"] .article-card,html[data-theme="dark"] .system-tile{background:var(--theme-elevated);color:var(--theme-text)}
html[data-theme="dark"] .featured,html[data-theme="dark"] .contact,html[data-theme="dark"] .next{background:#080907;color:#f6f5f1}
html[data-theme="dark"] .featured .eyebrow,html[data-theme="dark"] .featured p,html[data-theme="dark"] .contact p{color:#c7c4bd}
html[data-theme="dark"] .actions a{border-color:#5b5d56;color:#f6f5f1}
html[data-theme="dark"] .actions a::before{background:#f6f5f1}
html[data-theme="dark"] .actions a:hover{color:#0d0e0c}
html[data-theme="dark"] .article-number{color:#484a45}
html[data-theme="dark"] .system-tile:nth-child(2),html[data-theme="dark"] .vessl-system,html[data-theme="dark"] .dash-status{background:#080907;color:#fff}
html[data-theme="dark"] .project-links a[aria-current="page"]{background:#2a2b27;color:#f4f2ed}
html[data-theme="dark"] .dash-disclosure,html[data-theme="dark"] .note,html[data-theme="dark"] .case{background:#1a1b18;color:#f4f2ed}
html[data-theme="dark"] .article-body>p:first-child{color:#d4d1ca}
html[data-theme-ready] body,html[data-theme-ready] .header,html[data-theme-ready] .insights,html[data-theme-ready] .system,html[data-theme-ready] .article-card{transition:background-color .25s ease,color .25s ease,border-color .25s ease}
@media(prefers-color-scheme:dark){html:not([data-theme]){--ink:#f4f2ed;--paper:#111210;--white:#111210;--line:#353632;--quiet:#b8b4ac;color-scheme:dark}html:not([data-theme]) body{background:#111210;color:#f4f2ed}}
@media(max-width:720px){:root{--site-gutter:17px}.cover{min-height:330px!important}.header .wrap{gap:10px}.site-controls{gap:6px}.lang-toggle,.theme-toggle{min-width:38px;min-height:38px;font-size:.66rem}.theme-toggle svg{width:17px;height:17px}.header .back{font-size:.72rem}.unpolished .story{padding-left:var(--site-gutter);padding-right:var(--site-gutter)}}
@media(prefers-reduced-motion:reduce){html[data-theme-ready] body,html[data-theme-ready] .header,html[data-theme-ready] .insights,html[data-theme-ready] .system,html[data-theme-ready] .article-card{transition:none}}
