/* ===================== FONT (brand font only) ===================== */
@font-face {
  font-family: 'ALK Sanet';
  src: url('../font/alk-sanet.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ===================== TOKENS ===================== */
:root {
  /* brand palette (brandbook 05, Colors & Textures) */
  --c-white: #FFFFFF;
  --c-gray:  #808080;
  --c-iron:  #4D4D4D;
  --c-coal:  #252525;
  --c-black: #000000;

  /* semantic, light theme */
  --bg: var(--c-white);
  --fg: var(--c-black);
  --fg-2: var(--c-iron);
  --fg-3: var(--c-gray);
  --line: rgba(0, 0, 0, .12);
  --line-2: rgba(0, 0, 0, .32);
  --surface: rgba(255, 255, 255, .84);
  --surface-2: rgba(255, 255, 255, .94);
  --halo: rgba(255, 255, 255, .96);
  --logo-filter: none;
  --ink: #000000;
  --product-filter: none;

  --font: 'ALK Sanet', sans-serif;
  --track: .07em;
  --ease: cubic-bezier(.16, .84, .24, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --gutter: 20px;
  --header-h: 64px;
  --maxw: 1440px;
  --space: clamp(120px, 15vw, 230px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: var(--c-black);
  --fg: var(--c-white);
  --fg-2: var(--c-gray);
  --fg-3: var(--c-iron);
  --line: rgba(255, 255, 255, .14);
  --line-2: rgba(255, 255, 255, .36);
  --surface: rgba(0, 0, 0, .76);
  --surface-2: rgba(37, 37, 37, .94);
  --halo: rgba(0, 0, 0, .96);
  --logo-filter: invert(1);
  color-scheme: dark;
}
:root[lang="ka"] { --track: .02em; }
@media (min-width: 760px)  { :root { --gutter: 40px; --header-h: 76px; } }
@media (min-width: 1200px) { :root { --gutter: 64px; } }

/* ===================== BASE ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font); font-weight: 400;
  font-size: 13px; line-height: 1.85; letter-spacing: var(--track);
  color: var(--fg); background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
/* Georgian: never transform case (would switch to Mtavruli glyphs the font does not have) */
:root[lang="ka"] * { text-transform: none !important; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd, ul { margin: 0; padding: 0; font-weight: 400; }
ul { list-style: none; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--fg); color: var(--bg); transition: top .3s; }
.skip:focus { top: 12px; }

.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .9s var(--ease-io), color .9s var(--ease-io), border-color .9s var(--ease-io),
              filter .9s var(--ease-io), box-shadow .9s var(--ease-io) !important;
}

/* page transitions */
.site { position: relative; z-index: 2; transition: opacity .45s var(--ease); }
.is-leaving .site, .is-leaving .header { opacity: 0; }
.header { transition: opacity .45s var(--ease), background-color .6s var(--ease), border-color .6s var(--ease); }

/* ===================== WATER & TEXTURE ===================== */
#water { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; pointer-events: none; background: var(--bg); }
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: .07; filter: invert(1); }

/* ===================== COMMON PIECES ===================== */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.label { font-size: 10px; letter-spacing: .26em; line-height: 1.6; color: var(--fg-2); }
:root[lang="ka"] .label { letter-spacing: .06em; font-size: 11px; }
.halo { text-shadow: 0 0 1px var(--halo), 0 0 12px var(--halo), 0 0 30px var(--halo); }
.panel { background: var(--surface); padding: 22px 24px; }
.fx-blur .panel, .fx-blur .header.is-solid { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.logo { filter: var(--logo-filter); user-select: none; -webkit-user-drag: none; }
.muted { color: var(--fg-2); }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 48px; padding: 0 24px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--fg); background: var(--surface-2); color: var(--fg);
  font-size: 10px; letter-spacing: .26em; line-height: 1; white-space: nowrap;
  transition: color .5s var(--ease);
}
:root[lang="ka"] .btn { letter-spacing: .06em; font-size: 11px; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s var(--ease); }
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: scaleY(1); transform-origin: 50% 0; }
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid::before { background: var(--bg); }
.btn--solid:hover { color: var(--fg); }
.btn svg { width: 13px; height: 13px; flex: none; }
.ulink { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); padding-bottom: 2px; }
.ulink:hover, .ulink:focus-visible, .ulink[aria-current="page"] { background-size: 100% 1px; }

/* section headings: small index + calm title */
.sec { padding-top: var(--space); }
.sec-head { display: grid; gap: 14px 40px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head__title { --ls: .14em; font-size: clamp(20px, 2.6vw, 34px); line-height: 1.2; letter-spacing: var(--ls); }
:root[lang="ka"] .sec-head__title { --ls: .03em; }
.sec-head__intro { max-width: 380px; color: var(--fg-2); }
@media (min-width: 960px) { .sec-head { grid-template-columns: 1fr auto; align-items: end; } .sec-head__intro { text-align: right; } }
.page-head { padding-top: calc(var(--header-h) + clamp(60px, 10vw, 140px)); }
.page-title { --ls: .14em; font-size: clamp(26px, 4vw, 52px); line-height: 1.15; letter-spacing: var(--ls); margin-top: 14px; }
:root[lang="ka"] .page-title { --ls: .03em; }

/* ===================== HEADER ===================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--header-h); padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  border-bottom: 1px solid transparent;
}
.header.is-solid { background: var(--surface); border-bottom-color: var(--line); }
.header__logo { justify-self: center; display: block; padding: 10px 0; }
.header__logo img { width: clamp(104px, 10vw, 140px); }
.nav { display: none; gap: clamp(18px, 2.4vw, 34px); font-size: 10px; letter-spacing: .26em; }
:root[lang="ka"] .nav { letter-spacing: .05em; font-size: 11px; }
.nav a { padding: 8px 0; }
.header__right { justify-self: end; display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); font-size: 10px; letter-spacing: .22em; }
.lang { display: none; align-items: center; gap: 6px; color: var(--fg-3); }
.lang button { padding: 6px 2px; color: var(--fg-3); transition: color .3s; }
.lang button[aria-pressed="true"], .lang button:hover { color: var(--fg); }
.theme-btn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; }
.theme-btn__icon { width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--fg); position: relative; overflow: hidden; flex: none; }
.theme-btn__icon::after { content: ""; position: absolute; inset: 0; background: var(--fg); transform: translateX(50%); transition: transform .9s var(--ease-io); }
:root[data-theme="dark"] .theme-btn__icon::after { transform: translateX(-50%); }
.theme-btn__label { display: none; }
.menu-btn { justify-self: start; display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 10px; letter-spacing: .24em; }
.menu-btn__lines { width: 22px; height: 9px; position: relative; }
.menu-btn__lines::before, .menu-btn__lines::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-btn__lines::before { top: 0; } .menu-btn__lines::after { top: 8px; }
.menu-open .menu-btn__lines::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-btn__lines::after { top: 4px; transform: rotate(-45deg); }
.menu-btn__text { display: none; }
@media (min-width: 520px) { .menu-btn__text { display: inline; } .lang { display: inline-flex; } }
@media (min-width: 1024px) { .menu-btn { display: none; } .nav { display: flex; } .theme-btn__label { display: inline; } }

.mnav {
  position: fixed; inset: 0; z-index: 35; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 20px) var(--gutter) 40px; background: var(--surface-2);
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); visibility: hidden;
}
.menu-open .mnav { clip-path: inset(0 0 0 0); visibility: visible; }
.mnav__links { display: grid; gap: 4px; }
.mnav__links a { display: flex; align-items: baseline; gap: 16px; font-size: clamp(26px, 8vw, 44px); line-height: 1.35; letter-spacing: .1em; }
.mnav__links a span { font-size: 10px; color: var(--fg-3); letter-spacing: .2em; }
.mnav__foot { margin-top: 48px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; font-size: 10px; letter-spacing: .22em; }
.mnav .lang { display: inline-flex; }
.mnav__links a, .mnav__foot { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.menu-open .mnav__links a, .menu-open .mnav__foot { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i, 0) * .06s); }
@media (min-width: 1024px) { .mnav { display: none; } }

/* ===================== HERO (home) ===================== */
.hero {
  min-height: 88vh; min-height: 88svh; max-width: var(--maxw); margin: 0 auto;
  padding: calc(var(--header-h) + 48px) var(--gutter) 32px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center;
}
/* one logo size for hero and footer */
.hero__logo, .footer__mark { --logo-w: clamp(190px, 28vw, 400px); }
.hero__logo { margin-bottom: clamp(26px, 5vh, 54px); }
.hero__logo img { width: var(--logo-w); filter: var(--logo-filter) drop-shadow(0 0 10px var(--halo)) drop-shadow(0 0 24px var(--halo)); }
.hero__tagline { --ls: .12em; font-size: clamp(18px, 2.4vw, 28px); line-height: 1.3; letter-spacing: var(--ls); }
.hero__sub { max-width: 380px; color: var(--fg-2); }
.hero__ctas { margin-top: 14px; }
.hero__hint { display: flex; align-items: center; gap: 12px; margin-top: 6px; transition: opacity 1s var(--ease); }
.hero__hint.is-gone { opacity: 0; }
.hero__hint i { position: relative; width: 20px; height: 20px; flex: none; }
.hero__hint i::before, .hero__hint i::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--fg-2); border-radius: 50%; animation: ripple 2.8s var(--ease) infinite; }
.hero__hint i::after { animation-delay: 1.4s; }
@keyframes ripple { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.frame { position: relative; overflow: hidden; background: var(--line); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ===================== RUNNING PHOTO STRIP ===================== */
.strip { position: relative; margin-top: clamp(24px, 4vw, 56px); }
.strip__viewport {
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.strip__viewport::-webkit-scrollbar { display: none; }
.strip__viewport.is-drag { cursor: grabbing; }
.strip__track { display: flex; gap: clamp(10px, 1.6vw, 22px); width: max-content; transform: skewX(var(--skew, 0deg)); }
.strip__item { flex: none; height: clamp(220px, 34vw, 430px); overflow: hidden; background: var(--line); }
.strip__item img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; filter: var(--product-filter); transition: transform 1.4s var(--ease); }
.strip__item:hover img { transform: scale(1.03); }
.strip__hint { text-align: center; margin-top: 18px; }

/* ===================== COLLECTION ===================== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 52px); }
.chip { min-height: 34px; padding: 0 14px; border: 1px solid var(--line-2); background: var(--surface); font-size: 10px; letter-spacing: .22em; transition: background-color .4s, color .4s, border-color .4s; }
:root[lang="ka"] .chip { letter-spacing: .05em; font-size: 11px; }
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip sup { font-size: 8px; margin-left: 4px; opacity: .6; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 14px; }
/* never more than three pieces in a row */
@media (min-width: 760px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 28px; } }
@media (min-width: 1200px) { .grid { gap: 90px 48px; } }
.card { display: flex; flex-direction: column; }
.card__link { display: block; }
.card.is-hidden { display: none; }
.card__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #FFFFFF; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--product-filter); transition: opacity .9s var(--ease), transform 1.6s var(--ease); }
.card__media .alt { opacity: 0; }
.card:hover .card__media img:first-child { transform: scale(1.04); }
.card:hover .card__media .alt { opacity: 1; transform: scale(1.02); }
.card__info { display: grid; gap: 2px; padding: 12px 12px 14px; background: var(--surface); }
.card__name { font-size: 11px; line-height: 1.5; letter-spacing: .16em; }
:root[lang="ka"] .card__name { letter-spacing: .03em; font-size: 12px; }
.card__meta { font-size: 10px; letter-spacing: .18em; color: var(--fg-2); line-height: 1.6; }
:root[lang="ka"] .card__meta { letter-spacing: .03em; }
.card--empty .card__media { background: transparent; border: 1px dashed var(--line-2); display: grid; place-items: center; cursor: default; }
.card--empty .card__info { background: transparent; color: var(--fg-3); }
.slot { display: grid; place-items: center; gap: 12px; text-align: center; color: var(--fg-3); font-size: 10px; letter-spacing: .22em; padding: 12px; }
.slot::before { content: ""; width: 28px; height: 28px; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; }

/* ===================== OBJECT GALLERY (home) ===================== */
.objects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 760px)  { .objects { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.obj { position: relative; display: block; width: 100%; overflow: hidden; background: var(--line); }
.obj img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.obj:hover img { transform: scale(1.04); }
.obj--empty { background: transparent; border: 1px dashed var(--line-2); display: grid; place-items: center; cursor: default; }

.teaser { padding-top: var(--space); text-align: center; display: grid; justify-items: center; gap: 30px; }
.teaser p { --ls: .1em; max-width: 760px; font-size: clamp(16px, 2vw, 24px); line-height: 1.6; letter-spacing: var(--ls); }
:root[lang="ka"] .teaser p { --ls: .02em; }

/* ===================== ABOUT ===================== */
.about-lead { --ls: .06em; max-width: 820px; font-size: clamp(16px, 1.9vw, 23px); line-height: 1.6; letter-spacing: var(--ls); margin-top: clamp(40px, 6vw, 70px); }
:root[lang="ka"] .about-lead { --ls: .02em; }
.pair { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-top: clamp(80px, 11vw, 160px); }
@media (min-width: 760px) { .pair { gap: 28px; } }
.pair .frame { aspect-ratio: 4 / 5; }
.cols { display: grid; gap: 18px; margin-top: clamp(80px, 11vw, 160px); }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; gap: 40px; } }
.pillars { display: grid; gap: 18px; margin-top: clamp(80px, 11vw, 160px); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.pillar { display: grid; gap: 12px; align-content: start; }
.pillar__num { font-size: 11px; letter-spacing: .26em; color: var(--fg-3); }
.pillar__title { font-size: 13px; letter-spacing: .18em; }
:root[lang="ka"] .pillar__title { letter-spacing: .03em; }
.pillar__text { color: var(--fg-2); }
.statement { --ls: .1em; margin: var(--space) auto 0; max-width: 900px; text-align: center; font-size: clamp(18px, 2.6vw, 32px); line-height: 1.5; letter-spacing: var(--ls); padding: 0 var(--gutter); }
:root[lang="ka"] .statement { --ls: .02em; }
.center { display: flex; justify-content: center; margin-top: 44px; }

/* ===================== CONTACT ===================== */
.contact { display: grid; gap: 40px; margin-top: clamp(50px, 7vw, 100px); }
@media (min-width: 900px) { .contact { grid-template-columns: 4fr 7fr; gap: 80px; align-items: start; } }
.rows { border-top: 1px solid var(--line-2); background: var(--surface); }
.row { display: grid; grid-template-columns: minmax(84px, 150px) 1fr auto; gap: 16px; align-items: center; padding: 22px 16px; border-bottom: 1px solid var(--line-2); transition: padding .6s var(--ease); }
.row__val { font-size: clamp(14px, 2vw, 24px); letter-spacing: .1em; line-height: 1.3; word-break: break-word; }
:root[lang="ka"] .row__val { letter-spacing: .02em; }
.row svg { width: 16px; height: 16px; transition: transform .6s var(--ease); }
.us { display: inline-block; width: .55em; height: 1px; margin: 0 .05em; background: currentColor; vertical-align: baseline; }
a.row:hover { padding-left: 26px; padding-right: 6px; }
a.row:hover svg { transform: translate(4px, -4px); }

/* ===================== PIECE PAGE ===================== */
.piece { padding-top: calc(var(--header-h) + clamp(28px, 4vw, 56px)); }
.crumbs { display: flex; gap: 10px; align-items: center; margin-bottom: clamp(24px, 3vw, 40px); }
.crumbs a { color: var(--fg); }
.piece__grid { display: grid; gap: 36px; }
.piece__gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
.piece__gallery::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 86%; scroll-snap-align: center; background: #FFFFFF; position: relative; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; filter: var(--product-filter); }
.shot--model img { filter: none; }
.shot--empty { display: grid; place-items: center; aspect-ratio: 4 / 5; background: transparent; border: 1px dashed var(--line-2); }
.piece__count { margin-top: 12px; }
.piece__info { display: grid; gap: 18px; align-content: start; }
.piece__name { --ls: .1em; font-size: clamp(22px, 3vw, 38px); line-height: 1.2; letter-spacing: var(--ls); }
:root[lang="ka"] .piece__name { --ls: .02em; }
.piece__price { font-size: 13px; letter-spacing: .16em; }
.piece__desc { color: var(--fg-2); max-width: 440px; }
.piece__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.piece__note { color: var(--fg-3); font-size: 11px; max-width: 400px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.thumbs button { width: 52px; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid transparent; opacity: .6; transition: opacity .3s, border-color .3s; background: #FFFFFF; }
.thumbs button:hover, .thumbs button[aria-current="true"] { opacity: 1; border-color: var(--fg); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.piece__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: var(--space); padding-top: 22px; border-top: 1px solid var(--line-2); }
.piece__nav a { display: grid; gap: 6px; }
.piece__nav a:last-child { text-align: right; justify-items: end; }
.piece__nav b { font-weight: 400; font-size: clamp(13px, 1.6vw, 18px); letter-spacing: .12em; }
@media (min-width: 900px) {
  .piece__grid { grid-template-columns: minmax(0, 7fr) minmax(300px, 4fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
  .piece__gallery { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 28px; scroll-snap-type: none; }
  .shot { flex: none; width: 100%; }
  .piece__count { display: none; }
  .piece__info { position: sticky; top: calc(var(--header-h) + 40px); }
}

/* ===================== FOOTER ===================== */
.footer { position: relative; margin-top: var(--space); padding: 0 0 28px; }
.footer__mark { padding: 0 var(--gutter); max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: center; }
.footer__mark img { width: var(--logo-w); filter: var(--logo-filter) drop-shadow(0 0 10px var(--halo)) drop-shadow(0 0 24px var(--halo)); }
.header__logo img, .footer__ge { filter: var(--logo-filter) drop-shadow(0 0 6px var(--halo)); }
.footer__bar { display: grid; gap: 18px; align-items: end; margin-top: clamp(40px, 6vw, 72px); font-size: 10px; letter-spacing: .22em; color: var(--fg-2); }
:root[lang="ka"] .footer__bar { letter-spacing: .04em; }
.footer__ge { width: 140px; opacity: .9; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
@media (min-width: 760px) { .footer__bar { grid-template-columns: auto 1fr auto; gap: 40px; } }

/* ===================== LIGHTBOX ===================== */
.modal { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: var(--fg); overflow: hidden; }
.modal::backdrop { background: rgba(0, 0, 0, .5); }
.modal[open] { display: grid; animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.lb__inner { display: grid; grid-template-rows: auto 1fr auto; width: 100%; height: 100%; background: var(--surface-2); }
.lb__close { justify-self: end; display: flex; align-items: center; gap: 10px; padding: 18px var(--gutter); font-size: 10px; letter-spacing: .24em; }
.lb__close svg { width: 15px; height: 15px; }
.lb__stage { display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lb__stage img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; animation: fade .6s var(--ease); }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter) 22px; font-size: 10px; letter-spacing: .24em; }
.lb__bar button { padding: 10px 0; }

/* ===================== INK SWITCHER ===================== */
.inkctl { position: fixed; right: var(--gutter); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30; display: flex; flex-direction: row-reverse; align-items: center; gap: 6px; padding: 5px; background: var(--surface-2); border: 1px solid var(--line); font-size: 10px; letter-spacing: .22em; }
.inkctl__toggle { display: inline-flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px; }
@media (max-width: 759px) { .inkctl__toggle > span:last-child { display: none; } .inkctl__toggle { padding: 3px; } }
.inkctl__dot, .inkctl__sw { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); flex: none; }
.inkctl__panel { display: flex; align-items: center; gap: 8px; padding: 0 6px; }
.inkctl__sw { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.inkctl__sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface-2), 0 0 0 3px var(--fg); }
.inkctl__sw:hover { transform: scale(1.15); }
.inkctl__custom { position: relative; width: 18px; height: 18px; border-radius: 50%; overflow: hidden; cursor: pointer; background: conic-gradient(#000000, #808080, #FFFFFF, #4D4D4D, #000000); box-shadow: inset 0 0 0 1px var(--line-2); }
.inkctl__custom input { position: absolute; inset: -8px; width: 40px; height: 40px; opacity: 0; cursor: pointer; border: 0; padding: 0; }

/* ===================== CUSTOM CURSOR ===================== */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; width: 0; height: 0; }
/* dot and ring show the background inverted and pushed to pure black or white:
   black over light water and photos, white over ink and dark areas */
.cursor__ring, .cursor__dot { position: absolute; border-radius: 50%;
  -webkit-backdrop-filter: invert(1) grayscale(1) contrast(40); backdrop-filter: invert(1) grayscale(1) contrast(40); }
.cursor__ring { left: -13px; top: -13px; width: 26px; height: 26px; translate: var(--rx, 0) var(--ry, 0);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
          mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  transition: transform .5s var(--ease); }
.cursor__dot { left: -4px; top: -4px; width: 8px; height: 8px; transition: transform .3s var(--ease), opacity .3s; }
.cursor__label { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font-size: 8px; letter-spacing: .12em; color: var(--bg); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor.is-link .cursor__ring { transform: scale(1.5); }
.cursor.is-link .cursor__dot { transform: scale(.7); }
.cursor.is-view .cursor__ring { transform: scale(1.2); translate: 0 0; -webkit-mask: none; mask: none; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--fg); }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-view .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { transform: scale(.7); }
.cursor.is-down .cursor__dot { transform: scale(1.35); }
@supports not ((backdrop-filter: invert(1)) or (-webkit-backdrop-filter: invert(1))) {
  .cursor { mix-blend-mode: difference; }
  .cursor__dot { background: #FFFFFF; }
  .cursor__ring { background: #FFFFFF; }
  .cursor.is-view .cursor__ring { background: #FFFFFF; }
  .cursor__label { color: #000000; }
}
.has-cursor, .has-cursor * { cursor: none !important; }

/* ===================== REVEAL ===================== */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 24px, 0);
  transition: opacity 1.1s var(--ease), transform 1.4s var(--ease), filter 1.3s var(--ease), letter-spacing 1.5s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal="focus"] { transform: none; filter: blur(12px); letter-spacing: calc(var(--ls, .08em) + .3em); }
.js [data-reveal="mask"] { opacity: 1; transform: none; }
.js [data-reveal="mask"] > * { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease-io); transition-delay: var(--d, 0ms); }
.js [data-reveal="mask"].is-in > * { clip-path: inset(0 0 0 0); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js [data-reveal="focus"].is-in { letter-spacing: var(--ls, .08em); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-reveal="mask"] > * { opacity: 1; transform: none; filter: none; clip-path: none; }
}
