/* =====================================================================
   Rarbg.com.tr — "Gallery Archive" museum-exhibition theme
   Plain CSS, no build step. Edit the variables in section 1 and save.
   1. Easy settings   2. Fonts   3. Base   4. Buttons   5. Header
   6. Hero (spot-lit exhibit)   7. Sections   8. Homepage rooms
   9. Inner pages & guides   10. Footer (lobby directory)   11. Motion   12. Responsive
   ===================================================================== */

/* ---------- 1. Easy settings — change these ---------- */
:root {
  /* Text sizes */
  --hero-h1: clamp(2.2rem, 4.6vw, 3.8rem);   /* homepage H1 size */
  --page-h1: clamp(1.9rem, 3.5vw, 2.8rem);   /* H1 on guides and pages */
  --h2: clamp(1.6rem, 3vw, 2.35rem);          /* section titles */
  --h3: 1.1rem;
  --body: 1.02rem;
  --line: 1.75;

  /* Colours (no blue in the theme; the logo keeps its own colours) */
  --wall: #F7F5F0;        /* gallery wall – page background */
  --stone: #EEEAE1;       /* alternate rooms */
  --paper: #FFFDF9;       /* placards and cards */
  --ink: #1F1D1B;         /* headings, dark areas */
  --ink-2: #4D4842;       /* body text */
  --muted: #7A736A;
  --rule: #DDD6CA;        /* borders */
  --terra: #B5472E;       /* accent – closed / warnings */
  --gold: #FFC72C;        /* accent – brass, highlights */
  --brass: #A87B1F;       /* darker brass for text */
  --wood: #2A2622;        /* picture frames */
  --ok: #3C7A4E;
  --on-dark: #F2EEE6;

  /* Shape and layout */
  --container: 1140px;
  --radius: 4px;          /* gallery edges are crisp */
  --header-h: 78px;
  --shadow: 0 24px 40px -24px rgba(31, 29, 27, .45);

  /* Motion */
  --ease: cubic-bezier(.22, .8, .2, 1);
}

/* ---------- 2. Fonts (served from this site) ---------- */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Poppins", system-ui, sans-serif; font-size: var(--body); line-height: var(--line); color: var(--ink-2); background: var(--wall); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
svg { width: 1.2em; height: 1.2em; flex: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.02em; overflow-wrap: break-word; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
p { margin: 0 0 1em; }
a { color: var(--terra); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
code { font-family: ui-monospace, Consolas, monospace; font-size: .86em; background: var(--stone); padding: .06em .4em; border-radius: 3px; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.lead { font-size: 1.05rem; color: var(--muted); }

/* ---------- 4. Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 12px; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 1px solid var(--ink); cursor: pointer; max-width: 100%; transition: background .25s, color .25s, transform .25s var(--ease); }
.btn-ico { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 2px; }
.btn-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.btn-txt small { font-size: .72rem; font-weight: 400; opacity: .8; overflow-wrap: anywhere; }
.btn-main { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.btn-main .btn-ico { background: var(--gold); color: var(--ink); }
.btn-main::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent); transform: skewX(-20deg); animation: sheen 4.5s 2s infinite; }
.btn-main:hover { background: var(--terra); border-color: var(--terra); color: #fff; transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--ink); padding: 13px 22px; }
.btn-line svg { transition: transform .25s var(--ease); }
.btn-line:hover { background: var(--ink); color: var(--on-dark); }
.btn-line:hover svg { transform: translateX(4px); }
.btn-line.light { color: var(--on-dark); border-color: var(--on-dark); }
.btn-line.light:hover { background: var(--on-dark); color: var(--ink); }
.btn-lg { font-size: 1.03rem; padding: 14px 24px 14px 14px; }
.btn-lg .btn-ico { width: 44px; height: 44px; }
.btn-sm { padding: 7px 14px 7px 7px; font-size: .9rem; }
.btn-sm .btn-ico { width: 30px; height: 30px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- 5. Header — gallery signage ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 240, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); box-shadow: 0 3px 0 -2px var(--rule); }
.header-row { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.logo img { width: 44px; height: 44px; border-radius: 6px; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--rule); transition: transform .4s var(--ease); }
.logo:hover img { transform: rotate(-4deg); }
.logo-words { display: flex; flex-direction: column; line-height: 1.12; }
.logo-text { font-weight: 700; font-size: 1.25rem; letter-spacing: .06em; }
.logo-tag { font-size: .64rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.era { display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); }
.era i { position: relative; width: 44px; height: 1px; background: var(--rule); overflow: hidden; }
.era i::after { content: ""; position: absolute; left: 0; top: -1px; width: 8px; height: 3px; background: var(--terra); animation: travel 4s ease-in-out infinite; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { position: relative; display: block; padding: 8px 11px; color: var(--ink); text-decoration: none; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 3px; height: 2px; background: var(--terra); transition: left .3s var(--ease), right .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { left: 11px; right: 11px; }
.nav a[aria-current="page"] { color: var(--terra); }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); cursor: pointer; place-items: center; }
.bars { display: grid; gap: 4px; }
.bars i { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.seam { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--terra) var(--progress, 0%), transparent var(--progress, 0%)); }

/* ---------- 6. Hero — gallery wall with a spot-lit exhibit ---------- */
.hero { position: relative; padding: 70px 0 84px; overflow: hidden;
  background: radial-gradient(600px 420px at var(--sx, 72%) var(--sy, 40%), rgba(255, 228, 170, .42), transparent 70%), var(--wall); }
.beam { position: absolute; right: 12%; top: -40px; width: 520px; height: 760px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 233, 180, .55), rgba(255, 233, 180, 0) 85%); clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); animation: flicker 6s ease-in-out infinite; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 54px; align-items: center; }
.hero-k { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; animation: rise .8s var(--ease) both; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 0 rgba(181, 71, 46, .5); animation: pulse 2s infinite; }
.hero h1 { font-size: var(--hero-h1); line-height: 1.06; letter-spacing: -.035em; font-weight: 700; margin-bottom: 22px; animation: rise .9s .1s var(--ease) both; }
.u { background: linear-gradient(var(--gold), var(--gold)) 0 92% / 0 .18em no-repeat; animation: underline 1.2s .8s var(--ease) forwards; }
.hero-lead { font-size: 1.03rem; max-width: 62ch; animation: rise .9s .2s var(--ease) both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 20px; align-items: center; }
.hero-cta.center { justify-content: center; }
.hero-note { display: flex; gap: 8px; font-size: .86rem; color: var(--muted); margin: 0; }
.hero-note svg { margin-top: 3px; color: var(--ok); }
.gallery { position: relative; padding: 30px 0 70px; }
.frame { position: relative; margin: 0 auto; width: min(380px, 86%); background: var(--wood); padding: 16px; box-shadow: var(--shadow), inset 0 0 0 2px #3A342E; transform-origin: 50% -40px; animation: hang 7s ease-in-out infinite, drop-in 1.2s var(--ease) both; }
.frame::before { content: ""; position: absolute; left: 50%; top: -46px; width: 120px; height: 46px; margin-left: -60px; border: 1px solid #9C948A; border-bottom: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: transparent; }
.frame::after { content: ""; position: absolute; left: 50%; top: -52px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--brass); }
.frame-in { background: var(--paper); padding: 26px; box-shadow: inset 0 0 0 1px var(--rule); }
.frame-in img { width: 100%; aspect-ratio: 1; }
.placard { position: absolute; left: 0; bottom: 8px; width: 240px; background: var(--paper); border: 1px solid var(--rule); padding: 16px 18px; box-shadow: 0 14px 24px -16px rgba(31, 29, 27, .5); animation: slide-in .9s 1s var(--ease) both; }
.pc-t { font-weight: 700; letter-spacing: .1em; color: var(--ink); margin: 0 0 6px; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.placard dl { margin: 0; font-size: .78rem; }
.placard dl div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.placard dt { color: var(--muted); } .placard dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }
.placard .closed { color: var(--terra); font-weight: 700; }
.era-line { position: absolute; right: 0; bottom: 30px; width: 46%; display: flex; align-items: center; gap: 10px; font-size: .72rem; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.era-line i { position: relative; flex: 1; height: 2px; background: var(--rule); }
.era-line b { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(255, 199, 44, .3); animation: era 6s var(--ease) 1.4s infinite; }

/* ---------- 7. Sections ---------- */
.section { padding: 92px 0; position: relative; }
.section.stone { background: var(--stone); background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(31, 29, 27, .012) 3px 4px); }
.s-head { max-width: 740px; margin-bottom: 40px; }
.s-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.room { display: inline-flex; align-items: stretch; margin: 0 0 14px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--ink); }
.room span { padding: 3px 10px; background: var(--ink); color: var(--gold); font-weight: 600; }
.room b { padding: 3px 12px; color: var(--ink); font-weight: 600; }

/* ---------- 8. Homepage rooms ---------- */
/* The legacy — a sideways gallery walk of placards */
.walk { overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 0 26px; scrollbar-width: thin; scrollbar-color: var(--terra) var(--rule); }
.walk:focus-visible { outline-offset: -2px; }
.plaques { list-style: none; margin: 0; display: flex; gap: 22px; padding: 0 max(24px, calc((100vw - var(--container)) / 2 + 24px)); width: max-content; }
.plaque { width: 300px; flex: none; scroll-snap-align: start; background: var(--paper); border: 1px solid var(--rule); padding: 0 24px 24px; position: relative; transition: transform .35s var(--ease), box-shadow .35s; }
.plaque:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pl-no { display: inline-block; margin: 0 0 20px; padding: 6px 14px; background: linear-gradient(180deg, #E8C25B, var(--brass)); color: var(--ink); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; transform: translateY(-1px); }
.pl-ico { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--ink); border-radius: 50%; margin-bottom: 14px; color: var(--terra); transition: background .3s, color .3s; }
.plaque:hover .pl-ico { background: var(--ink); color: var(--gold); }
.plaque h3 { margin-bottom: 6px; } .plaque p:last-child { margin: 0; font-size: .94rem; }
.walk-hint { display: flex; align-items: center; gap: 8px; font-size: .78rem; letter-spacing: .08em; color: var(--muted); margin: 0; }
.walk-hint svg { animation: nudge-x 1.6s ease-in-out infinite; }

/* Download — display case */
.case { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.vitrine { display: flex; flex-direction: column; align-items: center; }
.glass { position: relative; width: 100%; max-width: 320px; aspect-ratio: 4 / 5; border: 1px solid rgba(255, 255, 255, .9); background: linear-gradient(135deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .25)); box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .35), 0 20px 30px -20px rgba(31, 29, 27, .4); display: grid; place-items: center; overflow: hidden; }
.obj { display: grid; place-items: center; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFE08A, var(--gold) 45%, var(--brass)); color: var(--ink); font-weight: 800; font-size: 2.6rem; letter-spacing: -.04em; box-shadow: 0 18px 30px -12px rgba(31, 29, 27, .5); animation: float 5s ease-in-out infinite; }
.shine { position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); transform: skewX(-18deg); animation: glass 5s ease-in-out infinite; }
.plinth { width: 100%; max-width: 360px; padding: 16px; background: var(--ink); color: var(--on-dark); text-align: center; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; }
.case-info h2 { margin-bottom: 12px; }
.caption-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .92rem; }
.caption-table th, .caption-table td { padding: 8px 0; text-align: left; vertical-align: top; border-bottom: 1px dotted var(--muted); }
.caption-table th { width: 38%; font-weight: 500; color: var(--muted); }
.caption-table td { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.case-note { display: flex; gap: 8px; font-size: .86rem; color: var(--muted); margin: 20px 0 0; }
.case-note svg { margin-top: 3px; color: var(--ok); }

/* How to download — audio-guide stops */
.stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; position: relative; }
.stops::before { content: ""; position: absolute; left: 6%; right: 6%; top: 30px; border-top: 2px dashed var(--rule); }
.stop { position: relative; text-align: center; min-width: 0; }
.stop:nth-child(even) { margin-top: 46px; }
.stop-n { position: relative; display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); font-weight: 700; font-size: 1.2rem; color: var(--ink); transition: background .3s, color .3s; }
.stop-n::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid var(--terra); opacity: 0; animation: ring 3s calc(var(--d, 0) * .5s) infinite; }
.stop:hover .stop-n { background: var(--ink); color: var(--gold); }
.stop h3 { margin-bottom: 6px; font-size: 1.02rem; }
.stop p { margin: 0; font-size: .9rem; overflow-wrap: anywhere; }

/* What it did — wall text + timeline */
.what { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.wall p { max-width: 60ch; }
.drop::first-letter { float: left; font-size: 4.2rem; line-height: .9; font-weight: 700; color: var(--terra); margin: 6px 12px 0 0; }
.tl-t { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 0; position: relative; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 110px; top: 8px; bottom: 8px; width: 2px; }
.timeline::before { background: var(--rule); }
.timeline::after { background: linear-gradient(var(--gold), var(--terra)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.no-js .timeline::after { transform: none; }
.ev { display: grid; grid-template-columns: 96px 30px minmax(0, 1fr); align-items: start; gap: 0; padding: 0 0 22px; position: relative; z-index: 1; }
.ev-y { font-size: .8rem; font-weight: 700; color: var(--ink); text-align: right; padding: 3px 0 0; }
.ev-dot { width: 14px; height: 14px; margin: 6px 0 0 8px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.ev:nth-last-child(2) .ev-dot { background: var(--terra); border-color: var(--terra); box-shadow: 0 0 0 5px rgba(181, 71, 46, .18); }
.ev-card { background: var(--paper); border: 1px solid var(--rule); padding: 12px 16px; transition: border-color .3s; }
.ev:hover .ev-card { border-color: var(--ink); }
.ev-card h3 { font-size: .98rem; margin-bottom: 4px; } .ev-card p { margin: 0; font-size: .9rem; }

/* Install — arched gallery doorways */
.galleries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.galleries li { background: var(--paper); border: 1px solid var(--rule); border-radius: 140px 140px 0 0; padding: 54px 18px 22px; text-align: center; position: relative; min-width: 0; transition: transform .35s var(--ease), border-color .3s; }
.galleries li::before { content: ""; position: absolute; left: 14px; right: 14px; top: 14px; height: 40px; border: 1px solid var(--rule); border-bottom: 0; border-radius: 120px 120px 0 0; }
.galleries li:hover { transform: translateY(-6px); border-color: var(--ink); }
.wing-l { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }
.galleries h3 { font-size: 1rem; margin-bottom: 6px; } .galleries p { margin: 0; font-size: .88rem; overflow-wrap: anywhere; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--rule); margin: 0 0 1.4em; -webkit-overflow-scrolling: touch; }
.grid-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .93rem; }
.grid-table th, .grid-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.grid-table thead th { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark); background: var(--ink); }
.grid-table tbody th { color: var(--ink); font-weight: 600; }
.grid-table tbody tr:last-child > * { border-bottom: 0; }
.grid-table tbody tr:hover { background: #FBF8F1; }
.cmp .gone { color: var(--muted); background: repeating-linear-gradient(-45deg, rgba(31, 29, 27, .035) 0 8px, transparent 8px 16px); }
.cmp thead th.gone { background: var(--terra); color: #fff; }
.mk { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; white-space: nowrap; padding: 2px 10px; border: 1px solid currentColor; border-radius: 2px; }
.mk svg { width: 1em; height: 1em; }
.mk.yes { color: var(--ok); } .mk.no { color: var(--terra); } .mk.maybe { color: var(--brass); }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 24px; border-top: 2px solid var(--ink); }
.three div { padding: 16px 20px 0 0; }
.three div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.three h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.three div:nth-child(1) h3 { color: var(--ok); } .three div:nth-child(2) h3 { color: var(--terra); } .three div:nth-child(3) h3 { color: var(--brass); }
.three p { margin: 0; font-size: .92rem; }
.note { max-width: 860px; color: var(--muted); margin-top: 18px; }

/* Pros and problems — two walls */
.walls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; max-width: 1000px; margin: 0 auto; box-shadow: var(--shadow); }
.wall-l, .wall-r { padding: 34px 34px 30px; position: relative; }
.wall-l { background: var(--paper); border-top: 8px solid var(--gold); }
.wall-r { background: var(--ink); color: #C9C2B6; border-top: 8px solid var(--terra); }
.wl-k { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.wall-r .wl-k { color: var(--on-dark); }
.walls ul { list-style: none; margin: 0; padding: 0; }
.walls li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--rule); font-size: .96rem; }
.wall-r li { border-color: #3A3631; }
.walls li:last-child { border-bottom: 0; }
.walls li::before { content: ""; position: absolute; left: 0; top: 16px; width: 14px; height: 11px; border: 2px solid var(--brass); }
.wall-r li::before { border-color: var(--terra); }

/* Troubleshooting — visitor help */
.fix { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 50px; align-items: start; }
.best { background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--gold); padding: 20px 22px; }
.best ul { padding-left: 1.2em; margin: 0; font-size: .93rem; } .best li { margin-bottom: 6px; }
.note-q, .qa { background: var(--paper); border: 1px solid var(--rule); margin-bottom: 10px; transition: border-color .3s; }
.note-q[open], .qa[open] { border-color: var(--ink); }
.note-q summary, .qa summary { cursor: pointer; list-style: none; padding: 15px 48px 15px 16px; font-weight: 600; color: var(--ink); position: relative; display: flex; gap: 12px; align-items: center; }
.note-q summary::-webkit-details-marker, .qa summary::-webkit-details-marker { display: none; }
.note-q summary::after, .qa summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 12px; height: 2px; background: var(--ink); box-shadow: none; transition: transform .3s; }
.note-q summary::before, .qa summary::before { content: ""; position: absolute; right: 23px; top: calc(50% - 5px); width: 2px; height: 12px; background: var(--ink); transition: transform .3s, opacity .3s; }
.note-q[open] summary::before, .qa[open] summary::before { transform: rotate(90deg); opacity: 0; }
.note-q summary > span:last-child, .qa summary > span { min-width: 0; overflow-wrap: anywhere; }
.nq-i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--terra); color: #fff; font-weight: 700; font-size: .85rem; }
.nq-body, .qa-body { padding: 0 18px 16px; } .nq-body { padding-left: 54px; }
.nq-body p, .qa-body p { margin: 0; font-size: .94rem; }

/* Editorial perspectives — curator's notes */
.curators { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.curator { background: var(--paper); border: 1px solid var(--rule); padding: 30px 26px 24px; position: relative; transition: transform .35s var(--ease), box-shadow .35s; }
.curator::before { content: ""; position: absolute; left: 50%; top: -7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #F1D27A, var(--brass)); box-shadow: 0 2px 3px rgba(0, 0, 0, .3); }
.curator:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cu-k { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }
.curator p { font-size: .95rem; }
.cu-by { margin: 0; font-style: italic; color: var(--muted); font-size: .84rem !important; }

/* FAQ */
.qas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: start; }

/* Final CTA — exit plaque */
.exit { background: var(--ink); color: #C9C2B6; padding: 90px 0; position: relative; overflow: hidden; }
.exit::before { content: ""; position: absolute; left: 50%; top: -200px; width: 700px; height: 500px; margin-left: -350px; background: radial-gradient(ellipse at center, rgba(255, 210, 120, .18), transparent 65%); animation: flicker 6s ease-in-out infinite; }
.exit-in { position: relative; max-width: 860px; text-align: center; border: 3px double var(--brass); padding: 46px 30px; }
.exit-k { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.exit h2 { color: var(--on-dark); font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
.exit .btn-main { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.exit .btn-main .btn-ico { background: var(--ink); color: var(--gold); }
.exit .btn-main:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- 9. Inner pages & guides ---------- */
.page-top { padding: 54px 0 42px; background: var(--stone); border-bottom: 1px solid var(--rule); position: relative; overflow: hidden; }
.page-top::after { content: ""; position: absolute; right: 6%; top: 30px; width: 150px; height: 180px; border: 10px solid var(--wood); outline: 1px solid var(--rule); outline-offset: 10px; opacity: .12; transform: rotate(3deg); pointer-events: none; }
.page-top h1 { font-size: var(--page-h1); max-width: 880px; position: relative; }
.page-top > .container > p { max-width: 760px; font-size: 1.04rem; position: relative; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; font-size: .82rem; letter-spacing: .04em; }
.crumbs li { color: var(--muted); } .crumbs li + li::before { content: "—"; margin-right: 6px; }
.crumbs a { color: var(--ink-2); text-decoration: none; } .crumbs a:hover { color: var(--terra); text-decoration: underline; }
.label { display: inline-block; border: 1px solid var(--ink); color: var(--ink); font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; padding: 3px 12px; margin-bottom: 12px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .84rem; color: var(--muted); position: relative; }
.content { max-width: 800px; min-width: 0; }
.content h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-top: 1.6em; padding-top: .3em; }
.content h3 { margin-top: 1.3em; }
.content ul, .content ol { padding-left: 1.3em; margin: 0 0 1.2em; } .content li { margin-bottom: .4em; }
.content li::marker { color: var(--terra); }
.content .table-wrap { margin: 1.2em 0 1.6em; }
.cover { margin: 0 0 26px; border: 12px solid var(--wood); box-shadow: var(--shadow); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 50px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); background: var(--paper); border: 1px solid var(--rule); border-top: 4px solid var(--gold); padding: 20px; }
.toc h2 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.toc ol { margin: 0 0 18px; padding-left: 1.2em; font-size: .87rem; } .toc li { margin-bottom: 6px; }
.toc a { color: var(--ink-2); text-decoration: none; } .toc a:hover { color: var(--terra); text-decoration: underline; }
.toc .btn { width: 100%; }
.end-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; background: var(--ink); color: #C9C2B6; padding: 26px; margin-top: 36px; border: 3px double var(--brass); }
.end-cta h2 { color: var(--on-dark); margin: 0 0 4px; font-size: 1.3rem; padding: 0; }
.end-cta p { margin: 0; font-size: .88rem; overflow-wrap: anywhere; }
.end-cta > div { min-width: 0; }
.end-cta .btn-main { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.end-cta .btn-main .btn-ico { background: var(--ink); color: var(--gold); }
.related { margin-top: 70px; }
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 30px; }
.guide-card { position: relative; background: var(--paper); border: 1px solid var(--rule); transition: transform .35s var(--ease), box-shadow .35s; }
.guide-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.guide-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-bottom: 1px solid var(--rule); }
.guide-card .body { padding: 18px 20px 22px; }
.guide-card .cat { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.guide-card h2, .guide-card h3 { font-size: 1.06rem; margin: 6px 0 8px; }
.guide-card h2 a, .guide-card h3 a { color: var(--ink); text-decoration: none; }
.guide-card h2 a::after, .guide-card h3 a::after { content: ""; position: absolute; inset: 0; }
.guide-card p { margin: 0; font-size: .92rem; }
.cols, .map-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.map-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols > div { background: var(--paper); border: 1px solid var(--rule); padding: 20px; }
.cols h3 { margin-top: 0; } .cols p { margin: 0; font-size: .94rem; }
.map-cols h2 { margin-top: 0; }
.mail-link { display: inline-flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 600; background: var(--ink); color: var(--on-dark); padding: 12px 20px; text-decoration: none; overflow-wrap: anywhere; max-width: 100%; }
.mail-link:hover { background: var(--terra); color: #fff; }
.error-page { padding: 80px 0 100px; text-align: center; }
.empty-frame { width: 240px; margin: 40px auto 30px; background: var(--wood); padding: 14px; box-shadow: var(--shadow); transform-origin: 50% -30px; animation: hang 5s ease-in-out infinite; }
.empty-frame span { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--paper); font-size: 3.2rem; font-weight: 700; color: var(--terra); }
.err-label { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- 10. Footer — lobby directory board ---------- */
.footer { background: var(--stone); padding-top: 64px; border-top: 1px solid var(--rule); }
.directory { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 46px; align-items: start; }
.f-desc { margin: 18px 0 18px; font-size: .9rem; }
.dir-plaque { display: inline-flex; flex-direction: column; margin: 0; padding: 10px 18px; border: 3px double var(--brass); background: var(--paper); }
.dir-plaque span { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dir-plaque b { font-size: 1.1rem; letter-spacing: .12em; color: var(--ink); }
.dir-board { background: #22201E; background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 6px); border: 10px solid var(--wood); padding: 22px 26px 26px; box-shadow: var(--shadow); }
.dir-title { margin: 0 0 14px; text-align: center; font-size: .78rem; font-weight: 600; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid #3A3631; padding-bottom: 10px; }
.wing + .wing { margin-top: 18px; }
.wing h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.wing h2 b { display: grid; place-items: center; width: 22px; height: 22px; background: var(--gold); color: var(--ink); font-size: .74rem; letter-spacing: 0; }
.wing ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
.wing a { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; color: #E6E0D6; text-decoration: none; font-size: .84rem; letter-spacing: .04em; text-transform: uppercase; }
.wing a span { min-width: 0; }
.wing a::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted #5A544C; transform: translateY(-3px); }
.wing a i { order: 2; font-style: normal; font-size: .72rem; color: var(--gold); }
.wing a:hover { color: var(--gold); }
.footer-note { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; margin: 36px 0 0; padding: 18px 0 22px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.footer-note svg { color: var(--terra); margin-top: 2px; }
.footer-bottom { background: var(--ink); padding: 15px 0; font-size: .85rem; text-align: center; color: #C9C2B6; }
.footer-bottom a { color: var(--gold); font-weight: 600; text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); text-decoration: underline; }

/* ---------- 11. Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes underline { to { background-size: 100% .18em; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(181, 71, 46, .5); } 70% { box-shadow: 0 0 0 10px rgba(181, 71, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(181, 71, 46, 0); } }
@keyframes flicker { 0%, 100% { opacity: .9; } 45% { opacity: 1; } 48% { opacity: .75; } 52% { opacity: 1; } }
@keyframes hang { 0%, 100% { transform: rotate(-.8deg); } 50% { transform: rotate(.8deg); } }
@keyframes drop-in { from { opacity: 0; translate: 0 -30px; } to { opacity: 1; translate: 0 0; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes era { 0% { left: 0; background: var(--gold); } 80%, 100% { left: calc(100% - 10px); background: var(--terra); } }
@keyframes travel { 0% { transform: translateX(-10px); } 100% { transform: translateX(50px); } }
@keyframes sheen { 0% { left: -60%; } 30%, 100% { left: 130%; } }
@keyframes nudge-x { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes glass { 0%, 60% { left: -60%; } 100% { left: 140%; } }
@keyframes ring { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.3); opacity: 0; } }
/* "Spotlight" reveal: rooms brighten into view as if the lights come on */
@keyframes lights-on { 0% { opacity: 0; filter: brightness(.55) blur(3px); transform: translateY(10px); } 100% { opacity: 1; filter: none; transform: none; } }
.js .reveal { opacity: 0; }
.js .reveal.show { animation: lights-on .8s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; }
  .u { background-size: 100% .18em; }
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 8px 8px; letter-spacing: .08em; }
  .era { display: none; }
  .galleries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stops { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
  .stops::before { display: none; }
  .stop:nth-child(even) { margin-top: 0; }
}
@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .menu-toggle { display: grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--wall); border-bottom: 1px solid var(--ink); box-shadow: 0 20px 30px -20px rgba(31, 29, 27, .4);
    max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .4s var(--ease), visibility 0s .4s; }
  .nav.open { max-height: 80vh; overflow-y: auto; visibility: visible; transition: max-height .4s var(--ease); }
  .nav ul { flex-direction: column; padding: 10px 24px 20px; gap: 2px; }
  .nav a { padding: 12px 4px; font-size: .9rem; border-bottom: 1px solid var(--rule); }
  .nav a::after { display: none; }
  .no-js .nav { position: static; max-height: none; visibility: visible; border: 0; box-shadow: none; }
  .no-js .menu-toggle { display: none; }
  .no-js .header-row { flex-wrap: wrap; }
  .no-js .nav ul { flex-direction: row; flex-wrap: wrap; padding: 0 0 10px; }
  .no-js .nav a { border: 0; }
  .hero-grid, .case, .what, .fix, .directory { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .beam { right: -10%; }
  .gallery { max-width: 480px; margin: 0 auto; width: 100%; }
  .curators, .qas, .three { grid-template-columns: minmax(0, 1fr); }
  .three div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .container { padding: 0 18px; }
  .hero { padding-top: 44px; }
  .placard { position: relative; left: auto; bottom: auto; width: 100%; margin-top: 30px; }
  .era-line { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 18px; }
  .gallery { padding-bottom: 0; }
  .plaque { width: 260px; }
  .plaques { padding: 0 18px; }
  .galleries { grid-template-columns: minmax(0, 1fr); }
  .galleries li { border-radius: 90px 90px 0 0; }
  .stops { grid-template-columns: minmax(0, 1fr); }
  .stop { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 16px; text-align: left; }
  .stop-n { margin: 0; }
  .walls { grid-template-columns: minmax(0, 1fr); }
  .wall-l, .wall-r { padding: 26px 22px; }
  .ev { grid-template-columns: 70px 26px minmax(0, 1fr); }
  .timeline::before, .timeline::after { left: 82px; }
  .ev-y { font-size: .72rem; }
  .wing ul, .cols, .map-cols { grid-template-columns: minmax(0, 1fr); }
  .dir-board { padding: 18px; border-width: 8px; }
  .exit-in { padding: 34px 18px; }
  .btn-lg { padding: 12px 18px 12px 12px; }
  .nq-body { padding-left: 18px; }
}
@media (max-width: 400px) {
  .logo-tag { display: none; }
}
@media print {
  .header, .footer, .menu-toggle, .gallery, .beam { display: none; }
  .js .reveal { opacity: 1; animation: none; }
}
.center-note { margin: 28px auto 0; text-align: center; }
.walk-hint + .note { margin-top: 22px; }
.walk { scroll-padding-inline: max(24px, calc((100vw - var(--container)) / 2 + 24px)); }
@media (max-width: 720px) { .walk { scroll-padding-inline: 18px; } }
