.collection { color: white; padding: 38px clamp(4px, 2.8vw, 46px) 68px; min-height: 65vh; }
.collection h1, .document h1, .missing h1 { font-size: clamp(2.2rem, 5.3vw, 5.8rem); font-weight: 850; text-transform: uppercase; letter-spacing: -.075em; }
.collection > h1 { margin: 35px 0 16px; }
.collection-intro { max-width: 39rem; color: #e0dcda; font-size: 1.09rem; }
.collection .back:hover { color: white; }
.filters { border-top: 1px solid #444; display: flex; flex-wrap: wrap; gap: 7px; padding-top: 20px; margin: 34px 0 11px; }
.filters a { padding: 8px 14px; min-height: 42px; border: 1px solid #777; color: white; text-decoration: none; font-weight: 700; }
.filters a:hover, .filters a[aria-current] { background: white; color: var(--black); border-color: white; }
.filter-count { color: #c9c6c4; margin: 0 0 25px; }
.archive-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 36px 22px; align-items: start; }
.archive-grid .thumb { aspect-ratio: 1.08; }
.archive-grid .work-card:nth-child(4n) .thumb, .archive-grid .work-card:nth-child(6) .thumb { aspect-ratio: 1.26; }
.document, .missing { padding: clamp(38px, 6vw, 94px) var(--inside); }
.document { line-height: 1.65; }
.document h1 { margin: 30px 0 20px; font-size: clamp(1.8rem, 4vw, 4.7rem); overflow-wrap: anywhere; max-width: 22ch; }
.document h2 { font-size: clamp(1.2rem, 2vw, 1.85rem); line-height: 1.23; letter-spacing: -.047em; text-transform: none; margin: 34px 0 12px; }
.document p { max-width: 62ch; }
.doc-lead { font-size: 1.14rem; }
.missing { min-height: 63vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 17px; }
.missing-number { color: var(--red); font: 850 clamp(4rem, 14vw, 11rem)/.87 var(--display); letter-spacing: -.085em; }
.missing h1 { font-size: clamp(1.75rem, 3.4vw, 3.5rem); }
.booking, .lightbox { border: 0; padding: 0; }
dialog::backdrop { background: rgba(15, 15, 15, .81); }
.booking { color: var(--black); width: min(94vw, 540px); max-width: calc(100vw - 20px); max-height: calc(100dvh - 26px); overscroll-behavior: contain; }
.book-panel { position: relative; padding: clamp(22px, 3.2vw, 42px); }
.close-x { display: grid; place-items: center; position: relative; width: 44px; height: 44px; border: 1px solid #bbb; background: transparent; padding: 0; color: inherit; }
.close-x::before, .close-x::after { content: ""; width: 18px; height: 1.5px; background: currentColor; position: absolute; transform: rotate(45deg); }
.close-x::after { transform: rotate(-45deg); }
.close-x:hover { background: var(--black); color: white; }
.book-panel > .close-x { float: right; margin: -4px -6px 6px 10px; }
.booking h2 { font-size: clamp(1.4rem, 2.5vw, 2.35rem); line-height: 1.13; }
.form-intro, [data-book-done] p { padding: 13px 0; }
.demo-note { background: #f3f1ef; border-left: 2px solid var(--red); color: #42403f; font-size: .88rem; line-height: 1.47; padding: 9px 13px; margin: 7px 0 15px; clear: both; }
.booking form > label, .form-pair label { display: block; font-size: .92rem; font-weight: 750; margin: 8px 0 4px; }
.booking input:not([type=checkbox]), .booking select { border: 1px solid #8a8786; border-radius: 0; background-color: white; color: var(--black); font-family: var(--body); font-size: 1rem; width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; }
.booking select { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, #333 50%),linear-gradient(135deg,#333 50%,transparent 50%); background-position: calc(100% - 13px) 50%,calc(100% - 8px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-pair { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; }
.form-pair > div { min-width: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 3px; font-size: .89rem; line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 18px; accent-color: var(--black); }
.error { display: block; font-size: .82rem; color: #a31322; line-height: 1.35; }
.error:not(:empty) { padding: 3px 0 2px; }
.booking [aria-invalid=true] { border-color: #b51a24 !important; }
.booking [type=submit], [data-book-done] .btn { margin-top: 13px; }
.lightbox { width: 100%; max-width: 100%; height: 100%; height: 100dvh; max-height: 100dvh; background: #111; color: white; margin: 0; }
.viewer { height: 100%; display: grid; grid-template-rows: auto minmax(0,1fr) auto; padding: 14px clamp(14px, 3.3vw, 58px); gap: 10px; }
.viewer-bar, .viewer-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.viewer-bar { border-bottom: 1px solid #464544; padding-bottom: 12px; }
.viewer-bar p, #frame-count { color: #c7c3c0; font-size: .89rem; }
.viewer-bar h2 { font-size: clamp(1.14rem, 2vw, 2rem); margin-top: 4px; }
.viewer .close-x:hover { background: white; color: var(--black); }
.viewer-stage { display: grid; align-items: center; grid-template-columns: 44px minmax(0,1fr) 44px; gap: 15px; min-height: 0; }
.viewer-stage img { grid-column: 2; grid-row: 1; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.frame-nav { border: 1px solid #777; width: 44px; height: 44px; background: #191919; color: white; display: grid; place-items: center; grid-row: 1; }
.frame-nav.prev { grid-column: 1; }
.frame-nav.next { grid-column: 3; }
.frame-nav:not(:disabled):hover { background: white; color: var(--black); }
.frame-nav:disabled { opacity: .3; }
.frame-nav i { display: block; width: 10px; height: 10px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.frame-nav.prev i { transform: rotate(-135deg); }
.viewer-caption { align-items: baseline; border-top: 1px solid #464544; padding-top: 12px; }
.viewer-caption p { max-width: 60ch; }
#frame-count { white-space: nowrap; }
