/* Middleton: the Exhibition look. Warm charcoal ground, brass-gold accents,
   Libre Caslon for headings and text, Cabin for labels and controls. */

@font-face {
  font-family: 'Cabin';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/Cabin-italic-400-700.woff2?v=82314f3b) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cabin';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/Cabin-normal-400-700.woff2?v=f51448b0) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Caslon Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/LibreCaslonDisplay-normal-400.woff2?v=84267e93) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/LibreCaslonText-italic-400.woff2?v=20eac03c) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/LibreCaslonText-normal-400.woff2?v=29310efc) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/LibreCaslonText-normal-700.woff2?v=2819c345) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink-0: #0c0b0a;
  --ink-1: #13110e;
  --ink-2: #1b1814;
  --ink-3: #221e19;
  --line: rgba(239, 232, 218, 0.12);
  --line-2: rgba(239, 232, 218, 0.24);
  --text: #efe8da;
  --text-hi: #f6f1e7;
  --text-2: #ddd4c3;
  --text-3: #b8ae9c;
  --text-4: #968c7b;
  --gold: #cfa85f;
  --gold-hi: #e3c483;
  --gold-soft: rgba(207, 168, 95, 0.16);
  --ivory: #f3ecdf;
  --ivory-ink: #1b1814;
  --ivory-kicker: #7a5a1e;
  --display: 'Libre Caslon Display', 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --sans: Cabin, 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  --gutter: clamp(20px, 3.9vw, 56px);
  --maxw: 1440px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--ink-1);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
ol, ul { list-style: none; margin: 0; padding: 0; }
a { color: var(--gold); text-underline-offset: 0.2em; }
a:hover { color: var(--gold-hi); }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: rgba(207, 168, 95, 0.35); color: var(--text-hi); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--gold); color: var(--ink-1);
  font-family: var(--sans); font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- shared type ---------- */

.kicker {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.meta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
}
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.65; color: var(--text-2); text-wrap: pretty; }
.prose p { color: var(--text-2); text-wrap: pretty; }
.prose p + p { margin-top: 1em; }

.nameboard {
  display: inline-flex;
  align-items: center;
  padding: 0.52em 1.15em 0.45em;
  background: var(--ink-0);
  border: 2px solid var(--text);
  outline: 3px solid var(--ink-0);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.18em;
  color: var(--text-hi);
  text-decoration: none;
  white-space: nowrap;
}
.nameboard:hover { color: var(--text-hi); }
.nameboard--small { font-size: 12px; border-width: 1.5px; outline-width: 2px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { border-color: var(--text-3); color: var(--text-hi); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #16130f; min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--gold:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: #16130f; }
.btn--gold svg { transition: transform 0.25s var(--ease); }
.btn--gold:hover svg { transform: translateX(4px); }
.btn svg { flex: none; }
.link-quiet {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--sans); font-size: 16px; font-weight: 500;
  color: var(--text); text-decoration: underline;
  text-decoration-color: rgba(239, 232, 218, 0.4); text-underline-offset: 6px;
}
.link-quiet:hover { color: var(--text-hi); text-decoration-color: var(--gold); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: rgba(239, 232, 218, 0.08); border-color: var(--text-4); }
.icon-btn--bare { border-color: transparent; }

.seg {
  display: inline-flex; gap: 2px;
  height: 44px; padding: 3px;
  border: 1px solid var(--line-2); border-radius: 999px;
}
.seg button {
  height: 36px; padding: 0 16px;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--text);
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.seg button[aria-pressed="true"] { background: var(--text); color: #16130f; }
.seg button:not([aria-pressed="true"]):hover { background: rgba(239, 232, 218, 0.08); }

/* ---------- header ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid,
.site-header--solid {
  background: rgba(19, 17, 14, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0.03em;
  color: var(--text); text-decoration: none;
  border-radius: 999px;
}
.site-nav a:hover { color: var(--text-hi); background: rgba(239, 232, 218, 0.07); }
.site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav .nav-slideshow { gap: 9px; margin-left: 8px; padding: 0 18px; border: 1px solid rgba(239, 232, 218, 0.34); }
.menu-btn { display: none; }
.header-progress { display: flex; align-items: center; gap: 14px; font-family: var(--sans); font-size: 13px; color: var(--text-3); }
.header-progress__bars { display: flex; gap: 4px; }
.header-progress__bars span { width: 20px; height: 3px; background: rgba(239, 232, 218, 0.18); }
.header-progress__bars span.is-done { background: var(--gold); }
.header-left { display: flex; align-items: center; gap: 28px; min-width: 0; }

.menu-panel {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(12, 11, 10, 0.97);
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 12px) var(--gutter) 40px;
  gap: 4px;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu-panel[hidden] { display: none; }
.menu-panel a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-size: 34px; line-height: 1.2;
  color: var(--text-hi); text-decoration: none;
}
.menu-panel a small { font-family: var(--sans); font-size: 12px; letter-spacing: 0.2em; color: var(--gold); }
.menu-close { position: absolute; top: 20px; right: var(--gutter); }

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; background: rgba(12, 11, 10, 0.45); border-color: rgba(239, 232, 218, 0.3); }
  .header-progress { display: none; }
  .nameboard { font-size: 12px; border-width: 1.5px; outline-width: 2px; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: max(640px, 100vh);
  min-height: max(640px, 100svh);
  max-height: 1100px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--ink-1);
  isolation: isolate;
}
.hero__img {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 40%;
  background-size: cover; background-position: 50% 40%;
  animation: heroIn 2.4s var(--ease) both;
}
@keyframes heroIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 78% 72% at 55% 42%, rgba(19, 17, 14, 0) 48%, rgba(19, 17, 14, 0.62) 100%),
    linear-gradient(180deg, rgba(19, 17, 14, 0.78) 0%, rgba(19, 17, 14, 0) 20%, rgba(19, 17, 14, 0) 40%, rgba(19, 17, 14, 0.86) 78%, var(--ink-1) 100%);
}
.grain {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  opacity: 0.09; mix-blend-mode: overlay; pointer-events: none;
}
.hero__inner {
  width: 100%;
  padding: 0 var(--gutter) clamp(40px, 6.5vh, 64px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 64px;
}
.hero__copy { display: flex; flex-direction: column; gap: 22px; max-width: 800px; animation: rise 1.4s 0.3s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__title {
  margin-left: -0.04em;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(84px, 12.8vw, 196px);
  line-height: 0.84; letter-spacing: -0.015em;
  color: var(--text-hi);
}
.hero__standfirst { max-width: 610px; margin-top: 4px; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 10px; }
.hero__caption {
  flex: none; width: 330px; margin-bottom: 6px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  text-align: right; font-family: var(--sans);
  animation: rise 1.4s 0.6s var(--ease) both;
}
.hero__caption::before { content: ""; width: 40px; height: 1px; background: var(--gold); }
.hero__caption p { font-size: 14px; line-height: 1.55; color: var(--text-3); }
@media (max-width: 1000px) {
  .hero__caption { display: none; }
}
@media (max-width: 640px) {
  .hero { min-height: max(620px, 100vh); min-height: max(620px, 100svh); }
  .hero__img { object-position: 53% 50%; height: 78%; }
  .hero__shade { background: linear-gradient(180deg, rgba(19, 17, 14, 0.7) 0%, rgba(19, 17, 14, 0) 16%, rgba(19, 17, 14, 0) 34%, rgba(19, 17, 14, 0.94) 64%, var(--ink-1) 74%); }
  .hero__copy { gap: 16px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 6px; }
  .hero__actions .btn--gold { width: 100%; }
  .hero__actions .link-quiet { justify-content: center; }
}

/* ---------- sections ---------- */

.section { padding: clamp(80px, 11vw, 150px) var(--gutter) 0; max-width: var(--maxw); margin: 0 auto; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px;
  padding-bottom: 22px; margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.section-head__text { display: flex; flex-direction: column; gap: 14px; }
.section-title { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.02; color: var(--text-hi); text-wrap: balance; }
.arrow-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--sans); font-size: 15px; font-weight: 600; text-decoration: none; }
.arrow-link svg { transition: transform 0.25s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* intro */
.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; align-items: start; }
.intro__text { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 26px; }
.intro__title { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 5vw, 72px); line-height: 1; color: var(--text-hi); text-wrap: balance; }
.intro__text .prose p { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.72; }
.intro__text .dedication p { font-style: italic; font-size: clamp(20px, 1.6vw, 23px); line-height: 1.6; color: var(--text-hi); }
.labels {
  grid-column: 8 / span 5;
  display: flex; flex-direction: column; gap: 18px;
  padding: 28px; background: var(--ink-2); border: 1px solid var(--line);
}
.labels__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.labels button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.labels img { width: 100%; height: auto; aspect-ratio: var(--ar, 3 / 2); object-fit: cover; background: #3a3128; transition: filter 0.3s; }
.labels button:hover img { filter: brightness(1.1); }
.labels__text { font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--text-3); }
@media (max-width: 960px) {
  .intro__text, .labels { grid-column: 1 / -1; }
}

/* tour contents */
.stops { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 24px; row-gap: 44px; }
.stop { display: flex; flex-direction: column; gap: 14px; color: var(--text); text-decoration: none; }
.stop__img { position: relative; overflow: hidden; background: var(--ink-2); }
.stop__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.9s var(--ease), filter 0.5s; }
.stop:hover .stop__img img { transform: scale(1.045); }
.stop__num { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: var(--gold); }
.stop__title { font-size: 22px; line-height: 1.2; color: var(--text-hi); transition: color 0.2s; }
.stop:hover .stop__title { color: var(--gold-hi); }
.stop__desc { font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--text-3); }
.stop__text { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 1180px) { .stops { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stops { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 30px; } .stop__title { font-size: 18px; } .stop__desc { display: none; } }

/* map */
.map { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 48px; align-items: center; }
.map__side { display: flex; flex-direction: column; gap: 18px; }
.map__intro { margin-bottom: 8px; font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--text-3); }
.map__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.map__item {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 44px; padding: 0 14px 0 8px;
  border-radius: 999px; background: transparent;
  color: #d2c9b8; font-family: var(--serif); font-size: 18px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.map__item:hover, .map__item.is-active { background: rgba(207, 168, 95, 0.14); color: var(--text-hi); }
.pill-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 28px; padding: 0 7px;
  border: 1px solid var(--gold); border-radius: 999px;
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--gold);
  transition: background 0.2s, color 0.2s;
}
.map__item.is-active .pill-num { background: var(--gold); color: #16130f; }
.map__card {
  display: flex; gap: 16px; padding: 14px; margin-top: 8px;
  background: var(--ink-2); border: 1px solid rgba(207, 168, 95, 0.4);
  color: var(--text); text-decoration: none;
}
.map__card img { width: 128px; height: 96px; object-fit: cover; flex: none; }
.map__card-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.map__card-num { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: var(--gold); }
.map__card-title { font-size: 19px; line-height: 1.2; color: var(--text-hi); }
.map__card-desc { font-family: var(--sans); font-size: 13px; line-height: 1.45; color: var(--text-3); }
.map__card-go { margin-top: auto; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--gold); }
.map__figure { display: flex; flex-direction: column; gap: 16px; }
.map__svg { width: 100%; height: auto; }
.map__svg .area { cursor: pointer; transition: fill 0.25s, stroke 0.25s; fill: rgba(239, 232, 218, 0.03); stroke: rgba(207, 168, 95, 0); stroke-width: 1.5; }
.map__svg .area:hover { fill: rgba(207, 168, 95, 0.16); }
.map__svg .area.is-active { fill: rgba(207, 168, 95, 0.3); stroke: var(--gold); }
.map__svg .area[data-area="loft"] { stroke: rgba(207, 168, 95, 0.55); stroke-width: 1.2; }
.map__svg .area[data-area="loft"].is-active { stroke: var(--gold); }
.map__label { font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: 2.2px; fill: var(--text-4); pointer-events: none; }
.map__label--gold { font-size: 11px; font-weight: 700; letter-spacing: 2px; fill: var(--gold); }
.map__label--small { font-size: 10.5px; letter-spacing: 1.8px; }
.map__places text { font-family: var(--sans); font-size: 13px; font-weight: 500; fill: var(--text-3); text-anchor: middle; pointer-events: none; }
.map__places text.map__place--gold { fill: var(--gold); font-weight: 600; }
.map__svg .panel { fill: #3a332a; stroke: rgba(207, 168, 95, 0.7); stroke-width: 1.2; transition: fill 0.25s; }
.map__svg .panel.is-active { fill: rgba(207, 168, 95, 0.55); }
.map__svg .marker circle { fill: #16130f; stroke: var(--gold); stroke-width: 1.5; transition: fill 0.25s; }
.map__svg .marker { cursor: pointer; }
.map__svg .marker text { fill: var(--gold); font-family: var(--sans); font-size: 12px; font-weight: 700; text-anchor: middle; pointer-events: none; }
.map__svg .marker.is-active circle { fill: var(--gold); }
.map__svg .marker.is-active text { fill: #16130f; }
.map__svg a:focus { outline: none; }
.map__svg a:focus-visible .area, .map__svg a:focus-visible circle { stroke: var(--gold-hi); stroke-width: 3; }
.map__legend { display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--sans); font-size: 13px; color: var(--text-4); }
.map__legend span { display: inline-flex; align-items: center; gap: 10px; }
.map__legend i { display: block; flex: none; }
.key--line { width: 28px; height: 6px; border-top: 1.2px solid var(--gold); border-bottom: 1.2px solid var(--gold); }
.key--fold { width: 28px; height: 12px; border: 1.2px dashed var(--gold); }
.key--drawers { width: 28px; height: 8px; border: 1px solid rgba(239, 232, 218, 0.45); }
.key--stool { width: 18px; height: 18px; border-radius: 50%; border: 1.2px solid rgba(239, 232, 218, 0.6); }
.map__swipe { display: none; }
@media (max-width: 960px) {
  .map { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .map__side { display: contents; }
  .map__side > .kicker { order: 1; }
  .map__side > .section-title { order: 2; }
  .map__side > .map__intro { order: 3; }
  .map__figure { order: 4; margin: 6px calc(var(--gutter) * -1) 10px; }
  .map__side > .map__list { order: 5; }
  .map__side > .map__card { order: 6; }
  .map__scroller { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .map__scroller::-webkit-scrollbar { display: none; }
  .map__svg { width: 820px; max-width: none; margin: 0 var(--gutter); }
  .map__legend { padding: 0 var(--gutter); }
  .map__swipe { display: block; padding: 0 var(--gutter); font-family: var(--sans); font-size: 13px; color: var(--gold); }
}
@media (max-width: 640px) {
  .map__legend { gap: 8px 18px; font-size: 12px; }
}

/* photographs note */
.facts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.facts__text { grid-column: 1 / span 6; }
.facts__list { grid-column: 8 / span 5; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.facts__list li { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: 15px; color: var(--text-3); }
.facts__list li strong { font-weight: 500; color: var(--text); text-align: right; }
@media (max-width: 960px) { .facts__text, .facts__list { grid-column: 1 / -1; } }

/* footer */
.site-footer {
  margin-top: clamp(100px, 12vw, 170px);
  padding: 48px var(--gutter) 56px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.site-footer p { font-family: var(--sans); font-size: 14px; color: var(--text-4); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer nav a { font-family: var(--sans); font-size: 14px; color: var(--text-3); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer nav a:hover { color: var(--text-hi); }

/* ---------- photos with hotspots ---------- */

.photo { position: relative; background-color: var(--ink-2); background-size: cover; background-position: center; }
.photo__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.photo__open:focus-visible { outline-offset: -3px; }
.photo__img { width: 100%; height: auto; }
.photo--cover { overflow: hidden; }
.photo--cover .photo__open, .photo--cover .photo__img { height: 100%; }
.photo--cover .photo__img { object-fit: cover; }
.fade-img { opacity: 0; transition: opacity 0.7s ease; }
.fade-img.is-loaded { opacity: 1; }

.spot {
  position: absolute; z-index: 2;
  width: 36px; height: 36px; margin: -18px 0 0 -18px; padding: 0;
  border-radius: 50%; border: 1.5px solid var(--gold);
  background: rgba(12, 11, 10, 0.55);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.spot::before {
  content: ""; position: absolute; inset: -1.5px;
  border-radius: 50%; border: 1.5px solid var(--gold);
  animation: pulse 2.8s ease-out infinite;
  animation-delay: var(--delay, 0s);
}
.spot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); transition: background 0.2s; }
.spot:hover { transform: scale(1.12); background: rgba(12, 11, 10, 0.75); }
.spot[aria-expanded="true"] { background: var(--gold); }
.spot[aria-expanded="true"]::after { background: #16130f; }
.spot[aria-expanded="true"]::before { animation: none; opacity: 0; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.75; } 70% { transform: scale(2); opacity: 0; } 100% { transform: scale(2); opacity: 0; } }

.label-card {
  position: absolute; z-index: 3;
  width: min(300px, calc(100% - 24px));
  padding: 16px 18px 18px;
  background: var(--ivory); color: var(--ivory-ink);
  border-top: 3px solid var(--gold);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column; gap: 6px;
  animation: cardIn 0.28s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.label-card__kicker { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-kicker); }
.label-card__note { font-family: var(--serif); font-size: 16px; line-height: 1.5; }
.label-card__count { font-family: var(--sans); font-size: 12px; color: #6b6255; }
.label-card[hidden] { display: none; }
.label-card--docked { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; }

/* ---------- chapter ---------- */

.chapter-open {
  max-width: var(--maxw); margin: 0 auto;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 100px)) var(--gutter) 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start;
}
.chapter-open__text { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 20px; padding-top: clamp(0px, 2vw, 30px); }
.chapter-open__num { font-family: var(--display); font-size: clamp(96px, 10vw, 148px); line-height: 0.8; color: var(--gold); }
.chapter-open__title { margin-left: -0.03em; font-family: var(--display); font-weight: 400; font-size: clamp(64px, 7.6vw, 112px); line-height: 0.92; color: var(--text-hi); text-wrap: balance; }
.chapter-open .prose p { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.72; }
.chapter-open__hint { display: flex; align-items: center; gap: 12px; font-family: var(--sans); font-size: 14px; color: var(--text-3); }
.chapter-open__hint i { flex: none; position: relative; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--gold); display: flex; align-items: center; justify-content: center; }
.chapter-open__hint i::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.chapter-open__figure { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 12px; }
.chapter-open__figure .photo { aspect-ratio: 11 / 10; }
@media (max-width: 960px) {
  .chapter-open__text, .chapter-open__figure { grid-column: 1 / -1; }
  .chapter-open__figure .photo { aspect-ratio: 4 / 3; }
}

.caption { display: flex; justify-content: space-between; gap: 32px; font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--text-3); }
.caption__text { max-width: 820px; text-wrap: pretty; }
.caption__meta { flex: none; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-4); padding-top: 3px; }

.blocks { display: flex; flex-direction: column; gap: clamp(64px, 9vw, 130px); margin-top: clamp(72px, 10vw, 140px); }
.block { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 var(--gutter); }
.block--full { max-width: none; padding: 0; }
.block--full .caption { max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gutter) 0; }
.block figure { display: flex; flex-direction: column; gap: 14px; }
.block--wide figure { max-width: 1180px; margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: start; }
.feature > figure { grid-column: 1 / span 8; }
.feature__text { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
.feature--flip > figure { grid-column: 5 / span 8; grid-row: 1; }
.feature--flip .feature__text { grid-column: 1 / span 4; grid-row: 1; }
.feature__title { font-style: italic; font-weight: 400; font-size: clamp(26px, 2.2vw, 30px); line-height: 1.2; color: var(--text-hi); }
.feature__text .prose p { font-size: 18px; line-height: 1.7; }
@media (max-width: 960px) {
  .feature > figure, .feature__text, .feature--flip > figure, .feature--flip .feature__text { grid-column: 1 / -1; grid-row: auto; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .caption { flex-direction: column; gap: 6px; font-size: 14px; }
}

.closer { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.closer__lens {
  --size: 300px;
  position: relative; width: var(--size); height: var(--size); max-width: 100%;
  border-radius: 50%; overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  background: var(--ink-2);
  cursor: zoom-in;
  padding: 0;
}
.closer__lens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.closer__lens:hover img { transform: scale(1.06); }
.closer .kicker { font-size: 12px; letter-spacing: 0.24em; }
.closer__text { font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--text-3); max-width: 340px; }
.closer-block { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px 64px; }
.closer-block .closer { align-items: flex-start; }
.closer-block .closer__lens { --size: 360px; }
@media (max-width: 640px) { .closer__lens, .closer-block .closer__lens { --size: 260px; } }

.chapter-nav {
  max-width: var(--maxw); margin: clamp(90px, 11vw, 150px) auto 0; padding: 36px var(--gutter) 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.chapter-nav__back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--text-3); text-decoration: none; }
.chapter-nav__back:hover { color: var(--text-hi); }
.chapter-nav__next { display: flex; align-items: center; gap: 28px; color: var(--text); text-decoration: none; margin-left: auto; }
.chapter-nav__next-text { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.chapter-nav__next-title { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-size: clamp(34px, 3.6vw, 48px); line-height: 1; color: var(--text-hi); transition: color 0.2s; }
.chapter-nav__next:hover .chapter-nav__next-title { color: var(--gold-hi); }
.chapter-nav__next img { width: 176px; height: 132px; object-fit: cover; }
@media (max-width: 640px) { .chapter-nav__next img { display: none; } .chapter-nav__next-text { align-items: flex-start; } .chapter-nav__next { margin-left: 0; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- archive ---------- */

.archive-head {
  max-width: var(--maxw); margin: 0 auto;
  padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) var(--gutter) 0;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px;
}
.archive-head__text { display: flex; flex-direction: column; gap: 16px; }
.archive-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(46px, 5.6vw, 80px); line-height: 1; color: var(--text-hi); text-wrap: balance; }
.archive-head__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.chips {
  max-width: var(--maxw); margin: 32px auto 0; padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip {
  height: 40px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: #d2c9b8;
  font-family: var(--sans); font-size: 14px;
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--text-4); color: var(--text-hi); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #16130f; font-weight: 600; }
.chip span { opacity: 0.7; margin-left: 6px; font-size: 13px; }
@media (max-width: 640px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .chips::-webkit-scrollbar { display: none; }
}
.groups { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.group { margin-top: 52px; }
.group[hidden] { display: none; }
.group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.group__head h2 { font-style: italic; font-weight: 400; font-size: 26px; color: var(--text-hi); }
.group__head p { font-family: var(--sans); font-size: 14px; color: var(--text-4); }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1180px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 560px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.tile { position: relative; display: block; overflow: hidden; background-color: var(--ink-2); background-size: cover; background-position: center; aspect-ratio: 4 / 3; }
.tile[hidden] { display: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; background-size: cover; transition: transform 0.8s var(--ease); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile__info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 14px 12px;
  background: linear-gradient(180deg, rgba(12, 11, 10, 0) 0%, rgba(12, 11, 10, 0.9) 100%);
  display: flex; flex-direction: column; gap: 3px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.tile:hover .tile__info, .tile:focus-visible .tile__info { opacity: 1; transform: none; }
.tile__title { font-size: 16px; line-height: 1.25; color: var(--text-hi); }
.tile__meta { font-family: var(--sans); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.tile__badge {
  position: absolute; left: 10px; top: 10px;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.2px solid var(--gold); background: rgba(12, 11, 10, 0.7);
  display: flex; align-items: center; justify-content: center;
}
.tile__badge::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@media (hover: none) { .tile__info { opacity: 1; transform: none; padding-top: 28px; } .tile__title { font-size: 13px; } .tile__meta { display: none; } }

/* ---------- viewer ---------- */

.viewer {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--ink-0);
  color: var(--text);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.viewer.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.viewer__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px; padding: 0 20px 0 12px;
  position: relative; z-index: 3;
  transition: opacity 0.4s;
}
.viewer__where { display: flex; align-items: center; gap: 16px; min-width: 0; }
.viewer__chapter { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.viewer__count { font-family: var(--sans); font-size: 14px; color: var(--text-4); white-space: nowrap; font-variant-numeric: tabular-nums; }
.viewer__tools { display: flex; align-items: center; gap: 10px; }
.viewer__tool { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.viewer__tool:hover { background: rgba(239, 232, 218, 0.08); }
.viewer__tool[aria-pressed="true"] { background: var(--gold-soft); border-color: rgba(207, 168, 95, 0.55); }
.viewer__stage { position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.viewer__frame { position: absolute; left: 50%; top: 50%; will-change: transform; }
.viewer__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background-size: cover; -webkit-user-drag: none; }
.viewer__img--hi { opacity: 0; transition: opacity 0.35s; }
.viewer__img--hi.is-loaded { opacity: 1; }
.viewer__badge { position: absolute; top: 14px; left: 14px; z-index: 2; height: 30px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: rgba(12, 11, 10, 0.74); font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.viewer__badge[hidden] { display: none; }
.viewer__spots { position: absolute; inset: 0; }
.viewer__spots .spot { transform: scale(var(--inv, 1)); }
.viewer__spots .spot:hover { transform: scale(calc(var(--inv, 1) * 1.12)); }
.viewer__spots .label-card { transform-origin: top left; }
.viewer.hide-spots .viewer__spots { display: none; }
.viewer__nav { position: absolute; top: 50%; z-index: 3; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(19, 17, 14, 0.55); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s, opacity 0.4s; }
.viewer__nav:hover { background: rgba(239, 232, 218, 0.12); }
.viewer__nav--prev { left: 24px; }
.viewer__nav--next { right: 24px; }
.viewer__foot { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 18px 56px 24px; min-height: 130px; position: relative; z-index: 3; transition: opacity 0.4s; }
.viewer__caption { display: flex; flex-direction: column; gap: 7px; max-width: 760px; min-width: 0; }
.viewer__title { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.2; color: var(--text-hi); }
.viewer__text { font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--text-3); text-wrap: pretty; }
.viewer__strip { display: flex; align-items: center; gap: 8px; flex: none; }
.viewer__strip button { padding: 0; border: 0; background: var(--ink-2); cursor: pointer; opacity: 0.5; transition: opacity 0.2s; }
.viewer__strip button:hover { opacity: 0.9; }
.viewer__strip button[aria-current="true"] { opacity: 1; outline: 2px solid var(--gold); outline-offset: 3px; }
.viewer__strip img { width: 72px; height: 54px; object-fit: cover; }
.viewer__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(239, 232, 218, 0.14); z-index: 4; }
.viewer__progress[hidden] { display: none; }
.viewer__progress i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.viewer.is-playing .viewer__progress i { animation: progress var(--slide, 7s) linear both; }
@keyframes progress { to { transform: scaleX(1); } }
.viewer.is-playing .viewer__img { animation: ken var(--ken, 9s) ease-out both; }
@keyframes ken { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.07) translate(var(--kx, -1.2%), var(--ky, -0.8%)); } }
.viewer.is-playing .viewer__spots, .viewer.is-playing .viewer__strip, .viewer.is-playing .viewer__nav { display: none; }
.viewer.is-idle .viewer__bar, .viewer.is-idle .viewer__foot { opacity: 0; }
.viewer.is-idle { cursor: none; }
.viewer.is-zoomed .viewer__stage { cursor: grab; }
.viewer.is-dragging .viewer__stage { cursor: grabbing; }
.viewer__zoomhint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3; padding: 7px 14px; border-radius: 999px; background: rgba(12, 11, 10, 0.72); font-family: var(--sans); font-size: 13px; color: var(--text-2); pointer-events: none; }
.viewer__zoomhint[hidden] { display: none; }
@media (max-width: 860px) {
  .viewer__bar { min-height: 60px; padding: 0 8px; gap: 6px; }
  .viewer__chapter { display: none; }
  .viewer__tool .t-label { display: none; }
  .viewer__tool { padding: 0 12px; }
  .viewer .seg button { padding: 0 11px; font-size: 13px; }
  .viewer__nav { display: none; }
  .viewer__foot { padding: 14px 18px 22px; min-height: 0; }
  .viewer__strip { display: none; }
  .viewer__title { font-size: 20px; }
  .viewer__text { font-size: 14px; }
  .viewer__stage .label-card { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; z-index: 5; }
}
@media (max-width: 420px) { .viewer__tools .zoom-btn { display: none; } }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; padding: var(--header-h) var(--gutter); max-width: 900px; margin: 0 auto; }
.lost h1 { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 8vw, 110px); line-height: 0.95; color: var(--text-hi); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .spot::before { display: none; }
}
