/* SHOPART - „Ant jūsų sienos“. Signature: tikras mastelis (visi darbai rodomi vienu cm masteliu). */
@view-transition { navigation: auto; }

:root {
  --wall: #ECE7DF;
  --wall-2: #E3DDD3;
  --ink: #1C1B18;
  --muted: #5B564E;
  --soft: #8A8378;
  --red: #A8321F;
  --linen-1: #D6CDBE;
  --linen-2: #CDC3B2;
  --linen-3: #DCD4C7;
  --linen-4: #C9BFAE;
  --tag: #4D463C;
  --serif: "Ibarra Real Nova", Georgia, serif;
  --sans: "Chivo", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 4.2vw, 64px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .3, 1);
  --mv: 1;
  --hdr: 72px;
}
@media (prefers-reduced-motion: reduce) { :root { --mv: .25; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--wall); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--wall); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--wall); padding: 12px 16px; }
.skip:focus { top: 12px; }

/* ---------- tipografija ---------- */
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.display, h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: 0; }
h1 { font-size: clamp(52px, 8.6vw, 140px); line-height: 1.1; }
h2 { font-size: clamp(40px, 5.6vw, 88px); line-height: 1.1; }
h3 { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.12; }
em { font-style: italic; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--ink); max-width: 34ch; }
.small { font-size: 14px; color: var(--muted); }

/* eilutės iš po kaukės */
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: block; transform: translateY(calc(108% * var(--mv))); transition: transform 1000ms var(--ease); }
.in .ln > span, .ln.in > span { transform: none; }
.in .ln:nth-child(2) > span { transition-delay: 90ms; }
.in .ln:nth-child(3) > span { transition-delay: 180ms; }

/* ---------- mygtukai (aštrūs, kaip rėmai) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; font-size: 15px; font-weight: 500; letter-spacing: .02em;
  border: 1px solid var(--ink); position: relative; overflow: hidden; isolation: isolate;
  transition: color 450ms var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform 450ms var(--ease); }
.btn:hover::before { transform: scaleY(1); }
.btn:hover { color: var(--wall); }
.btn--solid { background: var(--ink); color: var(--wall); }
.btn--solid::before { background: #3A372F; }
.btn--wide { width: 100%; }
.link { position: relative; font-weight: 500; font-size: 15px; padding: 6px 0; display: inline-block; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform-origin: right; transition: transform 500ms var(--ease); }
.link:hover::after { transform: scaleX(0); }

/* ---------- antraštė ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--hdr);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--pad);
  background: transparent; transition: background 400ms var(--ease), transform 500ms var(--ease);
  view-transition-name: hdr;
}
.hdr.is-solid { background: var(--wall); }
.hdr.is-hidden { transform: translateY(-100%); }
.mark { font-family: var(--sans); font-weight: 800; font-size: 17px; letter-spacing: .16em; text-transform: uppercase; display: flex; align-items: baseline; gap: 2px; white-space: nowrap; }
.mark small { font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--muted); }
.nav { display: flex; gap: 34px; font-size: 15px; }
.nav a { position: relative; padding: 8px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 450ms var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.hdr-r { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.cart-btn { min-height: 44px; display: inline-flex; align-items: center; white-space: pre; }
.cart-btn b { font-weight: 500; display: inline-block; min-width: 1ch; transition: transform 500ms var(--ease); }
.cart-btn.bump b { transform: translateY(calc(-5px * var(--mv))); }
.menu-btn { display: none; min-height: 44px; min-width: 44px; }

@media (max-width: 900px) {
  :root { --hdr: 62px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: flex-end; }
}

/* mobilus meniu */
.sheet {
  position: fixed; inset: 0; z-index: 60; background: var(--wall);
  display: flex; flex-direction: column; padding: calc(var(--hdr) + 24px) var(--pad) 32px;
  visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path 700ms var(--ease-io), visibility 0s linear 700ms;
}
.sheet.open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path 700ms var(--ease-io), visibility 0s; }
.sheet-close { position: absolute; top: 9px; right: var(--pad); min-height: 44px; min-width: 44px; font-size: 15px; display: inline-flex; align-items: center; justify-content: flex-end; }
.sheet nav { display: flex; flex-direction: column; gap: 6px; }
.sheet nav a { font-family: var(--serif); font-size: 44px; line-height: 1.12; padding: 6px 0; }
.sheet nav a span { display: block; transform: translateY(calc(30px * var(--mv))); opacity: 0; transition: transform 800ms var(--ease), opacity 800ms var(--ease); }
.sheet.open nav a span { transform: none; opacity: 1; }
.sheet.open nav a:nth-child(2) span { transition-delay: 60ms; }
.sheet.open nav a:nth-child(3) span { transition-delay: 120ms; }
.sheet.open nav a:nth-child(4) span { transition-delay: 180ms; }
.sheet-foot { margin-top: auto; display: grid; gap: 6px; font-size: 16px; }
.sheet-foot a { padding: 8px 0; }

/* ---------- drobė (vietos žymė vietoje nuotraukos) ---------- */
.cv {
  --tone: var(--linen-1);
  position: relative; background: var(--tone); overflow: hidden;
  box-shadow: 0 1px 0 rgba(28, 24, 18, .10), 0 2px 5px -2px rgba(28, 24, 18, .14), 0 26px 30px -24px rgba(28, 24, 18, .42);
  display: grid; place-items: center; text-align: center;
}
.cv::before { /* drobės pynimas */
  content: ""; position: absolute; inset: 0; opacity: .55; mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .40 0 0 0 0 .33 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cv::after { /* porėmio gylis */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset -2px -2px 0 rgba(28, 24, 18, .07), inset 1px 1px 0 rgba(255, 255, 255, .25);
}
.cv[data-tone="2"] { --tone: var(--linen-2); }
.cv[data-tone="3"] { --tone: var(--linen-3); }
.cv[data-tone="4"] { --tone: var(--linen-4); }
.cv-tag { position: relative; z-index: 1; font-size: 13px; line-height: 1.45; color: var(--tag); letter-spacing: .02em; padding: 8px; }
.cv-tag b { display: block; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.cv--tiny .cv-tag { display: none; }

/* pakabinimas: darbas „užkabinamas“ ant vinies ir nusistovi */
@keyframes hang {
  0% { opacity: 0; transform: translateY(calc(-26px * var(--mv))) rotate(calc(-1.4deg * var(--mv))); }
  45% { opacity: 1; }
  62% { transform: translateY(calc(2px * var(--mv))) rotate(calc(.45deg * var(--mv))); }
  82% { transform: translateY(0) rotate(calc(-.15deg * var(--mv))); }
  100% { opacity: 1; transform: none; }
}
.hang { opacity: 0; transform-origin: 50% -6%; }
.in .hang, .hang.in { animation: hang 1150ms var(--ease) both; animation-delay: var(--d, 0ms); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh; padding: calc(var(--hdr) + clamp(24px, 5vh, 64px)) var(--pad) clamp(20px, 3.5vh, 40px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr auto auto; column-gap: 24px;
}
.hero h1 { font-size: clamp(52px, 7.2vw, 116px); }
.hero-h { grid-column: 1 / 6; grid-row: 1; align-self: end; }
.hero-h .eyebrow { margin-bottom: 22px; }
.hero-txt { grid-column: 1 / 6; grid-row: 2; display: grid; gap: 28px; padding-top: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-scene { grid-column: 6 / 13; grid-row: 1 / 3; align-self: end; padding-left: clamp(0px, 3vw, 48px); padding-bottom: 30px; }
.hero-foot { grid-column: 1 / 13; grid-row: 3; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--muted); padding-top: 34px; }
.hero-foot span { white-space: nowrap; }
.hero-foot span + span::before { content: "·"; margin-right: 28px; color: var(--soft); }
.hero .eyebrow, .hero-txt, .hero-foot { opacity: 0; transform: translateY(calc(14px * var(--mv))); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.hero.in .eyebrow { opacity: 1; transform: none; }
.hero.in .hero-txt { opacity: 1; transform: none; transition-delay: 450ms; }
.hero.in .hero-foot { opacity: 1; transform: none; transition-delay: 700ms; }

@media (max-width: 1100px) {
  .hero { grid-template-rows: auto auto auto auto; }
  .hero-h { grid-column: 1 / -1; align-self: start; }
  .hero-scene { grid-column: 1 / -1; grid-row: 2; margin-top: 40px; padding: 0 0 34px; }
  .hero-txt { grid-column: 1 / -1; grid-row: 3; padding-top: 8px; }
  .hero-foot { grid-row: 4; }
}
@media (max-width: 640px) {
  .hero-txt { grid-row: 2; padding-top: 26px; gap: 24px; }
  .hero-scene { grid-row: 3; margin-top: 56px; }
  .hero-foot { flex-direction: column; gap: 4px; }
  .hero-foot span + span::before { content: none; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ---------- scena: siena, sofa, darbas tikru masteliu ---------- */
/* koordinatės cm: scena 300 x 240 cm, grindys apačioje. 1 cm = var(--k) */
.scene { container-type: inline-size; }
.scene-in { --k: calc(100cqw / 300); position: relative; height: calc(240 * var(--k)); }
.scene .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); opacity: .35; }
.scene .sofa { position: absolute; left: calc(40 * var(--k)); bottom: 0; width: calc(220 * var(--k)); height: calc(84 * var(--k)); }
.sofa path, .sofa rect, .sofa line { fill: var(--wall); stroke: var(--ink); stroke-opacity: .62; stroke-width: 1.3; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.scene .art { position: absolute; width: calc(var(--w) * var(--k)); height: calc(var(--h) * var(--k)); left: calc((150 - var(--w) / 2) * var(--k)); bottom: calc(106 * var(--k)); }
.scene .cap { position: absolute; font-size: 13px; color: var(--muted); white-space: nowrap; }
.scene .cap--sofa { left: calc(40 * var(--k)); bottom: calc(-30px); }

/* matmenų linija */
.dim { position: absolute; color: var(--ink); font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.dim i { position: absolute; background: currentColor; opacity: .6; }
.dim--w { height: 12px; }
.dim--w i { left: 0; right: 0; top: 50%; height: 1px; transform: scaleX(0); transition: transform 900ms var(--ease) var(--dd, 0ms); }
.dim--w::before, .dim--w::after { content: ""; position: absolute; top: 0; width: 1px; height: 12px; background: currentColor; opacity: .6; }
.dim--w::before { left: 0; } .dim--w::after { right: 0; }
.dim--w b { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; font-weight: 500; opacity: 0; transition: opacity 600ms var(--ease) calc(var(--dd, 0ms) + 400ms); }
.dim--h { width: 12px; }
.dim--h i { top: 0; bottom: 0; left: 50%; width: 1px; transform: scaleY(0); transition: transform 900ms var(--ease) var(--dd, 0ms); }
.dim--h::before, .dim--h::after { content: ""; position: absolute; left: 0; height: 1px; width: 12px; background: currentColor; opacity: .6; }
.dim--h::before { top: 0; } .dim--h::after { bottom: 0; }
.dim--h b { position: absolute; top: 50%; left: 18px; transform: translateY(-50%); white-space: nowrap; font-weight: 500; opacity: 0; transition: opacity 600ms var(--ease) calc(var(--dd, 0ms) + 400ms); }
.in .dim i, .dim.in i { transform: none; }
.in .dim b, .dim.in b { opacity: 1; }
.scene .dim--w { left: calc((150 - var(--w) / 2) * var(--k)); width: calc(var(--w) * var(--k)); bottom: calc((106 + var(--h)) * var(--k) + 14px); }
.scene .dim--h { left: calc((150 + var(--w) / 2) * var(--k) + 14px); height: calc(var(--h) * var(--k)); bottom: calc(106 * var(--k)); }
.scene .sofa, .scene .floor, .scene .cap { opacity: 0; transform: translateY(calc(10px * var(--mv))); transition: opacity 900ms var(--ease) 200ms, transform 900ms var(--ease) 200ms; }
.scene.in .sofa, .scene.in .floor, .scene.in .cap { opacity: 1; transform: none; }
.scene.in .floor { opacity: .35; }

/* ---------- sekcijos ---------- */
.sec { padding: clamp(88px, 13vw, 200px) var(--pad); }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 22px; align-items: end; margin-bottom: clamp(48px, 6vw, 96px); }
.sec-head > .eyebrow { grid-column: 1 / -1; }
.sec-head h2 { grid-column: 1 / 8; }
.sec-head .sec-side { grid-column: 9 / 13; display: grid; gap: 18px; justify-items: start; }
@media (max-width: 900px) {
  .sec-head h2, .sec-head .sec-side { grid-column: 1 / -1; }
}

/* ---------- ekspozicijos siena (signature) ---------- */
.wall { container-type: inline-size; position: relative; --k: calc(100cqw / 470); }
.wall--4 { --k: calc(100cqw / 520); }
.wall-in { display: flex; flex-direction: column; row-gap: 130px; padding-bottom: 110px; }
.row { display: flex; justify-content: center; align-items: center; column-gap: calc(34 * var(--k)); }
.piece { position: relative; width: calc(var(--w) * var(--k)); height: calc(var(--h) * var(--k)); }
.piece > a { display: block; width: 100%; height: 100%; }
.piece .cv { width: 100%; height: 100%; transition: transform 700ms var(--ease), box-shadow 700ms var(--ease); }
.piece:hover .cv { transform: translateY(calc(-5px * var(--mv))); box-shadow: 0 1px 0 rgba(28, 24, 18, .10), 0 4px 8px -3px rgba(28, 24, 18, .16), 0 40px 40px -30px rgba(28, 24, 18, .5); }
.label { position: absolute; left: 0; top: calc(100% + 16px); width: calc(100% + 28 * var(--k)); display: grid; gap: 2px; }
.label-t { font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.label-t a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 500ms var(--ease); }
.piece:hover .label-t a, .label-t a:focus-visible { background-size: 100% 1px; }
.label-m { font-size: 14px; color: var(--muted); }
.label-p { font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.sold-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); display: inline-block; }
.label-p.is-sold { color: var(--muted); font-weight: 400; }
.scale { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.scale i { display: block; height: 7px; width: calc(100 * var(--k)); border: 1px solid var(--ink); border-top: 0; opacity: .6; }
.wall-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }

@media (max-width: 700px) {
  .wall, .wall--4 { --k: calc(100cqw * .86 / 110); }
  .wall-in { align-items: center; row-gap: 48px; padding-bottom: 0; }
  .row { display: contents; }
  .label { position: static; width: auto; margin-top: 16px; }
  .piece { height: auto; }
  .piece > a { height: calc(var(--h) * var(--k)); }
}

/* tinklelio vaizdas */
.wall.is-grid .row { display: contents; }
.wall.is-grid .wall-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 40px); row-gap: 56px; align-items: start; padding-bottom: 0; }
.wall.is-grid .piece { width: auto; height: auto; }
.wall.is-grid .piece > a { aspect-ratio: 1; display: grid; place-items: center; background: var(--wall-2); padding: 12%; height: auto; }
.wall.is-grid .piece .cv { width: auto; height: auto; aspect-ratio: var(--w) / var(--h); max-width: 100%; max-height: 100%; }
.wall.is-grid .piece .cv[data-orient="p"] { height: 100%; } .wall.is-grid .piece .cv[data-orient="l"] { width: 100%; }
.wall.is-grid .label { position: static; width: auto; margin-top: 14px; }
@media (max-width: 700px) { .wall.is-grid .wall-in { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } .wall.is-grid .label-t { font-size: 18px; } }

.piece.rv { opacity: 0; }
.piece.rv.in { opacity: 1; }
.piece.rv.in .cv { animation: hang 1150ms var(--ease) both; animation-delay: var(--d, 0ms); transform-origin: 50% -6%; }
.piece.rv .label { opacity: 0; transform: translateY(calc(10px * var(--mv))); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.piece.rv.in .label { opacity: 1; transform: none; transition-delay: calc(var(--d, 0ms) + 350ms); }

/* ---------- pareiškimas: užsipildo slenkant ---------- */
.state { padding: clamp(96px, 14vw, 220px) var(--pad); }
.state p { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 72px); line-height: 1.12; max-width: 22ch; text-wrap: balance; }
.state .w { color: var(--ink); }
@supports (animation-timeline: view()) {
  .state .w { color: #B9B1A5; animation: ink linear both; animation-timeline: view(); animation-range: cover 18% cover 48%; }
  @keyframes ink { to { color: var(--ink); } }
}
.state .w--red { display: inline-flex; align-items: center; gap: .18em; }
.state .w--red .sold-dot { width: .32em; height: .32em; }

/* ---------- pirkimas ---------- */
.buy { background: var(--wall-2); }
.facts { display: grid; gap: clamp(28px, 3vw, 44px); max-width: 1100px; }
.fact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 24px; row-gap: 6px; align-items: baseline; }
.fact h3 { font-size: clamp(26px, 2.6vw, 40px); }
.fact p { font-size: clamp(17px, 1.3vw, 19px); max-width: 46ch; }
.fact p a { border-bottom: 1px solid currentColor; }
@media (max-width: 700px) { .fact { grid-template-columns: 1fr; } }
.rv-up { opacity: 0; transform: translateY(calc(22px * var(--mv))); transition: opacity 900ms var(--ease), transform 900ms var(--ease); transition-delay: var(--d, 0ms); }
.rv-up.in { opacity: 1; transform: none; }

/* ---------- autorius (vietos žymė) ---------- */
.author { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: end; }
.author .cv { grid-column: 1 / 5; aspect-ratio: 3 / 4; }
.author-txt { grid-column: 6 / 12; display: grid; gap: 22px; }
.author-txt .note { font-size: 15px; color: var(--muted); max-width: 44ch; }
.clip { clip-path: inset(0 0 calc(100% * var(--mv)) 0); transition: clip-path 1200ms var(--ease-io); }
.clip.in, .in > .clip { clip-path: inset(0 0 0 0); }
@media (max-width: 800px) { .author .cv, .author-txt { grid-column: 1 / -1; } .author .cv { max-width: 380px; } }

/* ---------- kontaktai + poraštė ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.contact h2 { grid-column: 1 / 8; }
.contact-list { grid-column: 9 / 13; display: grid; gap: 22px; align-content: end; font-size: 17px; }
.contact-list a { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; display: inline-block; padding: 2px 0; }
.contact-list a span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size 500ms var(--ease); }
.contact-list a:hover span { background-size: 0 1px; background-position: 100% 100%; }
@media (max-width: 900px) { .contact h2, .contact-list { grid-column: 1 / -1; } }

.foot { padding: clamp(64px, 8vw, 120px) var(--pad) 20px; }
.foot-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; font-size: 15px; }
.foot-cols div { display: grid; gap: 6px; align-content: start; }
.foot-cols div:nth-child(1) { grid-column: 1 / 4; } .foot-cols div:nth-child(2) { grid-column: 5 / 8; } .foot-cols div:nth-child(3) { grid-column: 9 / 13; }
.foot-cols b { font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.foot-cols a { padding: 3px 0; width: fit-content; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .foot-cols div:nth-child(n) { grid-column: 1 / -1; } }
.wordmark { margin-top: clamp(56px, 8vw, 120px); font-family: var(--sans); font-weight: 800; line-height: .86; text-transform: uppercase; white-space: nowrap; font-size: 17vw; letter-spacing: .02em; overflow: visible; }
.wordmark span { display: inline-block; transform: translateY(calc(40% * var(--mv))); opacity: 0; transition: transform 1100ms var(--ease), opacity 1100ms var(--ease); }
.wordmark.in span { transform: none; opacity: 1; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--muted); padding-top: 22px; }

/* ---------- kolekcija ---------- */
.page-top { padding: calc(var(--hdr) + clamp(40px, 7vw, 110px)) var(--pad) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; align-items: end; }
.page-top h1 { grid-column: 1 / 8; }
.page-top h1 sup { font-family: var(--sans); font-size: 18px; font-weight: 500; vertical-align: top; position: relative; top: .7em; margin-left: .3em; color: var(--muted); }
.page-top .page-side { grid-column: 9 / 13; display: grid; gap: 14px; }
@media (max-width: 900px) { .page-top h1, .page-top .page-side { grid-column: 1 / -1; } }
.proto-note { font-size: 14px; color: var(--muted); border-left: 2px solid var(--soft); padding-left: 12px; }

.tools { position: sticky; top: var(--hdr); z-index: 20; background: var(--wall); margin-top: clamp(40px, 5vw, 72px); padding: 14px var(--pad); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; transition: transform 500ms var(--ease); }
.hdr.is-hidden ~ main .tools { transform: translateY(calc(-1 * var(--hdr))); }
.fgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 15px; }
.fgroup > span { color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-right: 4px; }
.opt { min-height: 44px; padding: 0 2px; position: relative; color: var(--muted); transition: color 300ms var(--ease); }
.opt::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 450ms var(--ease); }
.opt:hover { color: var(--ink); }
.opt[aria-pressed="true"] { color: var(--ink); }
.opt[aria-pressed="true"]::after { transform: scaleX(1); }
.tools-r { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.count { font-size: 14px; color: var(--muted); }
.f-open { display: none; min-height: 44px; font-weight: 500; }
.wall-wrap { padding: clamp(56px, 7vw, 110px) var(--pad) clamp(80px, 10vw, 160px); }
.empty { text-align: center; padding: 80px 0; display: grid; gap: 18px; justify-items: center; }
.empty[hidden] { display: none; }

@media (max-width: 900px) {
  .tools .fgroup { display: none; }
  .f-open { display: inline-flex; align-items: center; }
  .tools-r { margin-left: 0; width: 100%; justify-content: space-between; }
}
/* filtrų lapas telefone */
.fsheet { position: fixed; inset: auto 0 0 0; z-index: 70; background: var(--wall); padding: 22px var(--pad) calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 22px; max-height: 86svh; overflow: auto; transform: translateY(105%); visibility: hidden; transition: transform 650ms var(--ease), visibility 0s linear 650ms; box-shadow: 0 -20px 40px -20px rgba(28, 24, 18, .3); }
.fsheet.open { transform: none; visibility: visible; transition: transform 650ms var(--ease), visibility 0s; }
.fsheet .fgroup { display: grid; gap: 2px; }
.fsheet .fgroup > span { margin-bottom: 4px; }
.fsheet .opt { text-align: left; font-size: 17px; min-height: 46px; }
.fsheet .opt::after { right: auto; width: 100%; max-width: max-content; }
.fsheet-top { display: flex; justify-content: space-between; align-items: center; }
.fsheet-top h2 { font-size: 34px; }
.scrim { position: fixed; inset: 0; z-index: 65; background: rgba(28, 24, 18, .32); opacity: 0; visibility: hidden; transition: opacity 500ms var(--ease), visibility 0s linear 500ms; }
.scrim.open { opacity: 1; visibility: visible; transition: opacity 500ms var(--ease), visibility 0s; }

/* ---------- darbo puslapis ---------- */
.work { padding: calc(var(--hdr) + 28px) var(--pad) clamp(64px, 8vw, 120px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 36px; }
.crumbs { grid-column: 1 / -1; font-size: 14px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { color: var(--ink); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.stage-col { grid-column: 1 / 8; position: relative; }
.info { grid-column: 9 / 13; display: grid; gap: 26px; align-content: start; position: sticky; top: calc(var(--hdr) + 24px); align-self: start; }
@media (max-width: 1000px) { .stage-col, .info { grid-column: 1 / -1; } .info { position: static; } }

.stage { container-type: inline-size; position: relative; background: var(--wall-2); }
.stage-in { --k: calc(100cqw / 300); --sh: 84; position: relative; height: calc(var(--sh) * 1cqw); overflow: hidden; }
@media (max-width: 700px) { .stage-in { --sh: 96; } }
.stage .art {
  --fit: min(calc(76cqw / var(--w)), calc(var(--sh) * .7cqw / var(--h)));
  position: absolute; width: calc(var(--w) * var(--fit)); height: calc(var(--h) * var(--fit));
  left: calc(50cqw - var(--w) * var(--fit) / 2); top: calc(var(--sh) * .5cqw - var(--h) * var(--fit) / 2);
  transform-origin: 50% 50%; transition: transform 1100ms var(--ease-io); will-change: transform;
}
.stage .art .cv { width: 100%; height: 100%; }
.stage .floor { position: absolute; left: 0; right: 0; bottom: calc(6 * var(--k)); height: 1px; background: var(--ink); opacity: 0; transition: opacity 700ms var(--ease); }
.stage .sofa { position: absolute; left: calc(40 * var(--k)); bottom: calc(6 * var(--k)); width: calc(220 * var(--k)); height: calc(84 * var(--k)); opacity: 0; transform: translateY(calc(18px * var(--mv))); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.stage .dim--w { left: calc((150 - var(--w) / 2) * var(--k)); width: calc(var(--w) * var(--k)); bottom: calc((112 + var(--h)) * var(--k) + 12px); opacity: 0; transition: opacity 400ms var(--ease); }
.stage .dim--h { left: calc((150 + var(--w) / 2) * var(--k) + 14px); height: calc(var(--h) * var(--k)); bottom: calc(112 * var(--k)); opacity: 0; transition: opacity 400ms var(--ease); }
.stage.v-wall .sofa { opacity: 1; transform: none; transition-delay: 350ms; }
.stage.v-wall .floor { opacity: .35; transition-delay: 350ms; }
.stage.v-wall .dim { opacity: 1; transition-delay: 700ms; }
.stage.v-wall .dim i { transform: none; }
.stage.v-wall .dim b { opacity: 1; }
.stage .art .cv-tag { transition: opacity 400ms var(--ease); }
.stage.v-wall .art .cv-tag { opacity: 0; }
.detail { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; clip-path: inset(100% 0 0 0); transition: clip-path 1000ms var(--ease-io); }
.detail .cv { position: absolute; inset: 0; box-shadow: none; }
.detail .cv::before { background-size: 520px 520px; opacity: .8; }
.stage.v-near .detail { clip-path: inset(0 0 0 0); }
.views-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; margin-top: 10px; }
.views { display: flex; gap: 26px; }
.views-note { font-size: 14px; color: var(--muted); opacity: 0; transition: opacity 600ms var(--ease); }
.views-note.show { opacity: 1; transition-delay: 700ms; }
.views .opt { font-size: 15px; }

.info-top { display: grid; gap: 14px; }
.info h1 { font-size: clamp(40px, 4.2vw, 64px); line-height: 1.1; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; margin: 0; font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price strong { font-size: 30px; font-weight: 500; letter-spacing: .01em; }
.price span { font-size: 14px; color: var(--muted); }
.status { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.status .ok { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-block; }
.actions { display: grid; gap: 10px; }
.ship { display: grid; gap: 10px; font-size: 15px; padding-top: 4px; }
.ship p { display: grid; grid-template-columns: 110px 1fr; gap: 14px; }
.ship p span:first-child { color: var(--muted); }
.desc { font-size: 16px; color: var(--muted); max-width: 48ch; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.buybar { display: none; }
@media (max-width: 1000px) {
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--wall); padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); gap: 16px; align-items: center; justify-content: space-between; box-shadow: 0 -12px 30px -18px rgba(28, 24, 18, .35); transform: translateY(110%); transition: transform 600ms var(--ease); }
  .buybar.show { transform: none; }
  .buybar strong { font-size: 20px; font-weight: 500; }
  .buybar .btn { min-height: 50px; flex: 0 0 auto; padding: 0 30px; }
  .buybar small { display: block; font-size: 13px; color: var(--muted); max-width: 22ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

.more { padding: clamp(40px, 6vw, 96px) var(--pad) clamp(80px, 10vw, 160px); }
.more .sec-head { margin-bottom: clamp(48px, 5vw, 80px); }

/* klausti / krepšelis: šoniniai skydeliai */
.panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(460px, 100%); background: var(--wall); padding: 22px var(--pad) 28px; display: flex; flex-direction: column; gap: 24px; transform: translateX(104%); visibility: hidden; transition: transform 700ms var(--ease-io), visibility 0s linear 700ms; box-shadow: -30px 0 60px -40px rgba(28, 24, 18, .5); }
.panel.open { transform: none; visibility: visible; transition: transform 700ms var(--ease-io), visibility 0s; }
.panel-top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.panel-top h2 { font-size: 34px; }
.panel .x { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: flex-end; font-size: 15px; }
.cart-list { display: grid; gap: 22px; overflow: auto; }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; }
.cart-item .cv { width: 76px; }
.cart-item b { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.2; display: block; }
.cart-item small { color: var(--muted); font-size: 14px; }
.cart-item button { min-height: 44px; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.cart-sum { margin-top: auto; display: grid; gap: 14px; }
.cart-sum p { display: flex; justify-content: space-between; font-size: 16px; }
.cart-sum p strong { font-weight: 500; font-size: 20px; }
.cart-empty { color: var(--muted); }
.ask-list { display: grid; gap: 18px; }
.ask-list a { display: grid; gap: 2px; padding: 16px 0; }
.ask-list a small { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ask-list a span { font-family: var(--serif); font-size: 28px; line-height: 1.2; }
.ask-list a:hover span { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; background: var(--ink); color: var(--wall); padding: 14px 20px; font-size: 15px; max-width: calc(100% - 32px); transition: transform 600ms var(--ease), visibility 0s linear 600ms; }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform 600ms var(--ease), visibility 0s; }

/* puslapių perėjimai (View Transitions) */
::view-transition-group(art) { animation-duration: 900ms; animation-timing-function: cubic-bezier(.7, 0, .3, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 600ms; }
body.lock { overflow: hidden; }
.row .piece:last-child .label { width: 100%; }
