/* =============================================================
   ATELJE — Gallery of Ana Jokić Nenadić & Nenad Stojanovski
   Belgrade · Original design, premium dark aesthetic
   ============================================================= */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #171717;
  --ink: #f5f2ed;
  --ink-dim: #a9a39a;
  --ink-muted: #6b655d;
  --line: rgba(245, 242, 237, 0.12);
  --line-strong: rgba(245, 242, 237, 0.28);

  /* Ana — expressive, warm, pigment */
  --ana: #c8553d;          /* terracotta / crimson pigment */
  --ana-soft: #e8c39a;

  /* Nenad — raw, metal, patina */
  --nenad: #8a7a5c;        /* aged bronze */
  --nenad-soft: #c9beab;

  --gold: #b89968;

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-long: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Page-in fade */
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body { animation: pageIn .9s var(--ease-long) both; }

/* Subtle grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 999;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Custom text selection */
::selection { background: var(--ana); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.serif { font-family: var(--serif); font-weight: 300; letter-spacing: .01em; }
.mono  { font-family: var(--mono); font-weight: 400; letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 40px;
  mix-blend-mode: difference;
  color: #fff;
}
.nav__left, .nav__right { display: flex; gap: 28px; align-items: center; }
.nav__right { justify-content: flex-end; }
.nav a.nav__link {
  font-family: var(--sans); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 400;
  opacity: .85; transition: opacity .3s var(--ease);
}
.nav a.nav__link:hover { opacity: 1; }
.brand {
  font-family: var(--serif);
  font-size: 22px; letter-spacing: .25em;
  text-transform: uppercase; font-weight: 300;
  padding: 0 8px;
  white-space: nowrap;
}
.brand sup {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: .1em; margin-left: 2px; opacity: .6;
  vertical-align: super;
}
.nav__locale { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; opacity: .6; }

/* Language toggle */
.lang-toggle {
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  padding: 8px 12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.lang-toggle:hover { border-color: var(--ink-dim); background: rgba(255,255,255,.04); }
.lang-toggle .lang-opt { opacity: .5; transition: opacity .2s var(--ease); }
.lang-toggle .lang-opt.is-active { opacity: 1; color: var(--ana); }
.lang-toggle .lang-sep { opacity: .3; }

/* ---------- SPLIT HERO ---------- */
.hero {
  height: 100vh; min-height: 720px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.hero__rule {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: var(--line-strong);
  transform: translateX(-50%);
  z-index: 3; pointer-events: none;
  transition: left 1.1s var(--ease-long);
}
.hero__panel {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex 1.1s var(--ease-long);
}
.hero__panel .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: grayscale(.25) brightness(.55) contrast(1.05);
  transform: scale(1.05);
  transition: transform 1.4s var(--ease-long), filter 1.1s var(--ease-long);
}
.hero__panel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.85) 100%);
  z-index: 1;
}
.hero__panel .content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 56px 72px 72px;
  color: #fff;
}
.hero__panel .eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .25em;
  color: var(--ink-dim);
  margin-bottom: 28px;
}
.hero__panel .eyebrow::before {
  content: ""; width: 36px; height: 1px; background: var(--ink-dim);
}
.hero__panel h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 5.4vw, 88px);
  line-height: .95;
  letter-spacing: -.005em;
  max-width: 10ch;
  margin-bottom: 22px;
}
.hero__panel h1 em {
  font-style: italic;
  color: var(--ana-soft);
}
.hero__panel.nenad h1 em { color: var(--nenad-soft); }
.hero__panel .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.3vw, 20px);
  color: var(--ink-dim);
  max-width: 38ch;
  margin-bottom: 40px;
  opacity: .85;
}
.hero__panel .enter {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
  align-self: flex-start;
  transition: gap .4s var(--ease), border-color .4s var(--ease);
}
.hero__panel .enter svg { transition: transform .4s var(--ease); }
.hero__panel:hover .bg { transform: scale(1.12); filter: grayscale(0) brightness(.7) contrast(1.1); }
.hero__panel:hover .enter { gap: 22px; border-bottom-color: #fff; }
.hero__panel:hover .enter svg { transform: translateX(6px); }

/* Hover-to-expand duality */
.hero:hover .hero__panel { flex: 1; }
.hero[data-expand="ana"]    { grid-template-columns: 1.6fr 1fr; }
.hero[data-expand="nenad"]  { grid-template-columns: 1fr 1.6fr; }
.hero[data-expand="ana"] .hero__rule   { left: 61.5%; }
.hero[data-expand="nenad"] .hero__rule { left: 38.5%; }

/* Hero corner label */
.hero__meta {
  position: absolute; top: 50%; z-index: 4;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: .4em;
  color: var(--ink-dim);
  pointer-events: none;
  white-space: nowrap;
}
.hero__meta.left  { left: 22px; }
.hero__meta.right { right: 22px; transform: translateY(-50%) rotate(90deg); }

.hero__center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  pointer-events: none;
}
.hero__center .mark {
  width: 78px; height: 78px; border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10,10,10,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero__center .mark span {
  font-family: var(--serif); font-size: 22px; letter-spacing: .15em;
  color: #fff;
}
.hero__center .label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .3em;
  color: #fff; opacity: .7;
}

/* ---------- SECTION SCAFFOLD ---------- */
section { padding: 140px 40px; position: relative; }
.container { max-width: 1440px; margin: 0 auto; }
.section-head {
  display: grid; grid-template-columns: 120px 1fr auto;
  gap: 32px; align-items: baseline;
  padding-bottom: 40px; margin-bottom: 64px;
  border-bottom: 1px solid var(--line);
}
.section-head .idx { font-family: var(--mono); font-size: 11px; color: var(--ink-muted); letter-spacing: .2em; }
.section-head h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(36px, 4.2vw, 64px); line-height: 1.05; letter-spacing: -.01em;
  max-width: 22ch;
}
.section-head h2 em { font-style: italic; color: var(--ink-dim); }
.section-head .meta { font-family: var(--mono); font-size: 10px; color: var(--ink-muted); letter-spacing: .2em; }

/* ---------- STATEMENT ---------- */
.statement {
  padding: 180px 40px 120px;
  background: var(--bg);
}
.statement .wrap {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 120px 1fr;
  gap: 48px;
}
.statement p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.35;
  letter-spacing: -.005em;
  color: var(--ink);
  max-width: 32ch;
  text-wrap: pretty;
}
.statement p + p { margin-top: 28px; color: var(--ink-dim); }
.statement .kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .25em;
  color: var(--ana);
}

/* ---------- ARTIST DUET (two adjacent slabs) ---------- */
.duet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 90vh;
  border-top: 1px solid var(--line);
}
.duet__side {
  padding: 72px 56px;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 40px;
  background: var(--bg-2);
}
.duet__side.nenad { background: var(--bg); border-left: 1px solid var(--line); }
.duet__side .tag {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .25em;
  color: var(--ink-muted);
}
.duet__side .tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ana); }
.duet__side.nenad .tag .dot { background: var(--nenad); }
.duet__side h3 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 3.6vw, 56px);
  line-height: 1; letter-spacing: -.01em;
  margin-top: 16px;
}
.duet__side h3 .ital { font-style: italic; color: var(--ink-dim); }
.duet__side .born {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--ink-muted);
  margin-top: 18px;
}
.duet__side .feature {
  position: relative; width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #000;
}
.duet__side .feature img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-long), filter 1.2s var(--ease-long);
  filter: grayscale(.1);
}
.duet__side:hover .feature img { transform: scale(1.04); filter: grayscale(0); }
.duet__side .bio {
  color: var(--ink-dim);
  font-size: 14.5px; line-height: 1.7;
  max-width: 46ch;
}
.duet__side .stats {
  display: flex; gap: 48px; margin-top: 20px;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.duet__side .stat .n {
  font-family: var(--serif); font-size: 40px; line-height: 1; font-weight: 300;
}
.duet__side .stat .l {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  color: var(--ink-muted); margin-top: 6px;
}
.duet__side .cta {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em;
  padding-bottom: 8px; width: fit-content;
  border-bottom: 1px solid var(--line-strong);
  transition: gap .35s var(--ease), border-color .35s var(--ease);
}
.duet__side .cta:hover { gap: 22px; border-bottom-color: var(--ink); }

/* ---------- WORKS GRID ---------- */
.works {
  background: var(--bg);
}
.works .grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 40px 32px;
}
.work {
  position: relative;
  cursor: pointer;
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease-long), transform 1s var(--ease-long);
}
.js .work { opacity: 0; transform: translateY(30px); }
.js .work.in { opacity: 1; transform: none; }
.work .frame {
  position: relative; overflow: hidden; background: #000;
  aspect-ratio: var(--ar, 4/5);
}
.work .frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.6s var(--ease-long), filter 1.2s var(--ease);
  filter: grayscale(.1);
}
.work:hover .frame img { transform: scale(1.05); filter: grayscale(0); }
.work .caption {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
.work .caption .title {
  font-family: var(--serif); font-style: italic; font-size: 18px;
  color: var(--ink);
  flex: 1 1 auto; min-width: 0;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
.work .caption .artist {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--ink-muted);
}
.work .caption .meta {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--ink-muted);
  flex: 0 1 auto; min-width: 0;
  text-align: right;
  white-space: normal;
  line-height: 1.5;
}
/* In very narrow editorial columns, stack caption vertically to avoid collision */
.work.w-3 .caption {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.work.w-3 .caption .meta {
  text-align: left;
}
.work .medium {
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--ink-muted);
  margin-top: 6px;
}

/* Grid spans for editorial rhythm */
.work.w-7 { grid-column: span 7; }
.work.w-5 { grid-column: span 5; }
.work.w-6 { grid-column: span 6; }
.work.w-4 { grid-column: span 4; }
.work.w-8 { grid-column: span 8; }
.work.w-12 { grid-column: span 12; }
.work.offset-1 { grid-column-start: 2; }
.work.offset-4 { grid-column-start: 5; }

/* Filter bar */
.filter {
  display: flex; gap: 4px; align-items: center;
  border: 1px solid var(--line-strong);
  padding: 4px; border-radius: 999px;
  width: fit-content;
}
.filter button {
  padding: 10px 22px; border-radius: 999px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  color: var(--ink-dim);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.filter button.is-active { background: var(--ink); color: var(--bg); }
.filter button:hover:not(.is-active) { color: var(--ink); }

/* ---------- EXHIBITIONS ---------- */
.exhibitions { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ex-list { display: flex; flex-direction: column; }
.ex-row {
  display: grid;
  grid-template-columns: 90px 1fr 2fr 1fr auto;
  gap: 32px; align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  transition: padding-left .5s var(--ease), background .5s var(--ease);
  position: relative;
}
.ex-row:last-child { border-bottom: 1px solid var(--line); }
.ex-row:hover { padding-left: 24px; background: rgba(255,255,255,.015); }
.ex-row .yr { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--ink-muted); min-width: 0; }
.ex-row .t { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--ink); min-width: 0; overflow-wrap: break-word; }
.ex-row .v { font-size: 14px; color: var(--ink-dim); min-width: 0; overflow-wrap: break-word; }
.ex-row .a { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--ink-muted); min-width: 0; }
.ex-row .arrow {
  width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.ex-row:hover .arrow { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- QUOTE ---------- */
.quote-block {
  padding: 160px 40px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quote-block .wrap {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: start;
}
.quote-block .mark {
  font-family: var(--serif); font-style: italic; font-size: 120px;
  line-height: .6; color: var(--ana);
}
.quote-block.nenad .mark { color: var(--nenad); }
.quote-block blockquote {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.3; color: var(--ink);
  text-wrap: pretty; max-width: 32ch;
}
.quote-block cite {
  display: block; margin-top: 32px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .25em;
  color: var(--ink-muted); font-style: normal;
}

/* ---------- VISIT ---------- */
.visit {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.visit__info { padding: 120px 64px; background: var(--bg-2); }
.visit__info h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(44px, 4.2vw, 64px); line-height: 1;
  margin-bottom: 48px;
}
.visit__info h2 em { font-style: italic; color: var(--ink-dim); }
.visit__block { margin-bottom: 36px; }
.visit__block .l {
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  color: var(--ink-muted); margin-bottom: 12px;
}
.visit__block .v {
  font-family: var(--serif); font-size: 20px; color: var(--ink);
  line-height: 1.5;
}
.visit__block .v a { border-bottom: 1px solid var(--line-strong); }
.visit__map {
  background: #000;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  border-left: 1px solid var(--line);
}
.visit__map .map-art {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.7)),
    repeating-linear-gradient(0deg,  rgba(255,255,255,.04) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 48px),
    radial-gradient(ellipse at 30% 40%, rgba(200,85,61,.18), transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(138,122,92,.16), transparent 60%),
    #080808;
}
.visit__map .pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center; color: #fff;
}
.visit__map .pin .dot {
  width: 14px; height: 14px; border-radius: 50%; background: var(--ana);
  margin: 0 auto 16px; box-shadow: 0 0 0 6px rgba(200,85,61,.2), 0 0 0 14px rgba(200,85,61,.1);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(200,85,61,.2), 0 0 0 14px rgba(200,85,61,.1); }
  50%      { box-shadow: 0 0 0 10px rgba(200,85,61,.3), 0 0 0 22px rgba(200,85,61,.0); }
}
.visit__map .pin .label {
  font-family: var(--serif); font-style: italic; font-size: 20px;
}
.visit__map .pin .sub {
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  color: var(--ink-dim); margin-top: 6px;
}
.visit__map .coords {
  position: absolute; bottom: 32px; left: 32px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  color: var(--ink-muted);
}

/* ---------- FOOTER ---------- */
footer {
  padding: 80px 40px 40px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
footer .row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
footer .brandcol .big {
  font-family: var(--serif); font-size: 40px; font-weight: 300;
  letter-spacing: .15em; text-transform: uppercase;
}
footer .brandcol p {
  margin-top: 16px; color: var(--ink-dim); max-width: 40ch; font-size: 14px;
}
footer h4 {
  font-family: var(--mono); font-size: 10px; letter-spacing: .25em;
  color: var(--ink-muted); font-weight: 400; margin-bottom: 20px;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer ul a { font-size: 14px; color: var(--ink-dim); transition: color .3s var(--ease); }
footer ul a:hover { color: var(--ink); }
footer .legal {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--ink-muted);
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  background: rgba(0,0,0,.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 64px 24px 24px;
  overflow: auto;
  overscroll-behavior: contain;
}
.lightbox.open { display: flex; }
.lightbox .lb-wrap {
  margin: auto;
  max-width: min(92vw, 1400px);
  max-height: calc(100vh - 88px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox .lb-cap {
  text-align: center;
  color: var(--ink-dim);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  max-width: 90vw;
}
.lightbox .lb-cap small {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--ink-muted);
}
.lightbox .lb-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10001;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--ink);
  opacity: .8;
  transition: opacity .3s var(--ease);
  padding: 12px 16px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  cursor: pointer;
}
.lightbox .lb-close:hover { opacity: 1; }

/* Body scroll-lock when lightbox is open */
html.lb-open,
body.lb-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Mobile — smaller padding, ensure image fits */
@media (max-width: 640px) {
  .lightbox {
    padding: 56px 12px 12px;
  }
  .lightbox .lb-wrap {
    max-height: calc(100vh - 72px);
    gap: 12px;
  }
  .lightbox img {
    max-height: calc(100vh - 140px);
  }
  .lightbox .lb-cap {
    font-size: 16px;
  }
  .lightbox .lb-close {
    top: 12px;
    right: 12px;
    font-size: 12px;
    padding: 10px 14px;
  }
}

/* ---------- RESPONSIVE ---------- */
/* Hide rotated hero meta labels before they can collide with hero content */
@media (max-width: 1400px) {
  .hero__meta { display: none; }
}
/* Medium screens — collapse nav link set */
@media (max-width: 1180px) {
  .nav__left, .nav__right a.nav__link,
  .nav__right .nav__locale { display: none; }
  .nav { grid-template-columns: 1fr auto 1fr; }
  .nav__right { justify-content: flex-end; }
}

@media (max-width: 900px) {
  .nav { padding: 18px 20px; grid-template-columns: auto 1fr auto; }
  .nav__left, .nav__right { display: none; }
  .brand { font-size: 16px; }
  .hero { grid-template-columns: 1fr; height: auto; }
  .hero__panel { min-height: 70vh; }
  .hero__rule { display: none; }
  .hero:hover .hero__panel { flex: auto; }
  .hero[data-expand] { grid-template-columns: 1fr; }
  .hero__center { display: none; }
  .hero__panel .content { padding: 32px 24px 48px; }
  .hero__panel h1 { max-width: 100%; }
  section { padding: 80px 20px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .statement .wrap { grid-template-columns: 1fr; gap: 20px; }
  .duet { grid-template-columns: 1fr; }
  .duet__side { padding: 48px 24px; }
  .duet__side.nenad { border-left: 0; border-top: 1px solid var(--line); }
  .works .grid { grid-template-columns: 1fr; gap: 32px; }
  .work.w-7, .work.w-5, .work.w-6, .work.w-4, .work.w-8, .work.w-12 { grid-column: span 1; }
  .work.offset-1, .work.offset-4 { grid-column-start: auto; }
  .work .caption { flex-direction: column; align-items: flex-start; gap: 6px; }
  .work .caption .meta { margin-top: 2px; }
  .ex-row { grid-template-columns: 60px 1fr auto; gap: 16px; }
  .ex-row .v, .ex-row .a { display: none; }
  .quote-block .wrap { grid-template-columns: 1fr; gap: 16px; }
  .quote-block .mark { font-size: 80px; }
  .visit { grid-template-columns: 1fr; }
  .visit__info { padding: 64px 24px; }
  .visit__map { min-height: 360px; border-left: 0; border-top: 1px solid var(--line); }
  footer .row { grid-template-columns: 1fr 1fr; }
  footer .legal { flex-direction: column; gap: 10px; }
}


/* =============================================================
   ENHANCED TRANSITIONS & MICRO-INTERACTIONS
   ============================================================= */

/* Smooth scroll-reveal — default for .reveal, .work, sections */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.2s var(--ease-long), transform 1.2s var(--ease-long);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* Stagger children inside revealed wrappers */
.reveal .wrap > * { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease-long) .1s, transform 1s var(--ease-long) .1s; }
.reveal.in .wrap > * { opacity: 1; transform: none; }
.reveal.in .wrap > *:nth-child(2) { transition-delay: .22s; }
.reveal.in .wrap > *:nth-child(3) { transition-delay: .34s; }

/* Hero panel initial settle (animation-based, no gating class needed) */
.hero__panel .content > * { animation: heroSettle 1.1s var(--ease-long) both; }
.hero__panel .content > *:nth-child(1) { animation-delay: .35s; }
.hero__panel .content > *:nth-child(2) { animation-delay: .55s; }
.hero__panel .content > *:nth-child(3) { animation-delay: .75s; }
.hero__panel .content > *:nth-child(4) { animation-delay: .95s; }
@keyframes heroSettle {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Hero center mark — gentle appear */
.hero__center { animation: fadeIn 1.4s var(--ease-long) 1.1s both; }

/* Nav fade in */
.nav { animation: navIn .9s var(--ease-long) .4s both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes navIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* Link underline sweep for text anchors inside prose */
.visit__block .v a,
.ex-row .t,
footer ul a {
  position: relative;
  transition: color .4s var(--ease);
}

/* CTA/enter — refined hover */
.hero__panel .enter,
.duet__side .cta {
  position: relative;
  overflow: hidden;
}
.hero__panel .enter::after,
.duet__side .cta::after {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  height: 1px; width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .6s var(--ease-long);
}
.hero__panel:hover .enter::after,
.duet__side:hover .cta::after,
.duet__side .cta:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Filter buttons — smoother active state */
.filter button {
  transition: background .5s var(--ease-long), color .5s var(--ease-long), letter-spacing .5s var(--ease-long);
}
.filter button.is-active { letter-spacing: .28em; }

/* Statement paragraphs — softer entrance */
.statement p { transition: color .6s var(--ease); }

/* Quote mark — subtle float */
.quote-block .mark {
  transition: transform 1s var(--ease-long), color .6s var(--ease);
}
.quote-block:hover .mark { transform: translateY(-4px) rotate(-2deg); }

/* Works — layered image zoom with caption glide */
.work .caption { transition: border-color .5s var(--ease); }
.work:hover .caption { border-top-color: var(--line-strong); }
.work .caption .title { transition: color .5s var(--ease), letter-spacing .5s var(--ease); }
.work[data-artist="ana"]:hover .caption .title { color: var(--ana-soft); }
.work[data-artist="nenad"]:hover .caption .title { color: var(--nenad-soft); }

/* Frame overlay — elegant dimmer on hover */
.work .frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.45) 100%);
  opacity: 0;
  transition: opacity .6s var(--ease-long);
  pointer-events: none;
}
.work:hover .frame::after { opacity: 1; }

/* Exhibition row arrow — slide in */
.ex-row .arrow svg { transition: transform .5s var(--ease-long); }
.ex-row:hover .arrow svg { transform: translateX(3px); }

/* Duet side — subtle separator glow */
.duet__side { transition: background .8s var(--ease); }
.duet__side.ana:hover { background: #131010; }
.duet__side.nenad:hover { background: #0f0e0c; }

/* Feature image — gentle breathing scale on idle */
@keyframes breathe {
  0%, 100% { transform: scale(1.0); }
  50%      { transform: scale(1.015); }
}
.duet__side .feature img { animation: breathe 12s ease-in-out infinite; }
.duet__side:hover .feature img { animation: none; }

/* Lightbox — smoother open */
.lightbox {
  opacity: 0;
  transition: opacity .5s var(--ease-long);
}
.lightbox.open { opacity: 1; }
.lightbox img {
  transform: scale(.96);
  opacity: 0;
  transition: transform .9s var(--ease-long) .1s, opacity .7s var(--ease-long) .1s;
}
.lightbox.open img { transform: scale(1); opacity: 1; }

/* Language toggle — micro interaction */
.lang-toggle .lang-opt { transition: opacity .35s var(--ease), color .35s var(--ease), transform .35s var(--ease); }
.lang-toggle:hover .lang-opt:not(.is-active) { opacity: .8; }

/* Map pin — enhanced pulse */
.visit__map .pin .label { transition: letter-spacing .6s var(--ease-long); }
.visit__map:hover .pin .label { letter-spacing: .02em; }

/* Back link on artist pages */
.back-link svg { transition: transform .5s var(--ease-long); }
.back-link:hover svg { transform: rotate(180deg) translateX(-4px); }

/* Artist-hero image — slow ken-burns */
@keyframes kenburns {
  0%   { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}
.artist-hero__img img { animation: kenburns 18s ease-in-out alternate infinite; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
