/*
 * Tilo – art gallery template · Abedev (abedev.com)
 *
 * Design: a white cube – warm white walls, ink black, one ultramarine, a classic book serif with its italic for titles
 * of works over a quiet grotesque. No rounded corners, wall labels like in a museum, works hanging with a soft shadow
 * and every picture drawn by the site itself from its style and colours. The language switch is a small hang of framed
 * pictures with the flags behind a passe-partout – the one in use has its own spotlight. On phones the menu is a white
 * wall with every page as a wall label. All motion stops with "reduce motion".
 */
@font-face { font-family: "Tilo Head"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tilo Head"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/eb-garamond-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Tilo Head"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/eb-garamond-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Tilo Head"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/noto-serif-georgian-georgian-500-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Tilo Head"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tilo Head"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/eb-garamond-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Tilo Head"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/eb-garamond-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Tilo Head"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/noto-serif-georgian-georgian-500-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Tilo Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/geist-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tilo Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/geist-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Tilo Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/geist-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Tilo Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-400-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Tilo Text"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/geist-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tilo Text"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/geist-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Tilo Text"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/geist-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Tilo Text"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-600-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }

:root {
    --bg: #f6f5f2;
    --paper: #ecebe6;
    --white: #fff;
    --ink: #16161a;
    --accent: #1d3fbb;
    --accent-ink: #fff;
    --muted: #6d6b66;
    --line: #dfdcd5;
    --shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 18px 30px -18px rgba(0, 0, 0, .45);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --head: "Tilo Head", "Garamond", Georgia, serif;
    --text: "Tilo Text", system-ui, sans-serif;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--text); overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; }
h1 em, h2 em, h3 em { font-style: italic; }
:lang(ka) h1, :lang(ka) h2, :lang(ka) h3 { letter-spacing: 0; line-height: 1.3; }
:lang(ka) em { font-style: normal; }
:lang(de) h1, :lang(ru) h1, :lang(de) h2, :lang(ru) h2 { -webkit-hyphens: auto; hyphens: auto; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 1rem; }
.wrap { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.small-label, .field-label { display: block; margin: 0 0 .6rem; font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
:lang(ka) .small-label, :lang(ka) .field-label { letter-spacing: .03em; font-size: .84rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li + li { margin-top: .3rem; }
.eyebrow { margin: 0 0 1.4rem; font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
:lang(ka) .eyebrow { letter-spacing: .03em; font-size: .9rem; }
.display { font-size: clamp(2.8rem, 1.4rem + 5.6vw, 6.6rem); line-height: .98; }
:lang(ka) .display { font-size: clamp(1.8rem, 1.1rem + 3vw, 3.5rem); line-height: 1.22; }
:lang(ru) .display { font-size: clamp(2.4rem, 1.3rem + 4.6vw, 5.6rem); }
.display--page { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5rem); max-width: 16ch; }
:lang(ka) .display--page { font-size: clamp(1.5rem, .9rem + 2.8vw, 2.9rem); max-width: 26ch; }
.display--cta { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.2rem); font-style: italic; }
:lang(ka) .display--cta { font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem); font-style: normal; }
.h2 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem); }
:lang(ka) .h2 { font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem); }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 56ch; }
.h2 + .lead { margin-top: 1rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .7rem 1.5rem; border: 1px solid transparent; background: transparent; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--ink); }
.btn-line { border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 40px; padding: .4rem 1rem; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 0; }
.more { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); font-weight: 500; text-decoration: none; }
.more .icon { transition: transform .3s var(--ease); }
.more:hover .icon { transform: translateX(4px); }
.link-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem 0; border: 0; background: none; cursor: pointer; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.link-btn:hover { text-decoration-color: var(--ink); }

/* header */
.header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.6rem; min-height: 78px; }
.logo { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; min-width: 0; }
.logo-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--ink); background: var(--white); color: var(--accent); }
.logo-mark .icon { width: 22px; height: 22px; }
.logo-img { max-height: 44px; width: auto; }
.logo > span:last-child { display: flex; flex-direction: column; font: italic 400 1.9rem/1 var(--head); }
.logo small { margin-top: .25rem; font: 500 .66rem/1.3 var(--text); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
:lang(ka) .logo small { letter-spacing: .03em; font-size: .74rem; }
.nav { display: flex; gap: 1.8rem; }
.nav a { position: relative; padding: .4rem 0; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); }
.header-cta[aria-current] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--accent); }
.panel-btn { display: none; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem 1rem; border: 1px solid var(--ink); background: none; cursor: pointer; }
.panel-btn .icon { width: 20px; height: 20px; }

/* language switch: a small hang of framed pictures – the one in use has its own spotlight */
.hang { display: flex; gap: 10px; padding-top: 6px; }
.framed { position: relative; display: grid; justify-items: center; gap: 2px; text-decoration: none; }
.framed-pic { display: block; padding: 3px; background: var(--white); border: 2px solid #2a2622; box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .5); transition: transform .35s var(--ease); }
.framed-pic .flag { width: 22px; height: 15px; }
.framed-label { font-size: .62rem; font-weight: 500; letter-spacing: .1em; color: var(--muted); }
.framed::before { content: ""; position: absolute; left: 50%; top: -12px; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 236, 170, .9), transparent); opacity: 0; transition: opacity .35s; pointer-events: none; }
.framed:hover .framed-pic { transform: translateY(-2px) rotate(-2deg); }
.framed[aria-current]::before { opacity: 1; }
.framed[aria-current] .framed-pic { border-color: var(--accent); }
.framed[aria-current] .framed-label { color: var(--ink); }
.hang--panel { gap: 18px; margin: 2rem 0 0; }
.hang--panel .framed-pic { padding: 5px; }
.hang--panel .framed-pic .flag { width: 38px; height: 26px; }
.hang--panel .framed-label { font-size: .78rem; }

/* menu on phones: a white wall, every page hangs as a wall label */
.panel { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease); }
.panel.is-open { clip-path: inset(0); }
.panel-inner { position: relative; height: 100%; overflow-y: auto; padding: 1.2rem 1.25rem 2rem; }
.panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.panel-label { font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.panel-close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ink); background: none; cursor: pointer; }
.panel-nav { display: grid; gap: 14px; }
.panel-nav a { display: grid; gap: .1rem; padding: .9rem 1.1rem 1rem; background: var(--white); box-shadow: var(--shadow); text-decoration: none; border-left: 3px solid transparent;
    opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease) calc(.25s + var(--i) * 80ms), transform .45s var(--ease) calc(.25s + var(--i) * 80ms); }
.panel.is-open .panel-nav a { opacity: 1; transform: none; }
.panel-num { font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.panel-text { font: italic 400 2rem/1.1 var(--head); }
:lang(ka) .panel-text { font: 500 1.3rem/1.3 var(--head); }
.panel-cap { font-size: .85rem; color: var(--muted); }
.panel-nav a[aria-current] { border-left-color: var(--accent); }
.panel-nav a[aria-current] .panel-text { color: var(--accent); }
.panel-contact { margin-top: 1.6rem; color: var(--muted); }
.panel-contact a { text-decoration: none; }

/* hero */
.hero { padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0 clamp(2rem, 1rem + 3vw, 3.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.hero .lead { margin-top: 1.4rem; }
.open-state { display: inline-flex; align-items: center; gap: .55rem; margin: 1.8rem 0 0; font-size: .92rem; color: var(--muted); }
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #a19e97; }
.open-state.is-open { color: var(--ink); }
.open-state.is-open .pulse { background: #2e9b5f; }
.open-state.is-open .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #2e9b5f; animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 50%; }
.hung { position: absolute; left: 13%; top: 22%; width: 28%; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.hung svg, .frame svg, .now-poster svg, .next-art svg, .show-art svg, .archive-art svg, .wall-art svg, .sum-art svg { width: 100%; height: 100%; }

/* now on */
.section--now { padding-top: 0; }
.now { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; padding: clamp(2rem, 1rem + 3vw, 3.5rem); background: var(--white); }
.now-poster { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.now-artist { margin: .6rem 0 .2rem; font-size: 1.15rem; font-weight: 500; }
.now-span { color: var(--accent); font-weight: 500; }
.run { height: 3px; margin: 1.6rem 0 .5rem; background: var(--line); }
.run span { display: block; height: 100%; background: var(--accent); }
.run-label { font-size: .9rem; color: var(--muted); }
.next { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 1.2rem; align-items: center; margin-top: 1rem; padding: 1rem 1.4rem; background: var(--white); text-decoration: none; transition: background .25s; }
.next:hover { background: var(--paper); }
.next-art { width: 64px; height: 64px; }
.next small { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.next b { display: block; font: italic 400 1.6rem/1.15 var(--head); }
:lang(ka) .next b { font: 500 1.15rem/1.4 var(--head); }
.next span span { color: var(--muted); font-size: .92rem; }

/* facts */
.facts { border-block: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { display: grid; gap: .3rem; padding: 2rem 1.4rem; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { font: italic 400 clamp(2.6rem, 2rem + 2vw, 3.6rem)/1 var(--head); color: var(--accent); }
.fact span { color: var(--muted); font-size: .95rem; }

/* sections */
.section { padding: clamp(3.5rem, 2rem + 5vw, 6.5rem) 0; }
.section--tight { padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.section--paper { background: var(--paper); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.4rem; }
.page-head { padding: clamp(3rem, 2rem + 4vw, 5rem) 0 1.4rem; }
.page-head .lead { margin-top: 1.2rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.studio { margin: 0; }
.studio img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.note { display: flex; gap: .5rem; align-items: flex-start; margin: .8rem 0 0; color: var(--muted); font-size: .92rem; }
.note .icon { margin-top: .2em; color: var(--accent); }
.no-match { padding: 2rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); }
.list-title { margin: 4rem 0 1.6rem; }

/* works: a piece of wall with the work, the wall label below */
.works { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 2.4rem 1.6rem; }
.work { display: flex; flex-direction: column; }
.work-wall { display: grid; place-items: center; aspect-ratio: 1; padding: 13%; background: var(--paper); }
.frame { width: var(--wfr, 100%); max-height: 100%; margin: 0; box-shadow: var(--shadow); transition: transform .5s var(--ease); }
.work:hover .frame { transform: translateY(-4px); }
.label-card { padding: 1rem 0 0; border-top: 0; font-size: .92rem; }
.label-artist { margin: 0; font-weight: 500; }
.label-card h3 { font: italic 400 1.5rem/1.2 var(--head); margin: .1rem 0 .3rem; }
:lang(ka) .label-card h3 { font: 500 1.12rem/1.4 var(--head); }
.label-card h3 span { font-style: normal; color: var(--muted); font-size: 1.1rem; }
.label-meta { color: var(--muted); margin-bottom: .6rem; }
.label-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .4rem; }
.label-price { font: 400 1.35rem/1 var(--head); }
.dot { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; }
.dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #2e9b5f; }
.dot--reserved::before { background: #e3a23b; }
.dot--sold::before { background: #c0392b; }
.label-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; margin: 0; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem 1.4rem; margin-bottom: 2.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.filter { display: grid; gap: .3rem; }
.filter label { font-size: .76rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
:lang(ka) .filter label { letter-spacing: .03em; font-size: .84rem; }
.filter select { min-height: 44px; padding: .35rem 2rem .35rem .8rem; border: 1px solid var(--line); background: var(--white); font-size: 16px; max-width: 100%; }
.check { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.count { margin-left: auto; color: var(--muted); align-self: center; }

/* the wall preview */
.wall-dialog { width: min(920px, 100% - 2rem); padding: 0; border: 0; background: var(--white); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.wall-dialog::backdrop { background: rgba(22, 22, 26, .6); }
.wall-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; }
.wall-head h2 { font-size: 1.6rem; }
.wall-head h2 span { font-style: italic; color: var(--muted); }
.wall-close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ink); background: none; cursor: pointer; flex: none; }
.wall { position: relative; aspect-ratio: 420 / 260; overflow: hidden; background: #f3f1ec; transition: background .4s; }
.wall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5%; background: #b9a58c; }
.wall[data-tone="warm"] { background: #d9d3c8; }
.wall[data-tone="dark"] { background: #2e4a40; }
.wall-art { position: absolute; left: 50%; bottom: calc(115 / 260 * 100%); transform: translateX(-50%); box-shadow: var(--shadow); }
.sofa { position: absolute; left: 50%; bottom: 5%; z-index: 1; height: auto; transform: translateX(-50%); }
.wall-dim { position: absolute; left: 1rem; top: 1rem; padding: .2rem .5rem; background: rgba(255, 255, 255, .85); font-size: .85rem; }
.wall-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1.4rem; padding: 1rem 1.2rem; }
.wall-foot p { margin: 0; }
.tones { display: flex; align-items: center; gap: .5rem; margin: 0; padding: 0; border: 0; }
.tones legend { float: left; margin-right: .5rem; font-size: .85rem; color: var(--muted); }
.tones label { position: relative; }
.tones input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tone { display: block; width: 30px; height: 30px; border: 1px solid var(--line); cursor: pointer; }
.tone--white { background: #f3f1ec; } .tone--warm { background: #d9d3c8; } .tone--dark { background: #2e4a40; }
.tones input:checked + .tone { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--accent); }
.tones input:focus-visible + .tone { outline: 2px solid var(--accent); outline-offset: 4px; }

/* exhibitions */
.shows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.show { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1.6rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.show-art { width: 120px; height: 120px; box-shadow: var(--shadow); }
.show h3 { font-size: 2rem; }
:lang(ka) .show h3 { font-size: 1.3rem; }
.show-artist { margin: .3rem 0; font-weight: 500; }
.archive { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 2rem 1.4rem; }
.archive-art { display: block; aspect-ratio: 4 / 3; margin-bottom: .9rem; filter: grayscale(.6); opacity: .85; transition: filter .4s, opacity .4s; }
.archive li:hover .archive-art { filter: none; opacity: 1; }
.archive h3 { font-size: 1.5rem; }
:lang(ka) .archive h3 { font-size: 1.1rem; }
.archive p { margin: .3rem 0 0; color: var(--muted); font-size: .92rem; }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 2rem; }
.quote { margin: 0; padding-top: 1.4rem; border-top: 2px solid var(--ink); }
.quote blockquote { margin: 0 0 1rem; font: italic 400 1.4rem/1.4 var(--head); }
:lang(ka) .quote blockquote { font: 400 1.02rem/1.6 var(--head); }
.quote blockquote p::before { content: "“"; } .quote blockquote p::after { content: "”"; }
:lang(de) .quote blockquote p::before, :lang(ka) .quote blockquote p::before { content: "„"; }
:lang(de) .quote blockquote p::after, :lang(ka) .quote blockquote p::after { content: "“"; }
:lang(ru) .quote blockquote p::before { content: "«"; } :lang(ru) .quote blockquote p::after { content: "»"; }
.quote figcaption { font-size: .85rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
:lang(ka) .quote figcaption { letter-spacing: 0; text-transform: none; }

/* call to action */
.cta { padding: clamp(3rem, 2rem + 4vw, 5rem) 0; background: var(--accent); color: #fff; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: end; }
.cta p { font-size: 1.1rem; color: rgba(255, 255, 255, .85); }

/* booking */
.book-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.book { display: grid; gap: 1.2rem; }
.block { margin: 0; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); min-width: 0; }
.block legend { float: left; width: 100%; display: flex; align-items: baseline; gap: .8rem; margin: 0 0 1.1rem; padding: 0; font: italic 400 1.75rem/1.15 var(--head); }
:lang(ka) .block legend { font: 500 1.2rem/1.3 var(--head); }
.block legend + * { clear: both; }
.step-n { font: 400 1rem/1 var(--head); font-style: normal; color: var(--accent); min-width: 1.8rem; }
.purposes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.purposes label { position: relative; min-width: 0; }
.purposes input, .day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.purposes span { display: grid; gap: .2rem; align-content: start; height: 100%; padding: .9rem 1rem; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.purposes .icon { width: 24px; height: 24px; margin-bottom: .3rem; color: var(--accent); }
.purposes b { font-weight: 500; line-height: 1.3; }
.purposes small { color: var(--muted); font-size: .84rem; }
.purposes input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.purposes input:disabled + span { opacity: .45; cursor: not-allowed; }
.purposes input:focus-visible + span, .day input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.stepper button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 1.3rem; }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 3ch; text-align: center; font-weight: 500; }
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .45rem; margin-bottom: 1rem; }
.day { position: relative; min-width: 0; }
.day span { display: grid; justify-items: center; padding: .5rem .2rem; border: 1px solid var(--line); cursor: pointer; }
.day small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; color: var(--muted); }
.day b { font: 400 1.6rem/1.15 var(--head); }
.day em { font-size: .72rem; font-style: normal; color: var(--muted); }
.day input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.day input:checked + span small, .day input:checked + span em { color: rgba(255, 255, 255, .7); }
.field--time { max-width: 220px; margin-bottom: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; align-content: start; }
.field label { font-size: .95rem; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .65rem .9rem; border: 1px solid var(--line); border-radius: 0; background: var(--bg); font-size: 16px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.consent { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1.2rem; font-size: .92rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--accent); flex: none; }
.form-status { margin-top: 1rem; }
.form-status.is-shown { padding: .8rem 1rem; }
.form-status.ok { background: #e3efe6; }
.form-status.info { background: #e8ecf8; }
.form-status.error { background: #f6ddd8; color: #8a2a1a; }
.book-side { display: grid; gap: 1.2rem; position: sticky; top: 100px; }
.card { padding: 1.5rem; background: var(--white); border: 1px solid var(--line); }
.card--label { box-shadow: var(--shadow); border: 0; }
.sum-art { width: 60%; margin-bottom: 1rem; box-shadow: var(--shadow); }
.sum-title { margin: 0 0 .2rem; font: italic 400 1.8rem/1.15 var(--head); }
:lang(ka) .sum-title { font: 500 1.25rem/1.4 var(--head); }
.sum-what { margin: 0 0 .2rem; font-weight: 500; }
.sum-when { color: var(--muted); }
.sum-price { display: flex; justify-content: space-between; gap: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.sum-price span { color: var(--muted); }
.sum-price b { font: 400 1.4rem/1.2 var(--head); text-align: right; }
.addr { margin-bottom: 1rem; }
.addr a { text-decoration: none; }
.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .95rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; }

/* legal */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.8rem; margin: 1.8rem 0 .5rem; }
:lang(ka) .legal h2 { font-size: 1.25rem; }
.legal p { color: var(--muted); }
.page-head h1 { font-size: clamp(1.8rem, 1rem + 3.6vw, 3.8rem); }
:lang(ka) .page-head h1 { font-size: clamp(1.15rem, .7rem + 3vw, 2.4rem); }

/* footer */
.footer { padding: 4rem 0 1.5rem; background: var(--ink); color: rgba(255, 255, 255, .68); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-name { font: italic 400 2.6rem/1 var(--head); color: #fff; }
.footer-h { margin: 0 0 .9rem; font: 500 .74rem/1.3 var(--text); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
:lang(ka) .footer-h { letter-spacing: .03em; font-size: .84rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.socials { display: flex; gap: .5rem; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease) calc(var(--i, 0) * 70ms), transform .8s var(--ease) calc(var(--i, 0) * 70ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1160px) {
    .hang--top { display: none; }
}
@media (max-width: 960px) {
    .nav, .header-cta { display: none; }
    .panel-btn { display: inline-flex; }
    .hero-grid, .split, .cta-inner, .book-grid, .now { grid-template-columns: minmax(0, 1fr); }
    .book-side { position: static; }
    .hero-photo img { aspect-ratio: 4 / 3; }
    .hung { width: 22%; top: 16%; }
    .now-poster { max-width: 360px; }
    .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fact { padding: 1.4rem 1rem; }
    .fact:nth-child(3) { border-left: 0; padding-left: 0; }
    .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .wrap { width: calc(100% - 2rem); }
    .row2, .purposes { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .block, .card, .now { padding: 1.1rem; }
    .panel-btn span { display: none; }
    .panel-btn { width: 44px; padding: 0; justify-content: center; }
    .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .show { grid-template-columns: 72px minmax(0, 1fr); gap: 1rem; }
    .show-art { width: 72px; height: 72px; }
    .show h3 { font-size: 1.6rem; }
    .next { grid-template-columns: 48px minmax(0, 1fr); padding: .9rem; }
    .next > .icon { display: none; }
    .next-art { width: 48px; height: 48px; }
    .filter, .filter select { width: 100%; }
    .count { margin-left: 0; }
    .wall-head h2 { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
    .panel-nav a { opacity: 1; transform: none; }
    @view-transition { navigation: none; }
}
