/* ── NAFIR THEME — light panel over full-bleed background ── */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,700;1,400;1,700&family=Anonymous+Pro:ital,wght@0,400;0,700;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --panel-bg: rgba(222, 227, 230, 0.95);
  --ink:       #0a0a0a;
  --ink-mid:   #3a3a3a;
  --ink-light: #888;
  --ink-xlight:#bbb;
  --ph-bg:     #b8bfc4;
  --ph-bg2:    #c6cacc;
  --garamond:  'EB Garamond', Georgia, serif;
  --mono:      'Anonymous Pro', 'Courier New', monospace;
  --gap:       clamp(24px, 4vw, 56px);
  --max-w:     1120px;
}

html { scroll-behavior: smooth; }

body {
  background-color: #b8b0a4;
  background-image: url('assets/artwork-hero.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  font-family: var(--mono);
  /* background-attachment: fixed is disabled on mobile below */
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(180, 170, 158, 0.12);
  pointer-events: none;
  z-index: 0;
}

/* ── PANEL WRAP ── */
.panel-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 0 clamp(16px, 3vw, 40px);
  margin-bottom: clamp(24px, 4vw, 48px);
}
.panel-wrap.first {
  min-height: 100vh;
  align-items: center;
  padding-top: clamp(16px, 3vw, 40px);
  padding-bottom: clamp(16px, 3vw, 40px);
}

.panel {
  background: var(--panel-bg);
  backdrop-filter: blur(3px);
  width: 100%;
  max-width: var(--max-w);
  overflow: hidden;
}

/* ── PANEL NAV ── */
.panel-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.panel-nav .logo {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.panel-nav .location {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-align: center;
}
.panel-nav .nav-links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  list-style: none;
  align-items: center;
}
.panel-nav .nav-links a {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.2s;
}
.panel-nav .nav-links a:hover,
.panel-nav .nav-links a.active { color: var(--ink); }
.panel-nav .nav-links .dot::before {
  content: '•';
  margin-right: 5px;
  font-size: 0.5rem;
  vertical-align: middle;
  color: var(--ink);
}

/* Burger (mobile) */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  justify-self: end;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
}
@media (max-width: 680px) {
  .panel-nav { grid-template-columns: 1fr auto; }
  .panel-nav .location { display: none; }
  .panel-nav .nav-links { display: none; }
  .panel-nav .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--panel-bg);
    padding: 20px 28px;
    gap: 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
    z-index: 10;
  }
  .nav-burger { display: flex; }
}

/* ── PANEL SECTION LABEL ── */
.panel-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  display: block;
  margin-bottom: 14px;
}
.panel-label::before { content: '/ '; }

/* ── PANEL TITLE (giant bottom) ── */
.panel-big-title {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 0 0 0 24px;
  margin-top: auto;
  overflow: hidden;
}
.panel-big-title h1 {
  font-family: var(--garamond);
  font-size: clamp(4rem, 14vw, 12rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.85;
  color: var(--ink);
  margin-bottom: -0.06em;
  white-space: nowrap;
}
.panel-big-title .sub {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  padding-bottom: 1rem;
  align-self: flex-end;
}

/* ── PANEL BUTTON ── */
.pbtn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 22px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.pbtn:hover { background: var(--ink); color: var(--panel-bg); }
.pbtn:disabled { border-color: var(--ink-xlight); color: var(--ink-light); cursor: default; }
.pbtn:disabled:hover { background: transparent; color: var(--ink-light); }

/* ── FILTER BUTTONS ── */
.filter-btn {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,0.2);
  background: transparent;
  color: var(--ink-light);
  padding: 7px 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--ink);
  color: var(--panel-bg);
  border-color: var(--ink);
}

/* ── PLACEHOLDER TILE ── */
.ph-tile {
  width: 100%;
  background: var(--ph-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ph-tile .ph-label {
  font-family: monospace;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.28);
}

/* ── FOOTER ── */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 0 clamp(16px, 3vw, 40px) clamp(24px, 4vw, 48px);
}
.footer-inner {
  background: var(--panel-bg);
  width: 100%;
  max-width: var(--max-w);
  padding: 28px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }
.footer-copy {
  font-size: 0.6rem;
  color: var(--ink-light);
  letter-spacing: 0.06em;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.28s; }
