:root {
  --ke-ink: #0b0c0e;
  --ke-paper: #f3eee4;
  --ke-gold: #d8b765;
  --ke-line: rgba(216, 183, 101, .42);
  --ke-header: 76px;
}

body.ke-v17 { overflow-x: clip; }
body.ke-v17 nav:not(.ke-site-nav) { display: none !important; }
body.ke-v17 > header:not(.ke-site-header) { display: none !important; }

.ke-site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: var(--ke-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 clamp(22px, 4vw, 56px);
  color: var(--ke-paper);
  background: rgba(7, 7, 10, .94);
  border-bottom: 1px solid rgba(216, 183, 101, .26);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-family: Switzer, Arial, sans-serif;
}

.ke-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  font-size: 16px;
}
.ke-site-brand img { width: 38px; height: 38px; object-fit: contain; }
.ke-site-brand span {
  font: 700 clamp(15px, 1.25vw, 19px)/1.05 'Playfair Display', Georgia, serif;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.ke-site-nav { display: flex; align-items: center; gap: clamp(18px, 2.25vw, 34px); }
.ke-site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #d9d4ca;
  font: 600 16px/1.2 Switzer, Arial, sans-serif;
  letter-spacing: .025em;
  text-decoration: none;
}
.ke-site-nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--ke-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.ke-site-nav a:hover { color: #fff; }
.ke-site-nav a:hover::after,
.ke-site-nav a[aria-current='page']::after { transform: scaleX(1); }
.ke-site-nav a[aria-current='page'] { color: #f0d28a; }
.ke-site-header :is(a, button):focus-visible {
  outline: 3px solid #f0c969;
  outline-offset: 4px;
}
.ke-site-menu {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--ke-paper);
  background: transparent;
  border: 1px solid rgba(216, 183, 101, .42);
  font: 700 20px/1 Switzer, Arial, sans-serif;
  cursor: pointer;
}

/* One readable support system across the Framer pages and flyer archive. */
body.ke-v17 :is(main, #main) :is(p, li, dd, input, textarea) {
  font-size: max(18px, 1em) !important;
  line-height: 1.62 !important;
}
body.ke-v17 :is(main, #main) :is(figcaption, dt, label, summary, button) {
  font-size: max(16px, 1em) !important;
  line-height: 1.5 !important;
}
body.ke-v17 :is(main, #main) :is(p, li, dd) { max-inline-size: 72ch; }
body.ke-v17 :is(main, #main) a:not(.paper-frame) { text-underline-offset: .22em; }
body.ke-v17 :is(input, textarea) { min-height: 48px; }
body.ke-v17 textarea { min-height: 180px; }
body.ke-v17 .eyebrow,
body.ke-v17 .memory-label,
body.ke-v17 .gallery-item > p,
body.ke-v17 .small,
body.ke-v17 .atmosphere-credit,
body.ke-v17 .ke-atmosphere-credit { font-size: 16px !important; line-height: 1.5 !important; }
body.ke-v17 .object-history { max-width: 760px; }
body.ke-v17 .object-history dd { max-width: 60ch; }
body.ke-v17 .grid-item h3 { font-size: clamp(22px, 2vw, 29px); line-height: 1.12; }
body.ke-v17 .gallery-toolbar span,
body.ke-v17 .grid-item span,
body.ke-v17 footer :is(p, a, span) { font-size: 16px !important; line-height: 1.5 !important; }

/* Selected chapters behave like rooms: the light settles while copy remains stationary. */
.ke-v17-room { --ke-room-p: 0; position: relative; isolation: isolate; }
.ke-v17-room::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: calc(.12 + var(--ke-room-p) * .44);
  background:
    radial-gradient(ellipse 55% 38% at 50% 20%, rgba(225, 193, 123, .18), transparent 72%),
    linear-gradient(90deg, transparent 4%, rgba(216, 183, 101, .16) 4.08%, transparent 4.16%, transparent 95.84%, rgba(216, 183, 101, .16) 95.92%, transparent 96%);
}
.ke-v17-room::after {
  content: '';
  position: absolute;
  z-index: 4;
  top: 0;
  right: max(20px, 4vw);
  left: max(20px, 4vw);
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--ke-line), transparent);
  transform: scaleX(calc(.24 + var(--ke-room-p) * .76));
}
#story.ke-v17-room::before,
#press.ke-v17-room::before,
#vault.ke-v17-room::before,
section[data-framer-name='For Artists'].ke-v17-room::before {
  background: radial-gradient(ellipse 48% 34% at 50% 14%, rgba(139, 99, 42, .13), transparent 74%);
}

/* The closing room pulls back slightly, leaving a quiet architectural afterimage. */
#legacy [data-framer-name='Access Room'] {
  transform: scale(calc(1.055 - var(--ke-room-p, 0) * .055)) !important;
  transform-origin: 50% 45%;
}
#legacy [data-framer-name='Final']::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 calc(80px + var(--ke-room-p, 0) * 90px) rgba(0, 0, 0, .58);
}

/* Active flyer receives a gallery-light emphasis; neighboring works remain visible. */
.gallery-item { opacity: .56; transform: scale(.955); transition: opacity .28s ease, transform .28s ease; }
.gallery-item[aria-current='true'] { opacity: 1; transform: scale(1); }
.gallery-item[aria-current='true'] .paper-frame {
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .64));
}

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

@media (max-width: 900px) {
  .ke-site-header { height: 76px; padding-inline: 20px; background: rgba(9, 9, 11, .97); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .ke-site-brand span { max-width: 205px; white-space: normal; }
  .ke-site-menu { display: grid; place-items: center; }
  .ke-site-nav {
    position: absolute;
    top: 75px;
    right: 0;
    left: 0;
    display: none;
    padding: 16px 22px 22px;
    background: rgba(7, 7, 10, .985);
    border-bottom: 1px solid rgba(216, 183, 101, .34);
  }
  .ke-site-header[data-open='true'] .ke-site-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
  .ke-site-nav a { min-height: 52px; }
  body.ke-v17 :is(main, #main) :is(p, li, dd, input, textarea) { font-size: max(18px, 1em) !important; }
  .gallery-item { opacity: .72; }
  .gallery-item[aria-current='true'] .paper-frame { filter: none; }
}

@media (max-width: 420px) {
  .ke-site-brand span { font-size: 14px; max-width: 180px; }
  .ke-site-nav { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  .ke-site-nav a::after,
  .gallery-item { transition: none; }
  .ke-v17-room { --ke-room-p: 1 !important; }
  #legacy [data-framer-name='Access Room'] { transform: none !important; }
}
