/* ============================================================
   ITAP 2084 — INVENTAIRE TECHNIQUE DE L'ARCHITECTURE DU REPLI
   SYSTÈME GRAPHIQUE : Swiss Brutalism / Manuel Technique
   Direction : Müller-Brockmann Grid · Noir & Blanc Absolu
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;500;600;700;800;900&family=IBM+Plex+Mono:wght@300;400;500;700&family=Barlow:wght@300;400;500&display=swap');

/* ── SYSTEM VARIABLES ───────────────────────────────────────── */
:root {
  --blk:        #000000;
  --wht:        #ffffff;
  --grey-10:    #1a1a1a;
  --grey-20:    #333333;
  --grey-50:    #808080;
  --grey-85:    #d9d9d9;
  --grey-93:    #ededed;
  --grey-97:    #f7f7f7;
  --rule:       1px solid #000;
  --rule-w:     3px solid #000;
  --rule-lg:    6px solid #000;
  --ff-cond:    'Barlow Condensed', sans-serif;
  --ff-mono:    'IBM Plex Mono', monospace;
  --ff-body:    'Barlow', sans-serif;
}

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

html {
  background: var(--wht);
  color: var(--blk);
  font-family: var(--ff-mono);
  font-size: 13px;
  line-height: 1.4;
  scroll-behavior: smooth;
}

body {
  background: var(--wht);
  min-height: 100vh;
  cursor: crosshair;
}

::selection {
  background: var(--blk);
  color: var(--wht);
}

a { color: var(--blk); text-decoration: none; }
button { cursor: crosshair; }

/* ── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--grey-93); }
::-webkit-scrollbar-thumb { background: var(--blk); }

/* ── UTILITIES ─────────────────────────────────────────────── */
.hidden { display: none !important; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease both; }

/* ── CURSOR PREVIEW ────────────────────────────────────────── */
#cursor-preview {
  position: fixed;
  pointer-events: none;
  z-index: 8000;
  opacity: 0;
  transition: opacity 0.12s ease;
  transform: translate(18px, -50%);
  display: flex;
  flex-direction: column;
  gap: 0;
}

#cursor-preview.show { opacity: 1; }

#cursor-img {
  width: 220px;
  height: 150px;
  object-fit: cover;
  border: var(--rule-w);
  display: block;
  /* Radiography / negative invert effect */
  filter: grayscale(1) invert(1) contrast(1.1);
}

#cursor-meta {
  background: var(--blk);
  color: var(--wht);
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: var(--rule-w);
  border-top: none;
}

/* ── INTRO ─────────────────────────────────────────────────── */
#intro {
  position: fixed;
  inset: 0;
  background: var(--blk);
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#intro-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

#intro-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 0 40px;
  max-width: 900px;
  width: 100%;
}

#intro-number {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--grey-50);
  letter-spacing: 0.3em;
  margin-bottom: 12px;
}

#intro-lines {
  border-left: 6px solid var(--wht);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.i-line {
  font-family: var(--ff-cond);
  font-size: clamp(40px, 8vw, 100px);
  font-weight: 900;
  color: var(--wht);
  line-height: 0.92;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-transform: uppercase;
}

.i-line.show {
  opacity: 1;
  transform: translateX(0);
}

#intro-stats-row {
  display: flex;
  gap: 0;
  margin-top: 32px;
  border: 1px solid rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.5s ease 0.2s;
}

#intro-stats-row.show { opacity: 1; }

.intro-stat {
  display: flex;
  flex-direction: column;
  padding: 12px 24px;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.intro-stat:last-child { border-right: none; }
.intro-stat-div { /* spacer */ }

.is-val {
  font-family: var(--ff-cond);
  font-size: 28px;
  font-weight: 800;
  color: var(--wht);
  line-height: 1;
}

.is-lbl {
  font-family: var(--ff-mono);
  font-size: 9px;
  color: var(--grey-50);
  letter-spacing: 0.2em;
  margin-top: 2px;
}

#intro-code {
  margin-top: 20px;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--grey-50);
  letter-spacing: 0.25em;
  opacity: 0;
  transition: opacity 0.5s ease 0.4s;
}

#intro-code.show { opacity: 1; }

#intro-skip-msg {
  margin-top: 40px;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--grey-50);
  letter-spacing: 0.2em;
  animation: skipBlink 1.8s ease-in-out infinite;
}

@keyframes skipBlink {
  0%, 100% { opacity: 0.3; }
  50%  { opacity: 0.9; }
}

/* ── HEADER ────────────────────────────────────────────────── */
#header {
  border-bottom: var(--rule-w);
  background: var(--wht);
}

.h-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 24px;
  border-bottom: var(--rule);
  background: var(--blk);
  flex-wrap: wrap;
  gap: 8px;
}

.mono-tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--wht);
}

.mono-tag.inv {
  background: var(--wht);
  color: var(--blk);
  padding: 1px 8px;
  font-weight: 700;
}

.h-tb-left, .h-tb-right {
  display: flex;
  gap: 24px;
  align-items: center;
}

.h-body {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: stretch;
  border-bottom: var(--rule);
}

@media (max-width: 860px) {
  .h-body { grid-template-columns: 1fr; }
  .h-num { display: none; }
  .h-divider-v { display: none; }
  .h-stats-block { border-left: none; border-top: var(--rule-w); }
}

.h-num {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--grey-50);
  padding: 20px 12px;
  border-right: var(--rule);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.2em;
}

.h-title-block {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 24px 28px;
}

.h-title-block h1 {
  font-family: var(--ff-cond);
  font-size: clamp(52px, 9vw, 120px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.h1-outline {
  display: block;
  color: var(--wht);
  -webkit-text-stroke: 3px var(--blk);
}

.h-divider-v {
  width: 3px;
  background: var(--blk);
  margin: 0 28px;
  align-self: stretch;
  flex-shrink: 0;
}

.h-subtitle-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.h-subtitle-main {
  font-family: var(--ff-cond);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blk);
}

.h-subtitle-sub {
  font-family: var(--ff-mono);
  font-size: 10px;
  line-height: 1.6;
  color: var(--grey-50);
  letter-spacing: 0.1em;
}

.h-stats-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: var(--rule-w);
}

.stat-cell {
  padding: 16px 20px;
  border-right: var(--rule);
  border-bottom: var(--rule);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-cell:nth-child(even) { border-right: none; }
.stat-cell:nth-child(3),
.stat-cell:nth-child(4) { border-bottom: none; }

.stat-cell--inv {
  background: var(--blk);
}

.stat-cell--inv .sc-val,
.stat-cell--inv .sc-lbl,
.stat-cell--inv .sc-desc { color: var(--wht) !important; }

.sc-val {
  font-family: var(--ff-cond);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--blk);
}

.sc-lbl {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--blk);
  font-weight: 500;
}

.sc-desc {
  font-family: var(--ff-mono);
  font-size: 8px;
  color: var(--grey-50);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* ── NAVIGATION ────────────────────────────────────────────── */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--wht);
  border-bottom: var(--rule-w);
}

#nav-inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

#nav-inner::-webkit-scrollbar { display: none; }

.nb {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 20px;
  border: none;
  border-right: var(--rule);
  background: var(--wht);
  color: var(--grey-50);
  transition: all 0.1s ease;
  flex-shrink: 0;
}

.nb:hover {
  background: var(--grey-93);
  color: var(--blk);
}

.nb.active {
  background: var(--blk);
  color: var(--wht);
}

.nb-num {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  opacity: 0.6;
}

.nb.active .nb-num { opacity: 0.5; color: var(--grey-85); }

.nb-txt {
  font-family: var(--ff-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ── MAIN / SECTIONS ───────────────────────────────────────── */
#main {
  padding: 40px 32px;
  min-height: 60vh;
}

.sec.active { display: block; }

/* ── SECTION HEADER ────────────────────────────────────────── */
.sec-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 16px 20px;
  margin-bottom: 28px;
}

.sh-num {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--grey-50);
  letter-spacing: 0.15em;
  grid-row: 1;
  white-space: nowrap;
}

.sh-title {
  font-family: var(--ff-cond);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blk);
  grid-row: 1;
}

.sh-rule {
  grid-column: 1 / -1;
  height: 3px;
  background: var(--blk);
  margin-top: -8px;
}

/* ── PUBLICATION GRID ──────────────────────────────────────── */
.pub-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  border: var(--rule-w);
}

@media (max-width: 800px) {
  .pub-grid { grid-template-columns: 1fr; }
}

/* COVER */
.pub-cover {
  border-right: var(--rule-w);
  display: flex;
  flex-direction: column;
}

.pc-inner {
  flex: 1;
  background: var(--blk);
  aspect-ratio: 210 / 297;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
}

.pc-cross {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pc-cross-h {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.pc-cross-v {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.08);
}

.pc-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(255,255,255,0.3);
  border-style: solid;
  border-width: 0;
}

.pc-corner-tl { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; }
.pc-corner-tr { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; }
.pc-corner-bl { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; }
.pc-corner-br { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; }

.pc-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border-left: 3px solid var(--wht);
  padding-left: 16px;
}

.pc-t1 {
  font-family: var(--ff-cond);
  font-size: 60px;
  font-weight: 900;
  color: var(--wht);
  line-height: 1;
  letter-spacing: -0.01em;
}

.pc-t2 {
  font-family: var(--ff-cond);
  font-size: 40px;
  font-weight: 900;
  color: var(--blk);
  -webkit-text-stroke: 1.5px var(--wht);
  line-height: 1;
  letter-spacing: -0.01em;
}

.pc-t3 {
  font-family: var(--ff-mono);
  font-size: 8px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.15em;
  line-height: 1.5;
  margin-top: 4px;
}

.pc-rule {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 6px 0;
}

.pc-t4 {
  font-family: var(--ff-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.2em;
}

.pc-specs {
  border-top: var(--rule-w);
  background: var(--blk);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}

.spec-row:last-child { border-bottom: none; }
.spec-row span:last-child { color: rgba(255,255,255,0.85); }

/* PUB INFO */
.pub-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pi-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--grey-50);
  padding: 16px 28px 8px;
  border-bottom: var(--rule);
}

.pi-title {
  font-family: var(--ff-cond);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 0.95;
  padding: 20px 28px;
  border-bottom: var(--rule);
}

.pi-body {
  padding: 20px 28px;
  border-bottom: var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pi-body p {
  font-family: var(--ff-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey-20);
  font-weight: 300;
  max-width: 540px;
}

.pi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 28px;
  border-bottom: var(--rule);
}

.tag {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--blk);
  border: 1px solid var(--blk);
  padding: 3px 10px;
  background: var(--wht);
  transition: all 0.1s;
}

.tag:hover {
  background: var(--blk);
  color: var(--wht);
}

.pi-actions {
  display: flex;
  gap: 0;
  padding: 20px 28px;
  border-bottom: var(--rule);
  flex-wrap: wrap;
  gap: 12px;
}

.btn-blk {
  background: var(--blk);
  color: var(--wht);
  border: var(--rule-w);
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 12px 24px;
  transition: all 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-blk:hover {
  background: var(--grey-10);
  box-shadow: 4px 4px 0 var(--grey-85);
}

.btn-wht {
  background: var(--wht);
  color: var(--blk);
  border: var(--rule-w);
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 12px 20px;
  transition: all 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-wht:hover {
  background: var(--grey-93);
  box-shadow: 4px 4px 0 var(--grey-85);
}

.btn-arr { font-size: 14px; }

/* TOC */
.pi-toc {
  border-bottom: var(--rule);
}

.toc-head {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--grey-50);
  padding: 12px 28px 8px;
  border-bottom: var(--rule);
  background: var(--grey-97);
}

.toc-item {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 8px 28px;
  border-bottom: 1px solid var(--grey-85);
  transition: background 0.1s;
}

.toc-item:last-child { border-bottom: none; }
.toc-item:hover { background: var(--grey-93); }

.tc-pg {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--grey-50);
  min-width: 70px;
  flex-shrink: 0;
}

.tc-sep {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--grey-85);
  padding: 0 12px;
  flex-shrink: 0;
}

.tc-tit {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--blk);
  font-weight: 500;
}

/* AUTHORS BLOCK */
.pi-authors-block {
  display: flex;
  align-items: stretch;
  background: var(--blk);
  margin-top: auto;
}

.piab-label {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.4);
  padding: 16px 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
}

.piab-names {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0;
}

.piab-name {
  font-family: var(--ff-cond);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--wht);
  padding: 16px 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
  flex: 1;
}

/* ── FILTER BAR ────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
  border: var(--rule-w);
  width: fit-content;
  overflow: hidden;
}

.fb-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--grey-50);
  padding: 8px 14px;
  border-right: var(--rule);
  background: var(--grey-97);
  white-space: nowrap;
}

.fb {
  background: var(--wht);
  border: none;
  border-right: var(--rule);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 8px 14px;
  color: var(--grey-50);
  transition: all 0.1s;
}

.fb:last-child { border-right: none; }
.fb:hover { background: var(--grey-93); color: var(--blk); }
.fb.active { background: var(--blk); color: var(--wht); }

/* ── DOCUMENT TABLE ────────────────────────────────────────── */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  border: var(--rule-w);
  font-family: var(--ff-mono);
}

.doc-table thead tr {
  background: var(--blk);
  color: var(--wht);
}

.doc-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 9px;
  letter-spacing: 0.2em;
  font-weight: 500;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.doc-table th:last-child { border-right: none; }

.doc-table tbody tr {
  border-bottom: var(--rule);
  transition: background 0.08s;
}

.doc-table tbody tr:last-child { border-bottom: none; }

.doc-table tbody tr:hover { background: var(--grey-93); }

.doc-table td {
  padding: 10px 16px;
  font-size: 11px;
  border-right: var(--rule);
  vertical-align: middle;
  letter-spacing: 0.04em;
}

.doc-table td:last-child { border-right: none; }

.dr { cursor: crosshair; }

.td-ref {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--grey-50);
  white-space: nowrap;
}

.td-title {
  color: var(--blk);
  font-weight: 500;
}

/* STATUS */
.st-on  { font-size: 9px; letter-spacing: 0.15em; color: var(--blk); font-weight: 700; border: 1px solid var(--blk); padding: 2px 7px; background: var(--wht); }
.st-off { font-size: 9px; letter-spacing: 0.15em; color: var(--grey-50); font-weight: 700; border: 1px solid var(--grey-50); padding: 2px 7px; }
.st-arc { font-size: 9px; letter-spacing: 0.15em; color: var(--wht); font-weight: 700; border: 1px solid var(--blk); padding: 2px 7px; background: var(--blk); }

/* USAGE TAGS */
.utag {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 2px 8px;
  font-weight: 700;
  white-space: nowrap;
}

.utag.sport    { background: var(--blk); color: var(--wht); }
.utag.loisirs  { background: var(--grey-93); color: var(--blk); border: 1px solid var(--grey-85); }
.utag.stockage { background: var(--wht); color: var(--blk); border: 1px solid var(--blk); }
.utag.abandon  { background: var(--grey-50); color: var(--wht); }

.td-actions { white-space: nowrap; }

.act-btn {
  display: inline-block;
  background: var(--wht);
  color: var(--blk);
  border: 1px solid var(--blk);
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  margin-right: 4px;
  transition: all 0.1s;
  text-decoration: none;
}

.act-btn:hover { background: var(--blk); color: var(--wht); }

/* ── EXPO GRID ─────────────────────────────────────────────── */
.expo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: var(--rule-w);
}

@media (max-width: 700px) {
  .expo-row { grid-template-columns: 1fr; }
}

.expo-blk {
  border-right: var(--rule-w);
  cursor: crosshair;
  display: flex;
  flex-direction: column;
  transition: background 0.1s;
}

.expo-blk:last-child { border-right: none; }
.expo-blk:hover { background: var(--grey-97); }

.eb-num {
  font-family: var(--ff-mono);
  font-size: 9px;
  color: var(--grey-50);
  letter-spacing: 0.15em;
  padding: 10px 16px;
  border-bottom: var(--rule);
  background: var(--grey-93);
}

.eb-img-wrap {
  border-bottom: var(--rule-w);
  overflow: hidden;
}

.eb-img-placeholder {
  height: 180px;
  background: var(--blk);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-cond);
  font-size: 32px;
  font-weight: 900;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.08em;
}

.eb-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eb-venue {
  font-family: var(--ff-cond);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--blk);
  line-height: 1;
}

.eb-city {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--grey-50);
}

.eb-desc {
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--grey-20);
  line-height: 1.6;
  font-weight: 300;
}

.eb-meta {
  display: flex;
  gap: 16px;
  border-top: var(--rule);
  padding-top: 8px;
  margin-top: 4px;
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--grey-50);
}

/* ── FOOTER ────────────────────────────────────────────────── */
#footer { background: var(--blk); }

.ft-rule {
  height: 6px;
  background: var(--blk);
}

.ft-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 32px;
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
}

/* ── MODALS ────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-bd {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  cursor: crosshair;
}

.modal-box {
  position: relative;
  z-index: 1;
  background: var(--wht);
  border: var(--rule-w);
  display: flex;
  flex-direction: column;
  max-height: 96vh;
  animation: mIn 0.2s ease both;
}

@keyframes mIn {
  from { opacity: 0; transform: scale(0.98) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-box-img { width: min(92vw, 920px); }
.modal-box-pdf { width: 96vw; height: 96vh; }

.modal-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: var(--rule-w);
  background: var(--blk);
  flex-shrink: 0;
}

.modal-hd span {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--wht);
}

.modal-cls {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--wht);
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  transition: all 0.1s;
}

.modal-cls:hover {
  background: var(--wht);
  color: var(--blk);
  border-color: var(--wht);
}

.modal-body {
  padding: 20px;
  display: flex;
  justify-content: center;
  overflow: auto;
  flex: 1;
}

.modal-body img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border: var(--rule-w);
}

.modal-ft {
  padding: 8px 16px;
  border-top: var(--rule);
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--grey-50);
  letter-spacing: 0.1em;
  background: var(--grey-97);
}

#pdf-frame {
  flex: 1;
  border: none;
  width: 100%;
  min-height: 0;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 600px) {
  #main { padding: 24px 16px; }
  .doc-table { font-size: 10px; }
  .doc-table td { padding: 8px 10px; }
  .ft-inner { flex-direction: column; gap: 4px; }
  .pub-grid { grid-template-columns: 1fr; }
  .piab-names { flex-direction: column; gap: 0; }
}
