/* Lux Mundi — a candlelit reading room for the witness to Jesus of Nazareth.
   Umber dark and gold leaf for the halls, vellum for the texts, and old masters in the light. */

:root {
  --ink: #0e0b08;
  --ink-2: #15110d;
  --ink-3: #1e1813;
  --ink-4: #2a2119;
  --line: rgba(214, 180, 112, .16);
  --line-strong: rgba(214, 180, 112, .36);
  --gold: #d4b066;
  --gold-hi: #f2dca1;
  --gold-lo: #8c6a2c;
  --text: #ede3cd;
  --text-2: #bcae91;
  --text-3: #877960;

  --page: #f3ead6;
  --page-2: #e9dcc0;
  --page-ink: #2a2017;
  --page-ink-2: #5d4f3d;
  --page-ink-3: #8d7c63;
  --page-rule: rgba(90, 64, 30, .18);
  --rubric: #93301a;
  --page-link: #6b4a12;

  --f-caps: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --f-display: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --f-body: "EB Garamond", "Garamond", "Georgia", serif;

  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --frame: linear-gradient(135deg, #f6dea0 0%, #b78a3c 22%, #6e4d1c 45%, #d9b46a 62%, #8b6527 82%, #e8c97f 100%);

  --s-new-testament: #d4b066;
  --s-witnesses: #c9805a;
  --s-fathers: #9fb0d6;
  --s-archaeology: #b8a68a;
  --s-other-gospels: #a6c29a;
  --s-traditions: #d39bb0;
  --s-dossier: #e9d6a8;
  --s-sources: #a99a80;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scrollbar-color: var(--gold-lo) var(--ink); scrollbar-width: thin; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--f-body); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
kbd { font-family: var(--f-caps); font-size: 10px; letter-spacing: .08em; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--text-2); }
::selection { background: rgba(212, 176, 102, .35); color: inherit; }
#view { outline: none; min-height: 100vh; }
.caps { font-family: var(--f-caps); text-transform: uppercase; letter-spacing: .22em; font-size: 11.5px; font-weight: 500; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.grain { position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

.gilt { background: linear-gradient(100deg, #9c7432 0%, #f3dda2 28%, #c79a4c 50%, #fff0c4 66%, #a77d36 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 10s ease-in-out infinite; }
@keyframes shimmer { 0%,100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.ornament { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; height: 1px; width: min(110px, 20vw); background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { transform: scaleX(-1); }
.ornament svg { width: 20px; height: 20px; }

/* ── plates: the paintings as part of the architecture ── */
.plate { position: absolute; inset: 0; overflow: hidden; }
.plate img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 30%); transform: scale(1.04); transition: transform 2.2s var(--ease), filter 1.2s var(--ease), opacity 1.2s; }
.plate::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(14, 11, 8, .55) 100%); pointer-events: none; }
.plate-credit { position: absolute; z-index: 3; font-size: 12.5px; font-style: italic; color: rgba(237, 227, 205, .62); text-shadow: 0 1px 10px #000; text-decoration: none; transition: color .3s; }
.plate-credit:hover { color: var(--gold-hi); }

/* ── top bar ── */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 18px var(--gutter); transition: background .6s var(--ease), padding .6s var(--ease), border-color .6s; border-bottom: 1px solid transparent; view-transition-name: bar; }
.bar.solid { background: rgba(14, 11, 8, .8); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-color: var(--line); padding-top: 11px; padding-bottom: 11px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gold-hi); }
.brand-mark { width: 30px; height: 30px; transition: transform 1.2s var(--ease); }
.brand:hover .brand-mark { transform: rotate(180deg); }
.brand-word { font-family: var(--f-caps); letter-spacing: .32em; font-size: 14px; font-weight: 600; }
.bar-nav { display: flex; gap: 32px; margin-left: auto; }
.bar-nav a { font-family: var(--f-caps); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; color: var(--text-2); position: relative; padding: 6px 0; transition: color .3s; }
.bar-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px; background: var(--gold); transition: left .45s var(--ease), right .45s var(--ease); }
.bar-nav a:hover, .bar-nav a.on { color: var(--gold-hi); }
.bar-nav a:hover::after, .bar-nav a.on::after { left: 0; right: 0; }
.search-trigger { display: flex; align-items: center; gap: 10px; background: rgba(255, 240, 200, .04); border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 10px 7px 15px; cursor: pointer; color: var(--text-2); transition: border-color .3s, background .3s, color .3s, box-shadow .4s; }
.search-trigger:hover { border-color: var(--gold); color: var(--gold-hi); background: rgba(212, 176, 102, .08); box-shadow: 0 0 30px -8px rgba(212, 176, 102, .5); }
.search-trigger svg { width: 16px; height: 16px; }
.search-trigger span { font-size: 15px; font-style: italic; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 50%; width: 38px; height: 38px; cursor: pointer; color: var(--gold-hi); place-items: center; }
.menu-btn svg { width: 16px; height: 16px; }
@media (max-width: 1120px) {
  .bar-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px; background: rgba(14, 11, 8, .96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
  .bar.open .bar-nav { display: flex; }
  .bar-nav a { padding: 14px 0; font-size: 12px; border-bottom: 1px solid var(--line); }
  .bar-nav a::after { display: none; }
  .search-trigger { margin-left: auto; }
  .menu-btn { display: grid; }
}
@media (max-width: 560px) { .search-trigger span, .search-trigger kbd { display: none; } .search-trigger { padding: 10px; } .brand-word { font-size: 12px; letter-spacing: .26em; } .bar { gap: 12px; } }

/* ── buttons & links ── */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 12px; padding: 15px 28px; border-radius: 2px; text-decoration: none; cursor: pointer; font-family: var(--f-caps); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; transition: transform .4s var(--ease), box-shadow .5s var(--ease), background .4s; border: 1px solid var(--gold); }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 248, 220, .45), transparent); transform: skewX(-20deg); transition: left .9s var(--ease); }
.btn:hover::after { left: 130%; }
.btn-gold { background: linear-gradient(180deg, #e6c67f, #b38a40); color: #1a1209; border-color: #ecd193; box-shadow: 0 10px 30px -10px rgba(212, 176, 102, .6); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -10px rgba(242, 220, 161, .7); }
.btn-ghost { color: var(--gold-hi); background: rgba(14, 11, 8, .35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(212, 176, 102, .12); transform: translateY(-2px); }
.link-gold { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-hi); text-decoration: none; font-family: var(--f-caps); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; padding-bottom: 5px; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat, linear-gradient(var(--gold-lo), var(--gold-lo)) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease), gap .4s var(--ease); }
.link-gold:hover { background-size: 100% 1px, 100% 1px; gap: 16px; }
.arrow { transition: transform .4s var(--ease); display: inline-block; }

/* candle-glow that follows the pointer */
.glow { position: relative; isolation: isolate; }
.glow::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .5s; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(242, 220, 161, .13), transparent 60%); }
.glow:hover::before { opacity: 1; }

/* ── reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ── page transitions ── */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out .5s var(--ease-io) both; }
  ::view-transition-new(root) { animation: vt-in .9s var(--ease) both; }
  ::view-transition-group(plate) { animation-duration: .9s; animation-timing-function: var(--ease); }
  ::view-transition-old(plate), ::view-transition-new(plate) { animation-duration: .9s; height: 100%; object-fit: cover; }
  .no-vt #view.enter { animation: vt-in .9s var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; transform: scale(.985); filter: blur(8px) brightness(.6); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(22px) scale(1.008); filter: blur(10px); } }
.veil { position: fixed; inset: 0; z-index: 70; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, rgba(242, 220, 161, .16), transparent 60%); opacity: 0; transition: opacity .6s; }
.veil.on { opacity: 1; transition: opacity .15s; }

/* ═════════════ HOME ═════════════ */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: #0b0907; isolation: isolate; }
.hero-art { position: absolute; inset: 0; overflow: hidden; }
.hero-art img { position: absolute; max-width: none; transform-origin: var(--ox, 50%) var(--oy, 50%); animation: breathe 36s ease-in-out infinite alternate; filter: saturate(.92) contrast(1.05); opacity: 0; transition: opacity 2.6s ease; }
.hero-art img.ready { opacity: 1; }
@keyframes breathe { from { transform: scale(1.02); } to { transform: scale(1.14); } }
.hero-veil { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 58% 52% at var(--gx, 50%) var(--gy, 42%), transparent 0%, rgba(11,9,7,.18) 45%, rgba(11,9,7,.74) 100%),
              linear-gradient(180deg, rgba(11,9,7,.6) 0%, rgba(11,9,7,0) 22%, rgba(11,9,7,0) 44%, rgba(11,9,7,.9) 78%, var(--ink) 100%); }
#motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.spark { position: absolute; left: var(--gx, 50%); top: var(--gy, 42%); width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 246, 215, .95) 0%, rgba(255, 222, 150, .42) 14%, rgba(255, 200, 120, .1) 40%, transparent 70%); animation: spark 5.5s ease-in-out infinite; }
@keyframes spark { 0%, 100% { opacity: .35; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }
.hero-copy { position: absolute; left: 0; right: 0; bottom: clamp(52px, 10vh, 120px); text-align: center; padding: 0 var(--gutter); }
.hero-kicker { color: var(--gold-hi); text-shadow: 0 0 18px #000, 0 0 6px #000, 0 1px 2px #000; opacity: 0; animation: rise 1.6s .4s var(--ease) forwards; }
.hero-title { font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: clamp(68px, 11.5vw, 176px); line-height: .9; margin: 14px 0 14px; letter-spacing: -.01em; }
.hero-title .ch { display: inline-block; padding: 0 .02em; opacity: 0; transform: translateY(.35em) rotate(4deg); filter: blur(12px); animation: letter 1.6s var(--ease) calc(.7s + var(--i) * .07s) forwards, shimmer 10s ease-in-out 2.5s infinite; }
@keyframes letter { to { opacity: 1; transform: none; filter: none; } }
.hero-sub { font-family: var(--f-display); font-style: italic; font-size: clamp(19px, 2vw, 25px); color: var(--text); max-width: 700px; margin: 0 auto; opacity: 0; animation: rise 1.8s 1.5s var(--ease) forwards; text-shadow: 0 2px 20px rgba(0,0,0,.8); }
.hero-search { margin: 34px auto 0; width: min(560px, 100%); display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-radius: 999px; cursor: text; background: rgba(14, 11, 8, .5); border: 1px solid var(--line-strong); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--text-3); font-style: italic; font-size: 18px; opacity: 0; animation: rise 1.8s 1.9s var(--ease) forwards; transition: border-color .4s, box-shadow .5s, background .4s; }
.hero-search:hover { border-color: var(--gold); box-shadow: 0 0 60px -10px rgba(212, 176, 102, .55); background: rgba(14, 11, 8, .7); color: var(--text-2); }
.hero-search svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.hero-search kbd { margin-left: auto; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero-credit { position: absolute; right: var(--gutter); bottom: 20px; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 640px) { .hero-credit { display: none; } .hero-kicker { font-size: 9.5px; letter-spacing: .18em; } }

.section { position: relative; padding: clamp(90px, 12vw, 170px) var(--gutter); }
.section-head { text-align: center; max-width: 780px; margin: 0 auto clamp(52px, 7vw, 96px); }
.section-head .caps { color: var(--gold); display: block; margin-top: 22px; }
.section-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 6vw, 84px); line-height: 1; margin: 16px 0 22px; }
.section-title em { color: var(--gold-hi); }
.section-lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); margin: 0 auto; max-width: 640px; }

/* begin: three doors */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); max-width: 1240px; margin: 0 auto; }
.door { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; padding: 34px 30px 32px; text-decoration: none; overflow: hidden; border-radius: 999px 999px 6px 6px / 260px 260px 6px 6px; border: 1px solid var(--line-strong); transition: transform .8s var(--ease), border-color .6s, box-shadow .8s; }
.door .plate img { filter: sepia(.35) saturate(.75) brightness(.6); }
.door .plate::after { background: linear-gradient(180deg, rgba(14,11,8,0) 15%, rgba(14,11,8,.75) 55%, rgba(14,11,8,.97) 100%); }
.door > :not(.plate) { position: relative; z-index: 2; }
.door::after { content: ""; position: absolute; inset: 9px; border-radius: inherit; border: 1px solid rgba(214, 180, 112, .2); z-index: 2; pointer-events: none; transition: border-color .6s, inset .6s var(--ease); }
.door:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 40px 80px -30px #000, 0 0 70px -24px rgba(212, 176, 102, .5); }
.door:hover::after { border-color: rgba(242, 220, 161, .55); inset: 13px; }
.door:hover .plate img { filter: sepia(0) saturate(1) brightness(.78); transform: scale(1.1); }
.door-num { font-family: var(--f-caps); color: var(--gold); font-size: 12px; letter-spacing: .3em; }
.door h3 { font-family: var(--f-display); font-weight: 500; font-size: 32px; line-height: 1.05; margin: 10px 0 10px; color: var(--text); }
.door p { margin: 0 0 18px; color: var(--text-2); font-size: 16.5px; line-height: 1.5; }
.door:hover .arrow { transform: translateX(6px); }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } .door { min-height: 360px; } }

/* the testimony: one hall per section */
.halls { max-width: 1320px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(22px, 3vw, 36px); }
.hall { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; min-height: 440px; text-decoration: none; border: 1px solid var(--line); background: var(--ink-2); overflow: hidden; transition: border-color .6s, box-shadow .8s var(--ease), transform .8s var(--ease); }
.hall:nth-child(even) { grid-template-columns: 1fr 1.05fr; }
.hall:nth-child(even) .hall-art { order: 2; }
.hall-art { position: relative; min-height: 300px; }
.hall-art .plate img { filter: saturate(.85) brightness(.82); }
.hall-art .plate::after { background: linear-gradient(90deg, transparent 55%, var(--ink-2) 100%); }
.hall:nth-child(even) .hall-art .plate::after { background: linear-gradient(270deg, transparent 55%, var(--ink-2) 100%); }
.hall:hover { border-color: var(--line-strong); box-shadow: 0 50px 100px -40px #000, 0 0 90px -40px var(--accent, var(--gold)); }
.hall:hover .hall-art img { transform: scale(1.09); filter: saturate(1) brightness(.95); }
.hall-body { position: relative; z-index: 2; padding: clamp(32px, 4.5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.hall-kicker { color: var(--accent, var(--gold)); display: flex; align-items: center; gap: 12px; }
.hall-kicker::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--accent, var(--gold)); box-shadow: 0 0 12px var(--accent, var(--gold)); }
.hall h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 3.8vw, 56px); line-height: 1.02; margin: 14px 0 16px; color: var(--text); transition: color .4s; }
.hall:hover h3 { color: var(--gold-hi); }
.hall p.lede { margin: 0 0 24px; color: var(--text-2); font-size: 17.5px; max-width: 48ch; }
.hall-picks { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line); }
.hall-picks li { display: flex; gap: 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; color: var(--text); transition: padding .4s var(--ease), color .3s; }
.hall-picks li span { flex: 0 0 76px; font-size: 13.5px; color: var(--text-3); font-style: italic; }
.hall:hover .hall-picks li { padding-left: 6px; }
.hall-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hall-count { color: var(--text-3); font-style: italic; font-size: 15px; }
.hall:hover .arrow { transform: translateX(6px); }
@media (max-width: 860px) { .hall, .hall:nth-child(even) { grid-template-columns: 1fr; } .hall:nth-child(even) .hall-art { order: 0; } .hall-art .plate::after, .hall:nth-child(even) .hall-art .plate::after { background: linear-gradient(180deg, transparent 50%, var(--ink-2) 100%); } .hall-art { min-height: 240px; } }

/* through the centuries (home ribbon) */
.ribbon-wrap { position: relative; margin: 0 calc(var(--gutter) * -1); }
.ribbon-wrap::before, .ribbon-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 8vw; z-index: 3; pointer-events: none; }
.ribbon-wrap::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.ribbon-wrap::after { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
.ribbon { display: flex; gap: 0; overflow-x: auto; padding: 30px max(10vw, 60px) 40px; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; }
.ribbon::-webkit-scrollbar { display: none; }
.ribbon.drag { cursor: grabbing; }
.ribbon.drag a { pointer-events: none; }
.tick { position: relative; flex: 0 0 230px; padding: 56px 22px 0 0; text-decoration: none; }
.tick::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: linear-gradient(90deg, var(--gold-lo), var(--line)); }
.tick::after { content: ""; position: absolute; left: 0; top: 25px; width: 11px; height: 11px; transform: rotate(45deg); background: var(--ink); border: 1px solid var(--accent, var(--gold)); transition: background .4s, box-shadow .4s, transform .4s var(--ease); }
.tick:hover::after { background: var(--accent, var(--gold)); box-shadow: 0 0 18px var(--accent, var(--gold)); transform: rotate(45deg) scale(1.25); }
.tick-year { position: absolute; top: 0; left: 0; font-family: var(--f-caps); font-size: 12px; letter-spacing: .14em; color: var(--accent, var(--gold)); }
.tick b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 22px; line-height: 1.12; color: var(--text); transition: color .3s; }
.tick:hover b { color: var(--gold-hi); }
.tick small { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.45; color: var(--text-3); opacity: .0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease); }
.tick:hover small { opacity: 1; transform: none; }
.era-tick { flex: 0 0 auto; padding: 56px 46px 0 4px; position: relative; }
.era-tick::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: var(--line); }
.era-tick span { font-family: var(--f-display); font-style: italic; font-size: 26px; color: var(--gold-hi); white-space: nowrap; }
.center { text-align: center; margin-top: 18px; }

/* art invitation */
.invite { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; max-width: 1180px; margin: 0 auto; }
.fan { position: relative; height: 380px; }
.fan a { position: absolute; top: 50%; left: 50%; width: 180px; height: 240px; margin: -120px 0 0 -90px; padding: 7px; background: var(--frame); box-shadow: 0 30px 60px -20px #000; transform: translateX(calc(var(--k) * 70px)) rotate(calc(var(--k) * 7deg)); transition: transform .9s var(--ease), z-index 0s; }
.fan a img { width: 100%; height: 100%; object-fit: cover; }
.fan:hover a { transform: translateX(calc(var(--k) * 120px)) rotate(calc(var(--k) * 10deg)) translateY(calc(var(--k) * var(--k) * 8px)); }
.fan a:hover { z-index: 5; transform: translateX(calc(var(--k) * 120px)) translateY(-26px) scale(1.06) !important; }
.invite h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; margin: 16px 0 18px; }
.invite p { color: var(--text-2); margin: 0 0 28px; }
@media (max-width: 860px) { .invite { grid-template-columns: 1fr; } .fan { height: 320px; } .fan a { width: 140px; height: 190px; margin: -95px 0 0 -70px; } }

/* footer */
.footer { padding: clamp(90px, 10vw, 140px) var(--gutter) 50px; text-align: center; border-top: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate; }
.footer .plate { z-index: -1; opacity: .16; }
.footer .plate::after { background: linear-gradient(180deg, var(--ink) 0%, rgba(14,11,8,.5) 50%, var(--ink) 100%); }
.footer blockquote { font-family: var(--f-display); font-style: italic; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.3; max-width: 880px; margin: 30px auto 0; }
.footer blockquote cite { display: block; margin-top: 16px; font-style: normal; color: var(--gold); }
.footer-nav { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin: 60px 0 0; }
.footer-nav a { font-family: var(--f-caps); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-2); text-decoration: none; transition: color .3s; }
.footer-nav a:hover { color: var(--gold-hi); }
.footer-small { margin: 30px auto 0; max-width: 760px; color: var(--text-3); font-size: 14.5px; }
.footer-small a { color: var(--text-2); }
.soli { margin-top: 26px; color: var(--gold); font-size: 10.5px; }

/* ═════════════ BANNERS (section, timeline, gallery) ═════════════ */
.banner { position: relative; height: clamp(440px, 68vh, 640px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.banner .plate { z-index: -1; view-transition-name: plate; }
.banner .plate img { animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1.15) translateY(-1.5%); } }
.banner .plate::after { background: linear-gradient(180deg, rgba(14,11,8,.62) 0%, rgba(14,11,8,.12) 34%, rgba(14,11,8,.8) 78%, var(--ink) 100%); }
.banner-copy { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter) clamp(34px, 5vw, 64px); }
.banner-copy h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(48px, 7vw, 108px); line-height: .96; margin: 16px 0 18px; }
.banner-copy p { max-width: 640px; color: var(--text-2); font-size: clamp(18px, 1.6vw, 21px); margin: 0; }
.banner .plate-credit { right: var(--gutter); bottom: 22px; }
.crumbs { display: flex; gap: 10px; align-items: center; color: var(--gold); flex-wrap: wrap; }
.crumbs a { text-decoration: none; color: var(--gold); transition: color .3s; }
.crumbs a:hover { color: var(--gold-hi); }
.crumbs i { font-style: normal; color: var(--text-3); }
.banner-stats { display: flex; gap: 26px; margin-top: 26px; color: var(--text-3); font-style: italic; font-size: 15.5px; }
.banner-stats b { font-style: normal; font-family: var(--f-display); font-size: 26px; font-weight: 500; color: var(--gold-hi); margin-right: 6px; }
@media (max-width: 760px) { .banner .plate-credit { display: none; } }

/* ═════════════ SECTION ═════════════ */
.sec-body { max-width: 1120px; margin: 0 auto; padding: 20px var(--gutter) 130px; }
.group { margin-top: clamp(50px, 6vw, 80px); }
.group-head { display: flex; align-items: baseline; gap: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); margin-bottom: 4px; }
.group-head h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.1; }
.group-head span { margin-left: auto; color: var(--text-3); font-style: italic; font-size: 15px; white-space: nowrap; }
.entries { list-style: none; margin: 0; padding: 0; }
.entry { border-bottom: 1px solid var(--line); }
.entry a { position: relative; display: grid; grid-template-columns: 120px 1fr 40px; gap: 26px; align-items: center; padding: 28px 8px; text-decoration: none; overflow: hidden; transition: padding .5s var(--ease); }
.entry .ghost-plate { position: absolute; inset: 0 0 0 auto; width: 46%; z-index: -1; opacity: 0; transition: opacity .7s var(--ease); }
.entry .ghost-plate img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 30%); transform: scale(1.12); transition: transform 1.6s var(--ease); -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); filter: brightness(.45) saturate(.85); }
.entry a:hover .ghost-plate { opacity: 1; }
.entry a:hover .ghost-plate img { transform: scale(1.02); }
.entry a:hover { padding-left: 22px; }
.entry-year { font-family: var(--f-display); font-size: 30px; line-height: 1; color: var(--gold); font-variant-numeric: oldstyle-nums; }
.entry-year small { display: block; margin-top: 6px; font-family: var(--f-body); font-size: 13.5px; font-style: italic; color: var(--text-3); line-height: 1.3; }
.entry h3 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(23px, 2.2vw, 29px); line-height: 1.15; color: var(--text); transition: color .3s; }
.entry a:hover h3 { color: var(--gold-hi); }
.entry .by { margin: 4px 0 0; color: var(--text-3); font-size: 15px; font-style: italic; }
.entry p.sum { margin: 8px 0 0; color: var(--text-2); font-size: 16.5px; line-height: 1.5; max-width: 62ch; }
.entry .arrow { color: var(--gold); font-size: 22px; justify-self: end; opacity: .5; transition: transform .5s var(--ease), opacity .4s; }
.entry a:hover .arrow { opacity: 1; transform: translateX(6px); }
@media (max-width: 640px) { .entry a { grid-template-columns: 1fr; gap: 10px; } .entry .arrow { display: none; } .entry-year { font-size: 22px; } .entry-year small { display: inline; margin-left: 8px; } }

.refs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 0 34px; }
.ref-row { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 16px 6px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .3s, padding .4s var(--ease); }
.ref-row:hover { background: rgba(212, 176, 102, .06); padding-left: 12px; }
.ref-row b { font-family: var(--f-caps); font-weight: 500; color: var(--gold); font-size: 13.5px; }
.ref-row span { font-size: 16px; line-height: 1.4; color: var(--text); }
.ref-row small { display: block; color: var(--text-3); font-size: 14px; margin-top: 4px; }

/* ═════════════ DOCUMENT ═════════════ */
.doc-head { position: relative; min-height: min(86vh, 820px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; isolation: isolate; }
.doc-head .plate { left: 38%; z-index: -1; view-transition-name: plate; }
.doc-head .plate img { animation: drift 34s ease-in-out infinite alternate; filter: saturate(.92); }
.doc-head .plate::after { background: linear-gradient(90deg, var(--ink) 0%, rgba(14,11,8,.82) 18%, rgba(14,11,8,.2) 55%, rgba(14,11,8,.35) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 35%), linear-gradient(180deg, rgba(14,11,8,.6) 0%, transparent 25%); }
.doc-head-copy { grid-column: 1; align-self: end; padding: 140px var(--gutter) clamp(50px, 7vw, 90px); max-width: 760px; }
.doc-head h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(42px, 5.2vw, 80px); line-height: 1; margin: 18px 0 20px; }
.doc-byline { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; color: var(--text-2); font-size: 17px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--f-caps); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); background: rgba(14, 11, 8, .45); }
.doc-summary { margin: 22px 0 0; font-family: var(--f-display); font-style: italic; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.38; color: var(--text); max-width: 34em; }
.doc-head .plate-credit { right: var(--gutter); bottom: 24px; }
.doc-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .doc-head { grid-template-columns: 1fr; min-height: 0; }
  .doc-head .plate { left: 0; }
  .doc-head .plate::after { background: linear-gradient(0deg, var(--ink) 8%, rgba(14,11,8,.7) 50%, rgba(14,11,8,.35) 100%); }
  .doc-head-copy { padding-top: 46vh; }
  .doc-head .plate-credit { display: none; }
}

/* The painting stays with the reader, at the edge of the page. */
.ghost { position: fixed; top: 0; bottom: 0; left: 0; width: 30vw; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s var(--ease); }
.ghost.on { opacity: .2; }
.ghost img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 30%); -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.6) 45%, transparent 100%); mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.6) 45%, transparent 100%); filter: sepia(.4) brightness(.8); transform: translateY(var(--py, 0px)) scale(1.1); }
@media (max-width: 1200px) { .ghost { display: none; } }

.doc-main { position: relative; z-index: 1; }
.intro { max-width: 760px; margin: 0 auto; padding: clamp(70px, 9vw, 120px) var(--gutter) 30px; }
.intro .caps { color: var(--gold); display: block; text-align: center; margin-bottom: 30px; }
.intro p { font-size: clamp(19px, 1.6vw, 21.5px); line-height: 1.7; color: var(--text); margin: 0 0 1.1em; }
.intro p:first-of-type::first-letter { float: left; font-family: var(--f-caps); font-size: 4.2em; line-height: .8; padding: .08em .12em 0 0; color: var(--gold); }

.passages { max-width: 980px; margin: 0 auto; padding: 50px var(--gutter) 20px; display: grid; gap: 34px; }
.passage { position: relative; padding: clamp(36px, 5vw, 60px) clamp(28px, 6vw, 80px); background: radial-gradient(ellipse at 50% 0%, rgba(242, 220, 161, .08), transparent 70%), linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line-strong); text-align: center; }
.passage::before, .passage::after { content: ""; position: absolute; width: 26px; height: 26px; border: 1px solid var(--gold); }
.passage::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.passage::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.passage-label { color: var(--gold); }
.passage blockquote { margin: 22px 0 22px; font-family: var(--f-display); font-style: italic; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.42; color: var(--text); }
.passage blockquote p { margin: 0 0 .6em; }
.passage blockquote p:last-child { margin: 0; }
.passage blockquote::before { content: "“"; display: block; font-size: 2.6em; line-height: .5; color: var(--gold); margin-bottom: 10px; font-style: normal; }
.passage-ref { color: var(--text-3); font-style: italic; font-size: 15.5px; }
.passage .link-gold { margin-top: 18px; }

/* the folio */
.text-wrap { position: relative; max-width: 1240px; margin: 0 auto; padding: 70px var(--gutter) 40px; display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: clamp(28px, 4vw, 60px); justify-content: center; }
.text-wrap.no-toc { grid-template-columns: minmax(0, 860px); }
.text-head { grid-column: 1 / -1; text-align: center; margin-bottom: 10px; }
.text-head .caps { color: var(--gold); }
.text-head p { color: var(--text-3); font-style: italic; font-size: 15.5px; max-width: 640px; margin: 14px auto 0; }
.folio { position: relative; background: var(--page); color: var(--page-ink); padding: clamp(36px, 6vw, 84px) clamp(22px, 6vw, 88px); box-shadow: 0 0 0 1px rgba(90, 64, 30, .3), 0 40px 90px -30px #000, inset 0 0 120px rgba(150, 110, 50, .18); min-width: 0; }
.folio::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--page-rule); pointer-events: none; }
.toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; scrollbar-width: none; }
.toc h4 { margin: 0 0 12px; font-family: var(--f-caps); font-size: 10.5px; letter-spacing: .24em; font-weight: 500; color: var(--gold); text-transform: uppercase; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a { display: block; padding: 6px 0 6px 14px; border-left: 1px solid var(--line); text-decoration: none; color: var(--text-3); font-size: 14.5px; line-height: 1.3; transition: color .25s, border-color .25s, padding .3s var(--ease); }
.toc li a:hover { color: var(--text); padding-left: 18px; }
.toc li a.on { color: var(--gold-hi); border-color: var(--gold); }
.toc .lvl3 a { padding-left: 26px; font-size: 13.5px; }
.chap-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.chap-grid a { text-align: center; padding: 7px 0; border: 1px solid var(--line); text-decoration: none; color: var(--text-2); font-family: var(--f-caps); font-size: 12px; transition: all .25s; }
.chap-grid a:hover, .chap-grid a.on { background: var(--gold); border-color: var(--gold); color: #1a1209; }
@media (max-width: 1000px) { .text-wrap { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }

.prose { font-size: 20px; line-height: 1.75; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.prose h2, .prose h3, .prose h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.15; color: var(--page-ink); scroll-margin-top: 100px; hyphens: manual; }
.prose h2 { font-size: 1.6em; margin: 2.2em 0 .7em; text-align: center; }
.prose h2:first-child { margin-top: 0; }
.prose h2::before { content: "❦"; display: block; font-size: .55em; color: var(--rubric); margin-bottom: .5em; }
.prose h3 { font-size: 1.28em; margin: 1.8em 0 .5em; font-style: italic; }
.prose h4 { margin: 1.6em 0 .4em; font-family: var(--f-caps); letter-spacing: .1em; font-size: .8em; text-transform: uppercase; color: var(--rubric); }
.prose p { margin: 0 0 1.05em; }
.prose > p:first-of-type::first-letter, .prose h2 + p::first-letter { float: left; font-family: var(--f-caps); font-size: 3.6em; line-height: .82; padding: .08em .1em 0 0; color: var(--rubric); }
.prose a { color: var(--page-link); text-decoration-color: color-mix(in srgb, var(--page-link) 40%, transparent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose a.ref { font-family: var(--f-caps); font-size: .6em; letter-spacing: .06em; text-decoration: none; vertical-align: .4em; padding: 1px 5px; margin: 0 1px; border: 1px solid color-mix(in srgb, var(--rubric) 40%, transparent); border-radius: 3px; color: var(--rubric); transition: all .2s; }
.prose a.ref:hover { background: var(--rubric); color: var(--page); }
.prose sup.v { font-family: var(--f-caps); font-size: .55em; color: var(--rubric); margin-right: 2px; vertical-align: .5em; line-height: 0; }
.prose blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1.2em; border-left: 2px solid var(--rubric); font-style: italic; color: var(--page-ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.4em 0; display: block; overflow-x: auto; font-size: .8em; line-height: 1.45; }
.prose th, .prose td { border-bottom: 1px solid var(--page-rule); padding: .55em .7em; text-align: left; vertical-align: top; hyphens: manual; }
.prose th { font-family: var(--f-caps); font-weight: 500; font-size: .78em; letter-spacing: .1em; color: var(--rubric); border-bottom-width: 2px; }
.prose hr { border: 0; text-align: center; margin: 2.4em 0; }
.prose hr::after { content: "✠"; color: var(--rubric); }
.prose [id^="key-"] { position: relative; background: linear-gradient(90deg, color-mix(in srgb, var(--rubric) 9%, transparent), transparent); box-shadow: -18px 0 0 color-mix(in srgb, var(--rubric) 9%, transparent); border-left: 2px solid var(--rubric); padding-left: 16px; margin-left: -18px; }
.prose .flash { animation: flash 2.4s ease; }
@keyframes flash { 0%, 35% { background-color: color-mix(in srgb, var(--rubric) 22%, transparent); } }
.prose mark.hit { background: color-mix(in srgb, var(--rubric) 22%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
.loading { text-align: center; padding: 80px 0; font-style: italic; color: var(--text-3); }
.loading::before { content: "✠"; display: block; font-size: 26px; color: var(--gold); animation: spin 3s linear infinite; margin-bottom: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); box-shadow: 0 0 14px rgba(242, 220, 161, .8); }

.after { max-width: 1120px; margin: 0 auto; padding: 50px var(--gutter) 110px; }
.provenance { max-width: 860px; margin: 0 auto 70px; padding: 24px 28px; border: 1px solid var(--line); color: var(--text-3); font-size: 15px; display: grid; grid-template-columns: 120px 1fr; gap: 6px 20px; }
.provenance b { font-family: var(--f-caps); font-weight: 500; letter-spacing: .18em; font-size: 10.5px; color: var(--gold); padding-top: 4px; }
.provenance a { color: var(--text-2); word-break: break-word; }
.ref-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ref-chips a { font-family: var(--f-caps); font-size: 11px; letter-spacing: .08em; padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 3px; text-decoration: none; color: var(--gold-hi); transition: background .25s, color .25s; }
.ref-chips a:hover { background: var(--gold); color: #1a1209; }
@media (max-width: 640px) { .provenance { grid-template-columns: 1fr; } }
.after h2 { text-align: center; font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 3.4vw, 46px); margin: 0 0 34px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; padding: 24px; text-decoration: none; overflow: hidden; border: 1px solid var(--line); transition: transform .7s var(--ease), border-color .5s, box-shadow .7s; }
.card .plate img { filter: brightness(.5) saturate(.8); }
.card .plate::after { background: linear-gradient(180deg, transparent 20%, rgba(14,11,8,.95) 100%); }
.card > :not(.plate) { position: relative; z-index: 2; }
.card:hover { transform: translateY(-6px); border-color: var(--gold-lo); box-shadow: 0 30px 60px -30px #000; }
.card:hover .plate img { transform: scale(1.1); filter: brightness(.65) saturate(1); }
.card small { color: var(--accent, var(--gold)); }
.card b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 23px; line-height: 1.15; margin-top: 8px; color: var(--text); }
.card span { display: block; color: var(--text-3); font-style: italic; font-size: 14.5px; margin-top: 6px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 60px; }
.pager .card { min-height: 220px; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; } }

/* reference cards inside dark contexts */
.refcard { position: fixed; z-index: 80; width: min(380px, calc(100vw - 32px)); padding: 18px 20px; background: #1b150f; color: var(--text); border: 1px solid var(--line-strong); box-shadow: 0 24px 60px -16px rgba(0,0,0,.85); font-size: 15.5px; line-height: 1.45; pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.refcard.on { opacity: 1; transform: none; }
.refcard b { font-family: var(--f-caps); font-weight: 500; color: var(--gold); font-size: 10.5px; letter-spacing: .2em; display: block; margin-bottom: 6px; }
.refcard p { margin: 0 0 8px; }
.refcard .note { color: var(--text-2); font-style: italic; }
.refcard .dom { color: var(--text-3); font-size: 13.5px; margin: 0; }

/* ═════════════ TIMELINE ═════════════ */
.tl { position: relative; max-width: 1100px; margin: 0 auto; padding: 40px var(--gutter) 140px; }
.tl::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, var(--gold-lo) 4%, var(--gold-lo) 96%, transparent); }
.tl-era { position: relative; text-align: center; margin: 90px 0 50px; }
.tl-era h2 { display: inline-block; margin: 0; padding: 10px 28px; background: var(--ink); font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: clamp(30px, 3.4vw, 44px); color: var(--gold-hi); position: relative; }
.tl-era p { position: relative; margin: 6px auto 0; max-width: 520px; padding: 0 20px; background: var(--ink); color: var(--text-3); font-style: italic; font-size: 16px; }
.tl-item { position: relative; width: 50%; padding: 0 56px 46px 0; text-align: right; }
.tl-item:nth-of-type(even) { margin-left: 50%; padding: 0 0 46px 56px; text-align: left; }
.tl-item::after { content: ""; position: absolute; top: 12px; right: -6px; width: 11px; height: 11px; transform: rotate(45deg); background: var(--ink); border: 1px solid var(--accent, var(--gold)); transition: background .4s, box-shadow .4s; z-index: 2; }
.tl-item:nth-of-type(even)::after { right: auto; left: -6px; }
.tl-item:hover::after { background: var(--accent, var(--gold)); box-shadow: 0 0 20px var(--accent, var(--gold)); }
.tl-item a { display: inline-block; text-decoration: none; max-width: 440px; padding: 4px 0; }
.tl-year { font-family: var(--f-caps); font-size: 12px; letter-spacing: .16em; color: var(--accent, var(--gold)); }
.tl-item b { display: block; margin: 6px 0 6px; font-family: var(--f-display); font-weight: 500; font-size: 25px; line-height: 1.15; color: var(--text); transition: color .3s; }
.tl-item a:hover b { color: var(--gold-hi); }
.tl-item p { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.5; }
.tl-item .sec { display: block; margin-top: 8px; font-size: 10px; color: var(--text-3); }
@media (max-width: 760px) {
  .tl::before { left: 18px; }
  .tl-item, .tl-item:nth-of-type(even) { width: auto; margin-left: 0; padding: 0 0 40px 46px; text-align: left; }
  .tl-item::after, .tl-item:nth-of-type(even)::after { left: 13px; right: auto; }
  .tl-era { text-align: left; padding-left: 30px; }
  .tl-era h2, .tl-era p { padding-left: 8px; }
}

/* ═════════════ GALLERY ═════════════ */
.rooms { max-width: 1240px; margin: 0 auto; padding: 30px var(--gutter) 120px; }
.room { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; margin-bottom: clamp(90px, 12vw, 160px); }
.room:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.room:nth-child(even) .room-art { order: 2; }
.room-art { cursor: zoom-in; position: relative; }
.frame { position: relative; padding: clamp(10px, 1.3vw, 18px); background: var(--frame); box-shadow: 0 0 0 1px #3c2a10, 0 40px 80px -30px rgba(0,0,0,.9), 0 0 120px -40px rgba(212, 176, 102, .35); }
.frame::before { content: ""; position: absolute; inset: clamp(5px, .6vw, 8px); border: 1px solid rgba(60, 40, 10, .55); pointer-events: none; }
.frame-inner { position: relative; overflow: hidden; background: #000; }
.frame-inner img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; transition: transform 1.8s var(--ease); }
.room-art:hover .frame-inner img { transform: scale(1.04); }
.room-num { color: var(--gold); }
.room h2 { font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: clamp(36px, 3.8vw, 54px); line-height: 1.02; margin: 12px 0 8px; }
.room .meta { color: var(--text-3); font-size: 15.5px; margin: 0 0 24px; }
.room .story p { color: var(--text-2); margin: 0 0 1em; font-size: 18px; }
.room blockquote { margin: 26px 0 0; padding-left: 22px; border-left: 1px solid var(--gold-lo); font-family: var(--f-display); font-style: italic; font-size: 22px; line-height: 1.4; }
.room blockquote cite { display: block; margin-top: 8px; font-style: normal; color: var(--gold); }
.room .seen { margin-top: 24px; }
.room .seen .caps { color: var(--text-3); display: block; margin-bottom: 8px; font-size: 10px; }
.room .seen a { display: inline-block; margin: 0 14px 6px 0; color: var(--gold-hi); font-size: 15.5px; text-decoration: none; border-bottom: 1px solid var(--gold-lo); }
.room .seen a:hover { border-color: var(--gold-hi); }
@media (max-width: 860px) { .room, .room:nth-child(even) { grid-template-columns: 1fr; } .room:nth-child(even) .room-art { order: 0; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(6, 5, 4, .97); animation: fade .35s ease; }
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lb-stage { position: absolute; inset: 64px 70px 92px; overflow: hidden; cursor: zoom-in; }
.lb-stage.zoomed { cursor: zoom-out; }
.lb-stage img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .6s var(--ease); box-shadow: 0 30px 90px -20px #000; user-select: none; -webkit-user-drag: none; }
.lb-caption { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; padding: 0 70px; }
.lb-caption b { font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: 26px; }
.lb-caption span { display: block; color: var(--text-3); font-size: 14.5px; }
.lb-close, .lb-nav { position: absolute; z-index: 2; background: none; border: 1px solid var(--line-strong); color: var(--gold-hi); width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 24px; line-height: 1; display: grid; place-items: center; transition: all .25s; }
.lb-close:hover, .lb-nav:hover { background: rgba(212, 176, 102, .14); border-color: var(--gold); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb-stage { inset: 60px 10px 110px; } .lb-nav { top: auto; bottom: 64px; transform: none; } .lb-caption { padding: 0 16px; bottom: 14px; } .lb-caption b { font-size: 21px; } }

/* ═════════════ SEARCH ═════════════ */
.search { position: fixed; inset: 0; z-index: 90; display: grid; place-items: start center; padding: 11vh 16px 16px; }
.search[hidden] { display: none; }
.search-backdrop { position: absolute; inset: 0; background: rgba(8, 6, 4, .74); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade .3s ease; }
.search-panel { position: relative; width: min(740px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #1d1711, #14100b); border: 1px solid var(--line-strong); box-shadow: 0 50px 120px -30px #000; animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-14px) scale(.98); } }
.search-head { display: flex; gap: 14px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.search-head svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.search-head input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font: italic 22px var(--f-body); min-width: 0; }
.search-head input::placeholder { color: var(--text-3); }
.search-head input::-webkit-search-cancel-button { display: none; }
.search-head kbd { cursor: pointer; }
.search-results { list-style: none; margin: 0; padding: 8px 0; overflow: auto; flex: 1; }
.search-results li a { display: block; padding: 14px 24px; text-decoration: none; border-left: 2px solid transparent; transition: background .2s; }
.search-results li.sel a { background: rgba(212, 176, 102, .09); border-left-color: var(--gold); }
.search-results .t { font-family: var(--f-display); font-size: 21px; line-height: 1.2; color: var(--text); }
.search-results .c { display: block; font-family: var(--f-caps); font-size: 9.5px; letter-spacing: .18em; color: var(--accent, var(--gold)); margin-bottom: 3px; }
.search-results .x { display: block; margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.search-results mark { background: none; color: var(--gold-hi); border-bottom: 1px solid var(--gold-lo); }
.search-results .hint { padding: 26px 24px; color: var(--text-3); font-style: italic; }
.search-results .head { padding: 10px 24px 4px; color: var(--text-3); font-size: 10px; }
.search-foot { display: flex; gap: 18px; padding: 10px 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
.search-foot kbd { margin-right: 4px; }
.search-count { margin-left: auto; font-style: italic; }

.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter); }
.lost h1 { font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: clamp(48px, 7vw, 90px); margin: 10px 0; }
.lost p { color: var(--text-2); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ── the cursor: a point of gold with a ring of light that follows it ── */
.cursor-dot, .cursor-ring, .cursor-trail { display: none; }
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.fancy-cursor, html.fancy-cursor * { cursor: none !important; }
  html.fancy-cursor input, html.fancy-cursor textarea { cursor: text !important; }
  .fancy-cursor .cursor-dot, .fancy-cursor .cursor-ring { display: block; position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; border-radius: 50%; will-change: transform; }
  .fancy-cursor .cursor-trail { display: block; position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 199; pointer-events: none; mix-blend-mode: screen; }
  .cursor-dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; background: #fff3cf; box-shadow: 0 0 6px 1px rgba(242, 220, 161, .6); }
  .cursor-ring { width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 1px solid rgba(242, 220, 161, .35); box-shadow: 0 0 12px -4px rgba(242, 220, 161, .3);
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s, opacity .3s; }
  .cursor-ring::before, .cursor-ring::after { content: ""; position: absolute; left: 50%; top: 50%; background: rgba(242, 220, 161, .75); transform: translate(-50%, -50%); opacity: 0; transition: opacity .35s, width .35s var(--ease), height .35s var(--ease); }
  .cursor-ring::before { width: 1px; height: 0; }
  .cursor-ring::after { width: 0; height: 1px; }
  .cursor-ring.hover { width: 34px; height: 34px; margin: -17px 0 0 -17px; background: rgba(242, 220, 161, .05); border-color: rgba(242, 220, 161, .6); }
  .cursor-ring.hover::before { opacity: .7; height: 8px; }
  .cursor-ring.hover::after { opacity: .7; width: 5px; transform: translate(-50%, -200%); }
  .cursor-ring.zoom { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-style: dashed; }
  .cursor-ring.read { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-color: rgba(147, 48, 26, .55); box-shadow: none; }
  .cursor-ring.read + .cursor-dot { background: #93301a; box-shadow: 0 0 6px rgba(147, 48, 26, .6); }
  .cursor-ring.down { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: rgba(242, 220, 161, .2); }
  .cursor-ring.gone, .cursor-ring.gone + .cursor-dot { opacity: 0; }
}

.toc summary { list-style: none; cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
@media (max-width: 1000px) {
  .toc { display: block; position: static; order: -1; max-height: none; border: 1px solid var(--line); padding: 14px 18px; }
  .toc summary h4 { margin: 0; display: flex; justify-content: space-between; }
  .toc summary h4::after { content: "+"; font-size: 16px; line-height: 1; }
  .toc details[open] summary h4 { margin-bottom: 12px; }
  .toc details[open] summary h4::after { content: "−"; }
  .chap-grid { grid-template-columns: repeat(7, 1fr); }
}

/* search matches inside a text */
.prose mark.hit.cur { background: color-mix(in srgb, var(--rubric) 45%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--rubric) 45%, transparent); }
.hitnav { position: fixed; z-index: 60; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 18px; border-radius: 999px; background: rgba(20, 16, 11, .92); border: 1px solid var(--line-strong); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 50px -14px #000; animation: rise .6s var(--ease); max-width: calc(100vw - 24px); }
.hitnav .caps { color: var(--gold); font-size: 10px; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hitnav b { font-weight: 400; font-style: italic; color: var(--text-2); font-size: 14.5px; white-space: nowrap; }
.hitnav button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; color: var(--gold-hi); cursor: pointer; transition: background .25s; }
.hitnav button:hover { background: rgba(212, 176, 102, .15); }

/* ═════════════ PRINT: black text on white paper ═════════════ */
@media print {
  @page { margin: 2cm 2.2cm; }
  html, body { background: #fff !important; color: #111 !important; font-size: 11.5pt; }
  .grain, .bar, .footer, .ghost, .progress, .plate, .plate-credit, .doc-actions, .toc, .pager, .cards, .after h2, .hitnav, .cursor-dot, .cursor-ring, .cursor-trail, .search, .lightbox, .refcard, .scroll-cue, .passage .link-gold { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .doc-head { display: block; min-height: 0; color: #111; }
  .doc-head-copy { padding: 0 0 12pt; max-width: none; }
  .doc-head h1 { color: #111; font-size: 26pt; margin: 6pt 0 8pt; }
  .crumbs, .crumbs a, .chip { color: #555 !important; border-color: #bbb; background: none; }
  .doc-byline, .doc-summary { color: #333; }
  .doc-summary { font-size: 13pt; }
  .intro { padding: 12pt 0 0; max-width: none; }
  .intro .caps, .text-head .caps, .passage-label { color: #8a2a17 !important; }
  .intro p { color: #111; font-size: 11.5pt; }
  .intro p:first-of-type::first-letter, .prose > p:first-of-type::first-letter, .prose h2 + p::first-letter { color: #8a2a17; }
  .passages { padding: 12pt 0; }
  .passage { background: none; border: 1px solid #bbb; color: #111; break-inside: avoid; padding: 14pt 20pt; }
  .passage blockquote { color: #111; font-size: 13pt; }
  .text-wrap, .text-wrap.no-toc { display: block; padding: 12pt 0 0; max-width: none; }
  .text-head p { color: #555; }
  .folio { background: none; box-shadow: none; padding: 0; }
  .folio::before { display: none; }
  .prose { font-size: 11.5pt; line-height: 1.55; color: #111; }
  .prose h2, .prose h3 { color: #111; break-after: avoid; }
  .prose p, .prose blockquote, .prose li { orphans: 3; widows: 3; }
  .prose a { color: #111; text-decoration: none; }
  .prose [id^="key-"] { background: none; box-shadow: none; border-left: 2pt solid #8a2a17; }
  .after { padding: 18pt 0 0; }
  .provenance { border-color: #bbb; color: #333; margin: 0; max-width: none; }
  .provenance b { color: #8a2a17; }
  .provenance a { color: #333; }
  a[href^="http"]::after { content: ""; }
}

/* ═════════════ GUIDED PATH ═════════════ */
.path-cta { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; max-width: 1240px; min-height: 380px; margin: 0 auto 30px; padding: clamp(28px, 4vw, 54px); overflow: hidden; text-decoration: none; border: 1px solid var(--line-strong); transition: border-color .6s, box-shadow .8s var(--ease), transform .8s var(--ease); }
.path-cta .plate img { filter: brightness(.55) saturate(.9); }
.path-cta .plate::after { background: linear-gradient(90deg, rgba(14,11,8,.95) 0%, rgba(14,11,8,.6) 50%, rgba(14,11,8,.15) 100%); }
.path-cta > :not(.plate) { position: relative; z-index: 2; max-width: 620px; }
.path-cta .caps { color: var(--gold); }
.path-cta b { font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 4.4vw, 62px); line-height: 1; color: var(--text); }
.path-cta-lede { color: var(--text-2); font-size: 18px; margin-bottom: 12px; }
.path-cta:hover { border-color: var(--gold); box-shadow: 0 40px 90px -40px #000, 0 0 80px -30px rgba(212, 176, 102, .5); transform: translateY(-4px); }
.path-cta:hover .plate img { transform: scale(1.08); filter: brightness(.7) saturate(1); }
.path-cta:hover .arrow { transform: translateX(6px); }
.or { text-align: center; color: var(--text-3); margin: 34px 0 28px; }

.road { list-style: none; max-width: 900px; margin: 0 auto; padding: 50px var(--gutter) 120px; position: relative; counter-reset: stop; }
.road::before { content: ""; position: absolute; left: calc(var(--gutter) + 31px); top: 60px; bottom: 140px; width: 1px; background: linear-gradient(var(--gold-lo), var(--line)); }
.road li a { position: relative; display: grid; grid-template-columns: 64px 1fr 150px; gap: 24px; align-items: center; padding: 18px 0; text-decoration: none; }
.road-num { position: relative; z-index: 1; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); border: 1px solid var(--accent, var(--gold)); font-family: var(--f-caps); font-size: 15px; color: var(--accent, var(--gold)); transition: background .4s, color .4s, box-shadow .4s; }
.road li a:hover .road-num { background: var(--accent, var(--gold)); color: #1a1209; box-shadow: 0 0 30px -4px var(--accent, var(--gold)); }
.road-body .caps { color: var(--text-3); font-size: 10px; }
.road-body b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 27px; line-height: 1.1; color: var(--text); margin: 4px 0; transition: color .3s; }
.road li a:hover b { color: var(--gold-hi); }
.road-body small { color: var(--text-3); font-style: italic; font-size: 15px; }
.road-art { position: relative; height: 96px; overflow: hidden; border: 1px solid var(--line); opacity: .75; transition: opacity .5s; }
.road li a:hover .road-art { opacity: 1; }
.road li a:hover .road-art img { transform: scale(1.12); }
@media (max-width: 640px) { .road li a { grid-template-columns: 52px 1fr; gap: 16px; } .road-num { width: 50px; height: 50px; font-size: 13px; } .road::before { left: calc(var(--gutter) + 25px); } .road-art { display: none; } .road-body b { font-size: 22px; } }

.stop { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.stop-art { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.stop-art .plate { view-transition-name: plate; }
.stop-art .plate::after { background: linear-gradient(90deg, transparent 60%, var(--ink) 100%), linear-gradient(0deg, rgba(14,11,8,.5), transparent 30%); }
.stop-art .plate-credit { left: 24px; bottom: 22px; }
.stop-body { padding: 130px clamp(24px, 5vw, 80px) 120px; display: flex; flex-direction: column; justify-content: center; }
.stop-body h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 5vw, 76px); line-height: 1; margin: 18px 0 22px; }
.stop-bridge { font-size: clamp(19px, 1.5vw, 21px); line-height: 1.7; color: var(--text); margin: 0 0 30px; }
.stop-passage { margin: 0 0 34px; text-align: left; padding: 30px 34px; }
.stop-passage blockquote { font-size: clamp(20px, 1.8vw, 25px); }
.stop-passage blockquote::before { display: none; }
.stop-prev { margin-top: 26px; align-self: flex-start; }
.stop-dots { position: fixed; z-index: 40; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.stop-dots a { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--gold-lo); transition: background .3s, transform .3s, border-color .3s; }
.stop-dots a.done { background: var(--gold-lo); }
.stop-dots a.on { background: var(--gold-hi); border-color: var(--gold-hi); transform: rotate(45deg) scale(1.35); box-shadow: 0 0 12px var(--gold); }
.stop-dots a:hover { border-color: var(--gold-hi); }
@media (max-width: 900px) {
  .stop { grid-template-columns: 1fr; }
  .stop-art { position: relative; height: 52vh; }
  .stop-art .plate::after { background: linear-gradient(0deg, var(--ink) 0%, transparent 50%); }
  .stop-body { padding: 0 var(--gutter) 90px; margin-top: -60px; position: relative; }
  .stop-dots { top: auto; bottom: 0; left: 0; right: 0; transform: none; flex-direction: row; justify-content: center; padding: 14px; background: linear-gradient(transparent, var(--ink) 50%); }
}
.passage sup.v { font-family: var(--f-caps); font-style: normal; font-size: .5em; color: var(--gold); vertical-align: .55em; line-height: 0; margin-right: 2px; }

/* ═════════════ CHIPS: people, places, comparisons ═════════════ */
.in-text, .compare-band { max-width: 860px; margin: 0 auto 60px; text-align: center; }
.compare-band { margin: 30px auto 0; padding: 0 var(--gutter); }
.in-text .caps, .compare-band .caps { color: var(--gold); display: block; margin-bottom: 16px; }
.ent-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ent-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-size: 15.5px; color: var(--text); transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease); }
.ent-chip i { font-style: normal; font-family: var(--f-caps); font-size: 10px; color: var(--text-3); }
.ent-chip.place::before { content: "◈"; color: var(--gold); font-size: 11px; }
.ent-chip.person::before { content: "✦"; color: var(--gold); font-size: 10px; }
.ent-chip.cmp::before { content: "⫴"; color: var(--gold); }
.ent-chip:hover { background: rgba(212, 176, 102, .1); border-color: var(--gold); color: var(--gold-hi); transform: translateY(-2px); }

/* ═════════════ COMPARE ═════════════ */
.cmp-intro { max-width: 780px; margin: 0 auto; padding: 60px var(--gutter) 10px; }
.cmp-intro p { font-size: 19.5px; line-height: 1.7; }
.cmp-notes { margin: 20px 0 0; padding: 0; list-style: none; }
.cmp-notes li { position: relative; padding: 8px 0 8px 26px; color: var(--text-2); border-top: 1px solid var(--line); }
.cmp-notes li::before { content: "✠"; position: absolute; left: 0; color: var(--gold); font-size: 12px; top: 11px; }
.cmp-hint { color: var(--text-3); text-align: center; margin-top: 30px; font-size: 10px; }
.cmp { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 16px; max-width: 1500px; margin: 0 auto; padding: 20px var(--gutter) 120px; align-items: start; }
.cmp-col { background: var(--page); color: var(--page-ink); box-shadow: 0 30px 70px -30px #000, inset 0 0 80px rgba(150, 110, 50, .16); position: relative; }
.cmp-col header { position: sticky; top: 62px; z-index: 2; padding: 16px 20px 14px; background: var(--ink-3); border-bottom: 2px solid var(--accent, var(--gold)); display: grid; gap: 2px; }
.cmp-col header .caps { color: var(--accent, var(--gold)); font-size: 10.5px; }
.cmp-col header b { font-family: var(--f-display); font-weight: 500; font-size: 22px; color: var(--text); }
.cmp-col header .link-gold { justify-self: start; font-size: 10px; margin-top: 4px; }
.cmp-text { padding: 22px 24px 30px; font-size: 17.5px; line-height: 1.7; }
.cmp-text > p:first-of-type::first-letter, .cmp-text h2 + p::first-letter { float: none; font: inherit; color: inherit; padding: 0; }
.cmp-text h4 { font-size: .7em; }
.cmp-text .w { border-radius: 2px; transition: background .2s, box-shadow .2s; }
.cmp-text .w.lit { background: color-mix(in srgb, var(--rubric) 20%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--rubric) 20%, transparent); }
.cmp-tabs { display: none; }
@media (max-width: 900px) {
  .cmp { grid-template-columns: 1fr; padding-top: 0; }
  .cmp-col { display: none; }
  .cmp-col.on { display: block; animation: rise .5s var(--ease); }
  .cmp-col header { top: 58px; }
  .cmp-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 20px var(--gutter) 12px; position: sticky; top: 56px; z-index: 5; background: linear-gradient(var(--ink) 75%, transparent); scrollbar-width: none; }
  .cmp-tabs button { flex: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--text-2); font-family: var(--f-caps); font-size: 11px; letter-spacing: .14em; cursor: pointer; }
  .cmp-tabs button.on { background: var(--gold); color: #1a1209; border-color: var(--gold); }
}

/* ═════════════ PEOPLE & PLACES ═════════════ */
.ent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 20px; }
.ent-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; padding: 18px; text-decoration: none; overflow: hidden; border: 1px solid var(--line); transition: transform .6s var(--ease), border-color .5s, box-shadow .6s; }
.ent-tile .plate img { filter: brightness(.42) saturate(.7) sepia(.3); }
.ent-tile .plate::after { background: linear-gradient(180deg, transparent 25%, rgba(14,11,8,.95) 100%); }
.ent-tile > :not(.plate) { position: relative; z-index: 2; }
.ent-tile b { font-family: var(--f-display); font-weight: 500; font-size: 23px; line-height: 1.1; color: var(--text); }
.ent-tile span { color: var(--text-3); font-size: 14px; font-style: italic; margin-top: 4px; line-height: 1.35; }
.ent-tile i { font-style: normal; font-family: var(--f-caps); font-size: 10px; letter-spacing: .16em; color: var(--gold); margin-top: 10px; }
.ent-tile:hover { transform: translateY(-5px); border-color: var(--gold-lo); box-shadow: 0 30px 60px -30px #000; }
.ent-tile:hover .plate img { transform: scale(1.1); filter: brightness(.6) saturate(1) sepia(0); }
@media (max-width: 640px) { .ent-grid { grid-template-columns: repeat(2, 1fr); } .ent-tile { min-height: 190px; } .ent-tile b { font-size: 19px; } }
.group-head span a { font-style: normal; margin-left: 10px; }
.mentions { list-style: none; margin: 0; padding: 0; }
.mentions li a { display: grid; grid-template-columns: 90px 1fr 160px 44px; gap: 18px; align-items: center; padding: 14px 6px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .3s, padding .4s var(--ease); }
.mentions li a:hover { background: rgba(212, 176, 102, .06); padding-left: 14px; }
.m-year { font-family: var(--f-caps); font-size: 12px; letter-spacing: .1em; color: var(--accent, var(--gold)); }
.m-title { color: var(--text); font-size: 17.5px; line-height: 1.3; }
.m-title small { display: block; color: var(--text-3); font-size: 13px; font-style: italic; }
.m-bar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.m-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-lo), var(--accent, var(--gold))); }
.m-n { color: var(--text-3); font-size: 14px; text-align: right; }
@media (max-width: 640px) { .mentions li a { grid-template-columns: 1fr 40px; } .m-year, .m-bar { display: none; } }

/* ═════════════ MAP ═════════════ */
.map-page { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #0c0a07; }
.map-wrap { position: absolute; inset: 0; }
.map { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.map:active { cursor: grabbing; }
.map .graticule path { fill: none; stroke: rgba(214, 180, 112, .07); stroke-width: calc(1px / var(--k, 1)); }
.map .land { fill: #2a2117; stroke: rgba(226, 196, 130, .55); stroke-width: calc(.9px / var(--k, 1)); }
.map .land-glow { fill: none; stroke: rgba(212, 176, 102, .22); stroke-width: calc(5px / var(--k, 1)); }
.map .land-hatch { pointer-events: none; }
.map .lakes { fill: #13110d; stroke: rgba(226, 196, 130, .4); stroke-width: calc(.6px / var(--k, 1)); }
.map .rivers { fill: none; stroke: rgba(140, 170, 200, .35); stroke-width: calc(1px / var(--k, 1)); }
.map .seas text { font-family: var(--f-display); font-style: italic; font-size: calc(22px / var(--k, 1)); fill: rgba(214, 180, 112, .3); text-anchor: middle; letter-spacing: .2em; pointer-events: none; }
.map .pin { cursor: pointer; }
.map .pin > * { transform: scale(calc(1 / var(--k, 1))); transition: opacity .5s; }
.map .pin .dot { fill: var(--gold-hi); stroke: #1a1209; stroke-width: 1px; filter: drop-shadow(0 0 4px rgba(242, 220, 161, .9)); }
.map .pin .halo { fill: rgba(242, 220, 161, .12); stroke: rgba(242, 220, 161, .35); stroke-width: .7px; opacity: 0; }
.map .pin.has .halo { opacity: 1; animation: pulse 3.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.map .pin text { font-family: var(--f-caps); font-size: 11px; letter-spacing: .12em; fill: var(--text); text-anchor: middle; paint-order: stroke; stroke: #0c0a07; stroke-width: 3px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.map .pin.has text, .map .pin:hover text, .map .pin.sel text { opacity: 1; }
.map .pin:hover .dot, .map .pin.sel .dot { fill: #fff; filter: drop-shadow(0 0 10px var(--gold-hi)); }
[data-layer="origins"] .map .pin:not(.has) > * { opacity: .22; }
[data-layer="story"] .map .pin.has .halo { opacity: 0; animation: none; }
[data-layer="story"] .map .pin text { opacity: .85; }
.map-legend { position: absolute; left: var(--gutter); bottom: 26px; z-index: 3; max-width: 340px; padding: 18px 20px; background: rgba(14, 11, 8, .82); border: 1px solid var(--line-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.map-legend .caps { color: var(--gold); }
.map-legend p { margin: 6px 0 12px; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.map-toggle { display: flex; gap: 6px; }
.map-toggle button { flex: 1; padding: 8px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--text-2); font-family: var(--f-caps); font-size: 10px; letter-spacing: .12em; cursor: pointer; transition: all .3s; }
.map-toggle button.on { background: var(--gold); color: #1a1209; border-color: var(--gold); }
.map-zoom { position: absolute; right: var(--gutter); bottom: 26px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.map-zoom button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(14, 11, 8, .82); color: var(--gold-hi); font-size: 18px; cursor: pointer; transition: background .3s; }
.map-zoom button:hover { background: rgba(212, 176, 102, .18); }
.map-panel { position: absolute; z-index: 4; top: 84px; right: var(--gutter); bottom: 90px; width: min(380px, calc(100vw - 32px)); overflow: auto; padding: 24px 24px 28px; background: rgba(18, 14, 10, .92); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 40px 90px -30px #000; transform: translateX(calc(100% + 40px)); transition: transform .7s var(--ease); }
.map-panel.on { transform: none; }
.map-panel .caps { color: var(--gold); font-size: 10px; }
.map-panel h2 { font-family: var(--f-display); font-weight: 400; font-size: 38px; line-height: 1; margin: 8px 0 12px; }
.map-panel p { color: var(--text-2); font-size: 16px; }
.map-panel h3 { margin: 22px 0 8px; color: var(--text-3); font-size: 10px; }
.map-panel ul { list-style: none; margin: 0 0 22px; padding: 0; }
.map-panel li a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 16px; line-height: 1.3; transition: color .3s, padding .3s var(--ease); }
.map-panel li a:hover { color: var(--gold-hi); padding-left: 6px; }
.map-panel li a i { display: block; font-style: normal; font-family: var(--f-caps); font-size: 10px; letter-spacing: .12em; color: var(--accent, var(--gold)); margin-bottom: 2px; }
.map-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: none; border: 1px solid var(--line-strong); color: var(--gold-hi); cursor: pointer; }
@media (max-width: 760px) {
  .map-legend { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 12px 14px; }
  .map-legend p { display: none; }
  .map-zoom { right: 12px; bottom: auto; top: 76px; }
  .map-panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 62vh; transform: translateY(105%); border-left: 0; border-right: 0; border-bottom: 0; }
  .map-panel.on { transform: none; }
}

@media (max-width: 900px) { .stop-art .plate-credit { display: none; } }
