:root{color-scheme:dark;--bg:#111317;--panel:#1a1e24;--line:#343942;--text:#f4f3ef;--muted:#b9c0c9;--accent:#f0bb83;--accent-text:#19120b;font-family:Inter,"Segoe UI",system-ui,sans-serif;font-size:16px}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:6rem}body{margin:0;background:var(--bg);color:var(--text);line-height:1.55}a{color:inherit;text-decoration:none}a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}img{display:block;width:100%;height:auto}.container{width:min(1200px,calc(100% - 3rem));margin-inline:auto}.skip{position:absolute;left:1rem;top:-5rem;background:var(--accent);color:var(--accent-text);padding:.75rem;z-index:10}.skip:focus{top:1rem}
header{border-bottom:1px solid var(--line);background:var(--bg)}.header-inner{min-height:76px;display:flex;align-items:center;gap:2rem}.brand{font-weight:850;font-size:1.1rem;letter-spacing:.12em;display:flex;align-items:center;gap:.7rem}.mark{display:grid;place-items:center;width:34px;height:34px;border:2px solid var(--accent);border-radius:8px;color:var(--accent);font-weight:900;letter-spacing:0}nav{display:flex;gap:1.4rem;margin-left:auto;flex-wrap:wrap}nav a,.language{color:var(--muted);font-size:.95rem;font-weight:600}nav a:hover,.language:hover,.text-link:hover{color:var(--accent)}.language{border-left:1px solid var(--line);padding-left:1.5rem}
.hero{display:grid;grid-template-columns:1.05fr 1fr;gap:4rem;padding:5.5rem 0 4.5rem;align-items:center}.eyebrow{color:var(--accent);font-size:.85rem;font-weight:700;letter-spacing:.15em;margin:0 0 1.2rem}h1,h2,h3,p{margin:0}h1{font-size:clamp(3rem,6.6vw,5.7rem);font-weight:850;line-height:.98;letter-spacing:-.065em;max-width:12ch}h2{font-size:clamp(1.7rem,3vw,2.4rem);line-height:1.15;letter-spacing:-.035em}h3{font-size:1.4rem;line-height:1.25;letter-spacing:-.025em}.intro{font-size:1.15rem;color:var(--muted);max-width:47ch;margin:1.6rem 0 1.8rem}.hero-image{display:grid;gap:12px;transform:rotate(-2deg);padding:10px;border:1px solid var(--line);border-radius:16px;background:#1a1e24;box-shadow:0 22px 65px #0006}.hero-image img{aspect-ratio:3.1/1;object-fit:cover;border-radius:7px}
.actions{display:flex;flex-wrap:wrap;gap:.65rem;align-items:center}.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.65rem 1rem;border:1px solid #59616c;border-radius:7px;font-size:.95rem;font-weight:650;transition:background .15s,border-color .15s}.button:hover{background:#30353d;border-color:#979fac}.primary{background:var(--accent);color:var(--accent-text);border-color:var(--accent)}.primary:hover{background:#ffcf9f;border-color:#ffcf9f}.text-link{color:var(--muted);font-size:.92rem;padding:.5rem .15rem;text-decoration:underline;text-underline-offset:3px}
.section{padding:2.5rem 0 3.5rem;border-top:1px solid var(--line)}.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:1.6rem}.section-head p{color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem}.card{background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;min-width:0}.cover{aspect-ratio:3/1;background:linear-gradient(125deg,#2c303a,#171a21);display:flex;align-items:center;justify-content:center;overflow:hidden}.cover img{width:100%;height:100%;object-fit:cover}.cover-title{display:none}.no-cover .cover-title{display:block;font-size:clamp(1.4rem,3vw,2.6rem);font-weight:800;letter-spacing:-.05em;text-align:center;padding:1rem;color:#e0e5ee}.card-body{display:flex;flex-direction:column;flex:1;padding:1.35rem;gap:.7rem}.meta{display:flex;justify-content:space-between;align-items:baseline;gap:.6rem;flex-wrap:wrap;font-size:.86rem;color:var(--muted);font-weight:600}.version{color:#c3dfc5}.version.beta{color:var(--accent)}.card-body p{color:var(--muted);margin-bottom:.5rem}.card-body .actions{margin-top:auto}.research .card{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.6fr}.research .cover{height:100%;min-height:155px;aspect-ratio:auto}
.about{display:flex;justify-content:space-between;align-items:center;gap:2rem;border-top:1px solid var(--line);padding:3rem 0 4rem}.about p{max-width:65ch;color:var(--muted);margin-top:.7rem}.about .actions{flex-shrink:0}footer{border-top:1px solid var(--line);padding:1.5rem 0 2.5rem;color:var(--muted);font-size:.9rem;display:flex;gap:1.5rem;justify-content:space-between}footer p:first-child{max-width:72ch}
@media(max-width:850px){.hero{gap:2rem;padding:3.5rem 0}.header-inner{gap:1rem;flex-wrap:wrap;padding:1rem 0}.brand{margin-right:auto}nav{order:3;flex-basis:100%;margin-left:0;gap:1.2rem}.language{padding-left:1rem}.section-head{display:block}.section-head p{margin-top:.5rem}.about{display:block}.about .actions{margin-top:1.2rem}}@media(max-width:620px){.container{width:calc(100% - 2rem)}.hero{display:block;padding:3rem 0}.hero-image{margin-top:2rem;transform:none}.grid{grid-template-columns:1fr}.research .card{display:flex}.research .cover{aspect-ratio:3/1}footer{display:block}footer p+p{margin-top:1rem}.card-body{padding:1.1rem}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
:root{--cover-background:#101216}
.hero-image img{aspect-ratio:auto;object-fit:contain;background:var(--cover-background)}
.grid .cover{aspect-ratio:16/9;background:var(--cover-background)}
.grid .cover img{object-fit:contain}
.grid.research .cover{aspect-ratio:auto;background:linear-gradient(125deg,#2c303a,#171a21)}

.card h3 a:hover{color:var(--accent)}
.card .cover:focus-visible{outline-offset:-4px}
.project-page{padding-top:2rem}
.project-back{display:inline-block;margin-bottom:1rem}
.project-hero{display:grid;align-items:center;gap:2.5rem;padding:2rem 0 3.5rem}
.project-hero.project-has-cover{grid-template-columns:1fr 1fr}
.project-hero h1{max-width:none;font-size:clamp(2.5rem,5vw,4.6rem);overflow-wrap:anywhere;line-height:1.04}
.project-hero .intro{max-width:60ch}
.project-meta{color:var(--muted);font-size:.875rem;overflow-wrap:anywhere;margin-top:1rem}
.project-unavailable{display:inline-flex;align-items:center;min-height:44px;padding:.65rem 1rem;border:1px solid var(--line);border-radius:7px;color:var(--muted);font-weight:650;font-size:.95rem}
.project-cover{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--cover-background)}
.project-cover img{object-fit:contain}
.project-section{border-top:1px solid var(--line);padding:2rem 0 2.5rem}
.project-section h2{margin-bottom:1rem}
.project-section p{color:var(--muted);max-width:78ch}
.project-overview{display:grid;grid-template-columns:1.3fr 1fr;gap:2rem;align-items:start}
.project-features{margin:0;padding-left:1.25rem;color:var(--muted)}
.project-features li+li{margin-top:.7rem}
.project-requirements{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:1.5rem}
.project-requirements h2{font-size:1.35rem}
.project-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;list-style:none;padding:0;margin:0;counter-reset:installation}
.project-steps li{counter-increment:installation;border-top:3px solid var(--accent);background:var(--panel);padding:1.2rem;border-radius:0 0 8px 8px;overflow-wrap:anywhere}
.project-steps li::before{content:counter(installation);display:block;font-size:1.5rem;font-weight:800;color:var(--accent);margin-bottom:.5rem}
.project-gallery>p{margin:-.2rem 0 1.25rem}
.project-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.project-gallery-grid figure{min-width:0;margin:0;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.project-gallery-grid a{display:block;overflow:hidden;background:var(--cover-background)}
.project-gallery-grid img{aspect-ratio:16/9;object-fit:cover;transition:transform .2s ease}
.project-gallery-grid a:hover img{transform:scale(1.025)}
.project-gallery-grid figcaption{padding:.75rem 1rem;color:var(--muted);font-size:.92rem}
@media(max-width:850px){.project-hero.project-has-cover,.project-overview{grid-template-columns:1fr}.project-cover{max-width:720px}}
@media(max-width:620px){.project-steps{grid-template-columns:1fr}.project-gallery-grid{grid-template-columns:1fr}.project-hero{padding-top:1rem;gap:1.5rem}.project-page{padding-top:1rem}}
.area-hero{padding:3.5rem 0 2.5rem}
.area-hero h1{max-width:22ch;font-size:clamp(2.6rem,6vw,5.1rem);line-height:1.05}
.area-hero>.text-link{display:inline-block;margin-bottom:1.25rem}
.area-hero .intro{max-width:65ch}
.home-hero{padding:4.5rem 0 2rem}
.area-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.4rem;padding:0 0 3.5rem}
.area-card{display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--line);border-radius:14px;overflow:hidden;transition:border-color .15s,background .15s}
.area-card:hover{border-color:var(--accent);background:#22262d}
.area-card img{aspect-ratio:16/9;object-fit:contain;background:var(--cover-background)}
.area-card-body{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:.9rem;padding:1.6rem}
.area-card-body p{color:var(--muted)}
.area-card-body .button{margin-top:auto}
.area-card:hover .button{background:var(--accent);color:var(--accent-text);border-color:var(--accent)}
nav a[aria-current="page"]{color:var(--accent)}
@media(max-width:850px){.about .actions{flex-shrink:1}.area-hero{padding:2.5rem 0 2rem}}
@media(max-width:620px){.area-grid{grid-template-columns:1fr;gap:1rem;padding-bottom:2.5rem}.area-card-body{padding:1.2rem}.home-hero{padding-top:3rem}}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) 0 3.5rem;
}
.home-copy h1 { max-width: 12ch; font-size: clamp(3rem, 6vw, 5.2rem); font-weight: 800; letter-spacing: -.045em; }
.home-copy .intro { max-width: 48ch; }
.home-feature {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 20px 60px #0003;
  transition: border-color .2s, background .2s;
}
.home-feature:hover { border-color: var(--accent); background: #22262d; }
.home-feature img { aspect-ratio: 16/9; object-fit: contain; background: var(--cover-background); }
.home-feature-body { display: grid; gap: .75rem; padding: 1.4rem; }
.home-feature-body h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.home-feature-body p { color: var(--muted); }
.feature-label, .area-count { color: var(--accent); font-size: .85rem; font-weight: 700; }
.area-link { display: flex; gap: .6rem; align-items: center; color: var(--accent); font-weight: 700; margin-top: auto; }
.area-link span { font-size: 1.2rem; }
.featured-grid .card { transition: border-color .2s; }
.featured-grid .card:hover { border-color: #69727e; }
.catalog-section .area-grid { padding: 0; }
.catalog-section .area-card-body { gap: .65rem; }
.catalog-section .area-card-body p { margin-bottom: .6rem; }
.catalog-section .area-card h3 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
.project-gallery-grid img { object-fit: contain; }
.project-hero > *, .project-overview > *, .header-inner > * { min-width: 0; }
.brand { flex-shrink: 0; }
@media (max-width: 850px) {
  .home-hero { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0 2.5rem; }
  .home-copy h1 { max-width: 15ch; }
  .home-feature { max-width: 720px; }
}
@media (max-width: 620px) {
  .header-inner { column-gap: .75rem; row-gap: .65rem; }
  nav { gap: .5rem 1rem; }
  nav a, .language { font-size: .9rem; }
  .language { padding-left: .75rem; }
  .home-copy h1 { font-size: clamp(2.65rem, 11vw, 4.2rem); }
  .home-feature-body { padding: 1.15rem; }
  .section { padding: 2rem 0 2.5rem; }
  .about { padding: 2rem 0 2.5rem; }
}
