/* Responsive layout: preserve the existing palette and content. */
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body { min-width:0; }
.wrap { width:min(1160px,calc(100% - 48px)); }
.nav { display:grid; grid-template-columns:minmax(0,1fr) auto auto; grid-template-areas:'brand language theme' 'nav nav nav'; gap:12px 20px; padding:16px 0 12px; min-height:0; }
.brand { grid-area:brand; min-width:0; width:fit-content; }
.brand > span:last-child { min-width:0; }
.mark { flex:none; }
.nav > nav { grid-area:nav; order:0; width:100%; display:flex; flex-wrap:wrap; gap:4px 18px; align-items:center; justify-content:flex-start; border-top:1px solid var(--line); padding-top:8px; min-width:0; }
.nav > nav a { display:flex; align-items:center; min-height:44px; padding:8px 2px; line-height:1.4; overflow-wrap:anywhere; }
.nav > nav a[aria-current=page] { color:var(--ink); font-weight:700; }
.lang-control { grid-area:language; margin:0; min-width:0; max-width:100%; }
.lang-control select { min-width:0; min-height:44px; max-width:205px; font-size:16px; padding:8px 10px; }
.theme-button { grid-area:theme; width:44px; min-height:44px; padding:8px; font-size:21px; line-height:1; justify-self:end; }
.menu-button { display:none; grid-area:menu; min-width:44px; min-height:44px; border:1px solid var(--line); background:var(--panel); color:var(--ink); font:inherit; font-size:22px; border-radius:8px; cursor:pointer; }
.menu-button:focus-visible,.theme-button:focus-visible { outline:3px solid #91b5ff; outline-offset:3px; }
.hero-grid { grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); gap:clamp(24px,5vw,65px); }
.hero-grid > *, .split > *, .grid > *, .catalog-grid > * { min-width:0; }
.hero h1 { font-size:clamp(38px,5.7vw,76px); line-height:1.13; letter-spacing:-.045em; overflow-wrap:anywhere; }
h1,h2,h3,p,a, .eyebrow, .project-meta, .status { overflow-wrap:anywhere; }
h2 { line-height:1.25; }
.page h1 { font-size:clamp(32px,5vw,58px); line-height:1.18; }
.page h2 { line-height:1.35; }
.eyebrow { line-height:1.5; letter-spacing:.12em; }
.grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.split { grid-template-columns:repeat(2,minmax(0,1fr)); }
.tile, .notice { min-width:0; }
.tile h3 { line-height:1.35; }
.tile p { font-size:16px; line-height:1.6; }
.status { max-width:100%; white-space:normal; line-height:1.4; }
.project-meta { line-height:1.5; gap:5px 8px; }
.project-meta > span { min-width:0; }
.btn,.catalog-links a { min-height:44px; max-width:100%; align-items:center; justify-content:center; text-align:center; white-space:normal; line-height:1.4; }
.catalog-links a { display:flex; }
.field { min-width:0; }
.field input,.field select { min-width:0; min-height:48px; font-size:16px; }
.footlinks { min-width:0; }
.footlinks a { display:flex; align-items:center; min-height:44px; }
[dir=rtl] .hero h1,[dir=rtl] h2,[dir=rtl] h3,[dir=rtl] .eyebrow { letter-spacing:0; }
@media(max-width:1000px) {
 .wrap { width:calc(100% - 40px); }
 .grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .hero { padding:64px 0; }
 .section,.page { padding:56px 0; }
}
@media(max-width:820px) {
 .nav { grid-template-columns:minmax(0,1fr) 44px 44px; grid-template-areas:'brand theme menu' 'language language language' 'nav nav nav'; gap:10px 8px; padding:12px 0; }
 .nav .brand { gap:8px; font-size:13px; letter-spacing:.025em; }
 .nav .brand small { font-size:9px; letter-spacing:.17em; }
 .nav .mark { width:38px; height:38px; border-radius:10px; font-size:15px; }
 .nav .lang-control { width:100%; gap:8px; }
 .nav .lang-control #language-caption { position:static; width:auto; height:auto; overflow:visible; clip-path:none; white-space:normal; min-width:0; font-size:13px; }
 .nav .lang-control select { flex:1 1 0; width:0; max-width:none; }
 .nav .lang-control svg { width:17px; height:17px; }
 .nav .menu-button { display:grid; place-items:center; }
 .nav > nav { gap:0; display:grid; grid-template-columns:1fr; padding-top:6px; }
 .nav > nav a { padding:11px 12px; font-size:15px; border-radius:7px; }
 .nav > nav a[aria-current=page] { background:var(--panel); }
 html.js-mobile .nav:not(.menu-open) > nav { display:none; }
 .hero-grid,.split { grid-template-columns:minmax(0,1fr); gap:26px; }
 .hero h1 { font-size:clamp(34px,7vw,52px); margin:16px 0 18px; }
 .art { max-width:240px; }
 .lead { font-size:17px; line-height:1.65; }
 .hero { padding:40px 0 36px; }
 .page,.section { padding:42px 0; }
 .page h1 { margin-top:0; }
 .sub { margin-bottom:24px; }
 .catalog-head { margin-bottom:20px; }
 .catalog-controls { gap:12px; margin:18px 0 22px; }
 .tile,.notice { padding:20px; }
 .foot { gap:12px; }
 .footlinks { gap:0 18px; }
}
@media(max-width:600px) {
 .wrap { width:calc(100% - 32px); }
 .grid,.catalog-grid { grid-template-columns:minmax(0,1fr); gap:14px; }
 .tile,.notice { padding:20px; border-radius:13px; min-height:0; }
 .tile h3 { font-size:21px; }
 .project-card { gap:10px; }
 .project-card .btn { align-self:stretch; }
 .catalog-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 .catalog-links a { padding:10px 8px; font-size:14px; }
 .catalog-controls { display:grid; grid-template-columns:minmax(0,1fr); }
 .actions { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; margin-top:22px; }
 .actions .btn { width:100%; padding:12px 14px; }
 .page .notice { margin-top:18px; }
 .page h1 { font-size:clamp(30px,8vw,40px); }
 h2 { font-size:clamp(25px,6.5vw,32px); }
 .page h2 { font-size:22px; }
 .art { max-width:190px; }
 .footlinks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; gap:4px 14px; }
 footer { padding:24px 0; }
}
@media(max-width:360px) {
 .wrap { width:calc(100% - 24px); }
 .nav .brand { gap:7px; font-size:12px; }
 .nav .brand small { font-size:8px; }
 .nav .mark { width:35px; height:35px; }
 .hero h1 { font-size:32px; }
 .tile,.notice { padding:16px; }
 .catalog-links { grid-template-columns:minmax(0,1fr); }
}
@media(prefers-reduced-motion:reduce) { html {scroll-behavior:auto;} }


/* Centered icon navigation */
@media(min-width:821px){header>.wrap.nav{width:min(1200px,calc(100% - 48px));padding:14px 0 10px;row-gap:10px}.nav>nav{justify-content:center;gap:8px 18px;padding-top:10px}.nav>nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:5px;padding:8px 10px;min-width:76px;max-width:150px;font-size:13px;line-height:1.3;border-radius:10px;overflow-wrap:normal}.nav>nav a:hover,.nav>nav a[aria-current=page]{background:var(--panel);color:var(--ink)}.nav>nav a:before{content:'';width:23px;height:23px;flex:none;background:currentColor;mask:var(--nav-icon) center/contain no-repeat;-webkit-mask:var(--nav-icon) center/contain no-repeat}.nav>nav a[href='index.html']{--nav-icon:url("/nav-icon-1.svg")}.nav>nav a[href='software.html']{--nav-icon:url("/nav-icon-2.svg")}.nav>nav a[href='desktop.html']{--nav-icon:url("/nav-icon-3.svg")}.nav>nav a[href='web.html']{--nav-icon:url("/nav-icon-4.svg")}.nav>nav a[href='games.html']{--nav-icon:url("/nav-icon-5.svg")}.nav>nav a[href='about.html']{--nav-icon:url("/nav-icon-6.svg")}.nav>nav a[href='support.html']{--nav-icon:url("/nav-icon-7.svg")}.nav>nav a[href='projects.html']{--nav-icon:url("/nav-icon-8.svg")}}

@media(min-width:821px){.nav>nav a:before{mask-image:var(--nav-icon);-webkit-mask-image:var(--nav-icon);mask-size:contain;-webkit-mask-size:contain;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat}}

@media(min-width:821px){header .nav>nav a::before{background:transparent var(--nav-icon) center/contain no-repeat!important;mask:none!important;-webkit-mask:none!important;display:block;width:23px;height:23px}}

/* Theme contrast and reliable navigation symbols */
header .brand .mark{color:#fff!important}html[data-theme=light] body.app-home .hero-grid>div:first-child{background:linear-gradient(120deg,#fff,#e2edff)!important;color:#14233b!important;border-color:#c5d7f1!important}html[data-theme=light] body.app-home .hero .lead{color:#405675!important}html[data-theme=light] body.app-home .hero .eyebrow,html[data-theme=light] body.app-home .hero h1 span{color:#2459cc!important}html[data-theme=light] body.app-home .hero .btn.secondary{color:#183b79!important;border-color:#a5bce2!important;background:#fff!important}header .nav>nav a{color:var(--ink);font-weight:600}html[data-theme=light] header .nav>nav a[aria-current=page],html[data-theme=light] header .nav>nav a:hover{background:#e2ebff;color:#1748ae} @media(min-width:821px){header .nav>nav a::before{background:none!important;mask:none!important;-webkit-mask:none!important;color:var(--blue);font:600 24px/24px system-ui,sans-serif;width:26px;height:26px;text-align:center}header .nav>nav a[href='index.html']::before{content:'⌂'!important}header .nav>nav a[href='software.html']::before{content:'▣'!important}header .nav>nav a[href='desktop.html']::before{content:'▤'!important}header .nav>nav a[href='web.html']::before{content:'◎'!important}header .nav>nav a[href='games.html']::before{content:'✥'!important}header .nav>nav a[href='about.html']::before{content:'ⓘ'!important}header .nav>nav a[href='support.html']::before{content:'☏'!important}header .nav>nav a[href='projects.html']::before{content:'▦'!important}}

header .nav>nav a::before{content:none!important;display:none!important}header .nav-real-icon{display:none}@media(min-width:821px){header .nav>nav a{gap:5px;padding:7px 10px;min-height:56px}header .nav-real-icon{display:block;width:24px;height:24px;color:var(--blue);flex:none}header .nav-real-icon svg{display:block;width:100%;height:100%}header .nav>nav{padding-top:8px;gap:8px 18px;justify-content:center}}
