:root {
  --gallery-gold: #c29a5b;
  --gallery-cream: #f4ead7;
  --gallery-burgundy: #250611;
}

.header {
  grid-template-columns: 1fr auto auto auto !important;
}

.brand-mark {
  border: 0 !important;
  border-radius: 0 !important;
  display: block !important;
  flex: 0 0 48px;
  height: 48px !important;
  overflow: hidden;
  position: relative;
  width: 48px !important;
}

.brand-mark img {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .28));
  height: auto;
  left: 50%;
  max-width: none;
  position: absolute;
  top: -1px;
  transform: translateX(-50%);
  transition: filter .3s ease, transform .3s ease;
  width: 164px;
}

.brand:hover .brand-mark img {
  filter: drop-shadow(0 5px 12px rgba(194, 154, 91, .34));
  transform: translateX(-50%) scale(1.025);
}

.brand small,
.header nav a,
.back-link,
.eyebrow,
.draft-note {
  font-size: .75rem !important;
}

.reading-head > p,
.chapter p,
.oracle-note,
.orientation-copy > p:last-of-type,
.sequence-copy > p:last-child,
.film-copy > p:last-child,
.catalog-copy p:last-child,
.acquisition-info > p,
.archive-rail-head > p {
  text-wrap: pretty;
}

.oracle-note,
.orientation-copy > p:last-of-type,
.film-copy > p:last-child,
.archive-rail-head > p {
  color: rgba(244, 234, 215, .78) !important;
}

.reading,
.oracle-line,
.orientation,
.sequence-section,
.film,
.catalog,
.acquisition,
.archive-rail {
  contain-intrinsic-size: auto 820px;
  content-visibility: auto;
}

/* Shared editorial rhythm for every work page. */
@media (min-width: 1001px) {
  .hero {
    min-height: 88svh !important;
  }

  .hero-art {
    min-height: calc(88svh - 82px) !important;
  }
}

.hero-frame {
  background: #12070b !important;
  max-height: 72svh;
}

.hero-frame img {
  max-height: 72svh;
  object-fit: contain !important;
}

.language-switch {
  align-items: center;
  color: rgba(244, 234, 215, .35);
  display: flex;
  font-size: .75rem;
  gap: .3rem;
  letter-spacing: .12em;
  margin-left: clamp(.25rem, 1.2vw, 1.2rem);
}

.language-switch button {
  background: transparent;
  border: 0;
  color: rgba(244, 234, 215, .55);
  cursor: pointer;
  font-size: inherit;
  letter-spacing: inherit;
  padding: .3rem .08rem;
}

.language-switch button[aria-pressed="true"] {
  color: var(--gallery-gold);
  font-weight: 700;
}

.orientation-note {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(37, 6, 17, .82);
  border: 1px solid rgba(194, 154, 91, .44);
  bottom: 1.2rem;
  color: rgba(244, 234, 215, .82);
  display: flex;
  font-size: .75rem;
  gap: .65rem;
  left: 1.2rem;
  letter-spacing: .1em;
  padding: .7rem .8rem;
  position: absolute;
  text-transform: uppercase;
  z-index: 5;
}

.orientation-note::before {
  color: var(--gallery-gold);
  content: "↻";
  font-size: 1.05rem;
}

.orientation-dock {
  align-items: center;
  background: rgba(13, 42, 49, .92);
  border: 1px solid rgba(194, 154, 91, .38);
  color: var(--gallery-cream);
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: space-between;
  padding: .9rem 1rem;
}

.orientation-dock > span {
  color: rgba(244, 234, 215, .64);
  font-size: .75rem;
  letter-spacing: .12em;
  margin-right: auto;
  text-transform: uppercase;
}

.orientation-buttons,
.gallery-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: center;
}

.orientation-button,
.gallery-control {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(194, 154, 91, .38);
  color: var(--gallery-cream);
  cursor: pointer;
  display: inline-flex;
  font-size: .72rem;
  height: 2.55rem;
  justify-content: center;
  letter-spacing: .08em;
  min-width: 2.85rem;
  padding: 0 .72rem;
}

.orientation-button:hover,
.orientation-button[aria-pressed="true"],
.gallery-control:hover,
.gallery-control[aria-pressed="true"] {
  background: var(--gallery-gold);
  border-color: var(--gallery-gold);
  color: var(--gallery-burgundy);
}

.gallery-control[hidden] { display: none; }

#lightbox {
  background: transparent;
  border: 0;
  height: 100%;
  max-height: none;
  max-width: none;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

#lightbox::backdrop {
  backdrop-filter: blur(14px);
  background: rgba(8, 2, 5, .96);
}

#lightbox .lightbox-shell {
  align-items: center;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  height: 100svh;
  justify-items: stretch;
  padding: 1.4rem;
}

#lightbox .zoom-stage {
  align-items: center;
  cursor: zoom-in;
  display: flex;
  height: 100%;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  position: relative;
  touch-action: none;
  width: 100%;
}

#lightbox .zoom-stage.is-zoomed { cursor: grab; }
#lightbox .zoom-stage.is-dragging { cursor: grabbing; }

#lightbox .lightbox-image {
  box-shadow: 0 30px 90px rgba(0, 0, 0, .58);
  max-height: 74svh;
  max-width: min(88vw, 1500px);
  object-fit: contain;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  transform-origin: center;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .18s ease;
  user-select: none;
  -webkit-user-drag: none;
}

#lightbox .zoom-stage.is-dragging .lightbox-image { transition: none; }

#lightbox .lightbox-toolbar {
  align-items: center;
  background: rgba(37, 6, 17, .84);
  border: 1px solid rgba(194, 154, 91, .34);
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.1rem;
  justify-content: center;
  margin: .8rem auto 0;
  max-width: 960px;
  padding: .72rem;
  width: min(100%, 960px);
}

#lightbox .toolbar-group {
  align-items: center;
  display: flex;
  gap: .4rem;
}

#lightbox .toolbar-label {
  color: rgba(244, 234, 215, .56);
  font-size: .75rem;
  letter-spacing: .12em;
  margin-right: .2rem;
  text-transform: uppercase;
}

#lightbox .gallery-status {
  color: rgba(244, 234, 215, .58);
  font-size: .75rem;
  letter-spacing: .1em;
  margin: .65rem 0 0;
  text-align: center;
  text-transform: uppercase;
}

#lightbox .close-lightbox {
  align-items: center;
  background: var(--gallery-cream);
  border: 0;
  border-radius: 50%;
  color: var(--gallery-burgundy);
  cursor: pointer;
  display: flex;
  font-size: 1.3rem;
  height: 44px;
  justify-content: center;
  position: fixed;
  right: 1.2rem;
  top: 1.2rem;
  width: 44px;
  z-index: 20;
}

.slideshow {
  background: #10070b;
  border: 1px solid rgba(194, 154, 91, .34);
  box-shadow: 0 30px 78px rgba(37, 6, 17, .2);
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.slideshow::after {
  border: 1px solid rgba(244, 234, 215, .08);
  content: "";
  inset: 7px;
  pointer-events: none;
  position: absolute;
  z-index: 4;
}

.slideshow-stage {
  aspect-ratio: 4 / 3;
  background: #10070b;
  border: 0;
  cursor: zoom-in;
  display: grid;
  overflow: hidden;
  padding: 0;
  position: relative;
  touch-action: pan-y;
  width: 100%;
}

.slideshow-stage::after {
  background: linear-gradient(180deg, transparent 66%, rgba(8, 2, 5, .16));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.slideshow-stage img {
  grid-area: 1 / 1;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(1.018);
  transition: opacity .9s ease, transform 1.6s cubic-bezier(.2, .8, .2, 1);
  width: 100%;
}

.slideshow-stage img.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.slideshow-meta {
  align-items: center;
  background: linear-gradient(90deg, rgba(27, 5, 13, .98), rgba(37, 6, 17, .95));
  border-top: 1px solid rgba(194, 154, 91, .32);
  color: var(--gallery-cream);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 68px;
  padding: .72rem .85rem .72rem 1.1rem;
  position: relative;
  z-index: 3;
}

.slideshow-caption {
  color: rgba(244, 234, 215, .82);
  font-size: .72rem;
  letter-spacing: .12em;
  line-height: 1.45;
  text-transform: uppercase;
}

.slideshow-position {
  align-items: center;
  display: grid;
  gap: .45rem;
  grid-template-columns: auto 54px;
}

.slideshow-counter {
  color: rgba(244, 234, 215, .54);
  font-family: var(--serif, Georgia, serif);
  font-size: .78rem;
  letter-spacing: .08em;
  white-space: nowrap;
}

.slideshow-progress {
  background: rgba(244, 234, 215, .13);
  display: block;
  height: 1px;
  overflow: hidden;
  position: relative;
  width: 54px;
}

.slideshow-progress > i {
  background: var(--gallery-gold);
  display: block;
  height: 100%;
  transform: scaleX(var(--slide-progress, .2));
  transform-origin: left;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
  width: 100%;
}

.slideshow-nav {
  align-items: center;
  display: flex;
  gap: .1rem;
}

.slideshow-nav .gallery-control {
  border-color: rgba(194, 154, 91, .4);
  border-radius: 50%;
  font-size: .92rem;
  height: 2.55rem;
  min-width: 2.55rem;
  padding: 0;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
  width: 2.55rem;
}

.slideshow-nav .gallery-control:hover {
  transform: translateY(-1px);
}

.slideshow .slideshow-edge {
  align-items: center;
  background: linear-gradient(90deg, rgba(10, 3, 7, .34), transparent);
  border: 0;
  bottom: var(--slideshow-meta-height, 68px);
  color: var(--gallery-cream);
  display: flex;
  height: auto;
  justify-content: flex-start;
  min-width: 0;
  opacity: .82;
  padding: 0 0 0 clamp(.65rem, 1.7vw, 1.35rem);
  position: absolute;
  top: 0;
  touch-action: manipulation;
  transition: opacity .24s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
  width: clamp(3.9rem, 9vw, 7.5rem);
  z-index: 6;
}

.slideshow .slideshow-edge-next {
  background: linear-gradient(270deg, rgba(10, 3, 7, .34), transparent);
  justify-content: flex-end;
  left: auto;
  padding: 0 clamp(.65rem, 1.7vw, 1.35rem) 0 0;
  right: 0;
}

.slideshow .slideshow-edge-previous { left: 0; }

.slideshow .slideshow-edge > span {
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(20, 5, 11, .36);
  border: 1px solid rgba(244, 234, 215, .52);
  border-radius: 50%;
  display: flex;
  flex: 0 0 46px;
  font-family: var(--serif, Georgia, serif);
  font-size: 2rem;
  font-weight: 300;
  height: 46px;
  justify-content: center;
  line-height: 1;
  padding-bottom: .14rem;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1);
}

.slideshow .slideshow-edge:hover,
.slideshow .slideshow-edge:focus-visible {
  background-color: transparent;
  border-color: transparent;
  color: var(--gallery-cream);
}

.slideshow .slideshow-edge:hover > span,
.slideshow .slideshow-edge:focus-visible > span {
  background: rgba(194, 154, 91, .92);
  border-color: var(--gallery-gold);
  color: var(--gallery-burgundy);
  transform: scale(1.06);
}

@media (hover: hover) and (pointer: fine) {
  .slideshow .slideshow-edge {
    opacity: 0;
    pointer-events: none;
  }

  .slideshow .slideshow-edge-previous { transform: translateX(-9px); }
  .slideshow .slideshow-edge-next { transform: translateX(9px); }

  .slideshow[data-edge-active="previous"] .slideshow-edge-previous,
  .slideshow[data-edge-active="next"] .slideshow-edge-next,
  .slideshow .slideshow-edge:focus-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }
}

.slide-dot {
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 2.55rem;
  padding: 0;
  position: relative;
  width: 1.2rem;
}

.slide-dot::after {
  background: rgba(194, 154, 91, .38);
  border-radius: 999px;
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scaleX(.48);
  transition: background .25s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
  width: .95rem;
}

.slide-dot:hover::after,
.slide-dot[aria-current="true"]::after {
  background: var(--gallery-gold);
  transform: translate(-50%, -50%) scaleX(1);
}

.archive-rail {
  background: #17040c;
  color: var(--gallery-cream);
  padding: clamp(4.5rem, 8vw, 8rem) 6vw clamp(3.5rem, 6vw, 6rem);
}

.archive-rail-head {
  align-items: end;
  border-bottom: 1px solid rgba(194, 154, 91, .3);
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr minmax(260px, 430px);
  padding-bottom: 2.5rem;
}

.archive-rail-head .eyebrow { color: var(--gallery-gold); }

.archive-rail-head h2 {
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(3.6rem, 7vw, 7.2rem);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: .84;
  margin: 0;
}

.archive-rail-head > p {
  color: rgba(244, 234, 215, .62);
  font-family: var(--serif, Georgia, serif);
  line-height: 1.75;
  margin: 0;
}

.archive-directions {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr 1fr;
  margin: 2rem 0;
}

.archive-direction-card {
  align-items: stretch;
  background: rgba(244, 234, 215, .04);
  border: 1px solid rgba(194, 154, 91, .25);
  display: grid;
  gap: 1rem;
  grid-template-columns: 112px 1fr;
  min-height: 124px;
  overflow: hidden;
  transition: background .2s ease, border-color .2s ease;
}

.archive-direction-next { grid-template-columns: 1fr 112px; text-align: right; }
.archive-direction-next img { grid-column: 2; grid-row: 1; }
.archive-direction-next > span { grid-column: 1; grid-row: 1; }

.archive-direction-card:hover,
.archive-direction-card:focus-visible {
  background: rgba(194, 154, 91, .1);
  border-color: rgba(194, 154, 91, .7);
}

.archive-direction-card img {
  height: 100%;
  object-fit: cover;
  width: 112px;
}

.archive-direction-card > span {
  align-self: center;
  display: block;
  padding: 1rem;
}

.archive-direction-card small,
.archive-direction-card em {
  color: rgba(244, 234, 215, .47);
  display: block;
  font-size: .75rem;
  font-style: normal;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.archive-direction-card strong {
  display: block;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(1.05rem, 2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.1;
  margin: .55rem 0;
}

.archive-thumbnail-track {
  display: grid;
  gap: .9rem;
  grid-auto-columns: minmax(138px, 12vw);
  grid-auto-flow: column;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: .4rem 0 1.2rem;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--gallery-gold) rgba(244, 234, 215, .08);
  scrollbar-width: thin;
}

.archive-thumbnail {
  min-width: 0;
  scroll-snap-align: start;
}

.archive-thumbnail img {
  aspect-ratio: 3 / 4;
  display: block;
  filter: saturate(.76);
  object-fit: cover;
  transition: filter .25s ease, transform .4s cubic-bezier(.2, .8, .2, 1);
  width: 100%;
}

.archive-thumbnail:hover img,
.archive-thumbnail:focus-visible img,
.archive-thumbnail[aria-current="page"] img { filter: saturate(1.08); }
.inquiry-dialog{max-width:820px!important;width:min(94vw,820px)!important}.inquiry-shell{min-height:650px!important}.inquiry-consent{align-items:flex-start;color:#6f5b58;display:flex;font-size:.68rem;gap:.65rem;line-height:1.45;margin:.2rem 0 .8rem}.inquiry-consent input{accent-color:var(--burgundy,#4b0f24);margin:.18rem 0 0}.inquiry-channel-stage{border:0!important;margin:0!important;padding:clamp(1.2rem,3vw,2.5rem) 0 0!important}.inquiry-channel-stage h3{color:var(--ink,#251319);font-family:var(--serif,Georgia,serif);font-size:clamp(2.6rem,5vw,4.7rem);font-weight:400;letter-spacing:-.055em;line-height:.92;margin:0}.inquiry-channel-stage>p{color:#6f5b58;margin:1.3rem 0}.inquiry-channel-actions{display:grid;gap:.7rem}.inquiry-channel-actions button,.inquiry-channel-close{background:var(--burgundy,#4b0f24);border:1px solid var(--burgundy,#4b0f24);color:var(--champagne,#f4ead7);cursor:pointer;font-size:.68rem;font-weight:700;letter-spacing:.13em;min-height:52px;padding:.9rem;text-transform:uppercase;width:100%}.inquiry-channel-actions button:hover,.inquiry-channel-close:hover{background:#250611}.inquiry-channel-back{background:transparent;border:0;border-bottom:1px solid #bda886;color:#6f5b58;cursor:pointer;display:block;font-size:.65rem;letter-spacing:.11em;margin:1rem auto 0;padding:.55rem;text-transform:uppercase}.inquiry-channel-error{color:#9f1837!important;font-family:Arial,sans-serif!important;font-size:.76rem}@media(max-width:680px){.inquiry-shell{min-height:0!important}.inquiry-dialog{width:min(96vw,620px)!important}}

.archive-thumbnail[aria-current="page"] img { outline: 2px solid var(--gallery-gold); outline-offset: -2px; }

.archive-thumbnail > span {
  border-top: 1px solid rgba(194, 154, 91, .28);
  display: block;
  margin-top: .65rem;
  padding-top: .55rem;
}

.archive-thumbnail small,
.archive-thumbnail em {
  color: rgba(244, 234, 215, .42);
  display: block;
  font-size: .75rem;
  font-style: normal;
  letter-spacing: .08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.archive-thumbnail strong {
  display: block;
  font-family: var(--serif, Georgia, serif);
  font-size: .78rem;
  font-weight: 400;
  line-height: 1.22;
  margin: .3rem 0;
}

.archive-footer {
  align-items: center !important;
  background: #16030b !important;
  border-top: 1px solid rgba(194, 154, 91, .25) !important;
  color: rgba(244, 234, 215, .58) !important;
  display: grid !important;
  font-size: .75rem !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  letter-spacing: .08em !important;
  padding: 2rem 5vw !important;
  text-transform: uppercase;
}

.archive-footer > strong {
  color: var(--gallery-gold) !important;
  font-family: var(--serif, Georgia, serif) !important;
  font-size: 1.1rem !important;
  font-weight: 400 !important;
  letter-spacing: .14em;
}

.archive-footer > p {
  margin: 0 !important;
}

.archive-footer > p:nth-child(2) {
  text-align: center !important;
}

.archive-footer > p:last-child {
  display: flex;
  gap: 1.4rem;
  justify-content: flex-end;
  justify-self: end;
  text-align: right !important;
}

.archive-footer a {
  color: var(--gallery-cream) !important;
  justify-self: auto !important;
}

@media (max-width: 640px) {
  .header { grid-template-columns: 1fr auto auto !important; gap: .7rem; }
  .header nav { display: none !important; }
  .brand { gap: .55rem !important; }
  .brand-mark { flex-basis: 42px; height: 42px !important; width: 42px !important; }
  .brand-mark img { width: 144px; }
  .language-switch { margin-left: 0; }
  #lightbox .lightbox-shell { padding: 3.9rem .6rem .7rem; }
  #lightbox .lightbox-image { max-height: 64svh; max-width: 95vw; }
  #lightbox .lightbox-toolbar { gap: .55rem; padding: .58rem; }
  #lightbox .toolbar-label { display: none; }
  .gallery-control { height: 2.4rem; min-width: 2.55rem; padding: 0 .58rem; }
  .orientation-dock { align-items: flex-start; flex-direction: column; }
  .orientation-buttons { justify-content: flex-start; width: 100%; }
  .slideshow-meta { gap: .25rem .8rem; grid-template-columns: minmax(0, 1fr) auto; padding: .78rem .8rem; }
  .slideshow-caption { align-self: center; }
  .slideshow-position { justify-self: end; }
  .slideshow-nav { grid-column: 1 / -1; justify-content: center; width: 100%; }
  .slideshow .slideshow-edge { width: 4.25rem; }
  .slideshow .slideshow-edge > span { flex-basis: 42px; font-size: 1.8rem; height: 42px; }
  .archive-rail { padding-left: 1.2rem; padding-right: 1.2rem; }
  .archive-rail-head { align-items: start; grid-template-columns: 1fr; }
  .archive-directions { grid-template-columns: 1fr; }
  .archive-direction-card,
  .archive-direction-next { grid-template-columns: 88px 1fr; text-align: left; }
  .archive-direction-next img { grid-column: 1; grid-row: 1; }
  .archive-direction-next > span { grid-column: 2; grid-row: 1; }
  .archive-direction-card img { width: 88px; }
  .archive-thumbnail-track { grid-auto-columns: minmax(124px, 42vw); }
  .archive-footer {
    gap: 1.3rem !important;
    grid-template-columns: 1fr !important;
    text-align: left !important;
  }
  .archive-footer > p:nth-child(2) { text-align: left !important; }
  .archive-footer > p:last-child {
    justify-content: flex-start;
    justify-self: start;
    text-align: left !important;
  }
}

@media (min-width: 641px) and (max-width: 1080px) {
  .header { grid-template-columns: 1fr auto auto !important; }
  .header nav { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  #lightbox .lightbox-image,
  .slideshow-stage img { transition-duration: .01ms !important; }
}
