/* Design follows Gabriel Matula's exhibition texts (Nov 2026): near-black page lit by a soft grey
   spotlight from above, serif small-caps headings (Athelas; EB Garamond where Athelas is missing),
   DM Sans for reading, no colour accent. Layout idea: a dark gallery wall. Tablet-first: the visitor stands at the print, so the
   photo page shows a small confirming thumbnail and gives the space to reading.
   Single dark theme by choice. */
/* Adobe Fonts web project: once a <link> to use.typekit.net is in index.html, the families
   spalla / athelas / din-2014 load from there and take over.
   Gabriel's fonts: Spalla Semibold (main titles), Athelas (smaller titles), DIN 2014 (texts).
   Installed copies are used first; licensed web files go in fonts/ (see fonts/README.md). */
@font-face { font-family: "Spalla"; font-weight: 600; font-display: swap;
  src: local("Spalla SemiBold"), local("Spalla-SemiBold"), url("fonts/Spalla-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Athelas"; font-weight: 400; font-display: swap;
  src: local("Athelas"), local("Athelas-Regular"), url("fonts/Athelas-Regular.woff2") format("woff2"); }
@font-face { font-family: "Athelas"; font-weight: 400; font-style: italic; font-display: swap;
  src: local("Athelas Italic"), local("Athelas-Italic"), url("fonts/Athelas-Italic.woff2") format("woff2"); }
@font-face { font-family: "DIN 2014"; font-weight: 300; font-display: swap;
  src: local("DIN 2014 Light"), local("DIN2014-Light"), url("fonts/DIN2014-Light.woff2") format("woff2"); }
@font-face { font-family: "DIN 2014"; font-weight: 400; font-display: swap;
  src: local("DIN 2014"), local("DIN2014-Regular"), url("fonts/DIN2014-Regular.woff2") format("woff2"); }
@font-face { font-family: "DIN 2014"; font-weight: 600; font-display: swap;
  src: local("DIN 2014 Bold"), local("DIN2014-Bold"), url("fonts/DIN2014-Bold.woff2") format("woff2"); }
:root {
  --wall: #0f0f0f;
  --panel: #191919;
  --line: #2e2e2e;
  --bone: #ececec;
  --ash: #9b9b9b;
  --blood: #ececec; /* the accent is plain light grey, as in the printed texts */
  --title: "spalla", "Spalla", "Italiana", "Didot", Georgia, serif;
  --display: "athelas", "Athelas", "EB Garamond", Georgia, serif;
  --body: "din-2014", "DIN 2014", "Barlow", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 3.4vw, 40px);
  --bar-h: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--wall); color: var(--bone);
  font: 300 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blood); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; margin: 0; }
.label { font: 600 12px/1.2 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--ash); }

/* Layout skeleton, preview only */
.sk { display: grid; gap: 12px; margin: 6px 0 22px; }
.sk span { display: block; height: 14px; border-radius: 2px; background: #2a2622; }
.sheet h3 .sk span { height: 22px; }

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 5; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  background: rgba(5,5,5,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.wordmark { text-decoration: none; font: 600 13px/1.2 var(--body); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.wordmark span { color: var(--ash); margin-left: .9em; font-weight: 400; }
@media (max-width: 480px) { .wordmark span { display: none; } }
.jump-btn {
  background: none; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap;
  padding: 0 20px; height: 44px; font: 600 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
}
.jump-btn::before { content: "#  "; color: var(--blood); }

main { padding: 0 var(--gutter) 48px; max-width: 1280px; margin: 0 auto; outline: none; }

/* Home */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); display: grid; gap: 22px; justify-items: start; }
.hero h1 { font-size: clamp(48px, 9vw, 104px); line-height: .95; letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--blood); }
.big-jump {
  background: var(--blood); border: 0; padding: 18px 28px; min-height: 64px; text-align: left;
  font: 600 15px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; display: grid; gap: 6px;
}
.big-jump small { font: 400 14px/1.3 var(--body); letter-spacing: 0; text-transform: none; opacity: .85; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 36px 0 16px; padding-top: 18px; border-top: 1px solid var(--line); }

.series-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.series-card { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; text-decoration: none; background: var(--panel); padding: 12px; min-height: 120px; }
.series-card img { width: 110px; aspect-ratio: 3/4; object-fit: cover; }
.series-card h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.05; margin-top: 8px; }

/* Grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; } }
.tile { text-decoration: none; display: grid; gap: 8px; }
.tile .ph { position: relative; background: var(--panel); }
.tile img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.tile .num {
  position: absolute; left: 0; top: 0; min-width: 40px; padding: 9px 10px;
  background: var(--wall); font: 600 15px/1 var(--body); font-variant-numeric: tabular-nums; text-align: center;
}
.tile .dots { position: absolute; right: 8px; bottom: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--blood); box-shadow: 0 0 0 3px rgba(178,64,47,.35); }
.tile .t { font-size: 14px; line-height: 1.3; color: var(--ash); }

/* Series page */
.series-head { display: grid; gap: 28px; padding: 16px 0 28px; }
@media (min-width: 900px) { .series-head { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.series-head h1 { font-size: clamp(44px, 7vw, 80px); line-height: 1; margin: 10px 0 18px; }
.series-head .intro { color: var(--ash); max-width: 62ch; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font: 600 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--ash); margin-top: 12px; }
.back::before { content: "\2190"; font-size: 16px; letter-spacing: 0; }

.insp { margin: 10px 0 0; background: var(--panel); border-left: 3px solid var(--blood); padding: 18px; display: grid; grid-template-columns: 120px 1fr; gap: 18px; }
.insp img, .insp .slot { width: 120px; aspect-ratio: 3/4; object-fit: cover; background: #2a2622; }
.insp h3 { font-size: 24px; font-style: italic; line-height: 1.15; margin: 0 0 4px; }
.insp .meta { color: var(--ash); font-size: 14px; }
.insp .note { font-size: 16px; margin-top: 8px; }
.insp .note p { margin: 0 0 .6em; }
.insp .credit { font-size: 12px; color: var(--ash); margin: 10px 0 0; border-top: 1px solid var(--line); padding-top: 8px; }

/* ---------- Photo page (tablet first) ---------- */
body.on-work main { padding-bottom: 120px; }
.work { display: grid; gap: 28px; padding-top: 28px; }
.confirm { display: grid; gap: 14px; align-content: start; }
.thumb { position: relative; padding: 0; border: 0; background: var(--panel); width: 100%; }
.thumb img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.fs-ic { position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; background: rgba(10,9,8,.75); }
.fs-ic::before { content: ""; position: absolute; inset: 10px; border: 2px solid var(--bone); }
.confirm-meta { display: flex; align-items: baseline; gap: 12px; }
.confirm-meta .no { font: 400 56px/1 var(--display); font-variant-numeric: tabular-nums; }
.explore {
  min-height: 56px; border: 1px solid var(--bone); background: none; padding: 0 16px;
  font: 600 13px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase;
}
.read { max-width: 68ch; }
.read h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.02; margin: 8px 0 26px; }
.body { font-size: 20px; line-height: 1.65; }
.body p { margin: 0 0 1em; }
.block { margin-top: 30px; }
.block > .label { display: block; margin-bottom: 8px; }
.hs-list { list-style: none; padding: 0; margin: 0; display: grid; }
.hs-list button {
  width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line);
  padding: 12px 0; display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: center; min-height: 58px; font-size: 18px;
}
.hs-list .sk { margin: 0; }
.hs-list .n { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--blood); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.hs-list .go { color: var(--ash); }

/* Phone: thumbnail beside the number, text below */
@media (max-width: 699px) {
  .confirm { grid-template-columns: 96px 1fr; align-items: end; column-gap: 16px; }
  .thumb { grid-row: span 2; }
  .confirm-meta { flex-direction: column; gap: 4px; }
  .confirm-meta .no { font-size: 44px; }
  .explore { min-height: 48px; }
  .body { font-size: 18px; }
  .insp { grid-template-columns: 84px 1fr; }
  .insp img, .insp .slot { width: 84px; }
}
/* Tablet and up: thumbnail column on the left, reading column on the right */
@media (min-width: 700px) {
  .work { grid-template-columns: 220px minmax(0, 1fr); gap: 44px; }
  .confirm { position: sticky; top: calc(var(--bar-h) + 24px); }
}
@media (min-width: 1100px) { .work { grid-template-columns: 250px minmax(0, 1fr); gap: 64px; } }

/* Bottom pager, fixed on the photo page */
.pager {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 4;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(5,5,5,.96); border-top: 1px solid var(--line);
}
.pager a { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 64px; font-size: 16px; font-weight: 600; }
.pager a img { width: 46px; height: 60px; object-fit: cover; }
.pager a .label { display: block; font-size: 11px; margin-bottom: 2px; }
.pager a.next { justify-content: flex-end; text-align: right; }
.pager-mid { background: none; border: 1px solid var(--line); border-radius: 999px; height: 48px; padding: 0 20px; font-size: 15px; font-variant-numeric: tabular-nums; }

/* Fullscreen */
.fs { position: fixed; inset: 0; z-index: 20; background: #000; display: grid; grid-template-rows: auto 1fr auto; touch-action: pan-y; }
.fs[hidden] { display: none; }
.fs-top { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; }
.fs-count { font: 600 13px/1 var(--body); letter-spacing: .14em; color: var(--ash); margin-right: auto; font-variant-numeric: tabular-nums; }
.fs-toggle, .fs-close {
  background: rgba(255,255,255,.1); border: 0; border-radius: 999px; min-height: 48px; padding: 0 20px;
  font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
}
.fs-toggle[hidden] { display: none; }
.fs-toggle[aria-pressed="true"] { background: var(--blood); }
.fs-close { width: 48px; padding: 0; font-size: 28px; font-weight: 400; }
.fs-stage { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 0; }
.fs-frame { position: relative; }
.fs-frame img { user-select: none; -webkit-user-drag: none; }
.fs-dots { position: absolute; inset: 0; }
.fs-dots.off .dot { opacity: 0; pointer-events: none; }
.dot {
  position: absolute; width: 48px; height: 48px; margin: -24px 0 0 -24px; border: 0; padding: 0;
  background: none; display: grid; place-items: center; transition: opacity .25s;
}
.dot span {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(178,64,47,.92); border: 2px solid var(--bone);
  display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--bone);
  animation: pulse 2.4s infinite;
}
.dot.active span { background: var(--bone); color: #000; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(236,230,219,.55); } 70% { box-shadow: 0 0 0 14px rgba(236,230,219,0); } 100% { box-shadow: 0 0 0 0 rgba(236,230,219,0); } }
@media (prefers-reduced-motion: reduce) { .dot span { animation: none; } }
.fs-hint { margin: 0; padding: 10px 18px 16px; min-height: 48px; text-align: center; color: var(--ash); font-size: 15px; }
.fs-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 80px; border: 0;
  background: rgba(0,0,0,.35); font-size: 42px; line-height: 1;
}
.fs-nav.prev { left: 0; } .fs-nav.next { right: 0; }
@media (max-width: 699px) { .fs-nav { display: none; } }
.sheet {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(600px, calc(100% - 24px)); background: rgba(18,17,16,.97); border-top: 3px solid var(--blood);
  padding: 22px 56px 22px 24px; max-height: 48%; overflow: auto;
}
.sheet[hidden] { display: none; }
.sheet h3 { font-size: 28px; margin-bottom: 8px; }
.sheet p { margin: 0 0 .6em; }
.sheet .sk { margin-bottom: 8px; }
.sheet-close { position: absolute; top: 8px; right: 8px; width: 48px; height: 48px; background: none; border: 0; font-size: 28px; }

/* Number jump */
.jump { position: fixed; inset: 0; z-index: 30; background: rgba(5,5,5,.82); display: grid; place-items: center; padding: 16px; }
.jump[hidden] { display: none; }
.jump-box { background: var(--panel); border-top: 3px solid var(--blood); padding: 24px; width: min(380px, 100%); display: grid; gap: 12px; }
.jump-box label { font-family: var(--display); font-size: 30px; }
.jump-hint { margin: 0; color: var(--ash); font-size: 15px; }
.jump-box input {
  background: var(--wall); border: 1px solid var(--line); color: var(--bone); font: 500 42px/1 var(--body);
  font-variant-numeric: tabular-nums; text-align: center; padding: 12px; width: 100%;
}
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keypad button { min-height: 60px; background: var(--wall); border: 1px solid var(--line); font-size: 24px; }
.keypad .go { background: var(--blood); border-color: var(--blood); font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.jump-err { margin: 0; min-height: 1.4em; color: #e0806f; font-size: 14px; }

.foot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ash); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot a { color: var(--ash); }
.credits-list { list-style: none; padding: 0; display: grid; gap: 16px; max-width: 70ch; }
.credits-list li { border-top: 1px solid var(--line); padding-top: 14px; }

/* Password screen (gate.js) */
html:not(.unlocked) body > :not(#gate) { display: none !important; }
#gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: var(--wall); }
.gate-box { width: min(380px, 100%); display: grid; gap: 14px; }
.gate-box h1 { font-size: clamp(44px, 9vw, 72px); line-height: .95; margin-bottom: 18px; }
.gate-box h1 em { font-style: italic; color: var(--blood); }
.gate-box label { font: 600 12px/1.2 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--ash); }
.gate-box input { background: var(--panel); border: 1px solid var(--line); color: var(--bone); font: 400 22px/1 var(--body); padding: 14px; width: 100%; }
.gate-box button { min-height: 56px; background: var(--blood); border: 0; font: 600 14px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.gate-box p { margin: 0; min-height: 1.4em; color: #e0806f; font-size: 14px; }

/* Main menu */
.menu { display: flex; gap: clamp(14px, 2.4vw, 32px); margin-right: auto; margin-left: clamp(16px, 3vw, 40px); }
.menu a { text-decoration: none; font: 600 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--ash); padding: 16px 0; border-bottom: 2px solid transparent; }
.menu a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--blood); }
@media (max-width: 860px) { .wordmark span { display: none; } }
@media (max-width: 560px) {
  .bar { height: auto; flex-wrap: wrap; padding-top: 10px; row-gap: 0; }
  .menu { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .menu a { padding: 12px 0; font-size: 11px; letter-spacing: .12em; }
  .confirm { position: static; }
}

/* QR code under the explore button (tablet and up) */
.qr { margin: 10px 0 0; padding: 14px; background: var(--bone); color: #111; display: grid; gap: 8px; justify-items: center; width: 100%; }
.qr svg { width: 100%; max-width: 168px; height: auto; display: block; }
.qr svg path, .qr svg rect[fill="black"] { fill: #111; }
.qr figcaption { font: 600 12px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; text-align: center; }
@media (max-width: 699px) { .qr { display: none; } }

/* Concept and photographer pages */
.page { display: grid; gap: 32px; padding: 20px 0 8px; }
.page.has-img { grid-template-columns: minmax(200px, 340px) minmax(0, 1fr); align-items: start; }
@media (max-width: 699px) { .page.has-img { grid-template-columns: 1fr; } .page-img { max-width: 260px; } }
.page-img { width: 100%; }
.page-read { max-width: 68ch; }
.page-read h1 { font-size: clamp(44px, 6vw, 80px); line-height: 1; margin: 12px 0 28px; }

/* Film grain: sparse fine specks on the page surfaces only; photos sit on top and stay clean.
   Lighter on phones, where the screen is held close. */
:root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  .3 0 0 0 -.165'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (max-width: 699px) { :root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  .225 0 0 0 -.135'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); } }
body, .bar, .panel-grain, .insp, .series-card, .pager, .sheet, .jump-box, #gate, .iv-box, .iv-text {
  background-image: var(--grain);
  background-size: 160px 160px;
}

/* Tablet confirm column: thumbnail beside the number so the QR fits on screen */
@media (min-width: 700px) {
  .confirm { grid-template-columns: 120px 1fr; column-gap: 16px; align-items: end; }
  .confirm .thumb { grid-row: span 1; }
  .confirm-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .confirm .explore, .confirm .qr { grid-column: 1 / -1; }
  .qr svg { max-width: 150px; }
}

/* QR, integrated: light code on the dark page, caption beside it */
.qr { background: none; color: var(--bone); padding: 18px 0 0; margin: 6px 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: center; justify-items: start; }
.qr svg { width: 104px; max-width: none; height: auto; }
.qr svg path { fill: var(--bone); opacity: .9; }
.qr figcaption { text-align: left; color: var(--ash); font-size: 11px; line-height: 1.5; }
/* No QR on phones: the visitor is already holding the page. */
@media (max-width: 699px) { .qr { display: none; } }


/* Wide screens: detail note sits at the side so it doesn't cover the lower part of the photo */
@media (min-width: 1000px) {
  .sheet { left: auto; right: 16px; bottom: auto; top: 50%; transform: translateY(-50%); width: 320px; max-height: 70%; }
}

/* Inspiration card is a button that opens the large view */
button.insp { width: 100%; text-align: left; color: inherit; font: inherit; border-top: 0; border-right: 0; border-bottom: 0; cursor: pointer; transition: background .2s; }
button.insp:hover { background-color: #1a1816; }
.insp .cap { display: block; }
.insp .cap h3 { display: block; }
.insp .meta, .insp .note { display: block; }
.insp .more-link { display: inline-block; margin-top: 12px; font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--bone); border-bottom: 1px solid var(--blood); padding-bottom: 4px; }

/* Inspiration large view */
.iv { position: fixed; inset: 0; z-index: 25; background: rgba(5,5,5,.88); display: grid; place-items: center; padding: clamp(12px, 3vw, 40px); }
.iv[hidden] { display: none; }
.iv-box { position: relative; width: min(1180px, 100%); height: min(860px, 100%); background: var(--panel); border-top: 3px solid var(--blood);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); overflow: hidden; }
.iv.no-img .iv-box { grid-template-columns: 1fr; width: min(760px, 100%); }
.iv-img { background: #000; display: grid; place-items: center; min-height: 0; padding: 16px; }
.iv-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.iv-text { overflow: auto; padding: 40px 36px 36px; }
.iv-text h2 { font-size: clamp(32px, 3.6vw, 46px); font-style: italic; line-height: 1.05; margin: 10px 0 8px; }
.iv-text .meta { color: var(--ash); margin: 0 0 22px; font-size: 16px; }
.iv-text .lead { font-size: 20px; line-height: 1.6; }
.iv-text .more { color: var(--ash); font-size: 17px; line-height: 1.65; margin-top: 8px; }
.iv-text p { margin: 0 0 1em; }
.iv-text .credit { font-size: 13px; color: var(--ash); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 20px; }
.iv-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(15,14,13,.85); font-size: 28px; }
@media (max-width: 799px) {
  .iv { padding: 0; }
  .iv-box { grid-template-columns: 1fr; grid-template-rows: 42% 1fr; height: 100%; border-top: 0; }
  .iv-text { padding: 24px 20px 32px; }
  .iv-text .lead { font-size: 18px; }
}
.iv-img { overflow: hidden; height: 100%; }
@media (max-width: 799px) { .iv-img img { max-height: calc(42vh - 32px); } }
@media (min-width: 800px) { .iv-img img { max-height: calc(min(860px, 100vh - 80px) - 40px); } }

/* Collaborators */
.collab-head { padding-top: 12px; }
.collab-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 18px; }
@media (min-width: 900px) { .collab-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.collab { display: grid; gap: 4px; text-decoration: none; color: inherit; }
.collab .ph { aspect-ratio: 1; background: var(--panel); display: grid; place-items: center; overflow: hidden; margin-bottom: 10px; }
.collab .ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .3s; }
a.collab:hover .ph img { filter: none; }
.collab .mono { font: 400 clamp(36px, 5vw, 56px)/1 var(--display); color: var(--ash); letter-spacing: .02em; }
.collab .role { font: 600 11px/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--ash); }
.collab .name { font: 400 24px/1.15 var(--display); }
a.collab .name::after { content: " \2197\FE0E"; font: 400 14px var(--body); color: var(--ash); }
@media (max-width: 860px) { .menu { gap: 14px; } .menu a { letter-spacing: .1em; } }
@media (max-width: 560px) {
  .menu { justify-content: flex-start; gap: 20px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { white-space: nowrap; font-size: 11px; letter-spacing: .1em; }
}
@media (max-width: 560px) {
  .menu { justify-content: space-between; gap: 8px; }
  .menu a { font-size: 10px; letter-spacing: .03em; }
}

/* QR: full column width, caption underneath */
.qr { grid-template-columns: 1fr; gap: 10px; justify-items: stretch; }
.qr svg { width: 100%; max-width: none; }
.qr figcaption { text-align: center; font-size: 12px; letter-spacing: .16em; }

/* Detail dots: plain translucent white, no numbers, no pulse */
.dot span { width: 18px; height: 18px; background: rgba(255,255,255,.32); border: 1.5px solid rgba(255,255,255,.8);
  box-shadow: 0 0 0 1px rgba(0,0,0,.18), 0 1px 6px rgba(0,0,0,.25); animation: none; }
.dot.active span { background: rgba(255,255,255,.92); border-color: #fff; }
.dot:hover span { background: rgba(255,255,255,.6); }

/* List of details inside the panel */
.fs-list { list-style: none; padding: 0; margin: 6px 0 0; }
.fs-list button { width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 14px 0; min-height: 52px; font-size: 18px; }
.sheet.listing h3 { font: 600 12px/1.2 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--ash); margin-bottom: 4px; }
.sheet.listing .sheet-close { display: none; }

/* Landscape tablets: photo on the left, details panel on the right, never over the photo */
@media (min-width: 900px) and (orientation: landscape) {
  .fs.has-hs { grid-template-columns: minmax(0, 1fr) 360px; }
  .fs.has-hs:has(.sheet[hidden]) { grid-template-columns: minmax(0, 1fr); }
  .fs.has-hs .fs-top { grid-column: 1 / -1; }
  .fs.has-hs .fs-stage { grid-column: 1; grid-row: 2; }
  .fs.has-hs .fs-hint { grid-column: 1; grid-row: 3; }
  .fs.has-hs .sheet { position: static; transform: none; left: auto; right: auto; top: auto; bottom: auto; width: auto; max-height: none;
    grid-column: 2; grid-row: 2 / 4; margin: 0 16px 16px 0; overflow: auto; align-self: stretch; padding: 26px 56px 26px 26px; }
  .fs.has-hs .sheet.listing { padding-right: 26px; }
  .fs.has-hs .fs-nav.next { right: 376px; }
  .fs.has-hs:has(.sheet[hidden]) .fs-nav.next { right: 0; }
}

/* Top bar alignment: menu centred between wordmark and button; active underline sits on the bar's bottom line */
.bar { align-items: stretch; }
.wordmark, .jump-btn { align-self: center; }
.menu { margin: 0 auto; align-items: stretch; }
.menu a { display: flex; align-items: center; padding: 2px 0 0; margin-bottom: -1px; }
@media (max-width: 560px) {
  .bar { padding-top: 0; column-gap: 12px; }
  .wordmark { padding: 14px 0; }
  .jump-btn { height: 34px; padding: 0 14px; font-size: 12px; }
  .menu { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .menu a { padding: 11px 0 9px; }
}


/* ================= Gabriel's design (Nov 2026) ================= */
body { background-color: var(--wall); }
/* The grey spotlight from the top of the printed pages */
body::before {
  content: ""; position: fixed; left: 0; right: 0; top: 0; height: 75vh; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(150,150,150,.30), rgba(90,90,90,.10) 45%, rgba(0,0,0,0) 75%);
}
strong, b { font-weight: 600; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; }
.sc, .read h1, .page-read h1, .sheet h3, .insp h3, .iv-text h2, .jump-box label, .collab .name {
  font-variant-caps: small-caps; font-style: normal; letter-spacing: .02em;
}
.label { font: 400 11px/1.3 var(--body); letter-spacing: .2em; }
:focus-visible { outline-color: var(--bone); }

/* Top bar: the exhibition logo as the wordmark */
.bar { background: rgba(15,15,15,.88); border-bottom-color: rgba(255,255,255,.08); }
.wordmark { display: block; color: var(--bone); }
.wordmark svg { display: block; height: 34px; width: auto; }
.menu a { font: 400 11px/1 var(--body); letter-spacing: .2em; }
.menu a[aria-current="page"] { border-bottom-color: var(--bone); }
.jump-btn { font: 400 12px/1 var(--body); letter-spacing: .16em; border-color: #444; }
.jump-btn::before { color: var(--ash); }
.langs { display: flex; align-self: center; gap: 2px; }
.langs button { background: none; border: 0; min-width: 34px; height: 40px; padding: 0 6px; font: 400 11px/1 var(--body); letter-spacing: .14em; color: var(--ash); }
.langs button[aria-pressed="true"] { color: var(--bone); text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 860px) { .wordmark svg { height: 28px; } }
@media (max-width: 560px) {
  .wordmark svg { height: 26px; }
  .langs { margin-left: auto; }
  .langs button { min-width: 30px; height: 34px; padding: 0 3px; }
}

/* Home */
.hero { justify-items: center; text-align: center; padding: clamp(40px, 8vw, 96px) 0 clamp(24px, 4vw, 48px); gap: 20px; }
.logo-hero { width: min(640px, 92%); height: auto; color: var(--bone); }
.hero-meta { margin: 0; font: 400 13px/1.4 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--ash); }
.hero-lead { max-width: 56ch; font-size: 17px; line-height: 1.7; color: #d6d6d6; }
.hero-lead p { margin: 6px 0 10px; }
.text-link { display: inline-block; font: 400 12px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid var(--ash); padding: 10px 0 6px; color: var(--bone); }
.text-link::after { content: " \2192"; letter-spacing: 0; }
.big-jump { background: none; border: 1px solid #555; color: var(--bone); text-align: center; justify-items: center; font: 400 13px/1.2 var(--body); letter-spacing: .18em; padding: 16px 30px; }
.big-jump small { font: 300 13px/1.3 var(--body); color: var(--ash); }
.section-head { border-top-color: var(--line); align-items: center; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); }

/* Project tiles (13) */
.ptiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
@media (min-width: 900px) { .ptiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; } }
.ptile { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; text-decoration: none; background: var(--panel); }
.ptile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ptile:hover img { transform: scale(1.03); }
.ptile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0) 55%); }
.ptile.empty { background: radial-gradient(ellipse 90% 70% at 50% 0%, #3a3a3a, #1a1a1a 60%, #121212); border: 1px solid #262626; }
.ptile.empty::after { display: none; }
.ptile .cap { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; display: grid; gap: 6px; }
.ptile h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.05; font-variant-caps: small-caps; letter-spacing: .02em; }

/* Project page */
.project-head { display: grid; gap: 32px; padding: 16px 0 32px; }
@media (min-width: 900px) { .project-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: start; gap: 56px; } }
.project-head h1 { font-size: clamp(44px, 6.4vw, 76px); line-height: 1; margin: 12px 0 10px; }
.project-read { max-width: 64ch; }
.subtitle { margin: 0 0 22px; color: var(--ash); font: italic 400 20px/1.4 var(--display); }
.epigraph { margin: 0 0 26px; padding: 0 0 0 20px; border-left: 1px solid #555; font: italic 400 21px/1.45 var(--display); color: #dcdcdc; }
.epigraph p { margin: 0; }
.epigraph cite { display: block; margin-top: 10px; font: 400 11px/1.3 var(--body); letter-spacing: .2em; text-transform: uppercase; font-style: normal; color: var(--ash); }
.project-read .body { font-size: 18px; }
.read-more { background: none; border: 0; padding: 4px 0 6px; border-bottom: 1px solid var(--ash); font: 400 12px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; margin: 2px 0 18px; }
.more-text p:first-child { margin-top: 0; }
.coming { color: var(--ash); border-top: 1px solid var(--line); padding-top: 18px; font-size: 15px; letter-spacing: .04em; }

/* Reading text */
.body { font-weight: 300; }
.body h2 { font-size: clamp(26px, 3vw, 34px); font-variant-caps: small-caps; letter-spacing: .02em; margin: 1.4em 0 .5em; }
.read h1 { font-size: clamp(38px, 5vw, 58px); }
.page-read h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; }

/* Photo page and tiles */
.tile .num { background: rgba(15,15,15,.92); font: 400 15px/1 var(--body); }
.tile .dots { background: rgba(255,255,255,.75); box-shadow: 0 0 0 3px rgba(255,255,255,.2); }
.confirm-meta .no { font-family: var(--display); }
.explore { border-color: #666; font: 400 12px/1.2 var(--body); letter-spacing: .18em; }
.hs-list .n { border-color: var(--ash); font-weight: 400; }
.insp { border-left: 1px solid #555; }
.insp .more-link { border-bottom-color: var(--ash); font-weight: 400; }
.pager { background-color: #0f0f0f; }
.pager a { font-weight: 400; }

/* Full screen, sheets, dialogs: no red */
.fs-toggle, .fs-close { font-weight: 400; }
.fs-toggle[aria-pressed="true"] { background: rgba(255,255,255,.88); color: #111; }
.sheet, .jump-box, .iv-box { border-top: 1px solid #444; }
.keypad .go { background: var(--bone); border-color: var(--bone); color: #111; font-weight: 600; }
.jump-err { color: #d0d0d0; }

/* Password screen */
.gate-logo { width: 100%; height: auto; color: var(--bone); margin-bottom: 18px; }
.gate-box { width: min(420px, 100%); }
.gate-box label { font-weight: 400; }
.gate-box button { background: var(--bone); color: #111; }
.gate-box p { color: #d0d0d0; }
.tile img { height: auto; }
@media (max-width: 560px) {
  .menu { justify-content: flex-start; gap: 18px; overflow-x: auto; }
  .menu a { white-space: nowrap; letter-spacing: .12em; }
}

/* "Go to number" removed (Nov 2026): page counter in the pager is plain text */
.pager-mid { display: inline-flex; align-items: center; border: 0; color: var(--ash); padding: 0 8px; }

/* Main titles in Spalla Semibold; smaller titles stay Athelas small caps */
h1, .ptile h2, .gate-box h1 { font-family: var(--title); font-weight: 600; font-variant-caps: normal; letter-spacing: .01em; }
.read h1, .page-read h1, .project-head h1 { font-variant-caps: normal; }

/* Spalla is a capitals display face (see the designer's "RAFAEL DEI"): titles are set in capitals.
   Italiana stands in until the licensed Spalla file is in fonts/. */
h1, .ptile h2, .gate-box h1 { text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.project-head h1 { font-size: clamp(40px, 5.6vw, 68px); }
.read h1, .page-read h1 { font-size: clamp(34px, 4.4vw, 52px); }
.ptile h2 { font-size: clamp(20px, 2.1vw, 25px); }

/* ===== One page per project (Nov 2026): hero photo page, other photos below ===== */
@media (min-width: 700px) {
  .confirm { grid-template-columns: 1fr; }
  .confirm .thumb { grid-column: 1 / -1; }
}
@media (max-width: 699px) {
  .confirm { grid-template-columns: 1fr; }
  .confirm .thumb { grid-row: auto; max-width: 240px; }
  .confirm .explore { max-width: 240px; }
}
.confirm .thumb img { aspect-ratio: auto; height: auto; object-fit: contain; }
.thumb.empty { aspect-ratio: 3/4; display: grid; place-items: center; text-align: center; padding: 16px;
  background: radial-gradient(ellipse 90% 70% at 50% 0%, #3a3a3a, #1a1a1a 60%, #121212); border: 1px solid #262626; }
.read > .label { display: block; margin-top: 10px; }
.read h1 { margin-top: 10px; margin-bottom: 12px; }
button.tile { background: none; border: 0; padding: 0; text-align: left; display: block; width: 100%; }
.tile .ph { display: block; }
.more-grid { margin-top: 10px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
@media (min-width: 900px) { .more-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } }
.pager a .no-img { width: 46px; height: 60px; background: #222; display: block; flex: none; }
.pager a { min-width: 0; }
.pager a > span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .pager a { font-size: 14px; } .pager a img, .pager a .no-img { display: none; } }

/* ===== Hover animations (Nov 2026): every clickable thing reacts, quietly ===== */
:root { --ease: cubic-bezier(.2,.7,.2,1); }
a, button { transition: color .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), opacity .25s var(--ease); }
/* Top menu: a line grows from the centre */
.menu a { position: relative; border-bottom-color: transparent !important; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--bone);
  transform: scaleX(0); transition: transform .35s var(--ease); }
.menu a[aria-current="page"]::after { transform: scaleX(1); }
.wordmark { transition: opacity .25s var(--ease); }
.langs button:hover { color: var(--bone); }
@media (hover: hover) {
  .menu a:hover { color: var(--bone); }
  .menu a:hover::after { transform: scaleX(1); }
  .wordmark:hover { opacity: .7; }
  /* Explore the photo: soft fill and wider letters */
  .explore { transition: background-color .3s var(--ease), border-color .3s var(--ease), letter-spacing .35s var(--ease), color .3s var(--ease); }
  .explore:hover { background-color: rgba(255,255,255,.08); border-color: var(--bone); letter-spacing: .24em; }
  .thumb img { transition: filter .35s var(--ease), transform .5s var(--ease); }
  .thumb { overflow: hidden; }
  .thumb:hover img { filter: brightness(1.08); transform: scale(1.02); }
  /* Text links: underline brightens, arrow moves */
  .text-link, .read-more, .insp .more-link { transition: border-color .25s var(--ease), color .25s var(--ease); }
  .text-link::after { display: inline-block; transition: transform .3s var(--ease); }
  .text-link:hover, .read-more:hover, .insp .more-link:hover { border-bottom-color: var(--bone); }
  .text-link:hover::after { transform: translateX(4px); }
  .back::before { display: inline-block; transition: transform .3s var(--ease); }
  .back:hover { color: var(--bone); }
  .back:hover::before { transform: translateX(-4px); }
  /* Project tiles and photo tiles */
  .ptile .cap { transition: transform .4s var(--ease); }
  .ptile:hover .cap { transform: translateY(-4px); }
  .ptile.empty { transition: border-color .3s var(--ease); }
  .ptile.empty:hover { border-color: #4a4a4a; }
  .tile .ph { overflow: hidden; }
  .tile img { transition: transform .5s var(--ease), filter .35s var(--ease); }
  .tile:hover img { transform: scale(1.04); filter: brightness(1.08); }
  /* Lists and cards */
  .hs-list button { transition: padding-left .3s var(--ease), color .25s var(--ease); }
  .hs-list button:hover { padding-left: 6px; }
  .hs-list button:hover .n { border-color: var(--bone); }
  .fs-list button { transition: padding-left .3s var(--ease); }
  .fs-list button:hover { padding-left: 6px; }
  .pager a img, .pager a .no-img { transition: filter .3s var(--ease), transform .35s var(--ease); }
  .pager a:hover img { filter: brightness(1.15); transform: scale(1.04); }
  .pager a:hover { color: var(--bone); }
  .foot a:hover, .collab-list a:hover { color: var(--bone); }
  .fs-toggle:hover, .fs-close:hover { background-color: rgba(255,255,255,.2); }
  .fs-toggle[aria-pressed="true"]:hover { background-color: #fff; }
  .fs-nav:hover, .sheet-close:hover, .iv-close:hover { background-color: rgba(255,255,255,.12); }
  .gate-box button:hover { background-color: #fff; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* Collaborators: a plain list */
.collab-list { list-style: none; padding: 0; margin: 8px 0 0; max-width: 760px; }
.collab-list li { border-top: 1px solid var(--line); }
.collab-list li:last-child { border-bottom: 1px solid var(--line); }
.collab-list .collab { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: 16px; align-items: baseline; padding: 14px 0; text-decoration: none; color: inherit; }
.collab-list .role { font: 400 11px/1.3 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--ash); }
.collab-list .name { font: 300 19px/1.3 var(--body); }
.collab-list a.collab .name::after { content: " \2197\FE0E"; font-size: 13px; color: var(--ash); }
@media (max-width: 560px) { .collab-list .collab { grid-template-columns: 1fr; gap: 4px; } }

/* Logos are images now (one per language) */
.wordmark img { display: block; height: 34px; width: auto; }
@media (max-width: 860px) { .wordmark img { height: 28px; } }
@media (max-width: 560px) { .wordmark img { height: 26px; } }
.logo-hero { width: min(600px, 90%); height: auto; }
.gate-logo { width: 100%; height: auto; }
