@charset "utf-8";
:root {
  --paper: #F2F3F0;
  --paper-2: #E6E8E3;
  --face-side: #E1E5DF;
  --field: #FAFBF9;
  --ink: #111A15;
  --ink-2: #4A544E;
  --line: #D0D4CD;
  --line-strong: #B5BCB4;
  --ui-border: #858D84;
  --brand: #01360C;
  --brand-hover: #0B4C1B;
  --band: #0C2014;
  --on-band: #E6ECE7;
  --on-band-2: #A3B2A8;
  --line-band: #25402E;
  --note: #9A5B00;
  --error: #A3341F;
  --focus: #01360C;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hh: 68px;
  --m: 48px;
  --g: 24px;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --sans: 'Schibsted Grotesk', 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 12px); }
/* an open photo viewer or model sheet holds the page still behind it (a swipe on it never moves the page) */
html:has(dialog[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { html:not(.no-motion) { scroll-behavior: smooth; } }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; }
/* a phone held sideways with a notch (viewport-fit=cover) keeps the text clear of it */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 max(var(--m), env(safe-area-inset-right)) 0 max(var(--m), env(safe-area-inset-left)); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.num { font-variant-numeric: tabular-nums; }
.small { font-size: 13px; line-height: 1.5; color: var(--ink-2); }

.skip, .skip-anim { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 2px; text-decoration: none; font-size: 15px; }
.skip:focus, .skip-anim:focus { top: 12px; }
.skip-anim:focus { position: fixed; top: calc(var(--hh) + 12px); }

/* ---------- buttons & links ----------
   one control language, three roles: primary (filled .btn, 48 px; 44 in the header, 52 only in the hero; paper
   only on a photo or a dark band), secondary (a text link with a trailing arrow: .link-arrow, the hero link, the
   "show more" toggles) and choice (a square segmented control: catalogue groups, model, steps, roles, plinths);
   the outline .btn-ghost stays for a toggle (Rodyti sluoksnius) and the small dialog actions. Corners are 2 px */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; background: var(--brand); color: #fff; border: 0; border-radius: 2px; font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .16s var(--ease); }
@media (hover: hover) { .btn:hover { background: var(--brand-hover); } }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.header-tools > .btn { height: 44px; padding: 0 20px; }
/* secondary: a text link; the arrow is for the eye only (its alternative text is empty) and never underlined */
.link-arrow, .cat-more, .jgrid-more, .hero .cta-row .text-link { display: inline-block; min-height: 44px; padding: 12px 0; border: 0; background: none; color: var(--ink); font: 500 16px/20px var(--sans); text-align: left; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; cursor: pointer; transition: text-decoration-thickness .16s; }
@media (hover: hover) { .link-arrow:hover, .cat-more:hover, .jgrid-more:hover, .hero .cta-row .text-link:hover { text-decoration-thickness: 2px; } }
.link-arrow::after, .hero .cta-row .text-link::after { content: '→'; content: '→' / ''; display: inline-block; margin-left: .4em; text-decoration: none; transition: transform .16s var(--ease); }
@media (hover: hover) { .link-arrow:hover::after, .hero .cta-row .text-link:hover::after { transform: translateX(3px); } }
/* the fold toggles point where the photos or models open, and back */
.cat-more::after, .jgrid-more::after { content: '↓'; content: '↓' / ''; display: inline-block; margin-left: .4em; text-decoration: none; }
.cat-more[aria-expanded="true"]::after, .jgrid-more[aria-expanded="true"]::after { content: '↑'; content: '↑' / ''; }
.band :is(.link-arrow, .jgrid-more, .cat-more) { color: var(--on-band); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 2px; font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; transition: background-color .16s, color .16s; }
@media (hover: hover) { .btn-ghost:hover { background: rgba(17, 26, 21, .06); } }
.btn-ghost[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.btn-paper { background: var(--paper); color: var(--brand); }
@media (hover: hover) { .btn-paper:hover { background: #fff; } }
.text-link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-thickness .16s; }
@media (hover: hover) { .text-link:hover { text-decoration-thickness: 2px; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--hh); transition: background-color .2s, box-shadow .2s; }
.site-header.scrolled { background: rgba(242, 243, 240, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header.sheet-open { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
/* at the top of the page the header lies on the hero photo (the hero goes up under it): light marks, a paper action;
   it turns paper (.scrolled) once the page moves, or while the phone menu is open (.sheet-open) */
.site-header:not(.scrolled):not(.sheet-open) { --focus: #fff; }
/* the language panel is paper: the page's own focus colour */
.site-header .lang-panel { --focus: #01360C; }
/* without JavaScript nothing turns the header paper (.scrolled): it stays on the hero and goes up with it */
@media (scripting: none) { .site-header { position: relative; } }
.site-header:not(.scrolled):not(.sheet-open) :is(.nav a, .phone, .lang-btn) { color: #fff; }
.site-header:not(.scrolled):not(.sheet-open) .lang-btn { border-color: rgba(255, 255, 255, .55); }
.site-header:not(.scrolled):not(.sheet-open) .lang-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .12); }
@media (hover: hover) { .site-header:not(.scrolled):not(.sheet-open) .lang-btn:hover { background: rgba(255, 255, 255, .12); } }
.site-header:not(.scrolled):not(.sheet-open) .burger span { background: #fff; }
.site-header:not(.scrolled):not(.sheet-open) .header-tools > .btn { background: var(--paper); color: var(--brand); }
@media (hover: hover) { .site-header:not(.scrolled):not(.sheet-open) .header-tools > .btn:hover { background: #fff; } }
.header-in { height: 100%; display: flex; align-items: center; gap: 36px; }
/* the logo: the brand green everywhere, the photo included, its letters with depth (darker green layers stacked toward
   the lower right); no plate under it and no motion (the owner, 2026-11-22: "be balto fono, tik žalios tūrinės raidės,
   be animacijos") */
.logo { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; margin-inline-start: -12px; }
/* (the owner, 2026-11-22, later: "šiek tiek didesnis bei ryškesnis žalias": 32 px high, was 28; the file's dark brand
   green #01360C brightened to about #02821D, the depth layers below it stay dark) */
.logo img { height: 32px; width: auto; max-width: none;
  filter: brightness(2.4) drop-shadow(.6px .8px 0 #0B4419) drop-shadow(.6px .8px 0 #0A3A16) drop-shadow(.6px .8px 0 #082F12) drop-shadow(1px 3px 3px rgba(6, 16, 10, .28)); }
/* on the dark photo the letters catch the light on their upper edges (a light rim up and to the left, the depth below
   and to the right), so the green reads there too */
.site-header:not(.scrolled):not(.sheet-open) .logo img {
  filter: brightness(2.4) drop-shadow(-.6px -.6px 0 rgba(255, 255, 255, .75)) drop-shadow(.6px .8px 0 #0B4419) drop-shadow(.6px .8px 0 #0A3A16) drop-shadow(.6px .8px 0 #082F12) drop-shadow(1px 3px 3px rgba(0, 0, 0, .45)); }
/* logo and tools never shrink: a nav that does not fit overflows, and fitHeader() switches to the burger */
.header-in .logo, .header-tools, .header-tools > * { flex-shrink: 0; }
.nav { display: flex; gap: 26px; }
.nav a, .site-footer nav a { text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a, .header-tools > .btn { white-space: nowrap; }
@media (hover: hover) { .nav a:hover { text-decoration: underline; text-underline-offset: 6px; } }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 20px; }
/* waving flags: strips of one image rise and fall out of phase (amplitude grows away from the
   pole side), lit when up and shaded when down; a slight turn gives the cloth depth */
.flag { --amp: .34px; display: flex; width: 24px; height: 17px; flex: none; transform: perspective(70px) rotateY(-16deg); transform-origin: 0 50%; filter: drop-shadow(0 1px 1px rgba(17, 26, 21, .22)); }
.lang-list .flag { --amp: .46px; width: 30px; height: 21px; }
.flag i { flex: 1 1 0; background-size: 600% 100%; background-repeat: no-repeat; animation: flagwave 1.6s ease-in-out infinite; animation-delay: calc(var(--n) * -0.17s); }
.flag i:first-child { border-radius: 1px 0 0 1px; }
.flag i:last-child { border-radius: 0 1px 1px 0; }
@keyframes flagwave {
  0%, 100% { transform: translateY(calc(var(--n) * var(--amp) * -1)) scaleY(calc(1 - var(--n) * 0.014)); filter: brightness(1.12); }
  50% { transform: translateY(calc(var(--n) * var(--amp))) scaleY(1); filter: brightness(.8); }
}
@media (prefers-reduced-motion: reduce) { .flag i { animation: none; } }
html.no-motion .flag i { animation: none; }
.langmenu { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 9px; border: 1px solid var(--ui-border); border-radius: 2px; background: none; color: var(--ink); font-size: 12.5px; font-weight: 500; letter-spacing: .02em; cursor: pointer; }
.lang-btn[aria-expanded="true"] { background: rgba(17, 26, 21, .06); }
@media (hover: hover) { .lang-btn:hover { background: rgba(17, 26, 21, .06); } }
.lang-btn .chev { width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .16s var(--ease); }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 420px; max-height: calc(100dvh - var(--hh) - 24px); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 2px; box-shadow: 0 12px 32px rgba(17, 26, 21, .14); padding: 8px; }
.lang-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
/* buttons in the demo, links to the language pages in production (build_prod.py) */
.lang-list :is(a, button) { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 2px; background: none; color: var(--ink); font-size: 15px; text-align: left; text-decoration: none; cursor: pointer; }
@media (hover: hover) { .lang-list :is(a, button):hover { background: rgba(17, 26, 21, .06); } }
.lang-list :is(a, button)[aria-current] { background: var(--ink); color: var(--paper); }
.lang-list :is(a, button)[aria-current] .flag { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .6)); }
.phone { text-decoration: none; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .2s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.sheet { position: fixed; inset: var(--hh) 0 0 0; z-index: 49; background: var(--paper); padding: 8px max(var(--m), env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(var(--m), env(safe-area-inset-left)); display: flex; flex-direction: column; justify-content: flex-start; gap: 20px; overflow-y: auto; overscroll-behavior: contain; }
.sheet nav { display: flex; flex-direction: column; }
.sheet nav a { font-size: 24px; font-weight: 500; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sheet-cta { width: 100%; }
.sheet-foot { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.sheet-lang { border-top: 1px solid var(--line); }
.sheet-lang summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 15px; font-weight: 500; cursor: pointer; list-style: none; }
.sheet-lang summary::-webkit-details-marker { display: none; }
.sheet-lang summary::after { content: '+'; content: '+' / ''; font: 400 20px/1 var(--sans); }
.sheet-lang[open] summary::after { content: '\2212'; content: '\2212' / ''; }
.sheet-lang summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sheet-langs { margin: 4px 0 8px; }
.sheet-langs :is(a, button) { min-height: 44px; }
.sheet-foot .phone { font-size: 18px; padding: 10px 0; }

/* long languages (de, fi, hu, el...) must wrap instead of pushing the layout sideways */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
/* Lithuanian and English headlines fit without breaking words ("preky-bos" at 1280) */
:lang(lt) h1, :lang(lt) h2, :lang(en) h1, :lang(en) h2 { hyphens: manual; }
/* desktop header that does not fit in the current language falls back to the burger */
/* the call to action stays (a little narrower) */
.compact-nav .nav, .compact-nav .header-tools .phone { display: none; }
.compact-nav .header-tools > .btn { padding: 0 14px; }
.compact-nav .burger { display: block; }
/* the step before the burger: no phone number (the office number stays under Kontaktai) and the gaps of the
   header below 1200 px, so the whole nav stays wherever it fits that way */
.nav-tight .header-tools .phone { display: none; }
.nav-tight .nav { gap: 14px; }
.nav-tight .header-in { gap: 24px; }

/* ---------- hero ---------- */
/* hero: one finished project edge to edge; a short headline and the round seal sit on the photo */
/* the first frame is the photo edge to edge: the hero goes up under the transparent header */
.hero { position: relative; margin-top: calc(-1 * var(--hh)); }
.hero-photo { position: relative; margin: 0; height: 100vh; height: 100svh; min-height: 560px; max-height: 1180px; overflow: hidden; background: var(--band); }
.hero-photo picture, .hero-img { display: block; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: 50% 55%; }
/* a scrim under the header's marks, then a light re-light: the text side and the foot darkened, the counter and the
   red stools left in their own light */
.hero-photo::before { content: ''; position: absolute; inset: 0 0 auto; height: max(160px, 22%); z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(6, 16, 10, .58), rgba(6, 16, 10, 0)); }
.hero-photo::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 62% at 0% 100%, rgba(6, 16, 10, .5), rgba(6, 16, 10, 0) 72%),
              linear-gradient(90deg, rgba(6, 16, 10, .64) 0%, rgba(6, 16, 10, .36) 45%, rgba(6, 16, 10, .12) 64%, rgba(6, 16, 10, 0) 78%),
              linear-gradient(180deg, rgba(6, 16, 10, 0) 55%, rgba(6, 16, 10, .5) 100%); }
.hero-over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding-bottom: clamp(40px, 7vh, 84px); color: #fff; }
.hero h1 { font-size: clamp(40px, 5vw, 78px); line-height: 1; letter-spacing: -.035em; font-weight: 400; max-width: 9.25em; margin: 0 0 34px; text-wrap: balance; color: #fff; hyphens: manual; }
:where(:root:not(:lang(lt))) .hero h1 { max-width: 12em; }
:where(:root:not(:lang(lt)):not(:lang(en))) .hero h1 { font-size: clamp(36px, 4.4vw, 68px); }
.hero-line { font-size: clamp(16px, 1.3vw, 20px); line-height: 1.45; color: rgba(255, 255, 255, .84); margin: 0 0 32px; max-width: 62ch; }
.cta-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero .cta-row .text-link { color: #fff; text-decoration-color: rgba(255, 255, 255, .6); }
@media (hover: hover) { .hero .cta-row .text-link:hover { text-decoration-color: #fff; } }
.hero .btn-paper:focus-visible, .hero .text-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-confirm { display: none; }
.notes-on .hero-confirm { display: inline-block; color: #FBE7C6; }
.notes-on .hero h1 .confirm { text-decoration-thickness: 3px; text-underline-offset: 8px; }
/* the seal: the KRIOLIS mark inside a ring of text, a still hallmark on a smoked disc */
.seal { position: absolute; z-index: 1; right: max(var(--m), calc((100% - 1440px) / 2 + var(--m))); top: calc(var(--hh) + clamp(20px, 4vh, 44px)); width: clamp(92px, 8vw, 124px); height: auto; color: #fff; overflow: visible; }
.seal .disc { fill: rgba(6, 16, 10, .3); }
.seal .ring { fill: none; stroke: currentColor; stroke-width: .7; opacity: .8; }
.seal text { font: 500 13px var(--mono); letter-spacing: .12em; fill: currentColor; }
/* the opening moment: once, on load */
.hero-img { animation: hero-settle 2.8s var(--ease) both; }
.hero h1 { animation: hero-rise 1.1s var(--ease) .2s backwards; }
.hero .cta-row { animation: hero-fade .9s var(--ease) .75s backwards; }
.seal .ring { stroke-dasharray: 434; stroke-dashoffset: 434; animation: seal-draw 1.6s var(--ease) .5s forwards; }
.seal .ring.in { stroke-dasharray: 252; stroke-dashoffset: 252; animation-delay: .8s; }
.seal .disc { animation: hero-fade 1s var(--ease) .5s both; }
.seal text { animation: hero-fade 1s var(--ease) 1.2s both; }
@keyframes hero-settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(26px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 -10% 0); } }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes seal-draw { to { stroke-dashoffset: 0; } }
.dim path { fill: none; stroke: var(--ink); stroke-width: .75; }
.dim .ext { stroke-opacity: .45; }
.dim text { font: 500 9.5px var(--mono); fill: var(--ink); }
/* paper halo so a dimension label never reads through its own line or the outline behind it */
.dim text, .overlay .dims text { paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.mk circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.mk text { font: 500 11px var(--mono); fill: var(--ink); text-anchor: middle; }
/* the same choice above the 3D steps */
.model-switch { display: flex; width: fit-content; max-width: 100%; margin-bottom: 14px; border: 1px solid var(--ui-border); border-radius: 2px; }
.model-switch button { flex: 1 1 auto; min-height: 44px; padding: 8px 14px; border: 0; background: none; color: var(--ink-2); font: 500 14px/1.25 var(--sans); text-align: center; text-wrap: balance; cursor: pointer; }
.model-switch button + button { border-left: 1px solid var(--ui-border); }
.model-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.model-switch button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- sections ---------- */
.section { padding: 128px 0 112px; border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 44px; }
/* the section titles in the headline's voice: large and light; each numbered like a sheet of a drawing set (01-07),
   the number for the eye only (the alternative text after the slash is empty, so a heading's name has no digits) */
.section-head h2, .band h2 { font-size: clamp(36px, 3.6vw, 56px); font-weight: 400; line-height: 1.04; letter-spacing: -.028em; margin-bottom: 10px; text-wrap: balance; }
main { counter-reset: s; }
.section-head h2::before, .arch-main > h2::before { counter-increment: s; content: counter(s, decimal-leading-zero); content: counter(s, decimal-leading-zero) / ""; display: block; margin-bottom: 18px; font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--ink-2); }
.band h2::before { color: var(--on-band-2); }
/* Cyrillic and Greek pages: one family for every text (Schibsted Grotesk has neither script) */
:root:is(:lang(ru), :lang(uk), :lang(bg), :lang(el)) { --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; }
:is(:lang(ru), :lang(uk), :lang(bg), :lang(el)) :is(.hero h1, .section-head h2, .band h2) { letter-spacing: -.02em; }
.sub { font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 40em; }

/* products: one line on what is made to drawing; the catalogue below holds the standard models */
.make { margin: 0 0 24px; }
.make > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: baseline; border-top: 1px solid var(--line); padding: 12px 0; }
.make dt { font-weight: 600; }
.make dd { margin: 0; max-width: 62ch; color: var(--ink-2); }
/* the bespoke line first (WOW W09): what is made to the drawing in the body's ink, the LED and glass line under it */
.make > div:first-child dd { max-width: 46em; font-size: 20px; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.make-also { margin: 10px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); }

/* model catalogue: the standard models of the current kriolis.com catalogue */
.catalog { padding-top: 32px; border-top: 1px solid var(--line-strong); }
/* the active group in one line: what it is, then what the customer can change */
.cat-about { margin: -12px 0 28px; max-width: 72ch; color: var(--ink-2); }
.cat-about p { margin: 0; }
.cat-about .mod { display: block; margin-top: 4px; font-size: 13px; }
.cat-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: end; margin-bottom: 20px; }
.cat-head h3 { grid-column: 1 / span 5; font-size: 20px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; margin: 0; }
.cat-head p { grid-column: 7 / span 6; margin: 0; color: var(--ink-2); max-width: 56ch; }
.cat-switch { display: flex; width: fit-content; max-width: 100%; border: 1px solid var(--ui-border); border-radius: 2px; margin-bottom: 28px; }
.cat-switch button { display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 10px 16px; border: 0; background: none; color: var(--ink-2); font: 500 15px/1.25 var(--sans); text-align: left; cursor: pointer; }
.cat-switch button + button { border-left: 1px solid var(--ui-border); }
@media (hover: hover) { .cat-switch button:hover { color: var(--ink); background: rgba(17, 26, 21, .05); } }
.cat-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cat-switch button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cat-switch .n { font: 500 12px/1 var(--mono); }
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px var(--g); }
.cat-card { display: block; width: 100%; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.cat-well { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; border-radius: 2px; overflow: hidden; margin-bottom: 12px; transition: background-color .2s var(--ease); }
.cat-well img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; object-position: 50% 100%; mix-blend-mode: normal; transition: transform .35s var(--ease); }
.cat-well img.photo { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
@media (hover: hover) { .cat-card:hover .cat-well { box-shadow: inset 0 0 0 1px var(--line); } }
@media (hover: hover) { .cat-card:hover .cat-well img { transform: scale(1.035); } }
.cat-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.cat-name { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.005em; line-height: 1.3; }
.cat-kind { display: block; font-size: 14px; line-height: 1.45; color: var(--ink-2); margin-top: 2px; }
.cat-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-top: 28px; }
.cat-more:focus-visible, .jgrid-more:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cat-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.cat-note { margin-top: 10px; }
/* a demo note for the review only */
html:not(.notes-on) .cat-note { display: none; }

/* model dialog: photo on white, details beside it (below it on phones) */
/* a fixed frame: stepping through photos of other proportions never resizes or moves the dialog */
.cat-box { border: 0; padding: 0; background: var(--paper); color: var(--ink); width: min(1080px, 94vw); max-width: none; height: min(660px, 90vh); max-height: none; border-radius: 2px; overflow: hidden; }
.cat-box[open] { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.cat-box::backdrop { background: rgba(12, 32, 20, .82); }
.cat-box > form { position: absolute; right: 8px; top: 8px; z-index: 2; }
.cat-box .close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
/* a white halo keeps the focus ring visible over dark parts of a photo */
.cat-box .close:focus-visible, .cb-nav:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
.cb-media { position: relative; background: #fff; min-height: 0; touch-action: pan-y; }
/* small photos keep their own size (scale-down), larger ones fit the frame */
.cb-media img { display: block; width: 100%; height: 100%; object-fit: scale-down; }
.cb-media img.loading { opacity: 0; }
.cb-nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 2px; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.cb-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .cb-nav:hover { border-color: var(--ink); } }
.cb-prev { left: 12px; }
.cb-next { right: 12px; }
.cb-count { position: absolute; left: 12px; bottom: 12px; padding: 5px 9px; border-radius: 12px; background: rgba(255, 255, 255, .94); font: 500 12px/1 var(--mono); color: var(--ink); }
.cb-info { padding: 64px 32px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-height: 0; overflow-y: auto; }
.cb-info h3 { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; margin: 0; }
.cb-vars { list-style: none; margin: 0; padding: 0; width: 100%; border-top: 1px solid var(--line); }
.cb-vars li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0 10px 12px; border-bottom: 1px solid var(--line); box-shadow: inset 2px 0 0 transparent; }
.cb-vars li.on { box-shadow: inset 2px 0 0 var(--ink); }
.cb-vars .k { font-size: 15px; font-weight: 500; }
.cb-vars .d { font: 400 13px/1.5 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cb-vars .confirm { justify-self: start; font-size: 12px; }
html:not(.notes-on) .cb-vars .confirm { display: none; }
.cb-extra { margin: 0; font-size: 15px; color: var(--ink-2); }
.cb-extra:empty { display: none; }
.cb-legend { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
/* the action stays in reach when the details scroll */
.cb-info .btn { position: sticky; bottom: 0; margin-top: auto; box-shadow: 0 0 0 16px var(--paper), 0 16px 0 16px var(--paper); margin-bottom: 24px; }
@media (forced-colors: active) {
  .cat-switch button[aria-pressed="true"], .model-switch button[aria-pressed="true"] { outline: 3px solid CanvasText; outline-offset: -3px; }
  .cb-vars li.on { border-left: 4px solid CanvasText; }
}

/* social networks: round icon links */
.social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: inherit; text-decoration: none; transition: transform .16s, opacity .16s; }
.social svg { width: 24px; height: 24px; display: block; }
@media (hover: hover) { .social a:hover { transform: translateY(-2px); } }
.social a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* the footer's 44 px icons keep their centring under the footer's touch-size links (below 1024 px, and on touch screens
   from 1024 px) */
.site-footer .social a { display: grid; padding-block: 0; margin-block: 0; }
.band .social a { color: var(--on-band); }
.contacts .social, .sheet-foot .social { color: var(--ink); }
.follow { font-size: 13px; color: var(--ink-2); margin: 22px 0 10px; }
.sheet-foot .social { margin-bottom: 4px; }
.band .follow { color: var(--on-band-2); margin: 16px 0 2px; }
.site-footer .follow:first-child { margin-top: 0; }
@media (min-width: 768px) and (max-width: 1023px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--g); }
  .cat-head h3 { grid-column: 1 / -1; margin-bottom: 10px; }
  .cat-head p { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
  /* a control reached with Tab is not hidden behind the fixed bottom bar */
  html { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  /* the four catalogue tabs two by two, each label on as few lines as it needs */
  .cat-switch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; }
  .cat-switch button + button { border-left: 0; }
  .cat-switch button:nth-child(even) { border-left: 1px solid var(--ui-border); }
  .cat-switch button:nth-child(n+3) { border-top: 1px solid var(--ui-border); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  /* portrait tablets: a finish control reached with Tab lands below the sticky 3D, not under it */
  .mobile-step-body * { scroll-margin-top: calc(var(--hh) + (100vw - 2 * var(--m)) * .75 + 16px); }
}
@media (max-width: 767px) {
  .catalog { padding-top: 32px; }
  .cat-head { display: block; margin-bottom: 20px; }
  .cat-head h3 { margin-bottom: 8px; }
  .cat-switch { margin-bottom: 24px; }
  .cat-switch button { justify-content: space-between; padding: 10px 12px; font-size: 14.5px; }
  /* a word goes whole to the next line (no "литье-/вого"); only one longer than the tab is broken */
  .cat-switch button > span:first-child { min-width: 0; overflow-wrap: anywhere; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .cat-well { margin-bottom: 10px; }
  .cat-kind { font-size: 13px; }
  .cat-foot { margin-top: 24px; }
  .cat-more, .jgrid-more { width: 100%; }
  /* the dialog becomes a full-screen sheet: photo on top, details scroll below it, the close
     button and the action stay on screen */
  .cat-box { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .cat-box[open] { display: flex; flex-direction: column; }
  .cb-media { flex: 0 0 auto; height: 42dvh; }
  .cb-info { padding: 18px 16px 0; flex: 1 1 auto; gap: 12px; }
  .cb-info h3 { font-size: 26px; }
  .cb-info .btn { width: 100%; margin-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* anatomy */
.anatomy { padding-bottom: 0; }
.stage-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.steps { grid-column: 1 / span 4; padding-top: 8px; }
.canvas-box { grid-column: 5 / span 8; position: relative; aspect-ratio: 4 / 3; }
/* the pinned stage: about two screens, an equal share of the scroll per step (main.js) */
html.pinned .stage-scroll { height: 180vh; }
html.pinned .stage { position: sticky; top: var(--hh); height: calc(100svh - var(--hh)); padding: 16px 0 20px; }
html.pinned .stage-grid { height: 100%; grid-template-rows: minmax(0, 1fr); }
html.pinned .steps { min-height: 0; overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
html.pinned .canvas-box { aspect-ratio: auto; height: 100%; min-height: 0; }
html:not(.pinned) .skip-anim { display: none; }
#anatomyCanvas, .fallback-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
#anatomyCanvas.can-drag { cursor: grab; }
#anatomyCanvas.grabbing { cursor: grabbing; }
.fallback-svg { color: var(--ink); overflow: visible; }
.fallback-svg path { stroke-width: .8; stroke-linejoin: round; }
.overlay { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.overlay .dims { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .2s; }
.overlay .dims path { fill: none; stroke: var(--ink); stroke-width: 1; }
.overlay .dims .ext { stroke-opacity: .4; }
.overlay .dims text { font: 500 13px var(--mono); fill: var(--ink); }
.marker { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--ink); font: 500 11px var(--mono); opacity: 0; transition: opacity .2s; }
.marker.on { opacity: 1; }
.bar { height: 1px; background: var(--line); margin: 10px 0 16px; position: relative; }
.bar i { position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.step-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.step { border-top: 1px solid var(--line); }
.step-btn { display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 12px 0; border: 0; background: none; text-align: left; cursor: pointer; font-size: 21px; font-weight: 500; letter-spacing: -.01em; color: var(--ink-2); transition: color .2s; }
.step-btn .n { font: 500 13px var(--mono); }
.step.is-active .step-btn { color: var(--ink); }
@media (hover: hover) { .step-btn:hover { color: var(--ink); } }
/* the active step's text and controls in one panel under the list (main.js placeBodies): a step change replaces
   the panel's content and never moves the step titles; the new content fades in */
.step-list .step-body { display: none; padding: 0 0 16px; font-size: 16px; color: var(--ink-2); }
/* without JavaScript the first step's text stays under its title (with it, every text is in the panel) */
.step-list .step.is-active .step-body { display: block; }
/* ...and below 1024 px it goes under the row of four step buttons, as wide as the row */
@media (scripting: none) and (max-width: 1023px) {
  .step-list .step { display: contents; }
  .step-list .step.is-active .step-body { grid-column: 1 / -1; grid-row: 2; padding-top: 16px; }
}
.mobile-step-body { padding-top: 16px; font-size: 16px; color: var(--ink-2); }
.mobile-step-body .step-body { display: block; animation: step-in .4s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } }
/* below 1024 px, while the autoplay may still run (main.js placeBodies, .hold), the four steps' texts wait stacked in
   the panel, the active one shown: the panel keeps the height of the tallest, so the autoplay never moves the sections
   under the stage. After it, or once the visitor taps, the panel has the active step's own height */
@media (max-width: 1023px) {
  .mobile-step-body.hold { display: grid; }
  .mobile-step-body.hold > .step-body { grid-area: 1 / 1; min-width: 0; animation: none; }
  .mobile-step-body.hold > .step-body:not(.is-current) { visibility: hidden; }
  .mobile-step-body.hold > .step-body.is-current { animation: step-in .4s var(--ease); }
}
.callouts { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: c; font-size: 14px; line-height: 1.45; }
.callouts li { counter-increment: c; display: grid; grid-template-columns: 26px 1fr; padding: 3px 0; color: var(--ink); }
.callouts li::before { content: counter(c); width: 20px; height: 20px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font: 500 10.5px var(--mono); margin-top: 1px; }
.config { margin-top: 12px; display: grid; gap: 12px; }
.config .field label { display: flex; align-items: baseline; justify-content: space-between; font-size: 14px; color: var(--ink); }
.config output { font-weight: 500; font-variant-numeric: tabular-nums; }
.config input[type=range] { width: 100%; accent-color: var(--brand); margin: 6px 0 0; }
.config fieldset { border: 0; padding: 0; margin: 0; }
.config legend { font-size: 14px; color: var(--ink); margin-bottom: 6px; padding: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches label { position: relative; cursor: pointer; }
.swatches input, .bases input, .roles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { display: block; width: 32px; height: 32px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); outline: 1px solid transparent; outline-offset: 3px; transition: outline-color .16s; }
.swatches input:checked + .sw { outline: 1.5px solid var(--ink); }
.swatches input:focus-visible + .sw { outline: 2px solid var(--focus); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* choice: a square segmented control (as the catalogue groups): the options share their 1 px rules, the chosen
   one filled with ink; it wraps into rows where the line is too short */
.bases { display: flex; flex-wrap: wrap; padding: 1px 0 0 1px; }
:is(.bases, .roles) label { position: relative; display: flex; flex: 1 1 auto; margin: -1px 0 0 -1px; }
:is(.bases, .roles) label span { display: flex; flex: 1; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--ui-border); border-radius: 0; color: var(--ink); line-height: 1.25; cursor: pointer; transition: background-color .16s, color .16s; }
:is(.bases, .roles) label:first-of-type span { border-radius: 2px 0 0 2px; }
:is(.bases, .roles) label:last-of-type span { border-radius: 0 2px 2px 0; }
@media (hover: hover) { :is(.bases, .roles) label span:hover { background: rgba(17, 26, 21, .05); } }
:is(.bases, .roles) input:checked + span { position: relative; z-index: 1; background: var(--ink); border-color: var(--ink); color: var(--paper); }
:is(.bases, .roles) input:focus-visible + span { position: relative; z-index: 2; outline: 2px solid var(--focus); outline-offset: 2px; }
.bases label span { font-size: 13.5px; }
@media (forced-colors: active) { :is(.bases, .roles) input:checked + span { outline: 3px solid CanvasText; outline-offset: -3px; } }
.summary { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.config-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* on short laptop screens the steps column scrolls; its two actions stay in view */
html.pinned .config-actions { position: sticky; bottom: 0; z-index: 1; background: var(--paper); padding: 10px 0 2px; box-shadow: 0 -1px 0 var(--line); }
.drag-hint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-size: 13px; color: var(--ink-2); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.canvas-box.can-drag .drag-hint { opacity: 1; }
.disclaimer { position: absolute; left: 0; bottom: 8px; max-width: 46%; font-size: 12px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.canvas-box.can-drag .disclaimer { opacity: 0; }

/* sectors: five tiles, names only; the whole tile is the link (its text is for screen readers, an arrow shows) */
.section.sectors { background: var(--paper); }
.sector-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--g); }
.stile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: var(--ph, var(--band)); --note: #E3A64A; }
.stile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s var(--ease), transform .8s var(--ease); }
.stile:has(.stile-link:focus-visible) img { transform: scale(1.04); }
@media (hover: hover) { .stile:hover img { transform: scale(1.04); } }
.stile::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(6, 16, 10, 0) 50%, rgba(6, 16, 10, .72) 100%); }
.stile-over { position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 18px 16px 20px; color: #fff; }
/* balanced lines, no one-word last line ("Restoranai ir / barai"), and no hyphen: balance with hyphens breaks
   words ("Preky- / bos erdvės"); without them every name of the 25 languages still fits its tile from 360 to 1920 px */
.stile-name { margin: 0; color: #fff; font-size: 22px; font-weight: 400; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; hyphens: manual; }
.stile-link { flex: none; display: grid; place-items: center; width: 32px; height: 26px; margin: 0 -6px 0 0; color: #fff; font-size: 20px; line-height: 1; text-decoration: none; }
.stile-link .arr { transition: transform .2s var(--ease); }
.stile-link:focus-visible .arr { transform: translateX(4px); }
@media (hover: hover) { .stile:hover .stile-link .arr { transform: translateX(4px); } }
/* the stretched link makes the whole tile clickable; the focus ring goes round the whole tile */
.stile-link::after { content: ''; position: absolute; inset: 0; }
.stile-link:focus-visible { outline: none; }
.stile:has(.stile-link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
/* cruise ships and yachts, the owner's strategic market (2026-11-21): the first tile; a closer view of the hero's sky
   bar (a 4:3 frame; the tile is 4:5 on a desktop, two columns wide below 1280 px, 2:1 on a phone): the crop keeps the
   patterned banquette and its table, with the sea line above */
.stile-yacht img { object-position: 18% 50%; }
/* notes inside a tile: above the stretched link so they can be hovered; the name's note opens upwards, inside the tile */
.notes-on .stile-over .confirm { z-index: 3; }
.notes-on .stile .confirm:hover::after, .notes-on .stile .confirm:focus::after { max-width: 210px; }
.notes-on .stile .stile-over .confirm:hover::after, .notes-on .stile .stile-over .confirm:focus::after { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; }
@media (max-width: 1279px) {
  .sector-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stile-yacht { grid-column: span 2; aspect-ratio: auto; }
  .stile-yacht img { object-position: 40% 45%; }
}
@media (max-width: 767px) {
  .sector-tiles { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stile-over { gap: 6px; padding: 12px 10px 10px 14px; }
  .stile-name { font-size: 18px; }
  .stile-link { width: 24px; height: 21px; margin: 0; font-size: 18px; }
  .stile-yacht { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
}

/* projects and workshop (the owner, 2026-11-21: "profesionaliai ir simetriškai"): every photo in the same 4:3 tile,
   one gap, columns aligned; a row that cannot be full (only ever the last) is centred. The projects list opens on a
   symmetric block: its first photo large in the middle, two on each side; then rows of four. The workshop list is
   denser: six columns on a desktop, four on a tablet, three on a phone. The tile crops the photo (--fp, its focus, set
   per photo where the middle would cut the piece); a click opens the whole frame. The shown counts fill whole rows at
   every width (projects 5 = the block, workshop 12): build_prod.py GALLERY_TILES has the same columns and gaps */
.jgrid { --cols: 4; --gap: 12px; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.jgrid > li { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; aspect-ratio: 4 / 3; }
.jgrid-sm { --cols: 6; }
#projGrid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
#projGrid > li:nth-child(1) { grid-column: 2 / 4; grid-row: 1 / 3; aspect-ratio: auto; }
#projGrid > li:nth-child(2) { grid-column: 1; grid-row: 1; }
#projGrid > li:nth-child(3) { grid-column: 1; grid-row: 2; }
#projGrid > li:nth-child(4) { grid-column: 4; grid-row: 1; }
#projGrid > li:nth-child(5) { grid-column: 4; grid-row: 2; }
/* (li[data-wide], a last row of three made whole by a wide middle photo: the Gulf view only, main.js) */
/* the closing block (2026-11-22), a mirror of the opening one: li[data-big] large in the middle, two rows high, the two
   photos after it in the first column and the next two in the last; dense packing puts each in the first free row of
   its column, so the block starts on the row after the full rows above it. 22 = block + three rows of four + block */
@media (min-width: 768px) {
  #projGrid { grid-auto-flow: row dense; }
  #projGrid > li[data-big] { grid-column: 2 / 4; grid-row: span 2; aspect-ratio: auto; }
  #projGrid > li[data-big] + li, #projGrid > li[data-big] + li + li { grid-column: 1; }
  #projGrid > li[data-big] + li + li + li, #projGrid > li[data-big] + li + li + li + li { grid-column: 4; }
}
@media (max-width: 1023px) { .jgrid-sm { --cols: 4; } }
@media (max-width: 767px) {
  .jgrid { --cols: 2; --gap: 8px; }
  .jgrid-sm { --cols: 3; }
  /* a phone: the large photo across the width, then pairs */
  #projGrid > li:nth-child(n) { grid-column: auto; grid-row: auto; }
  #projGrid > li:nth-child(1), #projGrid > li[data-big] { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  /* (the Gulf view's wide photo across the width: the photo after it fills the pair it leaves open) */
  #projGrid { grid-auto-flow: dense; }
}
/* the galleries now sit near the top (WOW W04): until main.js has folded the added photos (the hidden attribute,
   then .gal-ready), they stay out of the layout, so the browser's lazy loading does not fetch them while the page is
   still arriving; without JavaScript every photo is shown */
@media (scripting: enabled) { .jgrid:not(.gal-ready) > li[data-more] { display: none; } }
.jgrid-title { font-size: 20px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; margin: 64px 0 18px; }
/* "Rodyti daugiau nuotraukų" under a gallery (main.js shows it and folds the li[data-more] photos) */
.jgrid-more { margin-top: 12px; }
.proj-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--ph, var(--paper-2)); cursor: zoom-in; overflow: hidden; border-radius: 2px; }
.proj-btn img { display: block; width: 100%; height: 100%; object-fit: var(--fit, cover); object-position: var(--fp, 50% 50%); transition: opacity .25s var(--ease), transform .8s var(--ease); }
/* a photo still on its way: its list item shows the photo's colour (--ph), then the photo fades in (main.js) */
:is(.proj-btn, .stile) img.ph-wait { opacity: 0; }
@media (hover: hover) { .proj-btn:hover img { transform: scale(1.03); } }
.proj-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.after { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 44px; font-size: 17px; }
/* the projects as a dark showcase: the warm interiors glow on the deep green, the workshop strip under them */
.showcase .jgrid-title { color: var(--on-band); }
.showcase .proj-btn { background: var(--ph, #1A2A20); }
.showcase .after { color: var(--on-band); }
.section.showcase { padding: 96px 0 72px; }
.showcase .section-head { margin-bottom: 28px; }
.showcase .jgrid-title { margin: 40px 0 16px; }
/* the workshop toggle and the call to action share the last row (the toggle on the left, the action on the right) */
.showcase > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--g); }
.showcase > .wrap > * { grid-column: 1 / -1; }
.showcase > .wrap > .jgrid-more[aria-controls="workGrid"] { grid-column: 1; justify-self: start; align-self: center; }
.showcase > .wrap > .after { grid-column: 2; justify-self: end; margin-top: 12px; }
@media (max-width: 767px) {
  .showcase > .wrap { grid-template-columns: minmax(0, 1fr); }
  .showcase > .wrap > .after { grid-column: 1 / -1; justify-self: stretch; margin-top: 32px; }
  .showcase .after .btn { flex: 1 1 100%; }
}
/* the viewer: frameless, the photo alone on the darkened page (the dialog is exactly the photo's box), its caption
   (the photo's alt) under it, centred on the photo and as wide as the screen allows, the arrows, the counter and the close button at the screen's edges */
/* the photo's box has its shape from the start (--ar, main.js showProj), the gallery image behind it until the
   large file is drawn */
.lightbox { border: 0; padding: 0; background: transparent center / contain no-repeat; color: #fff; width: fit-content; height: fit-content; max-width: 96vw; max-height: 94vh; border-radius: 0; overflow: visible; }
.lightbox[open] { display: block; }
.lightbox::backdrop { background: rgba(6, 12, 8, .97); }
/* the phone's call / send-a-drawing bar steps away under the viewer */
body:has(.lightbox[open]) .mobile-bar { transform: translateY(110%); }
/* one-finger drags go to the viewer's own swipe (main.js), never to the page behind */
.lightbox, .lightbox::backdrop, .lightbox img { touch-action: pinch-zoom; }
/* the photo stays clear of the arrows and the close button at the screen's edges (80 px each side) */
/* on a short screen (a phone held sideways) the photo leaves room under it for a two-line caption */
.lightbox img { display: block; aspect-ratio: var(--ar); width: min(calc(100vw - 160px), min(84vh, 100vh - 108px) * var(--ar)); height: auto; max-width: calc(100vw - 160px); max-height: min(84vh, 100vh - 108px); object-fit: contain; }
.lb-cap { position: absolute; left: 50%; top: 100%; translate: -50% 0; width: min(96ch, calc(100vw - 160px)); margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .75); text-align: center; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.lightbox .close { position: fixed; z-index: 2; right: 16px; top: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.lightbox .lb-nav { position: fixed; z-index: 2; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lightbox .lb-prev { left: 16px; }
.lightbox .lb-next { right: 16px; }
/* clear of a sideways phone's notch (the margins act on whichever side rtl.css puts each arrow) */
.lightbox .lb-nav { margin-left: max(0px, env(safe-area-inset-left) - 16px); margin-right: max(0px, env(safe-area-inset-right) - 16px); }
.lightbox .lb-count { position: fixed; z-index: 2; left: 24px; bottom: 24px; font: 500 12px/1 var(--mono); color: rgba(255, 255, 255, .8); }
.lightbox .close:focus-visible, .lightbox .lb-nav:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }


/* dark band */
.band { background: var(--band); color: var(--on-band); border-top: 0; }
/* two dark sections in a row (projects, then architects, the CSI order of 2026-11-22): a hairline between them, as
   between the light ones */
.band + .band { border-top: 1px solid rgba(230, 236, 231, .14); }
.band p, .band dd { color: var(--on-band-2); }
.band, .hero-over { --focus: var(--on-band); --note: #E3A64A; }
.arch { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.arch-main h2 { margin-bottom: 28px; }
/* the partner column is narrow and its heading has no sheet number: a smaller size of the same voice */
.arch-partner h2 { font-size: clamp(28px, 2.4vw, 36px); hyphens: manual; }
.arch-partner p { max-width: 40ch; margin-bottom: 28px; font-size: 17px; }
/* beside the main column its title starts on the line of the main title (under that title's 12 px sheet number and
   its 18 px margin) */
@media (min-width: 1024px) { .arch-partner { padding-top: 30px; } }
.spec { width: 100%; border-collapse: collapse; border-bottom: 1px solid var(--line-band); }
.spec th { font: 500 12px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--on-band-2); text-align: left; vertical-align: top; width: 260px; padding: 16px 16px 13px 0; border-top: 1px solid var(--line-band); hyphens: auto; overflow-wrap: break-word; }
:lang(el) .spec th { font-family: var(--sans); }
.spec td { border-top: 1px solid var(--line-band); padding: 12px 0; font-size: 16px; color: var(--on-band); }
.spec-note { font-size: 13px; margin-top: 14px; }

/* careers: a quiet block; the heading with the lead line under it on the left, the vacancies on the right as a list
   of hairline rows (the title, its own "Siųsti CV" e-mail link), the address and the CV line on one 14 px line under
   them; one column on phones */
.section.careers { padding: 56px 0 44px; }
.careers-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; column-gap: var(--g); }
.careers .section-head { grid-column: 1 / span 5; grid-row: 1; margin-bottom: 16px; }
/* no word alone on the lead line's last line ("Patirtis nebūtina –" / "apmokome.") */
.careers .sub { grid-column: 1 / span 5; grid-row: 2; align-self: start; font-size: 17px; text-wrap: pretty; }
.jobs { grid-column: 7 / -1; grid-row: 1 / span 2; align-self: start; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
/* every row alike in every language: the link on the right, a long title wraps beside it */
.job { display: flex; align-items: center; justify-content: space-between; gap: 0 24px; padding: 2px 0; border-top: 1px solid var(--line); }
.job h3 { flex: 1 1 0; min-width: 0; margin: 0; padding: 10px 0; font-size: 20px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.job .link-arrow { flex: none; white-space: nowrap; }
.careers-mail, .careers .privacy { grid-row: 3; margin: 16px 0 0; font-size: 14px; color: var(--ink-2); }
.careers-mail { grid-column: 1 / span 5; }
.careers .privacy { grid-column: 7 / -1; }
@media (max-width: 1023px) {
  .careers .section-head, .careers .sub, .jobs, .careers-mail, .careers .privacy { grid-column: 1 / -1; grid-row: auto; }
  .jobs { margin-top: 28px; }
  .careers .privacy { margin-top: 4px; }
}

/* inquiry */
/* what happens after the drawing is sent (WOW W10): the project's five stages in one wrapping 13 px line under the
   heading, each with its sheet number; a list of five rows on phones */
.eiga { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 13px; line-height: 1.5; color: var(--ink); }
.eiga li { display: flex; align-items: baseline; gap: 8px; }
.eiga .n { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-2); }
/* from 768 px a title-block row: five equal cells, each number over its stage (no stage left alone on a second line) */
@media (min-width: 768px) {
  .eiga { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 16px; }
  .eiga li { display: block; }
  .eiga .n { display: block; margin-bottom: 4px; }
}
.inquiry-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.inquiry-grid > div { grid-column: 1 / span 7; }
.contacts { grid-column: 9 / span 4; padding-top: 6px; }
.contacts h3 { font-size: 20px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 14px; }
.addr { color: var(--ink-2); margin-bottom: 24px; line-height: 1.6; }
.addr .text-link { color: var(--ink); font-size: 15px; }
.people { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.people li { border-top: 1px solid var(--line); padding: 11px 0; display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 1px; font-size: 15px; }
.people .who { font-weight: 500; flex-basis: 100%; }
.more-people { border-bottom: 1px solid var(--line); }
.more-people .people { border-bottom: 0; }
.people a { color: var(--ink-2); text-decoration: none; width: fit-content; }
@media (hover: hover) { .people a:hover { color: var(--ink); text-decoration: underline; } }
.inq .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.inq label { font-size: 14px; color: var(--ink-2); }
.inq input:not([type=radio]):not([type=file]), .inq select, .inq textarea { width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid var(--ui-border); border-radius: 2px; background: var(--field); color: var(--ink); }
.inq textarea { resize: vertical; min-height: 120px; }
.inq input:focus-visible, .inq select:focus-visible, .inq textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.inq .invalid { border-color: var(--error) !important; border-width: 2px !important; }
.err { color: var(--error); font-size: 14px; font-weight: 500; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--g); }
/* optional project details, folded so the path to "Send" stays short */
.more-proj { margin: 0 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more-proj summary, .more-people summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 0; font-size: 15px; font-weight: 500; cursor: pointer; list-style: none; }
.more-proj summary::-webkit-details-marker, .more-people summary::-webkit-details-marker { display: none; }
.more-proj summary::before, .more-people summary::before { content: '+'; content: '+' / ''; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--ui-border); border-radius: 50%; font: 500 15px/1 var(--sans); }
.more-proj[open] summary::before, .more-people[open] summary::before { content: '\2212'; content: '\2212' / ''; }
.more-proj summary:focus-visible, .more-people summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.more-proj[open] { padding-bottom: 2px; }
.roles { border: 0; padding: 1px 0 0 1px; margin: 0 0 20px; display: flex; flex-wrap: wrap; }
/* the architects' own button under the specification (2026-11-22) */
.arch-cta { margin: 28px 0 0; }
.roles legend { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; padding: 0; }
.roles label span { font-size: 15px; padding: 0 16px; }
.drop { position: relative; margin-bottom: 26px; }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone { display: grid; gap: 4px; padding: 22px 24px; border: 1.5px dashed var(--ui-border); border-radius: 2px; background: var(--field); cursor: pointer; transition: border-color .16s, background-color .16s; }
.drop.over .dropzone { border-color: var(--brand); background: #fff; }
@media (hover: hover) { .dropzone:hover { border-color: var(--brand); background: #fff; } }
.drop input:focus-visible + .dropzone { outline: 2px solid var(--focus); outline-offset: 2px; }
.dz-title { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; color: var(--ink); }
/* a paperclip before "Prisegti brėžinį" */
.dz-title::before { content: ''; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.4 11.1l-8.5 8.5a5.5 5.5 0 0 1-7.8-7.8l8.5-8.5a3.7 3.7 0 0 1 5.2 5.2l-8.5 8.5a1.8 1.8 0 0 1-2.6-2.6l7.8-7.8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.4 11.1l-8.5 8.5a5.5 5.5 0 0 1-7.8-7.8l8.5-8.5a3.7 3.7 0 0 1 5.2 5.2l-8.5 8.5a1.8 1.8 0 0 1-2.6-2.6l7.8-7.8'/%3E%3C/svg%3E") center / contain no-repeat; }
.dz-hint { font-size: 14px; color: var(--ink-2); }
.dz-limit { font-size: 13px; color: var(--ink-2); }
.dz-files { font-size: 14px; color: var(--brand); font-weight: 500; }
.privacy { font-size: 14px; color: var(--ink-2); margin: 4px 0 20px; text-wrap: pretty; }
.privacy .text-link { color: var(--ink); }
/* production form (plan 2.5): the bot check, a field only robots fill in, the sending state */
.turnstile { margin: 0 0 18px; }
.turnstile:empty { margin: 0; }
.ts-missing { margin: 0 0 18px; padding: 10px 12px; border: 1px dashed var(--error); font-size: 14px; color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-sending { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 15px; color: var(--ink-2); }
/* phase 1 (no form service): the button prepares an e-mail, the line under it says so */
.form-mail { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); text-wrap: pretty; }
.spin { width: 18px; height: 18px; border: 2px solid var(--line-strong); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
.drop .err { margin: 8px 0 0; }
.confirm-no { font: 500 14px/1.5 var(--mono); }
.confirmation { margin-top: 20px; padding: 18px 20px; border: 1px solid var(--ink); border-radius: 2px; display: grid; gap: 14px; justify-items: start; }
.confirmation:focus { outline: 2px solid var(--focus); outline-offset: 3px; }

/* footer */
.site-footer { padding: 72px 0 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--g); padding-bottom: 48px; }
.foot-logo { height: 40px; width: auto; filter: brightness(0) invert(.93); margin-bottom: 16px; }
.site-footer p { font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
.site-footer a { text-decoration: none; color: var(--on-band); }
@media (hover: hover) { .site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.site-footer nav, .foot-grid > div:last-child { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.foot-base { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line-band); padding-top: 20px; }
.foot-base p { margin: 0; font-size: 13px; }
.site-footer .legal-links a { color: var(--on-band-2); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .site-footer .legal-links a:hover { color: var(--on-band); } }
.notes-toggle { background: none; border: 1px solid #4E6A57; color: var(--on-band-2); border-radius: 2px; min-height: 44px; padding: 8px 14px; font-size: 13px; cursor: pointer; }
.notes-toggle[aria-pressed="true"] { border-color: #E3A64A; color: #F2C982; }
/* the notes button and the design notes link only for the owner's reviews: ?notes in the address (main.js
   notes-ui, 2026-11-22); partners see neither */
html:not(.notes-ui) :is(.notes-toggle, .site-footer a[href="tyrimas.html"]) { display: none; }
html:not(.notes-ui) .site-footer :is(.notes-toggle, a[href="tyrimas.html"]) + .follow { margin-top: 0; }

/* demo notes */
.notes-on .confirm { text-decoration: underline dotted var(--note) 1.5px; text-underline-offset: 3px; position: relative; cursor: help; }
.notes-on .confirm:hover::after, .notes-on .confirm:focus::after { content: attr(data-confirm); font-family: var(--sans); text-align: left; position: absolute; left: 0; top: calc(100% + 6px); z-index: 60; width: max-content; max-width: 280px; background: #2B1A00; color: #FBE7C6; font-size: 12.5px; font-weight: 400; line-height: 1.45; padding: 8px 10px; border-radius: 2px; white-space: normal; text-transform: none; letter-spacing: 0; text-decoration: none; }
.notes-on .confirm.tip-left:hover::after, .notes-on .confirm.tip-left:focus::after { left: auto; right: 0; }
.notes-on div.confirm { text-decoration: none; box-shadow: inset 3px 0 0 #E3A64A; padding-left: 10px; }

/* mobile bar */
.mobile-bar { display: none; }

/* ---------- responsive ---------- */
@media (max-height: 860px) and (min-width: 1024px) {
  .step-btn { padding: 8px 0; font-size: 19px; }
  .bar { margin: 8px 0 10px; }
  .mobile-step-body { padding-top: 10px; font-size: 15px; }
  .config { gap: 9px; margin-top: 8px; }
  .sw { width: 28px; height: 28px; }
  .callouts li { padding: 1px 0; font-size: 13.5px; }
}
/* 768-820 px tall laptops: the progress bar gives way so the spec line stays in view */
@media (max-height: 820px) and (min-width: 1024px) {
  .bar { display: none; }
}
@media (max-height: 760px) and (min-width: 1024px) {
  .step-btn { padding: 6px 0; font-size: 17px; }
  .bar { display: none; }
  .sw { width: 26px; height: 26px; }
  .bases label span { padding: 4px 10px; }
}
/* seven nav links ("Karjera", 2026-10-25): below 1440 px the header tightens step by step, so LT and EN keep the
   whole nav down to 1024 px; a language that still does not fit gets the burger (fitHeader in main.js) */
@media (max-width: 1439px) {
  .header-in { gap: 28px; }
  .header-tools { gap: 14px; }
  .nav { gap: 20px; }
}
@media (max-width: 1279px) {
  .nav a { font-size: 14px; }
}
@media (max-width: 1199px) {
  .header-tools .phone { display: none; }
  .nav { gap: 16px; }
  .header-in { gap: 24px; }
}
@media (max-width: 1023px) {
  :root { --m: 32px; --g: 20px; --hh: 64px; }
  .nav, .header-tools > .btn { display: none; }
  .burger { display: block; }
  .header-tools { gap: 8px; }
  .lang-panel { position: fixed; left: 16px; right: 16px; top: calc(var(--hh) + 4px); width: auto; }
  .lang-panel .lang-list :is(a, button) { min-height: 44px; }
  .btn, .btn-ghost { white-space: normal; text-align: center; height: auto; min-height: 44px; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; }
  .btn { min-height: 48px; }
  .btn-lg { min-height: 52px; }
  /* phones and tablets open on the photo of a finished project, not on a screen of text */
  .model-switch { order: 0; grid-column: 1 / -1; width: 100%; margin-bottom: 12px; }
  .section { padding: 96px 0 80px; }
  .steps, .canvas-box { grid-column: 1 / -1; }
  .canvas-box { margin-top: 20px; aspect-ratio: 4 / 3; }
  .step-list { display: grid; grid-template-columns: repeat(4, 1fr); border: 0; gap: 8px; }
  .step { border: 0; }
  .step-btn { flex-direction: column; gap: 2px; font-size: 16px; padding: 10px 12px; border: 1px solid var(--ui-border); border-radius: 2px; min-height: 44px; }
  .step.is-active .step-btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  /* step buttons, then the model, then the active step's text and controls */
  .steps { display: contents; }
  .step-list { order: 1; grid-column: 1 / -1; }
  .canvas-box { order: 2; }
  .mobile-step-body { order: 3; grid-column: 1 / -1; margin-top: 8px; padding-top: 0; font-size: 16px; color: var(--ink-2); }
  .bar { display: none; }
  .disclaimer { position: static; max-width: none; margin-top: 10px; }
  .canvas-box .disclaimer { position: absolute; left: 0; right: 0; top: 100%; bottom: auto; margin-top: 8px; }
  .canvas-box { margin-bottom: 40px; }
  .canvas-box.can-drag .disclaimer { opacity: 1; }
  .drag-hint { bottom: 4px; }
  .arch { grid-template-columns: 1fr; gap: 56px; }
  .inquiry-grid > div, .contacts { grid-column: 1 / -1; }
  .contacts { margin-top: 56px; }
  .people a { padding: 10px 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  /* the drawing button the wider one (its label is the longer in every language) */
  .mobile-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 48px; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: var(--paper); box-shadow: 0 -1px 0 var(--line); transform: translateY(110%); transition: transform .25s var(--ease); }
  .mobile-bar.show { transform: none; }
  .mobile-bar a { min-height: 48px; padding: 4px 8px; text-align: center; line-height: 1.2; display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 500; border: 1px solid var(--ink); border-radius: 2px; }
  .mobile-bar .btn { border: 0; }
  .bar-chat { position: relative; display: grid; place-items: center; width: 48px; min-height: 48px; padding: 0; border: 1px solid var(--ink); border-radius: 2px; background: none; color: var(--ink); cursor: pointer; }
  .bar-chat svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .bar-chat::after { content: ''; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #2E9D52; box-shadow: 0 0 0 2px var(--paper); }
  .bar-chat[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
  .bar-chat[aria-expanded="true"]::after { display: none; }
  /* the assistant is in the bar while it shows; the round button in the corner wherever the bar is hidden (the first
     screen, the form, the contacts and the careers), so an AI control is always on screen */
  .mobile-bar.show ~ .chat .chat-launch { display: none; }
  /* tap targets: the language button, the footer and contact links (stacked footer links and the legal pages' footer
     lines 44 px apart: each owns 44 px, not the 32 px a narrower spacing left under the next link's padding) */
  .lang-btn { min-height: 44px; }
  .site-footer a, .addr .text-link, .privacy .text-link { display: inline-block; padding-block: 12px; margin-block: -12px; }
  .site-footer nav { gap: 20px; }
  .site-footer.doc-foot p { margin-bottom: 22px; }
  .site-footer { padding-bottom: 96px; }
}
/* touch tablets held sideways (1024 px and wider, a finger): the same 44 px tap targets as above; the header stays
   68 px (live test, 2026-10-31: iPad Mini, Galaxy Tab S4, iPad Pro 11) */
@media (min-width: 1024px) and (pointer: coarse) {
  .nav a { padding-block: 11px; }
  .lang-btn { min-height: 44px; }
  .lang-panel .lang-list :is(a, button) { min-height: 44px; }
  .people a { padding: 10px 0; }
  .site-footer a, .addr .text-link, .privacy .text-link { display: inline-block; padding-block: 12px; margin-block: -12px; }
  .site-footer nav { gap: 20px; }
  .site-footer.doc-foot p { margin-bottom: 22px; }
  .header-tools .phone { padding-block: 10px; }
  /* the finish swatches as on a phone (they were 26-32 px here) */
  .sw { width: 40px; height: 40px; }
  .swatches { gap: 10px; }
}
/* ...and on the short ones the step buttons 44 px tall, the label kept mid-row (27.2 px line + 2 x 8.5 px: 8.4 px
   rounds to 43.97 px in the layout) */
@media (min-width: 1024px) and (max-height: 760px) and (pointer: coarse) {
  .step-btn { padding-block: 8.5px; }
}
@media (max-width: 767px) {
  :root { --m: 16px; --g: 16px; }
  body { font-size: 16px; }
  .notes-on .confirm:hover::after, .notes-on .confirm:focus::after { max-width: min(280px, calc(100vw - 32px)); }
  .lang-list { grid-template-columns: 1fr 1fr; gap: 2px 4px; }
  .lang-list :is(a, button) { padding: 6px 8px; gap: 8px; font-size: 14.5px; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 14px; }
  /* the header lies on the photo here too; the portrait cut (hero-m) keeps the counter and the red stools in frame */
  .hero-photo { height: 88svh; min-height: 500px; }
  .hero-img { object-position: 50% 60%; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(6, 16, 10, .45) 0%, rgba(6, 16, 10, .1) 18%, rgba(6, 16, 10, .55) 40%, rgba(6, 16, 10, .86) 100%); }
  .hero h1 { font-size: clamp(34px, 9.6vw, 42px); margin-bottom: 16px; }
  /* (2026-11-22) the section headings a step below the headline */
  .section-head h2, .arch-main > h2 { font-size: clamp(28px, 7.6vw, 32px); }
  :where(:root:not(:lang(lt)):not(:lang(en))) :is(.section-head h2, .arch-main > h2) { font-size: clamp(24px, 6.4vw, 28px); }
  :where(:root:not(:lang(lt)):not(:lang(en))) .hero h1 { font-size: clamp(28px, 7.8vw, 38px); }
  .hero-line { margin-bottom: 24px; }
  .seal { width: 92px; top: calc(var(--hh) + 14px); }
  @media (max-width: 359px) { .seal { width: 80px; top: calc(var(--hh) + 10px); } }
  .cta-row .btn { width: 100%; }
  .hero .cta-row .text-link { text-align: center; }
  .sub { font-size: 17px; }
  .section { padding: 64px 0 56px; }
  .section-head { margin-bottom: 32px; }
  .make > div { grid-template-columns: 1fr; gap: 2px; }
  .make > div:first-child dd { font-size: 18px; }
  .eiga { display: grid; gap: 4px; }
  .step-list { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .step + .step .step-btn { border-left: 0; }
  .step:first-child .step-btn { border-radius: 2px 0 0 2px; }
  .step:last-child .step-btn { border-radius: 0 2px 2px 0; }
  .step-btn { align-items: center; justify-content: center; padding: 0; border-radius: 0; }
  .step-btn .n { font-size: 14px; }
  .step-btn > span:not(.n) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .canvas-box { aspect-ratio: 4 / 3; }
  .stage-grid .model-switch { order: 3; margin: 8px 0; }
  .mobile-step-body { order: 4; }
  .jgrid-title { margin-top: 44px; }
  /* phones: the photo a little higher, the arrows at the bottom right, the counter beside them */
  .lightbox { max-width: 100vw; }
  /* room under the photo for a caption of up to three lines above the button row */
  .lightbox img { width: min(100vw, (100dvh - 270px) * var(--ar)); max-width: 100vw; max-height: calc(100dvh - 270px); }
  .lightbox .lb-nav { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); translate: none; }
  .lightbox .lb-prev { left: auto; right: 76px; }
  .lightbox .lb-count { bottom: calc(34px + env(safe-area-inset-bottom)); left: 16px; }
  .lb-cap { width: 100vw; padding: 0 16px; -webkit-line-clamp: 3; line-clamp: 3; }
  /* most phones are tall enough for a fourth line (the longest alts, de and fi) */
  @media (min-height: 700px) {
    .lightbox img { width: min(100vw, (100dvh - 290px) * var(--ar)); max-height: calc(100dvh - 290px); }
    .lb-cap { -webkit-line-clamp: 4; line-clamp: 4; }
  }
  /* a phone held sideways: the arrows back at the sides, the photo as tall as a two-line caption under it allows */
  @media (max-height: 520px) {
    .lightbox img { width: min(calc(100vw - 160px), (100dvh - 108px) * var(--ar)); max-width: calc(100vw - 160px); max-height: calc(100dvh - 108px); }
    .lightbox .lb-nav { top: 50%; bottom: auto; translate: 0 -50%; }
    .lightbox .lb-prev { left: 16px; right: auto; }
    .lightbox .lb-count { bottom: 24px; left: 24px; }
    .lb-cap { width: min(96ch, calc(100vw - 160px)); padding: 0; -webkit-line-clamp: 2; line-clamp: 2; }
  }
  .row2 { grid-template-columns: 1fr; }
  /* phones cannot drag files, and phase 1 attaches them in the mail program: the drop zone is one 52 px row with its
     hint under it, the submit button as wide as the form */
  .dropzone { padding: 0; border: 0; background: none; gap: 8px; }
  .dropzone:hover, .drop.over .dropzone { background: none; }
  .dz-title { display: flex; min-height: 52px; padding: 0 16px; border: 1px solid var(--ui-border); border-radius: 2px; background: var(--field); font-size: 16px; }
  .dz-hint, .dz-limit { font-size: 13px; line-height: 1.45; }
  .drop { margin-bottom: 22px; }
  .inq button[type=submit] { width: 100%; }
  /* the roles two by two (a long one wraps inside its cell), the fields closer, a shorter message box */
  .roles { display: grid; grid-template-columns: 1fr 1fr; }
  .roles legend { grid-column: 1 / -1; }
  /* (four roles since 2026-11-22: two rows of two, the corners rounded at the block's corners) */
  .roles label span { min-height: 52px; padding: 6px 10px; font-size: 14.5px; }
  .roles label:first-of-type span { border-radius: 2px 0 0 0; }
  .roles label:nth-of-type(2) span { border-radius: 0 2px 0 0; }
  .roles label:nth-of-type(3) span { border-radius: 0 0 0 2px; }
  .roles label:last-of-type span { border-radius: 0 0 2px 0; }
  .inq .field { margin-bottom: 14px; }
  .inq textarea { height: 104px; min-height: 96px; }
  .spec th { display: block; width: auto; padding-bottom: 2px; }
  .spec td { display: block; border-top: 0; padding-top: 0; }
}

/* phones held sideways: a short screen, so the headline shrinks and the 3D canvas fits under the steps */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 1023px) {
  .hero-photo { height: 100svh; min-height: 0; }
  .hero-over { padding-bottom: 20px; }
  .hero h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 10px; max-width: 15em; }
  .hero-line { margin-bottom: 14px; }
  .seal { width: 80px; top: calc(var(--hh) + 8px); }
  .canvas-box { aspect-ratio: auto; height: calc(100svh - 150px); min-height: 220px; }
  .model-switch button { min-height: 44px; padding: 6px 12px; }
  .step-btn { padding: 6px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
}
html.no-motion *, html.no-motion *::before, html.no-motion *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }

@media (max-width: 767px) {
  .dim text { font-size: 10.5px; }
}
/* the model stays in view while a finish is picked */
@media (max-width: 1023px) {
  .canvas-box[data-step="3"] { position: sticky; top: var(--hh); z-index: 3; background: var(--paper); }
  .canvas-box[data-step="3"] .disclaimer { background: var(--paper); margin: 0; padding: 6px var(--m) 8px; box-shadow: 0 1px 0 var(--line); }
  .sw { width: 40px; height: 40px; }
  .swatches { gap: 10px; }
}
/* (a phone: the canvas keeps the page margins since 2026-11-22, so the sticky disclaimer's text stays in line) */
@media (max-width: 767px) {
  .canvas-box[data-step="3"] .disclaimer { padding-inline: 0; }
}

/* ---------- AI assistant: a round button in the corner, the conversation opens above it ---------- */
.chat { --chat-b: 24px; position: fixed; right: 24px; bottom: calc(var(--chat-b) + env(safe-area-inset-bottom)); z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; transition: bottom .25s var(--ease); }
.chat svg { width: 22px; height: 22px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-launch { position: relative; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 10px 28px rgba(1, 54, 12, .3), 0 2px 6px rgba(1, 54, 12, .2); transition: background-color .16s var(--ease), transform .16s var(--ease); }
@media (hover: hover) { .chat-launch:hover { background: var(--brand-hover); transform: translateY(-2px); } }
.chat-launch svg { width: 26px; height: 26px; }
/* the light dot says the assistant is there to answer */
.chat-launch::after { content: ''; position: absolute; top: 5px; right: 5px; width: 10px; height: 10px; border-radius: 50%; background: #6FD08C; box-shadow: 0 0 0 2px var(--brand); }
.chat-launch[aria-expanded="true"]::after, .chat-launch .i-close, .chat-launch[aria-expanded="true"] .i-open { display: none; }
.chat-launch[aria-expanded="true"] .i-close { display: block; }
.chat-panel { width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100dvh - var(--hh) - var(--chat-b) - 84px - env(safe-area-inset-bottom))); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 4px; box-shadow: 0 24px 60px rgba(12, 32, 20, .24); animation: chat-in .22s var(--ease); }
@keyframes chat-in { from { opacity: 0; transform: translateY(10px); } }
.chat-head { --focus: var(--on-band); --note: #E3A64A; display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; background: var(--band); color: var(--on-band); border-radius: 3px 3px 0 0; }
.chat-mark { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-band); border-radius: 2px; font-size: 13px; font-weight: 500; }
.chat-id { flex: 1; min-width: 0; }
.chat-title { font-size: 15px; font-weight: 500; line-height: 1.25; }
.chat-sub { font-size: 12.5px; line-height: 1.35; color: var(--on-band-2); }
.notes-on .chat-sub .confirm:hover::after, .notes-on .chat-sub .confirm:focus::after { max-width: 300px; }
.chat-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; background: none; border: 1px solid transparent; border-radius: 2px; color: inherit; cursor: pointer; transition: border-color .16s, background-color .16s, color .16s; }
@media (hover: hover) { .chat-head .chat-icon:hover { border-color: var(--line-band); } }
#chatVoice[aria-pressed="false"] { color: var(--on-band-2); }
#chatVoice[aria-pressed="false"] .on, #chatVoice[aria-pressed="true"] .off { display: none; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 88%; padding: 9px 12px; border-radius: 4px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.bot { align-self: flex-start; background: var(--field); border: 1px solid var(--line); }
.chat-msg.user { align-self: flex-end; background: var(--ink); color: var(--paper); }
.chat-msg.wait { color: var(--ink-2); }
.chat-msg.err { color: var(--error); border-color: currentColor; }
/* a reply written by a KRIOLIS person through the operator bridge */
.chat-msg.op { box-shadow: inset 3px 0 0 var(--brand); }
/* who wrote the message, as text: KRIOLIS AI or the KRIOLIS team (human) */
.chat-who { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: .02em; color: var(--ink-2); }
.chat-msg.op .chat-who { color: var(--brand); }
.chat-msg.sys { align-self: center; max-width: 100%; padding: 2px 8px; font-size: 13px; color: var(--ink-2); text-align: center; }
.chat-note { margin: 0 14px 12px; padding: 12px; border: 1px solid var(--ui-border); border-radius: 2px; background: var(--field); display: grid; gap: 10px; justify-items: start; }
.chat-note p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink); }
.chat-note-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 12px; }
.chat-quick button { min-height: 44px; padding: 7px 12px; background: none; border: 1px solid var(--ui-border); border-radius: 2px; font-size: 14px; line-height: 1.3; text-align: left; cursor: pointer; transition: background-color .16s; }
@media (hover: hover) { .chat-quick button:hover { background: rgba(17, 26, 21, .06); } }
.chat-form { display: flex; gap: 8px; padding: 12px 14px 8px; border-top: 1px solid var(--line); }
.chat-form .chat-icon { border-color: var(--ui-border); }
@media (hover: hover) { .chat-form .chat-icon:hover { background: rgba(17, 26, 21, .06); } }
.chat-mic[aria-pressed="true"], .chat-mic[aria-pressed="true"]:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chat-input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; font: inherit; font-size: 16px; border: 1px solid var(--ui-border); border-radius: 2px; background: var(--field); color: var(--ink); }
.chat-input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.chat-send { flex: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; background: var(--brand); color: #fff; border: 0; border-radius: 2px; cursor: pointer; transition: background-color .16s var(--ease); }
@media (hover: hover) { .chat-send:hover { background: var(--brand-hover); } }
.chat-foot { padding: 0 14px 12px; font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.chat-foot a { color: var(--ink); text-underline-offset: 2px; }
/* the footer's last line stays clear of the round button */
.site-footer { padding-bottom: 104px; }
@media (max-width: 1023px) {
  /* above the call / send-a-drawing bar while it is shown */
  .mobile-bar.show ~ .chat { --chat-b: 72px; }
  .site-footer { padding-bottom: 152px; }
}
@media (max-width: 767px) {
  .chat { --chat-b: 16px; right: 16px; }
  .mobile-bar.show ~ .chat { --chat-b: 72px; }
  /* the conversation as a full-screen sheet above everything (its own close button; the corner button waits) */
  .chat:has(.chat-panel:not([hidden])) { z-index: 60; }
  .chat-panel { position: fixed; inset: 0; width: 100%; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .chat-head { border-radius: 0; padding-top: calc(10px + env(safe-area-inset-top)); }
  .chat-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .chat-launch[aria-expanded="true"] { display: none; }
  /* the page behind the full-screen chat stays still: the lock on <html>, as for the menu (html and body clip
     sideways, so a lock on body never reached the page: WebKit sweep, 2026-11-01) */
  html.chat-modal { overflow: hidden; }
}
/* the round button gives way while the form's Send button is under it (main.js); the corner's box itself never takes a
   tap, only the button and the panel in it do */
.chat { pointer-events: none; }
.chat > * { pointer-events: auto; }
.chat.clear-send .chat-launch { visibility: hidden; }
/* the title takes the focus by script only (tabindex=-1, touch screens): no ring, which WebKit drew across the line
   under it (bughunt INT-2) */
.chat-title:focus { outline: none; }
@media (forced-colors: active) { .chat-launch, .chat-send, .chat-panel { border: 1px solid CanvasText; } }

/* ---------- legal and helper pages (privacy policy, data deletion, 404), written by build_prod.py ---------- */
.doc-head { border-bottom: 1px solid var(--line); }
.doc-head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--hh); }
.doc-home { font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.doc { max-width: 820px; margin: 0 auto; padding: 56px var(--m) 96px; overflow-wrap: anywhere; }
.doc h1 { font-size: clamp(32px, 3vw, 44px); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 16px; }
.doc h2 { font-size: 24px; line-height: 1.25; margin: 48px 0 12px; scroll-margin-top: 16px; }
.doc h3 { font-size: 19px; line-height: 1.3; margin: 32px 0 8px; scroll-margin-top: 16px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 6px; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc code { font: 400 .9em var(--mono); background: var(--paper-2); padding: 1px 4px; border-radius: 2px; }
.doc-table { overflow-x: auto; margin: 0 0 18px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; overflow-wrap: break-word; }
.doc td code { overflow-wrap: anywhere; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-top: 1px solid var(--line); }
.doc th { font-weight: 600; border-top-color: var(--ink); }
.doc-toc { margin: 32px 0; padding: 16px 20px; border: 1px solid var(--line-strong); border-radius: 2px; }
.doc-toc h2 { margin: 0 0 8px; font-size: 17px; }
.doc-toc ul { list-style: none; padding: 0; margin: 0; }
.doc-draft { margin: 0 0 32px; padding: 14px 16px; border: 2px solid var(--note); border-radius: 2px; background: #FFF6E6; color: #4A2C00; }
.doc-mark { background: #FBE3B5; color: #4A2C00; padding: 0 2px; }
.doc-foot { padding: 40px 0 48px; }
.doc-foot p { font-size: 14px; margin-bottom: 8px; }
/* the e-mail and phone links inside the address line: told apart from the text by more than colour (WCAG 1.4.1) */
.site-footer.doc-foot p a { text-decoration: underline; text-underline-offset: 3px; }
.nf-langs { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px 16px; }
.nf-langs a { display: inline-block; padding: 6px 0; }
/* touch screens and phones, as on the main page: the 404 page's language links and the doc pages' home link 44 px tall
   (WebKit sweep, 2026-11-01) */
@media (max-width: 1023px), (pointer: coarse) {
  .doc-home { padding-block: 10px; }
  .nf-langs a { padding-block: 9.5px; }
}
@media (max-width: 767px) { .doc { padding-top: 32px; padding-bottom: 64px; } }
