/* Batlabat — shared styles (nav, info panel) + project pages */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --fw-body: 300;
  --fz-ui: 11px;
  --ls-wide: 0.28em;
  --ls-normal: 0.14em;
  --ls-xwide: 0.38em;
  --line: rgba(255,255,255,0.08);
  --gut: 12px;
}

html, body { background: #000; color: #fff; font-family: var(--font); font-weight: var(--fw-body); }
a { color: inherit; }
img, video { display: block; }

/* ─── LOGO (top left) + NAV (bottom right) ───────────────── */
.logo {
  position: fixed; top: 1.5rem; left: 3.5vw; z-index: 6000; display: block;
  mix-blend-mode: difference; transition: opacity .7s;
}
.logo img { width: clamp(80px, 8vw, 120px); display: block; }

.nav {
  position: fixed; right: 3.5vw; bottom: 1.6rem; z-index: 6000;
  display: flex; align-items: center; gap: 2.4rem;
  mix-blend-mode: difference; transition: opacity .7s;
}
body.intro-on .nav, body.intro-on .logo { opacity: 0; pointer-events: none; }
.nav-link {
  font-size: var(--fz-ui); letter-spacing: var(--ls-wide); text-transform: uppercase;
  color: #fff; text-decoration: none; opacity: .85; position: relative; transition: opacity .3s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 100%;
  height: 1px; background: #fff; transition: right .35s ease;
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { right: 0; }
.nav-social { display: flex; gap: 1rem; align-items: center; }
.nav-social svg { width: 15px; height: 15px; display: block; fill: #fff; opacity: .6; transition: opacity .3s; }
.nav-social a:hover svg { opacity: 1; }

/* ─── INFO PANEL ─────────────────────────────────────────── */
.info-overlay {
  position: fixed; inset: 0; z-index: 7000;
  background: rgba(0,0,0,.85);
  opacity: 0; pointer-events: none; transition: opacity .4s;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.info-overlay.open { opacity: 1; pointer-events: all; }
.info-panel {
  position: absolute; top: 0; right: 0;
  width: min(480px, 90vw); height: 100%;
  background: #000; border-left: 1px solid var(--line);
  padding: 5rem 3rem 4rem;
  transform: translateX(100%);
  transition: transform .55s cubic-bezier(0.76,0,0.24,1);
  overflow-y: auto; display: flex; flex-direction: column; gap: 2.8rem;
}
.info-overlay.open .info-panel { transform: translateX(0); }
.info-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font: inherit; font-size: var(--fz-ui); letter-spacing: var(--ls-wide); text-transform: uppercase;
  color: rgba(255,255,255,.35); background: none; border: none; cursor: pointer; transition: color .3s;
}
.info-close:hover { color: #fff; }
.about-label {
  font-size: var(--fz-ui); letter-spacing: var(--ls-wide); text-transform: uppercase;
  color: rgba(255,255,255,.3); display: block; margin-bottom: 1rem;
}
.about-photo img { width: 100%; height: auto; display: block; filter: grayscale(20%) brightness(.9); }
.about-bio { font-size: clamp(13px,1.4vw,16px); line-height: 1.7; color: rgba(255,255,255,.7); }
.about-meta { display: flex; flex-direction: column; gap: .5rem; }
.about-meta-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-size: var(--fz-ui); letter-spacing: var(--ls-normal); text-transform: uppercase;
  color: rgba(255,255,255,.3); padding: .6rem 0; border-bottom: 1px solid var(--line);
}
.about-meta-row span:last-child { color: rgba(255,255,255,.55); text-align: right; }
.about-contact a {
  font-size: clamp(12px,1.3vw,15px); letter-spacing: .06em;
  color: rgba(255,255,255,.55); text-decoration: none; transition: color .3s;
}
.about-contact a:hover { color: #fff; }
.about-exhibitions { display: flex; flex-direction: column; gap: .4rem; }
.exh-row { font-size: var(--fz-ui); letter-spacing: var(--ls-normal); color: rgba(255,255,255,.35); line-height: 1.8; }
.exh-row em { color: rgba(255,255,255,.55); font-style: normal; }

/* ═══ PROJECT PAGE ═══════════════════════════════════════ */
.p-hero { position: relative; height: 100vh; height: 100svh; padding: var(--gut); }
.p-hero-media { position: relative; width: 100%; height: 100%; overflow: hidden; background: #0d0d0d; }
.p-hero-media img, .p-hero-media video { width: 100%; height: 100%; object-fit: cover; }
.p-hero-media::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.18); }
.p-hero h1 {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 6vw; z-index: 2;
  font-size: clamp(30px, 5vw, 80px); font-weight: 300; letter-spacing: .04em;
  text-transform: uppercase; line-height: 1; text-shadow: 0 2px 40px rgba(0,0,0,.35);
}

.p-desc { padding: 22vh 8vw 18vh; text-align: center; }
.p-desc p {
  max-width: 1050px; margin: 0 auto;
  font-size: clamp(19px, 2.1vw, 32px); line-height: 1.35; font-weight: 300; letter-spacing: .005em;
}
.p-credits {
  margin: 4.5rem auto 0; display: inline-grid; grid-template-columns: auto auto; gap: .7rem 2.2rem;
  text-align: left; font-size: var(--fz-ui); letter-spacing: var(--ls-wide); text-transform: uppercase;
}
.p-credits dt { color: rgba(255,255,255,.35); }
.p-credits dd { color: rgba(255,255,255,.8); }

.p-media { display: flex; flex-direction: column; gap: var(--gut); padding: 0 var(--gut); }
.p-row { display: flex; gap: var(--gut); justify-content: center; }
.p-cell { position: relative; overflow: hidden; background: #0d0d0d; min-width: 0; }
.p-cell img, .p-cell video { width: 100%; height: 100%; object-fit: cover; }
.p-row.single .p-cell { max-width: calc(50% - var(--gut) / 2); }
.p-cell .sound {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  font: 300 10px/1 var(--font); letter-spacing: .2em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,.45); border: 0; padding: 8px 10px; cursor: pointer;
  opacity: .0; transition: opacity .3s;
}
.p-cell:hover .sound, .p-cell .sound.on { opacity: 1; }

.p-next {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem;
  min-height: 70vh; text-decoration: none; color: #fff; text-align: center; padding: 0 6vw;
}
.p-next small {
  font-size: var(--fz-ui); letter-spacing: var(--ls-wide); text-transform: uppercase; color: rgba(255,255,255,.4);
}
.p-next span {
  font-size: clamp(28px, 4.6vw, 72px); letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  opacity: .35; filter: blur(2px); transition: opacity .5s, filter .5s;
}
.p-next:hover span { opacity: 1; filter: blur(0); }

.site-footer {
  padding: 2.5rem 3.5vw 5rem; border-top: 1px solid var(--line);
  font-size: var(--fz-ui); letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.28);
}

/* ─── MOBILE ─────────────────────────────────────────────── */
@media (max-width: 760px) {
  :root { --gut: 8px; }
  .nav { gap: 1.4rem; right: 5vw; }
  .logo { left: 5vw; }
  .p-desc { padding: 14vh 7vw 12vh; }
  .p-row { flex-direction: column; }
  .p-row .p-cell { flex: none !important; width: 100%; }
  .p-row.single .p-cell { max-width: none; }
  .p-credits { grid-template-columns: auto; gap: .3rem; text-align: center; }
  .p-credits dd { margin-bottom: .7rem; }
  .info-panel { padding: 4.5rem 1.8rem 3rem; }
}

/* ─── VIDEO FULL SCREEN (double-click / tap) ─────────────── */
.can-full { cursor: zoom-in; }
.is-full {
  position: fixed !important; inset: 0 !important; z-index: 9500 !important;
  width: 100vw !important; height: 100vh !important; height: 100dvh !important;
  max-width: none !important; aspect-ratio: auto !important; flex: none !important;
  margin: 0 !important; padding: 0 !important; background: #000 !important; cursor: zoom-out;
}
.is-full::after { display: none !important; }
.is-full video { width: 100% !important; height: 100% !important; object-fit: contain !important; }
.is-full .sound, .is-full .full-hint { display: none !important; }
body.vfull { overflow: hidden; }
body.vfull .nav, body.vfull .logo { opacity: 0; pointer-events: none; }
.p-ph { background: #0d0d0d; min-width: 0; }
@media (max-width: 760px) { .p-row .p-ph { flex: none !important; width: 100%; } }
.p-cell.can-full .full-hint {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; pointer-events: none;
  font: 300 10px/1 var(--font); letter-spacing: .2em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,.45); padding: 8px 10px; opacity: 0; transition: opacity .3s;
}
@media (hover: hover) { .p-cell.can-full:hover .full-hint { opacity: 1; } }
